/* Site vitrine CreepGames — surcouche « jeu vidéo » posée sur creep-ds.
   Repris de la maquette mockups/site-vitrine/assets/style.css ; les ajouts du
   site servi par le serveur sont regroupés en fin de fichier.
   Chargé APRÈS tokens.css (copie de creep-ds) : on redéfinit les
   tokens --cs-* du kit avec la palette du monde de CreepGames Factory
   (web/src/render/palette.ts : jaune foreuse, cuivre, fer, lueur de four, sol
   de planète) et on ajoute les tokens propres au site en --cg-*.
   Les composants creep-ds (Button, Modal, Switch, Toast, KeyValue) prennent
   ainsi l'identité du site sans être réécrits. Sombre par défaut. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-700.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 100 900; font-display: swap; src: url(fonts/big-shoulders-display.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Stencil Display"; font-weight: 800; font-display: swap; src: url(fonts/big-shoulders-stencil-800.woff2) format("woff2"); }

[data-theme=dark],
:root:not([data-theme]) {
  --cs-bg: #161a20;
  --cg-bg-deep: #0f1216;
  --cs-surface: #1f252d;
  --cs-surface-2: #29313b;
  --cs-border-strong: #36404c;
  --cs-text: #ece7dc;
  --cs-text-2: #aab2bc;
  --cs-muted: #76818d;
  --cg-hazard: #e3b23c;
  --cg-hazard-ink: #1d1605;
  --cg-copper: #d9854a;
  --cg-iron: #9fb3c6;
  --cg-glow: #ff8a2a;
  --cg-ground: #2a2c26;
  --cg-ground-2: #33362e;
  --cg-coal: #2b2b30;
  --cs-success: #6fcf8e;
  --cg-focus: #ffd36b;
  --cs-shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --cs-border: #2e3742;
  --cs-surface-hover: #262d36;
  --cs-sunken: #12161b;
  --cs-accent: #d9854a;
  --cs-accent-hover: #e39661;
  --cs-accent-soft: color-mix(in srgb, #d9854a 18%, transparent);
  --cs-accent-text: #e8a06c;
  --cs-accent-solid: #a8501c;
  --cs-accent-solid-hover: #933f10;
  color-scheme: dark;
}

[data-theme=light] {
  --cs-bg: #dfe3e6;
  --cg-bg-deep: #cfd5da;
  --cs-surface: #eef0f2;
  --cs-surface-2: #d6dbdf;
  --cs-border-strong: #b3bbc2;
  --cs-text: #19212a;
  --cs-text-2: #414c58;
  --cs-muted: #66717c;
  --cg-hazard: #e3b23c;
  --cg-hazard-ink: #1d1605;
  --cg-copper: #a4501d;
  --cg-iron: #46607a;
  --cg-glow: #d9661a;
  --cg-ground: #9aa08c;
  --cg-ground-2: #a8ae99;
  --cg-coal: #3a3a40;
  --cs-success: #1f7a43;
  --cg-focus: #1b5fb3;
  --cs-shadow-lg: 0 18px 40px -22px rgba(25, 33, 42, .45);
  --cs-border: #c5ccd2;
  --cs-surface-hover: #e4e8eb;
  --cs-sunken: #d3d9dd;
  --cs-accent: #a4501d;
  --cs-accent-hover: #8e4214;
  --cs-accent-soft: color-mix(in srgb, #a4501d 14%, transparent);
  --cs-accent-text: #8e4214;
  --cs-accent-solid: #a4501d;
  --cs-accent-solid-hover: #8e4214;
  color-scheme: light;
}

:root {
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --cs-font: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(3rem, 9vw, 6.5rem);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --r-s: 4px;
  --r-m: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cs-bg);
  color: var(--cs-text);
  font-family: var(--cs-font);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 66ch; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: .005em;
  margin: 0;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
:focus-visible { outline: 3px solid var(--cg-focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--cg-hazard); color: var(--cg-hazard-ink); padding: 8px 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cs-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cs-border-strong);
}
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand {
  font-family: var(--font-stencil); font-weight: 800; font-size: 1.75rem;
  text-decoration: none; letter-spacing: .01em; display: flex; align-items: center; gap: 10px;
}
.brand__mark { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--cs-text-2); padding: 8px 12px; border-radius: var(--r-s);
  font-weight: 700;
}
.nav a:hover { color: var(--cs-text); background: var(--cs-surface); }
.nav a[aria-current=page] { color: var(--cs-text); box-shadow: inset 0 -3px 0 var(--cg-hazard); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--cs-border-strong); background: var(--cs-surface); color: var(--cs-text);
  border-radius: var(--r-s); cursor: pointer;
}
.icon-btn:hover { background: var(--cs-surface-2); }
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn { display: inline-grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; padding: 8px var(--gutter) 16px;
    background: var(--cs-bg); border-bottom: 1px solid var(--cs-border-strong);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .site-header__bar { gap: 8px; }
  .theme-btn { margin-left: auto; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-s);
  font-family: var(--cs-font); font-weight: 700; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn--play {
  background: var(--cg-hazard); color: var(--cg-hazard-ink);
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .02em;
  min-height: 60px; padding: 0 30px;
  box-shadow: 0 0 0 2px var(--cg-hazard-ink) inset, 6px 6px 0 0 var(--cg-copper);
}
.btn--play:hover { transform: translate(-1px, -1px); box-shadow: 0 0 0 2px var(--cg-hazard-ink) inset, 8px 8px 0 0 var(--cg-copper); }
.btn--play:active { transform: translate(3px, 3px); box-shadow: 0 0 0 2px var(--cg-hazard-ink) inset, 2px 2px 0 0 var(--cg-copper); }
.btn--line { border-color: var(--cs-border-strong); color: var(--cs-text); background: transparent; }
.btn--line:hover { border-color: var(--cs-text-2); background: var(--cs-surface); }
.btn--sm-play { background: var(--cg-hazard); color: var(--cg-hazard-ink); }
.btn--sm-play:hover { filter: brightness(1.08); }

/* ---------- Pastilles d'état ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--step--1); font-weight: 700; padding: 3px 10px;
  border-radius: 999px; border: 1px solid var(--cs-border-strong); color: var(--cs-text-2);
  white-space: nowrap;
}
.tag--alpha { border-color: var(--cg-hazard); color: var(--cs-text); }
.tag--alpha::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cg-hazard); }
.tag--wip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cg-copper); }
.tag--plan::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--cs-muted); }
.tag--done::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cs-success); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Tapis roulant (signature) ---------- */
.belt {
  --belt-h: 56px;
  position: relative; height: var(--belt-h); overflow: hidden;
  background: #2f343b;
  border-top: 4px solid #9a8636; border-bottom: 4px solid #9a8636;
}
.belt__chevrons {
  position: absolute; inset: 0 -64px 0 0;
  background: repeating-linear-gradient(90deg, transparent 0 20px, #4b535d 20px 24px, transparent 24px 32px);
  mask: linear-gradient(0deg, transparent 18%, #000 18% 82%, transparent 82%);
  animation: belt-run 1.2s linear infinite;
}
.belt__track { position: absolute; inset: 0; display: flex; align-items: center; gap: 0; width: max-content; animation: items-run 28s linear infinite; }
.belt__item { width: 30px; height: 30px; margin-right: 58px; flex: none; }
@keyframes belt-run { to { transform: translateX(32px); } }
@keyframes items-run { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .belt__chevrons, .belt__track { animation: none; }
}

/* ---------- Accueil ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 0; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero__title { font-size: var(--step-4); text-transform: none; }
.hero__title span { display: block; }
.hero__lede { font-size: var(--step-1); color: var(--cs-text-2); margin: 24px 0 32px; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__plate {
  border: 1px solid var(--cs-border-strong); background: var(--cs-surface); border-radius: var(--r-m);
  padding: 18px 20px; box-shadow: var(--cs-shadow-lg);
}
.hero__plate dt { color: var(--cs-muted); font-size: var(--step--1); }
.hero__plate dd { margin: 0 0 12px; font-weight: 700; }
.hero__plate dd:last-child { margin-bottom: 0; }
.hero__belt { margin-top: clamp(40px, 7vw, 80px); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--cs-border-strong); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section__head p { color: var(--cs-text-2); margin: 10px 0 0; }

.game-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  border: 1px solid var(--cs-border-strong); background: var(--cs-surface); border-radius: var(--r-m);
  overflow: hidden; box-shadow: var(--cs-shadow-lg);
}
.game-card__art { position: relative; min-height: 300px; background: var(--cg-ground); }
.game-card__art svg { width: 100%; height: 100%; object-fit: cover; }
.game-card__body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.game-card__title { font-size: 3.5rem; }
.game-card__title a { text-decoration: none; }
.game-card__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.game-card__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--cs-text-2); }
.game-card__facts strong { color: var(--cs-text); }
.game-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
@media (max-width: 820px) { .game-card { grid-template-columns: 1fr; } .game-card__art { min-height: 220px; } }

.slot-empty {
  margin-top: 20px; border: 2px dashed var(--cs-border-strong); border-radius: var(--r-m);
  padding: 18px 20px; color: var(--cs-muted); display: flex; gap: 14px; align-items: center;
}

.workbench { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; }
.workbench li {
  border-top: 4px solid var(--cs-border-strong); padding: 18px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.workbench li[data-state=wip] { border-top-color: var(--cg-copper); }
.workbench li[data-state=done] { border-top-color: var(--cs-success); }
.workbench h3 { font-size: var(--step-2); }
.workbench p { color: var(--cs-text-2); margin: 0; }
.workbench__meta { color: var(--cs-muted); font-size: var(--step--1); }
@media (max-width: 860px) { .workbench { grid-auto-flow: row; } }

/* ---------- Jeu à venir (carte « Bientôt », page teaser) ---------- */
.tag--soon { border-style: dashed; border-color: var(--cg-hazard); color: var(--cs-text); }
.tag--soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--cg-hazard); }
.game-card--soon { border-style: dashed; box-shadow: none; background: transparent; }
.game-card--soon .game-card__art { min-height: 240px; }
.game-card--soon .game-card__art img { filter: saturate(.55); opacity: .85; }
.game-card--soon .game-card__title { font-size: 2.75rem; }
.title-note { color: var(--cs-muted); font-size: var(--step--1); font-weight: 700; letter-spacing: .02em; }
.game-card__title + .title-note { margin-top: -10px; }
.game-hero__title + .title-note { display: block; margin-top: 10px; }
.teaser-art { border-style: dashed; }
.teaser-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.follow > * { max-width: 68ch; }
.follow p { color: var(--cs-text-2); }
.follow__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 20px; }
.follow__actions a:not(.btn) { color: var(--cs-text-2); font-weight: 700; text-underline-offset: 4px; }
.workbench__link { font-weight: 700; color: var(--cs-text); text-underline-offset: 4px; }

/* ---------- Jeu d'un éditeur partenaire (« Un jeu WindKair »), lien de jeu externe ---------- */
.tag--editeur { border-color: var(--cs-text-2); color: var(--cs-text); background: var(--cs-surface); }
.tag--editeur::before { content: ""; width: 10px; height: 4px; border-top: 2px solid var(--cg-copper); border-bottom: 2px solid var(--cg-copper); }
.btn__ext { flex: none; }
.play-note { margin: 0; color: var(--cs-muted); font-size: var(--step--1); font-weight: 700; }
.game-card__actions + .play-note { margin-top: -6px; }
/* Jeu maison sans build en ligne : mention à la place du bouton Jouer. */
.play-soon { align-self: center; color: var(--cs-muted); font-size: var(--step--1); font-weight: 700; }
.game-card__media { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.game-card__media .game-card__art { flex: 1; }
.game-card__credit { margin: 0; padding: 6px 12px; font-size: .8125rem; line-height: 1.4; color: var(--cs-text-2); background: var(--cs-surface-2); border-top: 1px solid var(--cs-border-strong); }
.game-hero__actions + .play-note { margin-top: 14px; }
.where-to-play > p { color: var(--cs-text-2); max-width: 62ch; }
.where-to-play .game-hero__actions { margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--cg-bg-deep); border-top: 1px solid var(--cs-border-strong); padding: 48px 0 32px; color: var(--cs-text-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: var(--step-1); color: var(--cs-text); margin-bottom: 12px; font-family: var(--cs-font); font-weight: 700; line-height: 1.3; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cs-text); text-decoration: underline; }
.site-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--cs-border-strong); font-size: var(--step--1); color: var(--cs-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

/* ---------- Fiche jeu ---------- */
.crumbs { padding-top: 20px; font-size: var(--step--1); color: var(--cs-muted); }
.crumbs a { color: var(--cs-text-2); }
.game-hero { padding-top: 24px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
.game-hero__title { font-family: var(--font-stencil); font-size: clamp(4rem, 12vw, 8.5rem); line-height: .85; }
.game-hero__pitch { font-size: var(--step-1); color: var(--cs-text-2); margin: 20px 0 28px; }
.game-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.game-hero__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; }
.game-hero__links a { color: var(--cs-text-2); font-weight: 700; text-underline-offset: 4px; }
.game-hero__links a:hover { color: var(--cs-text); }
@media (max-width: 900px) { .game-hero { grid-template-columns: 1fr; } }

.gallery__main { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--cs-border-strong); aspect-ratio: 16 / 10; background: var(--cg-ground); }
.gallery__main svg { width: 100%; height: 100%; }
.gallery__caption { color: var(--cs-muted); font-size: var(--step--1); margin: 10px 0 12px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery__thumb {
  padding: 0; border: 2px solid var(--cs-border-strong); border-radius: var(--r-s); overflow: hidden;
  cursor: pointer; aspect-ratio: 16 / 10; background: var(--cg-ground);
}
.gallery__thumb svg { width: 100%; height: 100%; }
.gallery__thumb[aria-pressed=true] { border-color: var(--cg-hazard); }

.panel { border: 1px solid var(--cs-border-strong); background: var(--cs-surface); border-radius: var(--r-m); padding: 22px; }
.panel h2 { font-size: var(--step-2); margin-bottom: 16px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.machines { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.machines li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 14px; background: var(--cs-surface); border: 1px solid var(--cs-border-strong); border-radius: var(--r-m); }
.machines svg { width: 52px; height: 52px; border-radius: var(--r-s); background: var(--cg-ground); }
.machines strong { display: block; }
.machines span { color: var(--cs-text-2); font-size: var(--step--1); line-height: 1.45; display: block; }

.roadmap { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.roadmap li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--cs-border-strong); }
.roadmap li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--cs-muted); line-height: 1; }
.roadmap strong { display: block; }
.roadmap span { color: var(--cs-text-2); font-size: var(--step--1); }
@media (max-width: 520px) { .roadmap li { grid-template-columns: 40px 1fr; } .roadmap .tag { grid-column: 2; justify-self: start; } }

.keys { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; align-items: center; margin: 0; }
.keys dd { margin: 0; color: var(--cs-text-2); }
kbd {
  font-family: var(--cs-font); font-weight: 700; font-size: var(--step--1);
  display: inline-block; min-width: 30px; text-align: center; padding: 3px 8px;
  border: 1px solid var(--cs-border-strong); border-bottom-width: 3px; border-radius: var(--r-s); background: var(--cs-surface-2); color: var(--cs-text);
}

/* ---------- À propos ---------- */
.prose { padding-top: 32px; padding-bottom: 80px; }
.prose > * { max-width: 68ch; }
.prose h1 { font-size: var(--step-4); margin-bottom: 28px; }
.prose h2 { font-size: var(--step-2); margin: 40px 0 12px; }
.prose p { color: var(--cs-text-2); }
.prose p.lead { font-size: var(--step-1); color: var(--cs-text); }

.cs-toast-stack { z-index: 200; }

/* ---------- Formulaire de contact ---------- */
.contact-form { display: grid; gap: 18px; max-width: 560px; margin-top: 24px; }
.contact-done { margin-top: 24px; }
.panel .cs-kv { font-size: var(--step-0); }
.panel .cs-kv__k { font-size: var(--step--1); }
.panel .cs-kv__v { font-weight: 700; }
.todo { background: var(--cs-accent-soft); color: var(--cs-accent-text); padding: 0 6px; border-radius: var(--r-s); font-weight: 700; }
.prose ul { color: var(--cs-text-2); padding-left: 1.2em; max-width: 66ch; }
.prose li { margin-bottom: 6px; }
.workbench .tag { align-self: flex-start; }

/* =====================================================================
   Adaptations du site servi (hors maquette)
   - CSP stricte : aucun attribut style="", d'où les classes utilitaires ;
   - rendu serveur : illustrations en <img> plutôt qu'en SVG en ligne ;
   - sans JavaScript : navigation visible, réglages cookies par une page,
     boutons purement JS masqués tant que site.js ne les a pas révélés.
   ===================================================================== */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 14px; }
.mt-l { margin-top: 18px; }
.m-0 { margin: 0; }

.game-card__art img, .gallery__main img, .gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb { display: block; }
.gallery__thumb[aria-current=true] { border-color: var(--cg-hazard); }
.machines img { width: 52px; height: 52px; border-radius: var(--r-s); background: var(--cg-ground); }

html:not(.js) .js-only { display: none; }
.theme-btn .ic-lune, [data-theme=light] .theme-btn .ic-soleil { display: none; }
[data-theme=light] .theme-btn .ic-lune { display: block; }
.menu-btn .ic-fermer, .menu-btn[aria-expanded=true] .ic-menu { display: none; }
.menu-btn[aria-expanded=true] .ic-fermer { display: block; }
@media (max-width: 720px) {
  html:not(.js) .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; border: 0; background: none; margin-left: auto; }
  html:not(.js) .nav a { padding: 8px; }
}

a.cs-btn { text-decoration: none; }
/* Lien « Gérer les cookies » du pied de page (classe posée par le contexte
   global, main.rs), comme dans la maquette. */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--cs-text); text-decoration: underline; }

/* Formulaire de contact (rendu serveur, creep-contact). */
.contact-form .cs-field { margin-bottom: 0; }
.contact-form__alerte { margin: 0; padding: 12px 14px; border: 1px solid var(--cs-danger); border-radius: var(--r-s); color: var(--cs-danger-text); }
.contact-form__mention { margin: 0; font-size: var(--step--1); color: var(--cs-muted); }

/* Consentement : balisage du kit creep-site (bandeau inclus par son
   squelette, panneau de préférences sur GET /consentement, lien « Gérer les
   cookies » du pied de page). Les classes creep-ds y sont posées par le
   contexte global (main.rs) : `cs-btn` sur les boutons, interrupteur
   `cs-switch` (label) / `__input` / `__track` / `__thumb`, stylé par
   tokens.css ; ne reste ici que la mise en place. `body` devant : kit.css
   (chargé après style.css) fixe le bandeau bord à bord, en z-index 1000. */
body .creep-consentement {
  z-index: 90; left: 16px; right: 16px; bottom: 16px;
  margin: 0 auto; max-width: 760px;
  padding: 18px 20px; background: var(--cs-surface); color: var(--cs-text);
  border: 1px solid var(--cs-border-strong); border-radius: var(--r-m); box-shadow: var(--cs-shadow-lg);
  border-top: 4px solid transparent;
  border-image: repeating-linear-gradient(135deg, var(--cg-hazard) 0 12px, var(--cg-hazard-ink) 12px 24px) 4 0 0 0;
}
.creep-consentement > form { display: grid; grid-template-columns: 1fr auto auto; gap: 0 8px; align-items: center; }
.creep-consentement > form > p { grid-column: 1; grid-row: 1; margin: 0 16px 0 0; font-size: var(--step--1); color: var(--cs-text-2); }
.creep-consentement > form > .creep-consentement__en-savoir-plus { grid-row: 2; }
.creep-consentement > form > button { grid-row: 1 / span 2; }
.creep-consentement__en-savoir-plus a, .creep-preferences-consentement__en-savoir-plus a { color: var(--cs-text); }
.cg-consent__parametrer { display: inline-block; margin-top: 10px; cursor: pointer; font-size: var(--step--1); color: var(--cs-text-2); }
.cg-consent__parametrer:hover { color: var(--cs-text); }
.creep-consentement__panneau { display: grid; gap: 16px; justify-items: start; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--cs-border); }
@media (max-width: 520px) {
  .creep-consentement > form { grid-template-columns: 1fr 1fr; }
  .creep-consentement > form > p { grid-column: 1 / -1; margin-right: 0; }
  .creep-consentement > form > button { grid-row: 3; margin-top: 12px; }
}
/* Sur la page du panneau, le bandeau ferait doublon (même choix). */
body:has(.creep-preferences-consentement) .creep-consentement { display: none; }

/* Page du panneau : titre et panneau alignés sur .wrap, panneau en carte. */
#main > h1, #main > .creep-preferences-consentement {
  margin-left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  margin-right: var(--gutter);
}
#main > h1 { font-size: var(--step-4); padding-top: 32px; margin-bottom: 28px; }
.creep-preferences-consentement {
  display: grid; gap: 16px; max-width: 560px; margin-bottom: 80px; padding: 22px;
  border: 1px solid var(--cs-border-strong); background: var(--cs-surface); border-radius: var(--r-m);
}
.creep-preferences-consentement > p { margin: 0; color: var(--cs-text-2); }
.creep-preferences-consentement__rapide { display: flex; flex-wrap: wrap; gap: 8px; }
.creep-preferences-consentement__panneau { display: grid; gap: 16px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--cs-border); }
@media (max-width: 520px) { .creep-preferences-consentement__rapide .cs-btn, .creep-preferences-consentement__panneau .cs-btn { flex: 1 1 100%; justify-self: stretch; } }

/* Interrupteur creep-ds (`cs-switch`) mis en grille : piste à gauche,
   libellé puis description à droite. */
.creep-consentement__panneau .cs-switch, .creep-preferences-consentement__panneau .cs-switch {
  position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: start; line-height: 1.35;
}
.creep-preferences-consentement__panneau .creep-preferences-consentement__necessaires { cursor: not-allowed; color: var(--cs-muted); }
.creep-preferences-consentement__description { grid-column: 2; font-size: 11.5px; color: var(--cs-muted); }
.creep-consentement__panneau .cs-switch__track, .creep-preferences-consentement__panneau .cs-switch__track { grid-row: 1 / span 2; }
/* creep-ds n'arrête pas l'animation de l'interrupteur en mouvement réduit. */
@media (prefers-reduced-motion: reduce) { .cs-switch__track, .cs-switch__thumb { transition: none; } }
