/* =========================================================
   Breizh Coin — feuille de style
   Noir & jaune, typographie celtique (Uncial Antiqua)
   ========================================================= */

:root {
  --noir: #0b0b0b;
  --noir-2: #141414;
  --noir-3: #1d1d1d;
  --jaune: #d4af37;
  --jaune-clair: #f3dc8c;
  --jaune-fonce: #9c7c1f;
  --creme: #f6f1e3;
  --gris: #a9a49a;
  --ligne: rgba(212, 175, 55, .22);

  --f-titre: "Uncial Antiqua", "Times New Roman", serif;
  --f-texte: "Outfit", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--creme);
  font-family: var(--f-texte);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: hidden;
  /* semis d'hermines discret */
  background-image:
    radial-gradient(ellipse at 80% -10%, rgba(212, 175, 55, .14), transparent 55%),
    url("../img/hermine.svg");
  background-size: 100% 900px, 64px 90px;
  background-repeat: no-repeat, repeat;
  background-blend-mode: normal;
}
body::before {
  /* voile pour atténuer le motif d'hermines */
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, .965);
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: var(--jaune); }
strong { font-weight: 600; color: #fff; }

h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.35rem; }

.kicker {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jaune);
  margin: 0 0 1rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  background: var(--jaune);
  color: var(--noir);
  font-family: var(--f-texte);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--jaune);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(212, 175, 55, .7); }
.btn-ghost { background: transparent; color: var(--jaune); }
.btn-ghost:hover { background: var(--jaune); color: var(--noir); }
.btn-small { padding: .55em 1.2em; font-size: .9rem; }
.btn-dl { box-shadow: 0 0 0 0 rgba(212, 175, 55, .55); animation: pulse-dl 2.4s ease-out infinite; }
.btn-dl:hover { animation: none; }
@keyframes pulse-dl {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .5); }
  70% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.btn-dark { background: var(--noir); color: var(--jaune); border-color: var(--noir); }
.btn-dark:hover { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem var(--gutter);
  background: rgba(11, 11, 11, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ligne);
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--creme);
  font-family: var(--f-titre);
  font-size: 1.4rem;
}
.brand img { transition: transform .6s; }
.brand:hover img { transform: rotate(360deg); }
.nav nav { display: flex; align-items: center; gap: 1.6rem; }
.nav nav a:not(.btn) {
  color: var(--creme);
  text-decoration: none;
  font-size: .95rem;
  position: relative;
}
.nav nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--jaune);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - 70px);
}
.hero h1 {
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  margin: 0;
  letter-spacing: -.01em;
}
.hero h1 span { color: var(--jaune); }
.slogan {
  font-family: var(--f-titre);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--jaune);
  margin: .3rem 0 1.4rem;
}
.lead { font-size: 1.2rem; max-width: 34ch; color: #e9e3d2; }

.peg {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.6rem 0 2rem;
  padding: .8rem 1.2rem;
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  background: rgba(212, 175, 55, .05);
  font-family: var(--f-mono);
}
.peg-val { font-size: 1.5rem; color: #fff; }
.peg-eq { color: var(--jaune); font-size: 1.5rem; }
.peg-tag {
  background: var(--jaune);
  color: var(--noir);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .25em .7em;
  border-radius: 999px;
  font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Logo mis en scène */
.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.logo-halo {
  position: absolute;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .38), rgba(212, 175, 55, .08) 45%, transparent 70%);
  animation: halo 6s ease-in-out infinite;
}
.logo-hero {
  position: relative;
  width: min(330px, 68vw);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(212, 175, 55, .25));
  animation: leviter 6s ease-in-out infinite;
}
.logo-shadow {
  width: 50%;
  height: 20px;
  margin-top: 2rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, .35), transparent 70%);
  animation: ombre 6s ease-in-out infinite;
}
@keyframes leviter {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
@keyframes halo {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes ombre {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(.8); opacity: .55; }
}

/* ---------- Bandeau défilant ---------- */
.ticker {
  background: var(--jaune);
  color: var(--noir);
  overflow: hidden;
  border-block: 3px solid var(--noir);
  transform: rotate(-1.2deg);
  margin: 0 -2vw;
  box-shadow: 0 20px 50px -20px rgba(212, 175, 55, .5);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 1.6rem;
  padding: .9rem 0;
  font-family: var(--f-mono);
  font-size: 1rem;
  text-transform: uppercase;
  white-space: nowrap;
  animation: defile 38s linear infinite;
}
.ticker .dot { font-size: .8em; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-lead { font-size: 1.15rem; color: #e2dccb; }

.section-yellow, .section-dark {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.section-yellow { background: var(--jaune); color: var(--noir); }
.section-yellow .kicker { color: var(--noir); opacity: .7; }
.section-yellow strong { color: var(--noir); }
.section-dark { background: var(--noir-2); border-block: 1px solid var(--ligne); }

/* Frise chronologique */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 88px;
  width: 2px;
  background: linear-gradient(var(--jaune), rgba(212, 175, 55, .1));
}
.timeline li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 40px;
  margin-bottom: 2rem;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 81px; top: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--noir);
  border: 3px solid var(--jaune);
}
.tl-year { font-family: var(--f-mono); color: var(--jaune); font-size: 1.1rem; padding-top: 4px; }
.tl-card {
  background: var(--noir-2);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  transition: transform .3s, border-color .3s;
}
.tl-card:hover { transform: translateX(6px); border-color: var(--jaune); }
.tl-card p { margin: 0; color: #d8d2c1; }
.tl-card.highlight { background: var(--jaune); color: var(--noir); border-color: var(--jaune); }
.tl-card.highlight p, .tl-card.highlight strong { color: var(--noir); }

/* Chiffres */
.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(212, 175, 55, .08), transparent 60%);
}
.stat-num {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--jaune);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-label { font-size: .9rem; color: var(--gris); }

/* Cartes « Pour qui » */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--noir-2);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--jaune); box-shadow: 0 25px 50px -25px rgba(212, 175, 55, .45); }
.card-featured { background: var(--jaune); color: var(--noir); border-color: var(--jaune); }
.card-featured strong { color: var(--noir); }
.card-icon { width: 56px; height: 56px; margin-bottom: 1.2rem; }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--jaune); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.card-featured .card-icon svg { stroke: var(--noir); }
.card h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.card-sub { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; margin: 0 0 1.2rem; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { padding: .55rem 0 .55rem 1.6rem; position: relative; border-top: 1px solid rgba(255, 255, 255, .07); }
.card-featured li { border-top-color: rgba(0, 0, 0, .12); }
.card li::before { content: "✦"; position: absolute; left: 0; color: var(--jaune); }
.card-featured li::before { color: var(--noir); }

/* Étapes */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: s;
}
.steps li {
  background: var(--noir);
  color: var(--creme);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
}
.steps h3 { color: var(--jaune); font-size: 1.25rem; }
.steps p { margin: 0; color: #d8d2c1; font-size: .98rem; }
.step-n {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--noir);
  font-family: var(--f-titre);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

/* Stabilité */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checks li { padding: .45rem 0 .45rem 2rem; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .75rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b0b0b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.chart {
  margin: 0;
  background: var(--noir-2);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.chart svg { width: 100%; height: 260px; display: block; overflow: visible; }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; font-size: .9rem; color: var(--gris); }
.legend::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .5em; }
.legend-brc::before { background: var(--jaune); }
.legend-other::before { background: #6c675d; }
.legend-note { margin-left: auto; font-style: italic; }

/* Application Windows */
.app { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.app-shots { position: relative; min-height: 340px; }
.shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--noir);
  border: 1px solid var(--ligne);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8);
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--jaune);
  padding: .6rem .9rem;
  border-top: 1px solid var(--ligne);
  background: var(--noir);
}
.shot-back {
  width: 72%;
  transform: rotate(-3deg);
  opacity: .96;
}
.shot-front {
  width: 80%;
  margin-left: auto;
  margin-top: -16%;
  position: relative;
  transform: rotate(2deg);
  transition: transform .4s;
}
.shot-front:hover { transform: rotate(0) translateY(-6px); }

.app-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.3rem; }
.app-list li { display: flex; gap: 1rem; align-items: flex-start; }
.app-list h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.app-list p { margin: 0; color: #cfc9b8; font-size: .97rem; }
.app-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(212, 175, 55, .12);
  border: 1px solid var(--ligne);
}
.app-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--jaune); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.app-note { font-family: var(--f-mono); font-size: .8rem; color: var(--gris); margin: 0; }

/* Simulateur */
.sim { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; }
.sim-panel {
  background: var(--noir-2);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.sim-panel h3 { color: var(--jaune); }
.sim-panel label { font-size: .9rem; color: var(--gris); margin: 1rem 0 .4rem; }
.input-unit {
  display: flex;
  align-items: center;
  background: var(--noir);
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.input-unit:focus-within { border-color: var(--jaune); }
.input-unit input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--f-mono);
  font-size: 1.4rem;
  padding: .7rem 1rem;
}
.input-unit input:focus { outline: none; }
.input-unit span { padding: 0 1rem; font-family: var(--f-mono); color: var(--jaune); }
.sim-arrow { text-align: center; color: var(--jaune); font-size: 1.6rem; margin-top: .8rem; }
.sim-note { font-size: .85rem; color: var(--gris); margin: 1.2rem 0 0; }
input[type="range"] { width: 100%; accent-color: var(--jaune); }
.sim-result { margin-top: 1.4rem; display: grid; gap: .6rem; }
.sim-result div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--noir);
}
.sim-result strong { font-family: var(--f-mono); font-weight: 500; }
.sim-gain { background: var(--jaune) !important; color: var(--noir); }
.sim-gain strong { color: var(--noir); font-size: 1.4rem; }

/* Feuille de route */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.rm {
  border-top: 3px solid #333;
  padding-top: 1.4rem;
  position: relative;
}
.rm::before {
  content: "";
  position: absolute;
  top: -10px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--noir-2);
  border: 3px solid #555;
}
.rm.done { border-top-color: var(--jaune); }
.rm.done::before { background: var(--jaune); border-color: var(--jaune); }
.rm-q { font-family: var(--f-mono); color: var(--jaune); font-size: .85rem; }
.rm h3 { margin-top: .4rem; }
.rm p { color: #cfc9b8; margin: 0; font-size: .97rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--ligne);
  padding: 1.2rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.15rem;
  font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  color: var(--jaune);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #d3cdbc; margin: .8rem 0 0; }

/* Inscription */
.join { max-width: none; padding-inline: var(--gutter); }
.join-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--jaune);
  color: var(--noir);
  border-radius: 28px;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.join-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hermine.svg") 0 0 / 48px 68px;
  filter: brightness(0);
  opacity: .06;
  pointer-events: none;
}
.join-inner > * { position: relative; }
.join-logo {
  display: grid;
  place-items: center;
  width: 104px; height: 104px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--noir);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  animation: flotte 4s ease-in-out infinite;
}
@keyframes flotte { 50% { transform: translateY(-8px) rotate(8deg); } }
#form-inscription {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select {
  font: inherit;
  font-weight: 400;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--noir);
  background: #fffbe6;
  color: var(--noir);
}
.field input:focus-visible, .field select:focus-visible { outline-color: var(--noir); }
#form-inscription .btn { grid-column: 1 / -1; justify-content: center; margin-top: .5rem; }
.form-msg { grid-column: 1 / -1; text-align: center; font-weight: 600; min-height: 1.6em; margin: 0; }
.form-msg.error { color: #8a1c00; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.footer {
  border-top: 1px solid var(--ligne);
  padding: 3rem var(--gutter);
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-titre);
  font-size: 1.4rem;
}
.footer-kenavo { font-family: var(--f-titre); color: var(--jaune); font-size: 1.2rem; }
.disclaimer { max-width: 640px; margin: 1rem auto 0; font-size: .82rem; color: var(--gris); }

/* Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .logo-stage { min-height: 280px; order: -1; }
  .logo-hero { width: min(230px, 58vw); }
  .cards, .steps, .roadmap { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .split, .sim, .app { grid-template-columns: 1fr; }
  .app-shots { min-height: 0; margin-bottom: 1rem; }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: none;
    border: 1px solid var(--ligne);
    border-radius: 10px;
    cursor: pointer;
    padding: 0 10px;
  }
  .nav-toggle span { height: 2px; background: var(--jaune); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .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 nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--noir);
    border-bottom: 1px solid var(--ligne);
    padding: .5rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav nav.open { display: flex; }
  .nav nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav nav .btn { margin-top: 1rem; justify-content: center; }
}

@media (max-width: 600px) {
  .cards, .steps, .roadmap, #form-inscription { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: .4rem; padding-left: 32px; }
  .timeline li::before { left: 0; top: 6px; }
  .sim-panel { padding: 1.4rem; }
  .legend-note { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
