/* =====================================================================
   PAGE D'ACCUEIL — design v2

   Chargé APRÈS site.css, uniquement par site/index.php.

   SYSTÈME (une seule échelle, appliquée partout)
     Titres      h1 4.25rem max · h2 3rem max · h3 1.5rem max
     Sections    espacement vertical unique : --sec
     Rayons      28px pour les grandes surfaces, 999px pour les boutons
     Couleurs    nuit (violet de la charte), magenta, or des captures,
                 lilas très clair pour les fonds clairs

   L'IDÉE
     Le seul « matériel » du produit est un QR code posé au comptoir.
     Ses modules carrés sont le motif de la page : la grille vivante du
     bandeau et de l'appel final, les carrés devant les intitulés, le
     motif des cartes d'étapes.

   ORDRE
     1. Jetons et base        6. Fonctions (horizontal)
     2. En-tête               7. Métiers
     3. Éléments communs      8. Étapes (pile), tarifs, questions
     4. Ouverture             9. Appel final
     5. Chiffres, histoire    10. États « en attente » et mobile
   ===================================================================== */

/* =====================================================================
   1. JETONS ET BASE
   ================================================================== */
.b-page{
  --nuit:    #17131F;
  --nuit-2:  #201A2B;
  --nuit-3:  #322A42;
  --magenta: #E5007E;
  --rose:    #FF4FA3;
  --or:      #E7B94B;
  --lilas:   #F4F1F8;
  --trait:   #E4DDEC;
  --gris:    #686176;

  --h1:  clamp(2.5rem, 1.4rem + 2.9vw, 4.25rem);
  --h2:  clamp(2rem, 1.35rem + 1.75vw, 3rem);
  --h3:  clamp(1.2rem, 1.05rem + .5vw, 1.5rem);
  --lead: clamp(1.03rem, .98rem + .25vw, 1.15rem);
  --sec: clamp(88px, 9vw, 136px);

  background: var(--lilas);
  overflow-x: clip;               /* les animations ne créent jamais de défilement latéral */
}
html.lenis, html.lenis body{ height: auto; }
.lenis.lenis-smooth{ scroll-behavior: auto !important; }

/* =====================================================================
   2. EN-TÊTE — sombre et vitré sur cette page ; se retire en descendant
   ================================================================== */
body:has(.b-page) .header{
  background: rgba(23, 19, 31, .7); border-bottom-color: rgba(255,255,255,.06);
  transition: transform .5s cubic-bezier(.16,1,.3,1), background .3s, box-shadow .3s;
}
body:has(.b-page) .header.scrolled{ background: rgba(23, 19, 31, .92); box-shadow: 0 12px 30px -20px rgba(0,0,0,.7); }
body:has(.b-page) .header.b-cache{ transform: translateY(-100%); }
body:has(.b-page) .brand,
body:has(.b-page) .nav > a,
body:has(.b-page) .nav > .has-mega > button{ color: #fff; }
body:has(.b-page) .nav > a:hover,
body:has(.b-page) .nav > .has-mega > button:hover,
body:has(.b-page) .has-mega[data-open="1"] > button{ background: rgba(255,255,255,.08); color: #fff; }
body:has(.b-page) .burger i{ background: #fff; }
body:has(.b-page) .nav > a.btn-brand{ background: var(--brand); color: #fff; margin-left: 10px; padding: 10px 20px; border-radius: 999px; }
body:has(.b-page) .nav > a.btn-brand:hover{ background: #fff; color: var(--brand); }

/* Barre de progression de lecture */
.b-progression{ position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.b-progression i{ display: block; height: 100%; background: linear-gradient(90deg, #E5007E, #FF4FA3, #E7B94B); transform: scaleX(0); transform-origin: 0 50%; }

/* Illustration qui suit la souris (liste des métiers) */
.b-flottant{
  /* z-index 1 : l'image passe SOUS la liste des métiers (z-index 2), donc
     sous le nom survolé, qui reste lisible ; au-dessus du fond blanc. */
  position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: 300px; aspect-ratio: 3 / 2; margin: -100px 0 0 -150px;
  border-radius: 22px; overflow: hidden; opacity: 0; visibility: hidden; transform: scale(.6);
  box-shadow: 0 30px 60px -20px rgba(23, 19, 31, .45);
}
.b-flottant img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.b-flottant img.on{ opacity: 1; }

/* =====================================================================
   3. ÉLÉMENTS COMMUNS
   ================================================================== */
.b-section{ padding-block: var(--sec); }

.b-surtitre{
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--magenta);
}
.b-qr{ width: 13px; height: 13px; flex: none; border-radius: 3px; border: 2px solid currentColor; position: relative; }
.b-qr::after{ content: ""; position: absolute; inset: 2px; background: currentColor; border-radius: 1px; }

.b-h2{
  font-family: var(--display); font-weight: 800; font-size: var(--h2);
  line-height: 1.05; letter-spacing: -.035em; color: var(--nuit);
  max-width: 20ch; margin: 0 0 18px; text-wrap: balance;
}
.b-lead{ font-size: var(--lead); line-height: 1.65; color: var(--gris); max-width: 54ch; margin: 0; }

.b-tete{ margin-bottom: clamp(44px, 5vw, 64px); }
.b-tete-centre{ text-align: center; }
.b-tete-centre .b-h2, .b-tete-centre .b-lead{ margin-inline: auto; }
.b-tete-duo{ display: grid; gap: 20px; align-items: end; }
@media (min-width: 960px){ .b-tete-duo{ grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.b-centre{ text-align: center; }
.b-pied-section{ margin: 48px 0 0; }

/* Boutons */
.b-actions{ display: flex; flex-wrap: wrap; gap: 12px; }
.b-btn{
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-family: var(--display); font-weight: 700; font-size: .98rem; white-space: nowrap;
  border: 1.5px solid transparent; transition: color .35s, border-color .35s, box-shadow .4s;
}
/* Remplissage qui monte depuis le bas au survol */
.b-btn::before{
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.b-btn:hover::before{ transform: none; }
.b-btn > span{ position: relative; }
.b-btn-plein{ background: var(--magenta); color: #fff; box-shadow: 0 12px 32px -10px rgba(229, 0, 126, .7); }
.b-btn-plein::before{ background: #fff; }
.b-btn-plein:hover{ color: var(--magenta); }
.b-btn-verre{ color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.b-btn-verre::before{ background: #fff; }
.b-btn-verre:hover{ color: var(--nuit); border-color: #fff; }
.b-btn-trait{ color: var(--nuit); border-color: var(--nuit); }
.b-btn-trait::before{ background: var(--nuit); }
.b-btn-trait:hover{ color: #fff; }
.b-btn-blanc{ background: #fff; color: var(--magenta); }
.b-btn-blanc::before{ background: var(--nuit); }
.b-btn-blanc:hover{ color: #fff; }

/* Grille de QR code (canvas dessiné par le script) */
.b-champ{ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Le téléphone : cadre en CSS, reflet vitré */
.b-tel{
  position: relative; padding: 8px; border-radius: 40px;
  background: linear-gradient(150deg, #4c4458, #16121d 45%, #2c2537);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09) inset, 0 50px 90px -30px rgba(0,0,0,.8), 0 30px 70px -40px rgba(229, 0, 126, .7);
}
.b-tel img{ display: block; width: 100%; height: auto; border-radius: 32px; background: #1a1614; }
.b-tel-reflet{ position: absolute; inset: 8px; border-radius: 32px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 30%); }

/* =====================================================================
   4. OUVERTURE
   ================================================================== */
.b-hero{
  position: relative; overflow: hidden; isolation: isolate; background: var(--nuit); color: #fff;
  margin-top: -74px; padding: calc(74px + clamp(48px, 7vw, 96px)) 0 0;
  min-height: min(100svh, 980px); display: flex; flex-direction: column;
}
.b-hero::after{ content: ""; position: absolute; inset: auto 0 0; height: 260px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--nuit)); }
.b-hero .b-champ{ z-index: -1; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 72% 42%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 72% 42%, #000 25%, transparent 80%); }

/* ---------------------------------------------------------------------
   BANDEAU COURT DES SOUS-PAGES (contact, métiers, fonctionnalités…)
   Même univers que l'accueil (nuit, nappes, grille de QR) mais compact :
   titre plus petit, marges réduites, et sur ordinateur le texte à gauche
   avec les actions à droite, alignés en bas.
   Utilisation : <section class="b-hero b-hero-court"> puis
   .b-hero-court-grille > .b-hero-court-texte + .b-hero-court-actions
   ------------------------------------------------------------------ */
.b-hero.b-hero-court{
  min-height: 0; display: block;
  padding: calc(74px + clamp(16px, 2vw, 28px)) 0 clamp(44px, 5vw, 64px);
}
.b-hero-court .fil{ padding-top: 0; padding-bottom: clamp(14px, 1.6vw, 22px); color: rgba(255,255,255,.45); }
.b-hero-court .fil a{ color: rgba(255,255,255,.7); }
.b-hero-court .fil a:hover{ color: #fff; }
.b-hero-court .fil span[aria-hidden]{ color: rgba(255,255,255,.3); }
.b-hero-court .b-pastille{ margin-bottom: 16px; padding: 6px 14px 6px 10px; font-size: .82rem; }
.b-hero-court .b-titre{ font-size: clamp(2rem, 1.45rem + 1.5vw, 3rem); line-height: 1.05; max-width: 22ch; margin-bottom: 14px; }
.b-hero-court .b-hero-lead{ font-size: clamp(1rem, .96rem + .2vw, 1.08rem); max-width: 58ch; margin: 0; }
.b-hero-court-grille{ display: grid; gap: 24px; align-items: end; }
@media (min-width: 960px){
  .b-hero-court-grille{ grid-template-columns: 1fr auto; gap: 48px; }
  .b-hero-court-actions{ flex-direction: column; align-items: stretch; }
}
/* Le fondu bas du bandeau est raccourci en proportion */
.b-hero-court::after{ height: 120px; }

/* Trois nappes de couleur floues, qui dérivent lentement */
.b-nappes{ position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.b-nappes i{ position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b-nappes i:nth-child(1){ width: 46vw; height: 46vw; right: -6vw; top: -16vw; background: #E5007E; animation: b-derive 18s ease-in-out infinite alternate; }
.b-nappes i:nth-child(2){ width: 30vw; height: 30vw; right: 22vw; bottom: -12vw; background: #6B2BD9; opacity: .35; animation: b-derive 22s -6s ease-in-out infinite alternate-reverse; }
.b-nappes i:nth-child(3){ width: 22vw; height: 22vw; left: -8vw; top: 30%; background: #E7B94B; opacity: .14; animation: b-derive 26s -12s ease-in-out infinite alternate; }
@keyframes b-derive{ to{ transform: translate(-6vw, 5vw) scale(1.15); } }

.b-hero-grille{ display: grid; gap: 56px; align-items: center; flex: 1; }
@media (min-width: 960px){ .b-hero-grille{ grid-template-columns: 1.1fr .9fr; gap: 48px; } }

.b-pastille{
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  font-family: var(--display); font-weight: 600; font-size: .88rem; color: #fff; backdrop-filter: blur(10px);
}
.b-pouls{ position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.b-pouls::after{ content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--rose); animation: b-pouls 2s ease-out infinite; }
@keyframes b-pouls{ from{ transform: scale(.5); opacity: 1; } to{ transform: scale(1.8); opacity: 0; } }

.b-titre{
  font-family: var(--display); font-weight: 800; font-size: var(--h1);
  line-height: 1.02; letter-spacing: -.04em; color: #fff;
  max-width: 15ch; margin: 0 0 24px; text-wrap: balance;
}
.b-hero-lead{ font-size: var(--lead); line-height: 1.65; color: rgba(255,255,255,.72); max-width: 50ch; margin: 0 0 34px; }
.b-hero-note{ margin: 20px 0 0; font-size: .88rem; color: rgba(255,255,255,.5); }

/* Téléphone du bandeau */
.b-hero-tel{ position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1400px; }
.b-tel-3d{ transform-style: preserve-3d; will-change: transform; }
.b-hero-tel .b-tel{ width: clamp(230px, 20vw, 290px); }
.b-ecrans{ position: relative; border-radius: 32px; overflow: hidden; }
.b-ecran img{ border-radius: 32px; }
/* Sans script : seul le premier écran est montré. Avec : ils sont superposés */
.b-ecran + .b-ecran{ display: none; }
.b-ecrans-js .b-ecran + .b-ecran{ display: block; position: absolute; inset: 0; }
.b-legendes{ position: relative; width: 100%; max-width: 36ch; min-height: 6.6em; margin-top: 26px; text-align: center; }
.b-legende{ margin: 0; }
.b-legende + .b-legende{ display: none; }
.b-ecrans-js .b-legende + .b-legende{ display: block; position: absolute; inset: 0; }
.b-legende b{ display: block; font-family: var(--display); font-size: 1rem; margin-bottom: 4px; }
.b-legende span{ display: block; font-size: .88rem; line-height: 1.55; color: rgba(255,255,255,.66);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-points{ display: flex; gap: 6px; margin-top: 14px; }
.b-points i{ width: 18px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); transition: background .4s, width .4s; }
.b-points i.actif{ width: 32px; background: var(--rose); }

/* Deux anneaux qui tournent autour du téléphone */
.b-orbite{ position: absolute; inset: -6% -20% auto; aspect-ratio: 1; pointer-events: none; z-index: -1; }
.b-orbite i{ position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: b-tourne 60s linear infinite; }
.b-orbite i:nth-child(2){ inset: 14%; border-style: solid; border-color: rgba(229, 0, 126, .2); animation-duration: 40s; animation-direction: reverse; }
.b-orbite i::after{ content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 3px; background: var(--or); box-shadow: 0 0 20px var(--or); }
.b-orbite i:nth-child(2)::after{ background: var(--rose); box-shadow: 0 0 20px var(--rose); left: auto; right: -5px; top: 30%; }
@keyframes b-tourne{ to{ transform: rotate(360deg); } }

/* Défilé des métiers en bas du bandeau */
.b-defile-metiers{ margin-top: clamp(48px, 6vw, 80px); padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.b-defile-piste{ display: flex; align-items: center; gap: 28px; width: max-content; }
.b-defile-piste span{ font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); letter-spacing: -.02em; color: rgba(255,255,255,.85); white-space: nowrap; }
.b-defile-piste span:nth-of-type(even){ color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.45); }
.b-defile-piste i{ width: 9px; height: 9px; border-radius: 2px; background: var(--magenta); flex: none; }

/* =====================================================================
   5. CHIFFRES ET HISTOIRE
   ================================================================== */
.b-chiffres{ background: var(--nuit); color: #fff; padding: clamp(64px, 7vw, 100px) 0; }
.b-chiffres-grille{ display: grid; gap: 40px; }
@media (min-width: 860px){ .b-chiffres-grille{ grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.b-chiffre{ position: relative; padding-top: 28px; --filet: 1; }
/* Le filet au-dessus de chaque chiffre se trace (variable --filet animée) */
.b-chiffre::before{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--rose), rgba(255,255,255,.1)); transform: scaleX(var(--filet)); transform-origin: 0 50%; }
.b-chiffre b{ display: block; font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1.05; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.b-chiffre span{ display: block; color: rgba(255,255,255,.6); max-width: 30ch; line-height: 1.55; font-size: .95rem; }

.b-histoire{ background: linear-gradient(180deg, var(--nuit) 0, #0F0C15 100%); color: #fff; padding: clamp(24px, 3vw, 48px) 0 clamp(32px, 4vw, 56px); }
.b-histoire .b-h2{ color: #fff; }
.b-histoire .b-surtitre{ color: var(--rose); }
.b-histoire .b-lead{ color: rgba(255,255,255,.64); }
.b-scene{ min-height: 0; }
.b-scene-grille{ display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px){
  .b-scene{ height: 100vh; display: flex; align-items: center; }
  .b-scene-grille{ grid-template-columns: 1fr auto 1fr; gap: clamp(40px, 6vw, 96px); width: 100%; }
}
.b-scene-textes{ list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.b-scene-num{ display: inline-block; font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--or); margin-bottom: 10px; }
.b-scene-texte h3{ font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 12px; color: #fff; }
.b-scene-texte p{ color: rgba(255,255,255,.66); font-size: var(--lead); line-height: 1.6; margin: 0; max-width: 34ch; }
/* Avec le script : légendes superposées, une seule visible */
.b-scene-js .b-scene-textes{ grid-template-areas: "x"; }
.b-scene-js .b-scene-texte{ grid-area: x; }
.b-scene-tel{ position: relative; justify-self: center; }
.b-scene-tel .b-tel{ width: min(290px, 31vh); }
.b-scene-ecrans{ position: relative; border-radius: 32px; overflow: hidden; background: #1a1614; }
.b-scene-ecrans img{ will-change: clip-path, transform; }
.b-scene-ecrans img + img{ display: none; }
.b-scene-js .b-scene-ecrans img + img{ display: block; position: absolute; inset: 0; }
.b-scene-halo{ position: absolute; inset: -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 0, 126, .45), transparent 60%); filter: blur(30px); }
/* Colonne de gauche : légendes puis bouton */
.b-scene-gauche{ display: flex; flex-direction: column; align-items: flex-start; }
.b-scene-bouton{ margin-top: 36px; }
/* Colonne de droite : un repère par écran, l'actif s'allume */
.b-scene-reperes{ display: none; }
@media (min-width: 960px){
  .b-scene-reperes{ display: grid; gap: 18px; justify-self: end; list-style: none; margin: 0; padding: 0 0 0 20px;
    border-left: 1px solid rgba(255,255,255,.1); }
  .b-scene-reperes li{ position: relative; font-family: var(--display); font-weight: 600; font-size: .92rem;
    color: rgba(255,255,255,.35); transition: color .4s; }
  .b-scene-reperes li::before{ content: ""; position: absolute; left: -21px; top: -4px; bottom: -4px; width: 2px;
    background: linear-gradient(180deg, var(--rose), var(--or)); transform: scaleY(0); transition: transform .5s cubic-bezier(.16,1,.3,1); }
  .b-scene-reperes li.actif{ color: #fff; }
  .b-scene-reperes li.actif::before{ transform: none; }
}
@media (max-width: 959px){
  .b-scene-grille{ justify-items: center; text-align: center; }
  .b-scene-tel{ order: -1; }
  .b-scene-tel .b-tel{ width: min(230px, 30vh); }
  .b-scene-texte p{ margin-inline: auto; }
  .b-scene-gauche{ align-items: center; }
}

/* =====================================================================
   6. FONCTIONS — piste horizontale (figée à partir de 960 px)
   ================================================================== */
.b-modules{ background: var(--lilas); padding: var(--sec) 0; overflow: hidden; }
.b-modules-tete{ display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.b-modules-tete .b-h2{ margin: 0; max-width: 16ch; }
.b-modules-jauge{ display: none; }
.b-piste{ display: grid; gap: 16px; padding: 0 24px; }
@media (min-width: 720px){ .b-piste{ grid-template-columns: repeat(2, 1fr); padding: 0 32px; } }
.b-carte{
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 300px; padding: 30px; border-radius: 28px; background: #fff; border: 1px solid var(--trait);
}
.b-carte h3{ font-family: var(--display); font-weight: 800; font-size: var(--h3); letter-spacing: -.03em; line-height: 1.12; margin: auto 0 12px; color: var(--nuit); padding-top: 24px; }
.b-carte p{ margin: 0; color: var(--gris); font-size: .97rem; line-height: 1.6; }
.b-carte-nuit{ background: var(--nuit); border-color: var(--nuit); }
.b-carte-nuit h3{ color: #fff; } .b-carte-nuit p{ color: rgba(255,255,255,.65); }
.b-carte-magenta{ background: linear-gradient(150deg, #FF4FA3, #E5007E 55%, #A8005C); border-color: transparent; }
.b-carte-magenta h3{ color: #fff; } .b-carte-magenta p{ color: rgba(255,255,255,.85); }
.b-carte-or{ background: var(--or); border-color: var(--or); }
.b-carte-or p{ color: rgba(23,19,31,.72); }

/* ---------------------------------------------------------------------
   Illustrations animées des cartes (SVG).
   Chaque carte définit ses couleurs ; les formes du SVG les lisent via
   des classes courtes : f- = remplissage, s- = contour.
     --a accent   --on texte sur l'accent   --s surface   --l ligne
     --t texte    --g or (ou magenta sur la carte or)    --w carton
   ------------------------------------------------------------------ */
.b-carte{ --a:#E5007E; --on:#fff; --s:#F4F1F8; --l:#E4DDEC; --t:#17131F; --g:#E7B94B; --w:#fff; }
.b-carte-nuit{ --a:#FF4FA3; --on:#fff; --s:rgba(255,255,255,.07); --l:rgba(255,255,255,.16); --t:#fff; --w:#2A2236; }
.b-carte-magenta{ --a:#fff; --on:#E5007E; --s:rgba(255,255,255,.16); --l:rgba(255,255,255,.34); --t:#fff; --w:rgba(255,255,255,.16); }
.b-carte-or{ --a:#17131F; --on:#fff; --s:rgba(255,255,255,.55); --l:rgba(23,19,31,.16); --t:#17131F; --g:#E5007E; }
.b-illu{ height: 170px; margin: -4px -6px 0; }
.b-illu svg{ display: block; width: 100%; height: 100%; overflow: visible; }
.b-illu .f-a{ fill: var(--a); }   .b-illu .f-s{ fill: var(--s); }   .b-illu .f-l{ fill: var(--l); }
.b-illu .f-t{ fill: var(--t); }   .b-illu .f-g{ fill: var(--g); }   .b-illu .f-w{ fill: var(--w); }
.b-illu .f-on{ fill: var(--on); }
.b-illu .s-a, .b-illu .s-l, .b-illu .s-t, .b-illu .s-on, .b-illu .s-nuit{ fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.b-illu .s-a{ stroke: var(--a); }  .b-illu .s-l{ stroke: var(--l); stroke-width: 1.5; }  .b-illu .s-t{ stroke: var(--t); }
.b-illu .s-on{ stroke: var(--on); } .b-illu .s-nuit{ stroke: #17131F; }
/* Les traits à « dessiner » : longueur normalisée à 1 (attribut pathLength) */
.b-illu [pathLength]{ stroke-dasharray: 1; }
.b-illu text{ font-family: var(--display); }
.b-illu .i-txt{ font-size: 11px; font-weight: 700; fill: var(--t); }
.b-illu .i-petit{ font-size: 10px; font-weight: 600; fill: var(--t); opacity: .6; }
.b-illu .i-gros{ font-size: 28px; font-weight: 800; letter-spacing: -.04em; fill: var(--t); }
.b-illu .i-on{ fill: var(--on); }  .b-illu .i-nuit{ fill: #17131F; }  .b-illu .i-or{ fill: var(--g); font-weight: 800; }
.b-illu .b-ombre{ filter: drop-shadow(0 8px 14px rgba(23, 19, 31, .18)); }
.b-carte-nuit .b-illu .b-ombre{ filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
/* Mode horizontal (bureau, avec script) */
.b-horiz-js .b-modules-cadre{ width: 100%; }
.b-horiz-js .b-piste{ display: flex; gap: 20px; width: max-content; padding-left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); padding-right: 48px; }
.b-horiz-js .b-carte{ width: clamp(330px, 27vw, 400px); min-height: min(450px, 54vh); padding: 30px 34px 34px; }
.b-horiz-js .b-modules-jauge{ display: block; width: 180px; height: 3px; border-radius: 3px; background: var(--trait); overflow: hidden; margin-bottom: 14px; flex: none; }
.b-horiz-js .b-modules-jauge i{ display: block; height: 100%; background: var(--magenta); transform: scaleX(0); transform-origin: 0 50%; }

/* =====================================================================
   7. MÉTIERS — liste typographique
   ================================================================== */
.b-secteurs{ background: #fff; }
.b-metiers{ list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.b-metier{
  --trait: 1;
  position: relative; display: grid; align-items: center; gap: 4px 24px;
  grid-template-columns: 64px 1fr auto; padding: 22px 0; color: var(--nuit);
}
/* Le filet sous chaque ligne se trace ; un second filet magenta au survol */
.b-metier::before, .b-metier::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; transform-origin: 0 50%; }
.b-metier::before{ background: #E4DDEC; transform: scaleX(var(--trait)); }
.b-metier::after{ height: 2px; background: var(--magenta); transform: scaleX(0); transition: transform .6s cubic-bezier(.16,1,.3,1); }
.b-metier:hover{ color: var(--nuit); }
.b-metier:hover::after{ transform: scaleX(1); }
.b-metier-vignette{ grid-area: 1 / 1 / 3 / 2; width: 64px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--lilas); }
.b-metier-vignette img{ width: 100%; height: 100%; object-fit: cover; }
.b-metier b{ font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 1.05rem + .9vw, 2rem); letter-spacing: -.035em; line-height: 1.1;
  transition: transform .6s cubic-bezier(.16,1,.3,1), color .3s; }
.b-metier b{ grid-area: 1 / 2; align-self: end; }
.b-metier-mots{ grid-area: 2 / 2; align-self: start; font-size: .92rem; color: var(--gris); }
.b-metier-fleche{ grid-area: 1 / 3 / 3 / 4; width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  border: 1px solid #E4DDEC; fill: none; stroke: var(--nuit); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: background .4s, border-color .4s, stroke .4s, transform .6s cubic-bezier(.16,1,.3,1); }
.b-metier:hover .b-metier-fleche{ background: var(--magenta); border-color: var(--magenta); stroke: #fff; transform: rotate(-45deg); }
@media (min-width: 960px) and (pointer: fine){
  /* Sur ordinateur, l'image suit la souris : la vignette s'efface */
  .b-metier{ grid-template-columns: 1fr minmax(0, 340px) 44px; grid-template-rows: auto; padding: 26px 0; }
  .b-metier-vignette{ display: none; }
  .b-metier b, .b-metier-mots, .b-metier-fleche{ align-self: center; }
  .b-metier b{ grid-area: 1 / 1; }
  .b-metier-mots{ grid-area: 1 / 2; text-align: right; }
  .b-metier-fleche{ grid-area: 1 / 3; }
  .b-metier:hover b{ transform: translateX(14px); color: var(--magenta); }
}

/* =====================================================================
   8. ÉTAPES (pile), TARIFS, QUESTIONS
   ================================================================== */
.b-etapes{ background: var(--nuit); color: #fff; }
.b-etapes .b-h2{ color: #fff; }
.b-etapes .b-surtitre{ color: var(--rose); }
.b-etapes-grille{ display: grid; gap: 40px; }
@media (min-width: 960px){
  .b-etapes-grille{ grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .b-etapes-tete{ position: sticky; top: 140px; }
}
.b-pile{ list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.b-pile-carte{
  position: sticky; top: calc(110px + var(--i) * 22px);
  overflow: hidden; min-height: 280px; padding: clamp(28px, 3vw, 44px); border-radius: 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--nuit-2); border: 1px solid var(--nuit-3); transform-origin: 50% 0;
  --voile: 0; will-change: transform;
}
/* Voile qui fonce légèrement la carte quand la suivante la recouvre */
.b-pile-carte::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: #0E0B13; opacity: var(--voile); }
.b-pile-carte:nth-child(2){ background: linear-gradient(150deg, #FF4FA3, #E5007E 60%, #A8005C); border-color: transparent; }
.b-pile-carte:nth-child(3){ background: #fff; color: var(--nuit); border-color: #fff; }
.b-pile-carte h3{ font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -.035em; line-height: 1.1; margin: 0 0 12px; color: inherit; }
.b-pile-carte p{ margin: 0; max-width: 42ch; font-size: var(--lead); line-height: 1.6; opacity: .78; }
/* Motif de modules de QR code dans le coin de chaque carte */
.b-pile-motif{ position: absolute; top: 28px; right: 28px; width: 96px; height: 96px; opacity: .5;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 28px 28px no-repeat,
    linear-gradient(currentColor 0 0) 100% 0 / 28px 28px no-repeat,
    linear-gradient(currentColor 0 0) 0 100% / 28px 28px no-repeat,
    linear-gradient(currentColor 0 0) 66% 66% / 14px 14px no-repeat,
    linear-gradient(currentColor 0 0) 100% 100% / 14px 14px no-repeat;
  border-radius: 6px; }
.b-pile-carte:nth-child(1) .b-pile-motif{ color: var(--rose); }
.b-pile-carte:nth-child(3) .b-pile-motif{ color: var(--magenta); }

.b-tarifs{ background: var(--lilas); }
.b-offres{ display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px){ .b-offres{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px){ .b-offres{ grid-template-columns: repeat(var(--nb, 4), 1fr); } }
.b-offre{
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: 28px; background: #fff; border: 1px solid var(--trait);
  transition: box-shadow .6s;
}
.b-offre:hover{ box-shadow: 0 30px 60px -30px rgba(23, 19, 31, .35); }
.b-offre::before{ content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(320px circle at var(--lx, 50%) var(--ly, 0%), rgba(229, 0, 126, .1), transparent 60%); }
.b-offre:hover::before{ opacity: 1; }
.b-offre h3{ font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; color: var(--nuit); margin: 0 0 18px; }
.b-prix{ font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 2rem + 1.4vw, 3.25rem); letter-spacing: -.05em; line-height: 1; margin: 0 0 6px; color: var(--nuit); }
.b-prix small{ font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--gris); }
.b-periode{ font-size: .9rem; color: var(--gris); margin: 0 0 6px; }
.b-essai{ display: inline-block; align-self: flex-start; margin: 6px 0 0; padding: 4px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: #7a5a0e; background: rgba(231, 185, 75, .25); }
.b-herite{ font-size: .9rem; font-weight: 700; color: var(--nuit); margin: 22px 0 0; }
.b-coches{ list-style: none; margin: 18px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--trait); display: grid; gap: 10px; }
.b-coches li{ position: relative; padding-left: 26px; font-size: .93rem; color: var(--gris); line-height: 1.45; }
.b-coches li::before{ content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--magenta); }
.b-coches li::after{ content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 6px; border-radius: 1px; background: var(--magenta); }
.b-coches .b-fort{ color: var(--nuit); font-weight: 700; }
.b-offre .b-btn{ margin-top: auto; min-height: 50px; }
.b-note{ margin: 32px 0 0; text-align: center; font-size: .88rem; color: var(--gris); }

.b-faq{ background: #fff; }
.b-faq-grille{ display: grid; gap: 28px; }
@media (min-width: 960px){
  .b-faq-grille{ grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .b-faq-tete{ position: sticky; top: 140px; }
}
.b-accordeon details{ border-bottom: 1px solid var(--trait); interpolate-size: allow-keywords; }
.b-accordeon details::details-content{ height: 0; overflow: clip; transition: height .5s cubic-bezier(.16,1,.3,1), content-visibility .5s allow-discrete; }
.b-accordeon details[open]::details-content{ height: auto; }
.b-accordeon summary{
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem);
  letter-spacing: -.02em; color: var(--nuit); transition: color .25s;
}
.b-accordeon summary::-webkit-details-marker{ display: none; }
.b-accordeon summary:hover{ color: var(--magenta); }
.b-accordeon summary i{ position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--trait);
  transition: background .35s, border-color .35s, transform .6s cubic-bezier(.16,1,.3,1); }
.b-accordeon summary i::before, .b-accordeon summary i::after{ content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--magenta); border-radius: 2px; transition: transform .6s cubic-bezier(.16,1,.3,1), background .3s; }
.b-accordeon summary i::after{ transform: rotate(90deg); }
.b-accordeon details[open] summary i{ background: var(--magenta); border-color: var(--magenta); transform: rotate(180deg); }
.b-accordeon details[open] summary i::before, .b-accordeon details[open] summary i::after{ background: #fff; }
.b-accordeon details[open] summary i::after{ transform: rotate(0); }
.b-accordeon details p{ margin: 0; padding: 0 56px 26px 0; color: var(--gris); line-height: 1.7; max-width: 66ch; }

/* =====================================================================
   9. APPEL FINAL — panneau magenta qui s'ouvre jusqu'aux bords
   ================================================================== */
.b-fin{ background: #fff; }
.b-appel{
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  padding: clamp(96px, 12vw, 180px) 0;
  background: radial-gradient(120% 130% at 50% 0%, #FF4FA3, #E5007E 45%, #8E004F);
}
.b-appel .b-champ{ z-index: -1; }
.b-appel h2{ font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.75rem); line-height: 1.04; letter-spacing: -.04em; color: #fff; max-width: 16ch; margin: 0 auto 22px; text-wrap: balance; }
.b-appel p{ font-size: var(--lead); color: rgba(255,255,255,.88); max-width: 50ch; margin: 0 auto 36px; line-height: 1.6; }
.b-appel .b-actions{ justify-content: center; }
.b-appel .b-btn-verre{ border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }


/* =====================================================================
   10. ÉTATS D'ATTENTE, MOUVEMENT RÉDUIT, MOBILE
   ================================================================== */
/* Le temps que le script prenne la main : l'ouverture est masquée
   (au plus 2,5 s, voir le script dans la page) */
.b-attente [data-hero] [data-a], .b-attente [data-titre], .b-attente [data-hero-tel], .b-attente .b-defile-metiers{ visibility: hidden; }

@media (prefers-reduced-motion: reduce){
  .b-nappes i, .b-orbite i, .b-pouls::after{ animation: none; }
  .b-pile-carte{ position: relative; top: 0; }
}

@media (max-width: 959px){
  .b-hero{ min-height: 0; }
  .b-hero-tel .b-tel{ width: min(250px, 60vw); }
  .b-orbite{ inset: -4% -10% auto; }
  .b-pile-carte{ top: calc(90px + var(--i) * 16px); min-height: 240px; }
}
@media (max-width: 720px){
  .b-actions{ flex-direction: column; }
  .b-btn{ width: 100%; }
  .b-accordeon details p{ padding-right: 0; }
  .b-carte{ min-height: 0; }
  .b-illu{ height: 150px; }
  .b-metier{ grid-template-columns: 56px 1fr auto; gap: 2px 16px; }
  .b-metier-vignette{ width: 56px; }
}
