/* Page d'accueil — mêmes jetons qu'acfai.org, relevés dans sa feuille le
   30 octobre 2026 et convertis d'oklch en hexadécimal.

   Elle ne partage pas app.css : la conversation est une application, cette
   page est une page. Les faire cohabiter obligerait à charger les styles de
   l'une pour afficher l'autre. */

:root {
  --fond: #fdfdfc;
  --fond-carte: #ffffff;
  --encre: #0b110d;
  --encre-douce: #5e6560;
  --accent: #008a3b;
  --accent-fonce: #00682a;
  --accent-clair: #dff3e3;
  --or: #fe9a00;
  --bord: #e4e3de;
  --sur-accent: #ffffff;
  --rayon: 12px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0a0a0a;
    --fond-carte: #171717;
    --encre: #fafafa;
    --encre-douce: #a1a1a1;
    --accent: #00bc7d;
    --accent-fonce: #008236;
    --accent-clair: #16251d;
    --bord: rgba(255, 255, 255, .12);
    --sur-accent: #0a0a0a;
  }
}
:root[data-theme="dark"] {
  --fond: #0a0a0a; --fond-carte: #171717; --encre: #fafafa; --encre-douce: #a1a1a1;
  --accent: #00bc7d; --accent-fonce: #008236; --accent-clair: #16251d;
  --bord: rgba(255, 255, 255, .12); --sur-accent: #0a0a0a;
}

* { 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(--encre);
  font: 16px/1.6 'Geist', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { display: block; }

section {
  width: min(64rem, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

a { color: inherit; }

/* ── En-tête ──────────────────────────────────────────────────────────── */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(64rem, 100%);
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: blur(8px);
}
/* color-mix n'existe pas partout : sans lui le fond reste opaque, ce qui est
   une dégradation acceptable. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .entete { background: var(--fond); }
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.marque img { display: block; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.nav a { color: var(--encre-douce); text-decoration: none; }
.nav a:hover { color: var(--encre); }
.nav .bouton-fin {
  padding: 8px 16px;
  border: 1px solid var(--bord);
  border-radius: 999px;
  color: var(--encre);
}
.nav .bouton-fin:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 700px) {
  .nav a:not(.bouton-fin) { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 32px; padding-top: 64px; padding-bottom: 104px; }
}

.sur-titre {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); font-weight: 600; }

.chapo {
  margin: 20px 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--encre-douce);
}

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

.bouton, .bouton-creux {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
}
.bouton { background: var(--accent); color: var(--sur-accent); border: 1px solid var(--accent); }
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton-creux { border: 1px solid var(--bord); color: var(--encre); }
.bouton-creux:hover { border-color: var(--accent); color: var(--accent); }

.mention { margin: 18px 0 0; font-size: 13.5px; color: var(--encre-douce); }

/* ── Le flambeau en relief ────────────────────────────────────────────── */
/* L'épaisseur est faite de copies empilées de la silhouette, décalées d'un
   pixel chacune en profondeur. Pas de WebGL, pas de bibliothèque : une page
   d'accueil qui coûterait 160 Ko de moteur 3D sur une connexion payée au
   mégaoctet serait une faute, surtout pour un logo. */
.scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  perspective: 900px;
}
@media (min-width: 860px) { .scene { min-height: 440px; } }

/* La lueur. Elle respire, comme une flamme — c'est ce qui fait qu'on la
   regarde une seconde de plus. */
.scene::before {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-clair) 0%, transparent 70%);
  animation: respire 4.5s ease-in-out infinite;
}

.socle {
  position: absolute;
  bottom: 14%;
  width: 46%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--encre) 16%, transparent) 0%, transparent 72%);
}

.flambeau {
  position: relative;
  width: min(230px, 56vw);
  aspect-ratio: 100 / 200;
  transform-style: preserve-3d;
  animation: tourne 13s ease-in-out infinite alternate;
}
.flambeau img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* La face colorée est posée devant toute l'épaisseur. */
.flambeau .face { transform: translateZ(11px); }

@keyframes tourne {
  from { transform: rotateY(-26deg) rotateX(4deg) translateY(0); }
  to   { transform: rotateY(26deg) rotateX(-3deg) translateY(-10px); }
}
@keyframes respire {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50%      { opacity: 1; transform: scale(1.06); }
}

/* Quelqu'un qui a demandé moins d'animation le demande sérieusement : on
   garde le relief, on arrête le mouvement. */
@media (prefers-reduced-motion: reduce) {
  .flambeau { animation: none; transform: rotateY(-14deg); }
  .scene::before { animation: none; opacity: .8; }
}

/* ── Piliers ──────────────────────────────────────────────────────────── */
.piliers { padding-top: 24px; padding-bottom: 72px; }
.piliers h2, .limites h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 600;
  margin-bottom: 36px;
}

.piliers article {
  padding: 28px 0;
  border-top: 1px solid var(--bord);
}
@media (min-width: 860px) {
  .piliers article {
    display: grid;
    grid-template-columns: 5rem 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

.num {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.piliers h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 10px; }
@media (min-width: 860px) { .piliers h3 { margin-bottom: 0; } }
.piliers p { margin: 12px 0 0; color: var(--encre-douce); }
@media (min-width: 860px) { .piliers article > p:first-of-type { margin-top: 0; } }
.appui {
  font-size: 14.5px;
  padding-left: 14px;
  border-left: 2px solid var(--accent-clair);
}

/* ── Limites ──────────────────────────────────────────────────────────── */
.limites {
  padding: 48px 24px;
  margin-bottom: 72px;
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
}
@media (min-width: 64rem) { .limites { padding: 48px; } }
.limites ul { margin: 0; padding-left: 20px; }
.limites li { margin-bottom: 14px; color: var(--encre-douce); }
.limites li strong { color: var(--encre); font-weight: 600; }
.note {
  margin: 28px 0 0;
  padding: 16px 18px;
  background: var(--accent-clair);
  border-radius: var(--rayon);
  font-size: 14.5px;
}

/* ── Appel final ──────────────────────────────────────────────────────── */
.appel { text-align: center; padding-bottom: 88px; }
.appel h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 600; }
.appel p { color: var(--encre-douce); margin: 14px 0 28px; }

/* ── Pied ─────────────────────────────────────────────────────────────── */
.pied {
  border-top: 1px solid var(--bord);
  padding: 32px 24px 48px;
  text-align: center;
  font-size: 14.5px;
}
.pied p { margin: 0; }
.pied a { color: var(--accent); }
.pied-note { margin-top: 8px; color: var(--encre-douce); font-size: 13.5px; }
