/* ============================================================
   A PROPOS – Adé Education
   Même système visuel que services : fond clair, bulles, navy/teal
   ============================================================ */

/* Réutilise les variables globales définies dans services.css via :root.
   Si services.css n'est pas chargé sur cette page, on les redéclare ici. */
:root {
    --ap-bg:        #f0f6f8;
    --ap-navy:      #1a2e4a;
    --ap-teal:      #4ecdc4;
    --ap-text:      #3a4a5a;
    --ap-bubble:    rgba(78, 205, 196, 0.12);
    --ap-bubble-2:  rgba(26, 46, 74, 0.07);
    --ap-radius:    18px;
    --ap-transition:0.25s ease;
}

/* ============================================================
   STRUCTURE DE PAGE
   ============================================================ */
.apropos {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

/* Bulles décoratives — fond */
.apropos::before,
.apropos::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.apropos::before {
    width: 380px;
    height: 380px;
    background: var(--ap-bubble);
    top: -80px;
    left: -100px;
}
.apropos::after {
    width: 260px;
    height: 260px;
    background: var(--ap-bubble-2);
    bottom: 80px;
    right: -70px;
}

.apropos__container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* ============================================================
   EN-TÊTE
   ============================================================ */
.apropos__header {
    text-align: center;
}

.apropos__title {
    font-family: 'Kidmania', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--ap-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: var(--ap-teal);
    margin-bottom: 1rem;
}

.apropos__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 0.92rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ap-navy);
    opacity: 0.70;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   BLOCS BIOGRAPHIE — alternance gauche/droite
   ============================================================ */
.apropos__block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Bloc image à droite (texte à gauche) */
.apropos__block--img-right {
    /* ordre naturel : texte d'abord dans le DOM */
}

/* Bloc image à gauche (texte à droite) */
.apropos__block--img-left .apropos__block-img {
    order: -1;
}

/* ---- Image ---- */
.apropos__block-img {
    display: flex;
    justify-content: center;
}

.apropos__photo {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--ap-radius);
    box-shadow: 0 8px 32px rgba(26, 46, 74, 0.12);
    /* Pas de filtre N&B ici — photos couleur dans la maquette */
}

/* ---- Texte ---- */
.apropos__block-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apropos__block-title {
    font-family: 'Kidmania', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--ap-navy);
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.apropos__block-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--ap-text);
}

/* Mise en avant d'un mot/phrase (lien turquoise dans la maquette) */
.apropos__highlight {
    color: var(--ap-teal);
    font-weight: 600;
}

/* ============================================================
   BLOC MÉTHODE — centré, fond léger
   ============================================================ */
.apropos__methode {
    text-align: center;
    background: rgba(255,255,255,0.70);
    border-radius: var(--ap-radius);
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 24px rgba(26, 46, 74, 0.07);
}

.apropos__methode-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--ap-navy);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.apropos__methode p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.93rem;
    line-height: 1.8;
    color: var(--ap-text);
    max-width: 640px;
    margin: 0 auto 1rem;
}

/* ============================================================
   BULLE DÉCO SUPPLÉMENTAIRE (milieu de page)
   ============================================================ */
.apropos__bubble-mid {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--ap-bubble);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .apropos__block {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    /* Sur mobile, image toujours au-dessus du texte */
    .apropos__block--img-left .apropos__block-img {
        order: 0;
    }

    .apropos__photo {
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }

    .apropos__methode {
        padding: 2rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apropos__photo {
        transition: none;
    }
}