/* =========================
   FAQ PAGE
   ========================= */

.faq-page {
    margin-top: 25px;
    margin-bottom: 30px;
    position: relative;
}

/* Bandeau haut */
.faq-hero {
    background: url("../img/building-header.jpg") center center / cover no-repeat;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 30px;
}

.faq-hero-overlay {
    background: rgba(0, 115, 193, 0.78);
    padding: 40px 45px;
}

.faq-hero h1 {
    color: white;
    font-family: 'Overpass', sans-serif;
    font-size: 2.4em;
    font-weight: 800;
    margin-bottom: 10px;
}

.faq-hero p {
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    margin-bottom: 0;
}

/* Boutons catégories */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.faq-tab {
    border: none;
    background: rgb(0, 115, 193);
    color: white;
    padding: 14px 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: 0.2s;
}

.faq-tab:hover {
    background: rgba(0, 115, 193, 0.85);
}

.faq-tab.active {
    background: #2b2b2b;
    color: white;
}

/* Mise en page */
.faq-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.faq-main {
    flex: 1;
    min-width: 0;
}

.faq-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Sections */
.faq-section {
    display: none;
}

.faq-section.active {
    display: block;
}

/* Accordéons */
.faq-item {
    border: 1px solid #d9d9d9;
    margin-bottom: 16px;
    background: white;
}

.faq-question {
    width: 100%;
    border: none;
    background: white;
    color: rgb(0, 115, 193);
    text-align: left;
    padding: 20px 55px 20px 20px;
    font-family: 'Overpass', sans-serif;
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.faq-question:hover {
    background: rgba(0, 115, 193, 0.04);
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6em;
    font-weight: 700;
    color: #7a7a7a;
}

.faq-item.open .faq-question::after {
    content: "–";
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    line-height: 1.7;
    color: #444;
    text-align: justify;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Colonne de droite */
.faq-card {
    border: 1px solid #d9d9d9;
    background: white;
    padding: 22px;
    margin-bottom: 20px;
}

.faq-card h3 {
    margin-top: 0 !important;
    margin-bottom: 12px;
    color: rgb(0, 115, 193);
    font-family: 'Overpass', sans-serif;
    font-size: 1.8em;
    font-weight: 800;
}

.faq-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.faq-btn {
    display: inline-block;
    padding: 12px 18px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    transition: 0.2s;
}

.faq-btn:hover {
    text-decoration: none;
}

.faq-btn-blue {
    background: rgb(0, 115, 193);
    color: white;
}

.faq-btn-blue:hover {
    background: rgba(0, 115, 193, 0.9);
    color: white;
}

.faq-btn-grey {
    background: #6c757d;
    color: white;
}

.faq-btn-grey:hover {
    background: #5a6268;
    color: white;
}

/* Bloc de texte complémentaire */
.faq-card-light {
    background: #f5f7f9;
}

/* Responsive */
@media (max-width: 991px) {
    .faq-layout {
        flex-direction: column;
    }

    .faq-sidebar {
        width: 100%;
    }

    .faq-hero-overlay {
        padding: 30px 20px;
    }

    .faq-hero h1 {
        font-size: 1.8em;
    }

    .faq-hero p {
        font-size: 1em;
    }

    .faq-question {
        font-size: 1.1em;
        padding: 18px 50px 18px 18px;
    }

    .faq-tabs {
        gap: 10px;
    }
  
    .faq-tab {
        width: 100%;
        text-align: center;
    }
}
.faq-animation-container {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #d6deeb;
    border-radius: 12px;
    background: #f8fbff;
}

.faq-animation-title {
    font-weight: 800;
    color: #005ca9;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
}

.faq-animation-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0 0 20px 0;
    list-style: none;
}

.faq-animation-menu-element {
    padding: 8px 14px;
    border-radius: 20px;
    background: #e8eef7;
    color: #003b71;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.faq-animation-menu-element:hover,
.faq-animation-menu-element.active {
    background: #005ca9;
    color: #ffffff;
}

/* Bloc image : garde une taille stable */
.faq-animation-picture-block {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Images : même taille, centrées, non déformées */
.faq-animation-picture {
    display: none;
    width: 100%;
    max-width: 1100px;
    height: 620px;
    object-fit: contain;
    object-position: center;
    margin: auto;
    border-radius: 8px;
}

.faq-animation-picture.active {
    display: block;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .faq-animation-container {
        padding: 15px;
    }

    .faq-animation-picture-block {
        min-height: 260px;
    }

    .faq-animation-picture {
        max-width: 100%;
        height: 260px;
    }

    .faq-animation-menu-element {
        font-size: 13px;
        padding: 7px 11px;
    }
}