/* MRT Center — feuille de style principale
   Concept : atelier d'ingénierie pour enfants. Fond « papier calque » bleuté,
   grille de plan technique, bleu du robot + orange signal du logo. */

:root {
  --paper: #f3f7fc;
  --surface: #ffffff;
  --ink: #0f2340;
  --muted: #55667f;
  --line: #d5e0ee;
  --grid: rgba(27, 127, 209, .10);
  --robot: #1b7fd1;
  --robot-soft: #e3f0fb;
  --signal: #ef6a1f;
  --signal-ink: #ffffff;
  --navy: #0d1e38;
  --navy-ink: #e8f0fa;
  --lv1: #7b5ea7;
  --lv2: #1b7fd1;
  --lv3: #d0423b;
  --lv4: #7b5ea7;
  --lv5: #3e9b2f;
  --shadow: 0 10px 30px -12px rgba(15, 35, 64, .25);
  --logo-bg: transparent;
  --wa: #128c4a;
  --wa-ink: #ffffff;

  --f-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem);

  --radius: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1424;
    --surface: #111f36;
    --ink: #e6eef8;
    --muted: #9fb1c8;
    --line: #22344f;
    --grid: rgba(95, 176, 245, .09);
    --robot: #5fb0f5;
    --robot-soft: #15304f;
    --signal: #ff8240;
    --signal-ink: #1a0c03;
    --navy: #060e1b;
    --navy-ink: #e8f0fa;
    --lv1: #b39ae0;
    --lv2: #5fb0f5;
    --lv3: #f07a72;
    --lv4: #b39ae0;
    --lv5: #79cc6a;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --logo-bg: #f3f7fc;
    --wa: #2bb565;
    --wa-ink: #04140a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1424;
  --surface: #111f36;
  --ink: #e6eef8;
  --muted: #9fb1c8;
  --line: #22344f;
  --grid: rgba(95, 176, 245, .09);
  --robot: #5fb0f5;
  --robot-soft: #15304f;
  --signal: #ff8240;
  --signal-ink: #1a0c03;
  --navy: #060e1b;
  --navy-ink: #e8f0fa;
  --lv1: #b39ae0;
  --lv2: #5fb0f5;
  --lv3: #f07a72;
  --lv4: #b39ae0;
  --lv5: #79cc6a;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --logo-bg: #f3f7fc;
  --wa: #2bb565;
  --wa-ink: #04140a;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--robot); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
sup { line-height: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--signal-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 680px; }
.section-title { font-size: var(--step-3); font-weight: 700; }
.section-intro, .lead { color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--signal);
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .02em;
  padding: 13px 22px; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-signal { background: var(--signal); color: var(--signal-ink); box-shadow: 0 6px 18px -8px var(--signal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--robot); color: var(--robot); }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 6px 18px -8px var(--wa); }
.wa-ico { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wa-ico path + path { fill: currentColor; stroke: none; }
.wa-note { text-align: center; margin-top: -6px; }
.wa-fallback { font-size: .92rem; color: var(--muted); text-align: center; }
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink); text-decoration: none; font-family: var(--f-display); font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .15s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float .wa-ico { width: 24px; height: 24px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 74px; width: auto; max-width: 100%; border-radius: 8px; padding: 2px 6px; background: var(--logo-bg); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font-family: var(--f-display); font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:not(.btn):hover { color: var(--robot); background: var(--robot-soft); }
.nav-cta { margin-left: 8px; padding: 10px 18px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span:not(.sr) { width: 20px; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
}
@media (max-width: 420px) { .brand-logo { height: 62px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); font-weight: 700; }
.hero h1 .hl { color: var(--robot); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 0;
  border-top: 1px solid var(--line); padding-top: 18px; gap: 12px;
}
.facts div { display: grid; gap: 2px; }
.facts dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 700; font-variant-numeric: tabular-nums; }

.hero-visual { min-width: 0; }
.blueprint {
  position: relative; aspect-ratio: 1; max-width: 480px; margin-inline: auto;
  border: 1.5px dashed color-mix(in srgb, var(--robot) 55%, transparent); border-radius: 50%;
  display: grid; place-items: center;
}
.blueprint::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle, var(--robot-soft) 0 62%, transparent 63%);
}
.mascot { position: relative; width: 82%; height: auto; animation: hover 5s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(15, 35, 64, .18)); }
.dim {
  position: absolute; font-family: var(--f-mono); font-size: .72rem; color: var(--robot);
  background: var(--paper); padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--robot) 40%, transparent); border-radius: 4px;
}
.dim-h { top: 4%; left: 0; }
.dim-v { bottom: 6%; right: 0; }
@keyframes hover { 50% { transform: translateY(-12px) rotate(-1.5deg); } }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 300px; margin-inline: auto; width: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pillars ---------- */
.pillars { background: var(--surface); border-block: 1px solid var(--line); }
.pillars .section-title { font-size: var(--step-2); margin-bottom: 32px; max-width: 20ch; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.pillar { display: grid; gap: 10px; align-content: start; }
.pillar svg { width: 44px; height: 44px; fill: none; stroke: var(--robot); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: var(--step-1); }
.pillar p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Programmes ---------- */
.age-picker {
  display: grid; gap: 10px; max-width: 640px; margin-bottom: 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 30px;
}
.age-picker label { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.age-picker output { color: var(--signal); font-variant-numeric: tabular-nums; }
#age-range { width: 100%; accent-color: var(--signal); height: 28px; cursor: pointer; }
.ruler { position: relative; height: 14px; margin-inline: 10px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.ruler span { position: absolute; left: calc(var(--p) * 1%); transform: translateX(-50%); }
.ruler span::before { content: ""; position: absolute; left: 50%; top: -8px; height: 6px; width: 1px; background: var(--muted); }

.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: lv; }
.level {
  position: relative; display: grid; gap: 14px; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 24px; border-top: 5px solid var(--c);
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.level-head { display: grid; gap: 6px; }
.level-age { font-family: var(--f-mono); font-size: .78rem; font-weight: 700; color: var(--c); letter-spacing: .04em; }
.level h3 { font-size: 1.35rem; }
.level > p { color: var(--muted); font-size: .95rem; }
.kits { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.kits li { font-family: var(--f-display); font-weight: 600; font-size: .98rem; padding-left: 18px; position: relative; }
.kits li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.levels.filtering .level { opacity: .5; }
.levels.filtering .level.match { opacity: 1; transform: translateY(-6px); box-shadow: var(--shadow); }
@media (max-width: 1080px) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .levels { grid-template-columns: 1fr; } }

/* ---------- Horaires ---------- */
.horaires { background: var(--surface); border-block: 1px solid var(--line); }
.status {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
  background: var(--robot-soft); color: var(--ink); border-radius: 999px; padding: 8px 16px; width: fit-content;
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.open::before { background: #2fa84f; box-shadow: 0 0 0 4px rgba(47, 168, 79, .2); }

.timetable { display: grid; gap: 8px; --start: 9; --span: 10; }
.tt-row, .tt-axis { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 14px; }
.tt-day { font-family: var(--f-display); font-weight: 600; }
.tt-track {
  position: relative; height: 44px; border-radius: 8px; background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%), var(--paper);
}
.tt-scale { height: 20px; background: none; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.tt-scale span { position: absolute; left: calc((var(--h) - var(--start)) / var(--span) * 100%); transform: translateX(-50%); }
.tt-scale span:first-child { transform: none; }
.tt-scale span:last-child { transform: translateX(-100%); }
.slot {
  position: absolute; top: 5px; bottom: 5px;
  left: calc((var(--s) - var(--start)) / var(--span) * 100%);
  width: calc((var(--e) - var(--s)) / var(--span) * 100%);
  background: var(--robot); color: #fff; border-radius: 6px;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden;
}
:root[data-theme="dark"] .slot { color: #06121f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slot { color: #06121f; } }
.tt-row.today .tt-day { color: var(--signal); }
.tt-row.today .tt-day::after { content: " · aujourd'hui"; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; display: block; }
.tt-row.today .slot { background: var(--signal); color: var(--signal-ink); }
.now-line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); left: calc((var(--n) - var(--start)) / var(--span) * 100%); }
.admin-hours {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
  padding: 16px 20px; border-left: 4px solid var(--signal); background: var(--paper); border-radius: 0 8px 8px 0;
}
.admin-hours strong { font-family: var(--f-display); font-size: 1.1rem; }
@media (max-width: 560px) {
  .tt-row, .tt-axis { grid-template-columns: 74px minmax(0, 1fr); gap: 8px; }
  .tt-day { font-size: .9rem; }
  .slot { font-size: 0; }
  .slot::after { content: attr(data-short); font-size: .66rem; }
}

/* ---------- Compétitions ---------- */
.competitions { background: var(--navy); color: var(--navy-ink); }
.competitions .section-title { font-size: var(--step-2); }
.eyebrow-light { color: var(--signal); }
.comp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.comp-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.comp-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.comp-copy { display: grid; gap: 18px; min-width: 0; }
.comp-copy p { color: color-mix(in srgb, var(--navy-ink) 80%, transparent); }
.comp-copy strong { color: var(--navy-ink); }
.comp-meta { display: grid; gap: 0; margin: 0; border-top: 1px solid rgba(232, 240, 250, .18); }
.comp-meta div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(232, 240, 250, .18); }
.comp-meta dt { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(232, 240, 250, .6); padding-top: 3px; }
.comp-meta dd { margin: 0; font-family: var(--f-display); font-weight: 600; }
.videos { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.video-card { margin: 0; display: grid; gap: 10px; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); object-fit: cover; }
.video-card figcaption { font-size: .92rem; color: rgba(232, 240, 250, .7); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.video-card figcaption strong { color: var(--navy-ink); font-family: var(--f-display); }
@media (max-width: 820px) { .comp-grid, .videos { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.g-item { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 170px; } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 8px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 12, 24, .92);
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 8px; padding: 24px 12px;
}
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; min-width: 0; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 6px; }
.lightbox figcaption { color: #dfe8f3; font-size: .95rem; text-align: center; }
.lb-btn { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }

/* ---------- Actualité ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.news-grid img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: auto; }
.news-grid > div { display: grid; gap: 16px; justify-items: start; }
.news .section-title { font-size: var(--step-2); }
@media (max-width: 720px) { .news-grid { grid-template-columns: 1fr; } .news-grid img { max-width: 360px; } }

/* ---------- Inscription ---------- */
.inscription { background: var(--surface); border-block: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.form-aside .section-title { font-size: var(--step-2); }
.form-aside p { color: var(--muted); }
.form-mascot { width: 180px; height: auto; margin-top: 8px; }
.form { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row:has(.field-sm) { grid-template-columns: minmax(0, 1fr) 110px; }
.field label, .field legend { font-family: var(--f-display); font-weight: 600; font-size: .98rem; padding: 0; }
.opt { font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--robot); box-shadow: 0 0 0 3px var(--robot-soft); }
.field.invalid input { border-color: #d0423b; }
.err { display: none; color: #d0423b; font-size: .85rem; font-weight: 600; }
.field.invalid .err { display: block; }
.hint { font-size: .88rem; color: var(--muted); }
.hint.suggest { color: var(--robot); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: .92rem; font-weight: 600; }
.chip input:checked + span { border-color: var(--robot); background: var(--robot-soft); color: var(--robot); }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.form-done { border-left: 4px solid var(--wa); background: var(--surface); padding: 16px 18px; border-radius: 0 8px 8px 0; display: grid; gap: 10px; justify-items: start; }
.form-done h3 { font-size: 1.2rem; }
.form-done dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .95rem; }
.form-done dt { color: var(--muted); }
.form-done dd { margin: 0; font-weight: 700; }
@media (max-width: 820px) { .form-grid { grid-template-columns: 1fr; } .form-aside { position: static; } .form-mascot { display: none; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } .field-row:has(.field-sm) { grid-template-columns: minmax(0, 1fr) 90px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-info .contact-list { margin-top: 10px; }
.wa-form h3 { font-size: var(--step-1); }
.wa-form > .muted { margin-top: -10px; }
.contact .section-title { font-size: var(--step-2); }
.contact-grid p { color: var(--muted); }
.contact-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list address { font-style: normal; line-height: 1.45; }
.contact-list .tel { color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-list .tel:hover { color: var(--robot); }
.map-link { display: inline-block; margin-top: 8px; font-family: var(--f-body); font-size: .92rem; font-weight: 700; color: var(--robot); }
.footer-contact { width: 100%; font-size: .92rem; color: rgba(232, 240, 250, .8); }
.footer-contact a { font-family: var(--f-body); font-weight: 700; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } .contact-list div { grid-template-columns: 96px minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-ink); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-logo { width: 230px; height: auto; background: #fff; border-radius: 8px; padding: 8px 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--navy-ink); text-decoration: none; font-family: var(--f-display); font-weight: 600; }
.site-footer a:hover { color: var(--signal); }
.copy { width: 100%; font-size: .85rem; color: rgba(232, 240, 250, .6); border-top: 1px solid rgba(232, 240, 250, .14); padding-top: 18px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- STEAM ---------- */
.steam { background: var(--surface); border-block: 1px solid var(--line); }
.steam-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.steam-head .section-head { margin: 0; }
.steam-intro { color: var(--muted); max-width: 62ch; }
.steam-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steam-grid li { display: grid; gap: 8px; align-content: start; padding: 22px 20px 24px; border-right: 1px solid var(--line); background: var(--paper); }
.steam-grid li:last-child { border-right: 0; }
.steam-letter { font-family: var(--f-display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--robot); }
.steam-grid li:nth-child(2) .steam-letter { color: var(--signal); }
.steam-grid li:nth-child(3) .steam-letter { color: var(--lv5); }
.steam-grid li:nth-child(4) .steam-letter { color: var(--lv3); }
.steam-grid li:nth-child(5) .steam-letter { color: var(--lv1); }
.steam-grid h3 { font-size: var(--step-1); }
.steam-grid p { color: var(--muted); font-size: .95rem; }
.steam-benefits { margin-top: 24px; color: var(--muted); }
.steam-benefits strong { color: var(--ink); font-family: var(--f-display); }
@media (max-width: 1000px) {
  .steam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steam-grid li { border-right: 0; border-bottom: 1px solid var(--line); }
  .steam-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
  .steam-grid li:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
}
@media (max-width: 760px) { .steam-head { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .steam-grid { grid-template-columns: 1fr; } .steam-grid li:nth-child(odd) { border-right: 0; } }

/* ---------- Produits ---------- */
.p-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.p-filter { font: inherit; font-weight: 700; font-size: .92rem; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.p-filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.product { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.product.featured { border-top: 4px solid var(--robot); }
.product[data-age="a"] { --pc: var(--lv1); } .product[data-age="b"] { --pc: var(--lv2); } .product[data-age="c"] { --pc: var(--lv4); } .product[data-age="d"] { --pc: var(--lv5); } .product[data-age="all"] { --pc: var(--muted); }
.product.featured { border-top-color: var(--pc); }
.p-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-family: var(--f-mono); font-size: .74rem; }
.p-series { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.p-age { color: var(--pc); font-weight: 700; }
.product h3 { font-size: 1.45rem; }
.product > p { color: var(--muted); font-size: .96rem; }
.p-specs { margin: 0; padding: 12px 0 0; list-style: none; border-top: 1px dashed var(--line); display: grid; gap: 7px; font-size: .94rem; }
.p-specs li { position: relative; padding-left: 18px; }
.p-specs li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--pc); }
.p-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.p-variants span { font-family: var(--f-mono); font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 5px; background: var(--robot-soft); color: var(--ink); }
.p-ask { margin-top: auto; align-self: flex-start; font: inherit; font-weight: 700; font-size: .92rem; color: var(--wa); background: none; border: 1.5px solid currentColor; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.p-ask:hover { background: var(--wa); color: var(--wa-ink); border-color: var(--wa); }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } }

/* ---------- Offres ---------- */
.offres { background: var(--surface); border-block: 1px solid var(--line); }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.offer { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 3px solid var(--ink); }
.offer h3 { font-size: var(--step-1); }
.offer p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---------- Partenaire ---------- */
.partner-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.partner-copy { display: grid; gap: 16px; }
.partner-copy .section-title { font-size: var(--step-2); }
.partner-copy p { color: var(--muted); max-width: 62ch; }
.partner-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.partner-acts li { font-weight: 700; font-size: .9rem; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.partner-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.partner-facts div { background: var(--surface); padding: 20px; display: grid; gap: 4px; align-content: start; }
.partner-facts dt { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.partner-facts dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); font-variant-numeric: tabular-nums; color: var(--robot); overflow-wrap: anywhere; }
@media (max-width: 820px) { .partner-grid { grid-template-columns: 1fr; } }

/* ---------- Étapes compétition ---------- */
.comp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: st; }
.comp-steps li { counter-increment: st; display: grid; gap: 2px; padding: 12px; border-radius: 8px; background: rgba(232, 240, 250, .07); font-size: .88rem; color: rgba(232, 240, 250, .75); }
.comp-steps strong { color: var(--navy-ink); font-family: var(--f-display); font-size: 1rem; }
.comp-steps strong::before { content: counter(st) " · "; color: var(--signal); }
@media (max-width: 480px) { .comp-steps { grid-template-columns: 1fr; } }

.p-img { margin: -22px -22px 4px; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
