
:root {
  --primary: #1A3A5C;
  --primary-dark: #122a44;
  --bg: #F7F9FB;
  --bg-alt: #ECF1F6;
  --accent: #FFD500;
  --text: #1A1A1A;
  --muted: #4A5568;
  --border: #D6DEE6;
  --white: #FFFFFF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: 'Lora', Georgia, serif; color: var(--primary); line-height: 1.25; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 600; }
h2 { font-size: 1.85rem; margin: 2.5rem 0 1rem; font-weight: 600; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
header.site-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.brand { font-family: 'Lora', serif; font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; 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(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.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.5rem; }
.btn { display: inline-block; padding: 0.85rem 1.75rem; 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); color: var(--white); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
section { padding: 3rem 0; }
section.alt { background: var(--white); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.card { background: var(--white); padding: 1.75rem; border-radius: 6px; border: 1px solid var(--border); }
.card h3 { margin-top: 0; }
.badge { display: inline-block; background: var(--accent); color: var(--primary-dark); padding: 0.3rem 0.8rem; border-radius: 3px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
ul.checklist { list-style: none; }
ul.checklist li { padding-left: 1.75rem; position: relative; margin-bottom: 0.6rem; }
ul.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.steps { counter-reset: step; margin-top: 2rem; }
.step { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; }
.step-num { background: var(--primary); color: var(--white); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
form { display: grid; gap: 1rem; max-width: 600px; }
label { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 0.95rem; }
input, select, textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 1rem; background: var(--white); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
textarea { min-height: 120px; resize: vertical; }
button[type=submit] { background: var(--primary); color: var(--white); border: none; padding: 0.9rem 2rem; 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(--white); padding: 2rem 0; font-size: 0.85rem; line-height: 1.7; margin-top: 4rem; }
footer a { color: var(--accent); }
footer .legal { opacity: 0.92; }
footer .footer-links { margin-top: 0.75rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.faq dt { font-weight: 600; margin-top: 1.25rem; color: var(--primary); }
.faq dd { margin: 0.4rem 0 0; color: var(--muted); }
article.post h1 { margin-bottom: 0.5rem; }
article.post .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.post-cta { background: var(--bg-alt); padding: 2rem; border-radius: 6px; margin-top: 2.5rem; border-left: 4px solid var(--accent); }
.urgency-banner { background: #FFF4D6; border-bottom: 2px solid var(--accent); color: var(--primary-dark); padding: 0.65rem 0; font-size: 0.92rem; }
.urgency-banner .container { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.urgency-banner strong { color: var(--primary); }
@media (max-width: 640px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 0; }
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .urgency-banner { font-size: 0.85rem; }
}
/* Pricing table — institutionnel sobre */
.pricing-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--white); border: 1px solid var(--border); }
.pricing-table th, .pricing-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table th { background: var(--bg-alt); font-family: 'Lora', serif; color: var(--primary); font-weight: 600; }
.pricing-table tbody tr:last-child td { border-bottom: none; background: #FFF4D6; }
.pricing-table tbody tr:hover { background: var(--bg-alt); }
.pricing-table td strong { color: var(--primary); font-size: 1.05rem; }


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

.devis-form-section { padding: 4rem 0; background: var(--bg-alt); border-top: 3px solid var(--primary); border-bottom: 3px solid var(--accent); }
.devis-form { display: grid; gap: 1.1rem; max-width: 640px; margin-top: 1.5rem; }
.devis-form .form-row label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--primary); }
.devis-form input, .devis-form select, .devis-form textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 2px; font-family: inherit; font-size: 0.95rem; background: var(--white); }
.devis-form input:focus, .devis-form select:focus, .devis-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--primary); }
.devis-form .form-cta { margin-top: 0.6rem; }
.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; }
