/* =========================
   Design system
   ========================= */
:root {
  --bg: #0f0f10;
  --surface: #17181a;
  --text: #e9e9ec;
  --muted: #b9bcc6;
  --accent: #ff4d4f;
  --accent-contrast: #121214;
  --border: #26272b;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --container: 1200px;

  --step--1: clamp(0.85rem, 0.80rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.9rem + 0.6vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.1rem + 1vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.6vw, 2.2rem);
  --step-3: clamp(2rem, 1.6rem + 2.4vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Ubuntu, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #ffd9d9; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #ffd9d9; outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* =========================
   En-tête
   ========================= */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-block;
  padding: 0.9rem 0;
  color: var(--muted);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip a {
  position: absolute; left: -9999px;
}
.skip a:focus {
  left: 0; top: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.5rem 0.75rem; border-radius: 6px;
  z-index: 1000;
}

/* =========================
   Hero (couverture + texte)
   ========================= */
.hero {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 2rem 0 1rem;
}
.cover {
  margin: 0;
  background: #0c0d0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-text h1 {
  margin: 0 0 0.25rem;
  font-size: var(--step-3);
  line-height: 1.15;
}
.subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--step-0);
}
.teaser {
  font-weight: 600;
  font-size: var(--step-1);
  margin: 0 0 0.5rem;
}
.desc {
  margin: 0 0 1rem;
}
.meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1rem;
  margin: 1rem 0 0.5rem;
}
.meta dt {
  font-weight: 700;
  color: var(--muted);
}
.meta dd {
  margin: 0 0 0.5rem;
}
.keywords {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: var(--step--1);
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    padding: 3rem 0 1.5rem;
  }
  .cover { max-width: 420px; }
}

/* =========================
   Galerie d’illustrations
   ========================= */
.gallery {
  padding: 2rem 0;
}
.gallery h2 {
  font-size: var(--step-2);
  margin: 0 0 1rem;
}
.gallery {
  display: grid;
  gap: 1rem;
}
.card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card figcaption {
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================
   Auteur
   ========================= */
.author {
  padding: 2rem 0 2.5rem;
}
.author h2 {
  font-size: var(--step-2);
  margin: 0 0 1rem;
}
.author-card {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.author-media img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.author-name {
  margin: 0;
  font-size: var(--step-1);
}
.author-bio {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-size: var(--step-0);
}

@media (min-width: 700px) {
  .author-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
  }
  .author-media img { width: 150px; height: 150px; }
}

/* =========================
   CTA
   ========================= */
.cta {
  padding: 2rem 0 3rem;
  text-align: center;
}
.cta h2 {
  font-size: var(--step-2);
  margin: 0 0 0.5rem;
}
.btn-primary {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 18px rgba(255, 77, 79, 0.35);
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 77, 79, 0.45);
}

/* =========================
   Pied de page
   ========================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 1rem 0;
  text-align: center;
  font-size: var(--step--1);
}
