/* ============================================================
   PANNEAU SOLAIRE DIEPPE — CSS COMPLET v3
   Reset propre, layout stable, mobile-first, zero overflow bug
   ============================================================ */

/* ── Google Fonts Import ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
    --primary:        #0077B6;
    --primary-dark:   #005f92;
    --primary-light:  #0096d6;
    --secondary:      #90E0EF;
    --secondary-dark: #56c7e0;
    --accent:         #FFB703;
    --accent-dark:    #e6a400;
    --text:           #1a1a2e;
    --text-light:     #5a6474;
    --text-muted:     #8a97a8;
    --bg:             #ffffff;
    --bg-alt:         #f4f8fb;
    --bg-dark:        #0a1628;
    --border:         #e1eaf4;
    --border-light:   #f0f5fb;

    --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:  0 2px 8px rgba(0,119,182,0.08), 0 1px 3px rgba(0,0,0,0.06);
    --shadow:     0 4px 20px rgba(0,119,182,0.12), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg:  0 12px 40px rgba(0,119,182,0.16), 0 4px 16px rgba(0,0,0,0.08);
    --shadow-xl:  0 24px 64px rgba(0,119,182,0.20), 0 8px 24px rgba(0,0,0,0.10);

    --radius-xs:  4px;
    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-2xl: 32px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    --header-h: 68px;
    --container: 1200px;
    --gap:       2rem;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 0.75rem;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem);   font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw,  1.5rem);  font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

strong { font-weight: 700; }

.highlight { color: var(--accent); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-dark {
    background: var(--bg-dark);
    color: #fff;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,119,182,0.07);
    border: 1px solid rgba(0,119,182,0.15);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ── Grids ───────────────────────────────────────────────── */
.grid    { display: grid; gap: var(--gap); }
.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.grid-auto-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-auto-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-auto-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,119,182,0.35);
    color: #fff !important;
}
.btn:active { transform: translateY(0); box-shadow: none; }

/* CORRECTION : .btn-secondary ajouté */
.btn-secondary {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,119,182,0.25);
}

.btn-lg {
    font-size: 1.05rem;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-lg);
}
.btn-xl {
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.btn-hero {
    font-size: 1.05rem;
    padding: 1.05rem 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.btn-white {
    background: #fff;
    color: var(--primary) !important;
    border-color: #fff;
}
.btn-white:hover {
    background: var(--secondary);
    color: var(--primary-dark) !important;
    border-color: var(--secondary);
}

.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    border-color: rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.22);
    color: #fff !important;
}

.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff !important;
}

.btn-accent {
    background: var(--accent);
    color: var(--text) !important;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 8px 24px rgba(255,183,3,0.35);
}

.cta-center { text-align: center; margin-top: 2.5rem; }
.cta-center > p { margin-bottom: 1.25rem; color: var(--text-light); font-size: 0.9rem; }

/* ── Badge / Tag ─────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.badge-primary { background: rgba(0,119,182,0.1); color: var(--primary); }
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-accent  { background: #fef9c3; color: #ca8a04; }

/* ── Card ────────────────────────────────────────────────── */
.card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

/* CORRECTION : .card-icon ajouté */
.card-icon {
    width: 44px;
    height: 44px;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

/* ── Hero Homepage ───────────────────────────────────────── */
/* CORRECTION : .hero (homepage) ajouté — distinct de .hero-ville */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    color: #fff;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,40,90,0.92) 0%, rgba(0,90,150,0.82) 55%, rgba(0,150,214,0.70) 100%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    max-width: 760px;
}
.hero-content h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.12rem;
    margin-bottom: 2rem;
    max-width: 580px;
    line-height: 1.7;
}
.hero-content .btn {
    font-size: 1.05rem;
    padding: 1.05rem 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ── Hero Badges bande confiance ─────────────────────────── */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.hero-trust-item svg,
.hero-trust-item i { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Simulator Section Homepage ──────────────────────────── */
/* CORRECTION : .simulator ajouté */
.simulator {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    color: #fff;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.simulator::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.simulator h2 { color: #fff; }
.simulator p  { color: rgba(255,255,255,0.88); }

.simulator input[type="number"] {
    padding: 0.95rem 1.2rem;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 1rem;
    text-align: center;
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(4px);
    outline: none;
    transition: var(--transition);
}
.simulator input[type="number"]::placeholder { color: rgba(255,255,255,0.6); }
.simulator input[type="number"]:focus {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.18);
}
.simulator input[type="number"]::-webkit-outer-spin-button,
.simulator input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.sim-result-home {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    backdrop-filter: blur(6px);
}
.sim-result-home h3 { color: var(--accent); margin-bottom: 0.5rem; }
.sim-eco-value {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.sim-result-home .btn {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text) !important;
    margin-top: 1rem;
}
.sim-result-home .btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* ── Header ──────────────────────────────────────────────── */
header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 300;
    height: var(--header-h);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
header.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    padding: 0 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { transform: none; }
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,119,182,0.28);
    flex-shrink: 0;
}
.logo-icon svg,
.logo-icon i { width: 20px; height: 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-main {
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 800;
    color: var(--text);
}
.logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.2px;
}

/* Nav */
nav[aria-label] { display: flex; align-items: center; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-links li { display: flex; align-items: center; }
.nav-links a {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text);
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--primary);
    background: var(--bg-alt);
}
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-cta {
    margin-left: 0.75rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.burger:hover { background: var(--bg-alt); }
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; width: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* CORRECTION : Mobile Nav — position fixed au lieu d'absolute pour pas sortir du flow */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.5rem;
    z-index: 299;
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { border-bottom: 1px solid var(--border-light); }
.mobile-nav li:last-child { border-bottom: none; padding-top: 0.75rem; }
.mobile-nav a {
    display: block;
    padding: 0.85rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.mobile-nav a:hover { color: var(--primary); }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-nav {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
    padding: 0.65rem 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    flex-wrap: wrap;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}
.breadcrumb li + li::before {
    content: '/';
    margin: 0 0.45rem;
    color: var(--border);
    font-weight: 400;
}
.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--text); font-weight: 600; }

/* ── Hero Ville ──────────────────────────────────────────── */
.hero-ville {
    padding: 5.5rem 0 4rem;
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}
.hero-ville::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,60,110,0.92) 0%, rgba(0,100,160,0.82) 50%, rgba(0,150,214,0.75) 100%);
    z-index: 0;
}
.hero-ville-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.38rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(6px);
}
.hero-badge svg,
.hero-badge i { width: 13px; height: 13px; }

.hero-ville h1 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 580px;
    line-height: 1.65;
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.stat-val {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-reassurance {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.3px;
}

/* Source badge API */
.api-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-top: 0.5rem;
    border: 1px solid rgba(255,255,255,0.15);
}
.api-source-badge svg { width: 10px; height: 10px; }

/* ── Hero Page (zones, services, etc.) ───────────────────── */
.hero-page {
    padding: 5rem 0 4rem;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.hero-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,50,100,0.9) 0%, rgba(0,100,160,0.82) 100%);
    z-index: 0;
}
.hero-page-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.hero-page h1 { color: #fff; margin-bottom: 1rem; }
.hero-page p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 1.75rem; }

/* ── Intro + Simulator Grid (page ville) ─────────────────── */
.intro-sim-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: start;
}

.intro-text h2 { margin-bottom: 1.1rem; }
.intro-text p  { color: var(--text-light); font-size: 1rem; margin-bottom: 1.1rem; line-height: 1.75; }

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
}
.feature-list li i,
.feature-list li svg {
    width: 17px;
    height: 17px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ── Simulator Card (page ville) ─────────────────────────── */
.simulator-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.sim-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}
.sim-header i,
.sim-header svg {
    width: 34px;
    height: 34px;
    color: var(--primary);
    display: block;
    margin: 0 auto 0.65rem;
}
.sim-header h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.sim-header p  { font-size: 0.82rem; color: var(--text-light); margin: 0; }

.sim-field { margin-bottom: 0.9rem; }
.sim-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sim-field input,
.sim-field select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.sim-field input:focus,
.sim-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.10);
}

.input-euro {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.input-euro:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.10);
}
.input-euro input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
    box-shadow: none !important;
}
.input-euro input:focus { box-shadow: none !important; }
.input-euro span {
    padding: 0.7rem 0.85rem;
    background: var(--bg-alt);
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 700;
    border-left: 1.5px solid var(--border);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.sim-result-box {
    background: linear-gradient(135deg, var(--secondary) 0%, #c8f3ff 100%);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    text-align: center;
    border: 1px solid var(--secondary-dark);
    margin-top: 1rem;
}
.sim-label    { font-size: 0.82rem; color: var(--primary-dark); margin-bottom: 0.4rem; font-weight: 600; }
.sim-amount   { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; color: var(--primary-dark); line-height: 1; margin-bottom: 0.4rem; }
.sim-sublabel { font-size: 0.78rem; color: var(--primary-dark); opacity: 0.8; }

.sim-details      { margin-top: 1rem; }
.sim-details-row  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    gap: 0.5rem;
}
.sim-details-row:last-child { border-bottom: none; }
.sim-details-row span   { color: var(--text-light); }
.sim-details-row strong { color: var(--text); text-align: right; }

/* ── Section Devis ───────────────────────────────────────── */
.section-devis {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}
.section-devis::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.section-devis::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.devis-iframe-wrapper {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Aides Grid ──────────────────────────────────────────── */
.aides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}
.aide-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.aide-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.aide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.aide-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.aide-icon svg, .aide-icon i { width: 20px; height: 20px; }
.aide-card h3 { font-size: 0.97rem; margin-bottom: 0.4rem; }
.aide-card p  { font-size: 0.85rem; color: var(--text-light); margin: 0; line-height: 1.6; }

/* ── Processus ───────────────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}
.process-step {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    position: relative;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.process-num {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0,119,182,0.08);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    letter-spacing: 0.5px;
}
.process-step > i,
.process-step > svg {
    width: 34px;
    height: 34px;
    color: var(--primary);
    margin: 0 auto 1rem;
    display: block;
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.process-step p  { font-size: 0.85rem; color: var(--text-light); margin: 0; line-height: 1.65; }

/* ── Reviews ─────────────────────────────────────────────── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
}
.review-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.9rem;
    line-height: 1;
}
.review-text {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.72;
    margin-bottom: 1.1rem;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.review-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.review-author strong { display: block; font-size: 0.88rem; font-weight: 700; }
.review-author small  { color: var(--text-muted); font-size: 0.76rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.65rem;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item.open {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.08);
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text);
    transition: var(--transition);
    line-height: 1.4;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-item.open .faq-q { color: var(--primary); background: rgba(0,119,182,0.03); }
.faq-q i, .faq-q svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.25s;
    color: var(--text-muted);
}
.faq-item.open .faq-q i,
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--primary); }
.faq-a { padding: 0 1.4rem 1.15rem; }
.faq-a p { color: var(--text-light); font-size: 0.9rem; line-height: 1.75; margin: 0; }

/* ── Villes Proches Silo ─────────────────────────────────── */
.villes-proches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.85rem;
}
.ville-proche-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 0.95rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}
.ville-proche-card:hover {
    border-color: var(--primary);
    background: rgba(0,119,182,0.03);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--primary);
}
.ville-proche-card > i:first-child,
.ville-proche-card > svg:first-child {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}
.ville-proche-card > div { flex: 1; min-width: 0; }
.ville-proche-card strong { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ville-proche-card small  { color: var(--text-muted); font-size: 0.75rem; }
.ville-proche-card .arrow {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}
.ville-proche-card:hover .arrow { color: var(--primary); transform: translateX(3px); }
.ville-proche-card.secondary { border-style: dashed; background: var(--bg-alt); }

/* ── Zone d'intervention ─────────────────────────────────── */
.zone-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-light);
}
.zone-emoji { font-size: 2.2rem; flex-shrink: 0; line-height: 1; }
.zone-header h2 { margin-bottom: 0.2rem; font-size: 1.4rem; }
.zone-header p  { color: var(--text-light); font-size: 0.88rem; margin: 0; }

.villes-zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.85rem;
}
.ville-zone-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.95rem 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.ville-zone-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.25s;
}
.ville-zone-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--text);
}
.ville-zone-card:hover::before { opacity: 1; }

.ville-zone-icon {
    width: 36px;
    height: 36px;
    background: rgba(0,119,182,0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.ville-zone-card:hover .ville-zone-icon {
    background: var(--primary);
}
.ville-zone-icon i, .ville-zone-icon svg { width: 17px; height: 17px; color: var(--primary); }
.ville-zone-card:hover .ville-zone-icon i,
.ville-zone-card:hover .ville-zone-icon svg { color: #fff; }

.ville-zone-info { flex: 1; min-width: 0; }
.ville-zone-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ville-zone-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.25rem;
}
.ville-zone-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.ville-zone-meta i, .ville-zone-meta svg { width: 11px; height: 11px; }

.ville-zone-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    flex-shrink: 0;
}
.ville-zone-cta span {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0;
    transition: opacity 0.25s;
}
.ville-zone-card:hover .ville-zone-cta span { opacity: 1; }
.ville-zone-cta i, .ville-zone-cta svg { width: 17px; height: 17px; color: var(--primary); }

/* ── Stat boxes (zones page) ─────────────────────────────── */
.stats-band {
    background: var(--primary);
    padding: 2.5rem 0;
}
.stats-band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    text-align: center;
}
.stat-band-val {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    display: block;
}
.stat-band-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-top: 0.3rem;
    display: block;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,18,36,0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
    from { transform: translateY(28px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    color: var(--text);
}
.modal-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.modal-close i, .modal-close svg { width: 16px; height: 16px; }

.modal-header {
    text-align: center;
    padding-bottom: 1.4rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--border-light);
}
.modal-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.9rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,119,182,0.30);
}
.modal-icon i, .modal-icon svg { width: 26px; height: 26px; }
.modal-header h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.modal-header p  { color: var(--text-light); font-size: 0.88rem; margin: 0; }
.modal-badges {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}
.modal-badges span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0,119,182,0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

/* ── Sticky CTA Mobile ───────────────────────────────────── */
/* CORRECTION : suppression safe-area-inset-bottom (invalide), remplacement par padding-bottom calc */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.7rem 1rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
}
.sticky-cta .btn {
    width: 100%;
    background: #fff;
    color: var(--primary) !important;
    font-size: 0.95rem;
    padding: 0.85rem;
    border-radius: var(--radius);
    border: none;
}
.sticky-cta .btn:hover { background: var(--secondary); }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.02); }
}
.sticky-cta.pulse .btn { animation: pulse 0.9s ease-in-out 3; }

/* ── Footer ──────────────────────────────────────────────── */
.footer-top {
    background: var(--bg-dark);
    padding: 4rem 0 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
.footer-brand .footer-logo { margin-bottom: 1.1rem; }
.footer-brand .logo-main { color: #fff; }
.footer-brand .logo-sub  { color: var(--secondary); }
.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin-bottom: 1.1rem;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.footer-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(144,224,239,0.1);
    border: 1px solid rgba(144,224,239,0.2);
    padding: 0.28rem 0.7rem;
    border-radius: 50px;
}
.footer-nav h3 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.1rem;
}
.footer-nav ul  { list-style: none; padding: 0; margin: 0; }
.footer-nav li  { margin-bottom: 0.55rem; }
.footer-nav a   { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-nav a:hover { color: var(--secondary); padding-left: 3px; }

.footer-bottom {
    background: rgba(0,0,0,0.35);
    padding: 1.1rem 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.24s; }

/* ── Services page ───────────────────────────────────────── */
.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.service-hero-grid img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    object-fit: cover;
    height: 380px;
}
.service-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.service-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 1.1rem;
    box-shadow: 0 6px 18px rgba(0,119,182,0.25);
}
.service-card-icon i, .service-card-icon svg { width: 24px; height: 24px; }

/* ── À propos ─────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-img img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 440px;
    object-fit: cover;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
.value-item {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}
.value-item h4 { font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--primary); }
.value-item p  { font-size: 0.83rem; color: var(--text-light); margin: 0; }

/* ── Réalisations ────────────────────────────────────────── */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.realisation-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.realisation-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.realisation-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.realisation-body { padding: 1.25rem; }
.realisation-body h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.realisation-body p  { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem; }
.realisation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.realisation-tag {
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 50px;
    background: rgba(0,119,182,0.08);
    color: var(--primary);
}

/* ── Info data source ─────────────────────────────────────── */
.data-source-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.73rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}
.data-source-note i, .data-source-note svg { width: 12px; height: 12px; color: var(--primary); }

/* ── Alertes / notices ───────────────────────────────────── */
.notice {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border-left: 3px solid;
    margin: 1rem 0;
}
.notice-info    { background: rgba(0,119,182,0.06); border-color: var(--primary); color: var(--primary-dark); }
.notice-success { background: #f0fdf4; border-color: #16a34a; color: #15803d; }
.notice i, .notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .intro-sim-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .simulator-card { position: static; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .service-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .service-hero-grid img { height: 260px; }
}

@media (max-width: 768px) {
    :root { --gap: 1.25rem; }

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }

    .section { padding: 3rem 0; }

    /* Hero homepage mobile */
    .hero { min-height: 480px; }
    .hero-content { padding: 3.5rem 1.25rem; }
    .hero-content h1 { font-size: 1.85rem; }

    /* Simulator homepage mobile */
    .simulator { padding: 2rem 1.25rem; }

    /* Nav */
    .nav-links { display: none; }
    .burger    { display: flex; }

    /* Sticky */
    .sticky-cta { display: block; }
    body        { padding-bottom: 72px; }

    /* Hero ville */
    .hero-ville { padding: 3.5rem 0 2.5rem; min-height: 420px; }
    .hero-stats { gap: 1.5rem; }
    .stat-val   { font-size: 1.65rem; }

    /* Grids */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid    { grid-template-columns: 1fr; gap: 1.75rem; }
    .aides-grid     { grid-template-columns: 1fr 1fr; }
    .process-grid   { grid-template-columns: 1fr 1fr; }
    .reviews-grid   { grid-template-columns: 1fr; }
    .villes-proches-grid { grid-template-columns: 1fr 1fr; }
    .villes-zone-grid { grid-template-columns: 1fr; }
    .values-grid    { grid-template-columns: 1fr; }
    .realisations-grid { grid-template-columns: 1fr; }

    .footer-bottom .container { flex-direction: column; text-align: center; gap: 0.35rem; }
    .hero-page-content { text-align: left; }

    .modal-content { padding: 1.4rem; border-radius: var(--radius-lg); }
    .modal-header h2 { font-size: 1.15rem; }

    .intro-sim-grid { gap: 2rem; }
    .section-header { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.35rem; }

    .aides-grid     { grid-template-columns: 1fr; }
    .process-grid   { grid-template-columns: 1fr; }
    .villes-proches-grid { grid-template-columns: 1fr; }
    .hero-stats     { gap: 1rem; flex-wrap: wrap; }
    .stat-val       { font-size: 1.5rem; }

    .breadcrumb     { font-size: 0.75rem; }
    .faq-q          { padding: 1rem; font-size: 0.88rem; }

    .simulator-card { padding: 1.25rem; }
    .sim-amount     { font-size: 2.2rem; }
    .simulator      { padding: 1.5rem 1rem; }
    .sim-eco-value  { font-size: 2.6rem; }

    .btn-xl         { font-size: 0.95rem; padding: 0.9rem 1.75rem; }
    .btn-hero       { font-size: 0.95rem; padding: 0.95rem 1.75rem; }

    .modal-content  { padding: 1.1rem; }
    .modal-badges   { gap: 0.4rem; }

    .footer-grid    { gap: 1.5rem; }

    .stats-band-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
    .container  { padding: 0 0.75rem; }
    h1          { font-size: 1.5rem; }
    .hero-stats { flex-direction: column; gap: 0.75rem; }
    .simulator  { padding: 1.25rem 0.85rem; }
}

/* ── Utilitaires ─────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem !important; }
.gap-2 { gap: 1rem !important; }
.flex { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.w-full { width: 100%; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}