/* =========================================================
   Groupe BSaN — variables de marque (brand book BSaN Academy)
   ========================================================= */
:root {
    --bsan-bleu-petrole: #24587A;
    --bsan-bleu-ciel:    #98B9F2;
    --bsan-violet:       #391778;
    --bsan-rose:         #BD026B;
    --bsan-noir:         #000000;
    --bsan-blanc:        #FFFFFF;
    --bsan-gris-clair:   #F5F5F5; /* TODO: valeur exacte non chiffrée au brand book, à confirmer */

    --bsan-font-titre:   'Aventa', Arial, sans-serif;      /* Aventa Black/Light — licence à confirmer (question ouverte) */
    --bsan-font-texte:   'Helvetica Now Display', Helvetica, Arial, sans-serif;
}

/* TODO: déclarer les @font-face Aventa/Helvetica Now Display une fois
   les licences web fonts confirmées (cf. questions ouvertes brief §11.7) */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--bsan-font-texte);
    color: var(--bsan-noir);
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: var(--bsan-font-titre);
    font-weight: 900; /* Aventa Black */
    color: var(--bsan-bleu-petrole);
}

a {
    color: var(--bsan-bleu-petrole);
}

.btn-pilule {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: var(--bsan-rose);
    color: var(--bsan-blanc);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}
.btn-pilule:hover { opacity: 0.85; }

.btn-pilule--bleu {
    background: var(--bsan-bleu-petrole);
}

/* =========================================================
   Header sticky
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bsan-blanc);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.site-header .logo img { height: 48px; }

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-header nav a {
    text-decoration: none;
    color: var(--bsan-noir);
    font-weight: 600;
}

/* =========================================================
   Hero accueil — panneau diagonal + cadres photo hexagonaux
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bsan-blanc);
    min-height: 660px;
}
.hero-panel-droite {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 60%;
    background: linear-gradient(155deg, #2c6485 0%, var(--bsan-bleu-petrole) 45%, #133349 100%);
    clip-path: polygon(9% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}
.hero-diag {
    position: absolute;
    background: var(--bsan-bleu-ciel);
    opacity: 0.4;
    z-index: 1;
}
.hero-diag-1 { top: -60px; right: 14%; width: 90px; height: 200px; transform: rotate(18deg); }
.hero-diag-2 { bottom: -40px; right: 2%; width: 110px; height: 240px; transform: rotate(18deg); }

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 2rem 0;
    align-items: stretch;
}
.hero-col-gauche { padding: 1rem 0 2.5rem; }
.hero-logo-bloc { display: flex; align-items: center; gap: 12px; margin-bottom: 2rem; }
.logo-mark-grand {
    width: 46px; height: 46px;
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px;
}
.logo-mark-grand span { display: block; }
.logo-mark-grand span:nth-child(1) { background: var(--bsan-bleu-petrole); clip-path: polygon(0 0,100% 0,50% 100%); }
.logo-mark-grand span:nth-child(2) { background: var(--bsan-bleu-ciel); clip-path: polygon(0 0,100% 0,50% 100%); }
.logo-mark-grand span:nth-child(3) { background: var(--bsan-rose); clip-path: polygon(50% 0,100% 100%,0 100%); }
.logo-mark-grand span:nth-child(4) { background: var(--bsan-violet); clip-path: polygon(50% 0,100% 100%,0 100%); }
.hero-logo-texte { font-family: var(--bsan-font-titre); line-height: 1.05; }
.hero-logo-texte .groupe { font-size: 14px; font-weight: 700; color: var(--bsan-bleu-petrole); letter-spacing: 0.04em; }
.hero-logo-texte .bsan { font-size: 26px; font-weight: 700; color: var(--bsan-bleu-petrole); }
.hero-logo-texte .baseline { font-family: var(--bsan-font-texte); font-size: 12px; font-weight: 400; color: #6c7073; margin-top: 2px; }

.hero-accroche {
    color: var(--bsan-bleu-petrole);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-top: 0.6rem;
    border-top: 3px solid var(--bsan-rose);
    display: inline-block;
    margin-bottom: 1.1rem;
}
.hero-col-gauche h1 {
    font-size: 50px;
    line-height: 1.08;
    color: var(--bsan-bleu-petrole);
}
.hero-col-gauche h1 .accent { color: var(--bsan-rose); }
.hero-col-gauche .sous-titre {
    color: #3c4043;
    font-size: 18px;
    font-weight: 500;
    max-width: 38ch;
    margin: 1.25rem 0 1.75rem;
}
.hero-col-gauche .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-col-gauche .actions a { display: inline-flex; align-items: center; }
.hero-col-gauche .actions a svg { width: 16px; height: 16px; margin-left: 6px; }
.btn-contour-petrole {
    padding: 0.68rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid var(--bsan-bleu-petrole);
    color: var(--bsan-bleu-petrole);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease;
}
.btn-contour-petrole:hover { background: rgba(36,88,122,0.06); }
.hero-poles-reperes { margin-top: 1.75rem; color: #6c7073; font-size: 14px; }
.hero-poles-reperes span { color: var(--bsan-rose); margin: 0 0.6rem; }

.hero-col-droite { position: relative; min-height: 560px; }

.hex-photo-principal {
    position: absolute;
    top: 4%; left: 12%;
    width: 300px; height: 400px;
    padding: 10px;
}
.hex-photo-principal .hex-interieur {
    width: 100%; height: 100%;
    clip-path: polygon(50% 0%, 100% 14%, 100% 86%, 50% 100%, 0% 86%, 0% 14%);
    background: repeating-linear-gradient(135deg, #3a6f8f, #3a6f8f 12px, #305f7c 12px, #305f7c 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 1rem;
}
.hex-photo-principal .icone-photo { width: 36px; height: 36px; opacity: 0.8; }
.hex-photo-principal .label-photo { font-size: 12.5px; font-weight: 600; max-width: 75%; }

.hex-photo-secondaire {
    position: absolute;
    left: -3%; top: 46%;
    width: 150px; height: 150px;
    padding: 8px;
    z-index: 3;
}
.hex-photo-secondaire .hex-interieur {
    width: 100%; height: 100%;
    clip-path: polygon(50% 0%, 100% 14%, 100% 86%, 50% 100%, 0% 86%, 0% 14%);
    background: repeating-linear-gradient(135deg, #e7ebe6, #e7ebe6 8px, #dde2db 8px, #dde2db 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c868c;
}
.hex-photo-secondaire .icone-photo { width: 22px; height: 22px; }

.hero-texte-manuscrit {
    position: absolute;
    top: 6%; right: 4%;
    width: 150px;
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: var(--bsan-blanc);
    line-height: 1.25;
    text-align: left;
}
.hero-texte-manuscrit .trait { width: 40px; height: 2px; background: var(--bsan-rose); margin-top: 6px; border: none; }

.hero-identite {
    position: absolute;
    right: 4%; top: 54%;
    color: var(--bsan-blanc);
    text-align: left;
}
.hero-identite .nom { font-weight: 700; font-size: 15px; }
.hero-identite .fonction { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 2px; }

.hero-dot-grid {
    position: absolute;
    right: 5%; bottom: 6%;
    display: grid;
    grid-template-columns: repeat(4, 6px);
    gap: 7px;
}
.hero-dot-grid span { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.55); display: block; }

/* Bandeau chiffres — bas du hero */
.chiffres-bandeau { background: var(--bsan-gris-clair); border-top: 1px solid #e7e9e4; }
.chiffres-bandeau .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.25rem 2rem;
    text-align: left;
}
.chiffres-bandeau .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    border-left: 1px solid #d8dbd6;
}
.chiffres-bandeau .stat-item:first-child { border-left: none; padding-left: 0; }
.chiffres-bandeau .stat-icone { width: 34px; height: 34px; color: var(--bsan-bleu-petrole); flex-shrink: 0; }
.chiffres-bandeau .valeur { font-family: var(--bsan-font-titre); font-size: 24px; font-weight: 700; color: var(--bsan-bleu-petrole); }
.chiffres-bandeau .libelle { color: #5c6063; font-size: 13px; margin-top: 0.15rem; }

@media (max-width: 860px) {
    .hero-panel-droite, .hero-diag { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
    .hero-logo-bloc { justify-content: center; }
    .hero-col-gauche h1 { font-size: 36px; }
    .hero-accroche { border-top: none; border-left: 3px solid var(--bsan-rose); padding: 0 0 0 0.6rem; }
    .hero-col-gauche .sous-titre { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-col-gauche .actions { flex-direction: column; align-items: stretch; }
    .hero-col-gauche .actions a { justify-content: center; }
    .hero-col-droite {
        background: linear-gradient(155deg, #2c6485 0%, var(--bsan-bleu-petrole) 45%, #133349 100%);
        border-radius: 20px;
        padding: 3rem 1.5rem 2rem;
        margin-top: 1rem;
    }
    .hex-photo-principal, .hex-photo-secondaire { position: static; margin: 0 auto 1rem; }
    .hero-texte-manuscrit, .hero-identite { position: static; text-align: center; margin: 0.75rem auto; width: 100%; }
    .hero-texte-manuscrit .trait, .hero-dot-grid { margin-left: auto; margin-right: auto; }
    .hero-dot-grid { position: static; justify-content: center; margin-top: 1rem; }
    .chiffres-bandeau .wrap { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .chiffres-bandeau .stat-item { border-left: none; border-top: 1px solid #d8dbd6; padding: 1rem 0 0; margin-top: 1rem; }
    .chiffres-bandeau .stat-item:first-child { border-top: none; margin-top: 0; padding-top: 0; }
}

/* =========================================================
   Hero pages de pôle
   ========================================================= */
.hero-pole {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    padding: 2rem;
}
.hero-pole::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}
.hero-pole .hero-pole-content {
    position: relative;
    z-index: 1;
    color: var(--bsan-blanc);
    max-width: 600px;
}
.hero-pole h1 { color: var(--bsan-blanc); }

/* =========================================================
   Bouton flottant Doctolib
   ========================================================= */
.bouton-doctolib-flottant {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
}

/* =========================================================
   Blocs génériques
   ========================================================= */
.chiffres-cles {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}
.chiffres-cles .chiffre { font-size: 2.5rem; font-weight: 900; color: var(--bsan-bleu-petrole); }

.logos-partenaires {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.logos-partenaires img { max-height: 60px; filter: grayscale(100%); opacity: 0.7; }

.catalogue-formations { display: grid; gap: 1.5rem; padding: 2rem; }
.formation-card { border: 1px solid #eee; border-radius: 8px; padding: 1.5rem; }
.formation-card .badges span {
    display: inline-block;
    background: var(--bsan-bleu-ciel);
    color: var(--bsan-bleu-petrole);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* =========================================================
   Formulaire de contact
   ========================================================= */
.bsan-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.formulaire-contact-form p { margin-bottom: 1rem; }
.formulaire-contact-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.formulaire-contact-form input[type="text"],
.formulaire-contact-form input[type="email"],
.formulaire-contact-form textarea {
    width: 100%;
    max-width: 480px;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.panneau-reponse {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.panneau-succes { background: #e6f4ea; color: #1e4620; border: 1px solid #b7dfc0; }
.panneau-erreur { background: #fbe7e9; color: #7a1f26; border: 1px solid #f0b7bc; }

.site-footer {
    background: var(--bsan-bleu-petrole);
    color: var(--bsan-blanc);
    padding: 3rem 2rem;
}
.site-footer a { color: var(--bsan-blanc); }
.footer-identite { margin-bottom: 1.5rem; }
.footer-nom { font-family: var(--bsan-font-titre); font-weight: 700; font-size: 20px; letter-spacing: 0.03em; margin: 0; }
.footer-baseline { font-size: 13px; opacity: 0.75; margin: 0.15rem 0 0; }

/* Pôles — accroche courte sous le titre de carte */
.pole-card .pole-accroche { font-weight: 700; color: var(--bsan-bleu-petrole); margin: 0.25rem 0 0.5rem; }

/* Raisons / teasers de l'accueil */
.raisons-liste { list-style: none; padding: 0; display: grid; gap: 0.75rem; max-width: 640px; margin: 0 auto; }
.raisons-liste li { padding-left: 1.25rem; border-left: 2px solid var(--bsan-bleu-ciel); }

.teaser-fondatrice, .teaser-international, .teaser-temoignages, .teaser-blog {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.temoignages-grid, .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: left;
    margin: 1.5rem 0;
}
.temoignage-card { border: 1px solid #eee; border-radius: 8px; padding: 1.25rem; }

.cta-final {
    background: var(--bsan-gris-clair);
    text-align: center;
    padding: 3.5rem 2rem;
}

.hero-accroche-pole { color: var(--bsan-blanc); font-size: 16px; margin-top: 0.5rem; }

/* Repères institutionnels (page Le Groupe) */
.reperes-institutions { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.reperes-institutions li {
    background: var(--bsan-gris-clair);
    color: var(--bsan-bleu-petrole);
    font-weight: 600;
    font-size: 13px;
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

/* Cartes catalogue Academy enrichies */
.formation-objectif-court { font-weight: 600; color: var(--bsan-bleu-petrole); margin: 0.4rem 0; }
.formation-public { font-size: 13px; color: #5c6063; margin: 0.3rem 0; }
.formation-cta { display: inline-block; margin-top: 0.75rem; font-weight: 600; color: var(--bsan-rose); text-decoration: none; }

.pourquoi-academy { padding: 2.5rem 2rem; text-align: center; }
.pourquoi-academy ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.pourquoi-academy li {
    border: 1px solid var(--bsan-bleu-ciel);
    color: var(--bsan-bleu-petrole);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================
   SYSTÈME DE MISE EN SCÈNE — rythme visuel commun à toutes les pages
   (fonds alternés, cartes, grille 2 colonnes, icônes, séparateurs,
   accents géométriques, réassurance, CTA final fort)
   ========================================================= */

:root {
    --bsan-bleu-tres-pale: #EEF3FA;
}

.section-espacee { padding: 4.5rem 2rem; }
.section-blanc { background: var(--bsan-blanc); }
.section-gris { background: var(--bsan-gris-clair); }
.section-bleu-pale { background: var(--bsan-bleu-tres-pale); }

.contenu-page {
    max-width: 1200px;
    margin: 0 auto;
}
.contenu-page h2 {
    font-size: 30px;
    margin-bottom: 0.5rem;
}
.contenu-page .chapeau {
    color: #5c6063;
    font-size: 17px;
    max-width: 60ch;
    margin-bottom: 2rem;
}

.separateur-fin {
    border: none;
    border-top: 1px solid #e2e5e0;
    margin: 0;
}

/* Grille 2 colonnes — alternance texte / image ou texte / liste */
.grille-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.grille-2col.inverse { direction: rtl; }
.grille-2col.inverse > * { direction: ltr; }
.grille-2col .visuel-espace-reserve {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    border: 2px dashed #b9c3c9;
    background: repeating-linear-gradient(135deg, #EDF1F3, #EDF1F3 10px, #E4E9EC 10px, #E4E9EC 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c868c;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
}

/* Cartes douces réutilisables */
.grille-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.carte-douce {
    background: var(--bsan-blanc);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 6px 20px rgba(20,50,70,0.06);
    border: 1px solid #eef0ec;
}
.carte-douce h3 { font-size: 18px; margin-top: 0.75rem; }
.carte-douce p { color: #4a4f52; font-size: 14.5px; }

/* Icônes sobres */
.icone-cercle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bsan-bleu-tres-pale);
    color: var(--bsan-bleu-petrole);
    display: flex;
    align-items: center;
    justify-content: center;
}
.icone-cercle svg { width: 22px; height: 22px; }

/* Bande de réassurance (badges courts) */
.bande-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}
.badge-reassurance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bsan-blanc);
    border: 1px solid #e2e5e0;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bsan-bleu-petrole);
}

/* Étapes numérotées (méthode / parcours) */
.etapes-liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    counter-reset: etape;
    margin-top: 2rem;
}
.etape-item {
    position: relative;
    padding-top: 2.5rem;
}
.etape-item::before {
    counter-increment: etape;
    content: counter(etape);
    position: absolute;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bsan-bleu-petrole);
    color: var(--bsan-blanc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--bsan-font-titre);
}
.etape-item h3 { font-size: 16px; margin: 0 0 0.35rem; }
.etape-item p { font-size: 14px; color: #4a4f52; margin: 0; }

/* Frise chronologique */
.frise-chronologique {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bsan-bleu-ciel);
}
.frise-item { min-width: 160px; }
.frise-annee {
    font-family: var(--bsan-font-titre);
    font-weight: 700;
    color: var(--bsan-rose);
    font-size: 22px;
}
.frise-item p { font-size: 14px; color: #4a4f52; margin: 0.25rem 0 0; }

/* Accent géométrique discret (motif plaquette) */
.forme-geo-accent {
    position: absolute;
    width: 60px; height: 60px;
    background: var(--bsan-bleu-ciel);
    opacity: 0.25;
    transform: rotate(18deg);
    z-index: 0;
}

/* CTA final fort */
.cta-final-fort {
    background: linear-gradient(155deg, var(--bsan-bleu-petrole), #133349);
    color: var(--bsan-blanc);
    text-align: center;
    padding: 4rem 2rem;
}
.cta-final-fort h2 { color: var(--bsan-blanc); }
.cta-final-fort p { color: rgba(255,255,255,0.8); max-width: 50ch; margin: 0 auto 1.5rem; }

/* Grille de logos partenaires (références) */
.grille-references {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}
.grille-references span {
    font-size: 14px;
    color: #6c7073;
    font-weight: 600;
}
