/* =========================================================
   AKLIO — STYLE-V8.CSS
   Styles spécifiques à la page À propos uniquement.
   À charger après /css/style-v2.css.
   ========================================================= */

/* =========================================================
   BASE
   ========================================================= */

.about-page,
.about-page .section-neutral {
    background: var(--almond);
}

.about-page .section {
    position: relative;
    overflow: visible;
    padding-top: 38px;
    padding-bottom: 38px;
}

.about-page h2 {
    text-align: center;
}

.about-copy {
    margin: 0 auto;
}

.about-copy-wide {
    max-width: 920px;
}

.about-copy p {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.55;
}

/* Contenu toujours au-dessus des boucles */
.about-page .section > *:not(.section-loop) {
    position: relative;
    z-index: 2;
}

.about-page .section-loop {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* =========================================================
   HERO
   ========================================================= */

.about-hero {
    background: var(--almond);
}

.about-hero > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.about-hero-cta {
    padding-top: 18px;
    padding-bottom: 28px;
}

.about-hero-cta .hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.about-hero-cta .btn {
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.about-btn-method {
    background: var(--pale-blue);
    color: var(--cornflower);
    border: 2px solid var(--pale-blue);
}

.about-btn-method:hover {
    background: var(--sky-blue);
    color: var(--navy);
    border-color: var(--sky-blue);
}

.about-btn-contact {
    background: var(--cornflower);
    color: var(--almond);
    border: 2px solid var(--cornflower);
}

.about-btn-contact:hover {
    background: var(--navy);
    color: var(--almond);
    border-color: var(--navy);
}

/* =========================================================
   PRÉSENTATION
   ========================================================= */

.about-intro-section h2 {
    max-width: 820px;
    margin: 0 auto 42px;
    color: var(--navy);
}

/* =========================================================
   HISTOIRE
   ========================================================= */

.about-history h2 {
    margin-bottom: 42px;
    color: var(--cornflower);
}

/* =========================================================
   PROJET
   ========================================================= */

.about-project > h2 {
    margin-bottom: 50px;
    color: var(--corn);
}

.about-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 90px;
    max-width: 860px;
    margin: 0 auto;
}

.about-project-card {
    min-height: 260px;
    padding: 30px 28px;
    border: 3px solid var(--corn);
    border-radius: 34px;
    background: var(--almond);
}

.about-project-card h3 {
    margin: 0 0 26px;
    color: var(--orange);
    text-align: center;
}

.about-project-card p {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.5;
}

/* =========================================================
   MÉTHODE AKLIO
   ========================================================= */

.about-method > h2 {
    margin-bottom: 55px;
    color: var(--navy);
}

.about-method-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px;
    max-width: 1180px;
    margin: 0 auto;
}

.about-method-item {
    text-align: center;
}

.about-method-item h3 {
    margin: 0 0 22px;
    color: var(--cornflower);
    text-align: center;
    font-size: 21px;
}

.about-method-item p {
    margin: 0;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.45;
}

/* =========================================================
   VALEURS
   ========================================================= */

.about-values {
    z-index: 3;
}

.about-values > h2 {
    margin-bottom: 54px;
    color: var(--navy);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-value-card {
    grid-column: span 2;
    padding: 24px 22px;
    border: 3px solid var(--cornflower);
    border-radius: 34px;
    background: var(--almond);
}

.about-value-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.about-value-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.about-value-card h3 {
    margin: 0 0 16px;
    color: var(--cornflower);
    text-align: center;
}

.about-value-card p {
    margin: 0 0 16px;
    color: var(--navy);
    text-align: center;
    line-height: 1.45;
}

.about-value-card p:last-child {
    margin-bottom: 0;
}

/* Transition Valeurs → Enseignants */
.about-values .section-loop.bottom-right {
    bottom: -140px;
}

/* =========================================================
   ENSEIGNANTS
   ========================================================= */

.about-teachers {
    z-index: 2;
}

.about-teachers h2 {
    margin-bottom: 50px;
    color: var(--orange);
}

/* Transition Enseignants → Fondateur */
.about-teachers .section-loop.bottom-left {
    bottom: -140px;
}

.about-teachers-content {
    max-width: 980px;
    margin: 0 auto;
}

.about-teachers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 60px;
}

.about-teachers-grid p {
    margin: 0;
    color: var(--navy);
    line-height: 1.55;
}

@media (max-width: 700px) {
    .about-teachers-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}


/* =========================================================
   FONDATEUR
   ========================================================= */

.about-founder {
    z-index: 1;
}

.about-founder > h2 {
    margin-bottom: 55px;
    color: var(--cornflower);
}

.about-founder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr);
    gap: 50px;
    align-items: start;
    max-width: 980px;
    margin: 0 auto;
}

.about-founder-copy,
.about-founder-photo {
    background: var(--pale-blue);
    border-radius: 34px;
}

.about-founder-copy {
    padding: 38px 42px;
}

.about-founder-copy p {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.55;
}

.about-founder-copy p:last-child {
    margin-bottom: 0;
}

.about-founder-photo {
    padding: 10px;
    border: 3px solid var(--navy);
    overflow: hidden;
}

.about-founder-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.about-loop-founder-left {
    width: 230px;
    left: -80px;
    bottom: -120px;
}

.about-loop-founder-right {
    width: 230px;
    right: -70px;
    bottom: -105px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
    .about-hero {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .about-project-grid {
        gap: 30px;
    }

    .about-method-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 38px 24px;
    }

    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }

    .about-value-card,
    .about-value-card:nth-child(4),
    .about-value-card:nth-child(5) {
        grid-column: auto;
    }

    .about-value-card:last-child {
        grid-column: 1 / -1;
        max-width: 360px;
        width: 100%;
        justify-self: center;
    }

    .about-founder-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
        gap: 30px;
    }
}

@media (max-width: 700px) {
    .about-copy p {
        font-size: 16px;
    }

    .about-project-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .about-project-card {
        min-height: 0;
    }

    .about-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-founder-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .about-founder-photo {
        max-width: 320px;
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .about-hero-cta .hero-buttons {
        width: 100%;
        gap: 8px;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .about-hero-cta .btn {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        padding: 10px 8px;
        font-size: 14px;
        line-height: 1.15;
    }

    .about-method-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .about-value-card,
    .about-value-card:nth-child(4),
    .about-value-card:nth-child(5),
    .about-value-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .about-founder-copy {
        padding: 28px 24px;
    }
}


.about-teachers .section-loop.bottom-left {
    bottom: -180px;
}

.about-intro-section .section-loop.bottom-right,
.about-values .section-loop.bottom-right {
    bottom: -140px;
}

/* =========================================================
   CARTES — DYNAMISME AU SURVOL
   ========================================================= */

.about-project-card,
.about-value-card,
.about-founder-copy,
.about-founder-photo {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.about-project-card:hover,
.about-value-card:hover,
.about-founder-copy:hover,
.about-founder-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
/* ajustement boucle entre -notre projet- et -la méthode-*/
.about-project {
    z-index: 3;
}

.about-method {
    z-index: 2;
}

.about-project .section-loop.bottom-left {
    bottom: -180px;
}