/* =========================================================================
   AutoBâti — feuille de style de la vitrine et des guides (pages publiques)
   Indépendante de css/style.css (l'application). Mêmes couleurs.
   ========================================================================= */

:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #f0eee8;
  --text: #1d1f22;
  --text-2: #5d6168;
  --border: #e1ded6;
  --accent: #c2531b;
  --accent-strong: #a3430f;
  --accent-soft: #fbe9df;
  --ok: #2f7d4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 28px rgba(20, 20, 20, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141517; --surface: #1d1f22; --surface-2: #26282c; --text: #ececea; --text-2: #a3a6ad;
    --border: #33363b; --accent: #e57a45; --accent-strong: #f08f5d; --accent-soft: #3a261c; --ok: #5cc28a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141517; --surface: #1d1f22; --surface-2: #26282c; --text: #ececea; --text-2: #a3a6ad;
  --border: #33363b; --accent: #e57a45; --accent-strong: #f08f5d; --accent-soft: #3a261c; --ok: #5cc28a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* En-tête */
.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--text-2); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--text) !important; border-color: var(--border); }
.btn-small { padding: 8px 14px; font-size: .9rem; }

/* Héros */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text-2); margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure { margin-top: 18px; color: var(--text-2); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; list-style: none; }
.reassure li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.phone { justify-self: center; width: min(320px, 100%); border-radius: 28px; overflow: hidden; border: 8px solid #1d1f22; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* Sections */
section.block { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.block h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; }
.block .intro { color: var(--text-2); max-width: 720px; margin: 0 0 32px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-2); font-size: .97rem; }
.card .ico { font-size: 1.6rem; margin-bottom: 8px; }
.shot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--text-2); font-size: .97rem; }
.postes { columns: 2 280px; column-gap: 32px; padding-left: 20px; }
.postes li { margin-bottom: 6px; break-inside: avoid; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 10px 0 0; color: var(--text-2); }

/* Bandeau final */
.final { text-align: center; }
.final .cta { justify-content: center; }

/* Guides (articles) */
.article { padding: 40px 0 56px; }
.crumbs { font-size: .9rem; color: var(--text-2); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 14px; }
.article h2 { font-size: 1.45rem; margin: 36px 0 10px; }
.article h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.formula { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 14px 18px; margin: 16px 0; font-weight: 600; }
.example { background: var(--accent-soft); border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.example p:first-child { margin-top: 0; }
.example p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: 10px; overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 600; }
.note { color: var(--text-2); font-size: .92rem; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 32px; }
.app-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 32px 0; box-shadow: var(--shadow); }
.app-box h2 { margin-top: 0; font-size: 1.25rem; }

/* Pied de page */
footer.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-2); font-size: .9rem; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.foot a { color: var(--text-2); }
footer.foot .mediation { flex-basis: 100%; margin: 4px 0 0; font-size: .8rem; line-height: 1.5; }

/* ----- Atouts, tarif et liste à coches ----- */
.grid.deux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card-fort { border-color: var(--accent); }
.liste-ok { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; color: var(--text); font-size: .95rem; }
.liste-ok li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.tarif { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.tarif-carte { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.tarif-nom { margin: 0; font-weight: 600; color: var(--text-2); }
.tarif-prix { margin: 6px 0 4px; font-size: 3rem; font-weight: 800; line-height: 1.1; }
.tarif-prix span { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.tarif-btn { width: 100%; margin-top: 22px; font-size: 1.05rem; }
.tarif-note { margin: 10px 0 0; font-size: .85rem; color: var(--text-2); text-align: center; }
.tarif-cote { display: grid; gap: 20px; }
@media (max-width: 820px) { .tarif { grid-template-columns: 1fr; } }
.portrait { float: right; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 0 12px 20px; }
