/* Accueil (direction B, validée par Mehdi le 30/10/2026) : quatre scènes au défilement — le portable s'ouvre, l'écran se démonte en couches,
   la méthode en trois phrases, les cinq logiciels à l'horizontale. Classes préfixées « b- » ; couleurs propres à la zone .accueil-b. */
.accueil-b { --texte: #F5F5F7; --gris: #A1A1A6; --cyan: #5CE1FF; --vif: #0A84FF; --mono: "Geist Mono", Menlo, Consolas, monospace; background: #000; color: var(--texte); overflow-x: clip; }
.accueil-b h1, .accueil-b h2, .accueil-b h3 { color: inherit; }
font-face { font-family: "Geist"; src: url("/ressources/polices/Geist-Regular.ttf"); font-weight: 400; font-display: swap; }
font-face { font-family: "Geist"; src: url("/ressources/polices/Geist-Medium.ttf"); font-weight: 500; font-display: swap; }
font-face { font-family: "Geist"; src: url("/ressources/polices/Geist-SemiBold.ttf"); font-weight: 600; font-display: swap; }
font-face { font-family: "Geist Mono"; src: url("/ressources/polices/GeistMono-Regular.ttf"); font-weight: 400; font-display: swap; }
/* chaque scène : une piste haute et un cadre collé à l'écran ; --p va de 0 à 1 le long de la piste (posé par le script) */
.b-scene { position: relative; }
.b-colle { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
/* ---------- 1. Le portable s'ouvre ---------- */
.b-s1 .b-piste { height: 320vh; }
.b-s1 .b-titre { position: absolute; top: 50%; left: 50%; width: min(1100px, 92vw); text-align: center; transform: translate(-50%, calc(-50% - var(--monte) * 39vh)) scale(calc(1 - var(--monte) * .56)); opacity: calc(1 - var(--ouvert) * 1); z-index: 2; }
.b-s1 .b-surtitre { font: 13px var(--mono); color: var(--cyan); letter-spacing: .06em; margin: 0 0 18px; }
.b-s1 h1 { margin: 0; font-size: clamp(48px, 9vw, 136px); line-height: .94; letter-spacing: -.055em; font-weight: 600; text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, #9AA7C7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-s1 .b-sous { margin: 26px auto 0; color: var(--gris); font-size: clamp(17px, 1.6vw, 21px); max-width: 40ch; opacity: calc(1 - var(--monte) * 2.2); }
.b-scene3d { position: absolute; left: 50%; top: 60%; width: min(940px, 78vw, 118vh); transform: translate(-50%, calc(-50% + (1 - var(--monte)) * 62vh)); perspective: 2200px; }
.b-portable { position: relative; transform-style: preserve-3d; transform: rotateX(calc(14deg - var(--ouvert) * 8deg)); }
.b-couvercle { position: relative; aspect-ratio: 16 / 10.4; transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--ouvert)) * -88deg)); transform-style: preserve-3d; }
.b-couvercle .b-face { position: absolute; inset: 0; border-radius: 20px 20px 4px 4px; padding: 1.7% 1.7% 3.4%; background: #0B0C10; box-shadow: inset 0 0 0 1.5px #2A2D35, 0 40px 120px -20px rgba(10,132,255,calc(var(--ouvert) * .55)); backface-visibility: hidden; }
.b-couvercle .b-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 6px; display: block; filter: brightness(calc(.25 + var(--ouvert) * .75)); }
.b-couvercle .b-dos { position: absolute; inset: 0; border-radius: 20px 20px 4px 4px; transform: rotateY(180deg); backface-visibility: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, #3A3F4B, #1A1D24 60%, #121419); box-shadow: inset 0 0 0 1.5px #4A505D; }
.b-couvercle .b-dos img { width: 9%; opacity: .9; }
.b-socle { position: relative; height: 22px; margin: 0 -7%; border-radius: 2px 2px 18px 18px; background: linear-gradient(180deg, #4A505C, #1E2128 40%, #0E0F13); box-shadow: 0 30px 60px -10px rgba(0,0,0,.9); }
.b-socle::before { content: ''; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #111317; }
.b-s1 .b-reflet { position: absolute; left: 50%; bottom: -30%; width: 70%; height: 40%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(10,132,255,calc(var(--ouvert) * .5)), transparent); filter: blur(30px); }
/* ---------- 2. Vue éclatée ---------- */
.b-s2 .b-piste { height: 420vh; }
.b-s2 .b-colle { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 4vw; padding: 0 5vw; place-items: center stretch; }
.b-s2 .b-texte { position: relative; min-height: 260px; }
.b-s2 .b-texte > div { position: absolute; inset: 0; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1); }
.b-s2 .b-texte > div.b-on { opacity: 1; transform: none; }
.b-s2 .b-surtitre { font: 12.5px var(--mono); color: var(--cyan); letter-spacing: .05em; }
.b-s2 h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 14px 0 0; }
.b-s2 p { color: var(--gris); font-size: 18px; margin: 16px 0 0; max-width: 34ch; }
.b-eclate { position: relative; perspective: 2000px; }
.b-pile { position: relative; aspect-ratio: 16 / 10; transform-style: preserve-3d; transform-origin: 50% 50%; transform: translateY(calc(var(--iso) * 9%)) rotateX(calc(var(--iso) * 50deg)) rotateZ(calc(var(--iso) * -30deg)) scale(calc(1 - var(--iso) * .22)); }
.b-pile .b-base { position: absolute; inset: 0; border-radius: 10px; background: url("/ressources/ecrans/c_dashboard.webp?v=1e99f60853") center / cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12); filter: brightness(calc(1 - var(--leve) * .72)) saturate(calc(1 - var(--leve) * .6)); }
.b-couche { position: absolute; border-radius: 8px; background-image: url("/ressources/ecrans/c_dashboard.webp?v=1e99f60853"); background-repeat: no-repeat; transform: translateZ(calc(var(--leve) * var(--z) * 1px));
  box-shadow: 0 0 0 1px rgba(92,225,255,calc(var(--leve) * .7)), 0 calc(var(--leve) * 30px) calc(var(--leve) * 50px) rgba(0,0,0,.6); transition: box-shadow .3s; }
.b-couche b { position: absolute; left: 0; bottom: 100%; margin-bottom: 8px; white-space: nowrap; padding: 4px 9px; border-radius: 6px; font: 500 11.5px var(--mono); color: #fff; background: rgba(10,132,255,.92);
  opacity: calc(var(--leve) * 1.4 - .3); transform: translateZ(1px); }
/* ---------- 3. La méthode, en trois phrases ---------- */
.b-s3 .b-piste { height: 360vh; }
.b-s3 .b-phrase { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 28px; text-align: center; padding: 0 5vw; }
.b-s3 .b-phrase h2 { margin: 0; font-size: clamp(56px, 11vw, 176px); line-height: .92; letter-spacing: -.06em; font-weight: 600;
  background: linear-gradient(90deg, #fff 0 var(--remplit), rgba(255,255,255,.12) calc(var(--remplit) + 8%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-s3 .b-phrase { opacity: var(--vu); transform: scale(calc(.92 + var(--vu) * .08)); }
.b-s3 .b-puce { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font: 13px var(--mono); color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); opacity: var(--vu); }
.b-s3 .b-puce i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
/* ---------- 4. Les cinq logiciels, en défilement horizontal ---------- */
.b-s4 .b-piste { height: 480vh; }
.b-s4 .b-colle { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 5vh; padding-top: 64px; } /* le titre au-dessus de la galerie, jamais dessous */
.b-s4 .b-tete4 { position: relative; z-index: 1; padding: 0 5vw; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.b-s4 .b-tete4 h2 { margin: 0; font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -.045em; font-weight: 600; line-height: 1; }
.b-s4 .b-tete4 p { margin: 0; font: 12.5px var(--mono); color: var(--gris); }
.b-rail { display: flex; gap: 4vw; padding: 0 5vw; margin-top: 0; transform: translateX(calc(var(--p) * -1 * var(--course))); will-change: transform; }
.b-produit { flex: none; width: min(62vw, 860px, calc((100vh - 330px) * 1.6)); } /* l'écran et sa légende tiennent dans la hauteur */
.b-produit .b-ecran { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #0B0C10; padding: 8px; box-shadow: inset 0 0 0 1.5px #2A2D35, 0 30px 80px -20px rgba(10,132,255,.35); transform: scale(calc(.9 + var(--actif, 0) * .1)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.b-produit .b-ecran img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 9px; display: block; }
.b-produit .b-legende { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 22px; opacity: calc(.35 + var(--actif, 0) * .65); transition: opacity .5s; }
.b-produit h3 { margin: 0; font-size: 28px; letter-spacing: -.03em; font-weight: 600; }
.b-produit p { margin: 4px 0 0; color: var(--gris); font-size: 16px; }
@media (max-width: 800px) {
  .b-s2 .b-colle { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 6vh; }
  .b-s2 .b-texte { min-height: 190px; }
  .b-s2 p { font-size: 16px; }
  .b-couche b { font-size: 9px; padding: 2px 5px; }
  .b-produit { width: 82vw; }
  .b-produit h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-s2 .b-texte > div { transition: none; }
}.b-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; opacity: calc(1 - var(--monte) * 2.4); }
.b-lien { color: var(--cyan); margin-top: 0; }
@media (max-width: 600px) { .b-actions { flex-direction: column; align-items: center; } }
