/* Tchiden - page vitrine publique.
   Mêmes jetons et mêmes polices que l'application (voir DESIGN.md) : la page
   et le produit doivent se ressembler, sinon la promesse ne tient pas.
   Arbitre appliqué : design-taste-frontend. Hero asymétrique, un seul accent,
   zéro eyebrow, zéro tiret cadratin, motion sobre. */

@font-face { font-family: 'Manrope'; src: url('fonts/manrope.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/poppins-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --indigo: #14315C;
  --encre: #0D1F38;
  --bg: #F8FAFD;
  --surface: #FFFFFF;
  --ink: #14315C;
  --muted: #5A729A;
  --faint: #5C749B;
  --line: #DCE6F5;
  --orange: #FF7900;
  --vert: #0A7F4E;
  --sur-action: #FFFFFF;
  --ombre: 0 2px 6px rgba(13,31,56,.05), 0 18px 40px -14px rgba(13,31,56,.18);
  --rayon: 24px;
}

/* Thème sombre : la page suit le téléphone, comme l'application. Un seul
   thème par page, aucune section ne s'inverse. */
@media (prefers-color-scheme: dark) {
  :root {
    --indigo: #5EEAD4;
    --encre: #E8F4F7;
    --bg: #04141A;
    --surface: #123A45;
    --ink: #E8F4F7;
    --muted: #9FC3CD;
    --faint: #7FA6B2;
    --line: #1C4A57;
    --vert: #4ADE80;
    --sur-action: #04141A;
    --ombre: 0 2px 6px rgba(0,0,0,.3), 0 18px 40px -14px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Outfit', 'Poppins', sans-serif; font-weight: 900; letter-spacing: -.025em; line-height: .98; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.25; }
p { max-width: 62ch; }

.accent { color: var(--orange); }

a { color: inherit; }

.saut {
  position: absolute; left: -9999px;
  background: var(--indigo); color: var(--sur-action);
  padding: 12px 18px; border-radius: 10px;
}
.saut:focus { left: 16px; top: 16px; z-index: 50; }

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

/* ── En-tête : une seule ligne, hauteur contenue ── */
.entete {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 72px; padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.marque { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--orange); min-height: 44px; }
.marque-signe { width: 26px; height: 26px; flex: 0 0 auto; }
.marque-nom {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink);
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.bouton { color: var(--sur-action); }
.nav a:not(.bouton) { display: none; }
@media (min-width: 860px) { .nav a:not(.bouton) { display: inline; } }

/* ── Boutons ── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px; border-radius: 999px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .95rem;
  text-decoration: none; white-space: nowrap;
  transition: transform .16s cubic-bezier(.5,0,0,1);
}
.bouton-plein { background: var(--indigo); color: var(--sur-action); }
.bouton-vide { border: 1.5px solid var(--indigo); color: var(--indigo); }
.bouton-grand { padding: 15px 30px; font-size: 1rem; }
.bouton:active { transform: scale(.97); }

section { padding: clamp(60px, 11vw, 120px) clamp(16px, 4vw, 40px); max-width: 1180px; margin: 0 auto; }
/* L'en-tête est collant : sans cette réserve, un lien d'ancrage amène le
   titre de section SOUS l'en-tête et l'utilisateur croit avoir raté la cible. */
section[id] { scroll-margin-top: 88px; }

.section-sous { color: var(--muted); font-size: 1.02rem; margin-top: 14px; }

/* ── Hero : asymétrique, jamais centré ── */
.hero {
  display: grid; gap: clamp(36px, 6vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
  padding-top: clamp(44px, 7vw, 88px);
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; } }
.hero-sous { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Le devis : reprise fidèle du composant réel de l'application. */
.devis {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 22px 24px;
  font-variant-numeric: tabular-nums;
}
.devis-tete {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .8rem;
  color: var(--muted); padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.devis-l { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; color: var(--muted); font-size: .95rem; }
.devis-l b { color: var(--ink); font-family: 'Poppins', sans-serif; font-weight: 700; }
.devis-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 16px; }
.devis-total b { font-size: 1.32rem; color: var(--encre); }
.devis-note { color: var(--faint); font-size: .82rem; margin-top: 14px; }

/* ── Tarifs : trois blocs, dont un mis en avant. Pas de tableau à filets. ── */
.grille-tarifs {
  display: grid; gap: 16px; margin-top: 42px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tarif {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--rayon); padding: 26px 24px 24px;
}
.tarif-vedette { border-color: var(--orange); }
.tarif-chiffre {
  font-family: 'Outfit', sans-serif; font-weight: 900; letter-spacing: -.03em;
  font-size: 3rem; line-height: 1; margin-top: 14px; color: var(--ink);
}
.tarif-chiffre span { font-size: 1.4rem; color: var(--muted); }
.tarif-vedette .tarif-chiffre { color: var(--orange); }
.tarif-min { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .88rem; color: var(--muted); margin-top: 6px; }
.tarif-detail { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.tarifs-pied { color: var(--muted); font-size: .95rem; margin-top: 28px; max-width: 70ch; }

/* ── Parcours : fil vertical, verbes en titre ── */
.etapes { list-style: none; margin-top: 42px; display: grid; gap: 4px; }
.etapes li {
  position: relative; padding: 22px 0 22px 34px;
  border-left: 2px solid var(--line);
}
.etapes li::before {
  content: ''; position: absolute; left: -7px; top: 28px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange);
}
.etapes li:last-child { border-left-color: transparent; }
.etapes p { color: var(--muted); margin-top: 8px; font-size: .97rem; }

/* ── Sécurité : asymétrie 40/60 ── */
.securite { display: grid; gap: clamp(30px, 5vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .securite { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.securite-texte p { color: var(--muted); margin-top: 16px; }
.garanties { list-style: none; display: grid; gap: 22px; }
.garanties li { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.garanties li:last-child { border-bottom: 0; padding-bottom: 0; }
.garanties p { color: var(--muted); margin-top: 7px; font-size: .95rem; }

/* ── Appel final ── */
.final { text-align: center; }
.final h2 { max-width: 18ch; margin: 0 auto; }
.final .bouton { margin-top: 28px; }

/* ── Pied ── */
.pied {
  padding: 40px clamp(16px, 4vw, 40px) 56px;
  border-top: 1px solid var(--line);
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.pied-marque { font-family: 'Poppins', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
/* Les liens du pied faisaient 23 px de haut : sous le pouce, on vise à côté.
   La zone cliquable est portée à 44 px sans écarter le texte, en compensant
   le rembourrage par une marge négative. */
.pied-liens { display: flex; gap: 20px; margin: -11px 0; }
.pied-liens a {
  text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 700;
  display: inline-flex; align-items: center; min-height: 44px;
}
.pied-liens a:hover { color: var(--ink); }
.pied-mention { color: var(--faint); font-size: .85rem; width: 100%; }

/* ── Révélation au défilement : on n'anime QUE le déplacement.
   Si le script ne s'exécute pas, tout reste lisible. ── */
.rev { transform: translateY(14px); }
.rev-in { transform: none; transition: transform .5s cubic-bezier(.5,0,0,1); }

@media (prefers-reduced-motion: reduce) {
  .rev, .rev-in { transform: none; transition: none; }
  .bouton { transition: none; }
}
