/* TrigStage — une scène dans le noir : noir de plateau, corail du logo, lumière tungstène. */

@property --c { syntax: '<color>'; inherits: true; initial-value: #ffc48a; }
@property --o { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --plateau: #07080b;
  --coulisse: #0e1015;
  --trait: #ffffff1a;
  --corail: #fe5c47;
  --corail-clair: #ff7563;
  --tungstene: #ffc48a;
  --lumiere: #eef0f3;
  --texte-doux: #c6c9d0;
  --rideau: #8b8f9c;
  --display: 'Saira', system-ui, sans-serif;
  --texte: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --logo-l: clamp(140px, 15vw, 220px);
  --marge: clamp(1.25rem, 6vw, 6rem);
}

* { box-sizing: border-box; }
html { background: var(--plateau); color: var(--lumiere); -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--texte); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tungstene); }
:focus-visible { outline: 2px solid var(--tungstene); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
strong { color: var(--lumiere); font-weight: 700; }

.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem; border-radius: 999px;
  background: var(--lumiere); color: var(--plateau); font-weight: 700; }
.evitement:focus { top: 1rem; }

/* ---------- Barre du haut : le grand logo du branding, qui déborde, puis le petit en défilant ---------- */

.barre { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 4.5rem; display: flex; align-items: center; gap: 1rem;
  padding: 0 clamp(1rem, 3.5vw, 3rem) 0 calc(var(--marge) + var(--logo-l) + 1rem);
  background: linear-gradient(#07080bf0, #07080b00); transition: background .3s; }
.defile .barre { background: #07080be6; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--trait); padding-left: calc(var(--marge) + 3.4rem); }
.marque { position: absolute; left: var(--marge); top: .9rem; line-height: 0; }
.marque .grand { width: var(--logo-l); transform-origin: 0 0; transition: transform .45s cubic-bezier(.3,.7,.2,1), opacity .3s; }
.marque .petit { position: absolute; left: 0; top: .1rem; width: 36px; opacity: 0; transition: opacity .3s .1s; }
.defile .marque .grand { transform: scale(.35); opacity: 0; pointer-events: none; }
.defile .marque .petit { opacity: 1; }

.menu { margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: .4rem .95rem; border: 1px solid #ffffff30; border-radius: 999px;
  font-weight: 700; font-size: .95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--texte-doux); }
.menu a:hover, .menu a[aria-current] { color: var(--lumiere); }
.menu .essayer { color: var(--plateau); background: var(--corail); padding: .45rem 1rem; border-radius: 999px; font-weight: 700; }
.menu .essayer:hover { background: var(--corail-clair); color: var(--plateau); }
.langue { padding: .3rem .65rem; border: 1px solid #ffffff30; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .9rem; }

@media (min-width: 900px) {
  .menu summary { display: none; }
  .menu ul { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); font-size: .97rem; }
}
@media (max-width: 899px) {
  .barre { padding-left: 0; justify-content: flex-end; }
  .defile .barre { padding-left: 0; }
  .menu ul { position: absolute; right: clamp(1rem, 3.5vw, 3rem); top: 4.2rem; min-width: 15rem; padding: .6rem;
    background: #111318f5; border: 1px solid var(--trait); border-radius: 18px; box-shadow: 0 20px 50px #000a;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .menu li a { display: block; padding: .7rem .9rem; border-radius: 10px; font-size: 1.05rem; }
  .menu li a:hover { background: #ffffff0d; }
  .menu li .essayer { margin-top: .4rem; text-align: center; }
}

/* ---------- Éléments communs ---------- */

.cadre { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--marge); }
.bloc { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.bloc h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.06; font-stretch: 112%; margin: 0 0 1.1rem; max-width: 17em; }
.chapeau { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--texte-doux); max-width: 36em; margin: 0 0 1.6rem; }
.note { color: var(--rideau); font-size: .95rem; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; max-width: 38em; color: var(--texte-doux); }
.points li { position: relative; padding-left: 1.6rem; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--corail); box-shadow: 0 0 12px #fe5c4780; }

.deux { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.deux.inverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .deux { grid-template-columns: minmax(0, 1fr); }
  .deux.inverse > :first-child { order: 0; }
}

.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.bouton { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.45rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.bouton.plein { background: var(--corail); color: #160604; }
.bouton.plein:hover { background: var(--corail-clair); color: #160604; }
.bouton.creux { border: 1px solid #ffffff45; color: var(--lumiere); }
.bouton.creux:hover { border-color: var(--lumiere); color: var(--lumiere); }

.bientot, .nouveau { display: inline-block; margin: 0 0 1rem; padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.bientot { border: 1px solid #ffc48a66; color: var(--tungstene); }
.nouveau { background: #fe5c4722; color: #ff9a8b; border: 1px solid #fe5c4755; }

.picto { width: 48px; height: 48px; fill: none; stroke: var(--texte-doux); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.picto .accent { fill: var(--corail); stroke: none; }

/* ---------- La scène (en-tête de l'accueil) ---------- */

.scene { --p: 0; position: relative; min-height: max(100svh, 680px); overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto;
  padding: 11rem var(--marge) clamp(2.5rem, 6vh, 4rem); column-gap: 2rem; }
.couche { position: absolute; inset: 0; pointer-events: none; will-change: transform; }

.pont { transform: translateY(calc(var(--p) * -140px)); }
.pont::before { content: ""; position: absolute; left: -5%; right: -5%; top: 64px; height: 6px;
  background: linear-gradient(90deg, #1b1d24, #2a2d36 50%, #1b1d24); }
.projo { position: absolute; top: 58px; width: 34px; height: 30px; margin-left: -17px;
  background: #15171d; border-radius: 6px 6px 10px 10px; box-shadow: inset 0 -3px 0 #2a2d36; }
.projo::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: -3px; height: 5px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 18px 6px var(--c); opacity: min(1, calc(var(--o) * 2.5));
  transition: opacity var(--t, .6s), --c var(--t, .6s); transition-delay: var(--d, 0s); }

.faisceaux { transform: translateY(calc(var(--p) * -60px)); mix-blend-mode: screen; }
.faisceau { position: absolute; top: 80px; width: 46vmax; height: 120vh; margin-left: -23vmax;
  transform-origin: 50% 0; transform: rotate(var(--r)) scaleX(1);
  background: radial-gradient(ellipse 50% 100% at 50% 0%, var(--c) 0%, transparent 70%);
  clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%); filter: blur(10px); opacity: var(--o);
  transition: opacity var(--t, .6s), --c var(--t, .6s), transform 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s); }
.js .scene:not(.allume) .faisceau { transform: rotate(var(--r)) scaleX(.15); }
.pret .faisceau, .pret .projo::after, .pret .flaque { transition-delay: 0s; }

canvas.poussiere { width: 100%; height: 100%; transform: translateY(calc(var(--p) * -30px)); }

.plancher { top: auto; height: 34%; transform: translateY(calc(var(--p) * 50px));
  background: linear-gradient(#07080b00, #07080bcc 30%, #050507); }
.flaque { position: absolute; top: -8%; width: 30vw; height: 40%; margin-left: -15vw; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent); opacity: calc(var(--o) * .35);
  transition: opacity var(--t, .6s), --c var(--t, .6s); transition-delay: var(--d, 0s); }
.scotch { position: absolute; width: 18px; height: 12px; opacity: .4; }
.scotch::before, .scotch::after { content: ""; position: absolute; background: var(--s, var(--lumiere)); }
.scotch::before { left: 0; right: 0; top: 0; height: 3px; }
.scotch::after { top: 0; bottom: 0; left: 7.5px; width: 3px; }

.scene-texte, .pad-zone, .scene-actions { position: relative; z-index: 2; }
.scene-texte { grid-column: 1; grid-row: 2; align-self: end; transform: translateY(calc(var(--p) * 90px)); }
.slogan { margin: 0; font-family: var(--display); font-stretch: 125%; line-height: .95; }
.slogan .standby { display: block; font-size: clamp(1.4rem, 2.8vw, 2.3rem); font-weight: 500; color: var(--rideau); }
.slogan .go { display: block; font-size: clamp(4.4rem, 12vw, 10rem); font-weight: 800; text-shadow: 0 0 60px #ffc48a40;
  transition: opacity .25s, text-shadow 1.2s; }
.js .scene:not(.allume) .slogan .go { opacity: .08; text-shadow: none; }
.intro { margin: 1.3rem 0 0; max-width: 30em; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: #d5d8de; }

.pad-zone { grid-column: 2; grid-row: 2; align-self: end; justify-self: center; display: grid; justify-items: center;
  text-align: center; width: min(22rem, 100%); margin-bottom: 1rem; }
.pad-zone::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 2.5rem; width: 22rem; height: 9rem;
  margin-left: -11rem; border-radius: 50%; background: radial-gradient(closest-side, #ffc48a2e, transparent); }
.pad { position: relative; width: clamp(104px, 10vw, 140px); aspect-ratio: 1; border-radius: 26%; border: 0; cursor: pointer;
  background: linear-gradient(#1d1f26, #111217); box-shadow: 0 26px 34px -10px #000, inset 0 2px 0 #ffffff14;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.pad::before { content: ""; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff8a78, var(--corail) 55%, #c83a28);
  box-shadow: 0 6px 0 #8f2618, 0 10px 18px #000a; transition: transform .08s, box-shadow .08s; }
.pad:active::before { transform: translateY(5px); box-shadow: 0 1px 0 #8f2618, 0 4px 8px #000a; }
.onde { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--corail); opacity: 0; pointer-events: none; }
.go-anim .onde { animation: onde 1.1s ease-out forwards; }
.go-anim .onde:nth-child(2) { animation-delay: .14s; }
.go-anim .onde:nth-child(3) { animation-delay: .28s; }
@keyframes onde { from { opacity: .8; transform: scale(.6); } to { opacity: 0; transform: scale(2.4); } }
.consigne { margin: 1rem 0 0; color: var(--rideau); font-size: .95rem; min-height: 3.2em; line-height: 1.45; }
.consigne strong { display: block; }
.nojs .pad-zone { display: none; }

.scene-actions { grid-column: 1 / -1; grid-row: 3; display: grid; justify-items: center; text-align: center; margin-top: 2.2rem; }
.scene-actions .actions { justify-content: center; }
.precisions { margin: 1rem 0 0; font-size: .92rem; color: var(--rideau); }

@media (max-width: 760px) {
  .scene { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; padding-top: 12.5rem; }
  .pont { top: 70px; }
  .faisceaux { top: 70px; }
  .scene-texte, .pad-zone, .scene-actions { grid-column: 1; }
  .scene-texte { grid-row: 1; }
  .pad-zone { grid-row: 2; margin: 2rem auto 0; }
  .pad-zone::before { width: 18rem; margin-left: -9rem; }
  .scene-actions { grid-row: 3; margin-top: 1.4rem; }
  .plancher { height: 30%; }
  .scotch { display: none; }
}

/* ---------- La chaîne : PAD → HUB → iPad → son et lumière ---------- */

.maillons { --k: 0; list-style: none; margin: 3rem 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.maillons::before, .maillons::after { content: ""; position: absolute; left: 24px; right: 12%; top: 23px; height: 2px; }
.maillons::before { background: var(--trait); }
.maillons::after { background: linear-gradient(90deg, var(--corail), var(--tungstene)); transform-origin: 0 50%;
  transform: scaleX(var(--k)); box-shadow: 0 0 14px #fe5c4799; }
.maillons li { position: relative; display: grid; gap: .45rem; align-content: start; color: var(--rideau); }
.maillons .picto { background: var(--plateau); position: relative; z-index: 1; padding: 0; transition: stroke .4s; }
.maillons .picto .accent { fill: #3a3d47; transition: fill .4s; }
.maillons li.allume .picto { stroke: var(--lumiere); }
.maillons li.allume .picto .accent { fill: var(--corail); }
.maillons strong { font-family: var(--display); font-stretch: 112%; font-size: 1.15rem; margin-top: .6rem; color: var(--lumiere); }
.nojs .maillons { --k: 1; }
.nojs .maillons .picto .accent { fill: var(--corail); }
@media (max-width: 760px) {
  .maillons { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .maillons::before, .maillons::after { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .maillons::after { background: linear-gradient(var(--corail), var(--tungstene)); transform-origin: 50% 0; transform: scaleY(var(--k)); }
  .maillons li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.1rem; }
  .maillons .picto { grid-row: span 2; }
  .maillons strong { margin-top: .5rem; }
}

/* ---------- Les sons : une playlist pas à pas ---------- */

.playlist { margin: 0; padding: 1.4rem; border-radius: 22px; background: linear-gradient(#12141a, #0c0d11);
  border: 1px solid var(--trait); box-shadow: 0 40px 80px -30px #000; }
.playlist figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0 .4rem 1rem;
  font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.2rem; }
.playlist .genre { font-family: var(--texte); font-weight: 400; font-size: .9rem; color: var(--rideau); }
.playlist ol { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: .5rem; }
.playlist li { counter-increment: etape; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .4rem .8rem;
  padding: .85rem 1rem; border-radius: 14px; background: #ffffff06; color: var(--texte-doux); }
.playlist li::before { content: counter(etape); font-family: var(--display); font-weight: 700; color: var(--rideau); }
.playlist .nom { color: var(--lumiere); font-weight: 700; }
.playlist .etiquettes { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.playlist .etiquettes span { font-size: .78rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid #ffffff22; white-space: nowrap; }
.playlist li.fait { opacity: .55; }
.playlist li.en-cours { background: #fe5c4714; box-shadow: inset 3px 0 0 var(--corail); }
.playlist li.en-cours::before { color: var(--corail); }
.onde-son { grid-column: 2 / -1; width: 100%; height: 24px; fill: none; stroke: #fe5c47aa; stroke-width: 1.5;
  -webkit-mask: linear-gradient(90deg, #000 var(--lecture, 45%), #0005 var(--lecture, 45%)); mask: linear-gradient(90deg, #000 var(--lecture, 45%), #0005 var(--lecture, 45%)); }
@media (prefers-reduced-motion: no-preference) {
  .onde-son { animation: lecture 14s linear infinite; }
}
@keyframes lecture { from { --lecture: 0%; } to { --lecture: 100%; } }
@property --lecture { syntax: '<percentage>'; inherits: false; initial-value: 45%; }
@media (max-width: 520px) {
  .playlist li { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .playlist .etiquettes { grid-column: 2; justify-content: flex-start; }
}

/* ---------- La lumière : une petite console ---------- */

.lumiere { background: radial-gradient(ellipse 60% 70% at 70% 50%, #fe5c470d, transparent 70%); }
.console { padding: 1.4rem; border-radius: 22px; background: linear-gradient(#14161c, #0b0c10); border: 1px solid var(--trait);
  box-shadow: 0 40px 80px -30px #000; }
.console-scene { position: relative; height: 7.5rem; border-radius: 14px; overflow: hidden; margin-bottom: 1.2rem;
  background: linear-gradient(#0a0b0e, #121318); }
.console-scene span { position: absolute; inset: 0; background:
  radial-gradient(ellipse 30% 80% at 30% 100%, var(--couleur, #ffc48a), transparent 70%),
  radial-gradient(ellipse 30% 80% at 70% 100%, var(--couleur, #ffc48a), transparent 70%);
  opacity: var(--intensite, .8); transition: opacity .9s, --couleur .9s; }
@property --couleur { syntax: '<color>'; inherits: true; initial-value: #ffc48a; }
.faders { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.fader { display: grid; justify-items: center; gap: .5rem; }
.fader .niveau { position: relative; width: 10px; height: 9.5rem; border-radius: 999px; background: #ffffff10; }
.fader .niveau::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v) * 100%);
  border-radius: inherit; background: var(--f, #ffffff55); transition: height .9s cubic-bezier(.3,.7,.2,1); }
.fader .niveau::after { content: ""; position: absolute; left: 50%; width: 30px; height: 14px; margin-left: -15px;
  bottom: calc(var(--v) * 100% - 7px); border-radius: 4px; background: linear-gradient(#3b3e48, #22242b);
  box-shadow: 0 2px 6px #000a, inset 0 1px 0 #ffffff22; transition: bottom .9s cubic-bezier(.3,.7,.2,1); }
.fader.rouge { --f: #ff5a4a; } .fader.vert { --f: #4ade80; } .fader.bleu { --f: #5f7dff; }
.fader .nom { font-size: .8rem; color: var(--rideau); }
.ambiances { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.ambiances button { font: 700 .9rem var(--texte); color: var(--texte-doux); background: #ffffff08; border: 1px solid #ffffff22;
  padding: .5rem .9rem; border-radius: 999px; cursor: pointer; }
.ambiances button:hover { color: var(--lumiere); border-color: #ffffff55; }
.ambiances button[aria-pressed="true"] { background: var(--lumiere); color: var(--plateau); border-color: var(--lumiere); }

/* ---------- Télécommandes, garanties, matériel ---------- */

.telecommandes { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4rem; }
.telecommandes li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.telecommandes img { width: 64px; height: 64px; border-radius: 15px; }
.telecommandes h3 { margin: .2rem 0 .4rem; font-size: 1.25rem; font-stretch: 112%; }
.telecommandes p { margin: 0 0 .5rem; color: var(--texte-doux); }
.telecommandes .picto { width: 56px; height: 56px; margin: 4px; }
@media (max-width: 760px) { .telecommandes { grid-template-columns: minmax(0, 1fr); } }

.garanties { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--trait); }
.garanties > div { padding: 1.8rem 2rem 1.8rem 0; border-bottom: 1px solid var(--trait); }
.garanties dt { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.2rem; margin-bottom: .45rem; }
.garanties dd { margin: 0; color: var(--texte-doux); }
@media (max-width: 960px) { .garanties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .garanties { grid-template-columns: minmax(0, 1fr); } }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.duo figure, .appareil-image { margin: 0; display: grid; justify-items: center; gap: .8rem; }
.duo img, .appareil-image img { width: min(100%, 15rem); filter: drop-shadow(0 0 40px #fe5c4730); }
.duo figcaption { font-family: var(--display); font-stretch: 125%; font-weight: 700; letter-spacing: .04em; color: var(--texte-doux); }

.guide-apercu .cadre, .final .cadre { text-align: center; }
.guide-apercu h2, .final h2, .guide-apercu .chapeau, .final .chapeau { margin-inline: auto; }
.guide-apercu .actions, .final .actions { justify-content: center; }
.final { padding-bottom: clamp(6rem, 12vw, 10rem); background: radial-gradient(ellipse 50% 60% at 50% 100%, #ffc48a14, transparent 70%); }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-stretch: 125%; }

/* ---------- Pages intérieures ---------- */

.page-haut { padding-top: clamp(11rem, 18vw, 14rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.page-haut h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; font-stretch: 118%; margin: 0 0 1.2rem; max-width: 15em; }
.page-haut .chapeau { font-size: clamp(1.12rem, 1.7vw, 1.35rem); }
.page-haut + .bloc { padding-top: clamp(2.5rem, 5vw, 4rem); }
.entete-page { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: start; }
.icone-app { width: clamp(72px, 9vw, 112px); border-radius: 22%; box-shadow: 0 20px 50px -10px #fe5c4740; }
@media (max-width: 600px) { .entete-page { grid-template-columns: minmax(0, 1fr); } }

.etapes { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: etape; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.etapes li { counter-increment: etape; color: var(--texte-doux); }
.etapes li::before { content: counter(etape); display: block; font: 800 3rem/1 var(--display); font-stretch: 125%; color: var(--corail); margin-bottom: .6rem; }
.etapes strong { display: block; font-family: var(--display); font-stretch: 112%; font-size: 1.2rem; margin-bottom: .4rem; }
.etapes.compactes { grid-template-columns: minmax(0, 1fr); gap: .8rem; margin: 1.2rem 0 1.6rem; }
.etapes.compactes li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); }
.etapes.compactes li::before { font-size: 1.2rem; margin: 0; padding-top: .15rem; }
@media (max-width: 760px) { .etapes { grid-template-columns: minmax(0, 1fr); } }

.cartes-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.cartes-liens.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.carte-lien { display: flex; flex-direction: column; align-items: flex-start; padding: 1.8rem; border-radius: 20px;
  border: 1px solid var(--trait); background: #ffffff05; }
.carte-lien h2, .carte-lien h3 { font-size: 1.35rem; font-stretch: 112%; margin: 0 0 .6rem; }
.carte-lien p { color: var(--texte-doux); margin: 0 0 1.4rem; }
.carte-lien > .bouton, .carte-lien > .actions { margin-top: auto; }
@media (max-width: 960px) { .cartes-liens.trois { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .cartes-liens { grid-template-columns: minmax(0, 1fr); } }

.alerte { margin-top: 1.6rem; padding: 1.1rem 1.3rem; border-radius: 14px; background: #ffc48a12; border: 1px solid #ffc48a40; color: var(--texte-doux); }
.alerte strong { color: var(--tungstene); }

.appareil + .appareil { padding-top: 0; }

.texte-long { max-width: 48rem; }
.texte-long h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-stretch: 112%; margin: 2.6rem 0 .7rem; }
.texte-long h2:first-child { margin-top: 0; }
.texte-long p, .texte-long li { color: var(--texte-doux); }
.gros-lien { font: 700 clamp(1.3rem, 3vw, 2rem) var(--display); font-stretch: 112%; }
.gros-lien a { color: var(--tungstene); }
.liste-liens { padding-left: 1.2rem; display: grid; gap: .4rem; }

/* Guide */
.sommaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
.sommaire h2 { font-size: 1.35rem; font-stretch: 112%; margin: 0 0 1rem; color: var(--tungstene); }
.sommaire ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .55rem; color: var(--rideau); }
.sommaire a { color: var(--lumiere); text-decoration: none; }
.sommaire a:hover { color: var(--tungstene); text-decoration: underline; }
@media (max-width: 760px) { .sommaire { grid-template-columns: minmax(0, 1fr); } }

.article-guide { padding-bottom: clamp(4rem, 8vw, 6rem); }
.article-guide h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.fil { color: var(--rideau); font-size: .95rem; margin: 0 0 1rem; }
.fil span { margin: 0 .3rem; }
.article-corps h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-stretch: 112%; margin: 2.4rem 0 .7rem; }
.article-corps ul, .article-corps ol { padding-left: 1.3rem; display: grid; gap: .45rem; }
.article-corps .callout { margin: 1.4rem 0; padding: 1rem 1.2rem; border-radius: 14px; background: #ffffff08;
  border: 1px solid var(--trait); color: var(--texte-doux); }
.article-corps a { color: var(--tungstene); }
.article-corps .todo { background: #ffc48a26; padding: 0 .3rem; border-radius: 4px; }
.suite-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 3.5rem 0 1.5rem; }
.suite-guide a { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--trait);
  text-decoration: none; font-weight: 700; }
.suite-guide a:hover { border-color: #ffffff55; color: var(--lumiere); }
.suite-guide a span { font-weight: 400; font-size: .88rem; color: var(--rideau); }
.suite-guide .suivant { text-align: right; grid-column: 2; }

/* Page de choix de la langue (adresses neutres) */
.page-langue main { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 1.5rem; padding: 2rem; text-align: center; }
.page-langue img { width: 200px; }
.page-langue p:first-of-type { display: flex; gap: 1rem; }
.page-langue p:first-of-type a { padding: .8rem 1.4rem; border: 1px solid #ffffff45; border-radius: 999px; text-decoration: none; font-weight: 700; }

/* ---------- Pied de page ---------- */

.pied { border-top: 1px solid var(--trait); padding: 3.5rem 0 2.5rem; background: #050608; }
.pied-grille { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2.5rem; align-items: start; }
.pied-logo img { width: 130px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .5rem 2.5rem; }
.pied ul a { text-decoration: none; color: var(--texte-doux); }
.pied ul a:hover { color: var(--lumiere); }
.pied-contact { margin: 0; color: var(--rideau); text-align: right; }
.pied-contact a { color: var(--lumiere); font-weight: 700; }
.pied-mentions { margin: 2.5rem auto 0; color: var(--rideau); font-size: .88rem; }
@media (max-width: 760px) {
  .pied-grille { grid-template-columns: minmax(0, 1fr); }
  .pied-contact { text-align: left; }
}

/* ---------- Animations réduites ---------- */

@media (prefers-reduced-motion: reduce) {
  .couche, .scene-texte, canvas.poussiere { transform: none !important; }
  .faisceau, .js .scene:not(.allume) .faisceau { transform: rotate(var(--r)) scaleX(1); transition: opacity .2s, --c .2s; }
  .go-anim .onde { animation: none; }
  .marque .grand, .marque .petit, .fader .niveau::before, .fader .niveau::after, .maillons::after { transition: none; }
}

/* Sans JavaScript : les projecteurs restent allumés, sans animation. */
.nojs .faisceau, .nojs .projo, .nojs .flaque { --o: .35; }

/* ---------- Appareils : chaque capture dans un cadre générique ----------
   Règles d'Apple (App Store Marketing Guidelines) : pas de dessin ni de simulation d'un iPhone ou d'un iPad ;
   seul un appareil générique est permis, sans aucun détail propre aux produits Apple (Dynamic Island,
   boutons, caméra…). D'où un simple contour arrondi, aux proportions de l'écran capturé. Le bord clair
   dessine les limites de l'appareil sur le fond noir. */

.appareil { position: relative; margin: 0; container-type: inline-size; will-change: transform;
  filter: drop-shadow(0 30px 40px #000d); }
.appareil .coque { padding: var(--bord); border-radius: var(--r); background: #0b0c0f;
  box-shadow: inset 0 0 0 1.5px #c9ccd3, inset 0 0 0 3px #1d1f25, 0 0 0 1px #000; }
.appareil img { width: 100%; border-radius: var(--r-ecran); }
.appareil .ecran { border-radius: var(--r-ecran); }
.appareil.ipad { --bord: 3.4cqw; --r: 6cqw; --r-ecran: 3cqw; }
.appareil.iphone, .appareil.pixel { --bord: 3.6cqw; --r: 14cqw; --r-ecran: 11cqw; }

/* Badges officiels des stores : hauteur identique (40 px au moins), App Store en premier,
   marge libre d'un quart de la hauteur tout autour. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 1.5rem -12px 2.5rem; }
.badge { display: block; padding: 12px; line-height: 0; }
.badge img { height: 48px; width: auto; }
.sous-titre { font-size: 1.35rem; font-stretch: 112%; margin: 0 0 .5rem; }
.pied-legal { margin: .8rem auto 0; color: #6c707c; font-size: .78rem; }

.appareils { position: relative; width: min(100%, 27rem); margin-inline: auto; padding: 0 24% 12% 0; }
.appareils .iphone { position: absolute; right: 0; bottom: 0; width: 36%; }
.vitrine { overflow: hidden; }
@media (max-width: 860px) { .appareils { margin-top: 2.5rem; } .telephones { margin-top: 1rem; } }

.entete-mp { align-items: center; }
.entete-mp .icone-app { margin-bottom: 1.5rem; }
.telephones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9%; align-items: start;
  width: min(100%, 22rem); justify-self: center; }
.telephones .pixel { margin-top: 20%; }

.appareil-image figcaption { margin-top: .4rem; font-size: .9rem; color: var(--rideau); text-align: center; max-width: 26rem; }
.appareil-image img { width: min(100%, 30rem); filter: drop-shadow(0 30px 40px #000c); }
.appareil-image img.detail { width: min(70%, 20rem); margin-top: -2rem; }
.duo img { width: min(100%, 17rem); filter: drop-shadow(0 24px 30px #000c); }
