/* ============================================================
   CLASSE UTILITAIRE GLASSMORPHISM — DÉFINITION CENTRALISÉE
   Appliquée via class="glass-panel" dans le HTML
   ============================================================ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* HERO & FORM */
.hero-section { position: relative; padding: 120px 0 60px; overflow: hidden; z-index: 2; }
.hero-container { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; }
.hero-text-content { flex: 1; max-width: 550px; position: sticky; top: 120px;}
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; font-size: 0.875rem; font-weight: 700; margin-bottom: 24px; color: var(--accent-color); border: 1px solid var(--glass-border);}
body.dark-mode .chip { color: #fff; }
.hero-text-content h1 { font-size: clamp(3rem, 5vw, 4rem); margin-bottom: 24px; }
.text-gradient { background: linear-gradient(135deg, var(--accent-color), #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text-content p { font-size: 1.15rem; color: var(--secondary-color); margin-bottom: 32px; font-weight: 500; }
.trust-indicators { display: flex; flex-wrap: wrap; gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; font-weight: 700; color: var(--primary-color); }
.trust-item i { color: var(--accent-color); font-size: 1.3rem; }

.hero-form-wrapper { flex: 1; max-width: 550px; width: 100%; }
.form-card { border-radius: 32px; padding: 40px; }
.form-header { margin-bottom: 32px; }
.progress-container { width: 100%; background: rgba(0,0,0,0.05); height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 12px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);}
body.dark-mode .progress-container { background: rgba(255,255,255,0.1); }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent-color), #34d399); width: 20%; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.step-counter { font-size: 0.875rem; color: var(--primary-color); font-weight: 700; text-align: right; }
.step { display: none; opacity: 0; transform: translateX(20px); transition: all 0.3s ease; }
.step.active { display: block; opacity: 1; transform: translateX(0); }
.step h2 { font-size: 1.6rem; margin-bottom: 8px; }
.step-subtitle { font-size: 0.95rem; color: var(--secondary-color); margin-bottom: 24px; }
.form-group { margin-bottom: 24px; }
.form-row { display: flex; gap: 16px; margin-bottom: 24px; }
.form-group.half { flex: 1; margin-bottom: 0; }
label { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }

.buttons { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px;}
.buttons.single-btn { justify-content: flex-end; }
#success-message { text-align: center; display: none; }
.success-icon-wrap i { font-size: 5rem; color: var(--accent-color); margin-bottom: 16px; }

/* BOUTONS */
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; font-size: 1.05rem; font-weight: 800; border-radius: 16px; border: none; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
.btn-primary, .btn-submit { background: linear-gradient(135deg, var(--accent-color), #34d399); color: #fff; box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3); }
.btn-primary:hover, .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4); filter: brightness(1.1); }
.btn-secondary { background: rgba(0,0,0,0.05); color: var(--primary-color); border: 1px solid rgba(0,0,0,0.05); }
body.dark-mode .btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(0,0,0,0.1); }
.btn-submit:disabled { background: var(--secondary-color); cursor: not-allowed; transform: none; box-shadow: none; opacity: 0.7; }

/* INPUTS & SELECTORS */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.radio-chip { display: inline-flex; align-items: center; }
.radio-chip input[type="radio"] { display: none; }
.radio-chip label { padding: 12px 24px; border-radius: 16px; background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.6); cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--primary-color); box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
body.dark-mode .radio-chip label { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.1); color: #fff;}
.radio-chip label:hover { background: rgba(255,255,255,0.8); transform: translateY(-2px); }
.radio-chip input[type="radio"]:checked + label { background: var(--accent-color); color: #fff; border-color: var(--accent-color); box-shadow: 0 8px 20px rgba(5,150,105,0.4); }

.checkbox-chip input[type="checkbox"] { display: none; }
.checkbox-chip label { padding: 10px 18px; border-radius: 12px; background: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--secondary-color); }
body.dark-mode .checkbox-chip label { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.1); color: #cbd5e1;}
.checkbox-chip input[type="checkbox"]:checked + label { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

.glass-input { width: 100%; padding: 14px 16px; border-radius: 16px; font-size: 1.05rem; font-family: inherit; font-weight: 600; background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.6); color: var(--primary-color); transition: all 0.3s ease; outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
body.dark-mode .glass-input { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.1); color: #fff; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);}
.glass-input:focus { border-color: var(--accent-color); background: rgba(255,255,255,0.8); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
body.dark-mode .glass-input:focus { background: rgba(0,0,0,0.4); }

.input-with-icon { position: relative; width: 100%; z-index: 10;}
.input-with-icon .left-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--secondary-color); font-size: 1.3rem; z-index: 2; pointer-events: none; }
.input-with-icon input[type="text"], .input-with-icon input[type="email"] { padding-left: 48px !important; padding-right: 48px !important; }

.select-wrapper { position: relative; }
select { appearance: none; cursor: pointer; padding-left: 16px; }
.select-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--primary-color); }

.dropzone { border: 2px dashed rgba(0,0,0,0.15); border-radius: 20px; padding: 24px 16px; text-align: center; cursor: pointer; transition: all 0.3s; background: rgba(255,255,255,0.2); margin-bottom: 16px; }
body.dark-mode .dropzone { border-color: rgba(255,255,255,0.15); background: rgba(0,0,0,0.1); }
.dropzone:hover { border-color: var(--accent-color); background: rgba(16, 185, 129, 0.05); transform: translateY(-2px); }
.dropzone i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 12px; display: block; }
.dropzone input[type="file"] { display: none; }
.half-dropzone { flex: 1; margin-bottom: 0; padding: 16px; }
.half-dropzone i { font-size: 1.8rem; margin-bottom: 8px;}

.info-notice { font-size: 0.85rem; display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 12px; margin-top: 16px; color: var(--primary-color); font-weight: 600;}
.info-notice i { color: var(--accent-color); font-size: 1.2rem; }

.geo-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 1.4rem; color: var(--accent-color); cursor: pointer; z-index: 5; transition: transform 0.2s; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; }
.geo-btn:hover { transform: translateY(-50%) scale(1.1); background: rgba(16, 185, 129, 0.1); }

.autocomplete-container { position: relative; z-index: 50; }
.suggestions-list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; border-radius: 16px; z-index: 9999; list-style: none; max-height: 250px; overflow-y: auto; display: none; }
.suggestions-list li { padding: 14px 20px; font-size: 1rem; font-weight: 600; cursor: pointer; border-bottom: 1px solid rgba(0,0,0,0.05); transition: background 0.2s; }
body.dark-mode .suggestions-list li { border-bottom-color: rgba(255,255,255,0.05); }
.suggestions-list li:hover { background: rgba(16, 185, 129, 0.1); color: var(--accent-color); }

.custom-checkbox { display: flex; align-items: flex-start; cursor: pointer; user-select: none; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { min-width: 24px; height: 24px; background: rgba(255,255,255,0.4); border: 1px solid var(--glass-border); border-radius: 8px; margin-right: 12px; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); }
body.dark-mode .checkmark { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.1);}
.custom-checkbox input:checked ~ .checkmark { background: var(--accent-color); border-color: var(--accent-color); }
.checkmark:after { content: ""; display: none; width: 6px; height: 12px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.checkbox-text { font-size: 0.9rem; font-weight: 500; line-height: 1.5; color: var(--secondary-color); }

.error-message { color: var(--error-color); font-size: 0.9rem; margin-top: 8px; display: none; align-items: center; gap: 6px; font-weight: 700; }
.hidden { display: none !important; opacity: 0; }

/* TICKER TRANSACTIONS */
.ticker-wrapper { width: 100%; overflow: hidden; display: flex; white-space: nowrap; border-radius: 0; border-left: none; border-right: none; padding: 16px 0; margin-top: -20px; z-index: 10;}
.ticker-track { display: flex; gap: 40px; width: max-content; animation: scrollTicker 30s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 0.95rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--primary-color); }
body.dark-mode .ticker-item { color: #fff; }
.ticker-item i { font-size: 1.2rem; color: var(--accent-color); }
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 20px)); } }

/* PARTNERS */
.partners-banner { padding: 40px 0; text-align: center; z-index: 2; position: relative; border-radius: 0; border-left: none; border-right: none;}
.partners-title { font-size: 0.9rem; color: var(--secondary-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.partners-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.partner-item { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: var(--secondary-color); filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease; }
.partner-item:hover { filter: grayscale(0%); opacity: 1; color: var(--primary-color); }

/* SYSTEME UNIFIÉ DE MARQUEE (VILLES ET NEWS) */
.city-marquee-section, .news-section { padding: 60px 0 40px; z-index: 2; position: relative; }
.marquee-title { text-align: center; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--secondary-color); margin-bottom: 30px; }
.city-marquee-container, .news-marquee-container { width: 100%; overflow: hidden; display: flex; padding: 10px 0; }

.city-marquee-track, .news-marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 40s linear infinite;
}
.city-marquee-track:hover, .news-marquee-track:hover { animation-play-state: paused; }

.marquee-group { display: flex; gap: 30px; padding-right: 30px; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 15px)); } }

/* DESIGN CHIPS VILLES */
.city-chip-premium { display: flex; gap: 20px; align-items: center; border-radius: 24px; padding: 16px; min-width: 440px; transition: all 0.4s ease; cursor: pointer; }
.city-chip-premium:hover { transform: translateY(-5px) scale(1.02); border-color: var(--accent-color); }
.city-pic-wrapper { flex-shrink: 0; width: 110px; height: 110px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.15); background: rgba(0,0,0,0.1); }
.city-pic-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.city-chip-premium:hover .city-pic-wrapper img { transform: scale(1.1); }

.city-info-wrapper { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.city-header { display: flex; justify-content: space-between; align-items: center; }
.city-header h4 { font-size: 1.3rem; font-weight: 800; color: var(--primary-color); margin: 0; line-height: 1; }

.badge-tension { font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px; }
.tension-high { background: rgba(239, 68, 68, 0.15); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }
.tension-medium { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }
.tension-low { background: rgba(16, 185, 129, 0.15); color: var(--accent-color); border: 1px solid rgba(16, 185, 129, 0.2); }

body.dark-mode .tension-high { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
body.dark-mode .tension-medium { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
body.dark-mode .tension-low { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.city-price { font-size: 1.7rem; font-weight: 900; color: var(--primary-color); line-height: 1; margin: 4px 0; }
.city-price .unit { font-size: 1rem; color: var(--secondary-color); font-weight: 600; }
.city-metrics { display: flex; gap: 8px; flex-wrap: nowrap; }
.city-metrics .metric { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--secondary-color); background: rgba(0,0,0,0.03); padding: 6px 10px; border-radius: 10px; white-space: nowrap; border: 1px solid rgba(0,0,0,0.05); }
body.dark-mode .city-metrics .metric { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.05); color: #cbd5e1; }
.metric i { font-size: 1.1rem; }

/* LE COMPARATEUR DE VILLES */
.comparator-section { padding: 80px 0; position: relative; z-index: 2; }
.comparator-panel { border-radius: 32px; padding: 40px; margin: 0 auto; max-width: 900px; display: flex; flex-direction: column; gap: 32px; }
.comp-selectors { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.comp-select-wrap { flex: 1; position: relative; }
.vs-badge { font-size: 1.5rem; font-weight: 900; color: var(--accent-color); background: rgba(16, 185, 129, 0.1); padding: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 5px rgba(255,255,255,0.5); border: 1px solid rgba(16, 185, 129, 0.2); }
body.dark-mode .vs-badge { background: rgba(16, 185, 129, 0.2); box-shadow: none; }
.comp-results { background: rgba(0,0,0,0.02); border-radius: 24px; padding: 32px; border: 1px solid rgba(0,0,0,0.05); }
body.dark-mode .comp-results { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); }
.comp-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(150,150,150,0.2); font-size: 1.1rem; font-weight: 700; }
.comp-row:last-child { border-bottom: none; padding-bottom: 0; }
.comp-label { flex: 1; text-align: center; color: var(--secondary-color); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.comp-val-1, .comp-val-2 { flex: 1; display: flex; justify-content: center; align-items: center; }
.comp-val-1 span.badge, .comp-val-2 span.badge { font-size: 1.3rem; color: var(--primary-color); padding: 6px 16px; border-radius: 12px; transition: background 0.3s; }
.comp-winner { background: rgba(16, 185, 129, 0.15); color: var(--accent-color) !important; border-radius: 12px; }

/* CHART JS */
.chart-section { padding: 100px 0; position: relative; z-index: 2; }
.chart-panel { border-radius: 32px; padding: 40px; margin: 0 auto; max-width: 1000px; }
.chart-controls { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.chart-btn { appearance: none; outline: none; border: none; cursor: pointer; font-family: inherit; background: rgba(0,0,0,0.05); color: var(--primary-color); padding: 10px 24px; border-radius: 100px; font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; }
body.dark-mode .chart-btn { background: rgba(255,255,255,0.05); color: #cbd5e1; }
.chart-btn:hover { background: rgba(0,0,0,0.1); transform: translateY(-2px); }
.chart-btn.active { background: var(--accent-color); color: #fff; box-shadow: 0 4px 15px rgba(5,150,105,0.3); }

/* ============================================================
   HUB FINANCIER & FISCAL — CORRECTION GLASSMORPHISM
   ============================================================ */
.hub-section { padding: 100px 0; position: relative; z-index: 2; }
.hub-wrapper { border-radius: 32px; padding: 40px; max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; }

/* ONGLETS — Plus grands, meilleure lisibilité */
.hub-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.hub-tab-chip {
    padding: 14px 32px;
    border-radius: 100px;
    background: rgba(0,0,0,0.05);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
body.dark-mode .hub-tab-chip { background: rgba(255,255,255,0.06); color: #94a3b8; }
.hub-tab-chip:hover { background: rgba(0,0,0,0.1); color: var(--primary-color); transform: translateY(-1px); }
body.dark-mode .hub-tab-chip:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hub-tab-chip.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(5,150,105,0.35);
}

.hub-panel { display: flex; gap: 40px; animation: fadeIn 0.4s ease; }
.hub-panel.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   PANNEAU DE RÉSULTATS — GLASSMORPHISM COMPLET
   Correction : remplace le bloc gris plat rgba(0,0,0,0.03)
   ============================================================ */
.calc-inputs { flex: 1; }
.calc-results {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 32px 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow: visible;
}

.result-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(150,150,150,0.2); font-size: 1.1rem; font-weight: 600; color: var(--primary-color);}
.result-row.sub-row { font-size: 0.9rem; color: var(--secondary-color); border-bottom: none; padding: 4px 0; }
.result-row.total { font-size: 1.3rem; border-bottom: none; border-top: 2px solid var(--primary-color); padding-top: 20px; margin-top: 10px; font-weight: 800;}
body.dark-mode .result-row.total { border-top-color: rgba(255,255,255,0.4); }

/* ============================================================
   SIMULATEUR PLUS-VALUE
   ============================================================ */
.plus-value-section { padding: 100px 0; position: relative; z-index: 2; }
.calc-wrapper { border-radius: 32px; padding: 40px; max-width: 800px; margin: 0 auto; display: flex; gap: 40px; overflow: visible; }

.renovation-toggles { display: flex; flex-direction: column; gap: 8px; }

/* CARTES RÉNOVATION — Glassmorphism + hover illuminé */
.renovation-cards-container { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.reno-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-radius: 16px;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer; transition: all 0.3s ease;
}
body.dark-mode .reno-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.reno-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.75);
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(16,185,129,0.18), 0 0 0 1px rgba(16,185,129,0.25);
}
body.dark-mode .reno-card:hover { background: rgba(16,185,129,0.1); box-shadow: 0 8px 24px rgba(16,185,129,0.2); }
.reno-card:has(input:checked) {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(16,185,129,0.15);
}
body.dark-mode .reno-card:has(input:checked) { background: rgba(16,185,129,0.15); }

.reno-info { display: flex; flex-direction: column; gap: 4px; }
.reno-title { font-weight: 700; color: var(--primary-color); display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
body.dark-mode .reno-title { color: #fff; }
.reno-desc { font-size: 0.85rem; color: var(--secondary-color); font-weight: 500; }

/* IOS SWITCH */
.ios-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.ios-switch input { opacity: 0; width: 0; height: 0; }
.ios-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.1); transition: .4s; border-radius: 34px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
body.dark-mode .ios-switch .slider { background-color: rgba(255,255,255,0.1); }
.ios-switch .slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.ios-switch input:checked + .slider { background-color: var(--accent-color); }
.ios-switch input:checked + .slider:before { transform: translateX(22px); }

/* JAUGE D'OPTIMISATION */
.opti-gauge-container { margin: 20px 0; padding-top: 20px; border-top: 1px solid rgba(150,150,150,0.2); }
.opti-gauge-header { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--secondary-color); text-transform: uppercase; letter-spacing: 1px; }
.opti-gauge-track { width: 100%; height: 8px; background: rgba(0,0,0,0.05); border-radius: 4px; overflow: hidden; }
body.dark-mode .opti-gauge-track { background: rgba(255,255,255,0.1); }
.opti-gauge-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, var(--accent-color)); width: 0%; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

/* MAP D3 */
.map-section { padding: 100px 0; position: relative; z-index: 2; }
.heatmap-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 40px; font-size: 1rem; font-weight: 700; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.1); transition: .4s; border-radius: 34px; border: 1px solid var(--glass-border); }
body.dark-mode .slider { background-color: rgba(255,255,255,0.1); }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2);}
input:checked + .slider { background-color: var(--accent-color); border-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(24px); }

.map-layout { display: flex; align-items: center; gap: 60px; }
.map-visual { flex: 1; display: flex; justify-content: center; position: relative; }
#france-map-container { width: 100%; max-width: 550px; min-height: 500px; position: relative; }
.map-loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--accent-color); font-weight: 800; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
#france-map-container svg { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); overflow: visible; }
.region-path { fill: var(--map-fill); stroke: var(--map-stroke); stroke-width: 1.5px; cursor: pointer; transition: fill 0.5s ease, filter 0.3s ease; }
.region-path.hovered { fill: var(--accent-light); transform: translateY(-2px); }
.region-path.active { fill: var(--accent-color); stroke-width: 2.5px; filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.6)); }

.map-stats { flex: 1; }
.stats-panel { padding: 40px; border-radius: 32px; width: 100%; }
.pulse-icon { width: 60px; height: 60px; background: rgba(16, 185, 129, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--accent-color); margin-bottom: 24px; animation: pulseGreen 2s infinite; }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.stats-panel h3 { font-size: 2rem; margin-bottom: 16px; color: var(--primary-color); display: flex; align-items: center; gap: 12px; }
.stats-panel p { color: var(--secondary-color); margin-bottom: 32px; font-size: 1.1rem; }
.stat-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(150,150,150,0.2); }
.stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.stat-item span { font-weight: 600; color: var(--secondary-color); }
.stat-item strong { font-size: 1.5rem; font-weight: 900; color: var(--primary-color); }

/* CHAT IA (GLASS) */
.ai-section { padding: 100px 0; position: relative; z-index: 2; overflow: hidden; }
.ai-container { display: flex; align-items: center; gap: 60px; }
.ai-text, .ai-visual { flex: 1; }
.ai-text h2 { font-size: 3rem; margin-bottom: 24px; }
.benefits-list { list-style: none; }
.benefits-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 16px; font-size: 1.1rem; }
.benefits-list i { color: var(--accent-color); font-size: 1.5rem; }

.chat-interface { border-radius: 32px; overflow: hidden; height: 550px; display: flex; flex-direction: column; margin: 0 auto; max-width: 420px;}
.chat-header { background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); color: #fff; padding: 20px; display: flex; align-items: center; gap: 16px; z-index: 10; border-bottom: 1px solid rgba(255,255,255,0.1); }
.chat-avatar { width: 45px; height: 45px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #34d399; }
.chat-info strong { display: block; font-size: 1.1rem; color: #fff;}
.online-status { font-size: 0.85rem; color: #94a3b8; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; background: #34d399; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px #34d399; }

.chat-body { padding: 24px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; background: transparent; }
.chat-body::-webkit-scrollbar { width: 0px; }

.chat-bubble { padding: 16px 20px; border-radius: 20px; font-size: 0.95rem; max-width: 85%; font-weight: 500; opacity: 0; transform: translateY(15px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); line-height: 1.5; }
.chat-bubble.show { opacity: 1; transform: translateY(0); }
.user-msg { align-self: flex-end; border-bottom-right-radius: 4px; border: 1px solid var(--glass-border); }
.ai-msg { background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px); color: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); }
.ai-msg strong { display: block; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 8px; color: #34d399; letter-spacing: 1px; }

.typing-indicator { align-self: flex-start; padding: 16px 20px; border-radius: 20px; border-bottom-left-radius: 4px; display: none; gap: 6px; align-items: center; opacity: 0; transform: translateY(10px); transition: all 0.3s; }
.typing-indicator.show { display: flex; opacity: 1; transform: translateY(0); }
.typing-indicator span { width: 8px; height: 8px; background: var(--secondary-color); border-radius: 50%; animation: typingDots 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }


/* TESTIMONIALS & TEAM & GLOSSARY */
.testimonials-section, .team-section, .glossary-section { padding: 100px 0; position: relative; z-index: 2; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial-card { border-radius: 32px; padding: 40px; transition: transform 0.4s; }
.testimonial-card:hover { transform: translateY(-10px); border-color: var(--accent-color); }
.stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 16px; display: flex; gap: 4px; }
.review-text { font-size: 1.05rem; font-weight: 500; font-style: italic; margin-bottom: 24px; line-height: 1.6; }
.client-profile { display: flex; align-items: center; gap: 16px; border-top: 1px solid rgba(150,150,150,0.2); padding-top: 20px; }
.client-pic { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.client-info strong { display: block; font-size: 1rem; color: var(--primary-color); }
.success-badge { display: inline-block; background: rgba(16, 185, 129, 0.15); color: var(--accent-color); font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 100px; margin-top: 4px; text-transform: uppercase; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-member { text-align: center; }
.member-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid rgba(255,255,255,0.8); box-shadow: 0 10px 25px rgba(0,0,0,0.1); filter: grayscale(100%); transition: all 0.4s ease; }
.team-member:hover .member-photo { filter: grayscale(0%); transform: scale(1.05); border-color: var(--accent-color); }
.member-info h3 { font-size: 1.3rem; margin-bottom: 4px; }
.member-info .role { font-weight: 800; color: var(--accent-color); font-size: 0.9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;}
.member-info .sector { font-size: 0.95rem; color: var(--secondary-color); display: flex; align-items: center; justify-content: center; gap: 6px; }

.glossary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.glossary-card { padding: 30px; border-radius: 24px; transition: transform 0.3s; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--glass-border);}
.glossary-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: 0 10px 30px rgba(0,0,0,0.1);}
.glossary-icon { width: 50px; height: 50px; background: rgba(16, 185, 129, 0.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--accent-color); }
.glossary-card h3 { font-size: 1.3rem; color: var(--primary-color); margin: 0; }
.glossary-card p { font-size: 0.95rem; color: var(--secondary-color); margin: 0; line-height: 1.5; }

/* ============================================================
   NEWS IMMO — CORRECTION GLASSMORPHISM COMPLET
   Correction : les cartes étaient 100% transparentes car
   .glass-panel n'était défini nulle part dans les fichiers chargés
   ============================================================ */
.news-section { padding: 100px 0; position: relative; z-index: 2; }
.news-marquee-container { width: 100%; overflow: hidden; display: flex; padding: 40px 0; }
.news-marquee-track { display: flex; gap: 40px; width: max-content; animation: scrollNewsMarquee 40s linear infinite; }
.news-marquee-track:hover { animation-play-state: paused; }

@keyframes scrollNewsMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 20px)); }
}

.news-big-chip {
    flex-shrink: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 40px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 500px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    white-space: normal;
    text-decoration: none;
}
.news-big-chip:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(16,185,129,0.15), var(--glass-shadow);
}
.chip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.news-big-chip .tag { background: rgba(16, 185, 129, 0.2); color: var(--accent-color); padding: 8px 20px; border-radius: 100px; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; }
.news-big-chip i { font-size: 2rem; color: var(--accent-color); transition: transform 0.3s; }
.news-big-chip:hover i { transform: translate(5px, -5px); }
.chip-title { font-size: 1.5rem; font-weight: 800; line-height: 1.4; color: var(--primary-color); margin: 0; }
body.dark-mode .chip-title { color: #fff; }

.chip-hidden-text { font-size: 1.05rem; color: var(--secondary-color); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.news-big-chip:hover .chip-hidden-text { max-height: 200px; opacity: 1; margin-top: 16px; }

/* BOUTONS FLOTTANTS */
.floating-contact-btn, .floating-theme-btn {
    position: fixed; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; cursor: pointer; z-index: 99; transition: transform 0.2s ease, border-color 0.2s;
}
.floating-contact-btn { bottom: 30px; right: 30px; background: var(--accent-color); color: #fff; border: none; box-shadow: 0 10px 25px rgba(5,150,105,0.4); }
.floating-contact-btn:hover { transform: scale(1.05); }
.floating-contact-btn::after { content: ''; position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; background-color: var(--error-color); border-radius: 50%; border: 2px solid #fff; }
.floating-contact-btn.vibrating { animation: vibrateContact 0.4s ease-in-out infinite; }
@keyframes vibrateContact { 0%, 100% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(-4px) rotate(-10deg); } 75% { transform: translateX(4px) rotate(10deg); } }
.floating-theme-btn { bottom: 30px; left: 30px; font-size: 1.5rem; }
.floating-theme-btn:hover { border-color: var(--accent-color); transform: scale(1.05); }

/* STICKY CTA */
.sticky-cta { position: fixed; bottom: 110px; right: 30px; z-index: 98; padding: 12px 20px; border-radius: 100px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; font-family: inherit; background: var(--accent-color); color: #fff; box-shadow: 0 4px 15px rgba(5,150,105,0.3); transition: all 0.3s; }
.sticky-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(5,150,105,0.4); }

/* EXIT INTENT POPUP */
.exit-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; display: none; align-items: center; justify-content: center; }
.exit-popup-card { border-radius: 32px; padding: 40px; max-width: 450px; text-align: center; position: relative; border: 2px solid var(--accent-color); }
.close-popup { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary-color); transition: color 0.2s; }
.close-popup:hover { color: var(--error-color); }

/* FOOTER */
.main-footer { text-align: center; padding: 40px 0; font-weight: 600; position: relative; z-index: 2; border-top: 1px solid rgba(150,150,150,0.2); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-container, .ai-container, .map-layout { flex-direction: column; text-align: center; }
    .hero-form-wrapper, .ai-visual { width: 100%; }
    .nav-container { display: none; }
    .testimonials-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-wrapper, .hub-panel { flex-direction: column; }
    .comp-selectors { flex-direction: column; }
    .hub-tabs { gap: 8px; }
    .hub-tab-chip { padding: 12px 20px; font-size: 0.9rem; }
}
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    .buttons { flex-direction: column-reverse; gap: 12px; }
    button { width: 100%; }
    .news-big-chip, .city-chip-premium { min-width: 320px; width: 320px;}
    .testimonials-grid, .team-grid { grid-template-columns: 1fr; }
    .city-pic-wrapper { width: 80px; height: 80px; }
    .hub-tab-chip { padding: 10px 16px; font-size: 0.85rem; }
}
