/* --- VARIABLES ET STYLES GLOBAUX --- */
:root {
    --primary-color: #ff7a59;
    --dark-text: #33475b;
    --body-text: #4a5c71;
    --light-bg: #fdf8f5;
    --border-color: #cbd6e2;
    --font-serif: 'Lora', serif;
    --font-sans: 'Nunito Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--body-text);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}



a {
    text-decoration: none;
    color: inherit;
}

/* --- HEADER --- */
.site-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eaf0f6;
    font-size: 0.8rem;
    font-weight: 600;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-left, .top-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-link, .header-icon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}
.header-link:hover, .header-icon:hover {
    color: var(--primary-color);
}

.arrow-down {
    border: solid;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 2.5px;
    transform: rotate(45deg);
    margin-left: 0.2rem;
}

.contrast-toggle .switch {
    width: 34px;
    height: 18px;
    background-color: #ccc;
    border-radius: 9px;
    position: relative;
    cursor: pointer;
}
.contrast-toggle .switch-handle {
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.main-header {
    padding: 1rem 0;
    border-bottom: 1px solid #eaf0f6;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 30px;
}

.main-nav {
    display: flex;
    gap: 2rem;
    font-weight: 600;
}
.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid var(--primary-color);
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #e96341;
    border-color: #e96341;
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: #fffaf8;
}

/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--light-bg);
    padding: 5rem 0;
    
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content .eyebrow {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-content .caption {
    font-size: 0.8rem;
    color: #6a7c90;
    margin-bottom: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* --- RESPONSIVITÉ --- */

/* Tablettes et petits ordinateurs */
@media (max-width: 1024px) {
    .top-header-right .header-link:not(:last-child):not(:nth-last-child(2)),
    .top-header-left .contrast-toggle {
        display: none; /* Cache les liens moins importants */
    }
    .main-nav {
        display: none; /* Cache la navigation principale pour la simplifier */
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1; /* Met l'image en premier */
        margin-bottom: 2rem;
    }
    .hero-actions {
        justify-content: center;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .top-header {
        display: none; /* Cache complètement le bandeau supérieur */
    }
    .main-header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .logo-link {
        width: 100%;
        text-align: center;
    }
    .hero-section {
        padding: 3rem 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
    }
}

/* --- NOUVELLES VARIABLES --- */
:root {
    --section-bg-light: #f5f8fa;
    --link-blue: #007a9b;
}

/* --- SECTION AGENTS IA --- */
.agents-section {
    background-color: var(--section-bg-light);
    padding: 6rem 0;
    text-align: center;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-family: var(--font-sans); /* La police est sans-serif pour ce titre */
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--body-text);
    line-height: 1.7;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.agent-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    text-align: center;
    overflow: hidden; /* Pour que les coins de l'image suivent le border-radius */
    display: flex;
    flex-direction: column;
}

.agent-card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permet aux cartes d'avoir la même hauteur */
}

.agent-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.agent-card p {
    color: var(--body-text);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pousse le lien vers le bas */
}

.card-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: #0074D9; /* Bleu vif */
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    cursor: pointer;
}

.card-link:hover {
    background-color: #005fa3; /* Bleu plus foncé au survol */
}


/* --- RESPONSIVITÉ DE LA SECTION AGENTS --- */
@media (max-width: 992px) {
    .agents-grid {
        grid-template-columns: 1fr; /* Passe à une seule colonne sur tablette */
        max-width: 500px; /* Limite la largeur pour ne pas être trop étiré */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .agents-section {
        padding: 4rem 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-intro {
        font-size: 1rem;
    }
}

/* --- SECTION FILIÈRES DE FORMATION --- */
.courses-section {
    padding: 6rem 0;
    background-color: #fff; /* Fond blanc pour contraster avec la section précédente */
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Deux colonnes pour les deux pôles */
    gap: 2.5rem;
    margin-top: 4rem;
}

.course-card {
    background-color: var(--section-bg-light); /* Fond gris très clair pour la carte */
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid; /* Bordure de couleur pour l'attrait visuel */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Couleurs spécifiques pour chaque pôle */
.card-gestion { border-color: var(--link-blue); }
.card-sante { border-color: var(--primary-color); }

.course-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e6ec;
}

.card-icon {
    width: 40px;
    height: 40px;
}
.card-gestion .card-icon { color: var(--link-blue); }
.card-sante .card-icon { color: var(--primary-color); }

.course-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
}

.course-list {
    list-style: none;
    padding: 0;
    /* Met la liste en 2 colonnes sur les grands écrans pour la lisibilité */
    columns: 2;
    column-gap: 2rem;
}

.course-list li {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    break-inside: avoid; /* Empêche les items de se couper entre les colonnes */
}

/* Ajout d'une puce décorative avant chaque filière */
.course-list li::before {
    content: '•';
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.card-gestion .course-list li::before { color: var(--link-blue); }
.card-sante .course-list li::before { color: var(--primary-color); }


/* --- RESPONSIVITÉ DE LA SECTION FILIÈRES --- */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: 1fr; /* Les cartes s'empilent sur tablette */
    }
}

@media (max-width: 576px) {
    .course-list {
        columns: 1; /* La liste redevient une seule colonne sur mobile */
    }
    .course-card {
        padding: 1.5rem;
    }
    .course-card-header h3 {
        font-size: 1.1rem;
    }
}

/* --- SECTION VLOG --- */
.vlog-section {
    padding: 6rem 0;
    background-color: var(--light-bg); /* Fond beige clair pour alterner */
}

.vlog-grid {
    margin-top: 4rem;
    display: grid;
    /* Crée une grille de 3 colonnes et 2 lignes */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px); /* Hauteur fixe pour les lignes */
    gap: 1.5rem;
}

.vlog-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* L'item principal prend 2 colonnes et 2 lignes */
.vlog-item-large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.vlog-link {
    display: block;
    position: relative;
    overflow: hidden;
    height: 75%; /* L'image prend la majorité de la hauteur de la carte */
}

.vlog-item-large .vlog-link {
    height: 85%; /* L'image prend encore plus de place sur la carte principale */
}

.vlog-link img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Essentiel pour que l'image remplisse l'espace sans se déformer */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vlog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 71, 91, 0.4); /* Fond sombre semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Le bouton play est créé en pur CSS */
.play-button {
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 40px solid #ffffff;
    transition: transform 0.3s ease;
}

.vlog-info {
    padding: 1rem 1.25rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.vlog-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.4;
}
.vlog-item-large .vlog-title {
    font-size: 1.25rem;
}

/* --- EFFETS AU SURVOL --- */
.vlog-item:hover .vlog-link img {
    transform: scale(1.05); /* Effet de zoom subtil */
}
.vlog-item:hover .vlog-overlay {
    opacity: 1; /* Affiche l'overlay */
}
.vlog-item:hover .play-button {
    transform: scale(1.1); /* Grossit légèrement le bouton play */
}


/* --- RESPONSIVITÉ DE LA SECTION VLOG --- */
@media (max-width: 992px) {
    .vlog-grid {
        /* Passe à 2 colonnes sur tablette */
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 250px); /* On ajuste les hauteurs */
    }
    .vlog-item-large {
        /* L'item principal prend toute la première ligne */
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
}

@media (max-width: 768px) {
    .vlog-grid {
        /* Passe à 1 colonne sur mobile */
        grid-template-columns: 1fr;
        grid-template-rows: auto; /* Hauteur automatique */
    }
    .vlog-item-large {
        /* Réinitialise la position pour un empilement normal */
        grid-column: auto;
        grid-row: auto;
        height: 350px; /* Hauteur fixe pour l'item principal sur mobile */
    }
    .vlog-item {
        height: 300px; /* Hauteur fixe pour les autres items */
    }
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--dark-text);
    color: #cbd6e2; /* Couleur de texte gris clair pour une bonne lisibilité */
}

/* --- Pré-Footer (CTA) --- */
.footer-cta {
    background-color: #2c3e50; /* Un bleu nuit, légèrement différent du footer principal */
    padding: 4rem 0;
    text-align: center;
    color: #fff;
}

.footer-cta h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-cta p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.footer-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Pour la responsivité */
}

/* Style customisé pour le bouton secondaire sur fond sombre */
.btn-secondary-white {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.btn-secondary-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Footer Principal --- */
.main-footer {
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #4a5c71; /* Séparateur subtil */
}

.about-column .footer-logo {
    height: 35px;
    margin-bottom: 1rem;
}

.about-column p {
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    transition: color 0.2s;
}
.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- Ligne du bas (Copyright & Social) --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #cbd6e2;
    transition: color 0.2s, transform 0.2s;
}
.social-links a:hover {
    color: #fff;
    transform: scale(1.1);
}


/* --- RESPONSIVITÉ DU FOOTER --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .footer-cta h2 {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
    .footer-bottom {
        flex-direction: column-reverse; /* Met les réseaux sociaux en haut */
        gap: 1.5rem;
        text-align: center;
    }
}

/* Ajoute ceci dans style.css */
.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    color: #fff;
}

