/* =========================================================================
   Équinoxe Pi — design system
   Inspiré du design system NASA (HDS) / USWDS : palette carbone + accents,
   typographies Inter + DM Mono, grille généreuse.
   ========================================================================= */

:root {
  --carbon-black: #000000;
  --carbon-90: #17171b;
  --carbon-80: #2e2e32;
  --carbon-70: #444447;
  --carbon-60: #58585b;
  --carbon-50: #717173;
  --carbon-40: #959599;
  --carbon-30: #b9b9bb;
  --carbon-20: #d1d1d1;
  --carbon-10: #e3e3e3;
  --carbon-05: #f6f6f6;
  --spacesuit-white: #ffffff;

  --accent-red: #f64137;
  --accent-red-shade: #b60109;
  --accent-red-tint: #ff5c52;
  --accent-blue: #1c67e3;
  --accent-blue-shade: #0b3d91;
  --accent-blue-tint: #288bff;
  --green: #47da84;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", "Bitstream Vera Sans Mono", Consolas, Courier, monospace;

  --container: 1280px;
  --header-h: 68px;
  --radius: 2px;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: #1b1b1b;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-sans); line-height: 1.05; font-weight: 700; }
p { margin: 0 0 1.1rem; }

/* --------------------------- Typographie -------------------------------- */
.display-64 { font-size: 4rem; line-height: 1em; letter-spacing: -0.02em; }
.display-41 { font-size: 2.562rem; line-height: 1.1em; letter-spacing: -0.01em; }
.section-heading-md { font-size: 2.75rem; line-height: 1em; }
.section-heading-sm { font-size: 2rem; line-height: 1.05em; }
.heading-29 { font-size: 1.813rem; line-height: 1.15; }
.heading-22 { font-size: 1.375rem; line-height: 1.2; }
.heading-18 { font-size: 1.125rem; }
.heading-16 { font-size: 1rem; }
.heading-14 { font-size: 0.875rem; }

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  line-height: 1em;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}
.p-lg { line-height: 1.7em; font-size: 1.15rem; }
.p-md { font-size: 0.9rem; }
.p-sm { line-height: 1.65em; font-size: 1rem; }

.color-carbon-60 { color: var(--carbon-60); }
.color-carbon-40 { color: var(--carbon-40); }
.color-carbon-30 { color: var(--carbon-30); }
.color-white { color: #fff; }
.text-red { color: var(--accent-red); }
.bg-carbon-black { background: #000; }
.bg-carbon-90 { background: var(--carbon-90); }
.bg-carbon-05 { background: var(--carbon-05); }
.bg-accent-red { background: var(--accent-red); }
.usa-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;
}

/* ----------------------------- Layout ----------------------------------- */
.grid-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.module { padding: 4rem 0; }

/* ----------------------------- Boutons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 22px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-red { background: var(--accent-red); color: #fff; }
.btn-red:hover { background: var(--accent-red-shade); }
.btn-blue { background: var(--accent-blue); color: #fff; }
.btn-blue:hover { background: var(--accent-blue-shade); }
.btn-dark { background: var(--carbon-90); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: #fff; border: 1px solid var(--carbon-60); }
.btn-outline:hover { border-color: #fff; }
.btn-ghost { background: transparent; color: #000; border: 1px solid var(--carbon-30); }
.btn-ghost:hover { border-color: #000; }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; }
.btn-danger { background: transparent; color: var(--accent-red-shade); border: 1px solid var(--carbon-30); }
.btn-danger:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}
.arrow-link svg { width: 28px; height: 28px; flex: 0 0 auto; }
.arrow-link:hover span { text-decoration: underline; }

/* ============================== HEADER ================================== */
.site-header {
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 500;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius);
}
.main-nav a:hover, .main-nav a.is-active { background: var(--carbon-90); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search { display: flex; }
.header-search input {
  background: #000;
  border: 1px solid var(--carbon-70);
  border-radius: var(--radius);
  color: #fff;
  padding: 9px 14px;
  width: 170px;
  outline: none;
  font-size: 0.9rem;
}
.header-search input::placeholder { color: var(--carbon-20); }
.header-search input:focus { border-color: var(--accent-blue-tint); }

.mobile-toggle { display: none; background: none; border: 0; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

/* ============================== HERO ==================================== */
.hero { position: relative; background: #000; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 78% 22%, rgba(28,103,227,.55), transparent 46%),
    radial-gradient(circle at 12% 82%, rgba(246,65,55,.45), transparent 44%),
    linear-gradient(135deg, #0b3d91 0%, #000 70%);
}
.hero-skrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(75deg, #000 8%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.1) 88%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 6.5rem 28px 4rem;
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .label { color: var(--accent-red-tint); margin-bottom: 14px; }
.hero h1 { max-width: 24ch; margin-bottom: 1.1rem; }
.hero .hero-excerpt { max-width: 44rem; margin-bottom: 2rem; color: var(--carbon-10); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================ SECTIONS ================================== */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--carbon-20);
  padding-bottom: 1.25rem;
}
.section-head-row .label { color: var(--accent-red); display: block; margin-bottom: 8px; }

/* Grille d'articles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card { text-decoration: none; display: flex; flex-direction: column; }
.card-thumb {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb .placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--carbon-80), var(--carbon-black));
}
.badge-gif {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent-red); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 2px;
  padding: 4px 8px; border-radius: var(--radius);
}
.card .card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card .card-meta .label { color: var(--accent-red); }
.card h3 { margin-bottom: 8px; }
.card:hover h3 { text-decoration: underline; }
.card .card-excerpt { color: var(--carbon-60); font-size: 0.95rem; margin: 0; }
.card .card-date { color: var(--carbon-40); font-size: 0.8rem; margin-top: 10px; font-family: var(--font-mono); }

/* Liste éditoriale (page publications) */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  text-decoration: none;
  padding: 28px 0;
  border-bottom: 1px solid var(--carbon-20);
}
.post-row-thumb { overflow: hidden; background: #000; aspect-ratio: 4/3; }
.post-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-row:hover .post-row-thumb img { transform: scale(1.04); }
.post-row:hover h3 { text-decoration: underline; }
.post-row .placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--carbon-80), #000); }

/* Article (détail) */
.article-hero { position: relative; background: #000; color: #fff; overflow: hidden; }
.article-hero .hero-media img { opacity: .92; }
.article-hero-inner {
  position: relative; z-index: 3;
  max-width: 900px; margin: 0 auto;
  padding: 5rem 28px 3rem;
}
.article-hero h1 { margin-bottom: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--carbon-20); font-size: 0.85rem; font-family: var(--font-mono); }
.article-body { max-width: 760px; margin: 0 auto; padding: 3.5rem 28px; }
.article-body p { font-size: 1.12rem; line-height: 1.8; color: #2b2b2b; }
.article-body .lead { font-size: 1.35rem; line-height: 1.6; color: #000; font-weight: 500; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 2rem 0; }
.gallery-grid figure { position: relative; overflow: hidden; background: #000; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff; font-size: 0.78rem; padding: 20px 12px 10px;
}

/* Rubriques */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--carbon-30);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  color: var(--carbon-70);
}
.chip:hover, .chip.is-active { background: #000; color: #fff; border-color: #000; }

/* Bandeau recherche / résultats */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 2rem;
}
.toolbar form { display: flex; gap: 8px; }
.toolbar input[type=search] {
  border: 1px solid var(--carbon-30); border-radius: var(--radius);
  padding: 10px 14px; min-width: 260px; outline: none; font-family: inherit;
}
.toolbar input[type=search]:focus { border-color: var(--accent-blue); }

/* État vide */
.empty-state { text-align: center; padding: 5rem 20px; color: var(--carbon-60); }
.empty-state h3 { color: #000; margin-bottom: 10px; }

/* ============================== FOOTER ================================== */
.site-footer { background: #000; color: #fff; padding: 3.5rem 0 2.5rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .footer-brand img { height: 48px; margin-bottom: 1.25rem; }
.site-footer p { color: var(--carbon-30); font-size: 0.95rem; max-width: 34rem; }
.site-footer h4 { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--carbon-40); margin-bottom: 1rem; font-family: var(--font-mono); }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--carbon-10); text-decoration: none; font-size: 0.95rem; }
.site-footer li a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--carbon-80);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--carbon-40); font-size: 0.8rem; font-family: var(--font-mono);
}

/* ====================== MESSAGES (flash) ================================ */
.messages { position: fixed; top: 84px; right: 20px; z-index: 900; display: flex; flex-direction: column; gap: 10px; }
.message {
  background: #fff; border-left: 4px solid var(--accent-blue);
  box-shadow: 0 8px 30px rgba(0,0,0,.16);
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 0.92rem; max-width: 360px;
}
.message.success { border-left-color: var(--green); }
.message.error { border-left-color: var(--accent-red); }

/* =========================================================================
   STUDIO D'ADMINISTRATION
   ========================================================================= */
.studio { min-height: 100vh; background: var(--carbon-05); }
.studio-topbar {
  background: #000; color: #fff;
  position: sticky; top: 0; z-index: 500;
}
.studio-topbar .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 64px;
}
.studio-topbar .brand img { height: 38px; }
.studio-topbar .studio-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent-red-tint);
  border-left: 1px solid var(--carbon-70); padding-left: 14px; margin-left: 4px;
}
.studio-user { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; }
.studio-user .who { color: var(--carbon-20); }
.studio-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.studio-side {
  background: #fff; border-right: 1px solid var(--carbon-20);
  min-height: calc(100vh - 64px); padding: 24px 16px;
}
.studio-side a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius);
  text-decoration: none; color: var(--carbon-70); font-weight: 600; font-size: 0.94rem;
  margin-bottom: 4px;
}
.studio-side a:hover { background: var(--carbon-05); color: #000; }
.studio-side a.is-active { background: #000; color: #fff; }
.studio-side .side-label {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--carbon-40); padding: 16px 14px 8px;
}
.studio-main { padding: 32px 36px 64px; }

.studio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.studio-head h1 { font-size: 2.1rem; }
.studio-head p { color: var(--carbon-60); margin: 6px 0 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.stat-card { background: #fff; border: 1px solid var(--carbon-20); border-radius: var(--radius); padding: 22px; }
.stat-card .num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat-card .lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--carbon-50); margin-top: 10px; }
.stat-card.accent { background: #000; color: #fff; border-color: #000; }
.stat-card.accent .lbl { color: var(--carbon-30); }

.panel { background: #fff; border: 1px solid var(--carbon-20); border-radius: var(--radius); margin-bottom: 28px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--carbon-20);
}
.panel-head h2 { font-size: 1.15rem; }
.panel-body { padding: 22px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 22px; border-bottom: 1px solid var(--carbon-10); vertical-align: middle; }
.table th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--carbon-50); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--carbon-05); }
.table .thumb { width: 56px; height: 42px; object-fit: cover; border-radius: var(--radius); background: #000; }
.table .row-title { font-weight: 600; color: #000; text-decoration: none; }
.table .row-title:hover { text-decoration: underline; }
.table .row-actions { display: flex; gap: 8px; justify-content: flex-end; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--carbon-30); color: var(--carbon-60);
}
.pill.published { background: rgba(71,218,132,.14); border-color: var(--green); color: #1a7a45; }
.pill.draft { background: var(--carbon-05); }
.pill.featured { background: rgba(246,65,55,.12); border-color: var(--accent-red); color: var(--accent-red-shade); }

/* Formulaires du studio */
.form-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; }
.field .help { color: var(--carbon-50); font-size: 0.8rem; margin-top: 6px; }
.field-input, .field-file {
  width: 100%; border: 1px solid var(--carbon-30); border-radius: var(--radius);
  padding: 11px 14px; font-family: inherit; font-size: 0.95rem; background: #fff; outline: none;
}
.field-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(28,103,227,.15); }
.field-textarea { resize: vertical; line-height: 1.6; min-height: 260px; font-family: var(--font-mono); font-size: 0.9rem; }
.field-file { padding: 10px; background: var(--carbon-05); }
.field-error { color: var(--accent-red-shade); font-size: 0.82rem; margin-top: 6px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.cover-preview { margin-bottom: 12px; border: 1px solid var(--carbon-20); border-radius: var(--radius); overflow: hidden; background: #000; }
.cover-preview img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cover-preview .none { padding: 26px; text-align: center; color: var(--carbon-40); font-size: 0.85rem; background: var(--carbon-05); }

.media-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.media-thumb { position: relative; border: 1px solid var(--carbon-20); border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 1; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .del {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.7); color: #fff; border: 0; border-radius: 50%;
  width: 26px; height: 26px; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.media-thumb .del:hover { background: var(--accent-red); }

/* Page de connexion */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #000; padding: 24px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius); padding: 40px; }
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card .brand img { height: 46px; }
.login-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--carbon-50); font-size: 0.9rem; margin-bottom: 26px; }
.login-card .btn { width: 100%; justify-content: center; }
.login-hint { margin-top: 18px; padding: 12px 14px; background: var(--carbon-05); border-radius: var(--radius); font-size: 0.8rem; color: var(--carbon-60); font-family: var(--font-mono); }

/* ============================ RESPONSIVE ================================ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #000; padding: 12px 16px; border-top: 1px solid var(--carbon-80);
  }
  .mobile-toggle { display: block; }
  .header-search { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-side { min-height: auto; display: flex; flex-wrap: wrap; gap: 6px; border-right: 0; border-bottom: 1px solid var(--carbon-20); }
  .studio-side .side-label { display: none; }
}
@media (max-width: 700px) {
  .display-64 { font-size: 2.5rem; }
  .display-41 { font-size: 2rem; }
  .section-heading-md { font-size: 1.9rem; }
  .module { padding: 2.5rem 0; }
  .grid-container { padding-left: 18px; padding-right: 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 4rem 18px 3rem; min-height: 28rem; }
  .studio-main { padding: 20px 16px 48px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}


/* =========================================================================
   Accueil : description du projet + destinations (Lune / Mars)
   ========================================================================= */
.intro {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(28, 103, 227, .38), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(246, 65, 55, .2), transparent 50%),
    #000;
  color: #fff;
  padding: 6.5rem 0 5.5rem;
}
.intro .label { color: var(--accent-red-tint); }
.intro h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.02em; line-height: 1; margin: 16px 0 1.75rem; }
.intro-lead { max-width: 46rem; font-size: 1.3rem; line-height: 1.65; color: var(--carbon-10); }
.intro-text { max-width: 46rem; color: var(--carbon-30); }
.intro-actions { margin-top: 2rem; }

/* Projet « Abandoned but not forgotten » */
.story {
  padding: 5rem 0;
  background: var(--carbon-05);
  border-top: 1px solid var(--carbon-10);
  border-bottom: 1px solid var(--carbon-10);
}
.story .label { color: var(--accent-red); }
.story h2 { margin: 12px 0 0; max-width: 22ch; }
.story-tagline {
  margin-top: 14px;
  max-width: 46rem;
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--carbon-70);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 64rem;
  margin-top: 2.5rem;
}
.story-grid p { line-height: 1.75; color: var(--carbon-60); }
.story-lead { margin: 0; font-size: 1.15rem; color: var(--carbon-80) !important; }
.story-quote {
  margin: 1.5rem 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent-red);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--carbon-90) !important;
}

.destinations { padding: 4.5rem 0 5rem; background: #fff; }
.dest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 2rem; }
.dest-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; color: #fff; text-decoration: none; }
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dest-card:hover img, .dest-card:focus-visible img { transform: scale(1.06); }
.dest-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, 0) 62%); }
.dest-card:focus-visible { outline: 3px solid var(--accent-blue-tint); outline-offset: 3px; }
.dest-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; }
.dest-card .label { color: var(--accent-red-tint); }
.dest-card h3 { font-size: 2.5rem; margin: 6px 0 8px; }
.dest-card p { margin: 0; max-width: 30rem; color: var(--carbon-10); }
.dest-cta { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; }
.dest-card:hover .dest-cta { text-decoration: underline; }

/* Pages Lune / Mars : texte publié depuis le studio + 4 images */
.dest-post { padding: 3.5rem 0; border-top: 1px solid var(--carbon-10); }
.dest-post:first-child { border-top: 0; padding-top: 0; }
.dest-post-head { max-width: 46rem; margin-bottom: 1.5rem; }
.dest-post-head h2 { margin: 8px 0 12px; }
.dest-post-date { font-family: var(--font-mono); font-size: .8rem; color: var(--carbon-40); }
.dest-post-body { max-width: 46rem; font-size: 1.1rem; line-height: 1.75; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 2rem; }
.photo-grid .photo { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid figcaption { margin-top: 6px; font-size: .8rem; color: var(--carbon-60); }

@media (max-width: 900px) {
  .intro { padding: 4rem 0 3.5rem; }
  .story { padding: 3.5rem 0; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .dest-grid { grid-template-columns: 1fr; }
  .dest-card h3 { font-size: 2rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.img-credit { margin: 1rem 0 0; font-family: var(--font-mono); font-size: .75rem; color: var(--carbon-40); }

/* Missions : image + textes + question interactive (pages Lune / Mars) */
.mission-list { margin-top: 2.5rem; }
.mission { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 3.5rem 0; border-top: 1px solid var(--carbon-10); }
.mission-media { align-self: start; position: sticky; top: 96px; }
.mission-media img { display: block; width: 100%; height: auto; background: #000; }
.mission-source { margin: 10px 0 0; font-family: var(--font-mono); font-size: .75rem; color: var(--carbon-50); }
.mission-source a { color: var(--accent-blue); }
.mission-body .label { color: var(--accent-red); }
.mission-body h3 { margin: 6px 0 1.25rem; font-size: 1.9rem; line-height: 1.2; }
.mission-h { margin: 1.6rem 0 .5rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--carbon-60); }
.mission-body p { margin: 0 0 .9rem; line-height: 1.7; color: var(--carbon-70); }
.mission-body ul { margin: 0 0 .9rem; padding-left: 1.2rem; line-height: 1.7; color: var(--carbon-70); }
.mission-fact { margin-top: 1.6rem; padding: 16px 20px; background: var(--carbon-05); border-left: 4px solid var(--accent-blue); }
.mission-fact strong { font-family: var(--font-mono); font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.mission-fact p { margin: 6px 0 0; }

.quiz { margin-top: 1.8rem; padding: 22px; border: 1px solid var(--carbon-20); }
.quiz .mission-h { margin-top: 0; }
.quiz-question { font-weight: 600; color: var(--carbon-90) !important; }
.quiz-options { display: grid; gap: 10px; margin-top: 12px; }
.quiz-option { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 14px; text-align: left; background: #fff; border: 1px solid var(--carbon-20); border-radius: var(--radius); font: inherit; color: var(--carbon-90); cursor: pointer; }
.quiz-option:hover:not(:disabled) { border-color: var(--accent-blue); }
.quiz-option:focus-visible { outline: 3px solid var(--accent-blue-tint); outline-offset: 2px; }
.quiz-option:disabled { cursor: default; }
.quiz-letter { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--carbon-10); font-family: var(--font-mono); font-size: .8rem; font-weight: 600; }
.quiz-option.is-correct { border-color: #1a7f37; background: #eaf6ee; }
.quiz-option.is-correct .quiz-letter { background: #1a7f37; color: #fff; }
.quiz-option.is-wrong { border-color: var(--accent-red); background: #fdecea; }
.quiz-option.is-wrong .quiz-letter { background: var(--accent-red); color: #fff; }
.quiz-feedback { min-height: 1.4em; margin: 12px 0 0 !important; font-weight: 600; }
.quiz-feedback.is-correct { color: #1a7f37 !important; }
.quiz-feedback.is-wrong { color: var(--accent-red) !important; }
@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; gap: 24px; padding: 2.5rem 0; }
  .mission-media { position: static; }
}

/* Studio : galerie avec titre et lien de modification */
.media-thumbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.media-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: .82rem; }
.media-meta span { color: var(--carbon-40); }
