:root {
  --rouge: #d92027;
  --rouge-fonce: #b3141b;
  --bleu: #1675a5;
  --bleu-fonce: #0e4f71;
  --bleu-clair: #eaf4fa;
  --texte: #1f2a33;
  --texte-doux: #4b5a66;
  --fond: #ffffff;
  --fond-doux: #f6f8fa;
  --bord: #dde4ea;
  --rayon: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

img { max-width: 100%; height: auto; }

a { color: var(--bleu); }

h1, h2, h3 { line-height: 1.2; color: var(--bleu-fonce); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.conteneur { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Bandeau impôt */
.bandeau {
  background: var(--bleu-fonce);
  color: #fff;
  text-align: center;
  font-size: .95rem;
  padding: 8px 16px;
}
.bandeau strong { color: #fff; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--bord);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.logo img { display: block; width: 260px; }
.menu { display: flex; gap: 6px 20px; align-items: center; flex-wrap: wrap; }
.menu a { text-decoration: none; color: var(--texte); font-weight: 600; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--rouge); }

.tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--rouge); text-decoration: none; white-space: nowrap;
}

/* Boutons */
.bouton {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--rouge);
  background: var(--rouge);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}
.bouton:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.bouton.secondaire { background: transparent; color: var(--rouge); }
.bouton.secondaire:hover { background: var(--rouge); color: #fff; }
.boutons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Héros */
.heros {
  background: linear-gradient(135deg, var(--bleu-clair), #fff 70%);
  padding: 64px 0;
}
.heros p.intro { font-size: 1.2rem; color: var(--texte-doux); max-width: 640px; }

/* Sections */
section { padding: 56px 0; }
section.doux { background: var(--fond-doux); }

.grille { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grille-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.carte {
  background: #fff;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 24px;
}
.carte .icone {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bleu-clair); color: var(--bleu);
  margin-bottom: 12px;
}
.carte .icone.rouge { background: #fdeaea; color: var(--rouge); }
.carte p { margin: 0; color: var(--texte-doux); }

/* Offres */
.offre { display: flex; flex-direction: column; border-top: 6px solid var(--bleu); }
.offre.exterieur { border-top-color: var(--rouge); }
.offre .categorie { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-doux); }
.offre h3 { font-size: 1.6rem; margin-top: 4px; }
.prix { margin: 12px 0; }
.prix .barre { color: var(--texte-doux); text-decoration: line-through; margin-right: 8px; }
.prix .net { font-size: 2rem; font-weight: 800; color: var(--rouge); }
.prix small { display: block; color: var(--texte-doux); }
.offre ul { padding-left: 20px; margin: 8px 0 16px; }
.offre .boutons { margin-top: auto; }

.liste-coche { list-style: none; padding: 0; margin: 0; }
.liste-coche li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.liste-coche li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bleu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Étapes */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.etapes li { counter-increment: etape; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px; }
.etapes li::before {
  content: counter(etape);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rouge); color: #fff; font-weight: 800; margin-bottom: 10px;
}

/* Appel à l'action */
.cta { background: var(--bleu-fonce); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #dbe9f2; }
.cta .boutons { justify-content: center; }
.cta .bouton.secondaire { color: #fff; border-color: #fff; }
.cta .bouton.secondaire:hover { background: #fff; color: var(--bleu-fonce); }

/* Formulaire */
form { display: grid; gap: 16px; }
.champs-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { font-weight: 600; display: block; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid #b9c5cf; border-radius: 10px; background: #fff; color: var(--texte);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--bleu-clair); border-color: var(--bleu); }
.cache { position: absolute; left: -9999px; }
.petit { font-size: .9rem; color: var(--texte-doux); }

.a-confirmer { background: #fff3c4; border-radius: 4px; padding: 0 4px; font-size: .85em; color: #6b5200; }

/* Pied de page */
.pied { background: #10202c; color: #c9d5de; padding: 48px 0 24px; font-size: .95rem; }
.pied a { color: #fff; }
.pied .grille { margin-bottom: 32px; }
.pied h3 { color: #fff; font-size: 1.05rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied .bas { border-top: 1px solid #2b3d4b; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  body { font-size: 18px; }
  .logo img { width: 200px; }
  .menu { width: 100%; justify-content: space-between; font-size: .95rem; }
  .heros { padding: 40px 0; }
  section { padding: 40px 0; }
}

.texte-long { max-width: 820px; }
.texte-long h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prix .par-mois { color: var(--texte-doux); font-weight: 600; }
