/* ==========================================================================
   Kaury Clean — site de présentation (clean.kaury.studio)
   Charte : celle de l'application et de sa présentation Behance.
   Orange Kaury en aplat, crème, brun très sombre ; Unbounded pour les titres,
   Manrope pour le texte, JetBrains Mono pour les chiffres.
   ========================================================================== */

:root {
  --orange: #F56E2E;
  --orange-2: #FF9A5C;
  --orange-3: #FFB27D;
  --orange-t: #A83E0D;          /* orange lisible sur crème */
  --cream: #F1E8CB;
  --cream-2: #FBF6E6;
  --ink: #1C1A1A;
  --bg: #140F0E;
  --brun: #231B18;
  --glass: rgba(241, 232, 203, 0.045);
  --glass-2: rgba(241, 232, 203, 0.08);
  --line: rgba(241, 232, 203, 0.10);
  --line-2: rgba(241, 232, 203, 0.18);
  --muted: #B3A994;
  --ok: #8FD6A8;
  --amber: #F2C14E;

  --display: "Unbounded", "Segoe UI Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, ui-monospace, monospace;

  --wrap: 1240px;
  --gut: clamp(1.1rem, 4vw, 3rem);
  --r: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); }

/* --- Boutons --------------------------------------------------------------- */
.btn {
  --h: 58px;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: var(--h); padding: 0 1.7rem; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 18px 40px -18px rgba(28, 26, 26, .8); }
.btn-ink:hover { background: #000; }
.btn-orange { background: var(--orange); color: var(--ink); box-shadow: 0 18px 44px -16px rgba(245, 110, 46, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-orange:hover { background: var(--orange-2); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-line:hover { background: rgba(241, 232, 203, .08); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-small { --h: 44px; padding: 0 1.2rem; font-size: .92rem; }
.btn-note { display: block; margin-top: .8rem; font: 500 .82rem/1.4 var(--mono); opacity: .8; }

/* --- Tuiles 3D de l'application (reprises de src/styles.css) ------------- */
.tile {
  --tile-ink: var(--ink);
  position: relative; width: 56px; height: 56px; flex: none; border-radius: 30%;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -5px 10px rgba(0,0,0,.18), 0 12px 22px -8px rgba(0,0,0,.6);
}
.tile::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); pointer-events: none; }
.tile svg { width: 54%; height: 54%; fill: var(--tile-ink); stroke: var(--tile-ink); position: relative; z-index: 1; }
.tile svg[fill="none"] { fill: none; }
.tile svg.k { width: 64%; height: 64%; fill: var(--cream); stroke: none; }
.tile.lg { width: 76px; height: 76px; border-radius: 26px; }
.tile.sm { width: 34px; height: 34px; }
.t-home, .t-about { background: linear-gradient(145deg, #FFB27D, #F56E2E 55%, #C94A17); }
.t-clean  { background: linear-gradient(145deg, #FFF8E3, #F1E8CB 50%, #CBB887); }
.t-perf   { background: linear-gradient(145deg, #FFE39A, #F2C14E 45%, #E0862A); }
.t-apps   { --tile-ink: var(--cream); background: linear-gradient(145deg, #FF9A5C, #E0531C 60%, #9C3310); }
.t-files  { background: linear-gradient(145deg, #FAEBC8, #EDBB8B 50%, #CF7743); }
.t-repair { --tile-ink: var(--cream); background: linear-gradient(145deg, #66554C, #3D302B 60%, #231B18); }

.tile3d {
  width: 220px; height: 220px; border-radius: 58px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #FFC49A 0%, #FF8A4C 30%, #F56E2E 60%, #B8410F 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -18px 30px rgba(120,30,0,.35), 0 40px 70px -20px rgba(245,110,46,.55), 0 30px 50px -25px rgba(0,0,0,.9);
  transform: perspective(700px) rotateX(10deg) rotateY(-14deg);
}
.tile3d::before { content: ""; position: absolute; inset: -40% 30% 45% -30%; background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent); transform: rotate(-20deg); }
.tile3d svg { width: 64%; height: 64%; position: relative; fill: var(--cream); filter: drop-shadow(0 10px 14px rgba(90,20,0,.45)); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* --- En-tête ---------------------------------------------------------------- */
.nav {
  position: fixed; inset: 14px 14px auto; z-index: 50; margin: 0 auto; max-width: calc(var(--wrap) + 40px);
  display: flex; align-items: center; gap: 1rem; padding: 10px 10px 10px 16px;
  border-radius: 999px; background: rgba(20, 15, 14, .72);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0,0,0,.8);
  transition: background-color .3s;
}
.marque { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 1.08rem/1 var(--display); letter-spacing: -.03em; }
.marque .tile { width: 34px; height: 34px; border-radius: 11px; }
.marque b { color: var(--orange); font-weight: 800; }
.nav-liens { display: flex; gap: .2rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-liens a { display: block; padding: .6rem .95rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .93rem; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-liens a:hover, .nav-liens a[aria-current="page"] { color: var(--cream); background: var(--glass-2); }
.nav-gh { display: inline-flex; align-items: center; gap: .45rem; }
.nav-gh svg { width: 17px; height: 17px; fill: currentColor; }
.nav-gh .compte { font: 500 .78rem/1 var(--mono); padding: .25rem .45rem; border-radius: 6px; background: var(--glass-2); color: var(--cream); }
.nav .btn { --h: 44px; padding: 0 1.15rem; font-size: .92rem; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--glass-2); color: var(--cream); cursor: pointer; }
.burger svg { width: 20px; height: 20px; stroke: currentColor; }

@media (max-width: 900px) {
  .nav-liens, .nav > .btn { display: none; }
  .burger { display: grid; place-items: center; }
  .nav.ouvert { flex-wrap: wrap; border-radius: 28px; }
  .nav.ouvert .nav-liens { display: flex; flex-direction: column; width: 100%; order: 3; margin: .4rem 0 0; }
  .nav.ouvert .nav-liens a { padding: .9rem 1rem; font-size: 1rem; }
  .nav.ouvert > .btn { display: inline-flex; order: 4; width: 100%; margin: .2rem 0 .3rem; }
}

/* --- Sections : trois ambiances, comme la présentation Behance ------------ */
.s { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.s-orange { background: var(--orange); color: var(--ink); }
.s-creme { background: var(--cream); color: var(--ink); }
.s-brun { background: radial-gradient(1200px 600px at 80% 0%, rgba(245,110,46,.16), transparent 60%), var(--bg); }
.s-creme .muted, .s-orange .muted { color: rgba(28, 26, 26, .72); }
.muted { color: var(--muted); }
.surtitre { display: inline-flex; align-items: center; gap: .6rem; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.3rem; }
.surtitre::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-orange .surtitre, .s-creme .surtitre { color: var(--orange-t); }
.s-orange .surtitre, .hero .surtitre { color: var(--ink); }
.titre { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 15ch; }
.titre em { font-style: normal; color: var(--orange); }
.s-orange .titre em { color: var(--cream); }
.chapo { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 56ch; margin-top: 1.4rem; }
.tete-section { margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.tete-section.centre { text-align: center; }
.tete-section.centre .titre, .tete-section.centre .chapo { margin-inline: auto; }

/* --- Héros ------------------------------------------------------------------ */
.hero { position: relative; overflow-x: clip; overflow-y: visible; z-index: 2; background: var(--orange); color: var(--ink); padding: clamp(8.5rem, 16vw, 11rem) 0 0; }
.hero-k { position: absolute; right: -8%; top: -4%; width: min(78vw, 980px); opacity: .13; pointer-events: none; fill: var(--cream); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(3.1rem, 9.6vw, 9.4rem); line-height: .9; letter-spacing: -.055em; }
.hero-grille { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem 3rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.hero-texte p { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 38ch; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-grille .hero-actions { margin-top: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.1rem; font: 500 .85rem/1.4 var(--mono); }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.hero-art { position: absolute; right: var(--gut); top: clamp(-1rem, 1vw, 1rem); }
.hero-art .tile3d { width: clamp(150px, 16vw, 230px); height: clamp(150px, 16vw, 230px); border-radius: clamp(40px, 4.2vw, 60px); }
.hero-art .ombre { width: 70%; height: 24px; margin: 18px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(28,26,26,.45), transparent); filter: blur(5px); animation: ombre 6s ease-in-out infinite; }
@keyframes ombre { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(.82); opacity: .6 } }

/* La fenêtre de l'app, en perspective, qui déborde sur la section suivante. */
.fenetre {
  position: relative; border-radius: 18px; overflow: hidden; background: #0e0a09;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 120px -40px rgba(0,0,0,.85), 0 30px 60px -30px rgba(90,25,0,.6);
}
.fenetre-barre { display: flex; align-items: center; gap: .6rem; height: 34px; padding: 0 14px; background: #1b1412; font: 600 .74rem/1 var(--body); color: var(--muted); }
.fenetre-barre .tile { width: 16px; height: 16px; border-radius: 5px; box-shadow: none; }
.fenetre-barre .tile svg { width: 70%; height: 70%; }
.fenetre-barre i { margin-left: auto; display: flex; gap: 14px; }
.fenetre-barre i::before, .fenetre-barre i::after { content: ""; width: 10px; height: 1.5px; background: var(--muted); }
.hero-fenetre { margin-top: clamp(3rem, 7vw, 5rem); position: relative; z-index: 2; perspective: 1800px; }
.hero-fenetre .fenetre { transform: rotateX(14deg) scale(.97); transform-origin: 50% 100%; transition: transform 1.2s var(--ease); margin-bottom: -18%; }
.hero-fenetre.vu .fenetre { transform: rotateX(0) scale(1); }
.hero + .s { padding-top: calc(clamp(5rem, 11vw, 9rem) + 16%); }

/* --- Bandeau de preuves ------------------------------------------------------ */
.preuves { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.preuve { background: var(--bg); padding: 1.7rem 1.4rem; }
.preuve b { display: block; font: 800 clamp(1.7rem, 3.2vw, 2.4rem)/1 var(--display); letter-spacing: -.04em; color: var(--cream); }
.preuve span { display: block; margin-top: .55rem; color: var(--muted); font-size: .93rem; line-height: 1.4; }
.preuve b em { font-style: normal; color: var(--orange); }

/* --- Parcours « un seul bouton » -------------------------------------------- */
.parcours { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; counter-reset: e; }
.etape button {
  width: 100%; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: start; text-align: left;
  padding: 1.15rem 1.25rem; border-radius: 20px; border: 0; background: transparent; color: var(--muted);
  font: inherit; cursor: pointer; position: relative; overflow: hidden; transition: background-color .3s, color .3s;
}
.etape button::before { counter-increment: e; content: counter(e, decimal-leading-zero); grid-row: span 2; font: 500 .85rem/1.9 var(--mono); color: var(--orange); }
.etape strong { font: 800 1.12rem/1.3 var(--display); letter-spacing: -.02em; color: var(--cream); opacity: .55; transition: opacity .3s; }
.etape span { font-size: .95rem; line-height: 1.5; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.etape button[aria-selected="true"] { background: var(--glass-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.etape button[aria-selected="true"] strong { opacity: 1; }
.etape button[aria-selected="true"] span { max-height: 6em; }
.etape .barre { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange); }
.etape button[aria-selected="true"] .barre { animation: barre var(--duree, 5s) linear forwards; }
.parcours.pause .etape .barre { animation-play-state: paused; }
@keyframes barre { to { width: 100% } }
.ecrans { position: relative; }
.ecrans .fenetre img { transition: opacity .6s var(--ease); }
.ecrans .fenetre img + img { position: absolute; left: 0; right: 0; bottom: 0; top: 34px; opacity: 0; }
.ecrans .fenetre img.on { opacity: 1; }
.ecrans .fenetre img:first-of-type:not(.on) { opacity: 0; }

/* --- Grille des six sections ------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.carte {
  position: relative; grid-column: span 2; border-radius: var(--r); padding: 1.8rem;
  background: linear-gradient(180deg, var(--glass-2), var(--glass)); box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden; display: flex; flex-direction: column; gap: 1rem; min-height: 280px;
  transition: transform .5s var(--ease), box-shadow .4s;
}
.carte:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0,0,0,.8); }
.carte.large { grid-column: span 3; }
.carte h3 { font-size: 1.4rem; letter-spacing: -.03em; }
.carte p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.carte ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.carte li { font: 500 .76rem/1 var(--mono); padding: .45rem .6rem; border-radius: 8px; background: var(--glass-2); color: var(--cream); }
.carte .tile { position: absolute; top: -12px; right: -12px; width: 108px; height: 108px; border-radius: 32px; transform: rotate(-10deg); transition: transform .6s var(--ease); }
.carte:hover .tile { transform: rotate(-4deg) scale(1.05); }
.carte .tile svg { width: 48%; height: 48%; }
.carte > *:not(.tile) { position: relative; max-width: calc(100% - 70px); }
.carte > ul, .carte > p { max-width: 100%; }
.carte .lien { margin-top: .4rem; font-weight: 700; color: var(--orange); text-decoration: none; }
.carte .lien:hover { text-decoration: underline; }

/* --- Principes --------------------------------------------------------------- */
.principes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principe { background: var(--cream-2); border-radius: 24px; padding: 1.8rem; box-shadow: 0 1px 0 rgba(28,26,26,.05), 0 20px 40px -30px rgba(90,60,20,.35); }
.principe::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-bottom: 1.2rem; }
.principe h3 { font-size: 1.16rem; letter-spacing: -.025em; line-height: 1.2; margin-bottom: .7rem; }
.principe p { color: rgba(28,26,26,.72); font-size: .97rem; line-height: 1.55; }

/* --- Comparaison ------------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare > div { border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); }
.compare .eux { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.compare .nous { background: linear-gradient(160deg, #FF8A4C, var(--orange) 45%, #D95417); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(245,110,46,.6); }
.compare h3 { font-size: 1.25rem; margin-bottom: 1.4rem; display: flex; align-items: center; gap: .7rem; }
.compare .nous h3 .tile { width: 38px; height: 38px; border-radius: 12px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.compare li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; font-size: 1rem; line-height: 1.45; }
.compare li::before { content: "✕"; font: 700 .9rem/1.6 var(--mono); color: #9C8A7C; }
.compare .nous li::before { content: "✓"; color: var(--ink); }
.compare .eux li { color: var(--muted); }

/* --- Captures détaillées (page Fonctionnalités) ----------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.detail + .detail { margin-top: clamp(5rem, 10vw, 8rem); }
.detail.inverse { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
.detail.inverse > :first-child { order: 2; }
.detail h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 1.1rem 0 1rem; }
.detail .liste { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .9rem; }
.detail .liste li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; color: var(--muted); line-height: 1.5; }
.detail .liste li::before { content: ""; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--orange); }
.detail .liste b { color: var(--cream); font-weight: 700; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Sécurité : la liste technique ------------------------------------------ */
.regles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.regle { background: var(--bg); padding: 1.7rem 1.7rem 1.8rem; }
.regle h3 { font: 800 1.02rem/1.3 var(--display); letter-spacing: -.02em; margin-bottom: .6rem; display: flex; align-items: center; gap: .7rem; }
.regle p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.encart { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--cream-2); color: var(--ink); }
.encart .mono { font-size: clamp(.8rem, 1.6vw, .95rem); background: var(--ink); color: var(--cream); padding: .9rem 1.1rem; border-radius: 14px; overflow-x: auto; white-space: nowrap; margin-top: 1rem; }
.encart > div { min-width: 0; }
.encart h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .6rem; }
.encart p { color: rgba(28,26,26,.75); }

/* --- Téléchargement ----------------------------------------------------------- */
.dl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dl-carte { background: var(--ink); color: var(--cream); border-radius: 32px; padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: 0 50px 100px -50px rgba(28,26,26,.9); }
.dl-carte .ligne { display: flex; align-items: center; gap: 1rem; }
.dl-carte h2 { font-size: 1.6rem; }
.dl-carte .version { font: 500 .85rem/1.4 var(--mono); color: var(--muted); margin-top: .3rem; }
.dl-carte .btn { width: 100%; margin-top: 1.8rem; --h: 64px; font-size: 1.05rem; }
.dl-carte dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.2rem; margin: 1.8rem 0 0; font-size: .92rem; }
.dl-carte dt { color: var(--muted); }
.dl-carte dd { margin: 0; font-family: var(--mono); font-size: .86rem; }
.pas-windows { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(242,193,78,.12); color: var(--amber); font-size: .9rem; line-height: 1.45; }
.install { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: i; }
.install > li { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; align-items: start; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); border-radius: 24px; padding: 1.5rem; }
.install > li::before { counter-increment: i; content: counter(i); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--orange); color: var(--ink); font: 800 1.4rem/1 var(--display); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.install h3 { font-size: 1.12rem; margin: .2rem 0 .5rem; letter-spacing: -.02em; }
.install p { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.install kbd { font: 600 .82em var(--body); padding: .15rem .5rem; border-radius: 6px; background: var(--glass-2); color: var(--cream); box-shadow: inset 0 -1px 0 rgba(0,0,0,.4); }

/* Maquette de l'avertissement SmartScreen : on montre exactement où cliquer. */
.smartscreen { margin-top: 1rem; max-width: 460px; border-radius: 10px; overflow: hidden; background: #0f6cbd; color: #fff; font: 400 .82rem/1.45 "Segoe UI", system-ui, sans-serif; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.smartscreen .corps { padding: 1.2rem 1.3rem .6rem; }
.smartscreen b { display: block; font-size: 1.15rem; font-weight: 600; margin-bottom: .6rem; }
.smartscreen .plus { display: inline-block; margin-top: .5rem; text-decoration: underline; position: relative; }
.smartscreen .pied { display: flex; justify-content: flex-end; gap: .5rem; padding: .7rem 1rem; background: #0b5a9e; }
.smartscreen .pied span { padding: .35rem 1rem; border: 1px solid rgba(255,255,255,.6); border-radius: 3px; }
.smartscreen .clic { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; animation: clic 1.6s ease-in-out infinite; }
@keyframes clic { 0%, 100% { outline-color: var(--orange) } 50% { outline-color: rgba(245,110,46,.25) } }

/* Historique des versions (lu sur GitHub) */
.versions { display: grid; gap: .8rem; }
.versions article { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); border-radius: 20px; padding: 1.3rem 1.5rem; }
.versions header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.versions h3 { font-size: 1.05rem; }
.versions time, .versions .mono { font-size: .8rem; color: var(--muted); }
.versions .badge { font: 700 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); background: var(--ok); padding: .3rem .5rem; border-radius: 6px; }
.versions .notes { margin-top: .7rem; color: var(--muted); font-size: .92rem; white-space: pre-line; }

/* --- FAQ ---------------------------------------------------------------------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(28,26,26,.14); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; font: 800 clamp(1.05rem, 2vw, 1.25rem)/1.3 var(--display); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream); font: 500 1.2rem/1 var(--mono); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.6rem; color: rgba(28,26,26,.75); max-width: 70ch; }
.faq details a { color: var(--orange-t); font-weight: 700; }

/* --- Soutenir ------------------------------------------------------------------ */
.soutien { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.geste {
  display: flex; flex-direction: column; gap: .8rem; padding: 1.7rem; border-radius: 24px; text-decoration: none;
  background: rgba(28,26,26,.08); box-shadow: inset 0 0 0 1.5px rgba(28,26,26,.18);
  transition: transform .4s var(--ease), background-color .3s, box-shadow .3s; cursor: pointer; font: inherit; color: inherit; text-align: left; border: 0;
}
.geste:hover { transform: translateY(-4px); background: var(--ink); color: var(--cream); box-shadow: 0 30px 60px -30px rgba(28,26,26,.8); }
.geste svg { width: 30px; height: 30px; fill: currentColor; }
.geste b { font: 800 1.12rem/1.2 var(--display); letter-spacing: -.02em; }
.geste span { font-size: .93rem; line-height: 1.45; opacity: .8; }
.geste .compte { font: 500 .78rem/1 var(--mono); margin-top: auto; opacity: .75; }

/* --- Appel final ----------------------------------------------------------- */
.final { text-align: center; }
.final .tile3d { width: 150px; height: 150px; border-radius: 42px; margin: 0 auto 2.6rem; }
.final h2 { font-size: clamp(2.6rem, 8vw, 6.4rem); letter-spacing: -.05em; max-width: 12ch; margin: 0 auto; }
.final .hero-actions { justify-content: center; }

/* --- Pied de page -------------------------------------------------------------- */
.pied { background: #0c0908; padding: 4rem 0 2.2rem; font-size: .93rem; color: var(--muted); }
.pied-grille { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.pied h2 { font: 700 .76rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin-bottom: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--cream); }
.pied .signature { margin-top: 1rem; max-width: 34ch; line-height: 1.55; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .84rem; }
.kaury { display: inline-flex; align-items: center; gap: .5rem; color: var(--cream); font-weight: 700; }
.kaury svg { width: 22px; height: 22px; }

/* --- Pages intérieures ----------------------------------------------------- */
.intro { padding: clamp(9rem, 17vw, 12rem) 0 clamp(4rem, 8vw, 6rem); position: relative; overflow: hidden; }
.intro h1 { font-size: clamp(2.6rem, 7.6vw, 6.2rem); line-height: .96; letter-spacing: -.05em; max-width: 12ch; }
.intro .chapo { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.intro .hero-k { opacity: .09; top: 10%; }
.intro.s-orange .hero-k { opacity: .13; }
.sommaire { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.sommaire a { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); }
.sommaire a:hover { background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.sommaire .tile { width: 28px; height: 28px; border-radius: 9px; }

/* --- Apparition au défilement ---------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.vu { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .hero-fenetre .fenetre { transform: none; }
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .soutien { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .parcours, .detail, .dl { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .detail.inverse { grid-template-columns: 1fr; }
  .detail.inverse > :first-child { order: 0; }
  .carte, .carte.large { grid-column: span 3; }
  .principes { grid-template-columns: 1fr 1fr; }
  .regles { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .carte, .carte.large { grid-column: 1 / -1; min-height: 0; }
  .principes, .soutien, .duo { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-fenetre .fenetre { margin-bottom: -10%; }
  .hero + .s { padding-top: calc(5rem + 10%); }
  .encart { grid-template-columns: 1fr; }
  .install > li { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .etape span { max-height: none; }
}
