/* Page de présentation de VIVANT.
   Même vocabulaire visuel que l'application : un seul accent ambre, une échelle
   de rayons unique, sombre par défaut. Ce qui convainc ici, ce sont les vraies
   photographies du catalogue et les vrais chiffres, pas des effets. */

:root {
  color-scheme: dark light;

  --fond:          #0d1113;
  --fond-2:        #141a1d;
  --surface:       #1a2226;
  --bord:          #2b3439;
  --bord-net:      #3a464c;
  --texte:         #e9eeec;
  --texte-doux:    #9aa8a4;
  --texte-faible:  #7d8c89;
  --accent:        #e0a63a;
  --accent-sourd:  #7a5c22;
  --accent-texte:  #16110a;

  --rayon:     14px;
  --rayon-s:   10px;
  --rayon-pil: 999px;

  --police: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --large: 1160px;
}

@media (prefers-color-scheme: light) {
  :root {
    --fond:         #f5f7f6;
    --fond-2:       #ecf0ee;
    --surface:      #ffffff;
    --bord:         #dde3e1;
    --bord-net:     #c3ccc9;
    --texte:        #131a1c;
    --texte-doux:   #4e5c58;
    --texte-faible: #626d68;
    --accent:       #916414;
    --accent-sourd: #e5d3ab;
    --accent-texte: #ffffff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------------------------------------------------------------- en-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bord);
}

.marque {
  font-weight: 640;
  letter-spacing: 0.17em;
  font-size: 15px;
  text-decoration: none;
}

.lien-app {
  font-size: 14px;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent-sourd);
  border-radius: var(--rayon-pil);
  padding: 8px 16px;
  white-space: nowrap;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lien-app:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ------------------------------------------------------------------- hero */

.hero {
  max-width: var(--large);
  margin: 0 auto;
  padding: 64px 24px 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 64px; padding-top: 88px; }
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 660;
  margin: 0 0 18px;
}

.chapo {
  font-size: 1.09rem;
  color: var(--texte-doux);
  max-width: 46ch;
  margin: 0 0 28px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--rayon);
  background: var(--accent);
  color: var(--accent-texte);
  font-weight: 640;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  white-space: nowrap;
  transition: transform 0.14s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton.sobre {
  background: transparent;
  color: var(--texte);
  border-color: var(--bord-net);
}

.mention { font-size: 0.84rem; color: var(--texte-faible); margin: 18px 0 0; }

/* Grille du dex : deux espèces trouvées, quatre encore masquées. C'est la
   promesse du produit montrée plutôt qu'annoncée. */
.hero-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 520px) { .hero-grille { grid-template-columns: repeat(2, 1fr); } }

.tuile {
  margin: 0;
  position: relative;
  border-radius: var(--rayon-s);
  overflow: hidden;
  background: var(--fond-2);
  border: 1px solid var(--bord);
  aspect-ratio: 1 / 1;
}
.tuile img { width: 100%; height: 100%; object-fit: cover; }

/* Non trouvée : floutée et désaturée, exactement comme dans l'application. */
.tuile:not(.decouverte) img {
  filter: grayscale(1) brightness(0.5) blur(10px);
  transform: scale(1.2);
}
.tuile.decouverte { border-color: var(--accent-sourd); }

.tuile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 10px 8px;
  font-size: 0.72rem;
  color: #eef2f0;
  background: linear-gradient(to top, rgb(6 9 10 / 0.88), transparent);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.num { font-family: var(--mono); font-size: 0.66rem; color: var(--accent); }
.tuile:not(.decouverte) figcaption { color: #9aa8a4; }
.tuile:not(.decouverte) .num { color: var(--texte-faible); }

/* ----------------------------------------------------------- bande chiffre */

.bande-chiffre {
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
  background: var(--fond-2);
  padding: 76px 24px;
  text-align: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--texte-faible);
  margin: 0 0 14px;
  font-weight: 620;
}

.bande-chiffre h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 auto 40px;
  max-width: 46ch;
  font-weight: 640;
}

.mesure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 6vw, 60px);
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.mesure > div { display: grid; gap: 4px; }
/* Chiffres en police normale à chasse tabulaire, pas en chasse fixe : le mono
   rend l'espace fine des milliers si large que « 119 324 » se lit comme deux
   nombres distincts. */
.grand {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 660;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--texte-faible);
  white-space: nowrap;
}
.grand.accent { color: var(--accent); }
.etiquette-mesure { font-size: 0.8rem; color: var(--texte-faible); }
.fleche { font-size: 1.6rem; color: var(--bord-net); }

.texte-centre {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--texte-doux);
}

/* ------------------------------------------------------------ trois usages */

.trois {
  max-width: var(--large);
  margin: 0 auto;
  padding: 76px 24px;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .trois { grid-template-columns: repeat(3, 1fr); gap: 46px; } }

.trois h3 { font-size: 1.1rem; margin: 14px 0 8px; font-weight: 620; }
.trois p { margin: 0; color: var(--texte-doux); font-size: 0.95rem; }
.picto { width: 26px; height: 26px; opacity: 0.85; }
@media (prefers-color-scheme: dark) {
  .picto { filter: invert(88%) sepia(6%) saturate(180%) hue-rotate(120deg); }
}

/* ---------------------------------------------------------------- sources */

.sources {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 24px 76px;
}
.sources h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  font-weight: 640;
}
.tableau { display: grid; }
.tableau div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 15px 0;
  font-size: 0.95rem;
}
.tableau div + div { border-top: 1px solid var(--bord); }
.quoi { color: var(--texte); }
.ou { color: var(--texte-doux); text-align: right; }
.note { color: var(--texte-faible); font-size: 0.87rem; margin-top: 26px; }

/* --------------------------------------------------------------- franchise */

.franchise {
  border-top: 1px solid var(--bord);
  background: var(--fond-2);
  padding: 76px 24px;
}
.franchise > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.franchise h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 30px;
  font-weight: 640;
}
.franchise ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.franchise li {
  color: var(--texte-doux);
  border-left: 2px solid var(--accent-sourd);
  padding-left: 20px;
}
.franchise strong { color: var(--texte); display: block; margin-bottom: 5px; font-weight: 620; }

/* -------------------------------------------------------------------- fin */

.final { text-align: center; padding: 88px 24px; }
.final h2 {
  font-size: clamp(1.5rem, 3.8vw, 2.3rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 auto 30px;
  max-width: 30ch;
  font-weight: 640;
}

footer {
  border-top: 1px solid var(--bord);
  padding: 34px 24px 56px;
  color: var(--texte-faible);
  font-size: 0.83rem;
}
footer p { max-width: 720px; margin: 0 auto; text-align: center; line-height: 1.7; }
footer a { color: var(--texte-doux); }


/* La section de faits (2026-08-08). Memes mesures que .sources et .franchise :
   780px de large, meme echelle de titre. La grille des groupes s'adapte seule
   au nombre de colonnes possible, sans point de rupture arbitraire. */
.detail {
  border-top: 1px solid var(--bord);
  padding: 76px 24px;
}
.detail > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.detail h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  font-weight: 640;
}
.detail h2 + p { margin-top: 0; }
.detail p {
  color: var(--texte-doux);
  line-height: 1.62;
  margin: 0 auto 20px;
}
.detail strong { color: var(--texte); font-weight: 620; }
.detail .groupes {
  list-style: none;
  padding: 0;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}
.detail .groupes li {
  background: var(--fond-2);
  border: 1px solid var(--bord);
  border-radius: var(--rayon-s);
  padding: 12px 14px;
  color: var(--texte-doux);
  font-size: 0.95rem;
}
.detail .groupes strong {
  display: block;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 660;
  line-height: 1.2;
}
