/* ============================================================
   RenovEnergieAides.fr — Custom styles (Bootstrap 5 base)
   Bootstrap est chargé avant ce fichier → on surcharge ici
============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --rea-primary:   #0f172a;
    --rea-secondary: #38bdf8;
    --rea-accent:    #10b981;
    --rea-cta-from:  #38bdf8;
    --rea-cta-to:    #0ea5e9;
    --rea-bg:        #f8fafc;
    --rea-text:      #334155;
    --rea-muted:     #64748b;
    --rea-border:    #e2e8f0;
    --rea-radius:    12px;
    --rea-radius-lg: 20px;
    --rea-shadow:    0 4px 24px rgba(15,23,42,.08);
    --rea-shadow-lg: 0 12px 40px rgba(15,23,42,.12);
    /* Compat old pages */
    --primary:          #0f172a;
    --secondary:        #38bdf8;
    --primary-color:    #0f172a;
    --secondary-color:  #38bdf8;
    --text-dark:        #0f172a;
    --text-muted:       #64748b;
    --border:           #e2e8f0;
    /* Surcharge Bootstrap */
    --bs-primary:           #0f172a;
    --bs-primary-rgb:       15,23,42;
    --bs-secondary:         #38bdf8;
    --bs-secondary-rgb:     56,189,248;
    --bs-success:           #10b981;
    --bs-success-rgb:       16,185,129;
    --bs-body-font-family:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --bs-body-color:        #334155;
    --bs-link-color:        #0f172a;
}

/* ── Base ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    background: var(--rea-bg);
    color: var(--rea-text);
    overflow-x: hidden;
}

a { transition: color .2s, opacity .2s; }

img { max-width: 100%; height: auto; display: block; }

/* ── Typography ─────────────────────────────────────────── */
.fw-800 { font-weight: 800 !important; }
.x-small { font-size: .76rem; }
.text-gradient {
    background: linear-gradient(135deg, var(--rea-primary), var(--rea-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-rea-primary   { color: var(--rea-primary)   !important; }
.text-rea-secondary { color: var(--rea-secondary) !important; }
.text-rea-accent    { color: var(--rea-accent)    !important; }
.link-action {
    color: var(--rea-secondary);
    font-weight: 700;
    text-decoration: none;
}
.link-action:hover { color: var(--rea-primary); }

/* ── Bootstrap color overrides ──────────────────────────���─ */
.bg-primary { background-color: var(--rea-primary) !important; }
.text-primary { color: var(--rea-primary) !important; }
.text-secondary { color: var(--rea-secondary) !important; }
.border-primary { border-color: var(--rea-primary) !important; }
.border-secondary { border-color: var(--rea-secondary) !important; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    font-family: inherit;
    font-weight: 700;
    border-radius: var(--rea-radius);
    transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-cta {
    background: linear-gradient(135deg, var(--rea-cta-from) 0%, var(--rea-cta-to) 100%);
    color: var(--rea-primary) !important;
    border: none;
    box-shadow: 0 4px 16px rgba(56,189,248,.35);
    font-weight: 800;
}
.btn-cta:hover {
    box-shadow: 0 8px 28px rgba(56,189,248,.55);
    color: var(--rea-primary) !important;
}

.btn-primary {
    --bs-btn-bg:           var(--rea-primary);
    --bs-btn-border-color: var(--rea-primary);
    --bs-btn-hover-bg:     #1e293b;
    --bs-btn-hover-border-color: #1e293b;
    --bs-btn-active-bg:    #0a0f1e;
}

.btn-outline-primary {
    --bs-btn-color:              var(--rea-primary);
    --bs-btn-border-color:       var(--rea-primary);
    --bs-btn-hover-bg:           var(--rea-primary);
    --bs-btn-hover-border-color: var(--rea-primary);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar-rea {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56,189,248,.12);
    box-shadow: 0 2px 24px rgba(0,0,0,.35);
    height: 70px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    color-scheme: dark;
}

/* Logo */
.navbar-brand-rea {
    font-weight: 800;
    font-size: 1.18rem;
    color: #fff !important;
    letter-spacing: -.4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity .15s;
}
.navbar-brand-rea:hover { opacity: .88; }
.navbar-brand-rea .hl {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-brand-rea .brand-tld { color: rgba(255,255,255,.28); font-weight: 400; font-size: .68em; -webkit-text-fill-color: rgba(255,255,255,.28); }
.navbar-brand-rea .brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(56,189,248,.45), 0 0 0 1px rgba(56,189,248,.2);
    transition: box-shadow .2s, transform .2s;
}
.navbar-brand-rea:hover .brand-icon { box-shadow: 0 6px 20px rgba(56,189,248,.6), 0 0 0 1px rgba(56,189,248,.3); transform: translateY(-1px); }
.navbar-brand-rea .brand-icon svg { display: block; }

/* Nav links */
.nav-link-rea {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: .875rem;
    color: rgba(255,255,255,.65) !important;
    padding: .45rem .85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-link-rea i { color: rgba(255,255,255,.35); transition: color .15s; }
.nav-link-rea:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.nav-link-rea:hover i { color: #38bdf8; }
.nav-link-rea.active {
    background: rgba(56,189,248,.15);
    color: #38bdf8 !important;
    border-bottom: 2px solid #38bdf8;
    border-radius: 8px 8px 0 0;
}
.nav-link-rea.active i { color: #38bdf8; }

/* Hamburger */
.toggler-rea {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 7px 10px;
    background: rgba(255,255,255,.06);
    cursor: pointer;
    color: rgba(255,255,255,.8);
    transition: background .15s, border-color .15s;
}
.toggler-rea:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }

/* Drawer links */
.drawer-item { transition: background .15s; }
.drawer-item:hover { background: #f8fafc; }
.drawer-active { background: #f0f9ff; }
.drawer-active .fw-800 { color: #0369a1 !important; }

/* Search bar (inside dark navbar) */
.nav-search-wrap { position: relative; max-width: 260px; }
.nav-search-input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: .875rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.nav-search-input::placeholder { color: rgba(255,255,255,.38); }
.nav-search-input:focus {
    border-color: #38bdf8;
    background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 3px rgba(56,189,248,.2);
}
.nav-search-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.38);
    pointer-events: none;
    width: 14px; height: 14px;
}
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--rea-border);
    border-radius: var(--rea-radius);
    box-shadow: var(--rea-shadow-lg);
    z-index: 2000;
    display: none;
    overflow: hidden;
}
.search-result-item {
    padding: 10px 16px;
    font-size: .875rem;
    cursor: pointer;
    border-bottom: 1px solid var(--rea-border);
    transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f1f5f9; }

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--rea-secondary), var(--rea-accent));
    z-index: 2000;
    transition: width .1s;
}

/* ── Page offset (fixed navbar) ─────────────────────────��─ */
.page-content { padding-top: 70px; }

/* ── Breadcrumb bar ─────────────────────────────────────── */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--rea-border);
    padding: 9px 0;
    font-size: .8rem;
}
.breadcrumb-bar .breadcrumb { margin: 0; }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: var(--rea-muted); }
.breadcrumb-bar .breadcrumb-item a { color: var(--rea-muted); text-decoration: none; }
.breadcrumb-bar .breadcrumb-item a:hover { color: var(--rea-secondary); }
.breadcrumb-bar .breadcrumb-item.active { color: var(--rea-primary); font-weight: 600; }

/* ── Widget conversion (bandeau haut) ───────────────────── */
.widget-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid #bae6fd;
    padding: 2rem 0;
}
.widget-section .widget-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--rea-primary);
}
.widget-frame {
    background: #fff;
    border-radius: var(--rea-radius-lg);
    box-shadow: var(--rea-shadow);
    padding: 1.5rem;
    border: 1px solid #bae6fd;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}
.widget-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--rea-radius-lg) + 2px);
    background: linear-gradient(135deg, rgba(56,189,248,.25), transparent, rgba(16,185,129,.15));
    z-index: -1;
}
#vac6f0118e8d {
    width: 100%;
    min-height: 520px;
    display: block;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-rea {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-rea::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(56,189,248,.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-rea h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; }
.hero-rea .lead { color: rgba(255,255,255,.75); line-height: 1.7; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56,189,248,.15);
    color: var(--rea-secondary);
    border: 1px solid rgba(56,189,248,.25);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}
.hero-img-wrap {
    border-radius: var(--rea-radius-lg);
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    aspect-ratio: 4/3;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ── Trust badges strip ──────────────────────────────────── */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--rea-border);
    padding: .9rem 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--rea-text);
    white-space: nowrap;
}
.trust-item i { color: var(--rea-secondary); flex-shrink: 0; }

/* ── Section helpers ─────────────────────────────────────── */
.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rea-secondary);
}
.section-title { font-weight: 800; color: var(--rea-primary); }

/* ── Cards ───────────────────────────────────────────────── */
.card-rea {
    background: #fff;
    border: 1px solid var(--rea-border);
    border-radius: var(--rea-radius-lg);
    border-top: 3px solid transparent;
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, border-color .25s;
    height: 100%;
}
.card-rea:hover {
    transform: translateY(-6px);
    box-shadow: var(--rea-shadow-lg);
    border-color: var(--rea-secondary);
    border-top-color: var(--rea-secondary);
}
.card-rea-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    display: flex; align-items: center; justify-content: center;
    color: #0369a1;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.card-rea:hover .card-rea-icon {
    background: linear-gradient(135deg, var(--rea-secondary), #0ea5e9);
    color: #fff;
}

/* Service cards top badge */
.badge-top {
    position: absolute;
    top: -10px; right: 16px;
    background: var(--rea-accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Department circle badge */
.dep-circle {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #38bdf8;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(15,23,42,.25);
}
.card-rea:hover .dep-circle {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    transform: scale(1.1);
}

/* ── Stats dark section ───────────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(56,189,248,.1) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(16,185,129,.07) 0%, transparent 60%);
    pointer-events: none;
}
.stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    color: #38bdf8;
    display: block;
    line-height: 1;
    margin-bottom: .4rem;
    text-shadow: 0 0 30px rgba(56,189,248,.4);
}
.stat-label { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ── Review cards ──────────────────────────────────────────── */
.review-card {
    background: #fff;
    border: 1px solid var(--rea-border);
    border-radius: var(--rea-radius-lg);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.review-stars { color: #f59e0b; letter-spacing: 2px; font-size: 1.1rem; }
.review-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--rea-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: .8rem;
    flex-shrink: 0;
}

/* ── Comparison table ─────────────────────────────────────── */
.table-rea thead th {
    background: var(--rea-primary);
    color: #fff;
    border: none;
    font-size: .85rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
}
.table-rea tbody td {
    padding: .9rem 1.25rem;
    vertical-align: middle;
    border-color: var(--rea-border);
}
.table-rea tbody tr:hover td { background: #f8fafc; }
.eco-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
}

/* ── Sticky CTA button ─────────────────────────────────────── */
.sticky-cta {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 999;
    display: flex; align-items: center; gap: 10px;
    padding: 13px 22px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--rea-cta-from), var(--rea-cta-to));
    color: var(--rea-primary) !important;
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 8px 28px rgba(56,189,248,.45);
    text-decoration: none;
    animation: floatY 3s ease-in-out infinite;
    transition: transform .2s, box-shadow .2s;
}
.sticky-cta:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 12px 36px rgba(56,189,248,.6);
    color: var(--rea-primary) !important;
}
@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer-rea {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255,255,255,.65);
    padding: 4rem 0 2rem;
}
.footer-rea .footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}
.footer-rea .footer-brand .hl { color: var(--rea-secondary); }
.footer-rea p { font-size: .875rem; line-height: 1.7; }
.footer-rea h6 {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-rea ul { list-style: none; padding: 0; margin: 0; }
.footer-rea ul li { margin-bottom: .5rem; }
.footer-rea ul li a {
    color: rgba(255,255,255,.5);
    font-size: .875rem;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}
.footer-rea ul li a:hover { color: var(--rea-secondary); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.4);
    transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--rea-secondary); color: var(--rea-primary); }

/* ── Exit popup ──────────────────────────────────────────── */
.exit-popup {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.exit-popup.active { display: flex; }
.exit-popup-inner {
    background: #ffffff !important;
    color-scheme: light !important;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.05);
    animation: popIn .35s cubic-bezier(.175,.885,.32,1.275);
}
.exit-popup-inner * { color-scheme: light; }
.exit-popup-inner h2 { color: #0f172a !important; }
.exit-popup-inner p  { color: #475569 !important; }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.exit-popup-close {
    position: absolute; top: 14px; right: 16px;
    background: #f1f5f9; border: none;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 1.1rem; cursor: pointer;
    color: #64748b; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.exit-popup-close:hover { background: #e2e8f0; }

/* ── Reveal on scroll ─────────────────────────────────────── */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    will-change: opacity, transform;
    transition: opacity .55s ease-out, transform .55s ease-out;
}
.js-ready .reveal.revealed { opacity: 1; transform: translateY(0); will-change: auto; }

/* ── Misc ─────────────────────────────────────────────────── */
.bg-rea { background: var(--rea-bg) !important; }
.rounded-rea { border-radius: var(--rea-radius) !important; }
.rounded-rea-lg { border-radius: var(--rea-radius-lg) !important; }
.shadow-rea { box-shadow: var(--rea-shadow) !important; }
.border-rea { border-color: var(--rea-border) !important; }
.info-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #38bdf8;
    border-radius: 0 var(--rea-radius) var(--rea-radius) 0;
    padding: 1rem 1.25rem;
}
.alert-aide {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-left: 4px solid #10b981;
    border-radius: 0 var(--rea-radius) var(--rea-radius) 0;
    color: #065f46;
}
.sidebar-card {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
    border: none;
    border-radius: var(--rea-radius-lg);
    padding: 1.75rem;
    position: sticky;
    top: 90px;
    box-shadow: 0 8px 32px rgba(15,23,42,.25);
    color: #fff;
}
.sidebar-card h3,
.sidebar-card .h5,
.sidebar-card .h4 { color: #fff; }
.sidebar-card p,
.sidebar-card .text-muted { color: rgba(255,255,255,.7) !important; }
.sidebar-card .small { color: rgba(255,255,255,.75); }

/* ── Département cards ────────────────────────────────────── */
.dep-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #38bdf8;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.dep-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56,189,248,.04) 0%, transparent 60%);
    pointer-events: none;
}
.dep-card:hover {
    border-left-color: #0ea5e9;
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(56,189,248,.18);
}
.dep-num {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.5px;
    box-shadow: 0 4px 12px rgba(15,23,42,.3);
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}
.dep-card:hover .dep-num {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: #0f172a;
    transform: scale(1.08) rotate(-3deg);
}
.dep-name { color: #0f172a; }
.dep-cta  { color: #0369a1; display: block; }
.dep-card:hover .dep-cta { color: #38bdf8; }
.dep-arrow { color: #cbd5e1; transition: color .2s, transform .2s; }
.dep-card:hover .dep-arrow { color: #38bdf8; transform: translateX(3px); }

/* ── Silo grid (homepage regions) ────────────────────────── */
.silo-card {
    background: #fff;
    border: 1px solid var(--rea-border);
    border-radius: var(--rea-radius);
    padding: 1rem;
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: .82rem;
    color: var(--rea-primary);
    transition: all .2s;
    height: 100%;
}
.silo-card:hover {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(56,189,248,.25);
}
.silo-card i { color: #0369a1; transition: color .2s; }
.silo-card:hover i { color: #38bdf8; }

/* ── Hero badge color ─────────────────────────────────────── */
.hero-badge {
    background: rgba(56,189,248,.2) !important;
    color: #38bdf8 !important;
    border-color: rgba(56,189,248,.35) !important;
}

/* ── Section label ─────────────────────────────────────────── */
.section-label { color: #0369a1; }

/* ── Review card stars ─────────────────────────────────────── */
.review-stars { color: #f59e0b; font-size: 1.15rem; letter-spacing: 3px; }

/* ── Table accent ──────────────────────────────────────────── */
.table-rea thead th {
    background: linear-gradient(90deg, #0f172a, #1e3a5f);
}

/* ── Link action ──────────────────────────────────────────── */
.link-action {
    color: #0369a1;
    font-weight: 700;
    text-decoration: none;
}
.link-action:hover { color: #38bdf8; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--rea-bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-rea { padding: 3.5rem 0 2.5rem; }
    .sticky-cta { bottom: 16px; right: 16px; padding: 11px 16px; font-size: .82rem; }
    .widget-frame { padding: 1rem; }
    .sidebar-card { position: static; }
}
@media (max-width: 576px) {
    .trust-strip .container { flex-wrap: wrap; gap: 10px !important; }
    .trust-item { font-size: .78rem; }
}


/* === Mobile UX base (responsive audit 2026-05-05) === */
@media (max-width: 768px) {
    html { -webkit-text-size-adjust: 100%; }
    a.btn, button, .btn, input[type=submit], input[type=button] {
        min-height: 48px;
    }
    input, textarea, select {
        font-size: 16px;
    }
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
}


/* === RESPONSIVE-MOBILE-PATCH v1 — 2026-05-12 (v3 spec-boost) ===
   Master mobile-first patch for the 100+ aprod-* portfolio.
   v3 : selectors prefixed with body/html body to win cascade against
   inline <style> blocks (vitrier-urgence, serrurier-flash, etc.).
   Rollback : strip the block between markers.
   Targets : tap targets 44px, hero compact, form above-fold, no iOS zoom,
             no horizontal scroll, fluid imgs, single-column cards,
             readable RGPD banner. !important used to override theme CSS.
   ============================================================ */

/* --- Universal safety (all viewports) --- */
img, video, iframe { max-width: 100%; height: auto; }
*, *::before, *::after { box-sizing: border-box; }

/* --- A11y color-contrast overrides for known portfolio inline colors ---
   Each inline `style="color:#xxx"` from helpers (temoignages, cro_pack) failed
   WCAG 4.5:1 ratio on white/light bg. CSS overrides via attribute selectors win
   because inline colors are NOT !important — our !important beats them.
   ============================================================ */
[style*="color:#f59e0b"] { color: #b45309 !important; } /* amber → darker amber 5.21:1 */
[style*="color: #f59e0b"] { color: #b45309 !important; }
[style*="color:#f6b952"] { color: #b45309 !important; } /* yellow → darker amber */
[style*="color: #f6b952"] { color: #b45309 !important; }
[style*="color:#cba3a3"] { color: #7f1d1d !important; } /* pink → dark red 8.5:1 */
[style*="color: #cba3a3"] { color: #7f1d1d !important; }
[style*="color:#9ca3af"] { color: #4b5563 !important; } /* light gray → medium gray 7.56:1 */
[style*="color: #9ca3af"] { color: #4b5563 !important; }
[style*="color:#6b7280"] { color: #374151 !important; } /* medium gray → darker 11.6:1 */
[style*="color: #6b7280"] { color: #374151 !important; }
[style*="color:#d1d5db"] { color: #4b5563 !important; } /* lighter gray → medium */
[style*="color:#e5e7eb"] { color: #4b5563 !important; } /* very light gray */
/* btn-urgent : pink on yellow disaster fix */
.btn-urgent, a.btn-urgent { color: #fff !important; background: #dc2626 !important; }
/* small star/rating amber on near-white bg */
.temoignages-block [style*="color:#f59e0b"],
.temoignages-block [style*="color: #f59e0b"] { color: #b45309 !important; }

/* --- Mobile (<= 767px) --- */
@media (max-width: 767px) {
  html, body { overflow-x: hidden !important; max-width: 100vw; }

  /* Typography & spacing */
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  section { padding: 28px 0 !important; }
  section h2, h2 { font-size: 1.45rem !important; line-height: 1.25 !important; margin: 0 0 14px !important; }
  h3 { font-size: 1.1rem !important; }
  p, li { font-size: .95rem; line-height: 1.55; }

  /* Hero compact (push form above the fold on most pages) */
  .hero, .hero-section, [class*="hero-"] { padding: 22px 0 18px !important; }
  /* h1 + Bootstrap display-* classes (override BS .display-1..6 responsive sizing) */
  .hero h1, h1,
  h1.display-1, h1.display-2, h1.display-3, h1.display-4, h1.display-5, h1.display-6,
  .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-size: 1.55rem !important;
    line-height: 1.22 !important;
    margin: 0 0 10px !important;
    font-weight: 800 !important;
  }
  .hero p, .hero .subtitle, .hero-subtitle, p.lead, .lead { font-size: .95rem !important; line-height: 1.5 !important; margin: 0 auto 14px !important; max-width: 100% !important; }
  .badge-pill, .hero .badge, .badge { font-size: .75rem !important; padding: 4px 12px !important; margin-bottom: 12px !important; }

  /* Bootstrap container & spacing tightening on mobile */
  .container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl {
    padding-left: 14px !important; padding-right: 14px !important;
  }
  .py-5, [class*="py-"] { padding-top: 28px !important; padding-bottom: 28px !important; }
  .my-5, [class*="my-"] { margin-top: 20px !important; margin-bottom: 20px !important; }
  .mt-5, .mt-4 { margin-top: 16px !important; }
  .mb-5, .mb-4 { margin-bottom: 16px !important; }

  /* Bootstrap row/col stacking (defensive) */
  .row > [class^="col-"], .row > [class*=" col-"] { margin-bottom: 10px; }

  /* Header / nav */
  header { padding: 10px 0 !important; }
  header nav { flex-wrap: wrap; gap: 8px !important; }
  header nav a, header nav .logo {
    padding: 10px 8px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
  }
  header .logo { font-size: 1.1rem !important; padding-left: 0 !important; }

  /* Buttons & CTAs : enforce 44px tap target */
  .btn-cta, .btn, button, input[type="submit"], input[type="button"], [role="button"], a.btn {
    min-height: 44px !important;
    padding: 12px 18px !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-cta { padding: 14px 22px !important; font-weight: 700 !important; }
  a.read-more, a.lire-suite, a[class*="text-decoration"] { min-height: 40px; padding: 8px 4px; display: inline-block; }

  /* Forms : 16px font (no iOS zoom) + 44px controls */
  input, textarea, select, button { font-size: 16px !important; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  textarea, select {
    min-height: 44px !important;
    padding: 10px 12px !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box !important;
  }
  label { font-size: .9rem; }
  form { max-width: 100% !important; }

  /* Card grids : stack 1 col */
  .cards-grid, .grid, .row-cards, [class*="cards-"] { grid-template-columns: 1fr !important; gap: 12px !important; }
  .card { padding: 18px !important; }
  .card h3 { font-size: 1.1rem !important; margin: 0 0 8px !important; }

  /* Footer */
  footer { padding: 32px 0 16px !important; margin-top: 24px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 18px !important; }

  /* RGPD banner safety (don't cover form/CTA) */
  .rgpd-banner, .cookie-banner, [class*="cookie"] {
    bottom: 12px !important; left: 12px !important; right: 12px !important;
    max-width: calc(100vw - 24px) !important; font-size: .85rem;
  }

  /* MediaBuyer / VUD banner : keep responsive */
  .vud-banner-autopromo img, .mb-banner img, .autopromo img { max-width: 100% !important; height: auto !important; }
  .mb-urgent-banner {
    margin: 14px 12px !important;
    padding: 12px 14px !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 10px !important;
  }
  .mb-urgent-banner > div:nth-child(2) { font-size: .95rem !important; }
  .mb-urgent-banner > div:nth-child(3) { font-size: .8rem !important; }
  .mb-urgent-banner a {
    display: inline-block !important;
    min-height: 36px !important;
    padding: 6px 4px !important;
    line-height: 1.4 !important;
  }

  /* Real artisans cards SIRENE (.real-artisans-block / .ra-grid / .ra-card) */
  .real-artisans-block { margin: 24px 8px !important; padding: 18px 12px !important; border-radius: 10px !important; }
  .real-artisans-block h2 { font-size: 1.15rem !important; margin: 0 0 4px !important; line-height: 1.3 !important; }
  .real-artisans-block .ra-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .real-artisans-block .ra-card { padding: 14px !important; }
  .real-artisans-block .ra-card h3 { font-size: .95rem !important; line-height: 1.3 !important; }
  .real-artisans-block .ra-card a { min-height: 40px !important; padding: 8px 10px !important; }
  /* Legacy selectors keep working */
  .real-artisans, .ra-cards, [class*="artisan-card"]:not(.ra-card) { display: flex !important; flex-direction: column !important; gap: 10px !important; }

  /* Sticky bottom CTA bar (helper sticky-cta.php) */
  .sticky-cta-bar { z-index: 9999; }
  .sticky-cta-btn { min-height: 56px !important; padding: 14px 8px !important; font-size: .92rem !important; }
  /* Ensure form/page bottom isn't covered by sticky CTA */
  body:has(.sticky-cta-bar) { padding-bottom: 76px !important; }

  /* Tables : scrollable */
  table { display: block; overflow-x: auto; max-width: 100%; }

  /* Touch-friendly spacing for footer / inline links */
  footer a, .footer-links a { padding: 6px 4px; display: inline-block; min-height: 32px; }
}

/* --- Small mobile (<= 380px iPhone SE / Pixel 3a) --- */
@media (max-width: 380px) {
  .hero h1, h1 { font-size: 1.4rem !important; }
  .btn-cta { padding: 12px 16px !important; font-size: .95rem !important; }
  .container { padding-left: 10px !important; padding-right: 10px !important; }
}

/* --- Reduced motion respect --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Print safety (don't break print layout) --- */
@media print {
  header, footer, .rgpd-banner, .cookie-banner, .vud-banner-autopromo { display: none !important; }
}
/* === RESPONSIVE-MOBILE-PATCH-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.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 */

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