/* ==========================================================================
   1. VARIABLES, BASE & RESET
   ========================================================================== */
:root {
    --dark-anthracite: #1C1C1C;
    /* Noir Mat / Anthracite très sombre */
    /* ==== SYSTEME DE THEMES ==== */
    /* Theme par défaut (Orange original pour Chauffage/Général) */
    --theme-primary: #D97706;
    --theme-hover: #B45309;
    --theme-primary-rgb: 217, 119, 6;
}

/* THÈME PLOMBERIE / EAU (Bleu Confiance) */
body.theme-plomberie {
    --theme-primary: #0284C7;
    --theme-hover: #0369A1;
    --theme-primary-rgb: 2, 132, 199;
}

/* THÈME ÉLECTRICITÉ (Jaune / Or) */
body.theme-electricite {
    --theme-primary: #F59E0B;
    --theme-hover: #D97706;
    --theme-primary-rgb: 245, 158, 11;
}

/* THÈME CHAUFFAGE (Rouge Vif) */
body.theme-chauffage {
    --theme-primary: #DC2626;
    --theme-hover: #991B1B;
    --theme-primary-rgb: 220, 38, 38;
}

:root {
    --light-grey: #F3F4F6;
    --text-dark: #111827;
    --text-light: #4B5563;
    --text-muted: #777;
    /* Gris intermédiaire */
    --text-muted-alt: #555;
    /* Gris plus contrasté */
    --bg-main: #f8f9fa;
    /* Fond des sections clair */
    --bg-white: #ffffff;
    --border-light: #e1e1e1;
    --border-subtle: #eee;
    --border-input: #ddd;
    --danger-red: #DC2626;
    --bg-danger-light: #FEF2F2;
    --footer-bg: #1a1a1a;
    --footer-text: #aaa;
    --faq-bg: #f1f3f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    scroll-behavior: smooth;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. KEYFRAMES & ANIMATIONS
   ========================================================================== */
/* L'animation utilise -50% pour avancer exactement de la moitié du conteneur (la largeur de tous les éléments originaux) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes soft-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    border-bottom: 3px solid var(--theme-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo h2 {
    color: var(--dark-anthracite);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

.logo .highlight {
    color: var(--theme-primary);
}

.logo-sub {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-main);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.header-cta:hover {
    background-color: white;
    box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.15);
    border-color: var(--theme-primary);
}

.icon-pulse {
    width: 40px;
    height: 40px;
    background-color: var(--theme-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.header-cta-text {
    display: flex;
    flex-direction: column;
}

.h-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #777;
}

.h-number {
    font-size: 18px;
    font-weight: 900;
    color: var(--dark-anthracite);
    line-height: 1.1;
}

.brand-name {
    color: var(--dark-anthracite);
    font-size: 26px;
    /* Même taille que ton ancien h2 */
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-container {
    display: flex;
    min-height: 580px;
    width: 100%;
    position: relative;
}

.hero-left {
    flex: 6;
    background: linear-gradient(135deg, var(--dark-anthracite) 0%, #2c3e50 100%);
    /* Ajusté pour cohérence */
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 6%;
    padding-right: 5%;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 650px;
    padding: 40px 0;
}

.hero-left h1 {
    font-size: 38px;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-benefits li {
    margin-bottom: 12px;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-benefits i {
    color: #2ecc71;
    font-size: 18px;
    width: 25px;
    text-align: center;
}

/* Width fixe pour alignement */
.hero-benefits .fa-clock,
.hero-benefits .fa-bolt {
    color: var(--theme-primary);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--theme-primary);
    color: white;
    border: 2px solid var(--theme-primary);
    box-shadow: 0 4px 15px rgba(var(--theme-primary-rgb), 0.4);
}

.btn-primary:hover {
    background-color: var(--theme-hover);
    border-color: var(--theme-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--dark-anthracite);
}

.hero-badges {
    display: flex;
    gap: 20px;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 10px;
}

.hero-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-widget-wrapper {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.trustpilot-widget {
    margin-left: -5px !important;
}

/* Hero Right: Grille Réassurance */
.hero-right {
    flex: 3;
    background-color: var(--bg-main);
    border-left: 5px solid var(--dark-anthracite);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}



.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    max-width: 450px;
}

.feature-item {
    background: white;
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 24px;
    color: var(--dark-anthracite);
    margin-bottom: 10px;
}

.feature-item h3 {
    font-size: 13px;
    color: var(--dark-anthracite);
    margin-bottom: 5px;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

/* ==========================================================================
   5. INFO BAR (3 Cartes sous Hero)
   ========================================================================== */
.info-bar {
    display: flex;
    justify-content: stretch;
    gap: 20px;
    padding: 0 5%;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Nouveau design épuré type bandeau d'assurance */
.info-card {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    color: var(--text-dark);
    min-width: 250px;
}

.icon-box i {
    font-size: 26px;
    margin-right: 15px;
    color: var(--theme-primary);
}

.text-box h3 {
    font-size: 16px;
    margin-bottom: 2px;
    font-weight: 700;
    color: var(--dark-anthracite);
}

.text-box p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   6. SECTION EXPERTISE (GRID 2x2 & ACCORDEON)
   ========================================================================== */
.services-section {
    padding: 60px 5%;
    background: white;
}

.container-services {
    max-width: 1000px;
    margin: 0 auto;
}

.container-services h2 {
    text-align: center;
    color: var(--dark-anthracite);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 18px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.expertise-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
    border-top: 4px solid var(--dark-anthracite);
    position: relative;
    cursor: default;
}

/* Bordures colorées par carte (Optionnel) */
.expertise-card:nth-child(1) {
    border-color: var(--dark-anthracite);
}

.expertise-card:nth-child(2) {
    border-color: #DC2626;
}

.expertise-card:nth-child(3) {
    border-color: var(--theme-primary);
}

.expertise-card:nth-child(4) {
    border-color: #0891B2;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.expertise-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Couleurs Icones Expertise */
.icon-blue {
    background: #E5E7EB;
    color: var(--dark-anthracite);
}

.icon-red {
    background: #FEE2E2;
    color: #DC2626;
}

.icon-orange {
    background: #FEF3C7;
    color: var(--theme-primary);
}

.icon-cyan {
    background: #ECFEFF;
    color: #0891B2;
}

.card-header h3 {
    font-size: 20px;
    color: var(--dark-anthracite);
    margin-bottom: 10px;
    font-weight: 800;
}

.expertise-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sub-services-list li {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-services-list li strong {
    color: #333;
    font-weight: 700;
}

.sub-services-list li .fa-bolt {
    color: var(--danger-red);
}

.sub-services-list li .fa-check {
    color: var(--dark-anthracite);
}

/* Ligne Urgence Unifiée */
.urgent-line {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #991B1B;
    /* Rouge foncé texte */
    background: #FEF2F2;
    /* Rouge pâle fond */
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    margin-left: 0;
    /* Reset */
}

.urgent-line i {
    color: #DC2626 !important;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-card-call {
    flex: 1;
    text-align: center;
    background-color: var(--theme-primary);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-card-call:hover {
    background-color: var(--theme-hover);
}

.btn-card-link {
    flex: 1;
    text-align: center;
    background-color: transparent;
    color: var(--dark-anthracite);
    border: 1px solid var(--dark-anthracite);
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.btn-card-link:hover {
    background-color: var(--dark-anthracite);
    color: white;
}

.card-header .mobile-chevron {
    display: none;
}

/* ==========================================================================
   7. SECTION DIAGNOSTIC (Solution / Symptôme - Page Chauffe-eau)
   ========================================================================== */
.problem-solution-section {
    padding: 60px 5%;
    background-color: #f8f9fa;
}

.container-diag {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-center h2 {
    color: var(--dark-anthracite);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header-center p {
    color: #666;
    font-size: 18px;
}

.separator-center {
    width: 50px;
    height: 4px;
    background-color: var(--theme-primary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.diag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Style unifié des cartes diagnostic */
.diag-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--dark-anthracite);
    transition: 0.3s;
}

.diag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-top-color: var(--theme-primary);
}

.diag-icon-box {
    width: 70px;
    height: 70px;
    background-color: #f0f7ff;
    color: var(--dark-anthracite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.diag-card:hover .diag-icon-box {
    background-color: var(--theme-primary);
    color: white;
}

.diag-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 15px;
}

.diag-desktop-only {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.causes-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--dark-anthracite);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.causes-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    min-height: 45px;
}

.btn-diag-call {
    width: 100%;
    background-color: var(--theme-primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s ease;
    margin-top: auto;
}

.btn-diag-call:hover {
    background-color: var(--theme-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   8. MARQUES (SLIDER INFINI)
   ========================================================================== */
.brands-section {
    padding: 50px 0;
    background-color: var(--bg-light);
    overflow: hidden;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.brands-section h2 {
    color: var(--text-muted-alt);
    font-size: 20px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.slider {
    height: 100px;
    margin: auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* La largeur est adaptée au contenu (26 slides) pour que le -50% marche parfaitement */
.slide-track {
    display: flex;
    width: calc(280px * 26);
    animation: scroll 50s linear infinite;
}

.slide {
    height: 100px;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.slide img {
    max-width: 80%;
    max-height: 70px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   9. FORMULAIRE & CTA INTERMÉDIAIRE
   ========================================================================== */
.cta-inter-section {
    background: linear-gradient(135deg, var(--dark-anthracite), #004488);
    padding: 80px 5%;
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-content p {
    margin-bottom: 30px;
    color: #dceefc;
    font-size: 18px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--dark-anthracite);
    padding: 15px 35px;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
    display: inline-block;
}

.btn-white:hover {
    background: var(--theme-primary);
    color: white;
    transform: scale(1.05);
}

.form-section {
    padding: 80px 5%;
    background-color: #f8f9fa;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--theme-primary);
}

.form-header-box {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-box h2 {
    color: var(--dark-anthracite);
    margin-bottom: 8px;
    font-size: 28px;
}

.form-header-box p {
    color: var(--text-muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-row-dual {
    display: flex;
    gap: 20px;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    transition: 0.3s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--theme-primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.btn-submit-form {
    width: 100%;
    padding: 18px;
    background-color: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.btn-submit-form:hover {
    background-color: var(--theme-hover);
    transform: translateY(-2px);
}

.form-security {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* ==========================================================================
   10. AVIS & FOOTER
   ========================================================================== */
.reviews-carousel-section {
    padding: 60px 5%;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews-header {
    text-align: center;
    margin-bottom: 30px;
}

.reviews-header h2 {
    color: var(--dark-anthracite);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.separator-line {
    width: 60px;
    height: 4px;
    background-color: var(--theme-primary);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.widget-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-top: 10px;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 5% 30px 5%;
    font-size: 14px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.footer-col {
    flex: 1;
    min-width: 280px;
}

.footer-col h3 {
    color: var(--bg-white);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 3px solid var(--theme-primary);
    padding-left: 15px;
    height: 20px;
    display: flex;
    align-items: center;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.trust-badge {
    color: white;
    font-weight: bold;
}

.footer-france-block {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #333;
}

.highlight-text {
    color: var(--theme-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.footer-cta-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #333;
}

.footer-phone-btn {
    display: block;
    background: var(--theme-primary);
    color: white;
    font-weight: bold;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 18px;
    transition: 0.3s;
}

.footer-phone-btn:hover {
    background: white;
    color: var(--theme-primary);
}

.footer-bottom {
    border-top: 5px solid #333;
    padding-top: 5px;
    text-align: center;
}

.legal-links a {
    color: #777;
    margin: 0 10px;
}

.legal-links a:hover {
    color: var(--theme-primary);
}

/* ==========================================================================
   11. STICKY MOBILE BAR
   ========================================================================== */
.sticky-bar-mobile {
    display: none;
}

/* Par défaut caché */

.cta-inter-section .tp-widget-wrapper {
    justify-content: center;
    /* Force le centrage horizontal */
    margin-top: 25px;
    /* Crée l'espace (interligne) entre le bouton et le widget */
    margin-bottom: 30px;
    /* Réinitialise la marge du bas si nécessaire */
}

/* ==========================================================================
   SECTION FAQ STYLE MAGAZINE (Aligné milieu + Fond Gris)
   ========================================================================== */
.faq-section {
    padding: 60px 5%;
    background-color: var(--faq-bg);
    /* Fond gris plus soutenu (Gris "Bootstrap") */
    border-top: 1px solid var(--border-light);
}

.container-magazine {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    /* CORRECTION ICI : Aligne le bloc gauche au milieu verticalement */
    gap: 60px;
}

/* --- PARTIE GAUCHE (Titre) --- */
.faq-header-side {
    flex: 1;
    /* On retire "position: sticky" car incompatible avec "align-items: center" */
    text-align: left;
}

.faq-header-side h2 {
    color: var(--dark-anthracite);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.separator-left {
    width: 40px;
    height: 4px;
    background-color: var(--theme-primary);
    margin-bottom: 20px;
    border-radius: 2px;
}

.faq-header-side p {
    color: #555;
    /* Légèrement plus foncé pour le contraste sur fond gris */
    font-size: 16px;
    line-height: 1.5;
}

/* --- PARTIE DROITE (Questions) --- */
.faq-content-side {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- DESIGN DES ACCORDÉONS --- */
.faq-item {
    background-color: white;
    /* Les questions restent blanches pour ressortir sur le fond gris */
    border: 1px solid #e1e1e1;
    /* Bordure légère */
    border-radius: 8px;
    /* Coins arrondis dès le départ */
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: var(--theme-primary);
    /* Bordure orange quand ouvert */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    font-weight: 700;
    color: var(--dark-anthracite);
    font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: #ccc;
    font-size: 14px;
    transition: transform 0.3s, color 0.3s;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--theme-primary);
}

.faq-item[open] summary {
    color: var(--theme-primary);
    border-bottom: 1px solid #f0f0f0;
    /* Petite séparation interne */
}

.answer-text {
    padding: 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

/* --- INTERACTION : HOVER SUR FAQ --- */

/* Quand on passe la souris sur la boîte globale */
.faq-item:hover {
    border-color: var(--theme-primary);
    /* La bordure devient orange */
    cursor: pointer;
}

/* Le texte et l'icône deviennent orange */
.faq-item:hover summary,
.faq-item:hover .question-text,
.faq-item:hover .faq-icon {
    color: var(--theme-primary);
}

/* Petit bonus : légère animation de la flèche vers le bas au survol */
.faq-item:hover .faq-icon {
    transform: translateY(2px);
}

/* On s'assure que si l'élément est déjà ouvert, la flèche reste tournée */
.faq-item[open]:hover .faq-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* --- TABLETTES & PETITS DESKTOPS (Max 990px) --- */
@media (max-width: 990px) {
    .hero-container {
        flex-direction: column;
    }

    .hero-left {
        flex: 100% !important;
        width: 100% !important;
        padding: 40px 20px !important;
    }

    .hero-right {
        width: 100%;
        border-left: none;
        border-top: 5px solid var(--dark-anthracite);
        padding: 30px 20px;
    }

    .feature-grid {
        max-width: 100%;
        gap: 15px;
    }
}

/* --- MOBILES (Max 768px) --- */
@media (max-width: 768px) {

    /* REDUCTION GLOBALE DES ESPACEMENTS SUR MOBILE (Etape 4) */
    .services-section,
    .cta-inter-section,
    .form-section,
    .reviews-carousel-section,
    .faq-section {
        padding: 40px 5% !important;
    }

    /* HEADER MOBILE */
    header {
        padding: 10px 10px !important;
        gap: 5px;
    }

    .logo h2,
    .brand-name {
        font-size: 16px !important;
        /* Plus petit logo pour éviter d'écraser le bouton */
    }

    .logo-sub {
        display: none;
    }

    .header-cta {
        padding: 5px 8px !important;
        gap: 6px !important;
    }

    .h-label {
        display: none !important;
    }

    .h-number {
        font-size: 13px !important;
        white-space: nowrap !important;
        letter-spacing: -0.5px;
        /* Compresse très légèrement les numéros */
    }

    .icon-pulse {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
    }

    /* HERO MOBILE */
    .hero-left {
        padding: 30px 20px !important;
        text-align: left;
    }

    .hero-left h1 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-benefits {
        padding: 0;
        margin: 20px 0 30px 0;
    }

    .hero-benefits li {
        font-size: 15px;
        align-items: flex-start;
    }

    .hero-benefits i {
        margin-top: 3px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    /* INFO BAR (Les 3 cartes sous le hero) - Masqué sur mobile */
    .info-bar {
        display: none !important;
    }

    /* ACCORDEON SERVICES (Index) */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .expertise-card {
        padding: 15px 20px;
        cursor: pointer;
        flex-direction: column;
    }

    .card-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .expertise-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 0;
    }

    .card-header h3 {
        margin: 0;
        font-size: 18px;
        flex-grow: 1;
    }

    .card-header .mobile-chevron {
        display: block;
        color: #aaa;
        transition: transform 0.3s;
        font-size: 18px;
        margin-left: auto;
    }

    .card-body {
        display: none;
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
        animation: fadeIn 0.3s ease-in-out;
    }

    /* État ouvert via JS */
    .expertise-card.active .card-body {
        display: block;
    }

    .expertise-card.active .mobile-chevron {
        transform: rotate(180deg);
        color: var(--theme-primary);
    }

    .expertise-card.active {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-left: 5px solid var(--theme-primary);
        border-top: none;
    }

    /* --- DÉBUT MODIF GRID 2 COLONNES MOBILE --- */

    .diag-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* On passe à 1 colonne pour mieux voir les boutons */
        gap: 15px;
        margin-bottom: 30px;
    }

    .diag-card {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
    }

    .diag-icon-box {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .diag-card h3 {
        font-size: 16px;
        margin-bottom: 15px;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-diag-call {
        padding: 12px 10px;
        font-size: 14px;
        width: 100%;
        white-space: normal;
    }

    /* Réduction des marges de la section Diagnostic sur mobile */
    .problem-solution-section {
        padding-top: 40px;
        /* On divise par 2 (était à 80px) */
        padding-bottom: 20px;
        /* On réduit fortement l'espace du bas pour coller au bloc suivant */
    }

    /* Optionnel : On peut aussi remonter un peu le titre de la section suivante */
    .brands-section {
        padding-top: 30px;
        /* Au lieu de 50px par défaut */
    }

    /* On s'assure que le texte descriptif reste caché sur mobile pour gagner de la place */
    .diag-desktop-only {
        display: none !important;
    }

    /* --- FIN MODIF GRID --- */

    /* --- CORRECTIF RESPONSIVE FAQ MAGAZINE --- */

    .container-magazine {
        flex-direction: column;
        /* On force la colonne sur mobile */
        align-items: stretch;
        /* On étire les boîtes */
        gap: 30px;
    }

    .faq-header-side {
        text-align: center;
        /* Titre centré sur mobile */
        margin-bottom: 10px;
    }

    .separator-left {
        margin: 0 auto 15px auto;
        /* Séparateur centré */
    }

    /* Optionnel : réduire un peu la taille du texte sur mobile */
    .faq-header-side h2 {
        font-size: 24px;
    }

    /* FORMULAIRE */
    /* FORMULAIRE COMPACT MOBILE */
    /* --- CONFIGURATION DU FORMULAIRE MOBILE --- */

    /* On passe tous les champs en colonne */
    form .form-row-dual {
        flex-direction: column !important;
        gap: 10px;
    }

    /* 2. Ligne Email + CP (Le 2ème bloc dual) : On empile l'un sous l'autre */
    form .form-row-dual:nth-of-type(2) {
        flex-direction: column !important;
        gap: 10px;
    }

    /* Ajustements esthétiques pour que ça rentre bien */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        /* Confort tactile */
        font-size: 16px;
        /* Évite le zoom automatique sur iPhone */
    }

    /* Réduire les marges pour gagner de la place verticale */
    .form-group {
        margin-bottom: 10px;
    }

    /* Le bouton prend toute la largeur */
    .btn-submit-form {
        margin-top: 5px;
    }

    /* STICKY FOOTER & PADDINGS REDUITS */
    footer {
        padding: 40px 5% 100px 5% !important;
    }

    /* Espace pour la barre sticky */
    .sticky-bar-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background-color: var(--dark-anthracite);
        border-top: 4px solid var(--theme-primary);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    }

    .sticky-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 15px;
        gap: 15px;
        color: white;
    }

    .sticky-icon {
        width: 38px;
        height: 38px;
        background-color: var(--theme-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        animation: soft-pulse 3s infinite;
    }

    .sticky-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .sticky-label {
        font-size: 10px;
        opacity: 0.8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .sticky-cta-title {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
    }

    /* Fin Responsive Formulaire et Footer */
}

@media (max-width: 400px) {

    /* Très petits écrans */
    .diag-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PAGE DE REMERCIEMENT (merci.php)
   ========================================================================== */
.success-page-content {
    background: var(--light-grey);
    padding: 80px 5%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-container {
    width: 100%;
    max-width: 600px;
}

.success-card {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-bottom: 5px solid var(--theme-primary);
}

.success-icon {
    font-size: 80px;
    color: #10B981;
    /* Vert succès */
    margin-bottom: 25px;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-card h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.success-card p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.highlight-success {
    font-weight: 700;
    color: var(--text-dark);
    background: rgba(2, 132, 199, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px !important;
}

.success-actions {
    margin-top: 40px;
}

.btn-return {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    background: var(--dark-anthracite);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-return:hover {
    background: var(--theme-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .success-page-content {
        padding: 40px 5%;
    }

    .success-card {
        padding: 40px 20px;
    }

    .success-card h1 {
        font-size: 26px;
    }

    .success-card p {
        font-size: 16px;
    }
}