/* ==========================================================================
   PAGE À PROPOS - STYLES INLINE
   ========================================================================== */

:root {
    --persos-height: 200px;
    --diplome-height: 120px;
    --nuages-blancs-height: 164px;
    --coiffe-width: 108px;
    --coiffe-height: 80px;
    --texte-manuel-width: 150px;
    --texte-manuel-height: 118px;
}

/* Variables CSS */
.apropos-page {
    --purple-dark: #271d48;
    --purple-light: #3d3270;
    --yellow-accent: #f5c518;
    --turquoise: #1acbb6;
    --white: #fff;
    --gray-light: #f8f7fc;
    --text-body: #271d48;
}

/* ==========================================================================
   HERO / BANNIÈRE - OVERRIDE
   ========================================================================== */
.nuages-container .nuages {
    bottom: -17px;
}
.banniere-illustration {
    bottom: -10%;
}
/* Wrapper pour positionner le nouveau titre */
.apropos-banner-wrapper {
    position: relative;
}

/* Masquer l'accroche originale "L'équipe" */
.apropos-page .banniere .accroche {
    display: none !important;
}

/* Nouveau titre "A propos" */
.apropos-hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(48px, 8vw, 80px);
    color: #fff;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   SECTION ACTEUR DE RÉFÉRENCE
   ========================================================================== */
.apropos-acteur {
    background: var(--white);
    padding: 80px 5% 300px;
    position: relative;
    z-index: 1;
}

.apropos-acteur__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.apropos-acteur__left,
.apropos-acteur__right {
    width: 50%;
}

.apropos-acteur__title {
    font-family: 'Bitter-Semibold', serif;
    font-size: calc(40px + 8 * (100vw - 992px) / 928);
    line-height: 1.15;
    color: var(--purple-dark);
    margin: 0;
    letter-spacing: -1px;
}

.apropos-acteur__title span {
    display: inline-block;
    width: 100%;
}

.apropos-acteur__right {
    display: flex;
    align-items: flex-end;
}

.apropos-acteur__text {
    font-family: 'Inter-Regular', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-body);
    margin: 0;
}

@media (max-width: 991px) {
    .apropos-acteur__container {
        flex-direction: column;
        gap: 40px;
    }
    .apropos-acteur__left,
    .apropos-acteur__right {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .apropos-acteur__title span {
        width: auto;
    }
}

/* ==========================================================================
   SECTION CHIFFRES CLÉS
   ========================================================================== */
.apropos-chiffres {
    background: #40346c;
    padding: 120px 5% 140px;
    position: relative;
}
.apropos-chiffres > .persos-nuage {
    position: absolute;
    top: calc(-1 * var(--persos-height));
    z-index: 1;
    left: 25%;
}
.apropos-chiffres > .persos-nuage img {
    height: var(--persos-height);
}
.apropos-chiffres > .diplome {
    position: absolute;
    top: calc(-1 * var(--diplome-height) - 10px);
    z-index: 3;
    right: 30%;
}
.apropos-chiffres > .diplome img {
    height: var(--diplome-height);
}
.apropos-chiffres > .nuages {
    position: absolute;
    top: -189px;
    right: 0;
    display: flex;
    flex-direction: row-reverse;
}
.apropos-chiffres > .nuages img {
    height: 190px;
}

.apropos-chiffres__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.apropos-chiffres__title {
    font-family: 'Bitter-Semibold', serif;
    font-size: clamp(28px, 3vw, 40px);
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    flex-shrink: 0;
}

.apropos-chiffres__stats {
    display: flex;
    justify-content: space-around;
    flex: 1;
    gap: clamp(30px, 5vw, 60px);
}

.apropos-chiffres__stat {
    text-align: center;
    position: relative;
}
.apropos-chiffres .coiffe {
    position: absolute;
    top: calc(var(--coiffe-height) / 2 + 10px);
    left: calc(-1 * var(--coiffe-width) / 2 - 30px);
}
.apropos-chiffres .coiffe img {
    width: var(--coiffe-width);
    height: var(--coiffe-height);
}
.apropos-chiffres .texte-manuel {
    position: absolute;
    top: calc(-1 * var(--texte-manuel-height) / 2 - 20px);
    left: calc(-1 * var(--texte-manuel-width) / 2 - 30px);
}
.apropos-chiffres .texte-manuel img {
    width: var(--texte-manuel-width);
    height: var(--texte-manuel-height);
}
.apropos-chiffres__stat-number {
    font-family: 'Bitter-Semibold', serif;
    font-size: clamp(36px, 4vw, 56px);
    color: var(--turquoise);
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.apropos-chiffres__stat-number span {
    font-size: 20px;
}

.apropos-chiffres__stat-label {
    font-family: 'Inter-Regular', sans-serif;
    font-size: clamp(13px, 1vw, 16px);
    color: var(--white);
    line-height: 1.4;
}

@media (max-width: 991px) {
    .apropos-chiffres__container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .apropos-chiffres__stats {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .apropos-chiffres__stats {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==========================================================================
   SECTION APPROCHE GLOBALE
   ========================================================================== */
.apropos-approche {
    background: var(--white);
    padding: 100px 5% 120px;
    position: relative;
}
.apropos-approche > .nuages {
    position: absolute;
    top: calc(-1 * var(--nuages-blancs-height) + 2px);
}
.apropos-approche > .nuages img {
    height: var(--nuages-blancs-height);
}
.apropos-approche .title-container {
    display: flex;
    justify-content: space-between;
    width: 60%;
    margin: 0 auto;
    position: relative;
}
.apropos-approche .title-container img {
    position: absolute;
    right: 0;
    height: 400px;
    top: -200px;
    z-index: 10;
}
.apropos-approche__title {
    font-family: 'Bitter-Semibold', serif;
    font-size: clamp(32px, 4vw, 48px);
    color: var(--purple-dark);
    text-align: left;
    margin: 0 0 60px;
    line-height: 52px;
}

.apropos-approche__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.apropos-approche__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.apropos-approche__item img {
    width: 56px;
}

/* Décalage vertical : blocs 2 et 4 en-dessous */
.apropos-approche__item:nth-child(2),
.apropos-approche__item:nth-child(4) {
    margin-top: 80px;
}

.apropos-approche__number {
    width: 40px;
    height: 40px;
    background: var(--turquoise);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bitter-Semibold', serif;
    font-size: 14px;
    color: var(--white);
}

.apropos-approche__content h4 {
    font-family: 'Bitter-Semibold', serif;
    font-size: 28px !important;
    color: var(--purple-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.apropos-approche__content p {
    font-family: 'Inter-Regular', sans-serif;
    font-size: 18px;
    color: var(--purple-dark);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .apropos-approche__grid {
        flex-wrap: wrap;
    }
    .apropos-approche__item {
        flex: 0 0 calc(50% - 15px);
    }
    .apropos-approche__item:nth-child(2),
    .apropos-approche__item:nth-child(4) {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .apropos-approche__grid {
        flex-direction: column;
    }
    .apropos-approche__item {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   SECTION NOTRE HISTOIRE (CAROUSEL FLICKITY)
   ========================================================================== */
.apropos-histoire {
    padding: 50px 5% 200px;
    margin-bottom: 0 !important;
    position: relative;
    margin-bottom: 100px;
    background: url('/wp-content/themes/generation_qe/src/img/equipe/empreinte.png') no-repeat top right;
}

.apropos-histoire__title {
    font-family: 'Bitter-Semibold', serif;
    font-size: clamp(32px, 4vw, 48px);
    color: var(--purple-dark);
    text-align: center;
    margin: 0 0 60px;
    line-height: 52px;
}

/* Container du carousel */
.carousel-container {
    max-width: 1200px !important;
    margin: 0 auto;
    position: relative;
    padding: 50px 0;
}

/* Boy */
.boy {
    position: absolute;
    left: calc(-28.22vw + 212.6px);
    top: 70%;
    transform: translateY(-50%);
    z-index: 10;
}

.boy img {
    height: 300px;
    width: auto;
}

/* Flickity */
.team-carousel.flickity-enabled {
    padding: 0;
}

.flickity-viewport {
    overflow: visible !important;
}

.flickity-slider {
    display: flex;
    align-items: center;
}

/* CARTES - Taille fixe en pixels */
.team-card {
    width: 340px;
    height: auto;
    margin: 0 15px;
    background: #fff;
    border: 1px solid rgba(39, 29, 72, 0.3);
    border-radius: 16px;
    padding: 30px 25px;
    box-sizing: border-box;
}

.team-card.relative:hover .team-card__metier .text-title,
.team-card.relative:hover .team-card__metier .text-content {
    color: #fff;
}

.team-card::after {
    display: none;
}

/* Carte sélectionnée */
.team-card.is-selected {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(39, 29, 72, 0.15);
    opacity: 1 !important;
}

.team-card:not(.is-selected) {
    opacity: 0.6;
}

/* Contenu */
.team-card__metier {
    text-align: center;
}

.team-card__metier .year-title {
    font-family: 'Bitter-Semibold', serif;
    font-size: 52px;
    color: var(--turquoise);
    margin-bottom: 12px;
}

.team-card__metier .text-title {
    font-family: 'Bitter-Semibold', serif;
    font-size: 22px;
    color: var(--purple-dark);
    margin-bottom: 12px;
}

.team-card__metier .text-content {
    font-family: 'Inter-Regular', sans-serif;
    font-size: 18px;
    color: var(--purple-dark);
    line-height: 1.6;
}

/* Flèches - POSITIONNÉES AU CENTRE EN BAS */
.team-carousel .flickity-button {
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    position: absolute;
    top: auto !important;
    bottom: -80px !important;
}

.team-carousel .flickity-button.previous {
    left: 50% !important;
    transform: translateX(-60px);
}

.team-carousel .flickity-button.next {
    right: auto !important;
    left: 50% !important;
    transform: translateX(16px);
}

.team-carousel .flickity-button:hover {
    background: var(--purple-dark);
}

.team-carousel .flickity-button svg {
    fill: var(--purple-dark);
}

.team-carousel .flickity-button:hover svg {
    fill: #fff;
}

/* ==========================================================================
   SECTION CTA
   ========================================================================== */
.apropos-cta {
    background: var(--gray-light);
    padding: 60px 5%;
    position: relative;
}

.apropos-cta__container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.apropos-cta__illustration {
    width: 60px;
}

.apropos-cta__illustration img {
    width: 100%;
    height: auto;
}

.apropos-cta__text {
    font-family: 'Bitter-Semibold', serif;
    font-size: clamp(18px, 2vw, 24px);
    color: var(--purple-dark);
    margin: 0;
}

.apropos-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--turquoise);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Inter-Regular', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.apropos-cta__btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

.apropos-cta__btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   UTILITAIRES - MASQUER ANCIENNES SECTIONS
   ========================================================================== */
.apropos-page .old-content-hidden {
    display: none;
}

/* =======================
   RESPONSIVE
======================= */
.page-template-apropos-template .banniere-illustration {
    right: 15%;
}
@media (max-width: 1599px) {
    .apropos-approche .nuages {
        width: 100%;
    }
}
@media (max-width: 1392px) {
    .apropos-chiffres {
        padding-bottom: 200px !important;
    }
}
@media (max-width: 1190px) {
    .boy {
        left: calc(21.11vw - 377.2px);
    }
    .apropos-histoire__title {
        margin-bottom: 0 !important;
    }
}
@media (max-width: 999px) {
    .banniere-illustration {
        bottom: -20% !important;
        z-index: 0;
    }
    .banniere {
        margin-bottom: 16px;
    }
}
@media (max-width: 980px) {
    .boy {
        display: none;
    }
    .team-card.relative {
        width: 45%;
    }
}
@media (max-width: 768px) {
    .persos-nuage {
        left: calc((100% - 600px)/2) !important;
    }
    .apropos-histoire {
        padding-bottom: 100px;
    }
    .apropos-approche {
        padding-bottom: 50px;
    }
}
@media (max-width: 716px) {
    .team-card.relative {
        width: 85%;
    }
}
@media (max-width: 654px) {
    .apropos-approche .title-container img {
        width: 40%;
        min-width: 150px;
        height: auto !important;
        top: -100px !important;
    }
}
@media (max-width: 600px) {
    .apropos-chiffres__stats {
        gap: 110px !important;
    }
    .apropos-chiffres__stat-number {
        justify-content: center;
    }
    .apropos-chiffres .coiffe {
        left: calc((100% - 97px) / 2) !important;
        top: 92px !important;
    }
    .apropos-chiffres .texte-manuel {
        left: calc((100% - 135px) / 2) !important;
        top: -120px !important;
    }
}
@media (max-width: 552px) {
    .apropos-approche .title-container img {
        top: -250px !important;
    }
}
@media (max-width: 475px) {
    .banniere-illustration {
        right: calc((100% - 800px) / 2) !important;
    }
}
@media (max-width: 420px) {
    .banniere-illustration img {
        max-width: 440px;
    }
    .apropos-chiffres__title {
        font-size: clamp(32px,4vw,48px);
    }
    .apropos-chiffres__stat-label {
        font-size: 18px;
    }
    .apropos-chiffres__stats {
        gap: 130px !important;
    }
    .apropos-chiffres .coiffe {
        right: 0;
    }
    .apropos-chiffres .texte-manuel {
        left: 0 !important;
        top: -80px !important;
    }
}


.parallaxX.nuages-container .nuages {
    bottom: 0;
}
@media (max-width: 1033px) {
    .parallaxX.nuages-container .nuages {
        bottom: -18px;
    }
}