/* =====================================================================
   Sauvetage Secourisme Touraine Saint-Avertin — Feuille de style
   Design moderne, responsive, accessible.
   ===================================================================== */

:root {
    /* Code couleur du logo FFSS : bleu roi + jaune/or */
    --navy:        #15357e;   /* bleu roi profond (fonds sombres, titres) */
    --navy-700:    #0f2657;   /* plus foncé (survol) */
    --navy-600:    #2a55b0;   /* plus clair */
    --gold:        #f7b500;   /* or du logo (boutons, accents) */
    --gold-600:    #d99e00;   /* or foncé (survol, accents sur fond clair) */
    --blue:        #2456c7;   /* bleu roi (liens, icônes) */
    --blue-50:     #eaf0ff;
    --red:         #e63946;   /* conservé uniquement pour les messages d'erreur */
    --red-600:     #d12f3c;
    --ink:         #1a1f2b;
    --muted:       #5b6577;
    --line:        #e6e9ef;
    --bg:          #ffffff;
    --bg-soft:     #f6f8fb;
    --bg-softer:   #eef2f8;
    --white:       #ffffff;
    --radius:      16px;
    --radius-sm:   10px;
    --shadow-sm:   0 1px 2px rgba(16,32,60,.06), 0 2px 8px rgba(16,32,60,.06);
    --shadow-md:   0 6px 24px rgba(16,32,60,.10);
    --shadow-lg:   0 18px 50px rgba(16,32,60,.18);
    --container:   1180px;
    --font:        'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --display:     'Sora', var(--font);
    --t:           .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word; /* évite qu'un mot/URL long (email, lien) ne déborde sur mobile */
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
    --b: var(--navy);
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--display); font-weight: 600; font-size: .98rem;
    padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
    line-height: 1; white-space: nowrap;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(247,181,0,.32); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(247,181,0,.42); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color:#fff; transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(36,86,199,.32); }
.btn-blue:hover { background: #1c46a8; color:#fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(36,86,199,.42); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color:#fff; }
.btn-grey { background: #e7ebf2; color: var(--navy); }
.btn-grey:hover { background: #d8dfeb; color: var(--navy); transform: translateY(-2px); }

/* ---------- En-tête / navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), #ffd34d); color: var(--navy); flex: none;
    box-shadow: 0 6px 16px rgba(247,181,0,.3);
}
.brand-logo { width: 48px; height: 48px; flex: none; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.08rem; }
.brand-text small { color: var(--muted); font-size: .76rem; }

.main-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: inline-block; padding: .55rem .85rem; border-radius: 10px;
    color: var(--navy); font-weight: 500; font-size: .96rem;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a.is-active { color: var(--blue); }
.nav-cta { margin-left: .5rem; }

/* Menus déroulants */
.main-nav .has-sub { position: relative; }
.main-nav .sub-toggle { display: inline-flex; align-items: center; gap: .2rem; }
.main-nav .has-sub.is-active > .sub-toggle { color: var(--blue); }
.main-nav .caret { transition: transform var(--t); }
.main-nav .subnav {
    position: absolute; top: calc(100% + 4px); left: 0; min-width: 210px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md);
    padding: 8px; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t), transform var(--t), visibility var(--t); z-index: 120;
}
.main-nav .has-sub:hover > .subnav,
.main-nav .has-sub:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.main-nav .has-sub:hover .caret { transform: rotate(180deg); }
.main-nav .subnav a { padding: .55rem .7rem; border-radius: 8px; white-space: nowrap; font-size: .94rem; }
.main-nav .subnav a:hover { background: var(--bg-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero accueil ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--navy);
}
/* Photo de fond (VPSP) + dégradé sombre pour la lisibilité du texte */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        linear-gradient(110deg, rgba(8,18,52,.96) 0%, rgba(11,26,72,.86) 38%, rgba(21,53,126,.52) 70%, rgba(21,53,126,.30) 100%),
        url('../img/img_VPSP.jpg') center 75% / cover no-repeat;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
    background-size: 26px 26px; opacity: .5;
}
.hero h1, .hero .hero-lead { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 84px 0 96px; position: relative; z-index: 1; }
.hero-layout > * { min-width: 0; } /* autorise les colonnes à rétrécir sous la largeur du contenu (évite le débordement mobile) */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display);
    font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
    color: #ffd24a; background: rgba(247,181,0,.12); border: 1px solid rgba(247,181,0,.35);
    padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: #ffce3a; }
.hero-lead { font-size: 1.15rem; color: #c8d4e4; max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats .stat { }
.hero-stats .num { font-family: var(--display); font-size: 2rem; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: .85rem; color: #9fb0c6; }

/* ---------- Fil Instagram (colonne hero) ---------- */
.insta-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 18px; backdrop-filter: blur(6px);
}
.insta-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 14px; }
.insta-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf);
    display: grid; place-items: center; color: #fff;
}
.insta-head .meta { line-height: 1.2; min-width: 0; }
.insta-head .meta strong { color: #fff; font-size: .95rem; display: block; overflow-wrap: anywhere; }
.insta-head .meta span { color: #9fb0c6; font-size: .8rem; }
.insta-head a { margin-left: auto; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.insta-grid a {
    position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, #2a55b0, #15357e); display: grid; place-items: center;
}
.insta-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.insta-grid a:hover img { transform: scale(1.08); }
.insta-grid .ph { color: rgba(255,255,255,.25); }
.insta-embed { border-radius: 12px; overflow: hidden; }
.insta-embed iframe { width: 100% !important; max-width: 100%; border: 0; display: block; }
.insta-foot { margin-top: 14px; }
.insta-foot a { display: block; text-align: center; color: #fff; font-weight: 600; font-size: .9rem; padding: .6rem; border-radius: 10px; background: rgba(255,255,255,.08); }
.insta-foot a:hover { background: rgba(255,255,255,.16); }

/* ---------- Sections génériques ---------- */
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow { display:inline-block; font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* bande de stats */
.statband { background: var(--navy); color:#fff; }
.statband .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; text-align: center; }
.statband .num { font-family: var(--display); font-size: 2.4rem; font-weight: 800; }
.statband .num .accent { color: #ffce3a; }
.statband .lbl { color: #aebfd4; font-size: .92rem; }

/* cartes services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .ico {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--blue-50); color: var(--blue); margin-bottom: 18px;
}
.card.red .ico { background: #fff5d6; color: var(--gold-600); }
.card.navy .ico { background: #e9eff7; color: var(--navy); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .more { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--blue); display: inline-flex; gap: .35rem; }
.card .more:hover { gap: .6rem; }

/* split (texte + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media .media-frame {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3; background: linear-gradient(135deg, var(--bg-softer), #dde6f2);
    display: grid; place-items: center; color: #9fb0c6;
}
.split-media .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.checklist svg { flex: none; color: var(--gold-600); margin-top: 3px; }

/* Encadré mis en avant (note importante) */
.callout { display: flex; gap: 1rem; align-items: flex-start; background: var(--blue-50); border: 1px solid #cfdcfb; border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 1.8rem 0 0; }
.callout svg { color: var(--blue); flex: none; margin-top: 3px; }
.callout p { margin: 0; color: var(--navy); }
.callout strong { color: var(--navy); }

/* Carte de téléchargement (PDF) */
.dl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; text-align: center; box-shadow: var(--shadow-sm); }
.dl-card .dl-ico { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center; background: #fff5d6; color: var(--gold-600); }
.dl-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.dl-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }

/* ---------- Cartes interactives "Nos moyens" ---------- */
.moyens-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.moyen-card {
    position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(135deg, var(--navy-600), var(--navy));
    box-shadow: var(--shadow-sm); cursor: pointer; outline-offset: 3px;
    transition: transform var(--t), box-shadow var(--t);
}
.moyen-card:hover, .moyen-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.moyen-photo { position: absolute; inset: 0; display: grid; place-items: center; }
.moyen-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.moyen-card:hover .moyen-photo img, .moyen-card:focus-within .moyen-photo img, .moyen-card.is-revealed .moyen-photo img { transform: scale(1.08); }
.moyen-photo .ph { color: rgba(255,255,255,.3); }

/* indice d'interactivité */
.moyen-hint {
    position: absolute; top: 12px; right: 12px; z-index: 4;
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold); color: var(--navy); font-family: var(--display); font-weight: 700;
    font-size: 1.2rem; line-height: 1; box-shadow: 0 4px 10px rgba(0,0,0,.25);
    transition: opacity var(--t), transform var(--t);
}
.moyen-card:hover .moyen-hint, .moyen-card:focus-within .moyen-hint, .moyen-card.is-revealed .moyen-hint { opacity: 0; transform: scale(.6); }

/* nom (toujours visible) */
.moyen-name {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 18px 18px;
    background: linear-gradient(to top, rgba(8,18,52,.94) 10%, rgba(8,18,52,0)); color: #fff;
    transition: opacity var(--t);
}
.moyen-name strong { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.moyen-name span { font-size: .78rem; color: #c8d4e4; }
.moyen-card:hover .moyen-name, .moyen-card:focus-within .moyen-name, .moyen-card.is-revealed .moyen-name { opacity: 0; }

/* panneau d'infos (au survol / focus) */
.moyen-reveal {
    position: absolute; inset: 0; z-index: 3; padding: 22px 20px;
    background: linear-gradient(160deg, rgba(21,53,126,.95), rgba(8,18,52,.97));
    color: #eaf0ff; display: flex; flex-direction: column; justify-content: flex-end;
    opacity: 0; transform: translateY(10%); transition: opacity .35s ease, transform .35s ease;
}
.moyen-card:hover .moyen-reveal, .moyen-card:focus-within .moyen-reveal, .moyen-card.is-revealed .moyen-reveal { opacity: 1; transform: none; }
.moyen-bar { width: 38px; height: 4px; border-radius: 4px; background: var(--gold); margin-bottom: 12px; }
.moyen-reveal h3 { color: #fff; font-size: 1.1rem; margin-bottom: .35rem; }
.moyen-reveal p { color: #c8d4e4; font-size: .86rem; margin-bottom: .8rem; }
.moyen-specs { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.moyen-specs li { display: grid; grid-template-columns: auto 1fr; gap: .5rem; font-size: .82rem; align-items: baseline; }
.moyen-specs b { color: var(--gold); font-weight: 600; white-space: nowrap; }
.moyen-specs span { color: #dbe4f2; }

@media (max-width: 980px) { .moyens-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .moyens-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .moyens-grid { grid-template-columns: 1fr; } }

/* feature pills */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 2rem; }
.pill { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-size: .88rem; font-weight: 500; color: var(--navy); }
.pill-price { background: var(--blue-50); border-color: #cfdcfb; color: var(--blue); font-weight: 600; }
.formation-date { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.formation-date svg { color: var(--gold-600); flex: none; }
.formation-date strong { color: var(--navy); }

/* ---------- Sessions de formation (partie publique) ---------- */
.session-list { margin: .4rem 0 .2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.session-list-head {
    display: flex; align-items: center; gap: .45rem; padding: .7rem 1.1rem;
    font-family: var(--display); font-weight: 700; font-size: .82rem;
    text-transform: uppercase; letter-spacing: .05em; color: var(--navy);
    background: var(--white); border-bottom: 1px solid var(--line);
}
.session-list-head svg { color: var(--gold-600); flex: none; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; }
.session-row + .session-row { border-top: 1px solid var(--line); }
.session-info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.session-tag {
    font-family: var(--display); font-weight: 700; font-size: .72rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--gold-600);
}
.session-dates { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.session-dates svg { color: var(--gold-600); flex: none; }
.session-row .btn { flex: none; box-shadow: none; }
.session-row .btn:hover { box-shadow: 0 8px 20px rgba(36,86,199,.32); }
@media (max-width: 480px) {
    .session-row { flex-direction: column; align-items: stretch; gap: .7rem; }
    .session-row .btn { justify-content: center; }
}

/* ---------- Carte formation dépliable (« Voir plus ») ---------- */
.cards-expandable { align-items: start; }
.formation-more-btn {
    display: none; /* révélé par le JS ; sans JS, le contenu reste visible */
    align-items: center; gap: .4rem; margin-top: .15rem;
    font-family: var(--display); font-weight: 600; font-size: .92rem;
    color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer;
}
.formation-more-btn:hover { color: var(--navy); }
.formation-more-btn .more-caret { transition: transform var(--t); }
.formation-more-btn[aria-expanded="true"] .more-caret { transform: rotate(180deg); }
.formation-more { overflow: hidden; transition: max-height .35s ease; margin-bottom: 1.1rem; }
.formation-more-inner { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; line-height: 1.65; }
.formation-more-inner > :first-child { margin-top: 0; }
.formation-more-inner > :last-child { margin-bottom: 0; }
.formation-more-inner h3, .formation-more-inner h4 { color: var(--navy); font-size: 1.02rem; margin: 1rem 0 .4rem; }
.formation-more-inner a { color: var(--blue); font-weight: 500; text-decoration: underline; }
.formation-more-inner a:hover { color: var(--navy); }
.formation-more-inner ul, .formation-more-inner ol { margin: .4rem 0 .8rem; padding-left: 1.2rem; }
.formation-more-inner li { margin-bottom: .3rem; }

/* CTA bandeau */
.cta {
    background: linear-gradient(135deg, var(--gold), #ffd34d); color: var(--navy);
    border-radius: 24px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta h2 { color: var(--navy); }
.cta p { color: rgba(15,38,87,.86); max-width: 50ch; margin-inline: auto; font-size: 1.1rem; }
.cta .btn-dark { background: var(--navy); color: #fff; }
.cta .btn-ghost-light { background: rgba(15,38,87,.08); color: var(--navy); border-color: rgba(15,38,87,.35); }
.cta .btn-ghost-light:hover { background: rgba(15,38,87,.16); color: var(--navy); }
.cta .hero-actions { justify-content: center; margin-top: 1.6rem; }

/* ---------- Bannière de page interne ---------- */
.page-hero {
    background: radial-gradient(900px 400px at 85% -20%, #2a55b0 0%, transparent 60%),
                linear-gradient(150deg, var(--navy) 0%, #0a1f4d 100%);
    color: #fff; padding: 64px 0; position: relative;
}
.page-hero .crumb { color: #9fb0c6; font-size: .9rem; margin-bottom: .8rem; }
.page-hero .crumb a { color: #c8d4e4; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #c8d4e4; max-width: 60ch; margin: 0; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.post-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--bg-softer), #dde6f2); overflow: hidden; display: grid; place-items: center; color:#9fb0c6; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-body .date { color: var(--muted); font-size: .82rem; margin-bottom: .5rem; }
.post-body h3 { margin-bottom: .5rem; }
.post-body h3 a { color: var(--navy); }
.post-body h3 a:hover { color: var(--blue); }
.post-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-body .more { color: var(--blue); font-weight: 600; font-family: var(--display); font-size: .9rem; margin-top: .8rem; }

/* article seul */
.article { max-width: 760px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin: 0 0 2rem; box-shadow: var(--shadow-md); }
.article .article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.article-content { font-size: 1.08rem; }
.article-content h2, .article-content h3 { margin-top: 1.8rem; }
.article-content img { border-radius: var(--radius-sm); margin: 1.4rem 0; }
.article-content blockquote { border-left: 4px solid var(--gold); margin: 1.4rem 0; padding: .4rem 1.2rem; color: var(--muted); background: var(--bg-soft); border-radius: 0 8px 8px 0; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--navy); }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: #fff; transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-weight: 500; }
.alert-success { background: #e7f8ee; color: #157347; border: 1px solid #b6e6c9; }
.alert-error   { background: #fdecee; color: #b02a37; border: 1px solid #f3c0c5; }
.alert-info    { background: var(--blue-50); color: #1d4ed8; border: 1px solid #c7d7fb; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.info-list strong { display: block; color: var(--navy); }
.info-list span, .info-list a { color: var(--muted); }

/* ---------- Honeypot anti-spam ---------- */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8d4e4; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding: 64px 0 40px; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: #c8d4e4; }
.footer-col a:hover { color: #fff; }
.footer-about p { color: #9fb0c6; font-size: .95rem; max-width: 38ch; }
.brand--footer { color:#fff; margin-bottom: 1rem; }
.brand--footer .brand-text strong { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--blue); }
.footer-contact li { margin-bottom: .3rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 20px 24px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #8497b0; }
.footer-bottom a { color: #8497b0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Animations au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Navigation repliée en menu burger : la barre horizontale complète (7 liens +
   3 boutons) est large (~1190px) et, dans le conteneur centré de 1180px, ne
   tient sans déborder qu'à partir d'environ 1515px de large. En dessous —
   smartphones, tablettes et laptops — on bascule sur le menu burger pour
   éviter tout débordement horizontal. */
@media (max-width: 1520px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
        max-height: 0; overflow: hidden; transition: max-height var(--t); box-shadow: var(--shadow-md);
    }
    .main-nav.open { max-height: calc(100vh - 76px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px; gap: .2rem; }
    .main-nav a { padding: .85rem 1rem; }
    .main-nav .subnav {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 .4rem .8rem; min-width: 0;
    }
    .main-nav .caret { display: none; }
    .nav-cta { margin: .4rem 0 0; }
    .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 980px) {
    .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 56px 0 64px; }
    .hero::before {
        background:
            linear-gradient(180deg, rgba(8,18,52,.92) 0%, rgba(11,26,72,.78) 45%, rgba(21,53,126,.6) 100%),
            url('../img/img_VPSP.jpg') center 25% / cover no-repeat;
    }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .split.reverse .split-media { order: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .statband .grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .section { padding: 56px 0; }
    .cta { padding: 40px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom .container { flex-direction: column; }
}
@media (max-width: 460px) {
    .statband .grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
