/* ============================================
   Monte-Escaliers Toulon — Design "Méditerranée"
   Palette bleu marine + corail, Sora + Inter
   ============================================ */

:root {
  --primary: #0C4A6E;       /* bleu marine toulonnais */
  --primary-dark: #082F49;
  --accent: #F97316;        /* corail/orange chaud */
  --accent-dark: #EA580C;
  --surface: #FFFFFF;
  --surface-alt: #F0F7FB;
  --text: #16252E;
  --text-muted: #51626E;
  --border: #D6E4EC;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(12,74,110,0.10), 0 1px 4px rgba(12,74,110,0.06);
  --shadow-lg: 0 12px 40px rgba(12,74,110,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1, h2, h3, h4, .logo { font-family: 'Sora', system-ui, sans-serif; line-height: 1.18; }
a { color: var(--primary); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ORDER pour repositionnement bloc SEO */
.site-header { order: 1; }
main { order: 2; flex: 1 0 auto; }
.site-footer { order: 3; }
.seo-text-block { order: 99; }

/* HEADER */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.site-header nav ul { display: flex; gap: 26px; list-style: none; align-items: center; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-header nav a:hover { color: var(--accent); }
.btn-nav { background: var(--accent); color: #fff !important; padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 600 !important; }
.btn-nav:hover { background: var(--accent-dark); }

/* HERO */
.hero { background: linear-gradient(160deg, var(--surface-alt) 0%, #E2EFF6 100%); padding: 54px 0 64px; }
.badge-local { display: inline-block; background: rgba(12,74,110,0.10); color: var(--primary); font-weight: 600; font-size: 0.85rem; padding: 6px 14px; border-radius: 100px; margin-bottom: 18px; }
.hero h1 { font-size: 2.6rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 16px; }
.hero h1 strong { color: var(--accent); }
.hero .lead { font-size: 1.12rem; color: var(--text-muted); margin-bottom: 22px; max-width: 540px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.chk { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--accent); color: #fff; border-radius: 50%; font-size: 0.7rem; margin-right: 6px; }

/* DEVIS CARD */
.devis-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px; border-top: 4px solid var(--accent); }
.devis-card h2 { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 4px; }
.devis-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.contact-form .form-control, .contact-form .form-select { margin-bottom: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 0.97rem; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,0.12); }
.contact-form .form-control.is-valid { border-color: #16a34a; background-image: none; }
.rgpd { display: flex; gap: 9px; align-items: flex-start; font-size: 0.83rem; color: var(--text-muted); margin: 8px 0 14px; line-height: 1.45; }
.rgpd input { margin-top: 3px; flex-shrink: 0; }
.btn-submit { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm); padding: 15px; font-size: 1.05rem; font-weight: 700; font-family: 'Sora', sans-serif; cursor: pointer; transition: background .15s; }
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit .label-loading { display: none; }
.btn-submit.is-submitting { opacity: .75; cursor: not-allowed; }
.btn-submit.is-submitting .label-default { display: none; }
.btn-submit.is-submitting .label-loading { display: inline; }
.devis-reassure { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

/* SECTIONS */
.section { padding: 56px 0; }
.section.alt { background: var(--surface-alt); }
.content-narrow { max-width: 820px; margin: 0 auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section h2 { font-size: 1.9rem; color: var(--primary-dark); margin-bottom: 14px; }
.section h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 8px; }
.section p { margin-bottom: 14px; color: var(--text); }
.intro-lead { font-size: 1.13rem; color: var(--text-muted); }
.section ul, .section ol { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.price-list li, .aides-list li, .steps-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--border); position: relative; }
.price-list li::before, .aides-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.steps-list { counter-reset: step; }
.steps-list li { counter-increment: step; }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: 11px; width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* MODEL CARDS */
.model-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; height: 100%; transition: box-shadow .2s, transform .2s; }
.model-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.section.alt .model-card { background: #fff; }

/* ZONES */
.zones-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.zones-grid span { background: #fff; border: 1px solid var(--border); color: var(--primary); padding: 7px 14px; border-radius: 100px; font-size: 0.9rem; font-weight: 500; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; cursor: pointer; font-family: 'Sora', sans-serif; color: var(--primary-dark); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; color: var(--accent); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 18px; color: var(--text-muted); margin: 0; }

/* CTA FINAL */
.cta-final { padding: 48px 0; }
.cta-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: var(--radius); padding: 44px 30px; text-align: center; color: #fff; }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 22px; }
.btn-light { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 14px 30px; border-radius: var(--radius-sm); font-weight: 700; font-family: 'Sora', sans-serif; }
.btn-light:hover { background: var(--accent-dark); color: #fff; }

/* SEO TEXT BLOCK */
.seo-text-block { background: #0a3a57; color: rgba(255,255,255,0.62); padding: 26px 0; font-size: 0.88rem; line-height: 1.7; }
.seo-text-block p { max-width: 980px; margin: 0 auto; }

/* FOOTER */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.78); padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 0.83rem; color: rgba(255,255,255,0.5); }

/* PAGE GENERIQUE (a-propos, cgv, etc.) */
.page-hero { background: var(--surface-alt); padding: 44px 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 2.1rem; color: var(--primary-dark); }
.page-body { padding: 48px 0; }
.page-body h2 { font-size: 1.4rem; color: var(--primary); margin: 28px 0 12px; }
.page-body p, .page-body li { color: var(--text); margin-bottom: 12px; }
.page-body ul { padding-left: 22px; }
.team-photo { width: 100%; max-width: 440px; border-radius: var(--radius); box-shadow: var(--shadow); margin: 18px 0; display: block; }

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 2.05rem; }
  .hero-copy { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 575px) {
  body { font-size: 16px; }
  .site-header nav ul { gap: 14px; }
  .site-header nav li:not(:last-child) { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 1.5rem; }
}
