
:root {
  --primary: #2C5F4E;
  --primary-dark: #1f4537;
  --terracotta: #C97064;
  --terracotta-dark: #a85a4f;
  --bg: #F7F3EC;
  --bg-alt: #FFFFFF;
  --text: #2A2A2A;
  --muted: #5A5A5A;
  --border: #DDD5C7;
  --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: 'Spectral', Georgia, serif; color: var(--primary); line-height: 1.25; font-weight: 500; }
h1 { font-size: 2.85rem; margin-bottom: 1rem; font-weight: 600; }
h2 { font-size: 2rem; margin: 2.75rem 0 1rem; font-weight: 500; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--terracotta); }
a:hover { color: var(--terracotta-dark); }
a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
header.site-header { background: var(--bg-alt); border-bottom: 3px solid var(--primary); padding: 1.5rem 0; position: relative; }
.site-header::after { content: ""; position: absolute; bottom: -3px; left: 0; width: 30%; height: 3px; background: var(--terracotta); }
.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.brand { font-family: 'Spectral', serif; font-size: 1.55rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.brand span { color: var(--terracotta); font-weight: 500; font-style: italic; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.hero { padding: 4.5rem 0 4rem; background: linear-gradient(135deg, var(--bg) 0%, #EFE9DD 100%); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -100px; right: -100px; width: 360px; height: 360px; background: var(--terracotta); opacity: 0.08; border-radius: 50%; }
.hero::after { content: ""; position: absolute; bottom: -60px; left: -60px; width: 200px; height: 200px; background: var(--primary); opacity: 0.05; border-radius: 50%; }
.hero .container { position: relative; z-index: 2; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; margin-bottom: 2rem; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.btn { display: inline-block; padding: 0.9rem 1.85rem; border-radius: 4px; font-weight: 600; text-decoration: none; transition: all 0.2s; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: transparent; color: var(--terracotta-dark); border: 2px solid var(--terracotta); }
.btn-secondary:hover { background: var(--terracotta); color: var(--white); }
section { padding: 3.5rem 0; }
section.alt { background: var(--bg-alt); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.card { background: var(--bg-alt); padding: 0; border-radius: 4px; border: 1px solid var(--border); overflow: hidden; transition: all 0.2s; }
.card:hover { border-color: var(--terracotta); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(44,95,78,0.08); }
.card::before { content: ""; display: block; height: 80px; background: linear-gradient(135deg, var(--primary) 0%, var(--terracotta) 100%); opacity: 0.85; position: relative; }
.card::after { content: "▣"; position: relative; display: block; margin-top: -55px; margin-left: 1.5rem; font-size: 1.75rem; color: var(--white); }
.card h3 { margin: 0; padding: 1.25rem 1.5rem 0.5rem; color: var(--primary); }
.card p { padding: 0 1.5rem 1.5rem; color: var(--muted); margin: 0; }
.badge { display: inline-block; background: var(--terracotta); color: var(--white); padding: 0.35rem 0.9rem; border-radius: 2px; font-size: 0.82rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
ul.checklist { list-style: none; }
ul.checklist li { padding-left: 1.85rem; position: relative; margin-bottom: 0.65rem; }
ul.checklist li::before { content: "▶"; position: absolute; left: 0; color: var(--terracotta); font-size: 0.85rem; top: 0.3rem; }
.steps { counter-reset: step; margin-top: 2.5rem; }
.step { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; padding: 1.5rem; background: var(--bg-alt); border-left: 4px solid var(--terracotta); border-radius: 0 4px 4px 0; }
.step-num { background: var(--primary); color: var(--white); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-family: 'Spectral', serif; font-size: 1.2rem; }
form { display: grid; gap: 1rem; max-width: 600px; }
label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.95rem; color: var(--primary); }
input, select, textarea { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 1rem; background: var(--bg-alt); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; border-color: var(--primary); }
textarea { min-height: 130px; resize: vertical; }
button[type=submit] { background: var(--primary); color: var(--white); border: none; padding: 1rem 2.25rem; border-radius: 4px; font-weight: 600; cursor: pointer; font-size: 1rem; }
button[type=submit]:hover { background: var(--primary-dark); }
footer { background: var(--primary); color: var(--bg); padding: 2.5rem 0 2rem; font-size: 0.85rem; line-height: 1.7; margin-top: 4rem; }
footer .legal { opacity: 0.92; }
footer a { color: var(--terracotta); }
footer .footer-links { margin-top: 0.75rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.faq dt { font-weight: 600; margin-top: 1.5rem; color: var(--primary); font-family: 'Spectral', serif; font-size: 1.15rem; }
.faq dd { margin: 0.4rem 0 0; color: var(--muted); padding-left: 1.25rem; border-left: 2px solid var(--terracotta); }
article.post h1 { margin-bottom: 0.5rem; }
article.post .meta { color: var(--terracotta-dark); font-size: 0.92rem; margin-bottom: 2rem; }
.post-cta { background: var(--bg-alt); padding: 2rem; border-radius: 4px; margin-top: 2.5rem; border-top: 4px solid var(--terracotta); }
.urgency-banner { background: var(--terracotta); color: var(--white); padding: 0.7rem 0; font-size: 0.92rem; font-weight: 500; }
.urgency-banner .container { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.urgency-banner strong { color: var(--white); background: var(--primary); padding: 0.15rem 0.6rem; border-radius: 2px; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 3rem 0; }
  .urgency-banner { font-size: 0.85rem; }
}
/* Pricing table — civic structuré */
.pricing-table { width: 100%; border-collapse: collapse; margin: 2rem 0; border: 2px solid var(--primary); }
.pricing-table th, .pricing-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table th { background: var(--primary); color: var(--white); font-family: 'Spectral', serif; font-weight: 600; }
.pricing-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.pricing-table tbody tr:last-child { background: var(--bg-alt); }
.pricing-table tbody tr:last-child td { border-bottom: none; font-weight: 600; }


/* === DEVIS FORM (variation par template + bloc commun) === */

.devis-form-section { padding: 4rem 0; background: var(--bg-alt); border-left: 6px solid var(--primary); }
.devis-form { display: grid; gap: 1rem; max-width: 620px; margin-top: 1.5rem; }
.devis-form .form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--primary); }
.devis-form input, .devis-form select, .devis-form textarea { width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 0 4px 4px 0; font-family: inherit; font-size: 0.95rem; background: var(--white); }
.devis-form input:focus, .devis-form select:focus, .devis-form textarea:focus { outline: none; border-color: var(--accent); }
.devis-form .form-note { color: var(--muted); margin-top: 0.8rem; }

.devis-form-section .container { position: relative; }
.devis-form .form-row { display: block; }
.devis-form textarea { min-height: 96px; resize: vertical; }
.devis-form .form-cta button { cursor: pointer; }
.devis-aside-sticky { display: block; }
.devis-aside-sticky .devis-form-section { padding: 2rem 0; }
@media (min-width: 1280px) {
  .devis-aside-sticky { position: fixed; top: 80px; right: 1.5rem; width: 360px; z-index: 5; box-shadow: 0 18px 40px rgba(0,0,0,0.08); border-radius: 6px; overflow: hidden; }
  .devis-aside-sticky .container { padding: 0 1.4rem; max-width: 100%; }
  .devis-aside-sticky .devis-form-section { padding: 1.5rem 0; }
  .devis-aside-sticky .devis-form { max-width: 100%; }
}
.devis-modal-flat { background: var(--bg-alt); padding: 2rem 0; border: 1px solid var(--border); border-radius: 4px; margin: 2rem 0; }
.devis-modal-flat .devis-form-section { padding: 1rem 0; background: transparent; border: none; }
