/* Feuille de style commune aux pages du site vitrine */
:root {
  --fond: #fbfaf7;
  --surface: #ffffff;
  --texte: #1d2330;
  --doux: #5b6475;
  --bord: #e4e1d8;
  --accent: #b4232f;
  --accent-fonce: #8e1a24;
  --accent-pale: #fbecec;
  --vert: #1f7a4d;
  --rayon: 14px;
  --largeur: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #14161c;
    --surface: #1c1f27;
    --texte: #eceef3;
    --doux: #a3abbb;
    --bord: #2e333e;
    --accent: #ef6b74;
    --accent-fonce: #ff8a92;
    --accent-pale: #2b1d21;
    --vert: #56c48d;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-fonce); }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

/* En-tête */
.entete { border-bottom: 1px solid var(--bord); background: var(--surface); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--texte); text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { color: var(--doux); text-decoration: none; }
.nav a:hover { color: var(--texte); }
.nav .bouton { color: #fff; }

/* Boutons */
.bouton {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 22px; border-radius: 10px; border: 0;
}
.bouton:hover { background: var(--accent-fonce); color: #fff; }
.bouton.secondaire { background: transparent; color: var(--texte); border: 1px solid var(--bord); }
.bouton.secondaire:hover { border-color: var(--doux); color: var(--texte); }
.nav .bouton { padding: 8px 16px; }

/* Accroche */
.accroche { padding: 64px 0 48px; }
.accroche .conteneur { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.surtitre { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
.accroche p.intro { font-size: 19px; color: var(--doux); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.garanties { display: flex; gap: 18px; flex-wrap: wrap; margin: 22px 0 0; padding: 0; list-style: none; color: var(--doux); font-size: 15px; }
.garanties li::before { content: "✓ "; color: var(--vert); font-weight: 700; }
.illustration { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.12)); }

/* Sections */
section { padding: 56px 0; }
section.alterne { background: var(--surface); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.sous-titre { color: var(--doux); margin: 0 0 36px; max-width: 46em; }
h3 { font-size: 19px; margin: 0 0 8px; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: etape; padding: 0; list-style: none; }
.etapes li { background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; }
section:not(.alterne) .etapes li { background: var(--surface); }
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-pale); color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.etapes p { margin: 0; color: var(--doux); }

.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.atout { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; background: var(--surface); }
.alterne .atout { background: var(--fond); }
.atout p { margin: 0; color: var(--doux); }

.exemple { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
pre {
  background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; margin: 0;
}
.bilan {
  border-left: 4px solid var(--vert); background: var(--fond); padding: 14px 18px; border-radius: 8px;
  font-weight: 600; margin: 0 0 16px;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--bord); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--doux); margin: 12px 0 0; }

.appel { text-align: center; }
.appel p { color: var(--doux); margin: 0 0 24px; }

/* Pages de texte (mentions légales, etc.) */
.texte { max-width: 760px; padding: 48px 20px 64px; }
.texte h1 { font-size: 34px; }
.texte h2 { font-size: 22px; margin-top: 36px; }
.texte .a-remplir { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .texte .a-remplir { background: #4a3b00; color: #ffe58a; } }

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

/* Téléphone */
@media (max-width: 820px) {
  .accroche { padding: 40px 0 32px; }
  .accroche .conteneur, .exemple { grid-template-columns: 1fr; gap: 32px; }
  .etapes, .atouts { grid-template-columns: 1fr; }
  .nav a:not(.bouton) { display: none; }
  section { padding: 44px 0; }
}
