/* Réinitialisation de base */
*, *::before, *::after {
    box-sizing: border-box;
}



@media screen and (max-width: 992px) {
    
    /* A. Modifie le Body sur Mobile: Retire l'image et l'attachement fixe du body */
    body {
        background-image: none !important; /* L'image est déplacée sur le ::before */
        background-attachment: scroll !important; 
        min-height: auto; 
    }
    
    /* B. Crée un élément *fixe* en arrière-plan (La solution robuste) */
    body::before {
        content: "";
        
        /* Rend l'élément fixe par rapport à l'écran */
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        
        /* Place l'image derrière le contenu */
        z-index: -1; 
        
        /* PROPRIÉTÉS CLÉS: FILTRE + IMAGE MOBILE + FIXE */
        background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--img-mobile); 
        background-repeat: no-repeat;
        background-position: center bottom; /* Position par défaut mobile (sera écrasée par les classes) */
        background-size: cover; /* Défaut pour l'effet fixe, sera écrasé par les classes */
    }
    
    /* C. Gestion des classes de positionnement sur le pseudo-élément fixe (Mobile) */
    /* Ceci applique vos réglages de positionnement et de taille spécifique à l'image mobile */
    body.align-image-bottom::before,
	body.align-image-bottom-acceuil::before,
    body.align-image-bottom-prestation::before,
    body.align-image-bottom-simple::before {
        /* On retire la taille 'cover' par défaut du ::before pour appliquer 'contain' */
        background-size: contain; 
        /* Reprise de votre positionnement mobile */
        background-position: center, top; 
    }
}

.align-image-bottom {
    background-position: center calc(100% + -18em) !important; 
}
.align-image-bottom-acceuil {
    background-position: center bottom calc(100% + 9.5em) !important; 
}
.align-image-bottom-prestation {
    background-position: center bottom calc(100% + 14em) !important; 
}
.align-image-bottom-simple {
    background-position: center calc(100% + -10em) !important; 
}

/* ========================================================= */
/* 2. STYLES GÉNÉRAUX & DESKTOP (Définitions par défaut)      */
/* ========================================================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #444444; 
    line-height: 1.6;
    
    /* Application du filtre noir 20% + image desktop */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--img-desktop); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* L'effet Parallaxe classique pour desktop */
}

/* Classes de positionnement (Desktop) */


a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lang-selector-desktop a.active {
    font-weight: 900;
}
.lang-selector-desktop
 {
    font-size: 0.8em;
}

/* ==================== EN-TÊTE FIXE (DESKTOP) ==================== */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px; 
    color: #444444; 
    background-color: white; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.3s;
}

.logo img {
    max-height: 45px; 
    width: auto;
    filter: brightness(0.4); 
}

/* Navigation Desktop */
.desktop-nav ul {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.desktop-nav a.active {
    border-bottom: none; 
    font-weight: 900; 
    padding-bottom: 0;
}

/* Style du bouton de connexion desktop (gris foncé par défaut) */
.btn-connect {
    /* Fond Gris Foncé, Texte et Bordure Blancs/Clairs */
    background-color: #444444; /* Fond gris foncé pour correspondre à l'image */
    border: 1px solid #444444; /* Bordure assortie */
    color: white; /* Texte en blanc */
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 20px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    
    /* Affichage de l'icône et du texte côte à côte */
    display: flex;
    align-items: center;
    gap: 8px; /* Espace entre l'icône et le texte */
    font-weight: bold; 
    text-transform: lowercase; 
}

/* Style de l'icône À L'INTÉRIEUR du bouton desktop */
.btn-connect i {
    color: white; /* Icône en blanc par défaut */
    font-size: 1.2em; 
    transition: color 0.3s;
}

/* Effet Hover du bouton de connexion */
.btn-connect:hover {
    background-color: #bb6d18; /* Couleur demandée au survol */
    border-color: #bb6d18; /* Bordure assortie au survol */
    color: white; /* Garde le texte blanc */
}

.btn-connect:hover i {
    color: white; /* Garde l'icône blanche au survol */
}

.right-controls {
    display: flex;
    align-items: center;
}

/* ==================== SECTION HÉROS ==================== */
@media screen and (min-width: 992px) {

.align-image-bottom {
    background-position: center calc(100% + -12em) !important; 
}
.align-image-bottom-acceuil {
    background-position: center bottom calc(100% + 9.5em) !important; 
}
.align-image-bottom-prestation {
    background-position: center bottom calc(100% + 14em) !important; 
}
.align-image-bottom-simple {
    background-position: center calc(100% + -10em) !important; 
}


.hero-section {
    height: 80vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.hero-section-other {
    height: 50vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.hero-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); 
    z-index: 1; 
}

.title-container {
    width: 100%;
    text-align: center;
    position: relative; 
    z-index: 2; 
}

.hero-title {
    color: white; 
    font-size: 48px;
    font-weight: bold;
    padding: 0 20px;
	padding-bottom: 0.5em;
    margin: 0;
}
}

@media screen and (max-width: 992px) {


.hero-section {
    height: 58vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}
.hero-section-other {
    height: 60vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.hero-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); 
    z-index: 1; 
}

.title-container {
    width: 100%;
    text-align: center;
    position: relative; 
    z-index: 2; 
}

.hero-title {
    color: white; 
    font-size: 48px;
    font-weight: bold;
    padding: 0 20px;
	padding-bottom: 0.5em;
    margin: 0;
}
}
/* ==================== SECTION CONTENU PRINCIPAL ==================== */
.content-section {
    background-color: white; 
    /* min-height: 100vh;*/
    padding: 50px 30px;
}

.content-section-noimg {
    background-color: white; 
    /* min-height: 100vh;*/
    padding: 120px 30px 60px 30px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.contenu {
    text-align: justify;
}

.content-section h2 {
    font-size: 1.5em;
    margin-top: 0;
    color: #444444;
    text-transform: uppercase;
    display: inline-block; 
    padding-bottom: 5px; 
    border-bottom: 1px solid #bb6d18; 
    margin-bottom: 30px; 
}

.content-section-noimg h2 {
    font-size: 1.5em;
    margin-top: 0;
    color: #444444;
    text-transform: uppercase;
    display: inline-block; 
    padding-bottom: 5px; 
    border-bottom: 1px solid #bb6d18; 
    margin-bottom: 30px; 
}

.content-section ul {
    list-style: disc; 
    padding-left: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
    margin-left: 0;
}

/* ==================== PIED DE PAGE ==================== */
footer {
    background-color: white; 
    color: #444444; 
    
    text-align: center;
    padding: 20px 0 35px 0;
    font-size: 14px;
    position: relative; 
}

/* Ligne de séparation du footer */
footer::before {
    content: "";
    display: block;
    height: 1px;
    background-color: #e8e8e8; 
    
    max-width: 1200px; 
    margin: 0 auto;
    
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%; 
}

/* Ajuster la couleur des liens du footer */
footer a {
    color: #444444; 
    margin: 0 10px;
    transition: color 0.3s;
}
footer a:hover {
    color: #333; 
}


.content-section h3 {
        margin-bottom: 20px; 
		font-size: 19px;
		font-weight: normal;
    }
	
.content-section-noimg h3 {
        margin-bottom: 20px; 
		font-size: 19px;
		font-weight: normal;
    }

/* ==================== ÉLÉMENTS MOBILES (CACHÉS SUR DESKTOP) ==================== */
.mobile-icons, .sidenav, .lang-selector-mobile {
    display: none; 
}

/* ==================== MEDIA QUERIES (ADAPTATION MOBILE) ==================== */
@media screen and (max-width: 992px) {
	/* Styles du footer mobile */
	footer {
		font-size: 11px;
	}

    /* OVERLAY DE FOND LORSQUE LE MENU EST OUVERT (Noir 30% transparence) */
    body.menu-open::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3); 
        z-index: 1999; 
    }
    .hero-section-other {
        height: 14em;
    }
    
    /* 2. Cacher les éléments Desktop */
    .desktop-nav, .btn-connect, .lang-selector-desktop {
        display: none;
    }

    /* 3. Afficher les éléments Mobile */
    .mobile-icons {
        display: flex;
        align-items: center;
        gap: 20px;
        font-size: 30px;
        cursor: pointer;
    }

    /* Style de l'icône de connexion (header fixe, fond blanc) */
    .mobile-icons .user-icon {
        color: #444444; /* Gris/Noir pour le contraste sur fond blanc */
        font-size: 30px;
    }

    .header-fixed {
        padding: 10px 20px; 
    }

    .logo img {
        max-height: 40px; 
    }
    
    .hero-title {
        font-size: 35px; 
		line-height: 1;
    }
	
	.content-wrapper {
	    text-align: center;
	    padding: 20px;
    }
	.content-wrapper-offre {
	    text-align: center;
	    padding-top: 20px;
    }
	

	.content-section {
        padding: 7px;
    }
	
    .content-section-noimg {
        padding: 90px 5px 20px 5px;
    }

	.content-section h2 {
		text-transform: uppercase;
        margin-bottom: 20px; 
		font-size: 21px;
    }
	
	.content-section h3 {
        margin-bottom: 20px; 
		font-size: 16px;
		font-weight: normal;
    }

    .content-section-noimg h2 {
		text-transform: uppercase;
        margin-bottom: 20px; 
		font-size: 21px;
    }
	
	.content-section-noimg h3 {
        margin-bottom: 20px; 
		font-size: 16px;
		font-weight: normal;
    }
    
    footer::before {
        max-width: none; 
        width: 95%;
    }
    
    /* ==================== MENU MOBILE SIDENAV ==================== */
    .sidenav {
        display: block; 
        height: 100%;
        width: 0; 
        position: fixed;
        z-index: 2000;
        top: 0;
        left: 0;
        /* Fond #444444 100% opaque */
        background-color: #444444; 
        overflow-x: hidden;
        transition: width 0.5s; 
        padding-top: 0; 
    }

    .sidenav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        margin-bottom: 0; 
        color: white;
    }

    /* Correction: Limiter la taille du logo dans le menu mobile */
    .sidenav-logo {
        max-height: 50px; 
        max-width: 120px; 
        width: auto;
    }

    .sidenav-controls {
        display: flex;
        align-items: center;
        font-size: 24px;
    }
    
    /* Style de l'icône de connexion (menu mobile, fond gris/noir) */
    .user-icon-sidenav {
        color: white; /* Blanc pour le contraste sur fond #444444 */
        font-size: 30px;
    }
    
    .sidenav ul {
        padding: 0;
        /* Ligne de séparation AU-DESSUS du premier <li> */
        border-top: 1px solid rgba(255, 255, 255, 0.2); 
    }
    
    /* Augmentation du padding pour l'espacement entre les lignes */
    .sidenav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    }
    
    .sidenav li a {
        /* Plus de padding pour espacer (20px haut/bas) */
        padding: 20px 0; 
        text-align: center; 
        
        font-size: 18px;
        color: white;
        display: block;
        font-weight: normal; 
    }
    
    .sidenav li a.active {
        font-weight: 900; 
    }
    
    /* SUPPRESSION de l'effet de survol (hover) */
    .sidenav li a:hover {
        background-color: transparent; /* Désactive le changement de couleur de fond */
    }

    .lang-selector-mobile {
        display: block;
        margin-top: 20px;
        text-align: center;
        font-size: 16px;
        color: white;
        padding: 15px 0;
        
        /* MODIFICATION: Empêche le texte de revenir à la ligne */
        white-space: nowrap; 
    }
    .lang-selector-mobile a {
        padding: 5px;
        font-weight: normal;
    }
    
    .lang-selector-mobile a.active {
        font-weight: 900; 
    }
}

    /* ==================== EQUIPE ==================== */
/* --- ENCAPSULATION DES STYLES POUR L'ÉQUIPE --- */

img.icon {
    width: 60px;
}

/* Conteneur Parent pour l'isolation */
.finsight-team-wrapper {
    /* Styles de base si besoin, mais principalement pour l'encapsulation */
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 1. Conteneur des Cartes */
.finsight-team-wrapper .team-cards-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    padding: 20px;
    max-width: 1200px; 
    margin: 0 auto; /* Centrer le conteneur */
    justify-content: center; 
}

/* 2. Styles pour chaque carte de membre - Base */
.finsight-team-wrapper .team-member-card {
    background-color: white;
    border: 1px solid #ddd; 
    border-radius: 4px;
    padding: 20px;
    box-sizing: border-box; /* Essentiel pour le calcul des largeurs */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 280px; 
    flex-grow: 1; 
    
    /* Par défaut (Moyen écran, ex: tablettes ou petit desktop) : 2 cartes par ligne */
    flex-basis: calc(50% - 10px); 
}

/* Rendu responsive : PETIT MOBILE (1 carte par ligne pour les très petits écrans si nécessaire) */
@media (max-width: 480px) {
    .finsight-team-wrapper .team-member-card {
        flex-basis: 100%; /* 1 carte par ligne */
        max-width: none; 
    }
}

/* Rendu responsive : MOBILE et TABLETTE PORTRAIT (2 cartes par ligne, comme demandé) */
@media (min-width: 481px) and (max-width: 768px) {
    .finsight-team-wrapper .team-member-card {
        /* Calcule pour 2 cartes par ligne avec 20px de gap */
        flex-basis: calc(50% - 10px); 
        max-width: calc(50% - 10px);
    }
}


/* Rendu responsive : GRAND DESKTOP (3 cartes par ligne) */
@media (min-width: 1024px) {
    .finsight-team-wrapper .team-member-card {
        /* Calcule pour 3 cartes par ligne */
        flex-basis: calc(33.333% - 14px); 
        max-width: calc(33.333% - 14px);
    }
}

/* 3. Styles pour l'icône */
.finsight-team-wrapper .icon-container {
    width: 60px;
}

/* 4. Styles pour le nom */
.finsight-team-wrapper .name {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
    font-weight: 600;
}

/* 5. Styles pour les groupes d'informations */
.finsight-team-wrapper .detail-group {
    margin-bottom: 5px;
    width: 100%;
    display: flex;
    flex-direction: column; 
    text-align: center;
}

.finsight-team-wrapper .label {
    margin: 2px 0;
    font-size: 0.9em;
    color: #444;
}

.finsight-team-wrapper .value {
    margin: 2px 0;
    font-size: 1em;
    color: #444;
    line-height: 1.2;
    padding-bottom: 5px; 
}

.finsight-team-wrapper .bold {
    font-weight: 700;
}

    /* ==================== PRESTATION ==================== */

/* ---------------------------------------------------- */
/* --- ENCAPSULATION ET STYLES DU TABLEAU DES PRESTATIONS --- */
/* ---------------------------------------------------- */

.prestations-table-wrapper {
    width: 100%;
    /* Désactiver le défilement horizontal pour essayer d'afficher toutes les colonnes */
    overflow-x: hidden; 
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 10px;
    box-sizing: border-box;
}

.prestations-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    /* Utiliser fixed sur desktop pour un meilleur contrôle de la largeur */
    table-layout: fixed; 
}

/* ---------------------------------------------------- */
/* Styles Desktop (Par défaut: 769px et plus) */
/* ---------------------------------------------------- */

.prestations-table th, 
.prestations-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.prestations-table thead th {
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
}

.prestations-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Largeur des colonnes sur Desktop */
.prestations-table .service-header {
    width: 23%; 
    text-align: left; 
}

.prestations-table .service-type {
    width: 20%; 
    text-align: center;
    line-height: 1.2;
}


/* ---------------------------------------------------- */
/* Style des Coches (✓) */
/* ---------------------------------------------------- */

.prestations-table .included {
    text-align: center; 
    font-size: 1.5em; 
    font-weight: bold;
    color: #bb6d18; 
}


/* ---------------------------------------------------- */
/* --- Rendu Responsive Mobile (max 768px) --- */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
    
    .prestations-table {
        /* Permet à la table d'utiliser la largeur complète sans forcer un min-width */
        table-layout: fixed; 
        width: 100%;
    }
    
    .prestations-table th, 
    .prestations-table td {
        /* Réduire le padding et la taille de police pour gagner de l'espace */
        padding: 5px 3px; 
        font-size: 0.75em; /* Texte plus petit */
        
        /* Forcer le wrap du texte pour éviter le défilement */
        white-space: normal; 
    }
    
    .prestations-table thead th {
        font-size: 0.65em;
        padding: 8px 3px;
    }
    
    /* Répartition des largeurs sur Mobile (100% au total) */
    
    .prestations-table .service-header {
        /* 45% de la largeur pour la description */
        width: 19%; 
        text-align: left;
    }
    
    .prestations-table .service-type {
        /* 55% / 3 colonnes = environ 18.33% pour les 3 autres colonnes */
        width: 18.333%; 
        text-align: center;
    }
    
    /* Ajustement de la coche sur mobile */
    .prestations-table .included {
        font-size: 1.1em; /* Coche plus petite */
    }
}

/* Rendu pour les très petits écrans (ex: moins de 400px) si l'affichage devient trop compact */
@media (max-width: 400px) {
    .prestations-table th, 
    .prestations-table td {
        padding: 5px 2px;
        font-size: 0.65em;
    }
    .prestations-table .included {
        font-size: 1em;
    }
}

    /* ==================== CONTACT ==================== */

/* ---------------------------------------------------- */
/* --- ENCAPSULATION ET STYLES DE LA PAGE CONTACT --- */
/* ---------------------------------------------------- */

/* Remarque: Le content-wrapper a déjà été défini plus haut (max-width: 1200px;) */

.finsight-contact-wrapper {
    display: flex;
    flex-direction: row; /* Desktop: les éléments sont côte à côte */
    width: 100%;
    min-height: 700px; /* Hauteur minimale pour l'ensemble du bloc (info + carte) */
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* 1. Conteneur des Informations (bloc gauche) */
.contact-info-container {
    /* Largeur sur Desktop: 40% (ajustable) */
    flex-basis: 100%; 
	margin-top: 38px;
    background-color: #444444; /* Fond gris foncé, comme dans le PDF */
    color: white;
    padding: 1px 50px 51px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pour espacer les groupes de contenu */
    box-sizing: border-box;
}

.company-name {
    font-size: 2.5em;
    font-weight: 400; /* Plus fin que le reste */
    margin-bottom: 20px;
}

.address-line {
    margin: 5px 0;
    font-size: 1.2em;
    font-weight: 300;
}

.parking-group {
    margin-top: 50px; /* Espace avec le bloc d'adresse sur desktop */
    margin-bottom: 50px;
}

.parking-info {
    font-size: 0.9em;
    line-height: 1.4;
    font-style: italic;
    font-weight: 300;
}

.contact-links a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1.4em;
    margin-bottom: 5px;
    font-weight: 500;
}
.contact-links a:hover {
    text-decoration: underline;
}


/* 2. Conteneur de la Carte (bloc droit) */
.contact-map-container {
    /* Largeur sur Desktop: 60% (ajustable) */
    flex-basis: 100%; 
    height: 100%; /* S'étend sur toute la hauteur du wrapper */
    position: relative;
    overflow: hidden;
}

/* Placeholder pour simuler la carte */
.map-placeholder {
    width: 766px; /* Doit être 100% de son conteneur pour être responsive */
    height: 700px;
    background-image: url('placeholder-map.jpg'); /* Remplacer par une image ou retirer pour l'iframe */
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: #555;
    font-weight: bold;
}


/* ---------------------------------------------------- */
/* --- Rendu Responsive Mobile (max 768px) --- */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
	
	.map-placeholder {
        width: 100%;
        height: 100%;
        background-color: #ccc; 
	}
    
    .finsight-contact-wrapper {
        flex-direction: column; /* Mobile: les éléments s'empilent */
        min-height: auto;
    }
    
    /* 1. Informations - Prend toute la largeur */
    .contact-info-container {
        flex-basis: 100%;
        padding: 70px 20px 40px 20px;
        text-align: center; /* Centrage sur mobile */
    }
    
    /* Réduire l'espacement sur mobile */
    .contact-info-container,
    .contact-details-group {
        justify-content: flex-start;
    }
    
    .company-name {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .address-line {
        font-size: 1em;
    }
    
    .parking-group {
        margin-top: 20px; 
        margin-bottom: 20px;
    }

    .contact-links a {
        font-size: 1.2em;
    }

    /* 2. Carte - Prend toute la largeur, définir une hauteur fixe */
    .contact-map-container {
        flex-basis: 100%;
        /* Définir une hauteur visible pour la carte sur mobile */
        height: 300px; 
    }
}

/* Règle spécifique pour corriger et remplacer l'image de fond sur TABLETTE (993px à 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
  
  /* Cible uniquement la page d'accueil. */
  body.align-image-bottom-acceuil {
    /* 1. Remplace l'image desktop décalée par l'image mobile */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--img-mobile) !important;
    
    /* 2. Force l'image à couvrir toute la zone du body (prend la largeur) */
    background-size: cover !important;
    
    /* 3. S'assure que l'image est bien centrée (annule le décalage de 9.5em) */
    background-position: center center !important; 
    
    /* 4. Maintient l'effet de parallaxe */
    background-attachment: fixed !important;
  }
}
/* Règle spécifique pour les PETITES TABLETTES (ex: iPad Mini Portrait : 768px à 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .hero-section-other {
        height: 27em;
    }
  /* Masque l'image mobile affichée via le pseudo-élément (body::before) pour ce cas. */
  body.align-image-bottom-acceuil::before {
    background-image: none !important;
  }
  
  /* Applique l'image mobile directement au body, en mode 'cover' (pleine largeur). */
  body.align-image-bottom-acceuil {
    /* 1. Applique l'image mobile */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--img-mobile) !important;
    
    /* 2. Force l'image à prendre toute la largeur */
    background-size: cover !important;
    
    /* 3. S'assure que l'image est centrée */
    background-position: center -16em !important; 
    
    /* 4. Maintient l'effet de parallaxe */
    background-attachment: fixed !important;
  }
}
@media (min-width: 540px) and (max-width: 720px) {
  .hero-section-other {
        height: 20em;
    }
  /* Masque l'image mobile affichée via le pseudo-élément (body::before) pour ce cas. */
  body.align-image-bottom-acceuil::before {
    background-image: none !important;
  }
  
  /* Applique l'image mobile directement au body, en mode 'cover' (pleine largeur). */
  body.align-image-bottom-acceuil {
    /* 1. Applique l'image mobile */
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--img-mobile) !important;
    
    /* 2. Force l'image à prendre toute la largeur */
    background-size: cover !important;
    
    /* 3. S'assure que l'image est centrée */
    background-position: center center !important; 
    
    /* 4. Maintient l'effet de parallaxe */
    background-attachment: fixed !important;
  }
}
@media (min-width: 540px) and (max-width: 720px) {
.hero-section {
    height: 57vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}}

@media (min-width: 853px) and (max-width: 1280px) {
.hero-section {
    height: 67vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}}
