/* nisenfeng — bleu de plan, papier calque, jaune surligneur réservé au devis. */
:root {
  --encre: #1b2a4a;
  --encre-douce: #4a5878;
  --calque: #eef3f8;
  --papier: #ffffff;
  --trait: #c9d5e3;
  --surligneur: #f2b705;
  --whatsapp: #128c4a;
  --whatsapp-fonce: #0d7039;
  --large: 1160px;
  --titre: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --texte: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { background: var(--calque); color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--surligneur); outline-offset: 2px; }
h1, h2 { font-family: var(--titre); font-optical-sizing: auto; letter-spacing: -.02em; line-height: 1.05; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 750; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Boutons ─────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; padding: .8em 1.35em;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s;
}
.bouton-whatsapp { background: var(--whatsapp); color: #fff; }
.bouton-whatsapp:hover { background: var(--whatsapp-fonce); }
.bouton-ligne { border-color: var(--encre); color: var(--encre); }
.bouton-ligne:hover { background: var(--encre); color: var(--calque); }
.petit-bouton { padding: .55em 1.1em; font-size: .95rem; }
.bouton-large { width: 100%; }

/* ── Barre ───────────────────────────────────────────────── */
.barre {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100% - var(--large)) / 2));
  background: rgba(238, 243, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait);
}
.marque { font-family: var(--titre); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; text-decoration: none; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--encre-douce); font-weight: 700; font-size: .95rem; }
.menu a:hover { color: var(--encre); }

/* ── Sections ────────────────────────────────────────────── */
.section { max-width: var(--large); margin: 0 auto; padding: 80px 16px; }
.intro { color: var(--encre-douce); max-width: 40em; margin-top: 12px; }

.accueil {
  max-width: var(--large); margin: 0 auto; padding: 64px 16px 72px;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.chapo { font-size: 1.15rem; color: var(--encre-douce); max-width: 34em; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.signature { margin-top: 26px; font-style: italic; color: var(--encre-douce); }

.telephone { justify-self: center; }
.telephone-cadre {
  width: min(300px, 70vw); aspect-ratio: 300 / 620; border-radius: 42px; padding: 11px;
  background: var(--encre); box-shadow: 0 30px 60px -28px rgba(27, 42, 74, .55);
  animation: arrivee .9s cubic-bezier(.2, .7, .2, 1) both;
}
.telephone-cadre img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.telephone figcaption { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--encre-douce); }
@keyframes arrivee { from { transform: translateY(28px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Bénéfices : texte en deux colonnes, sans cartes */
.benefices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; margin-top: 40px; }
.benefices div { border-top: 2px solid var(--encre); padding-top: 16px; }
.benefices dt { font-family: var(--titre); font-weight: 750; font-size: 1.3rem; letter-spacing: -.01em; }
.benefices dd { color: var(--encre-douce); margin-top: 6px; }

/* Exemple */
.exemple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 56px; align-items: center; }
.exemple-texte p { color: var(--encre-douce); margin-top: 14px; }
.coches { list-style: none; margin: 18px 0 28px; display: grid; gap: 8px; }
.coches li { padding-left: 30px; position: relative; }
.coches li::before {
  content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 9px;
  border-left: 3px solid var(--whatsapp); border-bottom: 3px solid var(--whatsapp); transform: rotate(-45deg);
}
.exemple-ecran { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--trait); background: var(--papier); box-shadow: 0 24px 50px -30px rgba(27, 42, 74, .5); }
.exemple-ecran img { transition: transform .5s; }
.exemple-ecran:hover img { transform: scale(1.02); }

/* ── Le devis : l'élément signature ──────────────────────── */
.devis {
  margin-top: 36px; max-width: 820px; background: var(--papier); color: var(--encre);
  padding: clamp(24px, 4vw, 48px); border-radius: 3px;
  box-shadow: 0 1px 0 var(--trait), 0 28px 60px -34px rgba(27, 42, 74, .55);
  background-image: linear-gradient(var(--papier), var(--papier)), repeating-linear-gradient(transparent 0 31px, #e9eff6 31px 32px);
}
.devis-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 3px solid var(--encre); }
.devis-titre { font-family: var(--titre); font-weight: 800; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1; }
.devis-sous { color: var(--encre-douce); margin-top: 6px; }
.devis-emetteur { text-align: right; font-size: .92rem; color: var(--encre-douce); line-height: 1.5; }
.lignes { width: 100%; border-collapse: collapse; margin-top: 8px; }
.lignes thead th { text-align: left; font-size: .85rem; color: var(--encre-douce); font-weight: 700; padding: 14px 0 8px; border-bottom: 1px solid var(--trait); }
.lignes th, .lignes td { padding: 14px 0; border-bottom: 1px dashed var(--trait); vertical-align: top; text-align: left; }
.lignes tbody th { font-weight: 700; padding-right: 20px; }
.lignes th span { display: block; font-weight: 400; color: var(--encre-douce); font-size: .95rem; margin-top: 4px; max-width: 36em; }
.lignes .montant { text-align: right; white-space: nowrap; }
.poste .montant { font-family: var(--titre); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }
.poste .montant small { display: block; font-family: var(--texte); font-size: .8rem; font-weight: 400; color: var(--encre-douce); letter-spacing: 0; }
.poste .prix { background: linear-gradient(transparent 58%, rgba(242, 183, 5, .6) 58% 90%, transparent 90%); padding: 0 3px; }
.lignes .inclus-ligne th { font-weight: 400; padding-left: 18px; position: relative; }
.inclus-ligne th::before { content: "+"; position: absolute; left: 0; color: var(--encre-douce); }
.inclus-ligne .montant { color: var(--whatsapp); font-weight: 700; }
.devis-pied { margin-top: 24px; display: grid; gap: 14px; }
.option { font-size: 1.05rem; }
.lancement { background: #fff6d6; border-left: 4px solid var(--surligneur); padding: 14px 16px; }
.conditions { font-size: .92rem; color: var(--encre-douce); }

/* Étapes : vraie séquence, donc numérotée */
.frise { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.frise li { counter-increment: etape; color: var(--encre-douce); position: relative; padding-top: 58px; }
.frise li::before {
  content: counter(etape); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--encre); color: var(--calque);
  font-family: var(--titre); font-weight: 800; font-size: 1.2rem;
}
.frise li::after { content: ""; position: absolute; top: 21px; left: 50px; right: -20px; height: 2px; background: var(--trait); }
.frise li:last-child::after { display: none; }
.frise strong { display: block; color: var(--encre); font-size: 1.08rem; margin-bottom: 4px; }

/* Questions */
.faq details { border-top: 1px solid var(--trait); padding: 18px 0; max-width: 52em; }
.faq h2 { margin-bottom: 24px; }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary { font-weight: 700; font-size: 1.08rem; cursor: pointer; }
.faq details p { color: var(--encre-douce); margin-top: 8px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.coordonnees { margin-top: 30px; display: grid; gap: 14px; }
.coordonnees div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--trait); }
.coordonnees dt { color: var(--encre-douce); }
.coordonnees dd { font-weight: 700; overflow-wrap: anywhere; }
.coordonnees dd a { font-weight: 400; margin-left: 6px; color: var(--encre-douce); }
.formulaire { background: var(--papier); border: 1px solid var(--trait); border-radius: 8px; padding: 28px; display: grid; gap: 18px; }
.champ { display: grid; gap: 6px; border: 0; }
.champ label, .champ legend { font-weight: 700; font-size: .95rem; }
.champ legend { margin-bottom: 8px; }
.champ input, .champ textarea { width: 100%; padding: .75em .9em; border: 1px solid #a9b8cc; border-radius: 6px; background: var(--calque); }
.champ input:focus, .champ textarea:focus { border-color: var(--encre); background: var(--papier); outline: none; box-shadow: 0 0 0 3px rgba(242, 183, 5, .45); }
.champ textarea { resize: vertical; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; padding: .45em .85em; border: 1px solid #a9b8cc; border-radius: 999px; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--encre); background: var(--calque); }
.choix input { width: auto; accent-color: var(--encre); }
.erreur { color: #a3321f; font-weight: 700; }
.aide { font-size: .88rem; color: var(--encre-douce); text-align: center; }

/* Pied */
.pied {
  background: var(--encre); color: #c8d2e3; font-size: .95rem; display: grid; gap: 14px;
  padding: 40px max(16px, calc((100% - var(--large)) / 2)) calc(40px + env(safe-area-inset-bottom, 0px));
}
.pied strong { color: #fff; }
.liens-pied { font-size: .9rem; }
.liens-pied a { color: #fff; }
.a-completer { background: #5a4a14; color: #ffe49a; padding: 0 4px; }

@media (max-width: 880px) {
  .menu { display: none; }
  .barre { justify-content: space-between; }
  .accueil, .exemple, .contact { grid-template-columns: 1fr; gap: 40px; }
  .accueil { padding-top: 40px; }
  .benefices { grid-template-columns: 1fr; gap: 26px; }
  .frise { grid-template-columns: 1fr 1fr; }
  .frise li:nth-child(2)::after { display: none; }
  .section { padding-block: 60px; }
}
@media (max-width: 520px) {
  .frise { grid-template-columns: 1fr; }
  .frise li::after { display: none; }
  .actions .bouton { flex: 1; }
  .poste .montant { font-size: 1.3rem; }
  .devis-emetteur { text-align: left; }
  .coordonnees div { grid-template-columns: 1fr; gap: 2px; }
  .lignes th span { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .telephone-cadre { animation: none; }
  .exemple-ecran img { transition: none; }
}

/* Pages légales */
.texte-legal { max-width: 800px; }
.texte-legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: none; }
.texte-legal h2 { font-size: 1.35rem; margin-top: 36px; }
.texte-legal p, .texte-legal ul { margin-top: 10px; }
.texte-legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.texte-legal .maj { color: var(--encre-douce); font-size: .9rem; margin-top: 8px; }
.retour { display: inline-block; margin-bottom: 18px; color: var(--encre-douce); text-decoration: none; font-weight: 700; }
