/* ============================================================
   THEME "COOL FRESH" — climatisation-aix-marseille.fr
   Cyan glacial + orange chaud contraste sur fond sky light
   ============================================================ */

:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #cffafe;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #fed7aa;
  --bg: #f0f9ff;
  --bg-alt: #e0f2fe;
  --bg-card: #ffffff;
  --text: #0c4a6c;
  --text-mute: #475569;
  --border: #bae6fd;
  --shadow-sm: 0 1px 3px rgba(8,145,178,0.08);
  --shadow-md: 0 4px 16px rgba(8,145,178,0.12);
  --radius: 12px;
}

* { 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), #06b6d4);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 3px 10px rgba(8,145,178,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, #0e7490 0%, #0891b2 50%, #06b6d4 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(255,255,255,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(249,115,22,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(249,115,22,0.35);
}
.btn-cta:hover, .btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,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: #fff; }
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); }
.card .num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  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; }
.card p { color: var(--text-mute); font-size: 0.95rem; margin: 0; line-height: 1.55; }

/* ============ SERVICE CARDS ============ */
.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: var(--bg-alt); }
.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: var(--bg-alt); }
.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: #0c4a6c;
  color: rgba(255,255,255,0.78);
  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 ============ */
.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-dark); }
strong { color: var(--text); }
mark { background: var(--accent-light); color: var(--text); padding: 0 4px; }
::selection { background: var(--primary-light); color: var(--primary-dark); }

/* 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.jpg') !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 */

/* 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 */

/* 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 */
