/*
 * STYLES.CSS — alarme-maison-devis.fr
 * Theme : WABI (ivoire japonais + persimmon)
 * Refonte complète 2026-05-13
 *
 * Principes :
 *  - Beaucoup d'espace négatif
 *  - 1 seule couleur d'accent (persimmon) — partout sauf erreurs
 *  - Typo serif Italiana + Crimson Pro italic + Inter body + JetBrains Mono meta
 *  - Sections claires séparées par règles fines, pas par fonds colorés
 *  - Tap target 48px+ partout (cible senior + iOS no-zoom)
 *  - Aucun gradient, aucune ombre criarde
 */

@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Crimson+Pro:ital,wght@0,400;1,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-mute: #6a6a6a;
  --rule: rgba(0,0,0,0.08);
  --rule-strong: rgba(0,0,0,0.16);
  --persimmon: #c8392c;
  --persimmon-dark: #a02d22;
  --ivory: #faf8f3;
  --ivory-warm: #f3eee2;
  --paper: #ffffff;
  --gold: #b87333;
  --success: #5a7a3a;
  --error: #b73a26;

  --font-display: 'Italiana', 'Playfair Display', Georgia, serif;
  --font-italic:  'Crimson Pro', 'Crimson Text', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-6: 1.5rem;  --sp-8: 2rem;   --sp-12: 3rem;   --sp-16: 4rem;
  --sp-20: 5rem;   --sp-24: 6rem;  --sp-32: 8rem;

  --max-w: 1100px;
  --max-w-prose: 720px;
  --header-h: 76px;

  --radius-sm: 2px;
  --radius-md: 4px;
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
a:hover { color: var(--persimmon); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); }
::selection { background: var(--persimmon); color: var(--ivory); }

/* ============================================================
   3. TYPO
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em, .text-italic {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--persimmon);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: var(--sp-4); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: var(--sp-2); }
p { color: var(--ink-soft); }
p.lead {
  font-size: 1.18rem; line-height: 1.55;
  color: var(--ink-soft); max-width: 56ch;
  font-family: var(--font-italic); font-style: italic;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--persimmon);
  display: inline-block; margin-bottom: var(--sp-4);
}
.eyebrow::before { content: "— "; }
.rule {
  display: block; width: 56px; height: 2px;
  background: var(--persimmon); border: 0;
  margin: var(--sp-6) 0;
}
.meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-mute); letter-spacing: 0.2px; }
.meta b { color: var(--persimmon); font-weight: 700; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6); }
.container-prose { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-20) 0; }
.section-tight { padding: var(--sp-12) 0; }
.grid { display: grid; gap: var(--sp-8); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; gap: var(--sp-4); }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-6 { margin-bottom: var(--sp-6); }

/* ============================================================
   5. HEADER
   ============================================================ */
.aides-band {
  background: var(--persimmon); color: var(--ivory);
  padding: var(--sp-2) var(--sp-4); text-align: center;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.5px;
}
.aides-band a { color: var(--ivory); border-bottom: 1px solid currentColor; font-weight: 700; }

.site-header {
  background: rgba(250,248,243,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: var(--sp-8);
}
.brand {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.brand__mark {
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--persimmon); color: var(--ivory);
}
.brand__name em { font-family: var(--font-italic); font-style: italic; color: var(--persimmon); }
.nav { display: flex; gap: var(--sp-6); align-items: center; }
.nav a {
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--ink-soft); padding: var(--sp-2) 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--persimmon); border-bottom-color: var(--persimmon); }
@media (max-width: 768px) {
  .nav { display: none; }
  .site-header__inner { gap: var(--sp-4); }
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-3); padding: 16px 28px; min-height: 52px;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--ink); color: var(--ivory);
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--persimmon); color: var(--ivory); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--persimmon { background: var(--persimmon); }
.btn--persimmon:hover { background: var(--persimmon-dark); }
.btn--lg { padding: 20px 36px; min-height: 60px; font-size: 0.9rem; }
.btn--sm { padding: 12px 20px; min-height: 44px; font-size: 0.75rem; }

/* ============================================================
   7. HERO
   ============================================================ */
.hero { padding: var(--sp-20) 0 var(--sp-24); position: relative; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-16); align-items: center;
}
.hero__content { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: var(--sp-4); }
.hero__title em { display: block; font-size: 0.78em; }
.hero__lead {
  font-family: var(--font-italic); font-style: italic; font-size: 1.2rem;
  color: var(--ink-soft); max-width: 50ch; line-height: 1.55; margin-top: var(--sp-6);
}
.hero__actions { display: flex; gap: var(--sp-4); margin-top: var(--sp-8); flex-wrap: wrap; }
.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero__visual svg, .hero__visual img { width: 100%; max-width: 540px; height: auto; }
.hero__chips { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-8); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 12px; background: var(--paper); border: 1px solid var(--rule-strong);
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft);
}
.chip--strong { color: var(--persimmon); border-color: currentColor; }
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-8); text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__chips { justify-content: center; }
  .hero__visual { order: -1; max-width: 360px; margin: 0 auto; }
}

/* ============================================================
   8. TRUST BAND
   ============================================================ */
.trust-band {
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ivory-warm);
}
.trust-band__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.trust-item {
  text-align: center; font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.5px;
}
.trust-item__num {
  display: block; font-family: var(--font-display); font-size: 2.2rem;
  color: var(--persimmon); margin-bottom: var(--sp-2); line-height: 1;
}
@media (max-width: 720px) { .trust-band__inner { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   9. SECTIONS / CARDS
   ============================================================ */
.section-head { text-align: center; margin-bottom: var(--sp-12); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p {
  font-family: var(--font-italic); font-style: italic; font-size: 1.1rem;
  color: var(--ink-soft); max-width: 56ch; margin: 0 auto;
}
.card {
  background: var(--paper); padding: var(--sp-6);
  border: 1px solid var(--rule);
  transition: border-color .15s ease, transform .2s ease;
}
.card:hover { border-color: var(--persimmon); transform: translateY(-2px); }
.card__icon { width: 48px; height: 48px; margin-bottom: var(--sp-4); color: var(--persimmon); }
.card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.card h3 { color: var(--ink); margin-bottom: var(--sp-2); }
.card p { font-size: 0.95rem; color: var(--ink-mute); }
.card__num {
  font-family: var(--font-display); font-size: 2.5rem;
  color: var(--persimmon); line-height: 1; margin-bottom: var(--sp-3);
}

/* ============================================================
   10. STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.step { position: relative; padding-left: 0; }
.step__icon {
  color: var(--persimmon);
  margin-bottom: var(--sp-3);
  display: block;
}
.step__num {
  font-family: var(--font-display); font-size: 3.6rem;
  color: var(--persimmon); line-height: 1; margin-bottom: var(--sp-4); display: block;
  opacity: 0.85;
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { font-size: 0.95rem; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   11. COMPARISON (table + photos)
   ============================================================ */
.compare-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.compare-photos figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.compare-photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: filter .25s ease, transform .35s ease;
}
.compare-photos figure:hover img {
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.015);
}
.compare-photos figcaption {
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
}
.compare-photos figcaption strong {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--ink);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 2px;
}
@media (max-width: 720px) {
  .compare-photos { grid-template-columns: 1fr; gap: var(--sp-4); }
  .compare-photos img { aspect-ratio: 16 / 11; }
}

.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: var(--paper); border: 1px solid var(--rule);
}
.compare th, .compare td {
  padding: var(--sp-4) var(--sp-3); text-align: left;
  border-bottom: 1px solid var(--rule);
}
.compare thead th {
  background: var(--ivory-warm);
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink); font-weight: 700;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--ink); }
.compare em { font-family: var(--font-italic); font-style: italic; color: var(--persimmon); }

/* ============================================================
   12. AIDES
   ============================================================ */
.aides {
  background: var(--ivory-warm); padding: var(--sp-12) var(--sp-8);
  border: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-12); align-items: center;
}
.aides__list { display: flex; flex-direction: column; gap: var(--sp-4); }
.aides__item {
  display: flex; align-items: baseline; gap: var(--sp-4);
  padding-bottom: var(--sp-3); border-bottom: 1px dashed var(--rule);
}
.aides__item:last-child { border-bottom: 0; }
.aides__amount {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--persimmon); min-width: 5ch;
}
.aides__label { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 720px) {
  .aides { grid-template-columns: 1fr; padding: var(--sp-8) var(--sp-4); gap: var(--sp-6); }
}

/* ============================================================
   13. FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: var(--sp-4) 0; }
.faq summary {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--ink);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-2) 0; min-height: 48px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.8rem;
  color: var(--persimmon); line-height: 1; flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: var(--sp-3) 0 var(--sp-4); color: var(--ink-soft); }

/* ============================================================
   14. AVIS
   ============================================================ */
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.avis { background: var(--paper); border: 1px solid var(--rule); padding: var(--sp-6); }
.avis__stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: var(--sp-3); }
.avis__text {
  font-family: var(--font-italic); font-style: italic;
  color: var(--ink); font-size: 1.05rem; line-height: 1.55; margin-bottom: var(--sp-4);
}
.avis__author { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.5px; }
.avis__author strong { color: var(--ink); }
@media (max-width: 720px) { .avis-grid { grid-template-columns: 1fr; } }

/* ============================================================
   15. REGIONS GRID
   ============================================================ */
.regions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.region-link {
  display: block; padding: var(--sp-4);
  background: var(--paper); border: 1px solid var(--rule);
  text-align: center; font-family: var(--font-display); font-size: 1.05rem;
  color: var(--ink); letter-spacing: 0.2px;
  transition: all .15s ease;
}
.region-link:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
@media (max-width: 920px) { .regions-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   16. FORM VUD
   ============================================================ */
.vud-form-card {
  background: var(--paper); padding: var(--sp-8);
  border: 1px solid var(--rule);
  max-width: 560px; margin: 0 auto;
}
.vud-form-card h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: var(--sp-2); }
.vud-form-card .form-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--persimmon); margin-bottom: var(--sp-3);
}
.form-group { margin-bottom: var(--sp-4); }
.form-group label {
  display: block; font-family: var(--font-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-mute); margin-bottom: var(--sp-2);
}
.form-control,
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
select, textarea {
  width: 100%; padding: 14px 16px; min-height: 52px;
  background: var(--ivory); border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm); color: var(--ink);
  font-size: 16px; font-family: var(--font-body);
  transition: border-color .15s ease;
}
.form-control:focus,
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--persimmon); background: var(--paper);
}
.form-step {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink-mute); text-align: center; margin-bottom: var(--sp-4);
}
.form-progress { display: flex; gap: 4px; margin-bottom: var(--sp-6); }
.form-progress span { flex: 1; height: 2px; background: var(--rule); }
.form-progress span.active { background: var(--persimmon); }

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink); color: var(--ivory);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-24);
}
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--persimmon); margin-bottom: var(--sp-4); font-weight: 700;
}
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--sp-8); }
.site-footer ul li { margin-bottom: var(--sp-2); font-size: 0.92rem; }
.site-footer a { color: rgba(250,248,243,0.7); border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--ivory); border-bottom-color: rgba(250,248,243,0.4); }
.site-footer__bottom {
  margin-top: var(--sp-12); padding-top: var(--sp-6);
  border-top: 1px solid rgba(250,248,243,0.12);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(250,248,243,0.5); letter-spacing: 0.5px;
}
@media (max-width: 920px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
}

/* ============================================================
   18. UTILS
   ============================================================ */
.divider { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-16) 0; }
.divider-tight { margin: var(--sp-8) 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   19. ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fade-up .6s ease-out both; }

/* ============================================================
   20. PRINT
   ============================================================ */
@media print {
  .aides-band, .site-header, .site-footer, .btn { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

/* ============================================================
   21. RESPONSIVE FALLBACKS
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-12) 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand { font-size: 1.1rem; }
  .brand__mark { width: 32px; height: 32px; }
  .step__num { font-size: 2.8rem; }
}

/* ============================================================
   22. STICKY CTA mobile
   ============================================================ */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--persimmon); color: var(--ivory);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-mono); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-align: center; z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}
.sticky-cta:hover { background: var(--persimmon-dark); color: var(--ivory); }
@media (max-width: 720px) { .sticky-cta { display: block; min-height: 56px; line-height: 32px; } }

/* ============================================================
   23. VUD WIDGET WRAP
   ============================================================ */
.vud-embed,
.vud-form-wrap iframe,
.aprod-form-container {
  width: 100%; max-width: 600px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--rule);
}

/* Legacy class neutralization */
.btn-primary, .btn-secondary, .btn-cta {
  all: unset;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-3); padding: 16px 28px; min-height: 52px;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--ink); color: var(--ivory);
  cursor: pointer; transition: background .15s ease;
}
.btn-primary:hover, .btn-secondary:hover, .btn-cta:hover { background: var(--persimmon); }

/* ============================================================
   24. RATING BADGE
   ============================================================ */
.rating-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 12px; background: var(--ivory-warm);
  border: 1px solid var(--rule-strong);
  font-family: var(--font-mono); font-size: 0.78rem;
}
.rating-badge .stars { color: var(--gold); letter-spacing: 1px; }
.rating-badge strong { color: var(--persimmon); }

/* end */

/* hero-photo bg â€” gpt-image-1 generated 2026-05-14 */
.hero, section.hero {
    background-image:
        linear-gradient(135deg, rgba(15,23,42,.78), rgba(2,132,199,.45)),
        url('/images/local/hero.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
}

/* HERO READABILITY FIX 2026-05-15 */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(2,62,138,.72) 0%, rgba(0,0,0,.55) 100%);
  z-index: 0; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1, .hero h1 strong, .hero p, .hero > .container > *:not(.aprod-topfold-cta) {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero h1 strong { color: #ffd166 !important; }
.hero .btn-cta, .hero .btn-primary, .hero a.btn-cta { color: #fff !important; }
.hero .aprod-topfold-cta { background: rgba(255,255,255,.96) !important; border: 1px solid rgba(255,255,255,.4) !important; }
.hero .aprod-topfold-cta * { color: #1a1a1a !important; text-shadow: none !important; }
.hero .aprod-topfold-cta a[style*="background:#dc2626"], .hero .aprod-topfold-cta a[style*="background:#0077B6"] { color: #fff !important; }
/* end hero fix */

/* CTA BUTTON VISIBILITY FIX 2026-05-15 */
.cta-section, section.cta, .cta-banner, .cta { background: #023E8A; color: #fff; padding: 40px 20px; border-radius: 16px; margin: 40px auto; max-width: 1200px; }
.cta-section h2, .cta-section p, section.cta h2, section.cta p, .cta-banner h2, .cta-banner p, .cta h2, .cta p { color: #fff !important; }
.cta-section a, section.cta a, .cta-banner a, .cta a,
.cta-section .btn, .cta-section a.btn, .cta-section .btn-primary, .cta-section a[class*="btn"],
section.cta .btn, section.cta a.btn, section.cta a[class*="btn"],
.cta-banner .btn, .cta-banner a.btn, .cta-banner a[class*="btn"],
.cta a[class*="btn"], .cta .btn {
  background: #ffd166 !important; color: #023E8A !important; font-weight: 700 !important;
  padding: 14px 28px !important; border-radius: 999px !important; display: inline-block !important;
  text-decoration: none !important; border: 0 !important; box-shadow: 0 4px 14px rgba(0,0,0,.2) !important;
  min-width: 200px; text-align: center;
}
.cta-section a[style*="background"], section.cta a[style*="background"], .cta-banner a[style*="background"], .cta a[style*="background"] {
  background: #ffd166 !important; color: #023E8A !important;
}
/* end cta fix */

/* TESTIMONIALS CENTERING FIX 2026-05-15 */
.testimonials { padding: 60px 20px; }
.testimonials .section-title { text-align: center; margin-bottom: 30px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.testimonials-grid { max-width: 1200px; margin: 40px auto !important; padding: 0 20px; }
/* end testimonials */

/* VUD_GEOLOC_BTN_OVERRIDE 2026-05-15 — force readable geoloc button (was blue-on-blue) */
.vud-form-card a.vud-geoloc, .vud-form-card .vud-geoloc-btn, .vud-form-card .vud-geolocate,
#vecb30ead0bd a[href*="geoloc"], #vecb30ead0bd button[class*="geoloc"],
.vud-form-card a[style*="background:#3b82f6"], .vud-form-card a[style*="background:#2563eb"],
.vud-form-card a[style*="background-color:#3b82f6"], .vud-form-card a[style*="background-color:#2563eb"] {
  background: #023E8A !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.18) !important;
  border: 0 !important;
}
/* If text and bg use same blue: catch all anchors inside vud widget with blue-ish bg */
#vecb30ead0bd a[style*="background"] { color: #ffffff !important; }
#vecb30ead0bd .vud-geoloc, #vecb30ead0bd .vud-geolocate, #vecb30ead0bd .geolocate-btn { color: #ffffff !important; }
/* end vud geoloc btn */
/* LOW_OPACITY_BLUE_FIX 2026-05-15 — readable text on blue gradient cards */
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] p,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] label,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] span,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] div,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] li,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] strong,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] [style*="opacity:.85"],
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] [style*="opacity:.8"],
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] [style*="opacity:.7"],
[style*="background:#0077B6"] [style*="opacity:.85"],
[style*="background:#0077B6"] [style*="opacity:.8"],
[style*="background:#023E8A"] [style*="opacity:.85"],
[style*="background:#023E8A"] [style*="opacity:.8"] {
  color: #fff !important;
  opacity: 1 !important;
}
/* keep highlight text visible */
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] h1,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] h2,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] h3,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] h4 {
  color: #FFB703 !important;
  opacity: 1 !important;
}
/* end low opacity blue fix */

/* EXIT_POPUP_FIX_V2 2026-05-15 — let JS toggle display, only fix visuals */
#cro-exit-popup { padding: 16px; box-sizing: border-box; }
#cro-exit-popup > div {
  background: #fff !important;
  border-radius: 16px !important;
  max-width: 460px !important;
  width: 100% !important;
  padding: 32px 24px !important;
  text-align: center !important;
  position: relative !important;
  box-shadow: 0 25px 60px rgba(0,0,0,.3) !important;
  z-index: 100000 !important;
  margin: auto !important;
}
#cro-exit-popup h3 { margin: 0 0 12px !important; color: #111 !important; font-size: 1.4rem !important; }
#cro-exit-popup p  { margin: 0 0 18px !important; color: #4b5563 !important; line-height: 1.5 !important; }
#cro-exit-popup #cro-exit-cta, #cro-exit-popup a.cro-ab-cta {
  display: inline-block !important;
  background: linear-gradient(135deg,#f97316,#ea580c) !important;
  color: #fff !important;
  padding: 14px 28px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 1rem !important;
  width: 100% !important;
  max-width: 320px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
#cro-exit-popup #cro-exit-close {
  position: absolute !important; top: 12px !important; right: 14px !important;
  background: transparent !important; border: none !important;
  font-size: 1.6rem !important; cursor: pointer !important; color: #9ca3af !important;
  line-height: 1 !important; padding: 0 6px !important;
}
/* Hide A/B text variant placeholders if both visible */
#cro-exit-popup .cro-ab-text-A { display: inline !important; }
#cro-exit-popup .cro-ab-text-B { display: none !important; }
/* end exit popup fix v2 */

/* WIDGET_BLUE_EXCEPTION 2026-05-15 — undo color:#fff inside VUD widget */
.cluster-hero #vecb30ead0bd, [style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] #vecb30ead0bd,
.cluster-hero .vud-widget-top-wrap, [style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] .vud-widget-top-wrap {
  color: #1a1a1a !important;
}
.cluster-hero #vecb30ead0bd *, .cluster-hero .vud-widget-top-wrap *,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] #vecb30ead0bd *,
[style*="background:linear-gradient(135deg,#0077B6,#023E8A)"] .vud-widget-top-wrap * {
  color: inherit !important;
}
/* But preserve white background of the VUD form card */
#vecb30ead0bd { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.15); }
.vud-widget-top-wrap { background: transparent; }
/* end widget exception */

/* WIDGET_GLOBAL_CARD 2026-05-15 — VUD widget always has white card + dark text */
.vud-widget-top-wrap {
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 28px rgba(0,0,0,.18) !important;
  padding: 14px !important;
  color: #1a1a1a !important;
  isolation: isolate;
}
.vud-widget-top-wrap, .vud-widget-top-wrap * {
  color: #1a1a1a !important;
  text-shadow: none !important;
}
.vud-widget-top-wrap a { color: #0077B6 !important; }
.vud-widget-top-wrap strong, .vud-widget-top-wrap b { color: #0a1f3a !important; }
.vud-widget-top-wrap button, .vud-widget-top-wrap input, .vud-widget-top-wrap select, .vud-widget-top-wrap textarea {
  color: #1a1a1a !important;
  background: #ffffff !important;
}
#vecb30ead0bd, #vecb30ead0bd * { color: inherit !important; }
/* The VUD form internal blue buttons should keep their color via the script's inline styles, but ensure visibility */
.vud-widget-top-wrap [style*="background:#0077B6"], .vud-widget-top-wrap [style*="background: #0077B6"],
.vud-widget-top-wrap [style*="background:#023E8A"] { color: #ffffff !important; }
/* end widget global card */

/* KILL_CRO_EXIT_ONLY 2026-05-15 — kill cro-exit-popup + sticky + live-activity for good (buggy, dimmer overlays content) */
#cro-exit-popup, #cro-sticky-mobile, #cro-live-activity, [id="cro-exit-popup"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
body { padding-bottom: 0 !important; }
/* end kill cro */
