/* ========================================= */
/* RAMELEC - STYLES PRINCIPAUX (Orange/Bleu) */
/* ========================================= */

/* VARIABLES GLOBALES */
:root {
    --primary-color: #0E2954;
    /* Bleu foncé principal (Professionnel) */
    --secondary-color: #FF8C00;
    /* Orange Pur (Nouveau: Orange Énergie) */
    --secondary-color-hover: #E57E00;
    /* Orange légèrement plus foncé au survol */
    --text-color: #333;
    --light-bg: #f4f4f9;
    --dark-bg: #0E2954;
    --font-family: 'Montserrat', sans-serif;
    --white: #ffffff;

}

/* RÉINITIALISATION ET BASES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- TYPOGRAPHIE ET BASES --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary-color);
}

h1 {
    font-size: 3.8em;
    line-height: 1.1;
    margin-bottom: 0.3em;
}

.section-padding {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-color {
    color: var(--secondary-color);
    /* Maintenant Orange Pur */
}

/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s, color 0.3s;
    text-align: center;
    font-size: 1.1em;

}

.btn i {
    margin-right: 8px;
    /* Ajoute un espace entre l'icône et le texte du bouton */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    /* Texte bleu sur fond orange */
    border: 2px solid var(--secondary-color);
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: var(--secondary-color-hover);
    /* Orange légèrement plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-contact {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    font-size: 1em;
    border: none;
    margin-left: 20px;
}

.btn-contact:hover {
    background-color: var(--secondary-color-hover);
}


/* --- HEADER ET NAVIGATION --- */
.main-header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
}

.logo-icon {
    color: var(--secondary-color);
    font-size: 1.6em;
    margin-right: 6px;
}

.logo-text {
    color: white;
    font-size: 1.4em;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.nav-links li a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--secondary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-out;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 10px;
    font-size: 1em;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    right: 0;
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    margin-left: 0;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* ------------------------------------------- */
/* --- SECTION ACCUEIL (HERO) - SANS DUPLICATION --- */
/* ------------------------------------------- */

/* RÈGLES DESKTOP ET BASE (Écran > 992px) */
.hero-section {
    /* UNE SEULE IMAGE DE FOND COUVRANT TOUTE LA SECTION */
    background: url('Img/Merci.jpg') no-repeat center center/cover;

    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 0 0 50%;
    max-width: 600px;
    padding-left: 5%;
    text-align: left;
    position: relative;
    z-index: 2;
    /* Pour que le contenu soit au-dessus de l'overlay (::before) */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pseudo-élément pour créer l'overlay bleu opaque sur la moitié gauche (DESKTOP) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Occupe la moitié gauche de la section */
    height: 100%;
    /* Dégradé de bleu foncé opaque à semi-transparent pour un effet fondu */
    background: linear-gradient(to right, var(--primary-color) 70%, rgba(14, 41, 84, 0.4) 100%);
    z-index: 1;
}

.hero-content h1 {
    color: white;
    font-size: 3.8em;
    line-height: 1.1;
    margin-bottom: 0.3em;
}

.hero-features {
    list-style: none;
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-features li {
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.hero-features i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.3em;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.slogan {
    font-size: 1em;
    font-weight: 400;
    color: #f4f4f9;
    white-space: nowrap;
}

/* ------------------------------------------------ */
/* --- SECTION EXPERTISE/À PROPOS (DESIGN FINAL) --- */
/* ------------------------------------------------ */

.about-section {
    background-color: white;
}

.about-grid-wrapper {
    display: grid;
    /* Mise en page deux colonnes pour Desktop */
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    /* Espace entre les colonnes */
    align-items: center;
    /* Centre verticalement les colonnes */
}

/* --- Colonne Image avec Bordures Bleues --- */

.about-image-column {
    position: relative;
    padding-top: 30px;
    /* Espace pour la bordure supérieure/décalage */
    padding-left: 30px;
    /* Espace pour la bordure gauche/décalage */
}

.image-accent-container {
    position: relative;
    /* Ceci simule la bordure bleue autour de l'image */
}

.about-main-image {
    /* Styles de l'image */
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Pseudo-éléments pour simuler les bordures bleues épaisses et décalées */

.about-image-column::before {
    /* Bande verticale Bleue à gauche (Simule le hidden md:block absolu top-0 left-0) */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25px;
    /* Largeur de la bordure */
    background-color: var(--primary-color);
    /* Utilisation du Bleu (Primary Color) */
    border-radius: 12px 0 0 12px;
    z-index: -1;
    /* Place le pseudo-élément derrière l'image */
}

.about-image-column::after {
    /* Bande horizontale Bleue en bas (Simule le hidden md:block absolu bottom-0 left-0) */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    /* Hauteur de la bordure */
    background-color: var(--primary-color);
    /* Utilisation du Bleu (Primary Color) */
    border-radius: 0 0 12px 12px;
    z-index: -1;
}

/* --- Colonne Texte, Citation et Stats --- */

.about-text-column {
    /* Le reste du texte */
}

.about-description {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.65;
}

.about-blockquote {
    /* Styles de la citation */
    border-left: 5px solid var(--primary-color);
    /* Ligne verticale BLEUE */
    padding-left: 20px;
    margin-bottom: 15px;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

.blockquote-author {
    /* Style de l'auteur */
    font-weight: 600;
    color: var(--primary-color);
    /* Texte en BLEU */
    margin-bottom: 30px;
    display: block;
}

/* --- Grille des Statistiques --- */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 30px;
}

.stat-card-about {
    display: flex;
    align-items: center;
    gap: 15px;
    align-items: self-start;

}

.stat-icon-wrapper {
    /* Conteneur de l'icône (simule le texte-4xl) */
    color: var(--primary-color);
    /* Icône en BLEU */
    font-size: 2.5em;
    line-height: 1;

}

.stat-title {
    /* Titre (15 ans d'expérience) */
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 3px;
    display: flex;
}

.stat-description {
    /* Description (Bénéficiez...) */
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}



/* ------------------------------------------- */
/* --- MEDIA QUERIES (Réactivité Mobile) --- */
/* ------------------------------------------- */
@media (max-width: 992px) {
    .about-grid-wrapper {
        grid-template-columns: 1fr;
        /* Une seule colonne sur mobile */
        gap: 30px;
    }

    .about-image-column {
        padding: 15px;
        /* Moins d'espace pour les bordures sur mobile */
    }

    .about-image-column::before {
        /* Masque ou réduit l'effet de bordure sur mobile si nécessaire */
        width: 15px;
        left: 0;
    }

    .about-image-column::after {
        height: 15px;
        bottom: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        /* Une seule colonne pour les stats */
        gap: 20px;
    }

    .stat-card-about {
        align-items: center;
    }

    .logo-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .slogan {
        display: block;
        font-size: 0.9em;
        font-weight: 500;
        color: #999;
        margin-top: 2px;
    }
}

/* ------------------------------------------------ */
/* --- SECTION: INTRODUCTION SERVICES (FLOTTANTE) --- */
/* ------------------------------------------------ */

#services-intro {
    margin-top: -80px;
    position: relative;
    z-index: 50;
}

/* Conteneur pour centrer la carte */
.intro-card-container {
    /* Réutilise le padding et le max-width: 1200px de .section-padding */
    padding-top: 0;
    padding-bottom: 0;
}

/* Le corps de la carte blanche arrondie */
.intro-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* MODIFIÉ: Ajuster le padding pour que la carte soit mieux contenue */
    padding: 40px 0;
    text-align: center;

    /* NOUVEAU: Ajoute le padding sur le conteneur de la carte blanche */
    padding-left: 30px;
    padding-right: 30px;
}

.card-intro-title {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Localisations de Service --- */
.service-locations {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 1em;
}

.service-locations i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.intro-services-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    padding-left: 20px;
}

.intro-services-wrapper::-webkit-scrollbar {
    display: none;
}

.intro-service-card {

    color: white;
    /* Conservez le texte en blanc par défaut */
    padding: 20px;
    border-radius: 12px;
    width: 190px;
    flex-shrink: 0;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.intro-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-icon-wrapper {
    font-size: 3em;
    color: white;
    margin-bottom: 10px;
}

.intro-service-card h4 {
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-devis {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Carte 1 : Primaire (Bleu foncé de base) */
.intro-service-card-1 {
    background-color: var(--primary-color);
}

/* Carte 2 : Secondaire/Accent (Orange/Vif) */
.intro-service-card-2 {
    background-color: var(--secondary-color);
}

/* Carte 3 : Couleur de Soutien (Vert pour l'énergie renouvelable/environnement) */
.intro-service-card-3 {
    background-color: #38A169;
    /* Un Vert Émeraude */
}

/* Carte 4 : Couleur Froide/Technique (Cyan/Bleu clair) */
.intro-service-card-4 {
    background-color: #00BCD4;
    /* Un Cyan Électrique */
}

/* Carte 5 : Couleur Neutre Foncé (Gris profond/Charbon) */
.intro-service-card-5 {
    background-color: #4A5568;
    /* Un Gris Ardoise */
}

/* Carte 6 : Couleur Chaleureuse/Énergique (Rouge Cuivré) */
.intro-service-card-6 {
    background-color: #E53E3E; /* Rouge Corail vif */
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    /* Couleur Inactive (Gris clair) */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active {
    background-color: var(--secondary-color);
}


/* ------------------------------------------- */
/* --- MEDIA QUERIES (Adaptation Mobile) --- */
/* ------------------------------------------- */
@media (max-width: 768px) {
    #services-intro {
        margin-top: -80px;
    }

    .card-intro-title {
        font-size: 1.3em;
    }

    .service-locations {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
        font-size: 0.9em;
    }

    .intro-services-wrapper {
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
    }

    .intro-service-card {
        width: 170px;
        scroll-snap-align: center;
        margin-right: 15px;
    }

    .carousel-indicators {
        display: flex;
    }
}

/* --- SECTION CONTACT --- */

.map-placeholder {
    height: 250px;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9em;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}


/* --- EFFET IMAGE DÉFILANTE (Parallax) --- */
.scrolling-image-separator {
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}


/* ------------------------------------------- */
/* --- MEDIA QUERIES (Réactivité Totale) --- */
/* ------------------------------------------- */
@media (max-width: 992px) {

    /* === HEADER MOBILE === */
    .nav-bar {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 5%;
    }



    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 0;
        background-color: var(--primary-color);
        position: absolute;
        top: 57px;
        left: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        margin-left: 0;
        padding: 15px 20px;
        text-align: left;
    }

    .btn-contact {
        background-color: var(--secondary-color);
        color: var(--primary-color);
        padding: 8px 18px;
        width: auto;
        display: inline-block;
        margin-left: 0;
    }

    /* === HERO MOBILE === */
    .hero-section {
        background: url('Img/Merci.jpg') no-repeat center bottom/cover;
        height: 100vh;
        padding-top: 60px;
        align-items: flex-start;
    }

    .hero-section::before {
        width: 100%;
        background: linear-gradient(to bottom, var(--primary-color) 0%, rgba(14, 41, 84, 0.7) 60%, rgba(14, 41, 84, 0.4) 100%);
        height: 70%;
    }

    .hero-content {
        flex: 1;
        max-width: 90%;
        padding-left: 5%;
        padding-right: 5%;
        text-align: left;
        height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
        justify-content: flex-start;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-features {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        margin: 0;
    }

    .menu-toggle {
        display: block;
        /* AFFICHE le bouton hamburger sur mobile */
    }

    /* === CORRECTION ALIGNEMENT GÉNÉRAL === */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-section,
    .contact-info-form {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Ajustement pour les très petits écrans */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
}

/* ---------------------------------------------------- */
/* --- SECTION: COMMENT NOUS TRAVAILLONS (CSS FINAL) --- */
/* ---------------------------------------------------- */

.process-section {
    padding: var(--section-padding) 20px;
    /* Padding latéral pour ne pas coller aux bords */
    max-width: 1480px;
    margin: 0 auto;
    background: white;
    text-align: center;
}

/* --- En-tête --- */

.process-header .process-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    /* Orange pour le label */
    text-transform: uppercase;
    letter-spacing: .2em;
    margin-bottom: 12px;
}

.process-title {
    font-size: 2rem;
    /* Taille H3 */
    font-weight: 800;
    margin: 0 0 15px 0;
    color: var(--text-color);
    letter-spacing: -.02em;
}

.process-subtext {
    color: #616a79;
    font-size: 1.1rem;
    max-width: 840px;
    margin: 0 auto 30px auto;
    line-height: 1.4;
}

/* --- Grille des Cartes (HORIZONTAL) --- */

.process-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 36px;
    /* Espacement entre les cartes */
    flex-wrap: wrap;
    margin-top: 50px;
}

/* --- Le Bloc d'Étape (Taille réduite) --- */
.process-step {
    background: var(--primary-color);
    /* Bleu foncé */
    color: white;
    border-radius: 4px;

    /* MODIFICATION CLÉ: Assure une répartition égale sur 3 colonnes */
    flex: 1 1 280px;
    /* Croissance flexible, base de 280px */
    max-width: 380px;
    /* Limite maximale pour éviter l'étirement excessif */

    min-width: 280px;
    padding: 60px 25px 30px 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 32px rgba(14, 41, 84, 0.15);
}

/* --- Le Badge Numéroté (Orange Flottant) --- */
.step-badge {
    background: var(--secondary-color);
    /* Orange */
    color: white;
    font-weight: 900;
    font-size: 2.3rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    /* Centrage */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
    z-index: 10;
}

.step-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: white;
}

.step-text {
    color: white;
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

/* --- L'icône de séparation (Masquée car retirée du HTML) --- */
.process-icon {
    display: none;
}

/* ------------------------------------------- */
/* --- MEDIA QUERIES (Réactivité) --- */
/* ------------------------------------------- */
@media (max-width: 1024px) {
    .process-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .process-grid {
        /* Permet la transition vers 1 ou 2 colonnes sans les icônes */
        gap: 20px;
    }

    .process-step {
        /* Permet aux cartes de prendre plus d'espace sur les tablettes */
        flex: 1 1 45%;
        min-width: 300px;
        max-width: 90vw;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .process-grid {
        /* Passage à une seule colonne pour les téléphones */
        flex-direction: column;
        gap: 50px;
    }

    .process-step {
        /* Assure que la carte utilise presque toute la largeur disponible */
        flex: 1 1 100%;
        margin-bottom: 0;
    }
}

/* ------------------------------------------------ */
/* --- SÉPARATEUR PARALLAX ENTRE PROCESSUS ET SERVICES --- */
/* ------------------------------------------------ */

.parallax-separator {
    height: 450px;
    background-image: url('Img/Monback.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}



.parallax-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 40px;
    border-radius: 8px;
}

.parallax-content h3 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 10px;
}

.parallax-content p {
    font-size: 1.1rem;
    color: #eee;
}

/* --- Masque le contenu sur mobile pour une meilleure performance --- */
@media (max-width: 768px) {
    .parallax-separator {
        /* Annule l'effet fixe pour les performances mobiles */
        background-attachment: scroll;

        /* Réduit la hauteur sur mobile */
        height: 300px;
    }

    .parallax-content {
        /* Réduit la taille du texte sur mobile */
        padding: 20px 30px;
    }

    .parallax-content h3 {
        font-size: 1.5rem;
    }

    .parallax-content p {
        font-size: 1rem;
    }
}

/* ------------------------------------------------ */
/* --- SECTION: NOS SERVICES (Grille de Cartes) --- */
/* ------------------------------------------------ */

#services {
    background-color: white;
    text-align: center;
}

.services-header {
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.services-intro-text {
    color: var(--text-color);
    margin-top: 15px;
    line-height: 1.6;
}

/* --- Grille des Cartes --- */
.services-grid {
    display: grid;
    /* 3 colonnes sur desktop, 2 sur tablette, 1 sur mobile */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-top: 40px;
    max-width: 1400px;
    /* Limite la largeur de la grille */
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.service-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-title {
    /* Style du titre en majuscules (DÉPANNAGE) */
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary-color);
    /* Utilisation de l'ORANGE */
    margin-bottom: 20px;
    min-height: 2.8rem;
}

/* --- Image --- */
.service-image-wrapper {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    /* Assure que l'image a la même hauteur */
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Couvre l'espace sans déformer */
    transition: transform 0.3s ease-in-out;
}

.service-card:hover .service-image {
    transform: scale(1.05);
    /* Petit zoom au survol */
}

/* --- Description --- */
.service-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}




/* ------------------------------------------- */
/* --- MEDIA QUERIES (Réactivité) --- */
/* ------------------------------------------- */
@media (max-width: 1200px) {
    .services-grid {
        /* Passage à 2 colonnes sur les tablettes et petits desktops */
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        /* Passage à 1 seule colonne sur mobile */
        grid-template-columns: 1fr;
        gap: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .service-image-wrapper {
        height: 200px;
    }

    .service-title {
        margin-top: 10px;
        min-height: auto;
    }
}

/* ------------------------------------------------ */
/* --- SECTION: AVIS CLIENTS (REVIEWS) --- */
/* ------------------------------------------------ */
#reviews {
    background-color: var(--light-bg);
    /* Fond gris clair pour détacher */
    text-align: center;
}

.reviews-header {
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.reviews-intro-text {
    color: var(--text-color);
    margin-top: 15px;
    line-height: 1.6;
}

.reviews-carousel-container {
    max-width: 1200px;
    /* Largeur maximale du carrousel */
    margin: 0 auto;
    overflow: hidden;
    /* Cache les images qui débordent */
    position: relative;
    padding: 0 10px;
    /* Padding latéral pour ne pas coller sur mobile */
}

/* --- Wrapper de Défilement Horizontal --- */
/* ------------------------------------------------ */
/* --- CORRECTION FINALE CARROUSEL AVIS CLIENTS --- */
/* ------------------------------------------------ */

/* --- Wrapper de Défilement Horizontal (Reste inchangé) --- */
.reviews-wrapper {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    scrollbar-width: none;
    transition: transform 0.3s ease-in-out;
}

/* --- Cartes d'Avis (Définition de la taille critique) --- */
.review-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;

    /* CORRECTION CLÉ: Utilisation du min-width pour assurer que les cartes ne s'étirent pas */
    /* Ceci est CRUCIAL pour que le carrousel fonctionne et affiche 3 par 3 */
    min-width: calc((100% - (2 * 30px)) / 3);
    max-width: calc((100% - (2 * 30px)) / 3);

    scroll-snap-align: start;

    /* La hauteur de la carte est maintenant déterminée par la hauteur de l'image */
    height: auto;
}

.review-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Masque la barre de défilement (Chrome, Safari) */
.reviews-wrapper::-webkit-scrollbar {
    display: none;
}


/* --- Indicateurs (Puces) --- */
.reviews-indicators {
    /* Utilise les styles de puces déjà définis (dot, dot.active) */
    margin-top: 30px;
}


/* ------------------------------------------- */
/* --- MEDIA QUERIES (Réactivité) --- */
/* ------------------------------------------- */

@media (max-width: 1024px) {
    .review-item {
        /* Tablette: 2 images */
        min-width: calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 600px) {
    .review-item {
        /* Mobile: 1 image */
        min-width: 100%;
        max-width: 100%;
    }
}

/* ------------------------------------------------ */
/* --- SECTION: CONTACT (Formulaire et Infos) --- */
/* ------------------------------------------------ */
#contact {
    background-color: white;
    text-align: center;
}

.contact-header {
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.contact-intro-text {
    color: var(--text-color);
    margin-top: 15px;
    line-height: 1.6;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    gap: 40px;
    background: #fff;
    /* Fond blanc */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* --- Colonne 1: Infos de Contact --- */
.contact-info {
    flex: 1;
    background: var(--primary-color);
    /* Fond Bleu foncé RAMELEC */
    color: white;
    padding: 50px 35px;
    border-radius: 8px 0 0 8px;
}

.info-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
}

.info-subtext {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    /* Orange pour l'icône */
    width: 40px;
    flex-shrink: 0;
}

.info-details {
    line-height: 1.4;
}

.info-label {
    font-weight: 300;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.info-value,
.info-value a {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.info-value a:hover {
    color: var(--secondary-color);
}

.info-social {
    margin-top: 50px;
    display: flex;
    gap: 15px;
}

.info-social a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.info-social a:hover {
    color: var(--secondary-color);
}

/* --- Colonne 2: Formulaire --- */
.contact-form-wrapper {
    flex: 2;
    padding: 40px;
}

.form-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group.half-width {
    flex: 1 1 calc(50% - 10px);
    /* Gère les deux colonnes côte à côte */
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
/* AJOUT: style pour le select */
select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s;
    width: 100%;
    /* Assure que le sélecteur prend toute la largeur */
}

/* NOUVEAU: Style spécifique pour le champ select */
select {
    /* Cache l'apparence native pour uniformiser le style */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    /* Ajout d'une flèche personnalisée pour indiquer que c'est un menu déroulant */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23616a79'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

textarea {
    resize: vertical;
}

/* MODIFICATION: Style du bouton pour inclure l'icône */
.btn-primary-form {
    background-color: var(--secondary-color);
    /* Bouton Orange */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: auto;

    /* NOUVEAU: Aligne le texte et l'icône */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Espace entre le texte et l'icône */
}

.btn-primary-form:hover {
    background-color: var(--primary-color);
    /* Bleu foncé au survol */
}

.send-icon {
    font-size: 1rem;
    transform: rotate(45deg);
    /* Donne un look "Paper Plane" */
    position: relative;
    left: 2px;
}

/* ------------------------------------------- */
/* --- MEDIA QUERIES (Réactivité) --- */
/* ------------------------------------------- */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 0;
        margin: 0 20px;
    }

    .contact-info {
        border-radius: 8px 8px 0 0;
        /* Arrondi seulement en haut */
        padding: 40px 25px;
    }

    .contact-form-wrapper {
        padding: 30px 25px;
    }

    .form-group.half-width {
        flex: 1 1 100%;
        /* Prend toute la largeur sur mobile */
    }
}

/* ------------------------------------------------ */
/* --- SECTION: EFFET MACHINE À ÉCRIRE --- */
/* ------------------------------------------------ */
#typing-effect-section {
    background-color: #ffffff;

    padding: 50px 20px;
    padding-bottom: 05px;
    text-align: center;
}

.typing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.typing-prefix {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.typing-text-container {
    height: 40px;
}

/* Texte dynamique */
#typed-text {
    font-size: 2rem;

    font-weight: 700;
    color: var(--secondary-color);

    white-space: wrap;
    /* Empêche le texte de passer à la ligne */
}

/* --- Curseur Clignotant --- */
.cursor {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 300;
    margin-left: 5px;

    /* Animation de clignotement */
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {

    from,
    to {
        visibility: visible;
    }

    50% {
        visibility: hidden;
    }
}

/* Ajustement pour les petits écrans */
@media (max-width: 600px) {

    #typed-text,
    .cursor {
        font-size: 1.5rem;
    }

    .typing-prefix {
        font-size: 1rem;
    }
}

/* ------------------------------------------------ */
/* --- FOOTER : Minimaliste et Esthétique --- */
/* ------------------------------------------------ */

.main-footer-minimal {
    background-color: var(--dark-bg);
    color: var(--white);
    padding-top: 50px;
    font-size: 1rem;
    border-top: 5px solid var(--secondary-color);
}

.footer-container-minimal {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
    text-align: center;
}

.footer-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 🟢 CORRECTION COULEUR 1 : RAMELEC EN BLANC PUR (Priorité maximale) */
#footer-logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white) !important;
    /* CECI DOIT ÊTRE PRÉSENT */
    margin-bottom: 5px;
}

/* 🟢 CORRECTION COULEUR 2 : SLOGAN EN BLANC PUR (Priorité maximale) */
#footer-slogan-text {
    color: var(--white) !important;
    /* CECI DOIT ÊTRE PRÉSENT */
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-tagline-minimal {
    margin-bottom: 20px;
}

/* Garantie 05 ans */
.footer-guarantee-minimal {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 8px 15px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
}

.footer-guarantee-minimal i {
    margin-right: 10px;
}


/* Coordonnées Clés */
.contact-items-minimal {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contact-link-minimal {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.contact-link-minimal i {
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 1.1rem;
}

.contact-link-minimal:hover {
    color: var(--secondary-color);
}

.separator-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 15px;
    flex-shrink: 0;
}

/* Liens Sociaux (WhatsApp Uniquement) */
.social-links-minimal {
    margin-top: 10px;
    margin-bottom: 07px;
}

.whatsapp-link-minimal {
    color: #25D366;
    font-size: 2.5rem;
    transition: transform 0.3s;
    display: inline-block;
}

.whatsapp-link-minimal:hover {
    transform: scale(1.15);
    color: #1DA851;
}

/* Bande de Copyright */
.footer-bottom-minimal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 20px;
    text-align: center;
}

.footer-bottom-minimal p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--secondary-color);
}

/* --- OPTIMISATION MOBILE (Vue moins large) --- */
@media (max-width: 600px) {

    .main-footer-minimal {
        padding-top: 30px;
    }

    .footer-container-minimal {
        padding: 0 10px 30px;
    }

    .footer-logo-minimal {
        font-size: 1.8rem;
    }

    .footer-tagline-minimal {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-guarantee-minimal {
        font-size: 0.9rem;
        padding: 6px 12px;
        margin-bottom: 25px;
    }

    .contact-items-minimal {
        flex-direction: column;
        gap: 10px;
    }

    .contact-link-minimal {
        font-size: 0.95rem;
    }

    .separator-dot {
        display: none;
    }

    .whatsapp-link-minimal {
        font-size: 2rem;
    }

    .footer-bottom-minimal {
        padding: 15px 10px;
    }

    .footer-legal-links {
        flex-direction: column;
    }
}

/*  <div class="review-item">
                    <img src="Img/Hamza.jpg" alt="Avis client 10" class="review-image" />
                </div>

<div class="review-item">
                    <img src="Img/Sara.jpg" alt="Avis client 5" class="review-image" />
                </div>

<p class="footer-guarantee-minimal">
                    <i class="fas fa-certificate"></i> Garantie 05 ans sur toutes nos installations.
                </p>
                */