/* Dents de lait — mémoire famille
   Palette: encre chaude + or fruit du démon + ivoire papier
   Pas de violet générique / Inter */

:root {
  --ink: #1a1410;
  --ink-soft: #3d3229;
  --muted: #6e5f52;
  --paper: #f7f0e6;
  --paper-2: #efe4d4;
  --card: #fffaf3;
  --gold: #e6b422;
  --gold-deep: #c49212;
  --yellow-fruit: #f5d547;
  --coral: #c45c3e;
  --ok: #2f6b4f;
  --line: rgba(26, 20, 16, 0.12);
  --shadow: 0 18px 50px rgba(26, 20, 16, 0.12);
  --radius: 18px;
  --max: 42rem;
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(245, 213, 71, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 92, 62, 0.12), transparent 50%),
    var(--paper);
  min-height: 100dvh;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.7rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(165deg, var(--yellow-fruit), var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(196, 146, 18, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(196, 146, 18, 0.36);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
}

.btn-block {
  width: 100%;
  margin: 0.5rem 0 1rem;
}

.cta-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-family: var(--font);
  font-size: 1.55rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.sub {
  font-family: var(--font);
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.now {
  border-color: rgba(230, 180, 34, 0.45);
  background:
    linear-gradient(180deg, rgba(245, 213, 71, 0.18), transparent 48%),
    var(--card);
}

.now-badge {
  display: inline-block;
  background: rgba(47, 107, 79, 0.12);
  color: var(--ok);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin: 0 0 0.65rem;
}

.now-phase {
  font-family: var(--font);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.facts {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.facts > div {
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--line);
}

.facts > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.facts dd {
  margin: 0;
}

.gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

.timeline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  position: relative;
  padding: 0.9rem 0.95rem 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid #cbbba8;
}

.timeline li.active {
  border-left-color: var(--gold-deep);
  background: rgba(245, 213, 71, 0.14);
}

.timeline li.done {
  border-left-color: var(--ok);
  opacity: 0.92;
}

.t-when {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 0.2rem;
}

.t-what {
  margin-bottom: 0.15rem;
}

.t-status {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.how-to {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.how-to li {
  margin-bottom: 0.4rem;
}

.remind-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.remind-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.remind-list time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.remind-list li.past {
  opacity: 0.45;
}

.remind-list li.next {
  border-color: rgba(196, 146, 18, 0.55);
  background: rgba(245, 213, 71, 0.16);
  box-shadow: 0 0 0 1px rgba(245, 213, 71, 0.25);
}

.notify-box {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.sources ul {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.15rem;
}

.sources a {
  word-break: break-word;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

footer p {
  margin: 0.25rem 0;
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .remind-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
