
/* Section FAQ */
.faq.section {
    position: relative;
    z-index: 1;
}

.faq-item {
    position: relative;
    z-index: 1;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    margin-top: 1rem;
}

.faq-item .faq-question {
    color: #2B44A7;
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

/* Texte justifié */
p {
    text-align: start;
}

body.body-filtered::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* assombrissement léger */
  filter: blur(6px);
  z-index: 100;
  pointer-events: none;
}


/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media screen and (max-width: 968px) {
    .legal-dropdown-menu {
        width: 85vw;
        gap: 0.3rem;
    }
    
    .legal-menu-link {
        padding: 10px 16px;
        font-size: 13px;
    }

    .legal-menu-container{
        display: none !important;
    }


}

/* ========================================
   RESPONSIVE - MOBILE (en colonne)
   ======================================== */
@media screen and (max-width: 576px) {
    .legal-menu-container {
        display: none;
    }
    .legal-menu-toggle {
        font-size: 14px;
        padding: 10px 20px;
    }
    .faq-question {
        font-size: 20px;
    }

    .faq-answer, .faq-footer {
        font-size: 13px;
    }

    /* Menu en colonne sur mobile */
    .legal-dropdown-menu {
        position: fixed;
        top: 0px;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 350px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 99999 !important;
        overflow-y: auto;
    }
    
    .legal-dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        transform: translateX(-50%) translateY(0);
    }
    
    /* Liens en colonne */
    .legal-menu-link {
        display: block;
        width: 100%;
        padding: 14px 20px;
        color: #1F2937;
        text-decoration: none;
        font-family: 'Lato', sans-serif;
        font-size: 14px;
        font-weight: 500;
        text-align: left;
        border-bottom: 1px solid #E5E7EB;
        border-radius: 0;
        white-space: normal;
        transition: all 0.2s ease;
    }
    
    .legal-menu-link:last-child {
        border-bottom: none;
    }
    
    .legal-menu-link:hover {
        background: #F3F4F6;
        color: #2B44A7;
        transform: translateX(5px);
        padding-left: 25px;
    }
}

/* ========================================
   OVERLAY pour fermer le menu (optionnel)
   ======================================== */
.legal-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 99998;
}

.legal-dropdown-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #FBFAFA;
    padding: 2rem 0;
    border-top: 1px solid #E5E5E5;
}

.footer-box {
    background: #FBFAFA;
    border: 1px solid #D9D9D9;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: 0 25px 11px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    margin: 0 auto;
}

/* ========================================
   FOOTER ACCORDION
   ======================================== */
.footer-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}

.accordion-item {
    border-bottom: 1px solid #E5E5E5;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    color: #2B44A7;
}

.accordion-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #2B44A7;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 0.5rem 1.2rem 0.5rem;
}

.accordion-text {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #1C274C;
    line-height: 1.6;
    margin: 0.4rem 0;
}

.accordion-text strong {
    font-weight: 700;
    color: #2B44A7;
}

/* ========================================
   FOOTER CTA
   ======================================== */
.footer-cta {
    
    text-align: center;
   
}

    .footer-logo {
        justify-content: start;
    }
.footer-cta-text {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1C274C;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    /* background: #2B44A7; */
    color: #2B44A7;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.footer-cta-button:hover {
    /* background: #1E3A8A; */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 68, 167, 0.3);
}

/* ========================================
   FOOTER SIGNATURE & SOCIAL
   ======================================== */
.footer-signature-section {
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #D9D9D9;
}

.footer-signature {
    max-width: 160px;
    height: auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: start;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.15);
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */
.footer-bottom {
    text-align: center;
    justify-content: start;
    align-items : start
}

.footer-copyright {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    color: #999999;
    margin: 0;
    justify-content: start;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media screen and (max-width: 576px) {
    .hero-title-bottom {
    font-size: 27px;    
    margin-top: var(--spacing-md);
}
.hero-description-bottom {
        font-size: 16px;
    }
    .footer-box {
        padding: 1.5rem 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .accordion-header {
        font-size: 13px;
        padding: 1rem 0.25rem;
    }

    .accordion-text {
        font-size: 11px;
    }

    .footer-cta {
        padding: 1rem;
    }

    .footer-cta-text {
        font-size: 12px;
        text-align: center;
    }

    .footer-cta-button {
        font-size: 13px;
        padding: 0.65rem 1.5rem;
    }

    .footer-signature {
        max-width: 140px;
    }

    .social-icon img {
        width: 24px;
        height: 24px;
    }

    .footer-copyright {
        font-size: 10px;
    }
}



@media screen and (min-width: 1024px) {

    .mentions-hero::before {
  height: 100%;
    /* top: 100px !important; */
    background: 
        /* linear-gradient(
            135deg,
            rgba(216, 216, 216, 0.5),
            rgba(153, 152, 152, 0.4)
        ), */
        url(../images/Group.png) no-repeat center center;
    background-size: 350px auto, cover !important;
    /* background-size: 20%; */
}
/* Footer accordion pour desktop */
    .footer-accordion {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .accordion-item {
        display: flex;
        text-align: center;
        border-bottom: none;
        padding-right: 1.5rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .accordion-text-span, .accordion-content p {
        text-align: center;
    width: 100%;
    }

    .accordion-item:last-child {
        border-right: none;
    }

    /* Header toujours visible sur desktop */
    .accordion-header {
        padding: 0 0 1rem 0;
        cursor: default;
        pointer-events: none;
        font-size: 15px;
    }

    /* Flèche cachée sur desktop */
    .accordion-arrow {
        display: none;
    }

    /* Contenu toujours visible sur desktop */
    .accordion-content {
        max-height: none !important;
        overflow: visible;
        padding: 0;
        transition: none;
    }

    .accordion-item.active .accordion-content,
    .accordion-content {
        max-height: none;
        padding: 0;
    }

    .accordion-text {
        font-size: 13px;
        margin: 0.5rem 0;
    }

    /* Footer CTA */
    .footer-cta {
        text-align: center;
        
    }

    .footer-cta-text {
        font-size: 14px;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .footer-cta-button {
        font-size: 15px;
        padding: 0.85rem 2.5rem;
    }

    /* Footer signature section */
    .footer-signature-section {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        padding: 2rem 0;
        border-bottom: 1px solid #D9D9D9;
        margin-bottom: 1.5rem;
    }

    .footer-signature {
        max-width: 200px;
    }

    .footer-social {
        gap: 1.5rem;
    }

    .social-icon img {
        width: 32px;
        height: 32px;
    }

    /* Footer bottom */
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-copyright {
        font-size: 12px;
    }

    /* Footer logo */
    .footer-logo {
        justify-content: flex-start;
        margin-bottom: 1.5rem;
    }

    .logo-icon {
        width: 40px;
    }

    .logo-text {
        font-size: 18px;
    }

    .desktop {
        display: flex !important ;
    }

    .mobile {
        display: none !important;
    }
}

.desktop {
    display: none;
}

/* Hero Section */x 
.mentions-hero {
    position: relative;
    z-index: -1 !important;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    min-height: 200px;
    background-size: contain;
    width: 100%;

}

.mentions-hero.expanded {
    min-height: 500px; /* Augmente la hauteur quand le menu est ouvert */
}

.mentions-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    top: 60px; /* Conservez ceci si nécessaire pour positionner le before lui-même */
    z-index: 1;

    /* 1. Logo (Group.png) - Au centre */
    /* 2. Fond (Rectangle.png) - Prend tout l'espace */
    background: url(../images/Group.png) no-repeat center center,
                url(../images/Rectangle.png) no-repeat left top;

    /* Tailles correspondantes dans le même ordre */
    /* 1. Taille du logo (par exemple, 200px ou 'contain' si vous voulez qu'il s'adapte en entier) */
    /* 2. Taille du fond (cover) */
    background-size: 200px auto, cover; 
    /* Remplacez 200px auto par la taille désirée pour le logo. Vous pouvez aussi utiliser 'contain' ou '50%' */

    width: 100%; /* Inset: 0 rend width/height 100% redondant, mais ok */
}


/* Container du menu légal */
.legal-menu-container {
    position: relative;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 2rem;
}

/* Bouton toggle */
.legal-menu-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 12px 24px;
    background: transparent;
    color: #004999;
    border: none;
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10001;
    border-bottom: 2px solid rgba(0, 0, 0, 0.329);
}

.legal-menu-toggle:hover {
    color: #2B44A7;
}

.legal-menu-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.legal-menu-toggle .dropdown-arrow {
    transition: transform 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* Menu dropdown - VERSION DESKTOP (Grille 3 colonnes) */
.legal-dropdown-menu {
        position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    z-index: 99999 !important;
}

.legal-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Liens du menu */
.legal-menu-link {
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 14px 16px;
    color: #1F2937;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 8px;
    white-space: normal;
    line-height: 1.4;
}

.legal-menu-link:hover {
    background: #F3F4F6;
    color: #2B44A7;
    transform: translateY(-2px);
}