/* Troclub — troclub.fr. Une seule feuille de style, aucune dépendance, aucun script :
   tout le mouvement est fait en CSS et en SVG. */
/* Urbanist (licence OFL 1.1), hébergée sur le site : aucune requête vers un tiers. */
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/urbanist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/urbanist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Fonds : la nuit pétrole de Troclub, du plus profond au plus proche */
  --nuit: #05151A; --nuit-2: #071B21; --panneau: #0B252C; --barre: #0E2A32;
  /* Traits : un seul filet clair, en deux forces */
  --trait: rgba(178, 232, 220, .13); --trait-fort: rgba(178, 232, 220, .28);
  /* Lumière : la menthe du logo */
  --menthe: #02C895; --menthe-vive: #56F0C4; --menthe-encre: #03241C;
  /* Texte */
  --glace: #EAF7F3; --brume: #9FB8B6; --brume-2: #6F8B8A;
  /* Marques : une signature, jamais un aplat */
  --troclub: #02C895; --datahive: #A78BFA; --kiplat: #F0834F;
  /* Mesures */
  --large: 1180px; --gouttiere: clamp(20px, 4.4vw, 56px); --rayon: 28px;
  --doux: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

/* ── Bases ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body { font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.55; color: var(--glace); background: var(--nuit); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Trame de fond : une grille fine, visible en haut de page puis fondue */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 95% 78% at 50% 0%, #000 0%, transparent 78%); mask-image: radial-gradient(ellipse 95% 78% at 50% 0%, #000 0%, transparent 78%); }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1; }
:focus-visible { outline: 2px solid var(--menthe-vive); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--menthe); color: var(--menthe-encre); }
.wrap { width: min(100% - 2 * var(--gouttiere), var(--large)); margin-inline: auto; }
.evitement { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--menthe); color: var(--menthe-encre); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.evitement:focus { left: 8px; }
.chapeau { color: var(--brume); font-size: clamp(17px, 1.35vw, 19px); max-width: 46ch; }
.point { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--marque, var(--menthe)); box-shadow: 0 0 10px color-mix(in srgb, var(--marque, var(--menthe)) 70%, transparent); }
.p-troclub { --marque: var(--troclub); } .p-datahive { --marque: var(--datahive); } .p-kiplat { --marque: var(--kiplat); }

/* ── Boutons ── */
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, box-shadow .3s, transform .25s var(--doux); }
.bouton svg { width: 18px; height: 18px; transition: transform .25s var(--doux); }
.bouton:hover svg { transform: translate(2px, -2px); }
.bouton.plein { background: var(--menthe); color: var(--menthe-encre); box-shadow: 0 12px 34px -12px rgba(2, 200, 149, .75); }
.bouton.plein:hover { background: var(--menthe-vive); box-shadow: 0 0 0 6px rgba(2, 200, 149, .14), 0 16px 40px -12px rgba(2, 200, 149, .85); transform: translateY(-1px); }
.bouton.contour { border-color: var(--trait-fort); background: rgba(178, 232, 220, .04); color: var(--glace); }
.bouton.contour:hover { border-color: var(--menthe); color: var(--menthe-vive); background: rgba(2, 200, 149, .08); }
.bouton.petit { padding: 11px 18px; font-size: 15px; }

/* ── En-tête : une barre de verre qui reste en haut ── */
header.wrap { position: sticky; top: 0; z-index: 40; padding-top: 14px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 9px 10px 9px 22px; border: 1px solid var(--trait); border-radius: 999px; background: rgba(7, 27, 33, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.logo-entete { display: block; width: auto; height: 30px; }
.liens { display: flex; gap: 4px; }
.liens a { padding: 9px 14px; border-radius: 999px; color: var(--brume); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.liens a:hover { color: var(--glace); background: rgba(178, 232, 220, .08); }

/* ── Ouverture : le titre et le système d'orbites ── */
.ouverture { position: relative; padding-top: clamp(28px, 4.6vw, 64px); overflow-x: clip; }
.ouverture > .wrap { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); align-items: center; }
.accroche { position: relative; z-index: 2; }
.etat { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 14px 7px 12px; border: 1px solid var(--trait); border-radius: 999px; background: rgba(178, 232, 220, .04); color: var(--brume); font-size: 14.5px; font-weight: 600; }
.etat i { width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); animation: bat 2.4s ease-out infinite; }
.ouverture h1 { font-size: clamp(44px, 5.9vw, 88px); line-height: .96; letter-spacing: -.045em; margin-bottom: 26px;
  background: linear-gradient(100deg, var(--glace) 0 42%, #8DF7D8 50%, var(--glace) 58% 100%) 100% 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ouverture .chapeau { font-size: clamp(18px, 1.5vw, 21px); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.orbites { position: relative; z-index: 1; margin: -9% -20% -9% -30%; }
.orbites svg { display: block; width: 100%; height: auto; overflow: visible; }
.etoiles circle { fill: #CFF5EA; }
.etoiles .scintille { animation: scintille 5s ease-in-out infinite; }
.etoiles .scintille:nth-of-type(12n + 1) { animation-delay: -1.7s; }
.etoiles .scintille:nth-of-type(18n + 7) { animation-delay: -3.1s; }
/* Graduations : un trait pointillé très épais donne des petites marques perpendiculaires à l'ellipse */
.graduations { fill: none; stroke: var(--trait-fort); stroke-width: 6; stroke-dasharray: 1 9.6; animation: defile 150s linear infinite; }
.graduations.fortes { stroke: rgba(178, 232, 220, .55); stroke-width: 13; stroke-dasharray: 1.6 83.2; }
/* Chaque orbite en deux moitiés : l'arrière, discret, passe derrière le noyau ; l'avant, lumineux, passe devant */
.arc { fill: none; stroke-linecap: round; }
.arc.arriere { stroke: rgba(178, 232, 220, .2); stroke-width: 1.1; }
.arc.avant { stroke-width: 1.9; }
.arc.avant-lueur { stroke-width: 9; opacity: .08; }
.arc.avant-lueur.fine { stroke-width: 4.5; opacity: .16; }
.axe { stroke: var(--trait); stroke-width: 1; stroke-dasharray: 3 9; }
.trainee { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; opacity: .3; }
.trainee.vive { stroke-width: 2.8; opacity: .95; }
.onde { fill: none; stroke: var(--menthe); stroke-width: 1.3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: onde 6.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.onde-2 { animation-delay: 3.2s; }
.sat { --c: var(--menthe); }
.s-troclub { --c: var(--troclub); } .s-datahive { --c: var(--datahive); } .s-kiplat { --c: var(--kiplat); }
.sat .bille { stroke: rgba(255, 255, 255, .4); stroke-width: .6; }
.etiquette rect { fill: rgba(5, 21, 26, .88); stroke: var(--trait-fort); stroke-width: 1; }
.etiquette text { fill: var(--glace); font: 600 13px "Urbanist", system-ui, sans-serif; letter-spacing: .01em; }
.noyau-lueur { animation: respire 5.2s ease-in-out infinite; }
.noyau-sphere { stroke: rgba(86, 240, 196, .6); stroke-width: 1.2; }
.noyau { fill: var(--menthe-vive); }
.noyau .satellite { fill: #C9FFEF; }
.fixes { display: none; }

/* Les trois marques, sous le titre : mêmes logos clairs, même ligne */
.constellation { grid-column: 1 / -1; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(20px, 2.6vw, 36px); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); background: rgba(5, 21, 26, .55); }
.constellation li + li { border-left: 1px solid var(--trait); }
.constellation a { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; padding: 22px clamp(14px, 2vw, 28px); color: var(--brume); font-size: 15px; font-weight: 600; transition: background .25s, color .25s; }
.constellation a:hover { background: rgba(178, 232, 220, .05); color: var(--glace); }
.constellation img { width: auto; height: 26px; }
/* La description se cale à droite, même sur deux lignes : sinon la plus longue (DataHive) paraissait décalée */
.constellation span { text-align: right; text-wrap: balance; }

/* ── Sections ── */
.plateformes, .adn, .methode, .savoir, #contact { padding-top: clamp(76px, 10vw, 150px); }
.titre-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(34px, 4.6vw, 60px); }

/* ── Plateformes : trois panneaux identiques, la couleur de la marque en simple signature ── */
.pile { display: grid; gap: 26px; }
.plateforme { position: relative; display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 3.6vw, 52px); overflow: hidden; border: 1px solid var(--trait); border-radius: var(--rayon);
  background: linear-gradient(180deg, var(--panneau), var(--nuit-2));
  background: radial-gradient(110% 95% at 100% 0%, color-mix(in srgb, var(--marque) 12%, transparent), transparent 58%), linear-gradient(180deg, var(--panneau), var(--nuit-2)); }
.plateforme::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--marque) 28%, var(--marque) 72%, transparent); opacity: .85; }
.entete { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; color: var(--brume); font-size: 14.5px; font-weight: 600; }
.entete img { width: auto; height: 30px; }
.entete span { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border: 1px solid var(--trait); border-radius: 999px; }
.plateforme h3 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.02; margin-bottom: 16px; }
.plateforme .texte p { color: var(--brume); max-width: 44ch; }
.faits { display: grid; gap: 11px; margin: 24px 0 30px; font-size: 16px; font-weight: 600; }
.faits li { display: flex; align-items: center; gap: 12px; }
.faits svg { flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: rgba(2, 200, 149, .14); color: var(--menthe-vive); }

.scene { position: relative; padding-bottom: 7%; }
.scene::before { content: ""; position: absolute; inset: 14% 6% -4%; z-index: 0; border-radius: 50%; background: color-mix(in srgb, var(--marque) 34%, transparent); filter: blur(46px); opacity: .5; }
.cadre { position: relative; z-index: 1; overflow: hidden; border: 1px solid var(--trait-fort); border-radius: 14px; background: var(--barre); box-shadow: 0 44px 80px -34px rgba(0, 0, 0, .85); }
.barre { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--barre); border-bottom: 1px solid var(--trait); }
.barre b { width: 9px; height: 9px; border-radius: 50%; background: rgba(178, 232, 220, .24); }
.barre span { margin: 0 auto; transform: translateX(-19px); padding: 3px 14px; border-radius: 999px; background: rgba(178, 232, 220, .07); color: var(--brume); font-size: 12px; font-weight: 600; }
.cadre img { display: block; width: 100%; aspect-ratio: 1328 / 800; object-fit: cover; object-position: top; }
.second { position: absolute; z-index: 2; right: -1.5%; bottom: 0; }
.second.tel { width: 24%; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .7)); }
.second.affiche { width: 24%; border: 1px solid var(--trait-fort); border-radius: 16px; box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .85); }
.second.carte { width: 47%; top: 19%; bottom: auto; border: 1px solid var(--trait-fort); border-radius: 12px; box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .85); }

/* ── ADN : six règles sur une même trame ── */
.adn { background: radial-gradient(55% 46% at 0% 34%, rgba(2, 200, 149, .07), transparent 72%); }
.regles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--trait); }
.regle { padding: clamp(24px, 2.7vw, 40px); background: var(--nuit-2); transition: background .3s; }
.regle:hover { background: var(--panneau); }
/* Vignettes : une petite scène dessinée et animée par règle */
.vignette { display: block; width: 100%; height: auto; margin-bottom: 24px; border: 1px solid var(--trait); border-radius: 16px; background: radial-gradient(85% 120% at 50% 0%, rgba(2, 200, 149, .1), transparent 72%), rgba(178, 232, 220, .025); transition: border-color .3s; }
.regle:hover .vignette { border-color: var(--trait-fort); }
.v-trait, .v-vif, .v-grad, .v-onde-clic { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v-trait { stroke: var(--trait-fort); stroke-width: 1.2; }
.v-vif { stroke: var(--menthe-vive); stroke-width: 1.6; }
.v-grad { stroke: var(--trait-fort); stroke-width: 5; stroke-dasharray: 1 8.87; stroke-linecap: butt; }
.v-plein { fill: var(--menthe-vive); }
.v-doux { fill: rgba(178, 232, 220, .14); }
.v-bord { stroke: var(--trait-fort); stroke-width: 1.2; }
.v-socle { fill: var(--nuit-2); }
.v-eteint { fill: rgba(178, 232, 220, .16); }
.v-garde { fill: var(--menthe-vive); animation: v-pouls 2.6s ease-in-out infinite; }
.v-garde:nth-of-type(odd) { animation-delay: -1.3s; }
.v-pouls { animation: v-pouls 2.6s ease-in-out infinite; }
.v-texte { fill: var(--glace); font: 600 10px "Urbanist", system-ui, sans-serif; }
.v-jauge { stroke-dasharray: 100; stroke-dashoffset: 86; animation: v-jauge 5s var(--doux) infinite alternate; }
.v-aiguille { transform-origin: 74px 80px; transform: rotate(-65deg); animation: v-aiguille 5s var(--doux) infinite alternate; }
.v-barre { transform-box: fill-box; transform-origin: bottom; animation: v-barre 5s var(--doux) infinite alternate; }
.v-barre.b2 { animation-delay: -.4s; } .v-barre.b3 { animation-delay: -.8s; }
.v-onde-clic { stroke: var(--menthe-vive); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: v-clic 5s ease-out infinite; }
.v-curseur { fill: var(--glace); stroke: var(--nuit); stroke-width: .8; transform: translate(160px, 58px); animation: v-curseur 5s var(--doux) infinite; }
.v-flux { stroke-dasharray: 3 12; animation: v-flux 1.8s linear infinite; }
.v-bulle { animation: v-bulle 6.5s var(--doux) infinite; }
.v-bulle.v-b2 { animation-delay: 1.1s; }
.v-fixes { display: none; }
.regle h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin-bottom: 8px; }
.regle p { color: var(--brume); font-size: 16px; }
.preuve { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--trait-fort); font-size: 14.5px; font-weight: 600; }
.preuve .point { transform: translateY(-1px); }

/* ── Méthode : quatre temps sur une trajectoire ── */
.etapes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); counter-reset: etape; }
.etapes::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, var(--menthe), var(--trait-fort) 34%, var(--trait-fort)); }
.etapes::after { content: ""; position: absolute; top: 18px; left: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--menthe-vive); box-shadow: 0 0 14px 3px rgba(86, 240, 196, .75); animation: parcours 7s cubic-bezier(.45, 0, .55, 1) infinite; }
.etape { position: relative; padding-top: 70px; counter-increment: etape; }
.etape::before { content: counter(etape); position: absolute; z-index: 1; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--trait-fort); border-radius: 50%; background: var(--nuit); color: var(--menthe-vive); font-size: 17px; font-weight: 800; }
.etape h3 { font-size: 25px; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 8px; }
.etape p { color: var(--brume); font-size: 16px; }

/* ── Savoir-faire ── */
.lignes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; column-gap: 32px; border-top: 1px solid var(--trait); }
.ligne { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 10px; align-items: center; padding: 24px 14px; border-bottom: 1px solid var(--trait); transition: background .25s; }
.ligne::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--menthe); transform: scaleY(0); transition: transform .3s var(--doux); }
.ligne:hover { background: rgba(178, 232, 220, .04); }
.ligne:hover::before { transform: scaleY(1); }
.ligne h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.ligne p { color: var(--brume); }
.ou { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ou li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--trait); border-radius: 999px; font-size: 14px; font-weight: 600; }

/* ── Contact ── */
.appel { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px clamp(24px, 6vw, 96px); align-items: end; padding: clamp(30px, 5.4vw, 80px); overflow: hidden; border: 1px solid rgba(2, 200, 149, .38); border-radius: 32px;
  background: radial-gradient(90% 150% at 100% 100%, rgba(2, 200, 149, .32), transparent 62%), linear-gradient(135deg, #0B2B2C, var(--nuit-2)); }
.appel > h2, .appel > div { position: relative; z-index: 1; }
.appel h2 { font-size: clamp(38px, 5.4vw, 76px); }
.appel p { margin-bottom: 26px; max-width: 44ch; opacity: .88; }
.anneaux { position: absolute; top: 50%; right: -150px; width: 540px; height: 540px; max-width: none; margin-top: -270px; fill: none; opacity: .6; pointer-events: none; }
.anneaux circle { stroke: var(--menthe); stroke-width: 1; transform-origin: 200px 200px; }
.a-1 { stroke-dasharray: 2 12; animation: tourne 90s linear infinite; }
.a-2 { opacity: .45; }
.a-3 { stroke-dasharray: 64 30; animation: tourne 46s linear infinite reverse; }
.anneaux .a-grain { fill: var(--menthe-vive); stroke: none; animation: tourne 20s linear infinite; }

/* ── Pied de page ── */
.pied { margin-top: clamp(72px, 9vw, 130px); padding: 56px 0 28px; border-top: 1px solid var(--trait); background: rgba(3, 13, 16, .6); }
.colonnes { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.societe p { margin-top: 16px; max-width: 34ch; color: var(--brume); font-size: 15.5px; }
.colonne { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.colonne h2 { margin-bottom: 6px; color: var(--brume-2); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.colonne a { font-size: 15.5px; opacity: .9; transition: color .2s, opacity .2s; }
.colonne a:hover { color: var(--menthe-vive); opacity: 1; }
.mentions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--trait); color: var(--brume-2); font-size: 14px; }

/* ── Pages de texte : mentions légales, confidentialité, page introuvable ── */
.texte-long { padding-top: clamp(40px, 6vw, 88px); }
.texte-long .wrap { max-width: 760px; }
.texte-long h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; margin-bottom: 14px; }
.texte-long .maj { color: var(--brume-2); font-size: 15px; }
.texte-long h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 48px 0 12px; }
.texte-long p, .texte-long li, .texte-long dt { color: var(--brume); }
.texte-long p + p { margin-top: 12px; }
.texte-long a { color: var(--menthe-vive); text-decoration: underline; text-underline-offset: 3px; }
.texte-long .bouton { margin-top: 28px; color: var(--menthe-encre); text-decoration: none; }
.texte-long ul { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; list-style: disc; }
.fiche { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--trait); }
.fiche dd { font-weight: 600; }

/* ── Mouvement ── */
@keyframes bat { 0% { box-shadow: 0 0 0 0 rgba(2, 200, 149, .65); } 70%, 100% { box-shadow: 0 0 0 9px rgba(2, 200, 149, 0); } }
@keyframes defile { to { stroke-dashoffset: -848; } }
@keyframes scintille { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@keyframes respire { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes v-pouls { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes v-jauge { from { stroke-dashoffset: 86; } to { stroke-dashoffset: 26; } }
@keyframes v-aiguille { from { transform: rotate(-65deg); } to { transform: rotate(43deg); } }
@keyframes v-barre { from { transform: scaleY(.5); } to { transform: scaleY(1); } }
@keyframes v-curseur { 0%, 100% { transform: translate(126px, 86px); } 34%, 60% { transform: translate(160px, 58px); } 44% { transform: translate(160px, 58px) scale(.86); } }
@keyframes v-clic { 0%, 43% { opacity: 0; transform: scale(1); } 46% { opacity: .9; transform: scale(1); } 72%, 100% { opacity: 0; transform: scale(1.75); } }
@keyframes v-flux { to { stroke-dashoffset: -30; } }
@keyframes v-bulle { 0% { opacity: 0; transform: translateY(6px); } 10%, 84% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes onde { from { transform: scale(.42); opacity: .6; } to { transform: scale(2.4); opacity: 0; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes parcours { 0% { left: 22px; opacity: 0; } 6%, 92% { opacity: 1; } 100% { left: calc(100% - 31px); opacity: 0; } }
@keyframes parcours-vertical { 0% { top: 22px; opacity: 0; } 6%, 92% { opacity: 1; } 100% { top: calc(100% - 31px); opacity: 0; } }
@keyframes reflet { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(26px); } }
@keyframes eclot { from { opacity: 0; transform: scale(.86); } }
@keyframes apparait { from { opacity: 0; transform: translateY(40px); } }
@keyframes flotte { from { transform: translateY(42px); } to { transform: translateY(-30px); } }

@media (prefers-reduced-motion: no-preference) {
  /* À l'arrivée : le titre monte, le système s'ouvre */
  .accroche > * { animation: monte .9s var(--doux) both; }
  .accroche > :nth-child(1) { animation-delay: .05s; }
  .accroche > :nth-child(3) { animation-delay: .3s; }
  .accroche > :nth-child(4) { animation-delay: .42s; }
  .ouverture h1 { animation: monte .9s var(--doux) .15s both, reflet 9s ease-in-out 1.4s infinite; }
  .orbites { animation: eclot 1.5s var(--doux) .15s both; }
  .constellation { animation: monte .9s var(--doux) .6s both; }
  /* Au défilement : chaque bloc monte en entrant dans l'écran (navigateurs qui le permettent) */
  @supports (animation-timeline: view()) {
    .titre-section, .regles, .etapes, .lignes, .appel { animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .scene .second { animation: flotte linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mobiles, .v-mobiles { display: none; }
  .fixes, .v-fixes { display: block; }
  .etapes::after { display: none; }
}

/* Les panneaux se recouvrent au défilement, sur les écrans assez hauts pour les montrer en entier */
@media (min-width: 1001px) and (min-height: 780px) {
  .plateforme { position: sticky; top: calc(104px + var(--rang, 0) * 14px); }
  .plateforme:nth-child(2) { --rang: 1; }
  .plateforme:nth-child(3) { --rang: 2; }
}

/* ── Écrans moyens et petits ── */
@media (max-width: 1000px) {
  .ouverture { overflow: hidden; }
  .ouverture > .wrap { grid-template-columns: 1fr; }
  .orbites { width: min(100%, 600px); margin: -4% auto -6%; }
  .plateforme { grid-template-columns: 1fr; }
  .scene { max-width: 680px; }
  .regles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .titre-section, .appel { grid-template-columns: 1fr; align-items: start; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .etapes::before, .etapes::after { display: none; }
  .colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anneaux { right: -260px; opacity: .4; }
}
@media (max-width: 860px) {
  .liens { display: none; }
}
@media (max-width: 760px) {
  /* La barre du haut devient presque opaque : sur petit écran, le texte qui défilait dessous brouillait le logo */
  .nav { background: rgba(5, 21, 26, .93); }
  header.wrap::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * var(--gouttiere)) -12px; background: linear-gradient(var(--nuit) 62%, transparent); pointer-events: none; }
  .constellation { grid-template-columns: 1fr; }
  .constellation li + li { border-left: 0; border-top: 1px solid var(--trait); }
  /* Plateformes : le visuel passe juste sous le logo, en grand ; la capture du site est recadrée sur son titre */
  .plateforme { display: flex; flex-direction: column; gap: 0; padding: 22px 20px 26px; }
  .plateforme .texte { display: contents; }
  .plateforme .entete { order: 1; margin-bottom: 18px; }
  .plateforme .scene { order: 2; width: 100%; max-width: none; margin-bottom: 26px; padding-bottom: 10%; }
  .plateforme h3 { order: 3; }
  .plateforme .texte p { order: 4; }
  .plateforme .faits { order: 5; }
  .plateforme .bouton { order: 6; align-self: flex-start; }
  .cadre img { aspect-ratio: 1 / 1; object-position: left top; }
  .second.tel, .second.affiche { right: -1%; width: 37%; }
  .second.carte { top: auto; right: -1%; bottom: 0; width: 64%; }
  .lignes { grid-template-columns: 1fr; }
  .ligne { padding: 22px 6px; }
  .ou { justify-content: flex-start; margin-top: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  /* Le système d'orbites est agrandi et déborde de l'écran : les billes et leurs noms restent lisibles */
  .orbites { width: 150%; max-width: none; margin: -19% -25% -22%; }
  /* ADN : les six règles se feuillettent de gauche à droite, la suivante dépasse pour le montrer */
  .regles { display: flex; gap: 12px; margin-inline: calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere) 6px; overflow-x: auto; overflow-y: hidden; border: 0; border-radius: 0; background: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .regles::-webkit-scrollbar { display: none; }
  .regle { flex: 0 0 84%; border: 1px solid var(--trait); border-radius: 22px; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .colonnes { grid-template-columns: 1fr; }
  /* Méthode : les quatre temps descendent le long d'une ligne */
  .etapes { grid-template-columns: 1fr; row-gap: 30px; }
  .etapes::before { display: block; top: 22px; right: auto; bottom: 22px; left: 22px; width: 1px; height: auto; background: linear-gradient(180deg, var(--menthe), var(--trait-fort) 34%, var(--trait-fort)); }
  .etape { min-height: 44px; padding: 2px 0 0 66px; }
  .fiche { grid-template-columns: 1fr; gap: 2px; }
  .fiche dd { margin-bottom: 10px; }
  .nav { padding-left: 16px; }
  .logo-entete { height: 26px; }
  .actions .bouton { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  .etapes::after { display: block; left: 18px; animation-name: parcours-vertical; }
}
/* Sur téléphone, chaque élément apparaît pour lui-même : un grand bloc restait à moitié transparent sur la moitié de l'écran */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .etapes, .lignes { animation: none; }
    .etape, .ligne { animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
