/* ============================================================
   THEME "PRO BUILDER" — construction-garage-france.fr
   Bleu royal + orange brique chaleureux sur fond clair
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #ea580c;
  --accent-light: #fed7aa;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-mute: #475569;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(37,99,235,0.15);
  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
header {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
header nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
header .logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; }
header .logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 3px 10px rgba(37,99,235,0.25);
}
header .logo:hover { opacity: 0.85; }
header nav ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
header nav a { color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 6px; font-weight: 500; font-size: 0.95rem; transition: all 0.2s; }
header nav a:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(234,88,12,0.25), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(234,88,12,0.18), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .badge-pill {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: #fed7aa; font-weight: 800; }
.hero h1 strong { color: #fed7aa; font-weight: 800; }
.hero h1 mark { background: var(--accent); color: #fff; padding: 2px 10px; border-radius: 6px; }
.hero .lead {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 620px;
  margin: 0 0 30px;
  line-height: 1.55;
}

/* ============ BUTTONS ============ */
.btn-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(234,88,12,0.35);
}
.btn-cta:hover, .btn:hover {
  background: #c2410c;
  border-color: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234,88,12,0.5);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; box-shadow: none; }

/* ============ SECTIONS ============ */
section { padding: 70px 0; background: var(--bg); }
section.alt { background: var(--bg-alt); }
section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
section h2 em { font-style: normal; color: var(--primary); font-weight: 800; }
section .section-intro {
  font-size: 1.05rem;
  color: var(--text-mute);
  max-width: 720px;
  margin: 0 0 36px;
  line-height: 1.6;
}

/* ============ CARDS ============ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-card);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.card .num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: var(--primary-light);
  border-radius: 999px;
}
.card h3 { color: var(--text); font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.card p { color: var(--text-mute); font-size: 0.95rem; margin: 0; line-height: 1.55; }

/* ============ SERVICE CARDS (avec images) ============ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card img { width: 100%; height: 200px; object-fit: cover; display: block; background: #f1f5f9; }
.service-card > div { padding: 20px; }
.service-card h3 { color: var(--text); font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; }
.service-card p { color: var(--text-mute); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* ============ GALLERY ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery-grid figure {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.gallery-grid figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-grid figure img { width: 100%; height: 220px; object-fit: cover; display: block; background: #f1f5f9; }
.gallery-grid figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border-top: 1px solid var(--border);
}

/* ============ HERO FORM WRAP ============ */
.hero-form-wrap { background: rgba(255,255,255,0.04); border-radius: 14px; padding: 0; margin-top: 32px; }
.vud-form-wrapper { background: #fff !important; }
/* Header du form (premier div avec gradient) : laisse le color:#fff inline gagner */
.vud-form-wrapper > div:first-child,
.vud-form-wrapper > div:first-child h2,
.vud-form-wrapper > div:first-child div { color: #fff !important; }
/* Contenu du form (étapes, labels) : couleur texte standard */
.vud-form-wrapper form { color: var(--text); }
.vud-form-wrapper form h3 { color: #111 !important; }
.vud-form-wrapper form label { color: #111 !important; }
.vud-form-wrapper form .vud-radio-label > div > div:first-child { color: #111 !important; }

/* ============ FOOTER ============ */
footer {
  background: #0f172a;
  color: rgba(255,255,255,0.75);
  padding: 50px 0 24px;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
}
footer a { color: #fed7aa; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer h3, footer h4, footer strong { color: #fff; font-weight: 700; margin: 0 0 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.88rem; opacity: 0.7; text-align: center; }

/* ============ HERO ACTIONS (CTA legacy fallback) ============ */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 2rem; }
  section { padding: 50px 0; }
  header nav ul { display: none; }
  header nav { flex-wrap: nowrap; }
}

/* ============ MISC ============ */
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
strong { color: var(--text); }
mark { background: var(--accent-light); color: var(--text); padding: 0 4px; }
::selection { background: var(--primary-light); color: var(--primary-dark); }

/* === THEME FORTERESSE OVERRIDES === */
/* THEME FORTERESSE — porte-blindee-idf.fr — dark navy + brushed gold */
:root {
  --primary: #1e293b;
  --primary-dark: #0f172a;
  --accent: #d97706;
  --accent-2: #f59e0b;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --trust: #d97706;
  --success: #10b981;
  --warning: #ef4444;
  --white: #ffffff;
  --shadow-lg: 0 10px 40px rgba(15,23,42,0.25);
  --gradient-cta: linear-gradient(135deg,#1e293b,#475569);
  --gradient-hero: linear-gradient(135deg,#0f172a,#1e293b);
}
*{box-sizing:border-box;}
body{font-family:system-ui,-apple-system,sans-serif;color:var(--text);margin:0;background:var(--white);line-height:1.55;}
a{color:var(--primary);text-decoration:none;}
a:hover{color:var(--accent);}
h1{font-family:Georgia,'Playfair Display',serif;color:var(--white);font-weight:700;letter-spacing:-.02em;font-size:2rem;line-height:1.2;margin:0 0 .5rem;}
h2,h3{font-family:Georgia,serif;color:var(--primary);}
h2{font-size:1.5rem;margin:1.5rem 0 .75rem;}
h3{font-size:1.15rem;margin:1rem 0 .5rem;}
.container{max-width:1100px;margin:0 auto;padding:0 1rem;}
.btn-primary{background:var(--gradient-cta);color:var(--accent-2);border:2px solid var(--accent);font-weight:700;letter-spacing:.5px;text-transform:uppercase;padding:.85rem 1.5rem;border-radius:.4rem;cursor:pointer;display:inline-block;min-height:44px;transition:all .15s;}
.btn-primary:hover{background:var(--accent);color:var(--primary-dark);transform:translateY(-2px);box-shadow:var(--shadow-lg);}
.hero-small{background:var(--gradient-hero);color:#fff;border-bottom:3px solid var(--accent);padding:2.5rem 1rem;text-align:center;}
.hero-small .subtitle{color:var(--accent-2);font-size:1.05rem;margin-bottom:1rem;letter-spacing:.04em;}
.api-block{border-left:4px solid var(--accent);background:var(--bg-soft);padding:1rem 1.25rem;margin:1.25rem 0;border-radius:0 .25rem .25rem 0;}
.trust-bar{color:var(--accent);font-weight:600;display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;padding:1rem;background:var(--bg-soft);border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;}
.trust-bar span{display:inline-flex;align-items:center;gap:.35rem;}
.ra-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1.5rem 0;}
.ra-card{background:#fff;border:1px solid #cbd5e1;border-radius:.4rem;padding:1rem;box-shadow:0 2px 8px rgba(15,23,42,0.08);transition:box-shadow .2s,border-color .2s;}
.ra-card:hover{box-shadow:var(--shadow-lg);border-color:var(--accent);}
.ra-card .badge{background:var(--accent);color:var(--primary-dark);font-size:.72rem;padding:.2rem .55rem;border-radius:.2rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;}
.form-mock{background:#fff;border:2px solid var(--primary);border-radius:.5rem;padding:1.5rem;max-width:520px;margin:1.5rem auto;box-shadow:var(--shadow-lg);}
.form-mock input,.form-mock select{width:100%;padding:.75rem;border:1px solid #cbd5e1;border-radius:.3rem;margin-bottom:.75rem;font-size:1rem;min-height:44px;}
footer{background:var(--primary-dark);color:#94a3b8;padding:2rem 1rem;text-align:center;margin-top:3rem;border-top:3px solid var(--accent);}
.logo-wrap{color:var(--white);display:inline-flex;align-items:center;gap:.5rem;}
@media(max-width:640px){h1{font-size:1.55rem;}.hero-small{padding:1.75rem .75rem;}}

/* H1 contrast fix — make H1 dark when NOT in hero section */
section:not(.hero):not(.hero-small) h1,
body > h1, .container > h1, main h1 {
  color: #0f172a !important;
}
section.hero h1, section.hero-small h1, .hero h1, .hero-small h1 {
  color: #ffffff !important;
}
/* Ville/dept/region/category page H1 specifically */
section.no-prefix h1, section.section-hero h1 {
  color: #0f172a !important;
  font-size: 1.9rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin: 16px 0 12px !important;
}
section.no-prefix h1 em, section.section-hero h1 em {
  color: #d97706 !important;
  font-style: normal !important;
}
