/* Booster Company v4 · page-hote.css (PAGES-A) : plan d'ouverture « la vitrine s'assemble », atelier (ce que nous faisons), conditions, commission, déroulé, questions.
   États : sans JS ou mouvement réduit = affiche statique (état final) ; .js + mouvement permis = scène épinglée (pages.css), pilotée par page-hote.js (.pin). */

.sprite{position:absolute;width:0;height:0;overflow:hidden}

/* ---------- plan d'ouverture ---------- */
.ouv-hote{--fin:clamp(0,(var(--p) - .999) * 1000,1);--bas:clamp(96px,15svh,150px);--vit:min(100%,600px)}
.ouv-hote .ouverture-scene{--spot-x:74%;--spot-y:56%;padding:calc(var(--entete-h) + clamp(28px,4.5vw,64px)) 0 clamp(64px,6.5vw,96px)}
/* projecteur derrière la vitrine et poussière lumineuse hors de la colonne du texte */
.ouv-hote .ouverture-scene::before{background:radial-gradient(36vmax 30vmax at var(--spot-x) var(--spot-y),rgba(31,79,184,.55),transparent 70%),
  radial-gradient(1.2px 1.2px at 47% 14%,#B5C8F2,transparent),radial-gradient(1.4px 1.4px at 63% 9%,#fff,transparent),radial-gradient(1px 1px at 91% 12%,#B5C8F2,transparent),
  radial-gradient(1.3px 1.3px at 97% 46%,#E8833A,transparent),radial-gradient(1.2px 1.2px at 96% 79%,#fff,transparent),radial-gradient(1px 1px at 2.5% 62%,#B5C8F2,transparent),
  radial-gradient(1.2px 1.2px at 9% 88%,#fff,transparent),radial-gradient(1px 1px at 29% 93%,#B5C8F2,transparent),radial-gradient(1.2px 1.2px at 44% 84%,#fff,transparent),radial-gradient(1px 1px at 50% 50%,#B5C8F2,transparent)}
.ouv-hote-grille{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(28px,5vw,80px);align-items:center}
.ouv-texte{position:relative;z-index:4}
.ouv-texte .fil{margin-bottom:22px}
.ouv-titre{margin-top:18px;font-size:clamp(38px,5vw,78px);max-width:11em}
.ouv-texte .chapo{margin-top:22px;max-width:31em}
.ouv-texte .actions{margin-top:30px;gap:14px 26px}

.vitrine-zone{position:relative;z-index:2}
.vitrine{position:relative;width:var(--vit);margin-inline:auto;aspect-ratio:560/540;container-type:inline-size}
.vitrine-svg{position:relative;z-index:1;width:100%;height:100%;overflow:visible}
.ouv-lueur{position:absolute;inset:-16% -14% -4%;z-index:0;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,174,122,.24),rgba(110,139,255,.16) 52%,rgba(110,139,255,0))}
.v-enseigne{font-family:"Archivo",system-ui,sans-serif;font-size:21px;font-weight:720;font-stretch:84%;letter-spacing:.24em;fill:#EEF3FD}
.v-store{transform-box:view-box;transform-origin:280px 130px}
.v-machine{transform-box:view-box;transform-origin:352px 433px}
.v-nuit{opacity:0}
.v-ecran{opacity:.4}
.v-reflet{opacity:0}
.v-etincelle{transform-box:fill-box;transform-origin:50% 50%}

/* carte « Votre lieu » posée devant la vitrine */
.carte-pose{position:absolute;z-index:3;left:-5%;bottom:-7%;--cw:29cqw;rotate:-7deg;transform-origin:50% 100%}
.carte-pose .carte{--mx:calc(var(--hx,.68) + var(--px,0) * .22);--my:calc(var(--hy,.55) + var(--py,0) * .22);--rx:calc(var(--py,0) * -8deg);--ry:calc(var(--px,0) * 10deg);
  filter:drop-shadow(0 18px 26px rgba(0,0,0,.5))}
.carte-pose .carte-in{transition:transform .9s var(--ease-out)}
.carte-pose-ombre{position:absolute;z-index:2;left:-3%;bottom:-9%;width:32cqw;height:5cqw;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side,rgba(0,0,0,.55),rgba(0,0,0,0))}

.ouv-hote .sous-titre{display:none}
.ouv-hote .ouverture-indice{z-index:5}

/* ---------- scène épinglée (JS + mouvement permis, écran assez haut) ---------- */
@media (prefers-reduced-motion:no-preference) and (min-height:501px){
  .js .ouv-hote:not(.statique){--vit:min(100%,calc((100svh - var(--entete-h) - 12px - var(--bas) - 28px) * 1.037))}
  .js .ouv-hote:not(.statique) .ouverture-scene{padding:0}
  .js .ouv-hote:not(.statique) .ouv-hote-grille{height:100%;padding-top:calc(var(--entete-h) + 12px);padding-bottom:var(--bas)}
  .js .ouv-hote:not(.statique) .ouv-titre{font-size:clamp(38px,min(4.8vw,8.6svh),76px)}
  /* état p = 0 écrit en CSS (avant le module) ; --fin vaut 1 à l'état final (secours sans module) */
  .js .ouv-hote:not(.statique) .v-store{transform:scaleY(calc(.06 + .94 * var(--fin)))}
  .js .ouv-hote:not(.statique) .v-nuit{opacity:calc(.9 * (1 - var(--fin)))}
  .js .ouv-hote:not(.statique) :is(.v-lumiere,.v-ampoules,.v-trottoir,.v-halo,.ouv-lueur,.carte-pose-ombre){opacity:var(--fin)}
  .js .ouv-hote:not(.statique) .v-machine{transform:translateX(calc(270px * (1 - var(--fin))))}
  .js .ouv-hote:not(.statique) .v-ecran{opacity:calc(.4 * var(--fin))}
  .js .ouv-hote:not(.statique) .v-etincelle{transform:scale(var(--fin))}
  .js .ouv-hote:not(.statique) .carte-pose{rotate:none;opacity:var(--fin);transform:translate3d(0,calc(-40cqw * (1 - var(--fin))),0) rotate(calc(-7deg - 17deg * (1 - var(--fin))))}
  .js .ouv-hote:not(.statique) .sous-titre{display:block;position:absolute;z-index:3;left:50%;top:calc(100% + clamp(30px,5.4svh,52px));translate:-50% 0;white-space:nowrap;text-align:center;
    font-size:clamp(15px,1.35vw,20px);font-weight:560;font-stretch:108%;letter-spacing:.01em;color:#fff;opacity:0;text-shadow:0 2px 18px rgba(0,0,0,.65);pointer-events:none}
  .js .ouv-hote:not(.statique) .sous-titre::before,.js .ouv-hote:not(.statique) .sous-titre::after{content:"";display:inline-block;width:28px;height:1px;background:rgba(181,200,242,.4);vertical-align:middle;margin:0 14px}
  /* module actif : tout est posé par page-hote.js */
  .js .ouv-hote.pin .vitrine-zone,.js .ouv-hote.pin .ouv-texte{will-change:transform}
  .js .ouv-hote.pin .carte-pose{will-change:transform,opacity}
  /* parallaxe au pointeur / à l'inclinaison (--px, --py) */
  .ouv-hote.pin .vitrine-svg{translate:calc(var(--px,0) * -6px) calc(var(--py,0) * -4px)}
  .ouv-hote.pin .ouv-lueur{translate:calc(var(--px,0) * -14px) calc(var(--py,0) * -8px)}
  .ouv-hote.pin .carte-pose{translate:calc(var(--px,0) * 12px) calc(var(--py,0) * 8px)}
}

/* ---------- mobile ---------- */
@media (max-width:759px){
  .ouv-hote{--vit:min(100%,420px)}
  .ouv-hote .ouverture-scene{--spot-x:50%;--spot-y:74%}
  .ouv-hote-grille{grid-template-columns:1fr;gap:36px}
  .ouv-titre{margin-top:14px}
  .ouv-texte .fil{margin-bottom:16px}
  .ouv-texte .chapo{margin-top:18px}
  .ouv-texte .actions{margin-top:24px}
  .carte-pose{left:2%;bottom:-13%;--cw:27cqw}
  .carte-pose-ombre{left:1%;bottom:-15%;width:30cqw}
}
@media (prefers-reduced-motion:no-preference) and (max-width:759px) and (min-height:501px){
  .js .ouv-hote:not(.statique){--vit:min(100%,calc((100svh - var(--entete-h) - var(--barre-h) - 150px) * 1.037))}
  .js .ouv-hote:not(.statique) .ouv-hote-grille{display:block;padding-top:calc(var(--entete-h) + 20px);padding-bottom:0}
  .js .ouv-hote:not(.statique) .vitrine-zone{margin-top:30px}
  .js .ouv-hote:not(.statique) .ouv-titre{font-size:clamp(34px,10.4vw,46px)}
  .js .ouv-hote:not(.statique) .ouv-texte .chapo{font-size:15.5px}
  .js .ouv-hote:not(.statique) .sous-titre{top:calc(100% + 64px);font-size:15.5px}
  .js .ouv-hote:not(.statique) .sous-titre::before,.js .ouv-hote:not(.statique) .sous-titre::after{width:18px;margin:0 10px}
  /* la vitrine qui dépasse en bas de l’écran invite déjà à défiler (et « Comment ça se passe ↓ » est juste au-dessus) :
     pas de pastille posée sur la vitre */
  .ouv-hote .ouverture-indice{display:none}
}

/* tablette en portrait : texte au-dessus, vitrine en dessous */
@media (min-width:760px) and (orientation:portrait){
  .ouv-hote{--vit:min(100%,560px)}
  .ouv-hote-grille{grid-template-columns:1fr;gap:clamp(36px,5svh,56px)}
}
@media (min-width:760px) and (orientation:portrait) and (prefers-reduced-motion:no-preference) and (min-height:501px){
  .js .ouv-hote:not(.statique){--vit:min(100%,560px,calc((100svh - var(--entete-h) - var(--bas) - 480px) * 1.037))}
  .js .ouv-hote:not(.statique) .ouv-hote-grille{align-content:center}
}

/* écran très bas (téléphone à l’horizontale) : le texte, ses boutons et la vitrine ne tiennent pas dans un écran épinglé.
   Pas d’épinglage, affiche statique (page-hote.js pose aussi .statique). */
@media (max-height:500px){
  .js .ouv-hote{height:auto}
  .js .ouv-hote .ouverture-scene{position:relative;height:auto}
  .ouv-hote .ouverture-indice{display:none}
}

/* morphing depuis la carte « Devenir hôte » de l'accueil (bureau, mouvement permis) */
@media (min-width:760px) and (prefers-reduced-motion:no-preference){
  .vitrine{view-transition-name:carte-hote}
}

/* ---------- 01 · ce que nous faisons (atelier) ---------- */
.atelier-grille{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:clamp(32px,6vw,96px);align-items:start;margin-top:clamp(40px,5vw,72px)}
.atelier-visuel{position:sticky;top:calc(var(--entete-h) + 28px)}
.atelier{width:100%;max-width:460px;margin-inline:auto;overflow:visible}
.atelier .z-trait{fill:none;stroke:url(#at-foil);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.atelier .z-fond{fill:rgba(125,224,255,.05)}
.atelier .z-fin{stroke-width:1.7}
.atelier .z-point{fill:#FF8FD0}
.atelier .z-badge circle{fill:#0F1B3D;stroke:url(#at-foil);stroke-width:2}
.atelier .z-badge text{font-family:"Archivo",system-ui,sans-serif;font-size:14px;font-weight:720;fill:#fff;text-anchor:middle}
.atelier .zone{transition:opacity var(--t-ui) var(--ease-out),filter var(--t-ui) var(--ease-out)}
.atelier.suivi .zone{opacity:.2}
.atelier.suivi .zone.actif{opacity:1;filter:drop-shadow(0 0 7px rgba(125,224,255,.55))}

.faits{display:grid}
.fait{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:22px;align-items:start;padding:clamp(26px,3.2vw,40px) 0;border-top:1px solid var(--filet)}
.fait:last-child{border-bottom:1px solid var(--filet)}
.fait>:not(.fait-ic){grid-column:2}
.fait-ic{grid-row:1/span 3;width:52px;height:52px;border-radius:15px;display:grid;place-items:center;color:#fff;border:1px solid rgba(181,200,242,.24);
  background:linear-gradient(150deg,#2D5FCC,var(--roi) 50%,var(--nuit));box-shadow:0 14px 28px -16px rgba(31,79,184,.9)}
.fait-ic svg{width:24px;height:24px}
.fait-n{font-size:12.5px;font-weight:700;font-stretch:72%;letter-spacing:.2em;color:var(--accent);line-height:1.3}
.fait h3{margin-top:6px;font-size:clamp(21px,1.9vw,26px);font-weight:740}
.fait p{margin-top:8px;color:var(--texte-2);max-width:30em}
.fait::before{content:"";position:absolute;left:-20px;top:-1px;bottom:-1px;width:2px;border-radius:2px;background:var(--foil-v);transform:scaleY(0);transform-origin:50% 0;transition:transform var(--t-reveal) var(--ease-out)}
.fait.actif::before{transform:scaleY(1)}
.fait.actif .fait-ic{background:linear-gradient(#152A5C,#152A5C) padding-box,var(--foil) border-box;border:1.5px solid transparent}

/* ---------- 02 · ce qu'il vous faut ---------- */
.liste-lieu{position:relative;isolation:isolate;overflow:hidden;border-radius:var(--r-l);padding:clamp(24px,3.4vw,44px);border:1px solid var(--filet);
  background:radial-gradient(70% 80% at 100% 0%,rgba(62,111,216,.26),transparent 60%),linear-gradient(180deg,rgba(31,79,184,.18),rgba(21,42,92,.1))}
.liste-lieu::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:var(--foil);opacity:.55;pointer-events:none}
.coches li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start;padding:17px 0;border-bottom:1px solid var(--filet)}
.coches li:first-child{padding-top:2px}
.coche{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:1.5px solid transparent;background:linear-gradient(#0D1B45,#0D1B45) padding-box,var(--foil) border-box}
.coche svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.coche path{stroke-dasharray:18;stroke-dashoffset:0}
.coches b{display:block;font-size:17.5px;font-weight:680;color:var(--titre);line-height:1.35}
.coches p span{display:block;margin-top:3px;font-size:15.5px;color:var(--texte-2);line-height:1.5}
.liste-note{display:flex;gap:12px;margin-top:24px;font-size:14.5px;line-height:1.55;color:var(--texte-2)}
.liste-note svg{width:20px;height:20px;flex:none;margin-top:1px;color:var(--accent)}
@media (prefers-reduced-motion:no-preference){
  .coche path{transition:stroke-dashoffset .55s var(--ease-out) .3s}
  .coches li:nth-child(2) .coche path{transition-delay:.38s}.coches li:nth-child(3) .coche path{transition-delay:.46s}
  .coches li:nth-child(4) .coche path{transition-delay:.54s}.coches li:nth-child(5) .coche path{transition-delay:.62s}
  .js .coches:not(.in) .coche path{stroke-dashoffset:18}
}

/* ---------- 03 · votre commission ---------- */
.avantages{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:clamp(22px,3vw,44px);margin-top:clamp(44px,5vw,76px)}
.avantage .flip{--cw:clamp(236px,21vw,290px)}
.avantage:nth-child(1) .flip{rotate:-3deg;translate:0 18px}
.avantage:nth-child(3) .flip{rotate:3deg;translate:0 18px}
.avantage:nth-child(2) .flip--apparition .flip-in{transition-delay:260ms}
.avantage:nth-child(3) .flip--apparition .flip-in{transition-delay:400ms}
.avantage .carte-nom{white-space:normal;font-size:1.04em;line-height:1.15;margin:0}
.avantage .carte-type{font-size:.52em}
.avantage .carte-txt{font-size:.78em;line-height:1.38;color:#3F4A66}
.gyro-rangee{display:flex;justify-content:center;margin-top:34px}
.gyro-rangee:has(.btn-gyro[hidden]){display:none}

/* ---------- 04 · déroulé (ligne irisée qui se remplit au défilement) ---------- */
@property --avance{syntax:"<number>";inherits:true;initial-value:1}
@keyframes avance{from{--avance:0}to{--avance:1}}
.etapes-hote{margin-top:clamp(44px,5vw,72px);--avance:1}
.etapes-hote .etape{--allume:clamp(0,(var(--avance) * 3 - var(--i)) * 4 + 1,1)}
.etapes-hote .etape:not(:last-child)::after{content:"";position:absolute;left:62px;right:-12px;top:31px;height:2px;border-radius:2px;background:var(--foil);
  transform-origin:0 50%;transform:scaleX(clamp(0,var(--avance) * 3 - var(--i),1))}
.etapes-hote .etape-n{opacity:calc(.35 + .65 * var(--allume));scale:calc(.92 + .08 * var(--allume));box-shadow:0 0 calc(var(--allume) * 26px) calc(var(--allume) * -4px) rgba(125,224,255,.55)}
.etapes-hote h3{font-size:clamp(19px,1.6vw,22px)}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .js .etapes-hote{animation:avance linear both;animation-timeline:view();animation-range:entry 35% cover 58%}
  }
}

/* ---------- 05 · questions des hôtes ---------- */
.questions-grille{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(36px,6vw,96px);align-items:start}
.questions-tete{position:sticky;top:calc(var(--entete-h) + 28px)}

/* ---------- appel final ---------- */
.appel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(28px,5vw,80px);align-items:center}
.appel .titre-2{margin-top:16px}
.appel .chapo{margin-top:18px}
.appel .actions{margin-top:30px;gap:14px 26px}
.appel-mail{color:#fff}
.appel-mail svg{width:18px;height:18px}
.appel-visuel{padding-right:clamp(0px,2vw,24px)}
.appel-visuel .carte{--cw:clamp(170px,16vw,226px);rotate:5deg}

/* ---------- responsive ---------- */
@media (max-width:1020px){
  .questions-grille{grid-template-columns:1fr}
  .questions-tete{position:relative;top:auto}
}
@media (max-width:759px){
  .atelier-grille{grid-template-columns:1fr;gap:12px}
  .atelier-visuel{position:static}
  .atelier{max-width:300px}
  .fait{column-gap:18px;padding:24px 0}
  .fait-ic{width:46px;height:46px;border-radius:13px}
  .fait-ic svg{width:22px;height:22px}
  .fait::before{display:none}
  .avantage .flip{--cw:min(290px,78vw)}
  .avantage:nth-child(n) .flip{rotate:none;translate:none}
  .etapes-hote .etape:not(:last-child)::after{left:22px;right:auto;top:74px;bottom:6px;width:2px;height:auto;transform-origin:50% 0;transform:scaleY(clamp(0,var(--avance) * 3 - var(--i),1))}
  .appel{grid-template-columns:1fr}
  .appel-visuel{display:flex;justify-content:center;padding:8px 0 0}
  .appel-visuel .carte{--cw:min(190px,52vw)}
}
/* clavier sur mobile : html scroll-padding-bottom est dans base.css */
