/* =============================================
   VINCENT FLIBUSTIER - refonte novembre 2026
   Charte conservée : navy + or, Oswald + Inter.
   ============================================= */

:root {
    --nuit-900: #0A1220;
    --nuit-800: #101B2E;
    --nuit-700: #16243C;
    --nuit-600: #1E3150;
    --nuit-500: #2A4270;
    --or-500: #D9B872;
    --or-400: #E2C584;
    --or-300: #ECD5A2;
    --or-600: #C29F58;
    --or-700: #8A6B2E;
    --papier: #F4F2FB;
    --papier-2: #EAE7F6;
    --trait: #DEDAEE;
    --encre: #161B2B;
    --encre-douce: #4A4862;
    --clair: #e8e6e3;
    --clair-doux: #a9b1c1;
    --rayon: 14px;
    --rayon-grand: 24px;
    --titres: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --texte: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --aise: cubic-bezier(0.22, 1, 0.36, 1);
    --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--texte); font-size: 17px; line-height: 1.65; color: var(--encre); background: var(--nuit-900); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--or-400); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding-inline: max(22px, env(safe-area-inset-left, 0px)) max(22px, env(safe-area-inset-right, 0px)); }
.evitement { position: absolute; left: -999px; top: 0; background: var(--or-500); color: var(--nuit-900); padding: 10px 16px; z-index: 2000; font-weight: 600; }
.evitement:focus { left: 12px; top: 12px; }

/* Barre de progression de lecture */
.progression { position: fixed; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--or-600), var(--or-300)); transform-origin: 0 50%; transform: scaleX(var(--avance, 0)); z-index: 1500; }

/* =============== NAVIGATION =============== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; padding: 18px 0; transition: background .35s var(--aise), padding .35s var(--aise), box-shadow .35s var(--aise); }
.nav.est-descendu { background: rgba(10, 18, 32, .88); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); padding: 10px 0; box-shadow: 0 1px 0 rgba(217, 184, 114, .18); }
.nav__in { max-width: var(--largeur); margin: 0 auto; padding-inline: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo img { height: 40px; width: auto; border-radius: 4px; mix-blend-mode: lighten; }
.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__lien { display: block; padding: 8px 13px; font-size: .9rem; font-weight: 500; color: var(--clair); text-decoration: none; border-radius: 8px; opacity: .82; transition: opacity .2s, background .2s, color .2s; }
.nav__lien:hover, .nav__lien.est-actif { opacity: 1; color: var(--or-300); }
.nav__lien--cta { margin-left: 10px; background: var(--or-500); color: var(--nuit-900); opacity: 1; font-weight: 600; padding-inline: 18px; }
.nav__lien--cta:hover { background: var(--or-300); color: var(--nuit-900); }
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--clair); transition: transform .3s var(--aise), opacity .2s; }
.nav__burger span:nth-child(1) { top: 14px; } .nav__burger span:nth-child(2) { top: 21px; } .nav__burger span:nth-child(3) { top: 28px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============== ÉLÉMENTS COMMUNS =============== */
.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section--clair { background: var(--papier); color: var(--encre); }
.section--nuit { background: var(--nuit-800); color: var(--clair); }
.section--nuit + .section--nuit { background: var(--nuit-900); }

.etiquette { font-family: var(--titres); font-size: .82rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--or-600); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.etiquette::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section--nuit .etiquette, .ouverture .etiquette { color: var(--or-400); }

.titre { font-family: var(--titres); font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; max-width: 22ch; }
.titre--geant { font-size: clamp(2.3rem, 6.4vw, 5rem); max-width: 16ch; }
.chapeau { font-size: 1.08rem; margin-top: 16px; max-width: 58ch; color: var(--encre-douce); }
.section--nuit .chapeau { color: var(--clair-doux); }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .96rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--aise), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.bouton:hover { transform: translateY(-2px); }
.bouton--or { background: var(--or-500); color: var(--nuit-900); box-shadow: 0 8px 28px rgba(217, 184, 114, .28); }
.bouton--or:hover { background: var(--or-300); box-shadow: 0 12px 34px rgba(217, 184, 114, .4); }
.bouton--trait { border-color: rgba(232, 230, 227, .38); color: var(--clair); }
.bouton--trait:hover { border-color: var(--or-400); color: var(--or-300); }
.bouton--sombre { background: var(--nuit-800); color: var(--clair); }
.bouton--sombre:hover { background: var(--nuit-600); }

/* Apparition au défilement : visible par défaut, animée seulement si le script tourne */
.js .revele { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--aise), transform .8s var(--aise); transition-delay: var(--retard, 0ms); }
.js .revele.est-vu { opacity: 1; transform: none; }

/* Lueur qui suit le pointeur sur les cartes sombres */
.lueur { position: relative; isolation: isolate; }
.lueur::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--px, 50%) var(--py, 50%), rgba(217, 184, 114, .2), transparent 60%); }
.lueur:hover::before { opacity: 1; }

/* =============== OUVERTURE =============== */
.ouverture { position: relative; background: radial-gradient(120% 90% at 78% 8%, var(--nuit-500) 0%, var(--nuit-800) 42%, var(--nuit-900) 100%); color: var(--clair); padding: clamp(128px, 17vh, 190px) 0 0; overflow: hidden; }
.ouverture__mer { position: absolute; inset: auto 0 0 0; width: 100%; height: 62%; pointer-events: none; opacity: .9; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); mask-image: linear-gradient(to bottom, transparent, #000 34%); }
.ouverture__grille { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pastille { display: inline-block; font-family: var(--titres); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or-300); border: 1px solid rgba(217, 184, 114, .4); border-radius: 999px; padding: 7px 18px; margin-bottom: 26px; background: rgba(10, 18, 32, .4); }
.ouverture__titre { font-family: var(--titres); font-weight: 700; text-transform: uppercase; font-size: clamp(2.5rem, 6.3vw, 5.1rem); line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
.ouverture__titre em { font-style: normal; color: var(--or-400); display: inline-block; }
.ouverture__titre .mot, .entete-page .titre .mot { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .08em; margin-top: -.16em; }
.ouverture__titre .mot > span, .entete-page .titre .mot > span { display: inline-block; }
.js .ouverture__titre .mot > span, .js .entete-page .titre .mot > span { animation: monte .9s var(--aise) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes monte { from { transform: translateY(125%); } to { transform: none; } }
.ouverture__sous { font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.6; color: #cfd5e0; max-width: 56ch; margin-top: 26px; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ouverture__parcours { margin-top: 30px; font-size: .92rem; color: var(--clair-doux); max-width: 58ch; padding-left: 16px; border-left: 2px solid rgba(217, 184, 114, .5); }

.ouverture__portrait { position: relative; aspect-ratio: 1; width: min(100%, 360px); justify-self: end; display: grid; place-items: center; }
.ouverture__portrait img { width: 80%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(217, 184, 114, .35); position: relative; }
.boussole { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(var(--cap, 0deg)); transition: transform .2s linear; }
.boussole__cercle { fill: none; stroke: rgba(217, 184, 114, .5); stroke-width: 1; }
.boussole__graduations { fill: none; stroke: rgba(217, 184, 114, .75); stroke-width: 10; stroke-dasharray: 1.4 16.03; }
.boussole__points text { font-family: var(--titres); font-size: 17px; fill: var(--or-300); text-anchor: middle; letter-spacing: .1em; }

.chiffres { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(54px, 8vw, 96px); border-top: 1px solid rgba(217, 184, 114, .28); }
.chiffres > div { padding: 26px 20px 34px 0; }
.chiffres > div + div { padding-left: 24px; border-left: 1px solid rgba(217, 184, 114, .16); }
.chiffres dt { font-family: var(--titres); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--or-400); font-variant-numeric: tabular-nums; }
.chiffres dd { margin-top: 8px; font-size: .86rem; color: var(--clair-doux); letter-spacing: .02em; }

/* =============== LA FLOTTE =============== */
.flotte { background: var(--nuit-900); color: var(--clair); padding: 30px 0 34px; border-top: 1px solid rgba(217, 184, 114, .14); border-bottom: 1px solid rgba(217, 184, 114, .14); }
.flotte__titre { text-align: center; font-family: var(--titres); font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--clair-doux); margin-bottom: 20px; }
.defile { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.defile__piste { display: flex; width: max-content; animation: defile 34s linear infinite; }
.defile:hover .defile__piste { animation-play-state: paused; }
.defile__piste li { font-family: var(--titres); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.6rem); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; padding: 0 clamp(22px, 3.4vw, 46px); color: #d9dde6; display: flex; align-items: center; gap: clamp(44px, 6.8vw, 92px); }
.defile__piste li::after { content: "✦"; color: var(--or-500); font-size: .7em; margin-right: calc(-1 * clamp(22px, 3.4vw, 46px)); }
@keyframes defile { to { transform: translateX(-50%); } }

/* =============== LE CAP =============== */
.manifeste { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 70px); margin-top: clamp(34px, 5vw, 60px); align-items: start; }
.manifeste__texte { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.62; color: var(--encre-douce); }
.deux-listes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.liste-carte { border-radius: var(--rayon-grand); padding: 28px 26px; }
.liste-carte h3 { font-family: var(--titres); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.liste-carte li { padding: 10px 0; font-size: .98rem; line-height: 1.4; border-top: 1px solid; }
.liste-carte--sombre { background: var(--nuit-800); color: var(--clair); }
.liste-carte--sombre h3 { color: var(--clair-doux); }
.liste-carte--sombre li { border-color: rgba(255, 255, 255, .1); text-decoration: line-through; text-decoration-color: rgba(217, 184, 114, .7); color: #b9c0cd; }
.liste-carte--or { background: var(--or-500); color: var(--nuit-900); }
.liste-carte--or li { border-color: rgba(10, 18, 32, .18); font-weight: 600; }
.titre[data-eclaire] .mot-e { color: color-mix(in srgb, var(--encre) 22%, transparent); transition: color .5s; }
.titre[data-eclaire] .mot-e.est-allume { color: var(--encre); }

.calcul { margin-top: clamp(44px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon-grand); overflow: hidden; box-shadow: 0 24px 60px rgba(26, 26, 46, .08); }
.calcul__reglages { padding: clamp(24px, 3.6vw, 44px); display: grid; gap: 8px; }
.calcul__reglages h3 { font-family: var(--titres); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; text-transform: uppercase; line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.calcul__reglages label { display: flex; justify-content: space-between; gap: 14px; font-size: .93rem; font-weight: 500; margin-top: 12px; }
.calcul__reglages output { font-family: var(--titres); font-size: 1.1rem; color: var(--or-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calcul input[type="range"] { width: 100%; accent-color: var(--or-600); height: 28px; cursor: pointer; }
.calcul__resultat { background: var(--nuit-800); color: var(--clair); padding: clamp(24px, 3.6vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.calcul__nombre { font-family: var(--titres); font-weight: 700; font-size: clamp(3.2rem, 8vw, 5.6rem); line-height: 1; color: var(--or-400); font-variant-numeric: tabular-nums; }
.calcul__legende { font-size: 1.08rem; margin-top: 10px; }
.calcul__note { font-size: .78rem; color: var(--clair-doux); margin-top: 18px; }

/* =============== L'ARSENAL =============== */
.niveaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(34px, 5vw, 56px); counter-reset: niveau; }
.niveau { background: linear-gradient(160deg, var(--nuit-600), var(--nuit-700)); border: 1px solid rgba(217, 184, 114, .16); border-radius: var(--rayon-grand); padding: 34px 30px 36px; transition: transform .45s var(--aise), border-color .3s; scroll-margin-top: 100px; }
.niveau:hover { transform: translateY(-6px); border-color: rgba(217, 184, 114, .5); }
.niveau__rang { font-family: var(--titres); font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--or-400); margin-bottom: 18px; }
.niveau h3 { font-family: var(--titres); font-size: 1.7rem; font-weight: 600; text-transform: uppercase; line-height: 1.1; }
.niveau__duree { font-size: .86rem; color: var(--clair-doux); margin: 6px 0 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.niveau p:not([class]) { font-size: .98rem; color: #cfd5e0; }
.puces { margin-top: 18px; display: grid; gap: 8px; }
.puces li { font-size: .9rem; color: var(--clair-doux); padding-left: 20px; position: relative; }
.puces li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--or-500); }

/* =============== LE BUTIN =============== */
.butin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(34px, 5vw, 56px); }
.prise { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon-grand); overflow: hidden; text-decoration: none; color: inherit; transition: transform .5s var(--aise), box-shadow .5s var(--aise), border-color .3s, opacity .8s var(--aise); transform-style: preserve-3d; will-change: transform; }
.prise:hover { box-shadow: 0 30px 70px rgba(26, 26, 46, .16); border-color: var(--or-500); }
.prise__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--nuit-800); }
.prise__image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--aise); }
.prise:hover .prise__image img { transform: scale(1.06); }
.prise__genre { font-family: var(--titres); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or-700); margin: 22px 24px 0; }
.prise__titre { font-family: var(--titres); font-size: 1.42rem; font-weight: 600; text-transform: uppercase; line-height: 1.12; margin: 6px 24px 0; }
.prise__texte { font-size: .93rem; line-height: 1.55; color: var(--encre-douce); margin: 10px 24px 0; flex: 1; }
.prise__aller { font-weight: 600; font-size: .9rem; margin: 18px 24px 24px; color: var(--nuit-600); display: inline-flex; gap: 8px; }
.prise__aller span { transition: transform .3s var(--aise); }
.prise:hover .prise__aller span { transform: translateX(6px); }

/* =============== DANS LA CALE =============== */
.vedette { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: center; margin-top: clamp(34px, 5vw, 56px); background: linear-gradient(150deg, var(--nuit-600), var(--nuit-800)); border: 1px solid rgba(217, 184, 114, .28); border-radius: var(--rayon-grand); padding: clamp(26px, 4vw, 52px); }
.vedette__sur { font-family: var(--titres); font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--or-400); margin-bottom: 10px; }
.vedette h3 { font-family: var(--titres); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; text-transform: uppercase; line-height: 1.08; margin-bottom: 18px; text-wrap: balance; }
.vedette__texte p { color: #cfd5e0; margin-top: 12px; }
.vedette__texte strong { color: var(--or-300); }
.vedette__morale { font-family: var(--titres); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; color: var(--clair) !important; margin-top: 22px !important; padding-top: 18px; border-top: 1px solid rgba(217, 184, 114, .3); }

.trajet { display: grid; gap: 22px; }
.trajet__nom { font-family: var(--titres); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 10px; }
.trajet ol { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.trajet li { font-size: .82rem; font-weight: 600; padding: 9px 14px; border-radius: 10px; white-space: nowrap; position: relative; margin-right: 26px; }
.trajet li:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 26px; height: 2px; }
.trajet__ligne--avant .trajet__nom { color: #d98a80; }
.trajet__ligne--avant li { background: rgba(217, 102, 92, .12); border: 1px solid rgba(217, 102, 92, .45); color: #f0c4be; }
.trajet__ligne--avant li:not(:last-child)::after { background: repeating-linear-gradient(90deg, rgba(217, 102, 92, .8) 0 4px, transparent 4px 8px); animation: peine 1.1s linear infinite; }
.trajet__ligne--apres .trajet__nom { color: var(--or-300); }
.trajet__ligne--apres li { background: rgba(217, 184, 114, .14); border: 1px solid rgba(217, 184, 114, .6); color: var(--or-300); padding: 12px 20px; font-size: .92rem; }
.trajet__ligne--apres li:not(:last-child)::after { background: linear-gradient(90deg, transparent, var(--or-300), transparent) 0 0 / 200% 100%, rgba(217, 184, 114, .35); animation: file 1.6s linear infinite; }
@keyframes peine { to { background-position: 8px 0; } }
@keyframes file { from { background-position: 200% 0, 0 0; } to { background-position: -200% 0, 0 0; } }

.cale { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 18px; }
.cale li { background: var(--nuit-700); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--rayon); padding: 24px 24px 26px; transition: border-color .3s, transform .45s var(--aise); }
.cale li:hover { border-color: rgba(217, 184, 114, .45); transform: translateY(-4px); }
.cale h3 { font-family: var(--titres); font-size: 1.14rem; font-weight: 500; text-transform: uppercase; line-height: 1.2; letter-spacing: .02em; color: var(--clair); }
.cale p { font-size: .92rem; color: var(--clair-doux); margin-top: 8px; }
.cale .cale__vous { background: transparent; border: 1px dashed rgba(217, 184, 114, .55); display: flex; flex-direction: column; align-items: flex-start; }
.cale .cale__vous h3 { color: var(--or-300); }
.cale .cale__vous .bouton { margin-top: 16px; padding: 10px 20px; font-size: .88rem; }

/* =============== TÉMOIGNAGE =============== */
.lettre { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 68px); align-items: center; }
.lettre .titre { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 18ch; text-transform: none; line-height: 1.15; }
.lettre__texte p:not([class]) { margin-top: 18px; color: var(--encre-douce); }
.lettre__legende { margin-top: 20px; font-size: .92rem; font-style: italic; padding-left: 16px; border-left: 2px solid var(--or-500); color: var(--encre-douce); }
.lettre__capture { background: #fff; border-radius: 8px; padding: clamp(10px, 1.6vw, 20px); box-shadow: 0 30px 80px rgba(26, 26, 46, .18), 0 0 0 1px var(--trait); transform: rotate(1.2deg); }
.js .lettre__capture.revele { transform: translateY(26px) rotate(3deg); }
.js .lettre__capture.revele.est-vu { transform: rotate(1.2deg); }
.lettre__capture img { width: 100%; border-radius: 3px; }

/* =============== LA SOLDE =============== */
.solde { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.solde__montant { font-family: var(--titres); font-weight: 600; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1; color: var(--clair); }
.solde__montant span { display: block; font-size: clamp(4rem, 11vw, 8rem); font-weight: 700; color: var(--or-400); letter-spacing: -.01em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.solde__detail { margin-top: 12px; color: var(--clair-doux); font-size: .95rem; }
.solde__compris { margin: 30px 0 32px; display: grid; }
.solde__compris li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 6px 20px; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.solde__compris strong { font-weight: 600; color: var(--clair); }
.solde__compris span { font-size: .92rem; color: var(--clair-doux); }
.solde__esprit { display: grid; gap: 18px; }
.peche { background: var(--or-500); color: var(--nuit-900); border-radius: var(--rayon-grand); padding: clamp(26px, 3.6vw, 42px); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; font-weight: 500; position: relative; }
.peche::before { content: "“"; font-family: Georgia, serif; font-size: 5.5rem; line-height: .7; display: block; color: rgba(10, 18, 32, .3); margin-bottom: 4px; }
.peche__chute { margin-top: 16px; font-family: var(--titres); text-transform: uppercase; font-size: 1.12rem; letter-spacing: .02em; font-weight: 600; }
.solde__esprit .lettre__capture { margin: 6px 4px; }
.marchandage { border: 1px dashed rgba(217, 184, 114, .5); border-radius: var(--rayon-grand); padding: clamp(22px, 3vw, 34px); display: grid; gap: 10px; color: #cfd5e0; }
.marchandage strong { color: var(--clair); }
.petit { font-size: .78rem; color: var(--clair-doux); margin-top: 4px; }

/* =============== ÉCOLES =============== */
.ecoles { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.ecoles p:not([class]) { margin-top: 16px; color: var(--encre-douce); max-width: 60ch; }
.ecoles .bouton { margin-top: 26px; }
.ecoles__chiffres { display: grid; gap: 16px; }
.ecoles__chiffres > div { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon-grand); padding: 26px 28px; }
.ecoles__chiffres dt { font-family: var(--titres); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; color: var(--nuit-600); font-variant-numeric: tabular-nums; }
.ecoles__chiffres dd { font-size: .9rem; color: var(--encre-douce); margin-top: 6px; }

/* =============== LE PORT D'ATTACHE =============== */
.port { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.port__voies { margin-top: 30px; display: grid; }
.port__voies li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .1); align-items: baseline; }
.port__voies span { font-family: var(--titres); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or-400); }
.port__voies a { color: var(--clair); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.port__voies a:hover { color: var(--or-300); }
.formulaire { background: var(--nuit-700); border: 1px solid rgba(217, 184, 114, .22); border-radius: var(--rayon-grand); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 16px; }
.champ { display: grid; gap: 6px; }
.champ label { font-size: .84rem; font-weight: 600; color: var(--clair-doux); }
.champ input, .champ textarea { background: var(--nuit-900); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 13px 14px; color: var(--clair); width: 100%; transition: border-color .2s, box-shadow .2s; }
.champ input:focus, .champ textarea:focus { outline: 0; border-color: var(--or-500); box-shadow: 0 0 0 3px rgba(217, 184, 114, .2); }
.champ textarea { resize: vertical; min-height: 120px; }
.champ--piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .bouton { justify-self: start; }
.formulaire__retour { font-size: .92rem; min-height: 1.4em; }
.formulaire__retour.est-ok { color: #7bd4a2; }
.formulaire__retour.est-ko { color: #f0a59c; }

/* =============== PIED =============== */
.pied { background: var(--nuit-900); color: var(--clair-doux); padding: 64px 0 28px; border-top: 1px solid rgba(217, 184, 114, .18); font-size: .92rem; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.pied__nom { font-family: var(--titres); font-size: 1.5rem; text-transform: uppercase; color: var(--clair); margin-bottom: 10px; font-weight: 400; }
.pied__nom strong { color: var(--or-400); font-weight: 600; }
.pied__titre { font-family: var(--titres); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--or-400); margin-bottom: 14px; }
.pied li { padding: 4px 0; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--or-300); }
.pied__bas { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8rem; }

/* =============== PAGE TARIFS =============== */
.entete-page { background: radial-gradient(120% 120% at 80% 0%, var(--nuit-500), var(--nuit-800) 50%, var(--nuit-900)); color: var(--clair); padding: clamp(140px, 20vh, 200px) 0 clamp(56px, 8vw, 90px); }
.entete-page .titre { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; }
.entete-page .chapeau { color: #cfd5e0; }
.grille-ecoles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.grille-ecoles > div { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; }
.grille-ecoles dt { font-size: .86rem; color: var(--encre-douce); }
.grille-ecoles dt strong { display: block; font-family: var(--titres); font-size: 1.15rem; text-transform: uppercase; color: var(--encre); font-weight: 600; }
.grille-ecoles dd { font-family: var(--titres); font-size: 2.2rem; font-weight: 600; color: var(--nuit-600); margin-top: 10px; font-variant-numeric: tabular-nums; }
.bandeau-ecoles { display: inline-block; background: var(--nuit-800); color: var(--or-300); font-family: var(--titres); text-transform: uppercase; letter-spacing: .14em; font-size: .86rem; padding: 9px 18px; border-radius: 8px; margin-top: 22px; }
.questions { display: grid; gap: 10px; margin-top: 30px; max-width: 820px; }
.questions details { background: var(--nuit-700); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--rayon); }
.questions summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--clair); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.questions summary::after { content: "+"; color: var(--or-400); font-family: var(--titres); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--aise); }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions p { padding: 0 22px 20px; color: var(--clair-doux); font-size: .96rem; }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-top: 30px; }
.formats li { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px; }
.formats h3 { font-family: var(--titres); font-size: 1.2rem; text-transform: uppercase; font-weight: 600; }
.formats .prix { font-family: var(--titres); color: var(--or-700); font-size: 1.05rem; margin: 6px 0 10px; }
.formats p:not(.prix) { font-size: .92rem; color: var(--encre-douce); }

/* =============== ADAPTATION =============== */
@media (max-width: 980px) {
    .nav__burger { display: block; }
    .nav__menu { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 6px; background: rgba(10, 18, 32, .97); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    .nav__menu.est-ouvert { opacity: 1; visibility: visible; }
    .nav__lien { font-family: var(--titres); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 24px; }
    .nav__lien--cta { margin: 14px 0 0; }
    .nav__burger { z-index: 2; }
    .ouverture__grille, .manifeste, .vedette, .lettre, .solde, .ecoles, .port, .calcul { grid-template-columns: minmax(0, 1fr); }
    .ouverture__portrait { justify-self: start; width: min(48%, 200px); order: -1; }
    .niveaux, .butin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chiffres > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .chiffres > div:nth-child(n+3) { border-top: 1px solid rgba(217, 184, 114, .16); }
    .pied__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pied__grille > div:first-child { grid-column: 1 / -1; }
    .grille-ecoles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lettre__capture { transform: none; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .niveaux, .butin, .deux-listes { grid-template-columns: minmax(0, 1fr); }
    .solde__compris li, .port__voies li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .ouverture__actions .bouton { width: 100%; }
    .pied__grille { grid-template-columns: minmax(0, 1fr); }
    .trajet li { margin-right: 18px; padding: 8px 11px; }
    .trajet li:not(:last-child)::after { width: 18px; }
}

/* Mode calme : posé par le script d'en-tête quand le système demande moins d'animations */
html.calme { scroll-behavior: auto; }
html.calme *, html.calme *::before, html.calme *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.calme .revele { opacity: 1; transform: none; }
html.calme .ouverture__titre .mot > span, html.calme .entete-page .titre .mot > span { animation: none; transform: none; }
html.calme .defile__piste { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 10px; }
html.calme .defile__piste li[aria-hidden="true"] { display: none; }

/* =============================================
   PAGES INTÉRIEURES (réalisations, fiches, former, construire, écoles, à propos, ressources)
   ============================================= */
.entete-page .etiquette a { color: inherit; text-decoration: none; }
.entete-page .etiquette a:hover { color: var(--or-300); }
.entete-page--bande { padding-bottom: 0; overflow: hidden; }
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.filtre { background: transparent; border: 1px solid rgba(232, 230, 227, .3); color: var(--clair); border-radius: 999px; padding: 9px 18px; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.filtre:hover { border-color: var(--or-400); color: var(--or-300); }
.filtre.est-actif { background: var(--or-500); border-color: var(--or-500); color: var(--nuit-900); }
.est-masque { display: none !important; }

.bande-demo { margin-top: clamp(44px, 6vw, 72px); overflow: hidden; padding: 0 0 clamp(40px, 6vw, 70px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.bande-demo__piste { display: flex; gap: 20px; width: max-content; animation: defile 60s linear infinite; }
.bande-demo__piste img { width: clamp(220px, 26vw, 360px); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); transform: perspective(900px) rotateY(-14deg); border: 1px solid rgba(217, 184, 114, .25); }
html.calme .bande-demo__piste { animation: none; }

.prise__image { position: relative; }
.prise__image video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .4s; }
.prise.joue .prise__image video { opacity: 1; }
.prise__image--maquette { background: var(--nuit-700); padding: 14px 14px 0; display: block; overflow: hidden; }
.prise__image--maquette .maquette { pointer-events: none; font-size: .7rem; }
.prise__image--maquette figcaption { display: none; }
.butin--sombre .prise { background: var(--nuit-700); border-color: rgba(255, 255, 255, .08); color: var(--clair); }
.butin--sombre .prise:hover { border-color: var(--or-500); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.butin--sombre .prise__texte { color: var(--clair-doux); }
.butin--sombre .prise__genre { color: var(--or-400); }
.butin--sombre .prise__aller { color: var(--or-300); }

.outils-maison { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.outils-maison__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.outils-maison__liste li { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; }
.outils-maison__liste h3 { font-family: var(--titres); font-size: 1.12rem; text-transform: uppercase; font-weight: 600; }
.outils-maison__liste p { font-size: .9rem; color: var(--encre-douce); margin-top: 6px; }
.appel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.appel .titre { font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 26ch; }

/* ---------- Maquettes : écrans refaits en données fictives ---------- */
.maquette { background: #FDFCFF; color: var(--encre); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 0 0 1px rgba(217, 184, 114, .25); font-size: .82rem; text-align: left; line-height: 1.4; }
.maquette__barre { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--nuit-800); color: var(--clair-doux); font-size: .74rem; letter-spacing: .04em; }
.maquette__barre i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.maquette__barre i:first-child { background: #d9665c; }
.maquette__barre span { margin-left: 8px; }
.maquette__corps { padding: 16px; overflow-x: auto; }
.maquette figcaption { padding: 8px 14px 10px; font-size: .7rem; color: #86839C; border-top: 1px solid var(--trait); font-style: italic; }
.mq-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.mq-table th { text-align: left; font-weight: 600; color: #86839C; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 6px 8px; border-bottom: 1px solid var(--trait); }
.mq-table td { padding: 9px 6px; border-bottom: 1px solid var(--papier-2); white-space: nowrap; }
.mq-mono { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.mq-pastille { display: inline-block; font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(31, 122, 77, .12); color: #1f7a4d; white-space: nowrap; }
.mq-doute .mq-pastille { background: rgba(176, 118, 26, .14); color: #8a5a10; }
.mq-doute td { background: rgba(217, 184, 114, .07); }
.mq-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: .74rem; color: #86839C; }
.mq-bouton { background: var(--nuit-800); color: #fff; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: .74rem; }
.mq-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mq-kpis div { background: var(--papier-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.mq-kpis span { display: block; font-size: .68rem; color: #86839C; }
.mq-kpis b { display: block; font-family: var(--titres); font-size: 1.35rem; font-weight: 600; margin-top: 2px; }
.mq-kpis em { font-style: normal; font-size: .7rem; font-weight: 600; }
.mq-haut, .mq-bas { color: #1f7a4d; }
.mq-graphe { width: 100%; height: auto; margin-top: 14px; display: block; }
.mq-graphe rect { fill: rgba(42, 66, 112, .22); }
.mq-graphe rect.mq-dernier { fill: var(--or-500); }
.mq-bonjour { font-weight: 600; margin-bottom: 12px; }
.mq-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mq-tuile { background: var(--papier-2); border-radius: 10px; padding: 12px 10px; font-weight: 600; font-size: .76rem; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mq-tuile i { width: 18px; height: 18px; border-radius: 6px; background: var(--nuit-500); flex-shrink: 0; }
.mq-tuile:nth-child(3n+2) i { background: var(--or-500); }
.mq-grise { opacity: .38; }
.mq-cadenas { color: #1f7a4d; font-weight: 600; }
.mq-mails li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--papier-2); }
.mq-mails b { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-dest { grid-row: 2; font-size: .72rem; color: #86839C; }
.mq-mails .mq-pastille { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.mq-audit { display: grid; gap: 10px; }
.mq-ligne { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px 84px; gap: 10px; align-items: center; font-size: .76rem; }
.mq-jauge { height: 8px; background: var(--papier-2); border-radius: 99px; overflow: hidden; }
.mq-jauge i { display: block; height: 100%; background: linear-gradient(90deg, var(--nuit-500), var(--or-500)); border-radius: inherit; }
.mq-ligne b { text-align: right; font-variant-numeric: tabular-nums; }
.mq-ligne em { font-style: normal; color: #86839C; font-size: .7rem; }
.mq-avantapres { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.mq-site { position: absolute; inset: 0; padding: 12px; display: grid; gap: 10px; align-content: start; }
.mq-site--avant { background: #e7e4dd; }
.mq-site--apres { background: var(--nuit-800); clip-path: inset(0 0 0 var(--pos)); }
.mq-s-nav { height: 12px; border-radius: 4px; background: rgba(0, 0, 0, .14); }
.mq-site--apres .mq-s-nav { background: rgba(255, 255, 255, .1); }
.mq-s-gris { height: 70px; background: #c9c5bc; border-radius: 4px; }
.mq-s-lignes { display: grid; gap: 6px; }
.mq-s-lignes i { height: 6px; background: #c9c5bc; border-radius: 3px; }
.mq-s-lignes i:nth-child(odd) { width: 86%; }
.mq-s-hero { display: grid; gap: 8px; padding: 14px 0; }
.mq-s-hero b { height: 16px; width: 70%; background: #e8e6e3; border-radius: 4px; }
.mq-s-hero i { height: 16px; width: 45%; background: var(--or-500); border-radius: 4px; }
.mq-s-hero em { height: 18px; width: 90px; background: var(--or-500); border-radius: 99px; margin-top: 6px; }
.mq-s-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mq-s-cartes i { height: 46px; border-radius: 8px; background: var(--nuit-600); border: 1px solid rgba(217, 184, 114, .3); }
.mq-etiquette { position: absolute; bottom: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.mq-site--avant .mq-etiquette { left: 10px; background: rgba(0, 0, 0, .55); color: #fff; }
.mq-site--apres .mq-etiquette { right: 10px; background: var(--or-500); color: var(--nuit-900); }
.mq-avantapres::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--or-300); box-shadow: 0 0 0 4px rgba(217, 184, 114, .25); pointer-events: none; }
.mq-avantapres input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Fiche d'une réalisation ---------- */
.entete-fiche { padding-bottom: clamp(30px, 5vw, 60px); }
.fiche__tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.fiche__tete .titre { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.fiche__actions { margin-top: 28px; }
.fiche__secret { margin-top: 26px; font-size: .9rem; color: var(--clair-doux); padding-left: 14px; border-left: 2px solid var(--or-500); max-width: 52ch; }
.fiche__visuel { min-width: 0; }
.fiche__video, .fiche__image { width: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(217, 184, 114, .3); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--nuit-700); }
.chiffres--fiche { margin-top: clamp(36px, 5vw, 60px); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.chiffres--fiche dt { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.fiche__corps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.fiche__bloc { min-width: 0; }
.fiche__bloc--large { grid-column: 1 / -1; background: var(--nuit-800); color: var(--clair); border-radius: var(--rayon-grand); padding: clamp(22px, 3vw, 36px); }
.fiche__bloc--gens { background: var(--or-500); color: var(--nuit-900); border-radius: var(--rayon-grand); padding: clamp(22px, 3vw, 36px); }
.fiche__bloc--gens .etiquette { color: var(--nuit-800); }
.fiche__texte { font-size: 1.06rem; line-height: 1.65; color: var(--encre-douce); }
.fiche__bloc--gens .fiche__texte { color: var(--nuit-900); font-weight: 500; }
.fiche__liste { display: grid; gap: 12px; }
.fiche__liste li { padding-left: 28px; position: relative; color: var(--encre-douce); }
.fiche__liste li::before { content: ""; position: absolute; left: 0; top: .4em; width: 15px; height: 15px; background: var(--or-500); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.fiche__preuve { max-width: 900px; }
.fiche__grand { font-family: var(--titres); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.2; text-transform: uppercase; color: var(--clair); text-wrap: balance; }
.fiche__suite { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Pages Former, Construire, Écoles, À propos ---------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: clamp(30px, 4vw, 50px); counter-reset: etape; }
.etapes li { counter-increment: etape; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 24px 22px; position: relative; }
.etapes li::before { content: counter(etape, decimal-leading-zero); font-family: var(--titres); font-size: 2.4rem; font-weight: 600; color: var(--or-500); line-height: 1; display: block; margin-bottom: 14px; }
.etapes h3 { font-family: var(--titres); font-size: 1.15rem; text-transform: uppercase; font-weight: 600; }
.etapes p { font-size: .92rem; color: var(--encre-douce); margin-top: 6px; }
.section--nuit .etapes li { background: var(--nuit-700); border-color: rgba(255, 255, 255, .08); }
.section--nuit .etapes p { color: var(--clair-doux); }
.deux-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.deux-cols > * { min-width: 0; }
.deux-cols p:not([class]) { color: var(--encre-douce); margin-top: 14px; }
.section--nuit .deux-cols p:not([class]) { color: #cfd5e0; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: clamp(30px, 4vw, 50px); }
.module { background: var(--nuit-700); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--rayon-grand); padding: 26px 26px 28px; }
.section--clair .module { background: #fff; border-color: var(--trait); }
.module h3 { font-family: var(--titres); font-size: 1.3rem; text-transform: uppercase; font-weight: 600; line-height: 1.15; }
.module p { font-size: .93rem; margin-top: 8px; color: var(--clair-doux); }
.section--clair .module p { color: var(--encre-douce); }
.module ul { margin-top: 14px; display: grid; gap: 7px; }
.module li { font-size: .88rem; padding-left: 18px; position: relative; color: var(--clair-doux); }
.section--clair .module li { color: var(--encre-douce); }
.module li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--or-500); }
.puces-or { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.puces-or li { border: 1px solid rgba(217, 184, 114, .45); color: var(--or-300); border-radius: 99px; padding: 6px 14px; font-size: .86rem; }
.section--clair .puces-or li { color: var(--or-700); border-color: var(--or-500); }
.encart { background: var(--or-500); color: var(--nuit-900); border-radius: var(--rayon-grand); padding: clamp(24px, 3.4vw, 40px); }
.encart .titre { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.encart .etiquette { color: var(--nuit-800); }
.encart p { margin-top: 12px; }
.encart .bouton { margin-top: 20px; }
.principes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; margin-top: clamp(30px, 4vw, 50px); }
.principes li { border-top: 2px solid var(--or-500); padding-top: 16px; }
.principes h3 { font-family: var(--titres); font-size: 1.15rem; text-transform: uppercase; font-weight: 600; }
.principes p { font-size: .93rem; margin-top: 6px; color: var(--clair-doux); }
.section--clair .principes p { color: var(--encre-douce); }
.temoignages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: clamp(30px, 4vw, 50px); }
.temoignages blockquote { background: var(--nuit-700); border-radius: var(--rayon-grand); padding: 26px; color: #cfd5e0; font-size: .96rem; }
.temoignages blockquote::before { content: "\201C"; font-family: Georgia, serif; font-size: 3.6rem; line-height: .6; color: var(--or-500); display: block; margin-bottom: 8px; }
.temoignages footer { margin-top: 14px; font-size: .86rem; color: var(--clair-doux); }
.temoignages footer strong { display: block; color: var(--clair); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px 16px; margin-top: clamp(30px, 4vw, 50px); }
.video-yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; width: 100%; display: block; }
.video-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--aise); }
.video-yt:hover img { opacity: 1; transform: scale(1.04); }
.video-yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--or-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23080f1e'/%3E%3C/svg%3E") center / 28px no-repeat; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.video-yt:has(iframe)::after { display: none; }
.video-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-titre { font-size: .9rem; margin-top: 10px; color: var(--clair); font-weight: 500; }
.video-titre span { display: block; font-size: .78rem; color: var(--clair-doux); font-weight: 400; }

/* ---------- Références ---------- */
.rangs { display: grid; gap: clamp(40px, 6vw, 70px); margin-top: clamp(30px, 4vw, 50px); }
.rang__titre { font-family: var(--titres); font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--or-700); margin-bottom: 16px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.logos li { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); min-height: 112px; display: grid; place-items: center; text-align: center; padding: 18px; transition: border-color .3s, transform .4s var(--aise), box-shadow .3s; }
.logos li:hover { border-color: var(--or-500); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26, 26, 46, .1); }
.logos .marque { font-family: var(--titres); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; color: var(--nuit-600); line-height: 1.1; }
.logos .mission { display: block; font-size: .8rem; color: var(--encre-douce); margin-top: 8px; font-family: var(--texte); text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.4; }
.logos--tete { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.logos--tete li { min-height: 160px; background: var(--nuit-800); border-color: rgba(217, 184, 114, .3); }
.logos--tete .marque { color: var(--clair); font-size: 1.55rem; }
.logos--tete .mission { color: var(--clair-doux); }
.collage { background: #fff; border-radius: var(--rayon-grand); padding: clamp(14px, 2vw, 26px); border: 1px solid var(--trait); }
.collage img { width: 100%; filter: grayscale(1); opacity: .8; transition: filter .5s, opacity .5s; }
.collage:hover img { filter: none; opacity: 1; }

/* ---------- Presse ---------- */
.vu-dans-bloc { background: var(--nuit-900); color: var(--clair); padding: 26px 0 30px; border-bottom: 1px solid rgba(217, 184, 114, .14); text-align: center; }
.vu-dans { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 14px; }
.vu-dans li { font-family: var(--titres); font-size: clamp(1rem, 1.8vw, 1.3rem); text-transform: uppercase; letter-spacing: .05em; color: #c3c9d4; }
.presse-liste { display: grid; margin-top: clamp(30px, 4vw, 50px); }
.presse-liste li { display: grid; grid-template-columns: 110px 190px minmax(0, 1fr); gap: 6px 22px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); align-items: baseline; }
.presse-liste time { font-size: .84rem; color: var(--clair-doux); font-variant-numeric: tabular-nums; }
.presse-liste .media { font-family: var(--titres); text-transform: uppercase; letter-spacing: .04em; color: var(--or-400); font-size: .95rem; }
.presse-liste a { color: var(--clair); text-decoration: none; }
.presse-liste a:hover { color: var(--or-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Ressources ---------- */
.res-outils { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 30px; }
.res-recherche { width: 100%; background: var(--nuit-900); border: 1px solid rgba(255, 255, 255, .18); color: var(--clair); border-radius: 999px; padding: 14px 22px; font-size: 1rem; }
.res-recherche:focus { outline: 0; border-color: var(--or-500); box-shadow: 0 0 0 3px rgba(217, 184, 114, .2); }
.res-compte { font-family: var(--titres); color: var(--or-300); font-size: 1rem; letter-spacing: .04em; white-space: nowrap; }
.res-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 30px; }
.res { background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .25s, transform .35s var(--aise), box-shadow .3s; min-width: 0; }
.res:hover { border-color: var(--or-500); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26, 26, 46, .1); }
.res__haut { display: flex; flex-wrap: wrap; gap: 6px; }
.res__puce { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--papier-2); color: var(--encre-douce); }
.res__puce--cat { background: var(--nuit-800); color: var(--or-300); }
.res__puce--vf { background: var(--or-500); color: var(--nuit-900); }
.res h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.res p { font-size: .88rem; color: var(--encre-douce); line-height: 1.5; flex: 1; }
.res__source { font-size: .76rem; color: #86839C; overflow-wrap: anywhere; }
.res-plus { display: flex; justify-content: center; margin-top: 30px; }
.res-vide { text-align: center; padding: 40px 0; color: var(--encre-douce); }

@media (max-width: 980px) {
    .outils-maison, .fiche__tete, .fiche__corps, .deux-cols { grid-template-columns: minmax(0, 1fr); }
    .presse-liste li { grid-template-columns: 90px minmax(0, 1fr); }
    .presse-liste li > :last-child { grid-column: 1 / -1; }
    .res-outils { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .outils-maison__liste { grid-template-columns: minmax(0, 1fr); }
    .mq-ligne { grid-template-columns: 80px minmax(0, 1fr) 36px; }
    .mq-ligne em { display: none; }
    .mq-table th:nth-child(3), .mq-table td:nth-child(3) { display: none; }
    .mq-kpis b { font-size: 1.05rem; }
}

/* Grille du portfolio : une carte vedette en double largeur, et une carte d'appel pour fermer la grille */
.prise--large .prise__image { aspect-ratio: 16 / 7.6; }
.prise--appel { background: var(--nuit-800); border-color: rgba(217, 184, 114, .4); color: var(--clair); justify-content: flex-end; min-height: 280px; background-image: radial-gradient(120% 90% at 100% 0%, rgba(217, 184, 114, .22), transparent 60%); }
.prise--appel .prise__genre { color: var(--or-400); }
.prise--appel .prise__titre { font-size: 1.7rem; }
.prise--appel .prise__texte { color: var(--clair-doux); flex: 0; }
.prise--appel .prise__aller { color: var(--or-300); }
.fiche__bloc--gens { grid-column: 1 / -1; }
@media (min-width: 641px) { .prise--large { grid-column: span 2; } }

/* Ressources : petits filtres, case « en français », texte réservé aux lecteurs d'écran */
.filtre small { opacity: .65; font-size: .78em; margin-left: 3px; font-variant-numeric: tabular-nums; }
.filtres--petits { margin-top: 16px; align-items: center; }
.filtres--petits .filtre { padding: 6px 14px; font-size: .82rem; }
.res-fr { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--clair-doux); margin-left: 6px; cursor: pointer; }
.res-fr input { accent-color: var(--or-500); width: 16px; height: 16px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.res[hidden] { display: none; }

/* Accueil raccordé aux pages */
.suite-butin { margin-top: 34px; display: flex; justify-content: center; }
.cale__lien { display: block; text-decoration: none; color: inherit; height: 100%; }
.cale__voir { display: inline-flex; gap: 6px; margin-top: 14px; font-size: .86rem; font-weight: 600; color: var(--or-300); }
.cale__lien:hover .cale__voir span { transform: translateX(4px); }
.cale__voir span { transition: transform .3s var(--aise); }
.lien-or { color: var(--or-300); font-size: .9rem; font-weight: 600; text-underline-offset: 3px; }
.lien-or:hover { color: var(--or-400); }
@media (min-width: 981px) and (max-width: 1240px) { .nav__lien { padding: 8px 9px; font-size: .85rem; } .nav__lien--cta { margin-left: 4px; padding-inline: 14px; } }

/* Corrections après la passe visuelle */
.encart p:not([class]), .deux-cols .encart p:not([class]), .section--nuit .deux-cols .encart p:not([class]) { color: inherit; opacity: .92; }
.temoignages { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.videos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 641px) {
    .logos--tete li:first-child { grid-column: span 2; }
    .modules--formats .module:last-child { grid-column: span 2; }
}

.niveau__lien { margin-top: 18px; }

/* Titre au-dessus de la liste de ce que comprend le tarif */
.solde__compris-titre { font-family: var(--titres); font-size: 1.05rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--or-400); margin-top: 30px; }
.solde__compris-titre + .solde__compris { margin-top: 12px; }

.manifeste__fort { margin-top: 18px; font-weight: 700; color: var(--encre); }

.calcul__euros { font-family: var(--titres); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--or-300); margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-variant-numeric: tabular-nums; }

/* Défilé des logos de références */
.logos-defile { display: grid; gap: 12px; margin-top: 22px; }
.logos-defile__rangee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logos-defile__piste { display: flex; gap: 12px; width: max-content; animation: defile 70s linear infinite; }
.logos-defile__rangee--inverse .logos-defile__piste { animation-direction: reverse; animation-duration: 82s; }
.logos-defile__rangee:hover .logos-defile__piste { animation-play-state: paused; }
.logos-defile li { flex-shrink: 0; height: 74px; padding: 10px 16px; background: #fff; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--trait); }
.logos-defile img { height: 54px; width: auto; max-width: 190px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .35s, opacity .35s; }
.logos-defile li:hover img { filter: none; opacity: 1; }
.flotte .logos-defile li { border-color: transparent; height: 62px; padding: 8px 14px; }
.flotte .logos-defile img { height: 46px; }
.flotte__plus { text-align: center; margin-top: 18px; }
html.calme .logos-defile__piste { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
html.calme .logos-defile li[aria-hidden="true"] { display: none; }

/* Logos en couleur, dès le départ */
.logos-defile img { filter: none; opacity: 1; }

.lien-sombre { color: var(--nuit-600); font-weight: 600; text-underline-offset: 3px; }
.lien-sombre:hover { color: var(--or-700); }

/* Accueil : « Ils en ont parlé » */
.presse-acc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(30px, 4vw, 50px); }
.presse-acc > div { min-width: 0; }
.presse-acc__titre { font-family: var(--titres); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--or-400); margin-bottom: 14px; }
.presse-cartes { display: grid; gap: 10px; }
.presse-cartes a { display: grid; gap: 6px; padding: 16px 18px; background: var(--nuit-700); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--rayon); text-decoration: none; color: var(--clair); transition: border-color .25s, transform .35s var(--aise); }
.presse-cartes a:hover { border-color: var(--or-500); transform: translateX(4px); }
.presse-cartes__haut { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.presse-cartes__media { font-family: var(--titres); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; color: var(--or-300); }
.presse-cartes time { font-size: .78rem; color: var(--clair-doux); white-space: nowrap; font-variant-numeric: tabular-nums; }
.presse-cartes__titre { font-size: .92rem; line-height: 1.45; color: #d7dce5; }
.presse-cartes__projet { justify-self: start; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: rgba(217, 184, 114, .14); color: var(--or-300); }
@media (max-width: 980px) { .presse-acc { grid-template-columns: minmax(0, 1fr); } }

/* Palette Champagne : intitulés dorés plus foncés sur fond clair, pour la lisibilité */
.etiquette { color: var(--or-700); }
.section--nuit .etiquette, .ouverture .etiquette, .entete-page .etiquette { color: var(--or-400); }
.encart .etiquette { color: var(--nuit-800); }

/* Titres : un cran plus fins et plus aérés, pour que les accents ne touchent plus la ligne du dessus */
.ouverture__titre { font-weight: 600; line-height: 1.14; letter-spacing: .005em; }
.ouverture__titre .mot, .entete-page .titre .mot { padding: .2em 0 .1em; margin-top: -.2em; }
.titre { line-height: 1.14; }
.titre--geant { line-height: 1.1; }
.entete-page .titre { font-weight: 600; line-height: 1.12; }

.calcul__hypothese { margin-top: 18px; padding: 14px 16px; background: var(--papier); border-radius: 12px; font-size: .86rem; line-height: 1.5; color: var(--encre-douce); }
.calcul__hypothese strong { color: var(--encre); }
.calcul__note a { color: var(--or-300); text-underline-offset: 2px; }

/* Boussole : cadran gradué qui tourne doucement au défilement, aiguille qui suit la souris */
.boussole { transform: none; transition: none; overflow: visible; }
.b-anneau { fill: none; stroke: rgba(217, 184, 114, .55); stroke-width: 1.2; }
.b-anneau--fin { stroke: rgba(217, 184, 114, .28); stroke-width: 1; }
.b-trait { stroke: rgba(217, 184, 114, .5); stroke-width: 1.4; stroke-linecap: round; }
.b-trait--long { stroke: var(--or-400); stroke-width: 2.4; }
.b-lettre { font-family: var(--titres); font-size: 16px; font-weight: 600; fill: var(--or-300); text-anchor: middle; letter-spacing: .06em; }
.b-lettre--nord { fill: #fff; font-size: 19px; }
.b-losange { fill: var(--or-500); opacity: .7; }
.b-pointe { fill: var(--or-400); stroke: var(--nuit-900); stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(217, 184, 114, .75)); }
.b-queue { fill: rgba(217, 184, 114, .55); }

.ouverture__portrait img { width: 74%; }

/* =============================================
   ACCUEIL À CHAPEAUX : « Choisissez votre capitaine »
   ============================================= */
.capitaine { display: none; position: relative; z-index: 2; text-align: center; padding-bottom: clamp(40px, 6vw, 80px); }
html[data-cap="choix"] .capitaine { display: block; }
html[data-cap="choix"] .ouverture__grille, html[data-cap="choix"] .ouverture .chiffres { display: none; }
.capitaine .pastille { margin-bottom: 18px; }
.capitaine__titre { font-family: 'Press Start 2P', ui-monospace, monospace; font-weight: 400; font-size: clamp(15px, 2.4vw, 26px); line-height: 1.5; color: var(--or-400); letter-spacing: .04em; margin: 4px 0 clamp(26px, 4vw, 44px); text-transform: uppercase; text-shadow: 0 3px 0 var(--nuit-900); }
.capitaine__titre::after { content: "_"; animation: clignote 1s steps(2) infinite; margin-left: 4px; }
@keyframes clignote { 50% { opacity: 0; } }
.capitaine__cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); max-width: 1000px; margin: 0 auto; }
.carte-cap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: clamp(14px, 2vw, 24px) clamp(8px, 1.4vw, 18px) clamp(16px, 2.2vw, 26px); background: rgba(10, 18, 32, .55); border: 2px solid rgba(217, 184, 114, .3); border-radius: 20px; color: var(--clair); cursor: pointer; font: inherit; transition: transform .35s var(--aise), border-color .25s, background .25s, box-shadow .35s; min-width: 0; }
.carte-cap:hover, .carte-cap:focus-visible { transform: translateY(-8px); border-color: var(--or-500); background: rgba(30, 49, 80, .8); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 4px rgba(217, 184, 114, .15); outline: none; }
.carte-cap:hover::before, .carte-cap:focus-visible::before { content: "\25B6"; position: absolute; top: 12px; left: 14px; color: var(--or-400); font-size: .8rem; animation: clignote 1s steps(2) infinite; }
.carte-cap__img { display: flex; align-items: flex-end; justify-content: center; height: clamp(130px, 24vw, 300px); }
.carte-cap__img img { height: 100%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .45)); animation: respire 2.6s ease-in-out infinite; }
.carte-cap:nth-child(2) .carte-cap__img img { animation-delay: .5s; }
.carte-cap:nth-child(3) .carte-cap__img img { animation-delay: 1s; }
@keyframes respire { 50% { transform: translateY(-6px); } }
.carte-cap:hover .carte-cap__img img { animation-duration: .9s; }
.carte-cap__phrase { font-family: var(--titres); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.78rem, 1.6vw, 1.15rem); line-height: 1.2; margin-top: 6px; }
.carte-cap__phrase b { display: block; color: var(--or-400); font-size: 1.35em; font-weight: 600; }
.carte-cap__detail { font-size: clamp(.68rem, 1.2vw, .86rem); color: var(--clair-doux); line-height: 1.35; }
.capitaine__aide { margin-top: 22px; font-size: .84rem; color: var(--clair-doux); }

/* Le capitaine choisi, debout dans la boussole */
.ouverture__portrait--capitaine { overflow: visible; }
.ouverture__portrait .capitaine__perso { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); width: auto; height: 76%; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; image-rendering: pixelated; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .5)); }
.capitaine__perso.saute { animation: saute-cap .55s var(--aise); }
@keyframes saute-cap { 35% { transform: translateX(-50%) translateY(-22px); } 70% { transform: translateX(-50%) translateY(2px); } }
.capitaine__changer { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 3; font: 600 .78rem var(--texte); color: var(--or-300); background: var(--nuit-800); border: 1px solid rgba(217, 184, 114, .5); border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.capitaine__changer:hover, .capitaine__changer:focus-visible { background: var(--or-500); color: var(--nuit-900); outline: none; }
.ouverture__texte.arrive > * { animation: arrive .6s var(--aise) both; }
.ouverture__texte.arrive > :nth-child(2) { animation-delay: .06s; }
.ouverture__texte.arrive > :nth-child(3) { animation-delay: .12s; }
.ouverture__texte.arrive > :nth-child(4) { animation-delay: .18s; }
.ouverture__texte.arrive > :nth-child(5) { animation-delay: .24s; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } }

/* Bouton du menu : la tête du capitaine, pour changer de chapeau */
.nav__chapeau { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--nuit-600); border: 1.5px solid rgba(217, 184, 114, .55); margin-left: 6px; position: relative; transition: border-color .2s, transform .25s var(--aise); }
.nav__chapeau img { position: absolute; left: 50%; top: 2px; height: 96px; width: auto; max-width: none; transform: translateX(-50%); image-rendering: pixelated; }
.nav__chapeau:hover, .nav__chapeau:focus-visible { border-color: var(--or-300); transform: rotate(-8deg) scale(1.08); outline: none; }
@media (max-width: 980px) { .nav__chapeau { width: 56px; height: 56px; margin: 10px 0 0; } .nav__chapeau img { height: 134px; } }

/* Chaque section s'affiche selon le capitaine choisi ; sans choix (ni JavaScript), la version « tout » */
html[data-profil="ia"] [data-profils]:not([data-profils~="ia"]),
html[data-profil="fakenews"] [data-profils]:not([data-profils~="fakenews"]),
html[data-profil="tout"] [data-profils]:not([data-profils~="tout"]),
html:not([data-profil]) [data-profils]:not([data-profils~="tout"]) { display: none !important; }

.temoignages--clair blockquote { background: var(--nuit-800); }
@media (max-width: 640px) {
    .carte-cap { border-radius: 14px; }
    .carte-cap__detail { display: none; }
}
html.calme .carte-cap__img img, html.calme .capitaine__titre::after { animation: none; }

/* Presse de l'accueil : vidéos et articles illustrés */
.videos-presse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.video-presse .video-yt { border-radius: var(--rayon); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.presse-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.presse-vignettes a { display: flex; flex-direction: column; height: 100%; background: var(--nuit-700); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--rayon-grand); overflow: hidden; text-decoration: none; color: var(--clair); transition: transform .45s var(--aise), border-color .3s, box-shadow .45s; }
.presse-vignettes a:hover { transform: translateY(-6px); border-color: var(--or-500); box-shadow: 0 26px 60px rgba(0, 0, 0, .45); }
.presse-vignettes__img { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--nuit-600), var(--nuit-800)); overflow: hidden; }
.presse-vignettes__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--aise), filter .4s; filter: saturate(.9); }
.presse-vignettes a:hover .presse-vignettes__img img { transform: scale(1.06); filter: saturate(1.05); }
.presse-vignettes__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 32, .85), transparent 55%); }
.presse-vignettes__media { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-family: var(--titres); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.presse-vignettes__corps { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.presse-vignettes__haut { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.presse-vignettes__haut time { font-size: .78rem; color: var(--clair-doux); white-space: nowrap; }
.presse-vignettes__titre { font-size: .95rem; line-height: 1.45; color: #dfe3ea; flex: 1; }
.presse-vignettes__lire { font-size: .84rem; font-weight: 600; color: var(--or-300); }
@media (max-width: 860px) { .videos-presse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .videos-presse { grid-template-columns: minmax(0, 1fr); } }

/* Parcours (frise) et sujets : version « tout découvrir » de l'accueil */
.frise { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: clamp(34px, 5vw, 56px); position: relative; }
.frise::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--or-500), rgba(217, 184, 114, .25)); }
.frise li { position: relative; padding: 38px 18px 0 0; min-width: 0; }
.frise li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--papier); border: 3px solid var(--or-500); }
.frise__date { font-family: var(--titres); font-size: 1.4rem; font-weight: 600; color: var(--or-700); line-height: 1; }
.frise h3 { font-family: var(--titres); text-transform: uppercase; font-weight: 600; font-size: 1.05rem; margin-top: 8px; }
.frise p { font-size: .88rem; color: var(--encre-douce); margin-top: 6px; }
.sujets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 70px); }
.sujet { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon-grand); text-decoration: none; color: inherit; transition: transform .45s var(--aise), border-color .3s, box-shadow .45s; }
.sujet:hover { transform: translateY(-6px); border-color: var(--or-500); box-shadow: 0 24px 50px rgba(22, 27, 43, .12); }
.sujet__tag { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--nuit-800); color: var(--or-300); }
.sujet h3 { font-family: var(--titres); text-transform: uppercase; font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.sujet p { font-size: .92rem; color: var(--encre-douce); flex: 1; }
.sujet__lien { font-size: .88rem; font-weight: 600; color: var(--nuit-600); }
@media (max-width: 980px) {
    .frise { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .frise::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--or-500), rgba(217, 184, 114, .25)); }
    .frise li { padding: 0 0 0 34px; }
    .frise li::before { top: 2px; }
    .sujets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .sujets { grid-template-columns: minmax(0, 1fr); } }

/* Maquettes des nouveaux cas clients */
.mq-alerte { background: rgba(176, 118, 26, .14); color: #8a5a10; }
.mq-rouge { color: #a8322a; }
.mq-deux { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.mq-doc { aspect-ratio: 3 / 4; border-radius: 8px; padding: 10px; display: grid; gap: 6px; align-content: start; position: relative; }
.mq-doc i { height: 6px; border-radius: 3px; }
.mq-doc span { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: .62rem; line-height: 1.3; }
.mq-doc--brut { background: #ece9e3; } .mq-doc--brut i { background: #c9c5bc; }
.mq-doc--brut span { color: #6b6760; }
.mq-doc--marque { background: var(--nuit-800); } .mq-doc--marque b { height: 14px; width: 60%; border-radius: 4px; background: var(--or-500); }
.mq-doc--marque i { background: rgba(255, 255, 255, .25); } .mq-doc--marque span { color: var(--or-300); }
.mq-fleche { font-family: var(--titres); font-size: 1.6rem; color: var(--or-600); }
.mq-videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mq-videos div { aspect-ratio: 9 / 16; border-radius: 8px; background: linear-gradient(160deg, var(--nuit-500), var(--nuit-800)); position: relative; overflow: hidden; }
.mq-videos i { position: absolute; left: 50%; top: 42%; width: 0; height: 0; margin-left: -5px; border-left: 12px solid var(--or-400); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.mq-videos span { position: absolute; left: 6px; bottom: 6px; font-size: .62rem; color: #fff; font-weight: 600; }
.mq-tel { display: flex; justify-content: center; }
.mq-tel__ecran { width: 62%; min-width: 180px; background: var(--nuit-800); border-radius: 22px; padding: 16px 12px; border: 4px solid #1b1f2a; display: grid; gap: 8px; }
.mq-bulle { font-size: .7rem; line-height: 1.35; padding: 7px 10px; border-radius: 12px 12px 12px 4px; background: rgba(255, 255, 255, .1); color: #e8e6e3; max-width: 88%; }
.mq-bulle--moi { justify-self: end; background: var(--or-500); color: var(--nuit-900); border-radius: 12px 12px 4px 12px; }

/* Liste courte des autres cas clients */
.cas-liste__titre { font-family: var(--titres); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.3rem; color: var(--or-300); margin: 56px 0 18px; }
.cas-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px 28px; }
.cas-liste li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid rgba(217, 184, 114, .22); }
.cas-liste__genre { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--or-400); }
.cas-liste__texte { color: #e8e6e3; line-height: 1.5; }

/* Nom au-dessus du capitaine */
.capitaine__nom { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); z-index: 3; margin: 0; font: .82rem/1 'Press Start 2P', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--or-400); white-space: nowrap; text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
@media (max-width: 760px) { .capitaine__nom { font-size: .58rem; top: -22px; left: 0; transform: none; } }

/* Captcha maison « Je ne suis pas un robot » */
.robot { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; background: var(--nuit-900); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 12px 14px; cursor: pointer; justify-self: start; min-width: min(100%, 300px); }
.robot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.robot__case { grid-row: span 2; width: 24px; height: 24px; border-radius: 6px; border: 2px solid rgba(217, 184, 114, .7); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.robot__texte { font-size: .92rem; font-weight: 600; color: var(--clair); }
.robot__note { font-size: .7rem; color: var(--clair-doux); opacity: .75; }
.robot input:focus-visible ~ .robot__case { box-shadow: 0 0 0 3px rgba(217, 184, 114, .35); }
.robot.est-calcul .robot__case { border-color: var(--or-400); border-top-color: transparent; border-radius: 50%; animation: robot-tourne .8s linear infinite; }
.robot.est-ok .robot__case { background: #3c9a6a; border-color: #3c9a6a; }
.robot.est-ok .robot__case::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.robot.est-ko { border-color: #f0a59c; }
@keyframes robot-tourne { to { transform: rotate(360deg); } }
.calme .robot.est-calcul .robot__case { animation-duration: 2s; }

/* Icône du menu : le chapeau seul, sans la tête ni la pastille ronde */
.nav__chapeau { width: 52px; height: 40px; border-radius: 0; overflow: visible; background: none; border: 0; display: grid; place-items: center; }
.nav__chapeau img { position: static; transform: none; width: 52px; height: auto; max-height: 34px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(217, 184, 114, .45)) drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.nav__chapeau:hover, .nav__chapeau:focus-visible { transform: rotate(-10deg) scale(1.12); }
.nav__chapeau:focus-visible { outline: 2px solid var(--or-400); outline-offset: 4px; }
@media (max-width: 980px) { .nav__chapeau { width: 72px; height: 48px; margin: 10px 0 0; } .nav__chapeau img { width: 72px; height: auto; max-height: 44px; } }
