:root {
  --fg: #1a1a1a;
  --fg-doux: #5c5c5c;
  --bg: #fdfdfc;
  --bg-doux: #f2f1ee;
  --trait: #dcdad4;
  --accent: #9a3412;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e6e1;
    --fg-doux: #a3a09a;
    --bg: #16151a;
    --bg-doux: #201f26;
    --trait: #34323b;
    --accent: #f0a875;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header, main, footer { max-width: 46rem; margin: 0 auto; }

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--trait);
}

.brand {
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

nav { display: flex; gap: 1.25rem; }
nav a { color: var(--fg-doux); text-decoration: none; }
nav a:hover { color: var(--accent); }

main { padding: 2rem 0 3rem; }

h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }

a { color: var(--accent); }

code {
  background: var(--bg-doux);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background: var(--bg-doux);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

img { max-width: 100%; height: auto; }

figure.modele3d { margin: 2rem 0; }

figure.modele3d .scene {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-doux);
  border: 1px solid var(--trait);
  border-radius: 8px;
  overflow: hidden;
}

figure.modele3d canvas { display: block; width: 100%; height: 100%; }

figure.modele3d .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

figure.modele3d figcaption {
  margin-top: 0.6rem;
  color: var(--fg-doux);
  font-size: 0.9rem;
}

ul.cards { list-style: none; padding: 0; display: grid; gap: 1rem; margin: 2rem 0 0; }

ul.cards a {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--bg-doux);
  border: 1px solid var(--trait);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
ul.cards a:hover { border-color: var(--accent); }
ul.cards h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
ul.cards p { margin: 0; color: var(--fg-doux); font-size: 0.94rem; }

ul.pages { padding-left: 1.1rem; }

.vide { color: var(--fg-doux); font-style: italic; }

footer {
  border-top: 1px solid var(--trait);
  padding: 1.25rem 0 2rem;
  color: var(--fg-doux);
  font-size: 0.87rem;
}

/* ---------------------------------------------------------------------------
   Page d'accueil. Le reste du site est sobre à dessein ; l'accueil est le seul
   endroit qui cherche à accrocher. Bandeau sombre assumé dans les deux thèmes.
   --------------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin: 1.5rem 0 0;
  padding: 2.5rem 1.75rem;
  border-radius: 14px;
  background: radial-gradient(120% 140% at 8% 0%, #1d3b30 0%, #14161b 55%, #101116 100%);
  color: #eef1ee;
}

@media (min-width: 46rem) {
  .hero { grid-template-columns: 1.15fr 1fr; padding: 3rem 2.5rem; }
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid #3f7d63;
  border-radius: 999px;
  color: #8fe3b6;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero .accroche { margin: 0 0 1.75rem; font-size: 1.06rem; color: #c3cbc6; max-width: 34rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

.bouton {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border: 1px solid #4a5a52;
  border-radius: 7px;
  color: #eef1ee;
  text-decoration: none;
  font-weight: 550;
}
.bouton:hover { border-color: #8fe3b6; }
.bouton.primaire { background: #2f9e68; border-color: #2f9e68; color: #08150f; }
.bouton.primaire:hover { background: #3ec281; border-color: #3ec281; }

.hero-image img { display: block; width: 100%; height: auto; border-radius: 10px; }

.chiffres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 1px 0 0;
  background: var(--trait);
  border: 1px solid var(--trait);
  border-radius: 10px;
  overflow: hidden;
}
@media (min-width: 46rem) { .chiffres { grid-template-columns: repeat(4, 1fr); } }

.chiffres div { background: var(--bg); padding: 1.1rem 1rem; text-align: center; }
.chiffres strong { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.chiffres span { color: var(--fg-doux); font-size: 0.86rem; }

.lua { display: grid; gap: 1.5rem; margin: 3rem 0 0; }
@media (min-width: 52rem) { .lua { grid-template-columns: 1fr 1fr; align-items: start; } }
.lua h2 { margin-top: 0; font-size: 1.5rem; }
.lua pre { margin: 0; font-size: 0.83rem; line-height: 1.55; }

.atouts { display: grid; gap: 1rem; margin: 3rem 0 0; }
@media (min-width: 40rem) { .atouts { grid-template-columns: 1fr 1fr; } }

.atouts article {
  padding: 1.25rem 1.35rem;
  background: var(--bg-doux);
  border: 1px solid var(--trait);
  border-radius: 9px;
}
.atouts h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.atouts p { margin: 0; color: var(--fg-doux); font-size: 0.94rem; }

.etat { margin: 3.5rem 0 0; }
.etat h2 { font-size: 1.4rem; }
