/* zelo.life — page publique. Aucune dépendance : polices système, clair/sombre
   suivant prefers-color-scheme. */

:root {
  color-scheme: light dark;
  --fond: #f6f5f1;
  --surface: #ffffff;
  --texte: #161614;
  --discret: #57564f;
  --trait: #dcdad2;
  --trait-fort: #b9b6ab;
  --accent: #b9400b;
  --accent-texte: #ffffff;
  --focus: #1d4ed8;

  --ok-fond: #dcf5e3;   --ok-texte: #14532d;
  --test-fond: #fdf0c8; --test-texte: #7a3a06;
  --prep-fond: #dde8fb; --prep-texte: #1e3a8a;
  --pause-fond: #e9e7e2; --pause-texte: #3f3d38;
  --erreur: #b42318;
  --succes: #166534;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --rayon: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #111110;
    --surface: #1a1a18;
    --texte: #edece8;
    --discret: #a8a69e;
    --trait: #2e2d29;
    --trait-fort: #4a4943;
    --accent: #fb923c;
    --accent-texte: #1a0d03;
    --focus: #93c5fd;

    --ok-fond: #12301d;   --ok-texte: #86efac;
    --test-fond: #33270a; --test-texte: #fcd34d;
    --prep-fond: #142446; --prep-texte: #a5c4fd;
    --pause-fond: #2a2926; --pause-texte: #d6d3cc;
    --erreur: #fca5a5;
    --succes: #86efac;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-texte); }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

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

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--texte); color: var(--fond);
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.evitement:focus { top: 1rem; }

.cadre { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .cadre { padding-inline: 28px; } }

/* En-tête */
.entete { border-bottom: 1px solid var(--trait); }
.entete-cadre { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.marque {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em; text-decoration: none;
}
.marque span { color: var(--accent); }
.entete nav { margin-left: auto; display: none; }
@media (min-width: 720px) { .entete nav { display: block; } }
.nav { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; font-size: 0.95rem; }
.nav a { color: var(--discret); text-decoration: none; }
.nav a:hover { color: var(--texte); }
.langue {
  margin-left: auto; font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--trait-fort); border-radius: 999px; padding: 0.3rem 0.7rem;
  text-decoration: none; letter-spacing: 0.04em;
}
@media (min-width: 720px) { .langue { margin-left: 0; } }
.langue:hover { border-color: var(--texte); }

/* Hero */
.hero { padding-block: clamp(3.5rem, 11vw, 7.5rem) clamp(3rem, 8vw, 5rem); }
.surtitre {
  font-family: var(--mono); font-size: 0.85rem; color: var(--discret);
  letter-spacing: 0.02em; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.35rem, 7.4vw, 4.6rem);
  font-weight: 750; letter-spacing: -0.035em; max-width: 15ch;
}
.hero-texte {
  margin-top: 1.5rem; max-width: 60ch; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--discret);
}
.hero-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.75rem;
  margin-top: 1.25rem; font-family: var(--mono); font-size: 0.82rem; color: var(--discret);
}
.hero-stats strong { color: var(--texte); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bouton--plein { background: var(--texte); color: var(--fond); }
.bouton--plein:hover { background: var(--accent); color: var(--accent-texte); }
.bouton--trait { border-color: var(--trait-fort); color: var(--texte); }
.bouton--trait:hover { border-color: var(--texte); }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); border-top: 1px solid var(--trait); }
.section-tete { margin-bottom: 2rem; max-width: 62ch; }
.section-tete h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -0.025em; font-weight: 750; }
.section-tete p { margin-top: 0.6rem; color: var(--discret); }

/* Produits */
.grille {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
}
.produit article {
  height: 100%; display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.35rem 1.35rem 1.25rem;
  transition: border-color .15s ease;
}
.produit article:hover { border-color: var(--trait-fort); }
.produit-tete { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.produit-nom { font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 700; }
.statut {
  flex-shrink: 0; font-size: 0.78rem; font-weight: 650; line-height: 1;
  padding: 0.42rem 0.65rem; border-radius: 999px; white-space: nowrap;
}
.statut--en-ligne { background: var(--ok-fond); color: var(--ok-texte); }
.statut--en-test { background: var(--test-fond); color: var(--test-texte); }
.statut--en-preparation { background: var(--prep-fond); color: var(--prep-texte); }
.statut--en-pause { background: var(--pause-fond); color: var(--pause-texte); }
.statut::before {
  content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: currentColor; margin-right: 0.4rem; vertical-align: 0.05rem;
}
.produit-lien {
  align-self: flex-start; font-family: var(--mono); font-size: 0.88rem; color: var(--accent);
  text-decoration: none; overflow-wrap: anywhere;
}
.produit-lien:hover { text-decoration: underline; }
.produit-format {
  font-size: 0.8rem; font-weight: 600; color: var(--discret); text-transform: uppercase; letter-spacing: 0.06em;
}
.produit-pitch { font-size: 1.02rem; }
.produit-pourquoi { font-size: 0.93rem; color: var(--discret); }
.etiquette {
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--texte); margin-right: 0.25rem;
}
.pile {
  list-style: none; margin: auto 0 0; padding: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.pile li {
  font-family: var(--mono); font-size: 0.74rem; color: var(--discret);
  border: 1px solid var(--trait); border-radius: 6px; padding: 0.15rem 0.45rem;
}

/* Méthode */
.methode {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem;
}
@media (min-width: 820px) { .methode { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.methode-num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.methode-item h3 { font-size: 1.2rem; margin: 0.4rem 0 0.5rem; letter-spacing: -0.015em; }
.methode-item p { color: var(--discret); }

/* Expertise / Consulting */
.expertise-liste {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.expertise-item {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.35rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color .15s ease;
}
.expertise-item:hover { border-color: var(--trait-fort); }
.expertise-item h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
.expertise-item p { font-size: 0.93rem; color: var(--discret); }
.expertise-cta { margin-top: 2rem; }

/* Journal */
.journal { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.entree {
  display: grid; gap: 0.2rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--trait);
}
.entree:first-child { border-top: 1px solid var(--trait); }
@media (min-width: 640px) { .entree { grid-template-columns: 11rem 1fr; } }
.entree time { font-family: var(--mono); font-size: 0.85rem; color: var(--discret); padding-top: 0.15rem; }

/* Contact */
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; } }
.formulaire { display: grid; gap: 1.1rem; position: relative; }
.champ { display: grid; gap: 0.4rem; }
.champ label { font-weight: 600; font-size: 0.95rem; }
.champ input, .champ textarea {
  width: 100%; font: inherit; color: var(--texte); background: var(--surface);
  border: 1.5px solid var(--trait-fort); border-radius: 10px; padding: 0.75rem 0.9rem;
}
.champ textarea { resize: vertical; min-height: 9rem; }
.champ input:focus-visible, .champ textarea:focus-visible { outline-offset: 1px; border-color: var(--texte); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.champ--piege {
  position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.aide { font-size: 0.85rem; color: var(--discret); }
.retour { min-height: 1.5rem; font-weight: 600; }
.retour:empty { display: none; }
.retour--ok { color: var(--succes); }
.retour--invalide, .retour--limite, .retour--erreur { color: var(--erreur); }
.formulaire .bouton { justify-self: start; }

/* Pied */
.pied { border-top: 1px solid var(--trait); padding-block: 2rem 2.5rem; font-size: 0.92rem; color: var(--discret); }
.pied-cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.pied-liens { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--texte); text-decoration: underline; }

/* Consulting page */
.service-duree {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 650; line-height: 1;
  padding: 0.3rem 0.6rem; border-radius: 999px; white-space: nowrap;
  background: var(--prep-fond); color: var(--prep-texte); margin-bottom: 0.4rem;
}
.pourquoi-liste {
  list-style: none; margin: 0; padding: 0; max-width: 60ch; display: grid; gap: 0.9rem;
}
.pourquoi-liste li {
  padding-left: 1.5rem; position: relative; color: var(--discret);
}
.pourquoi-liste li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.faq-liste {
  list-style: none; margin: 0; padding: 0; max-width: 760px;
}
.faq-item {
  padding: 1.2rem 0; border-bottom: 1px solid var(--trait);
}
.faq-item:first-child { border-top: 1px solid var(--trait); }
.faq-q { font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.faq-r { color: var(--discret); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Portfolio : preuves chiffrées */
.preuve-chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 0.25rem 0; }
.preuve-chiffres div { min-width: 0; }
.preuve-chiffres dt { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--texte); }
.preuve-chiffres dd { margin: 0; font-size: 0.85rem; color: var(--discret); }
.preuves-note { margin-top: 1rem; font-size: 0.85rem; color: var(--discret); }
