/* --- OVERFLOW Y --- */ 

html {
    overflow-x: hidden;
}

/* --- IMG Qui sommes nous --- */

.max-height-img .elementor-widget-image {
    height: 100%;
}

.max-height-img img {
    width: 100% !important;      
    height: 100% !important;      
    object-fit: cover; 
    object-position: center center;
    display: block;    
}

/* --- NavBar --- */

/* Header */
.stickhead {
  background-color: transparent !important;
  transition: background-color 0.3s ease !important;
}
.stickhead.scrolled {
  background-color: #092646 !important;
  z-index: 9999;
  border-radius: 0px 0px 20px 20px;
  box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px !important;
}

/* Header noir par défaut sur mobile et tablette */
@media (max-width: 1024px) {
  
}

@media (max-width: 1445px) {  
    .main-navbar .elementor-item {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 1275px) {  
    .main-navbar {
        display: none !important;
    }

    .stickhead .elementor-hidden-mobile{
        display: none !important;
    }

    .stickhead {
        background-color: #092646 !important;
    } 

    .stickhead .elementor-hidden-desktop {
        display: block !important;
    }
}

/* --- Card Expertise (modele) --- */

.card-expertise {
    position: relative; 
    isolation: isolate;
    transition: all 0.3s ease-in-out !important; 
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px !important;
    padding: 30px !important; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
}

/* 1. L'effet de mouvement au survol (Hover) */
.card-expertise:hover {
    transform: translateY(-8px) !important; 
    border: 1px solid #55D478 !important; 
    box-shadow: 0 15px 30px rgba(85, 212, 120, 0.2), 0 5px 10px rgba(0, 0, 0, 0.1) !important; 
    cursor: pointer;
}

/* 2. Changement de couleur du texte du bouton au survol de la CARTE */
.card-expertise:hover .elementor-button-text {
    color: #142247 !important; 
}

/* 3. On "casse" les limites du bouton pour qu'il ne bloque pas le lien */
.bouton-etendu, 
.bouton-etendu .elementor-widget-container, 
.bouton-etendu a {
    position: static !important;
}

/* 4. L'astuce magique : On étend le lien sur toute la carte */
.bouton-etendu a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  
    height: 100%;  
    z-index: 10;    
}

/* --- BULLE GLISSANTE (SLIDER) --- */

/* 1. Conteneur */
.onglet-tab .e-n-tabs-heading {
    background-color: #142247 !important;
    padding: 5px !important; 
    border-radius: 100px !important;
    display: flex !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 2. Style des Boutons */
.onglet-tab .e-n-tab-title {
    background-color: transparent !important;
    color: #FFFFFF !important;
    border-radius: 100px !important;
    padding: 12px 24px !important;
    border: none !important;
    z-index: 10 !important;
    transition: color 0.3s ease !important; 
    flex-grow: 0;
}

/* 3. Texte Actif */
.onglet-tab .e-n-tab-title[aria-selected="true"] {
    color: #FFFFFF !important; 
    font-weight: 600 !important;
}

/* 4. Création de la BULLE VERTE */
.onglet-tab .e-n-tabs-heading::before {
    content: "";
    position: absolute;
    top: 5px; 
    left: 0;
    height: calc(100% - 10px);
    background-color: #55D478;
    border-radius: 100px;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1) !important;
    
    /* Vient du JS, définit la largeur de la bulle */
    width: var(--slider-width); 
    /* Vient du JS, définit la position (glissement) */
    transform: translateX(var(--slider-translate));
}

/* 5. Ajustement Mobile */
@media (max-width: 768px) {
    .onglet-tab .e-n-tabs-heading {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        border-radius: 15px !important;
        justify-content: flex-start !important;
    }
    
    .onglet-tab .e-n-tab-title {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important; 
    }

    .onglet-tab .e-n-tab-title[aria-selected="true"] {
        color: #3AD77E !important; 
    }
}

/* --- MENU NAVIGATION VERTICAL --- */

/* 1. Conteneur Principal (Fond bleu) - Ciblage précis du menu desktop */
.menu-pilule-glissante .elementor-nav-menu--main.elementor-nav-menu__container {
    padding: 5px !important; 
    border-radius: 10px !important; 
    position: relative !important; /* CRUCIAL */
    z-index: 1 !important; 
    width: 100% !important; 
    display: block !important;
}

/* 2. Les Liens (a) - Le corps du bouton */
.menu-pilule-glissante .elementor-item {
    background-color: transparent !important;
    color: #FFFFFF !important;
    border-radius: 5px !important; 
    padding: 10px 20px !important; 
    display: flex !important;
    align-items: center !important; /* Centrage vertical */
    justify-content: flex-start !important; /* Alignement à gauche */
    position: relative !important;
    z-index: 10 !important; /* Texte au-dessus de la bulle */
    transition: color 0.3s ease !important;
}

/* 3. La liste UL et LI doivent être sans marges/padding pour le calcul de position */
.menu-pilule-glissante ul.elementor-nav-menu {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important; 
    position: relative; 
    z-index: 2 !important; /* Liste au-dessus de la bulle */
}
.menu-pilule-glissante ul.elementor-nav-menu li {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    position: relative !important;
    z-index: 10 !important; /* Items au-dessus de la bulle */
}

/* 4. Création de la BULLE VERTE (L'élément qui va glisser) */
.menu-pilule-glissante .elementor-nav-menu--main.elementor-nav-menu__container::before {
    content: "" !important;
    position: absolute;
    left: 5px; 
    top: 5px;
    background-color: #55D478; /* Le vert de la bulle */
    border-radius: 5px; 
    z-index: 1 !important; 
    
    transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1) !important; 
    
    height: var(--slider-height); 
    transform: translateY(var(--slider-translate-y)); 
    width: calc(100% - 10px); 
}

/* 5. Style du Texte Actif */
.menu-pilule-glissante .elementor-item-active {
    color: #FFFFFF !important; 
    font-weight: 600 !important;
    z-index: 10 !important;
}

/* 6. S'assurer que le texte reste visible au hover */
.menu-pilule-glissante .elementor-item:hover {
    color: #FFFFFF !important;
    z-index: 10 !important;
}

/* ========== MENTIONS LEGALES STYLES (Base Gallazzini) ========== */

.legal-mentions {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.7;
    color: #cbd5e1; /* Texte gris clair (au lieu du gris foncé) */
    font-family: 'Segoe UI', sans-serif; /* Police clean */
}

/* Titres principaux */
.legal-mentions h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff; /* Titre blanc */
    margin: 50px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #4ade80; /* Vert A2SI (au lieu de l'orange) */
}

.legal-mentions h2:first-of-type {
    margin-top: 40px;
}

/* Sous-titres */
.legal-mentions h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff; /* Sous-titre blanc */
    margin: 35px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #4ade80; /* Vert A2SI */
}

/* Paragraphes */
.legal-mentions p {
    font-size: 16px;
    margin-bottom: 18px;
    text-align: justify;
    color: #94a3b8; /* Gris un peu plus doux pour le corps de texte */
}

/* Liens */
.legal-mentions a {
    color: #4ade80; /* Vert A2SI */
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
    border-bottom: 1px solid transparent;
}

.legal-mentions a:hover {
    color: #22c55e; /* Vert un peu plus foncé au survol */
    border-bottom-color: #22c55e;
}

/* Emphase */
.legal-mentions em {
    font-style: italic;
    color: #4ade80;
}

.legal-mentions strong {
    font-weight: 700;
    color: #ffffff; /* Strong en blanc pur */
}

.legal-mentions > p:first-of-type {
    font-size: 17px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(15, 23, 42, 0.3)); 
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4ade80;
    color: #e2e8f0;
}

/* Espacement */
.legal-mentions h2 + p,
.legal-mentions h3 + p {
    margin-top: 10px;
}

/* RESPONSIVE (Gardé tel quel) */
@media (max-width: 768px) {
    .legal-mentions {
        padding: 30px 15px;
    }

    .legal-mentions h2 {
        font-size: 24px;
        margin: 40px 0 15px;
    }

    .legal-mentions h3 {
        font-size: 19px;
        padding-left: 12px;
    }

    .legal-mentions p {
        font-size: 15px;
        text-align: left; 
    }

    .legal-mentions > p:first-of-type {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .legal-mentions h2 {
        font-size: 21px;
    }

    .legal-mentions h3 {
        font-size: 17px;
    }

    .legal-mentions p {
        font-size: 14px;
    }
}

.elementor-field-group-field_e68af31 {
    align-self: center !important;
}

.elementor-field-group-field_e68af31 input {
    padding-top: 12px !important;  
    padding-left: 10px !important;
    padding-bottom: 12px !important; 
    height: auto !important; 
    line-height: 1 !important;
}