/* ============================================================
   RETIS · Centre de commandes E-commerce
   Feuille de style partagée
   Palette relevée sur les maquettes :
   fond #1f2147 · CTA #ffae86 · texte #edf1f7 · bordures #383b5d
   ============================================================ */

:root {
  --bg: #1f2147;
  --bg-elev: #262a54;
  --surface: rgba(255, 255, 255, 0.025);
  --border: #383b5d;
  --border-soft: #2e3157;

  --text: #edf1f7;
  --muted: #a7abbd;
  --faint: #767a97;

  --accent: #ffae86;
  --accent-hover: #ff9d6e;
  --ink: #1f2147;

  --sidebar-w: 92px;
  --topbar-h: 58px;

  --radius-card: 22px;
  --radius-pill: 999px;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; }

/* ---- Focus visible (accessibilité clavier) ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  padding: 0.9rem 1.6rem;
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); }

.btn--block { width: 100%; }

/* Petit bouton contour (missions) */
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.5rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.btn--ghost:hover { background: var(--accent); color: var(--ink); }

/* ============================================================
   MISE EN PAGE INTERNE (avec menu latéral)
   ============================================================ */
.app { min-height: 100vh; }

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) 5rem;
}

/* ---- En-tête de page ---- */
.page-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.page-title {
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.page-sub {
  color: var(--muted);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 46rem;
  margin: 0 auto;
}

/* Texte "briefing" (les intros en italique/espacé des maquettes,
   rendues en Montserrat conformément à la consigne) */
.briefing {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ============================================================
   MENU LATÉRAL
   ============================================================ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #1b1d3f;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 0.5rem 1.4rem;
  z-index: 50;
}

.sidebar__logo {
  width: 40px;
  height: 40px;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.sidebar__logo svg { width: 100%; height: 100%; }

.nav { display: flex; flex-direction: column; gap: 0.35rem; width: 100%; }

.nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.25rem;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav__item svg { width: 22px; height: 22px; }
.nav__label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.15; }

.nav__item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

/* État actif : accent pêche + panneau plus clair
   (la maquette de référence utilisait un ton doré ;
    changer --accent ci-dessous pour revenir au doré si besoin) */
.nav__item[aria-current="page"] {
  color: var(--accent);
  background: rgba(255, 174, 134, 0.12);
}

/* ---- Barre mobile + tiroir ---- */
.topbar {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: #1b1d3f;
  border-bottom: 1px solid var(--border-soft);
  z-index: 60;
}
.topbar__logo { width: 30px; height: 30px; color: var(--text); }
.topbar__logo svg { width: 100%; height: 100%; }
.topbar__title { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; }

.burger {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }

.scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10, 11, 30, 0.6);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.scrim.is-open { display: block; opacity: 1; }

/* ============================================================
   ÉCRAN 1 · Code d'accès
   ============================================================ */
.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-color: #10122c;
  background-image:
    linear-gradient(180deg, rgba(31, 33, 71, 0.62), rgba(16, 18, 44, 0.82)),
    image-set(
      url("../img/control-room-1280.jpg") 1x,
      url("../img/control-room-1920.jpg") 2x
    );
  background-size: cover;
  background-position: center;
}
/* fallback si image-set non supporté */
.no-imageset .gate { background-image: linear-gradient(180deg, rgba(31,33,71,0.62), rgba(16,18,44,0.82)), url("../img/control-room-1920.jpg"); }

.gate__inner {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.gate__title {
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
}

.gate__sub {
  color: #d6d9e8;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  margin: 0 auto 2.4rem;
  max-width: 40rem;
}

.gate__form {
  display: flex;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}

.gate__input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.95rem 1.4rem;
}
.gate__input::placeholder { color: #8a8ea0; }
.gate__input:focus { outline: none; border-color: var(--accent); }

.gate__form .btn { flex: 0 0 auto; white-space: nowrap; }

.gate__error {
  min-height: 1.4rem;
  margin: 1rem auto 0;
  color: #ffb4a0;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.gate__error.is-visible { opacity: 1; }

.gate__brand {
  justify-self: center;
  align-self: end;
  color: var(--text);
  width: clamp(150px, 22vw, 210px);
  opacity: 0.96;
  padding-top: 2rem;
}
.gate__brand svg { width: 100%; height: auto; }

/* ============================================================
   ÉCRAN 2 · Home — cartes
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.4rem, 2.5vw, 2rem);
  text-align: center;
}

.card__eyebrow {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.card__lead {
  font-weight: 700;
  font-size: 1rem;
  margin: 0.2rem 0 0;
}
.card__text {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1 1 auto;
}
.card .btn { margin-top: 0.4rem; }

/* ============================================================
   CENTRE DES MISSIONS
   ============================================================ */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 1040px;
  margin: 0 auto;
}
.panel__head { text-align: center; margin-bottom: 2rem; }
.panel__title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.panel__sub { color: var(--muted); font-size: 0.95rem; margin: 0; }

.folders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem clamp(1.5rem, 4vw, 3rem);
}
.folder {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem;
  border-radius: 12px;
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.folder:hover { background: rgba(255, 255, 255, 0.04); transform: translateX(2px); }
.folder__icon { flex: 0 0 auto; width: 46px; height: 38px; color: var(--accent); }
.folder__icon svg { width: 100%; height: 100%; }
.folder__name { font-weight: 700; font-size: 0.9rem; line-height: 1.25; letter-spacing: 0.02em; }

/* ---- Section plan de missions ---- */
.plan { margin-top: clamp(3.5rem, 8vw, 6rem); }
.plan__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.plan__title {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}
.plan__intro { color: var(--muted); font-weight: 500; letter-spacing: 0.02em; max-width: 40rem; margin: 0 auto; }

/* ---- Timeline ---- */
.timeline {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-item {
  position: relative;
  width: 50%;
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item--right { margin-left: 50%; padding-left: 44px; text-align: left; }
.tl-item--left { margin-left: 0; padding-right: 44px; text-align: left; }

.tl-node {
  position: absolute;
  top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg);
}
.tl-item--right .tl-node { left: -11px; }
.tl-item--left .tl-node { right: -11px; }

.tl-tag {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
}
.tl-lead { font-weight: 700; font-size: 0.98rem; margin: 0 0 0.15rem; }
.tl-meta { color: var(--faint); font-size: 0.82rem; margin: 0 0 0.7rem; letter-spacing: 0.01em; }
.tl-text { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.1rem; }

/* ============================================================
   ANIMATIONS (respectent prefers-reduced-motion)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .gate__inner > * { animation: rise 0.7s var(--ease) both; }
  .gate__inner > *:nth-child(2) { animation-delay: 0.08s; }
  .gate__inner > *:nth-child(3) { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .shake { animation: shake 0.4s var(--ease); }
  @keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-8px); }
    40%, 60% { transform: translateX(8px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.26s var(--ease);
    width: 84px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  }
  .sidebar.is-open { transform: translateX(0); }

  .topbar { display: flex; }
  .main { margin-left: 0; padding-top: var(--topbar-h); }
}

@media (max-width: 760px) {
  .timeline::before { left: 19px; }
  .tl-item,
  .tl-item--right,
  .tl-item--left {
    width: 100%;
    margin-left: 0;
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
  }
  .tl-item--right .tl-node,
  .tl-item--left .tl-node { left: 8px; right: auto; }
  .tl-item--left .btn { margin-left: 0; }
}

@media (max-width: 560px) {
  .gate__form { flex-direction: column; }
  .gate__form .btn { width: 100%; }
}

/* ============================================================
   PAGE MISSION (ex. Mission 01)
   ============================================================ */
.mission-hero { text-align: center; }

.mission-status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 174, 134, 0.35); border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem; margin-bottom: 1.5rem;
}
.mission-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 174, 134, 0.18);
}

.mission-title {
  font-weight: 800; font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em; line-height: 1.04; margin: 0 0 1.8rem;
}

/* ---- Tracker horizontal mission X / 05 ---- */
.mtracker {
  list-style: none; margin: 0 0 2.4rem; padding: 0.4rem 0 0.2rem;
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.mtracker::-webkit-scrollbar { display: none; }
.mtracker__step {
  position: relative; flex: 1 0 auto; min-width: 116px;
  text-align: center; padding-top: 30px; color: var(--faint);
}
.mtracker__step::before {
  content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--border);
}
.mtracker__step:first-child::before { left: 50%; }
.mtracker__step:last-child::before { right: 50%; }
.mtracker__dot {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--border); z-index: 1;
}
.mtracker__num { display: block; font-weight: 800; font-size: 0.92rem; }
.mtracker__lbl { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em; margin-top: 0.15rem; }
.mtracker__step.is-current { color: var(--accent); }
.mtracker__step.is-current .mtracker__dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 174, 134, 0.16);
}

/* ---- Objectif + impact ---- */
.objective {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 16px; background: var(--surface);
  padding: 1.4rem 1.7rem; max-width: 760px; margin: 0 auto 1.5rem; text-align: left;
}
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.55rem;
}
.objective p { margin: 0; color: var(--text); }

.impact {
  display: flex; gap: 0.75rem; align-items: flex-start; justify-content: center;
  max-width: 700px; margin: 0 auto; color: var(--muted); font-style: italic;
}
.impact svg { flex: 0 0 auto; color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }

/* ---- Repères rapides ---- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; max-width: 1000px; margin: 2.6rem auto 0;
}
.fact { border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem; background: var(--surface); text-align: left; }
.fact__k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.35rem; }
.fact__v { font-weight: 700; font-size: 1rem; margin: 0; color: var(--text); }

/* ---- Sections mission ---- */
.block { margin-top: clamp(3rem, 7vw, 5rem); }
.block__head { margin-bottom: 1.6rem; }
.block__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.6rem;
}
.block__eyebrow svg { width: 18px; height: 18px; }
.block__title { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.block__intro { color: var(--muted); max-width: 52rem; margin: 0; }

/* ---- Sprint (sous-section équipage) ---- */
.sprint {
  border: 1px solid var(--border); border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2rem); margin-top: 1.4rem; background: rgba(255, 255, 255, 0.015);
}
.sprint__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(255, 174, 134, 0.14); border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem; margin-bottom: 0.8rem;
}
.sprint__name { font-weight: 800; font-size: 1.25rem; margin: 0 0 0.5rem; }
.sprint__obj { color: var(--muted); margin: 0 0 1.4rem; }

/* ---- Étapes ---- */
.steps { display: grid; gap: 0.9rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem;
  border: 1px solid var(--border-soft); border-radius: 14px; padding: 1rem 1.2rem; background: var(--bg-elev);
}
.step__n {
  grid-row: span 2; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: var(--ink); font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.step__t { font-weight: 700; margin: 0.25rem 0 0; align-self: center; }
.step__b { grid-column: 2; min-width: 0; }
.step ul { margin: 0.1rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.step li { margin: 0.22rem 0; }
.step__b > p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.92rem; }
.step__b > p.q { color: var(--text); font-weight: 600; font-style: italic; }

/* ---- Encadrés (livrable, revue) ---- */
.callout { border: 1px dashed var(--border); border-radius: 14px; padding: 1.1rem 1.3rem; margin-top: 1.2rem; background: var(--surface); }
.callout__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.55rem; }
.callout ol, .callout ul { margin: 0.2rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.callout li { margin: 0.22rem 0; }
.callout p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.verdicts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.7rem; }
.verdict { font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.35rem 0.85rem; color: var(--text); }

/* ---- Mission solo (3 tracks) ---- */
.solo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.solo-card { border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem 1.5rem; background: var(--surface); display: flex; flex-direction: column; }
.solo-card__ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 0.7rem; }
.solo-card__t { font-weight: 800; font-size: 1.05rem; margin: 0; }
.solo-card__d { color: var(--faint); font-size: 0.82rem; margin: 0.25rem 0 0.9rem; }
.solo-card h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0.9rem 0 0.35rem; }
.solo-card h4:first-of-type { margin-top: 0; }
.solo-card ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.solo-card li { margin: 0.22rem 0; }
.solo-card .fmt { margin-top: auto; padding-top: 0.9rem; font-size: 0.78rem; color: var(--faint); }

/* ---- Lexique ---- */
.lexique { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.term { border: 1px solid var(--border-soft); border-radius: 12px; padding: 0.9rem 1.1rem; background: var(--bg-elev); }
.term__w { font-weight: 700; color: var(--accent); font-size: 0.9rem; margin: 0 0 0.25rem; }
.term__d { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* ---- Formats attendus ---- */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.format { border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem 1.4rem; background: var(--surface); }
.format__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }
.format__v { font-weight: 700; margin: 0 0 0.3rem; }
.format ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.format li { margin: 0.2rem 0; }

/* ---- Pied de mission ---- */
.mission-foot {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--border-soft);
}
.mission-foot .back { color: var(--muted); text-decoration: none; font-weight: 600; display: inline-flex; gap: 0.5rem; align-items: center; }
.mission-foot .back:hover { color: var(--text); }
.mission-foot .back svg { width: 18px; height: 18px; }
.mission-foot .next { color: var(--faint); font-size: 0.9rem; display: inline-flex; gap: 0.45rem; align-items: center; }
.mission-foot .next svg { width: 15px; height: 15px; }
