/* ═══════════════════════════════════════════════════════════════
   SONARA — landing (refonte d'apres la maquette Nebula)
   Spec complete : nebula-analyse-pour-sonara.md
   Charge apres sonara.css : surcharge l'ancien habillage de #landing.
   Desktop d'abord, canevas de reference 1400px : 1px de la maquette
   = 1/14 vw. Mobile en bas de fichier.
   ═══════════════════════════════════════════════════════════════ */

/* Alias des tokens du kit (sonara-kit.css, source unique) */
:root{
  --neb-ink:var(--sn-hero-ink);
  --neb-wine:var(--sn-hero-wine);
  --neb-brick:var(--sn-hero-brick);
  --neb-core:var(--sn-hero-core);
  --neb-hot:var(--sn-hero-hot);
  --neb-peach:var(--sn-peach);
  /* Teintes propres a la landing validee (hors kit, a ne pas reprendre
     dans les ecrans du jeu) */
  --neb-cream:#CCC5B8;
  --neb-black:#080808;
  --neb-card:#111111;
  --neb-ctrl:#1F1F1F;
  --neb-btn-cream:#E9E1DB;
  --neb-orange:#E85E16;
  --neb-margin:4.85vw;
  --f-display:var(--sn-font-display);  /* titres */
  --f-text:var(--sn-font-body);
  --hd-h:64px;
  /* Fonds de section : un aplat par section, en alternance */
  --fond-orange:var(--neb-core);   /* #DE5810 */
  --fond-brun:var(--ink);          /* #2d1002 */
  --fond-creme:var(--cream);       /* #fdddb8, texte en --ink */                 /* hauteur du header fixe */
}
/* Une ancre ou un scrollIntoView ne place jamais un titre sous le header */
html{scroll-padding-top:var(--hd-h)}


/* Centres lumineux du degrade : animes pour la "respiration" */
@property --nb-g1x{syntax:'<percentage>';inherits:false;initial-value:85%}
@property --nb-g1y{syntax:'<percentage>';inherits:false;initial-value:95%}
@property --nb-g2x{syntax:'<percentage>';inherits:false;initial-value:55%}
@property --nb-g2y{syntax:'<percentage>';inherits:false;initial-value:60%}
@property --nb-g3x{syntax:'<percentage>';inherits:false;initial-value:75%}

#landing{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  padding:0;
  min-height:100vh;
  background:var(--neb-black);
  background-image:none;
  overflow-x:clip;
  color:#fff;
}

/* ── Composants communs ── */
.nb-pill{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  border:none;border-radius:999px;cursor:pointer;
  font-family:var(--f-text);font-weight:600;font-size:15px;line-height:1;
  padding:16px 30px;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:transform .25s ease, background-color .25s ease, color .25s ease;
}
.nb-pill:hover{transform:translateY(-2px)}
.nb-pill:focus-visible{outline:2px solid #fff;outline-offset:3px}
.nb-pill--cta{background:var(--neb-black);color:#fff}
.nb-pill--cta:hover{background:var(--accent);color:#fff}
.nb-pill--sm{padding:11px 22px;font-size:14px}
.nb-label{font-family:var(--f-text);font-size:14px;color:rgba(255,255,255,.55);margin:0}

/* ── Header fixe ── */
.nb-header{
  position:fixed;top:0;left:0;right:0;z-index:40;
  height:var(--hd-h);padding:0 var(--neb-margin);
  display:flex;align-items:center;justify-content:space-between;
  background:rgba(8,8,8,.72);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
  opacity:0;pointer-events:none;
  transition:opacity .35s ease;
}
.nb-header.is-on{opacity:1;pointer-events:auto}
.nb-hd-logo img{height:30px;width:auto;display:block}
.nb-header .nb-pill--cta{background:var(--neb-orange)}
.nb-header .nb-pill--cta:hover{background:var(--accent)}
.nb-hd-right{display:flex;align-items:center;gap:18px}

/* Menu du header : liens sur ordinateur, liste deroulante sur mobile */
.nb-hd-nav{width:auto;max-width:none;padding:0;margin:0 auto 0 48px;display:flex;align-items:center;gap:32px}  /* annule nav{} de sonara.css */
.nb-hd-link{font-family:var(--f-text);font-size:14px;font-weight:500;color:#fff;text-decoration:none;padding:4px 0}
.nb-hd-link:hover,.nb-hd-link[aria-current="page"]{text-decoration:underline;text-underline-offset:5px}
.nb-hd-link[aria-current="page"]{text-decoration-color:var(--neb-orange);text-decoration-thickness:2px}
.nb-hd-link:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:4px}
.nb-hd-menu{display:none;position:relative}
.nb-hd-menu .nb-menu-btn{font-size:14px}

/* Accroche : en haut de la section des univers (#univers), sur son aplat ;
   masquee quand un univers est ouvert (panneau Decouvrir) */
.nb-hook{position:relative;z-index:5;padding:calc(var(--hd-h) + clamp(18px,3vh,40px)) var(--neb-margin) 0;transition:opacity .3s ease,visibility .3s}
.uv.is-open .nb-hook{opacity:0;visibility:hidden}
.nb-hook-t{margin:0;font-family:'MuseoModerno',sans-serif;font-weight:800;font-size:clamp(30px,min(4.2vw,6.5vh),68px);line-height:1;letter-spacing:-.02em;color:#fff;text-wrap:balance}
.nb-hook-s{margin:10px 0 0;font-family:var(--f-text);font-size:clamp(15px,1.35vw,20px);line-height:1.4;color:rgba(255,255,255,.85)}
.nb-hook .ld-badge-row{justify-content:flex-start;padding:0;margin:20px 0 0}
/* Sections retirees de l'accueil (gardees dans le code) et vues inactives */
#landing > [hidden]{display:none !important}

/* ── Fond degrade et grain ── (parcours, jeu, resultats : .nb-hero-bg, .nb-grain) */
/* Exception aux aplats : degrade anime (demande explicite) */
.nb-hero-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(60% 55% at var(--nb-g1x) var(--nb-g1y), var(--neb-peach) 0%, transparent 70%),
    radial-gradient(70% 70% at var(--nb-g2x) var(--nb-g2y), var(--neb-core) 0%, transparent 75%),
    radial-gradient(90% 80% at var(--nb-g3x) 20%, var(--neb-brick) 0%, transparent 80%),
    linear-gradient(135deg, var(--neb-ink) 0%, var(--neb-wine) 30%, var(--neb-brick) 55%, var(--neb-core) 80%, var(--neb-hot) 100%);
  animation:nb-breathe 12s ease-in-out infinite alternate;
}
@keyframes nb-breathe{
  0%  {--nb-g1x:85%;--nb-g1y:95%;--nb-g2x:55%;--nb-g2y:60%;--nb-g3x:75%}
  50% {--nb-g1x:81%;--nb-g1y:91%;--nb-g2x:59%;--nb-g2y:57%;--nb-g3x:71%}
  100%{--nb-g1x:88%;--nb-g1y:93%;--nb-g2x:52%;--nb-g2y:63%;--nb-g3x:78%}
}
/* Grain SVG (feTurbulence) a 8 % en soft-light : evite les bandes de couleur */
.nb-grain{
  position:absolute;inset:0;opacity:.08;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Logo geant en filigrane (bande du bas des resultats, ecrans.css) */
.nb-giant{
  position:absolute;left:var(--neb-margin);
  top:calc(var(--hy, var(--pt)) + var(--pw) * 1.06);
  width:var(--logo-w);height:auto;opacity:.2;
  will-change:transform;
}
.nb-menu-btn{
  display:inline-flex;align-items:center;gap:6px;padding:4px 0;
  background:none;border:none;cursor:pointer;
  font-family:var(--f-text);font-size:13px;font-weight:500;color:#fff;
}
.nb-menu-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.nb-menu-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.nb-menu-btn:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:4px}
.nb-menu-list{
  position:absolute;top:calc(100% + 10px);left:-14px;z-index:5;
  min-width:190px;margin:0;padding:8px;list-style:none;
  background:rgba(17,17,17,.94);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.08);border-radius:20px;
}
.nb-menu-list[hidden]{display:none}
.nb-menu-list button,.nb-menu-list a{
  display:block;width:100%;padding:10px 14px;border:none;border-radius:999px;
  background:none;cursor:pointer;text-align:left;text-decoration:none;
  font-family:var(--f-text);font-size:14px;color:rgba(255,255,255,.82);
  transition:background-color .2s ease,color .2s ease;
}
.nb-menu-list button:hover,.nb-menu-list button:focus-visible,.nb-menu-list a:hover,.nb-menu-list a:focus-visible{background:var(--neb-orange);color:#fff;outline:none}

/* Message "Rejoins [univers]" (lien de Defi) : pastille aux codes de la landing */
.nb-hook .ld-badge{
  display:inline-flex;align-items:center;gap:8px;padding:8px 16px 8px 12px;border-radius:999px;
  background:var(--ink);color:var(--cream);
  font-family:var(--f-text);font-size:13px;font-weight:600;
}
.nb-hook #ltxt{color:var(--cream)}
.nb-hook .ld-dot{width:8px;height:8px;background:var(--neb-orange)}

/* Telephone (iPhone 15 Pro) — toutes les mesures internes suivent --pw */
.nb-phone{
  position:relative;width:100%;aspect-ratio:9/19.5;
  border-radius:calc(var(--pw) * .143);
  padding:calc(var(--pw) * .022);
  background:#2b2a29;
  box-shadow:0 0 0 1px rgba(0,0,0,.6);
}
.nb-screen{
  position:relative;height:100%;overflow:hidden;
  border-radius:calc(var(--pw) * .121);
  background:#160303;
  font-family:var(--f-text);color:#fff;
  font-weight:600;   /* maquettes : Inter 600, titres d'ecran 700 */
}
.nb-island{
  position:absolute;top:calc(var(--pw) * .035);left:50%;transform:translateX(-50%);
  width:32%;height:calc(var(--pw) * .09);border-radius:999px;background:#000;z-index:3;
}
.nb-scr-status{
  position:absolute;top:calc(var(--pw) * .05);left:9%;right:9%;z-index:2;
  display:flex;justify-content:space-between;align-items:center;
  font-size:calc(var(--pw) * .042);font-weight:600;
}
.nb-scr-bat{width:calc(var(--pw) * .07);height:calc(var(--pw) * .034);border-radius:3px;border:1px solid rgba(255,255,255,.8);position:relative}
.nb-scr-bat::after{content:"";position:absolute;inset:1px 30% 1px 1px;background:#fff;border-radius:1px}

/* ── Mobile : les colonnes se replient ── */
@media (max-width:760px){
  :root{--hd-h:56px}
  .nb-hd-link{display:none}
  .nb-hd-menu{display:block}
  .nb-hd-nav{margin:0 16px 0 auto}
  .nb-hd-menu .nb-menu-list{left:auto;right:-8px}
  .nb-hook{padding:calc(var(--hd-h) + 16px) 16px 0}
  .nb-header{padding:0 16px}
  .nb-hd-logo img{height:24px}
  .nb-hd-right{gap:12px}
}

@media (prefers-reduced-motion:reduce){
  .nb-hero-bg{animation:none}
  .nb-pill{transition:none}
}

/* ═══════════════════════════════════════════════════════════════
   Composants communs aux sections
   ═══════════════════════════════════════════════════════════════ */
.nb-sec{position:relative;background:var(--neb-black);color:#fff;overflow:hidden}
.nb-sec .nb-label{margin:0 0 18px}
/* Bandeau de section : SONARA a gauche, slogan a droite */
.nb-band{
  position:absolute;top:32px;left:var(--neb-margin);right:var(--neb-margin);
  display:flex;justify-content:space-between;
  font-family:var(--f-text);font-size:13px;line-height:1;color:rgba(255,255,255,.45);
}
/* Numero de section "01 /" + titre */
.nb-secnum span{display:block;font-family:var(--f-text);font-size:14px;color:rgba(255,255,255,.45)}
.nb-secnum h2{margin:6px 0 0;font-family:var(--f-text);font-size:14px;font-weight:500;color:#fff}
/* Icone de section : cercle 32px, 4 points en losange */
.nb-secicon{
  position:relative;display:block;width:32px;height:32px;margin-bottom:18px;
  border:1px solid rgba(255,255,255,.35);border-radius:50%;
}
.nb-secicon i{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff;left:50%;top:50%;margin:-1.5px 0 0 -1.5px}
.nb-secicon i:nth-child(1){transform:translateY(-5px)}
.nb-secicon i:nth-child(2){transform:translateX(5px)}
.nb-secicon i:nth-child(3){transform:translateY(5px)}
.nb-secicon i:nth-child(4){transform:translateX(-5px)}
/* Grandes phrases : teinte pleine (blanc, ou --ink sur fond creme) */
.nb-phrase{
  margin:0;font-family:var(--f-text);font-weight:300;
  font-size:4.5vw;line-height:1.05;letter-spacing:-.02em;color:#fff;
}
.nb-phrase > span{display:block}
.nb-phrase--sm{font-size:2.4vw;line-height:1.15;letter-spacing:-.01em}
.nb-body{margin:0;font-family:var(--f-text);font-size:15px;line-height:1.45;color:rgba(255,255,255,.62)}
/* Avatars ronds (placeholders, aucune photo) */
.nb-avatar{display:block;border-radius:50%;flex-shrink:0}
.nb-avatar--a{background:#E85E16}
.nb-avatar--b{background:#E6C789}
.nb-avatar--c{background:#A10D01}
.nb-avatar--d{background:#8F887C}
/* Pied de section : globe + texte, trio lecteur miniature */
.nb-secfoot{
  display:flex;justify-content:space-between;align-items:flex-end;
  padding:6vw var(--neb-margin) 32px;
}
.nb-globe{width:28px;height:28px;fill:none;stroke:rgba(255,255,255,.7);stroke-width:1.2}
.nb-secfoot p{margin:10px 0 0;font-family:var(--f-text);font-size:13px;line-height:1.35;color:rgba(255,255,255,.5)}
/* Ligne du picto globe : hauteur fixee (elle dependait de la police globale, DM Sans retiree) */
.nb-secfoot-l{line-height:21px}
.nb-trio-mini{display:flex;gap:8px}
.nb-trio-mini span{
  width:24px;height:24px;border-radius:50%;background:var(--neb-orange);
  display:flex;align-items:center;justify-content:center;
}
.nb-trio-mini svg{width:11px;height:11px;fill:none;stroke:var(--neb-btn-cream);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* Satellites flottants (parallaxe : landing.js, inclinaison au survol) */
.nb-sat{position:absolute;z-index:2;will-change:transform;transition:rotate .35s ease}
.nb-sat:hover{rotate:-2deg}

/* ═══════════════════════════════════════════════════════════════
   01 / QU'EST-CE QUE SONARA
   ═══════════════════════════════════════════════════════════════ */
.nb-s01{background:var(--fond-brun)}
.nb-s01-intro{position:relative;padding-top:7vw}
.nb-s01-intro .nb-secnum{position:absolute;left:var(--neb-margin);top:7vw}
.nb-s01-icon{position:absolute;left:32vw;top:7vw}
.nb-s01-idea{margin-left:36vw;width:59vw}

/* Rangee B : telephone accueil + satellites */
.nb-s01-stage{position:relative;height:56vw;margin-top:4vw}
.nb-s01-home{--pw:24vw;position:absolute;left:38vw;top:0;width:var(--pw);z-index:1}
.nb-s01-about{position:absolute;left:var(--neb-margin);bottom:5vw;width:17vw}

.nb-screen--home{background:#120706}
.nb-home-top{
  position:absolute;top:calc(var(--pw) * .17);left:7%;right:7%;
  display:flex;justify-content:space-between;align-items:center;
}
.nb-home-top img{height:calc(var(--pw) * .08);width:auto}
.nb-home-top .nb-avatar{width:calc(var(--pw) * .1);height:calc(var(--pw) * .1)}
.nb-home-tabs{
  position:absolute;top:calc(var(--pw) * .33);left:7%;right:0;
  display:flex;gap:calc(var(--pw) * .06);white-space:nowrap;
  font-size:calc(var(--pw) * .048);font-weight:600;color:rgba(255,255,255,.4);
}
.nb-home-tabs .is-on{position:relative;color:#fff}
.nb-home-tabs i{
  position:absolute;right:calc(var(--pw) * -.03);top:0;
  width:calc(var(--pw) * .02);height:calc(var(--pw) * .02);border-radius:50%;background:var(--neb-orange);
}
.nb-home-carousel{
  position:absolute;top:calc(var(--pw) * .46);left:-16%;right:-16%;height:calc(var(--pw) * .62);
  display:flex;align-items:center;justify-content:center;gap:calc(var(--pw) * .035);
}
.nb-home-cv{display:block;position:relative;flex-shrink:0;background-size:cover;background-position:center;border-radius:calc(var(--pw) * .048)}
.nb-home-cv--main{width:calc(var(--pw) * .62);height:calc(var(--pw) * .62)}
.nb-home-cv--side{width:calc(var(--pw) * .36);height:calc(var(--pw) * .48);opacity:.45}
.nb-home-play{
  position:absolute;right:8%;bottom:8%;
  width:calc(var(--pw) * .13);height:calc(var(--pw) * .13);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.22);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
}
.nb-home-play svg{width:42%;height:42%;fill:#fff;margin-left:6%}
.nb-home-card{
  position:absolute;left:7%;right:7%;bottom:calc(var(--pw) * .1);
  padding:calc(var(--pw) * .055);border-radius:calc(var(--pw) * .065);
  background:#171717;
}
.nb-home-k{margin:0;font-size:calc(var(--pw) * .036);color:rgba(255,255,255,.5)}
.nb-home-t{margin:calc(var(--pw) * .015) 0 calc(var(--pw) * .045);font-family:var(--f-text);font-weight:700;font-size:calc(var(--pw) * .06);line-height:1.05}
.nb-home-t em{font-style:normal;color:rgba(255,255,255,.45)}
.nb-home-btn{
  display:inline-flex;align-items:center;gap:calc(var(--pw) * .02);
  padding:calc(var(--pw) * .028) calc(var(--pw) * .05);border-radius:999px;
  background:var(--neb-orange);font-size:calc(var(--pw) * .038);font-weight:600;
}
.nb-home-btn svg{width:calc(var(--pw) * .032);height:calc(var(--pw) * .032);fill:#fff}

.nb-sat-invite{
  left:24vw;top:14vw;width:15.5vw;padding:1.7vw;border-radius:22px;
  background:rgba(17,17,17,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.06);
  font-family:var(--f-text);
}
.nb-avatars{display:flex;margin-bottom:1.1vw}
.nb-avatars .nb-avatar{width:2.4vw;height:2.4vw;min-width:28px;min-height:28px;border:2px solid #111}
.nb-avatars .nb-avatar + .nb-avatar{margin-left:-.75vw}
.nb-sat-t{margin:0;font-size:15px;font-weight:600}
.nb-sat-s{margin:4px 0 14px;font-size:13px;color:rgba(255,255,255,.5)}
.nb-sat-btn{display:inline-block;padding:9px 18px;border-radius:999px;background:#333;font-size:13px;font-weight:500}
.nb-sat-create{
  left:57vw;top:31vw;display:flex;align-items:center;gap:12px;
  padding:8px 22px 8px 8px;border-radius:999px;background:var(--neb-card);
  font-family:var(--f-text);font-size:14px;font-weight:500;white-space:nowrap;
}
.nb-ring-plus{
  width:40px;height:40px;border-radius:50%;border:1.5px solid var(--neb-orange);
  display:flex;align-items:center;justify-content:center;
}
.nb-ring-plus svg{width:16px;height:16px;fill:none;stroke:var(--neb-orange);stroke-width:2;stroke-linecap:round}
.nb-sat-wave{
  left:30vw;top:46vw;width:4.3vw;height:4.3vw;min-width:48px;min-height:48px;border-radius:50%;
  border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;
}
.nb-sat-wave svg{width:44%;height:44%;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round}
.nb-sat-tile{
  right:var(--neb-margin);top:20vw;width:11vw;height:11vw;border-radius:20px;overflow:hidden;
  background-size:cover;background-position:center;
}
.nb-sat-tile::after{content:"";position:absolute;inset:0;background:var(--neb-orange);mix-blend-mode:multiply;opacity:.7}
.nb-sat-tile .nb-home-play{--pw:11vw;right:auto;bottom:auto;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1;width:3.4vw;height:3.4vw}

/* Rangee C : classement, mission, partie qui sort du cadre */
.nb-s01-row2{display:flex;align-items:flex-start;gap:8vw;padding:2vw var(--neb-margin) 0 20.4vw}
.nb-s01-rank{--pw:20vw;position:relative;width:var(--pw);flex-shrink:0}
.nb-screen--rank{background:#120706}
.nb-rank-tabs{top:calc(var(--pw) * .17)}
.nb-podium{
  position:absolute;top:calc(var(--pw) * .34);left:8%;right:8%;
  display:flex;justify-content:center;align-items:flex-end;gap:calc(var(--pw) * .03);
}
.nb-podium-col{display:flex;flex-direction:column;align-items:center;gap:calc(var(--pw) * .03);width:30%}
.nb-podium-col .nb-avatar{width:calc(var(--pw) * .14);height:calc(var(--pw) * .14)}
.nb-podium-col--1 .nb-avatar{width:calc(var(--pw) * .18);height:calc(var(--pw) * .18);box-shadow:0 0 0 2px var(--neb-orange)}
.nb-podium-col b{
  display:flex;align-items:flex-start;justify-content:center;width:100%;
  padding-top:calc(var(--pw) * .03);border-radius:calc(var(--pw) * .035) calc(var(--pw) * .035) 0 0;
  background:var(--neb-ctrl);font-family:var(--f-text);font-weight:700;font-size:calc(var(--pw) * .07);
}
.nb-podium-col--1 b{height:calc(var(--pw) * .32);background:var(--neb-orange)}
.nb-podium-col--2 b{height:calc(var(--pw) * .23)}
.nb-podium-col--3 b{height:calc(var(--pw) * .16)}
.nb-rank-list{
  position:absolute;top:calc(var(--pw) * 1.06);left:7%;right:7%;margin:0;padding:0;list-style:none;
  font-size:calc(var(--pw) * .042);
}
.nb-rank-list li{
  display:flex;align-items:center;gap:calc(var(--pw) * .035);
  padding:calc(var(--pw) * .04) 0;border-bottom:1px solid rgba(255,255,255,.07);
}
.nb-rank-list span:first-child{width:calc(var(--pw) * .04);color:rgba(255,255,255,.45)}
.nb-rank-list .nb-avatar{width:calc(var(--pw) * .09);height:calc(var(--pw) * .09)}
.nb-rank-list b{flex:1;font-weight:600}
.nb-rank-list em{font-style:normal;color:rgba(255,255,255,.45)}

/* Rangee D : l'histoire */
.nb-s01-story{flex:1;max-width:42vw;padding-top:3vw}
.nb-s01-story-txt{margin:0;font-family:var(--f-text);font-weight:300;font-size:1.65vw;line-height:1.35;color:#fff}
.nb-s01-mission-t{margin:3.2vw 0 14px !important;color:rgba(255,255,255,.55)}

/* ── Sections : mobile ── */
@media (max-width:760px){
  .nb-band{top:22px;left:16px;right:16px;font-size:12px}
  .nb-phrase{font-size:7vw}
  .nb-phrase--sm{font-size:6vw}
  .nb-secfoot{padding:64px 16px 24px}

  .nb-s01-intro{padding:76px 16px 0}
  .nb-s01-intro .nb-secnum{position:static;margin-bottom:40px}
  .nb-s01-icon{position:relative;left:auto;top:auto}
  .nb-s01-idea{margin:0;width:auto}
  .nb-s01-stage{height:auto;margin-top:56px;padding:0 16px}
  .nb-s01-home{--pw:62vw;position:relative;left:auto;margin:0 auto}
  .nb-s01-about{position:static;width:auto;margin-top:48px}
  .nb-sat{display:none}
  .nb-s01-row2{padding:48px 16px 0;flex-direction:column;gap:40px}
  .nb-s01-rank{--pw:56vw;margin:0 auto}
  .nb-s01-story{max-width:none;padding-top:0}
  .nb-s01-story-txt{font-size:5.2vw}
  .nb-s01-mission-t{margin:28px 0 12px !important}
}

/* ═══════════════════════════════════════════════════════════════
   02 / LES POSSIBILITES
   ═══════════════════════════════════════════════════════════════ */
.nb-s02{background:var(--fond-creme)}
.nb-s02-intro{position:relative;padding-top:11vw;min-height:30vw}
.nb-s02-intro .nb-secnum{position:absolute;left:var(--neb-margin);top:11vw}
.nb-s02-big{margin-left:20.4vw;width:45vw}
.nb-s02-side{position:absolute;left:67vw;top:calc(11vw + 9.6vw);font-size:2.05vw}

/* Telephone incline dans ses orbites */
.nb-s02-stage{position:relative;height:66vw;margin-top:4vw}
.nb-orbits{position:absolute;left:50%;top:29vw;width:0;height:0}
.nb-orbits i{
  position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%;
  transform:translate(-50%,-50%);
}
.nb-orbits i:nth-child(1){width:38vw;height:38vw}
.nb-orbits i:nth-child(2){width:56vw;height:56vw;border-color:rgba(255,255,255,.09)}
.nb-orbits i:nth-child(3){width:76vw;height:76vw;border-color:rgba(255,255,255,.06)}
.nb-s02-room{
  --pw:21vw;position:absolute;left:calc(50% - 10.5vw);top:6.5vw;width:var(--pw);z-index:1;
  transform:perspective(1400px) rotateY(-14deg) rotateZ(-12deg);
}
.nb-screen--room{background:#120706}
.nb-room-head{position:absolute;top:calc(var(--pw) * .2);left:8%;right:8%;display:flex;justify-content:space-between;align-items:center}
.nb-room-t{margin:0;font-family:var(--f-text);font-weight:700;font-size:calc(var(--pw) * .062);white-space:nowrap}
.nb-room-code{
  padding:calc(var(--pw) * .02) calc(var(--pw) * .045);border-radius:999px;
  border:1px solid rgba(255,255,255,.18);font-size:calc(var(--pw) * .038);color:rgba(255,255,255,.75);
}
.nb-room-list{position:absolute;top:calc(var(--pw) * .42);left:8%;right:8%;margin:0;padding:0;list-style:none;font-size:calc(var(--pw) * .045)}
.nb-room-list li{
  display:flex;align-items:center;gap:calc(var(--pw) * .04);
  padding:calc(var(--pw) * .04);margin-bottom:calc(var(--pw) * .03);
  border-radius:calc(var(--pw) * .05);background:rgba(255,255,255,.05);
}
.nb-room-list li:first-child{background:rgba(232,94,22,.18);box-shadow:inset 0 0 0 1px rgba(232,94,22,.5)}
.nb-room-list .nb-avatar{width:calc(var(--pw) * .1);height:calc(var(--pw) * .1)}
.nb-room-list b{flex:1;font-weight:600}
.nb-room-list em{font-style:normal;color:rgba(255,255,255,.55)}
.nb-room-btn{position:absolute;left:8%;right:8%;bottom:calc(var(--pw) * .12);justify-content:center;padding:calc(var(--pw) * .045) 0}

.nb-sat-live{
  left:18vw;top:20vw;display:flex;align-items:center;gap:12px;
  padding:7px 8px 7px 7px;border-radius:999px;background:var(--neb-card);
  border:1px solid rgba(255,255,255,.06);
}
.nb-sat-live .nb-avatars{margin:0}
.nb-live{
  padding:6px 12px;border-radius:999px;background:var(--accent);color:var(--cream);
  font-family:var(--f-text);font-size:12px;font-weight:600;
}
.nb-s02-create{left:auto;right:16vw;top:38vw}
/* pastille sombre sur section creme : texte creme (comme en section 01) */
.nb-sec--light .nb-sat-create{color:var(--cream)}
.nb-s02-label{position:absolute;left:20.4vw;bottom:2vw;width:20vw}
.nb-crumbs{
  position:absolute;left:67vw;bottom:2.4vw;margin:0;
  font-family:var(--f-text);font-size:14px;color:rgba(255,255,255,.45);
}
.nb-crumbs i{font-style:normal;margin:0 6px;color:rgba(255,255,255,.25)}


@media (max-width:760px){
  .nb-s02-intro{padding:76px 16px 0;min-height:0}
  .nb-sat-live,.nb-s02-create{display:none}
  .nb-s02-intro .nb-secnum{position:static;margin-bottom:40px}
  .nb-s02-big{margin:0;width:auto}
  .nb-s02-side{position:static;margin-top:28px;font-size:6vw}
  .nb-s02-stage{height:auto;margin-top:56px;padding:0 16px;display:flex;flex-direction:column;align-items:center}
  .nb-orbits{top:66vw}
  .nb-s02-room{--pw:56vw;position:relative;left:auto;top:auto;margin:30px 0 60px}
  .nb-s02-label{position:static;width:auto;align-self:stretch}
  .nb-crumbs{position:static;align-self:stretch;margin-top:18px}
}

/* ═══════════════════════════════════════════════════════════════
   Composant vinyle (hero + carrousel des univers)
   Etiquette = pochette en rond (33 % du diametre), trou 2,5 %, zone lisse
   etroite, sillons fins et serres + 3 separations de plages, bord lisse.
   Seuls .vy-spin (disque + etiquette) tourne ; le reflet .vy-sheen est
   un calque separe, immobile. Exception "aucun degrade" : limitee au
   disque (texture des sillons et reflet).
   Variables : --vy-color (disque), --vy-label (aplat d'etiquette sans
   image), --vy-hole (couleur vue a travers le trou).
   ═══════════════════════════════════════════════════════════════ */
.vy{
  --vy-color:#141414;--vy-label:var(--accent);--vy-hole:var(--neb-black);
  position:relative;display:block;width:100%;aspect-ratio:1;border-radius:50%;
  container-type:inline-size;
}
.vy-spin{
  position:absolute;inset:0;border-radius:50%;will-change:transform;
  /* vrai trou central (2,5 % du diametre) : on voit le fond, jamais un point noir */
  -webkit-mask:radial-gradient(circle closest-side, transparent 0 2.5%, #000 2.6%);
  mask:radial-gradient(circle closest-side, transparent 0 2.5%, #000 2.6%);
}
.vy-disc{
  position:absolute;inset:0;border-radius:50%;
  background:
    radial-gradient(circle closest-side, var(--vy-color) 0 36.6%, transparent 37% 96.8%, var(--vy-color) 97.2% 100%, transparent 100%),
    radial-gradient(circle closest-side, transparent 0 52.4%, rgba(0,0,0,.16) 52.6% 52.9%, transparent 53.1% 66.4%, rgba(0,0,0,.16) 66.6% 66.9%, transparent 67.1% 80.9%, rgba(0,0,0,.16) 81.1% 81.4%, transparent 81.6%),
    repeating-radial-gradient(circle, rgba(255,255,255,.035) 0, rgba(0,0,0,.075) .9px, rgba(255,255,255,.035) 1.8px),
    var(--vy-color);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.35);
}
.vy-label{
  position:absolute;left:33.5%;top:33.5%;width:33%;height:33%;border-radius:50%;overflow:hidden;z-index:1;
  background:var(--vy-label);
  display:flex;align-items:center;justify-content:center;
}
.vy-label img{display:block;width:100%;height:100%;object-fit:cover}
.vy-label-txt{
  font-family:'MuseoModerno',sans-serif;font-weight:800;font-size:4.2cqw;line-height:1;color:#fff;
  text-align:center;padding:0 8%;
}
.vy-hole{display:none}   /* remplace par le trou decoupe (mask de .vy-spin) */
.vy-sheen{
  position:absolute;inset:0;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 25deg, transparent 0deg, rgba(255,255,255,.14) 22deg, transparent 50deg 180deg, rgba(255,255,255,.1) 204deg, transparent 232deg);
  -webkit-mask:radial-gradient(circle closest-side, transparent 0 35%, #000 37% 98%, transparent 100%);
  mask:radial-gradient(circle closest-side, transparent 0 35%, #000 37% 98%, transparent 100%);
}
.vy--spin .vy-spin{animation:vy-spin 8s linear infinite}
@keyframes vy-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.vy--spin .vy-spin{animation:none}}

/* ═══════════════════════════════════════════════════════════════
   04 / COMMENT JOUER
   Bandeau orange (degrade Nebula, recette 6.2 bis) qui se fond dans le
   beige papier ; textes sombres sur la partie beige.
   ═══════════════════════════════════════════════════════════════ */
.nb-s04{background:var(--fond-creme);color:var(--ink)}
.nb-s04-head{position:relative;padding-top:11vw}
.nb-s04-head .nb-secnum{margin-left:var(--neb-margin)}

/* Mega-titre brun translucide sur l'orange */
.nb-mega{
  margin:0;font-family:var(--f-display);font-weight:800;
  font-size:11vw;line-height:.9;letter-spacing:-.04em;text-align:center;
}
.nb-mega span{display:block}
.nb-s04-mega{position:relative;margin-top:1vw;color:var(--ink)}

/* hauteur minimale + bloc "Comment jouer" dans le flux : la zone grandit
   avec son texte, les etapes ne peuvent plus le chevaucher */
.nb-s04-stage{position:relative;display:flow-root;min-height:70vw;margin-top:-3.2vw;   /* telephone sous "Devine.", sans chevauchement */padding-bottom:2vw}
/* au-dessus du fond degrade (positionne) */
.nb-steps,.nb-s04 .nb-secfoot{position:relative}
.nb-s04-left{position:absolute;left:var(--neb-margin);top:22vw;width:28vw;font-size:3.6vw}
.nb-s04-orbits{top:28vw}
.nb-s04-orbits i{border:1px dashed rgba(17,17,17,.22)}
.nb-s04-orbits i:nth-child(1){width:42vw;height:42vw}
.nb-s04-orbits i:nth-child(2){width:60vw;height:60vw;border-color:rgba(17,17,17,.12)}
.nb-orbit-tag{
  position:absolute;z-index:2;padding:9px 16px;border-radius:999px;background:#fff;color:#111;
  font-family:var(--f-text);font-size:13px;font-weight:600;white-space:nowrap;
}
.nb-orbit-tag--a{right:61.5vw;top:14vw}   /* cale par le bord droit : jamais sur le telephone */
.nb-orbit-tag--b{left:62vw;top:10vw}
.nb-orbit-tag--c{left:66vw;top:42vw}
.nb-orbit-tag--d{left:41vw;top:55vw}     /* sous le telephone, hors du texte des regles */

.nb-s04-phone{--pw:21vw;position:absolute;left:calc(50% - 10.5vw);top:4vw;width:var(--pw);z-index:1}
.nb-screen--play{background:#120605}
.nb-play-top{
  position:absolute;top:calc(var(--pw) * .17);left:7%;right:7%;
  display:flex;justify-content:space-between;align-items:center;
  font-size:calc(var(--pw) * .045);color:rgba(255,255,255,.6);
}
.nb-play-timer{position:relative;width:calc(var(--pw) * .15);height:calc(var(--pw) * .15)}
.nb-play-timer svg,.nb-knob svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.nb-ring-track{fill:none;stroke:rgba(255,255,255,.14);stroke-width:3}
.nb-ring-val{
  fill:none;stroke:var(--neb-orange);stroke-width:3;stroke-linecap:round;
  stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--v) * 100);
}
.nb-play-timer b{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:calc(var(--pw) * .05);font-weight:700;color:#fff;
}
/* Pochette de la manche : remplit son cadre, bord a bord */
.nb-play-cover{
  position:absolute;top:calc(var(--pw) * .32);left:7%;right:7%;aspect-ratio:1;
  border-radius:calc(var(--pw) * .05);overflow:hidden;background-size:cover;background-position:center;
}
.nb-play-q{
  position:absolute;top:calc(var(--pw) * 1.25);left:7%;right:7%;margin:0;
  font-size:calc(var(--pw) * .075);font-weight:700;
}
.nb-play-found{position:absolute;top:calc(var(--pw) * 1.39);left:7%;right:7%;display:flex;gap:calc(var(--pw) * .025)}
.nb-play-found span{
  padding:calc(var(--pw) * .018) calc(var(--pw) * .04);border-radius:999px;
  background:#1F1F1F;font-size:calc(var(--pw) * .036);color:rgba(255,255,255,.6);
}
.nb-play-found .is-ok{background:var(--neb-orange);color:#fff}
.nb-play-input{
  position:absolute;top:calc(var(--pw) * 1.56);left:7%;right:7%;height:calc(var(--pw) * .14);
  display:flex;align-items:center;justify-content:space-between;
  padding:0 calc(var(--pw) * .025) 0 calc(var(--pw) * .05);border-radius:999px;background:#fff;
  font-size:calc(var(--pw) * .042);color:rgba(17,17,17,.45);
}
.nb-play-input i{width:calc(var(--pw) * .1);height:calc(var(--pw) * .1);border-radius:50%;background:var(--neb-orange)}
.nb-play-pts{
  position:absolute;top:calc(var(--pw) * 1.78);left:0;right:0;margin:0;text-align:center;
  font-size:calc(var(--pw) * .05);font-weight:700;color:var(--neb-orange);
}

/* Potards du score */
.nb-s04-knobs{
  left:auto;right:var(--neb-margin);top:21vw;
  display:grid;grid-template-columns:repeat(2,auto);gap:18px 22px;
  padding:22px;border-radius:24px;background:var(--neb-card);color:#fff;
}
.nb-knob{position:relative;width:64px;padding-top:64px;text-align:center;font-family:var(--f-text)}
.nb-knob svg{inset:0 0 auto 0;height:64px}
.nb-knob b{position:absolute;left:0;right:0;top:0;height:64px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
.nb-knob span{display:block;margin-top:8px;font-size:12px;color:rgba(255,255,255,.6)}

.nb-s04-rules{position:relative;margin:44vw 0 0 var(--neb-margin);width:26vw;min-width:240px}
.nb-s04 .nb-label{color:#8A8378}
.nb-s04 .nb-body{color:#3d3a35}
.nb-s04 .nb-secicon{border-color:rgba(17,17,17,.35)}
.nb-s04 .nb-secicon i{background:#111}
.nb-s04-pts-t{margin-top:26px !important}
.nb-s04-pts{margin:0;padding:0;list-style:none;font-family:var(--f-text);font-size:15px;line-height:1.45;color:#111}
.nb-s04-pts li{padding:10px 0;border-top:1px solid rgba(17,17,17,.12)}

/* 5 etapes : pills a pastille ronde */
.nb-steps{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;
  margin:4vw var(--neb-margin) 0;padding:0;list-style:none;
}
.nb-steps li{
  display:flex;align-items:center;gap:12px;padding:8px 22px 8px 8px;border-radius:999px;
  background:var(--ink);font-family:var(--f-text);font-size:14px;font-weight:600;color:var(--cream);
}
.nb-steps span{
  width:40px;height:40px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:var(--accent);color:#fff;font-weight:700;
}
.nb-secfoot--light .nb-globe{stroke:rgba(17,17,17,.7)}
.nb-secfoot--light p{color:rgba(17,17,17,.55)}


/* Ecran moyen : pas la place pour la carte des potards a cote des orbites */
@media (max-width:1100px){.nb-s04-knobs{display:none}}
@media (max-width:760px){
  .nb-s04-head{padding:76px 16px 0}
  .nb-s04-head .nb-secnum{margin:0}
  .nb-mega{font-size:14vw}
  .nb-s04-mega{margin-top:40px}
  .nb-s04-stage{height:auto;margin-top:5vw;padding:0 16px;display:flex;flex-direction:column;align-items:center;gap:40px}
  .nb-s04-phone{--pw:58vw;position:relative;left:auto;top:auto;order:1}
  .nb-s04-left{position:static;width:auto;align-self:stretch;font-size:7vw;order:2}
  .nb-s04-rules{position:static;width:auto;min-width:0;margin:0;align-self:stretch;order:3}
  .nb-s04-orbits,.nb-orbit-tag,.nb-s04-knobs{display:none}
  .nb-steps{margin:48px 16px 0;justify-content:flex-start}
}

/* ═══════════════════════════════════════════════════════════════
   05 / LA REVELATION
   Aplat brun de la palette, aucun degrade ni rond decoratif.
   ═══════════════════════════════════════════════════════════════ */
.nb-s05{background:var(--fond-brun)}
.nb-s05 .nb-band,.nb-s05 .nb-secnum span{color:rgba(253,221,184,.55)}
.nb-s05-intro{position:relative;padding-top:11vw}
.nb-s05-intro .nb-secnum{position:absolute;left:var(--neb-margin);top:11vw}
.nb-s05-title{
  margin:0 0 0 20.4vw;font-family:var(--f-display);font-weight:800;
  font-size:6.4vw;line-height:.95;letter-spacing:-.03em;color:#fff;
}
.nb-s05-title span{display:block}

.nb-s05-stage{position:relative;height:56vw;margin-top:4vw}
.nb-s05-labels{
  position:absolute;left:var(--neb-margin);top:22vw;margin:0;
  font-family:var(--f-text);font-size:15px;line-height:1.4;color:var(--cream);
}
.nb-s05-labels span{display:block;color:var(--neb-orange);font-weight:600}
.nb-s05-phone{--pw:21vw;position:absolute;left:calc(50% - 10.5vw);top:0;width:var(--pw);z-index:1}
.nb-screen--reveal{background:#1a0904}
.nb-rev-univ{
  position:absolute;top:calc(var(--pw) * .17);left:7%;right:7%;margin:0;
  font-size:calc(var(--pw) * .042);color:rgba(255,255,255,.55);
}
.nb-rev-cover{
  position:absolute;top:calc(var(--pw) * .28);left:7%;right:7%;aspect-ratio:1;
  border-radius:calc(var(--pw) * .05);overflow:hidden;background-size:cover;background-position:center;
}
/* Voile plein qui s'ouvre a la fin du temps (clip-path anime en JS) */
.nb-rev-veil{
  position:absolute;inset:0;background:#2a1208;
  clip-path:inset(0 0 0 0);transition:clip-path .9s cubic-bezier(.65,0,.35,1);
}
.nb-rev-veil.is-open{clip-path:inset(0 0 100% 0)}
.nb-rev-k{
  position:absolute;top:calc(var(--pw) * 1.22);left:7%;right:7%;margin:0;
  font-size:calc(var(--pw) * .04);color:rgba(255,255,255,.5);
}
.nb-rev-answer{
  position:absolute;top:calc(var(--pw) * 1.3);left:7%;right:7%;margin:0;min-height:2.3em;
  font-size:calc(var(--pw) * .068);font-weight:700;line-height:1.15;color:#fff;
}
.nb-rev-by{color:rgba(255,255,255,.5);font-weight:600}
.nb-rev-answer b{color:var(--neb-orange);font-weight:700}
.nb-rev-caret{
  display:inline-block;width:2px;height:1em;margin-left:2px;vertical-align:-.12em;background:#fff;
  animation:nb-caret 1s steps(1) infinite;
}
@keyframes nb-caret{50%{opacity:0}}
.nb-rev-status{
  position:absolute;left:7%;right:7%;bottom:calc(var(--pw) * .1);margin:0;
  display:flex;align-items:center;gap:calc(var(--pw) * .025);
  padding:calc(var(--pw) * .035) calc(var(--pw) * .05);border-radius:999px;background:#2a1208;
  font-size:calc(var(--pw) * .042);color:var(--cream);
}
.nb-rev-bars{display:flex;align-items:flex-end;gap:2px;height:calc(var(--pw) * .04)}
.nb-rev-bars i{width:3px;background:var(--neb-orange);animation:nb-bars 1s ease-in-out infinite}
.nb-rev-bars i:nth-child(1){height:40%}
.nb-rev-bars i:nth-child(2){height:100%;animation-delay:-.3s}
.nb-rev-bars i:nth-child(3){height:65%;animation-delay:-.6s}
@keyframes nb-bars{50%{transform:scaleY(.35)}}
.nb-rev-bars i{transform-origin:bottom}

.nb-s05-bar{
  left:58vw;top:24vw;width:24vw;display:flex;align-items:center;justify-content:space-between;
  padding:8px 8px 8px 24px;border-radius:999px;background:#fff;
  font-family:var(--f-text);font-size:15px;color:rgba(17,17,17,.5);
}
.nb-s05-send{
  width:40px;height:40px;border-radius:999px;background:var(--neb-orange);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.nb-s05-send svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.nb-s05-text{position:absolute;right:var(--neb-margin);bottom:2vw;width:24vw}
.nb-s05 .nb-label{color:rgba(253,221,184,.55)}
.nb-s05 .nb-body{color:rgba(253,221,184,.8)}

@media (prefers-reduced-motion:reduce){
  .nb-rev-caret,.nb-rev-bars i{animation:none}
  .nb-rev-veil{transition:none}
}
@media (max-width:760px){
  .nb-s05-intro{padding:76px 16px 0}
  .nb-s05-intro .nb-secnum{position:static;margin-bottom:40px}
  .nb-s05-title{margin:0;font-size:13vw}
  .nb-s05-stage{height:auto;margin-top:48px;padding:0 16px;display:flex;flex-direction:column;gap:36px}
  .nb-s05-labels{position:static}
  .nb-s05-phone{--pw:58vw;position:relative;left:auto;top:auto;align-self:center}
  .nb-s05-bar{display:none}
  .nb-s05-text{position:static;width:auto}
}

/* ── Sections sur fond creme : texte brun fonce (--ink) ── */
.nb-sec--light{color:var(--ink)}
.nb-sec--light .nb-band,.nb-sec--light .nb-secnum span{color:rgba(45,16,2,.55)}
.nb-sec--light .nb-secnum h2{color:var(--ink)}
.nb-sec--light .nb-label{color:rgba(45,16,2,.6)}
.nb-sec--light .nb-body{color:rgba(45,16,2,.82)}
.nb-sec--light .nb-secicon{border-color:rgba(45,16,2,.35)}
.nb-sec--light .nb-secicon i{background:var(--ink)}
.nb-sec--light .nb-crumbs{color:rgba(45,16,2,.55)}
.nb-sec--light .nb-crumbs i{color:rgba(45,16,2,.3)}
.nb-sec--light .nb-orbits i{border-color:rgba(45,16,2,.16)}
.nb-sec--light .nb-secfoot p{color:rgba(45,16,2,.6)}
.nb-sec--light .nb-globe{stroke:rgba(45,16,2,.7)}
.nb-sec--light .nb-s04-pts{color:var(--ink)}
.nb-sec--light .nb-s04-pts li{border-top-color:rgba(45,16,2,.14)}

.nb-sec--light .nb-phrase{color:var(--ink)}

/* Sections sans pied de section : marge basse equivalente */
.nb-s02{padding-bottom:10vw}
.nb-s05{padding-bottom:5vw}   /* footer juste apres */
.nb-s04{padding-bottom:5vw}   /* vide sous les etapes */
@media (max-width:760px){.nb-s02{padding-bottom:64px}.nb-s05{padding-bottom:40px}.nb-s04{padding-bottom:40px}}


/* ── Fin de section 05 : phrase + grand bouton Jouer ── */
.nb-s05-end{
  display:flex;justify-content:space-between;align-items:flex-end;gap:40px;
  margin:12vw var(--neb-margin) 0;
}
.nb-s05-phrase{margin:0}
/* bouton centre sur la derniere ligne (hauteur de ligne 4.5vw x 1.05) */
.nb-s05-cta{flex-shrink:0;margin-bottom:calc((4.5vw * 1.05 - 47px) / 2)}
.nb-s05 .nb-pill--cta{background:var(--cream);color:var(--ink)}
.nb-s05 .nb-pill--cta:hover{background:#fff;color:var(--ink)}

/* ═══════════════════════════════════════════════════════════════
   VUES /a-propos ET /comment-jouer (meme page que l'accueil)
   ═══════════════════════════════════════════════════════════════ */
.nb-page{padding:calc(var(--hd-h) + 6vw) var(--neb-margin) 7vw}
.nb-page h2.nb-label{font-weight:400}
.nb-page-head{margin-bottom:5vw}
.nb-page-head .nb-label{margin:0 0 14px}
.nb-page-t{margin:0;font-family:'MuseoModerno',sans-serif;font-weight:800;font-size:clamp(44px,7vw,120px);line-height:.92;letter-spacing:-.03em;color:inherit;text-wrap:balance}
.nb-page-cta{margin-top:6vw}
.nb-page-cta .nb-pill--cta{background:var(--neb-orange);color:#fff}
.nb-page-cta .nb-pill--cta:hover{background:var(--accent)}
/* A propos : l'histoire a gauche, la mission a droite */
.nb-ap-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:8vw;align-items:start}
.nb-ap-txt{margin:0;max-width:34ch;font-family:var(--f-text);font-weight:300;font-size:clamp(20px,1.9vw,30px);line-height:1.35;color:#fff}
.nb-page .nb-phrase--list.nb-title{font-size:clamp(40px,4.6vw,80px)}
/* Comment jouer : creme, comme l'ancienne section 04 */
.nb-page--cj{background:var(--fond-creme)}
.nb-cj-h{margin:0 0 18px !important}
.nb-cj-steps{margin:0;justify-content:flex-start}
.nb-cj-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6vw;max-width:1100px;margin-top:5vw}
.nb-cj-rules .nb-body{max-width:46ch;font-size:17px}
/* Icone de la colonne des regles alignee sur "Les points" : meme hauteur
   de ligne (32px, celle de l'icone) et meme marge, les textes partent ensemble */
.nb-cj-rules .nb-secicon{display:block;margin:0 0 18px}
.nb-cj-points > .nb-label{display:flex;align-items:center;min-height:32px;margin:0 0 18px !important}
.nb-page--cj .nb-s04-pts{color:var(--ink)}
.nb-page--cj .nb-s04-pts li{border-top-color:rgba(45,16,2,.15)}
@media (max-width:760px){
  .nb-page{padding:calc(var(--hd-h) + 40px) 16px 56px}
  .nb-page-head{margin-bottom:40px}
  .nb-ap-grid,.nb-cj-grid{grid-template-columns:minmax(0,1fr);gap:40px}
  .nb-cj-rules .nb-secicon{display:none}   /* colonnes empilees : l'icone ne serait plus sur la ligne de "Les points" */
  .nb-ap-txt{font-size:5.2vw}
  .nb-page .nb-phrase--list.nb-title{font-size:11vw}
  .nb-cj-grid{margin-top:48px}
  .nb-page-cta{margin-top:48px}
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER : carte creme sur le brun de la derniere section
   ═══════════════════════════════════════════════════════════════ */
.nb-footer{background:var(--fond-brun);color:var(--cream);padding:4vw var(--neb-margin) 28px;font-family:var(--f-text)}
.nb-ft-card{
  background:var(--cream);color:var(--ink);border-radius:40px;overflow:hidden;
  padding:56px 48px 0;
}
.nb-ft-top{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;align-items:start}
.nb-footer p{margin:0}
.nb-ft-tagline{font-family:var(--f-display);font-weight:800;font-size:clamp(22px,2vw,30px);line-height:1.1;letter-spacing:-.02em;max-width:300px}
.nb-ft-col{display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:auto;max-width:none;padding:0;justify-content:flex-start}
.nb-ft-h{font-size:13px;font-weight:600;color:rgba(45,16,2,.55);margin-bottom:6px !important}
.nb-ft-col a,.nb-ft-linkbtn{
  color:var(--ink);font-size:16px;font-weight:600;text-decoration:none;
  background:none;border:none;padding:0;cursor:pointer;font-family:inherit;
}
.nb-ft-col a:hover,.nb-ft-linkbtn:hover{text-decoration:underline;text-underline-offset:4px}
.nb-ft-socials{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
/* Suivez-nous : bloc cale a droite de la carte */
.nb-ft-follow{justify-self:end;align-items:flex-start;text-align:left}   /* bloc a droite, titre aligne sur les pastilles */
.nb-ft-follow .nb-ft-socials{align-items:flex-start}
.nb-ft-socials .nb-ft-social{
  display:inline-flex;align-items:center;gap:8px;padding:8px 14px 8px 10px;border-radius:999px;
  background:var(--ink);color:var(--cream);font-size:13px;
}
.nb-ft-socials .nb-ft-social:hover{background:var(--accent);text-decoration:none}
.nb-ft-social svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nb-ft-social svg .fill{fill:currentColor;stroke:none}
.nb-ft-col a:focus-visible,.nb-ft-linkbtn:focus-visible,.nb-ft-social:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
/* Mot geant coupe par le bas de la carte */
.nb-ft-word{display:block;width:100%;height:auto;margin:56px 0 -6%;color:var(--ink)}
.nb-ft-bottom{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding-top:22px;font-size:13px;color:rgba(253,221,184,.6);
}
.nb-ft-bottom a{color:inherit;text-decoration:none}
.nb-ft-bottom a:hover{color:var(--cream);text-decoration:underline;text-underline-offset:3px}
.nb-ft-time{font-variant-numeric:tabular-nums;color:var(--cream)}

@media (max-width:760px){
  .nb-footer{padding:28px 12px 24px}
  .nb-s05-end{flex-direction:column;align-items:flex-start;gap:32px;margin:64px 16px 0}
  .nb-s05-cta{margin-bottom:0}
  .nb-ft-card{border-radius:28px;padding:36px 22px 0}
  .nb-ft-top{grid-template-columns:1fr;gap:32px}
  .nb-ft-socials{flex-direction:row;flex-wrap:wrap}
  .nb-ft-follow{justify-self:start;align-items:flex-start;text-align:left}
  .nb-ft-follow .nb-ft-socials{align-items:flex-start}
  .nb-ft-word{margin-top:40px}
  .nb-ft-bottom{flex-direction:column;gap:8px}
}

/* ── Grands titres de section : MuseoModerno 800, comme le titre du hero ──
   Le sans-serif fin (Inter 300) reste pour les accroches et paragraphes. */
.nb-title{font-family:var(--f-display);font-weight:800;line-height:.95;letter-spacing:-.03em}
.nb-s01-idea .nb-title{font-size:4vw}
.nb-phrase--list.nb-title{font-size:3.4vw}
.nb-s02-big.nb-title{font-size:3.7vw}
.nb-s04-mega.nb-title{font-weight:800}
@media (max-width:760px){
  .nb-s01-idea .nb-title,.nb-s02-big.nb-title{font-size:6.6vw}
  .nb-phrase--list.nb-title{font-size:8vw}
}

/* ═══════════════════════════════════════════════════════════════
   Animations de bas de page (landing.js ajoute .nb-anim sur <html>,
   sauf avec prefers-reduced-motion : tout reste alors affiche).
   Easing et durees du haut de page : cubic-bezier(.65,0,.35,1), .6s.
   ═══════════════════════════════════════════════════════════════ */
:root{--ease-nb:var(--sn-ease)}
/* phrase finale : mots grises qui s'allument au defilement */
.nb-anim .nb-s05-phrase .nb-w{color:rgba(255,255,255,.22);transition:color .4s var(--ease-nb)}
.nb-anim .nb-s05-phrase .nb-w.is-on{color:#fff}
/* bouton Jouer : glisse depuis la droite une fois la phrase allumee */
.nb-anim .nb-s05-cta{opacity:0;transform:translateX(48px);transition:opacity .6s var(--ease-nb),transform .6s var(--ease-nb)}
.nb-anim .nb-s05-cta.is-in{opacity:1;transform:none}
/* footer : "SONARA" monte depuis le bas de la carte, lettre par lettre.
   Decalage en unites du dessin (le px vaut une unite du viewBox, haut de
   279) plutot qu'en % de transform-box, interprete differemment selon les
   navigateurs : les lettres partent sous le cadre du SVG, qui les masque. */
.nb-ft-word{overflow:hidden}
.nb-anim .nb-ft-l{transform:translateY(300px);transition:transform .7s var(--ease-nb)}
.nb-anim .nb-ft-word.is-in .nb-ft-l{transform:translateY(0)}
.nb-ft-l:nth-child(2){transition-delay:.07s}
.nb-ft-l:nth-child(3){transition-delay:.14s}
.nb-ft-l:nth-child(4){transition-delay:.21s}
.nb-ft-l:nth-child(5){transition-delay:.28s}
.nb-ft-l:nth-child(6){transition-delay:.35s}
/* Comment jouer : etapes 1 a 5 l'une apres l'autre */
.nb-anim .nb-steps:not(.nb-cj-steps) li{opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease-nb),transform .6s var(--ease-nb)}
.nb-anim .nb-steps:not(.nb-cj-steps).is-in li{opacity:1;transform:none}
.nb-steps li:nth-child(2){transition-delay:.09s}
.nb-steps li:nth-child(3){transition-delay:.18s}
.nb-steps li:nth-child(4){transition-delay:.27s}
.nb-steps li:nth-child(5){transition-delay:.36s}

/* ═══════════════════════════════════════════════════════════════
   Animations des pages A propos, Comment jouer et pages legales
   (anim-pages.js). Transform, opacity et clip-path seulement.
   ═══════════════════════════════════════════════════════════════ */
/* Transition entre documents (pages legales <-> sonara.html) */
@view-transition{navigation:auto}
/* L'en-tete reste en place pendant la transition : son groupe ne bouge
   pas. Seul le lien de la page en cours change (fondu du navigateur).
   Ne pas mettre animation:none sur ::view-transition-new/old(nb-header) :
   WebKit n'affiche alors plus l'en-tete. */
.nb-header{view-transition-name:nb-header}
::view-transition-group(nb-header){animation:none}
/* Disque de la page d'arrivee : clip-path anime par anim-pages.js.
   Sans animation : fondu enchaine du navigateur. */
@media (prefers-reduced-motion:no-preference){
  ::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
}
/* Avant l'entree : contenu des pages masque (retire par anim-pages.js) */
html.ap-wait .nb-page > *,html.ap-wait .lg-main > *{opacity:0}
.ap-h{opacity:0}
/* Masque d'une ligne de titre ou d'un mot de la mission : marge interieure
   compensee pour ne couper ni accents ni jambages */
.ap-line{display:block;overflow:hidden;padding:.14em 0 .12em;margin:-.14em 0 -.12em}
.ap-line-in{display:block}
/* Parent des masques en colonne flex : aucune fusion de marges, ni avec
   lui ni entre lignes voisines ; titre et phrase gardent leur place exacte */
.ap-split{display:flex;flex-direction:column}
/* Rouleau d'un chiffre des points : largeur d'un chiffre tabulaire */
.ap-digit{display:inline-block;height:1lh;overflow:hidden;vertical-align:top;font-variant-numeric:tabular-nums}
.ap-reel{display:block}
.ap-reel > span{display:block;height:1lh}

/* A propos : grand vinyle decoratif a droite, derriere le texte */
.nb-page--ap{isolation:isolate}
.nb-ap-vy{
  position:absolute;z-index:-1;pointer-events:none;
  width:min(64vw,1000px);right:-14vw;top:calc(var(--hd-h) + 3vw);
  opacity:.32;--vy-color:var(--sn-ink-raised);--vy-label:var(--sn-ink-high);--vy-hole:var(--neb-black);
}
.nb-ap-vy .vy-label{display:flex;align-items:center;justify-content:center}
.nb-ap-vy .jg-vy-logo{width:58%;background:var(--neb-black)}
@media (max-width:760px){
  .nb-ap-vy{width:130vw;right:-80vw;top:auto;bottom:16%;opacity:.24}
}
