:root {
  --vert: #0f7a5a;
  --vert-fonce: #0a5640;
  --vert-pale: #e3f1ec;
  --ambre: #f2a516;
  --fond: #f3f5f4;
  --carte: #ffffff;
  --texte: #14201b;
  --gris: #5d6a64;
  --bord: #e3e8e5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vert: #3fbf92;
    --vert-fonce: #2e9c76;
    --vert-pale: #17352b;
    --fond: #0f1513;
    --carte: #18201d;
    --texte: #e6ece9;
    --gris: #a3afa9;
    --bord: #2a3530;
  }
}
:root[data-theme="dark"] {
  --vert: #3fbf92;
  --vert-fonce: #2e9c76;
  --vert-pale: #17352b;
  --fond: #0f1513;
  --carte: #18201d;
  --texte: #e6ece9;
  --gris: #a3afa9;
  --bord: #2a3530;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.55 Inter, system-ui, sans-serif;
}
a { color: var(--vert); }
.page { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--texte); text-decoration: none; }
.marque img { width: 36px; height: 36px; border-radius: 9px; }
.entete nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.entete nav a { color: var(--gris); text-decoration: none; }
.entete nav a:hover { color: var(--vert); }

/* Bouton principal */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--vert); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 15px 26px; border-radius: 14px;
}
.bouton:hover { background: var(--vert-fonce); }
.bouton-secondaire { background: var(--vert-pale); color: var(--vert); }
.bouton-secondaire:hover { background: var(--vert-pale); color: var(--vert-fonce); }

/* Accroche */
.accroche { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 40px 0 56px; }
.accroche h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.5px; }
.accroche h1 em { font-style: normal; color: var(--vert); }
.accroche p.chapeau { font-size: 19px; color: var(--gris); margin: 0 0 28px; max-width: 34em; }
.accroche .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.petit { color: var(--gris); font-size: 14px; }
#version { margin-top: 12px; }

/* Maquette de téléphone (CSS seul) */
.telephone {
  justify-self: center; width: 270px; padding: 14px; border-radius: 34px;
  background: var(--texte); box-shadow: 0 30px 60px rgba(15, 122, 90, .18);
}
.ecran { background: var(--fond); border-radius: 22px; padding: 16px 14px 20px; display: grid; gap: 10px; }
.ecran .titre { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.ecran .titre span { color: var(--ambre); }
.case { background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 10px 12px; }
.case .etiquette { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.case .nombre { font-size: 24px; font-weight: 800; white-space: nowrap; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ligne-paiement { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ligne-paiement strong { font-size: 14px; }
.pastille { background: var(--vert-pale); color: var(--vert); font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 999px; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--bord); }
section h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; letter-spacing: -0.3px; }
section .intro { color: var(--gris); font-size: 18px; margin: 0 0 32px; max-width: 40em; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 22px; }
.carte h3 { margin: 10px 0 6px; font-size: 18px; }
.carte p { margin: 0; color: var(--gris); }
.etape { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--vert-pale); color: var(--vert); font-weight: 800; }

/* Tarifs */
.tarif .prix { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.tarif .unite { color: var(--vert); font-weight: 700; }
.tarif.mis-en-avant { border: 2px solid var(--vert); }
.offert { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--vert-pale); color: var(--vert); font-weight: 600; }

/* Pied de page */
.pied { border-top: 1px solid var(--bord); padding: 28px 0 40px; color: var(--gris); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.pied nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pied a { color: var(--gris); }

/* Pages de texte (conditions, confidentialité) */
.texte { max-width: 760px; margin: 0 auto; padding: 8px 0 48px; }
.texte h1 { font-size: 34px; margin: 10px 0 4px; }
.texte h2 { font-size: 21px; margin: 32px 0 8px; }
.texte .date { color: var(--gris); margin: 0 0 24px; }
.texte table { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--carte); border-radius: 12px; overflow: hidden; }
.texte th, .texte td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.texte th { font-size: 13px; color: var(--gris); }

@media (max-width: 760px) {
  .accroche { grid-template-columns: 1fr; padding-top: 20px; }
  .telephone { width: 260px; }
  .case .nombre { font-size: 20px; }
  .ligne-paiement span:first-child { white-space: nowrap; }
  .entete nav { display: none; }
  .bouton { width: 100%; justify-content: center; }
  .texte table { display: block; overflow-x: auto; }
}
.secours { margin-top: 6px; max-width: 34em; }
