/* ==========================================================================
   Page « Qui sommes-nous » — mise en page dédiée
   Chargée uniquement sur cette page (voir inc/about_page.php).
   CSS simple et non SCSS : la chaîne de build webpack du thème n'est pas
   disponible sur ce serveur. Tous les sélecteurs sont préfixés par #about-page
   afin de passer devant les règles génériques de dist/main.css.
   Mêmes repères visuels que assets/css/service-web.css : les deux pages
   appartiennent à la même famille.
   ========================================================================== */

#about-page {
    --ab-navy: #003F7D;
    --ab-deepblue: #005D83;
    --ab-ink: #22282e;
    --ab-muted: #55616e;
    --ab-light: #ECF2F8;
    --ab-line: #d7e3ef;
    --ab-radius: 18px;
    /* Mêmes valeurs que .grid-container : les sections s'alignent sur le bloc CTA. */
    --ab-width: 65rem;
    --ab-gutter: 0.9375rem;
    --ab-shadow: 0 20px 45px -28px rgba(0, 63, 125, .55);

    display: block;
    color: var(--ab-ink);
    overflow-x: clip;
}

#about-page img {
    max-width: 100%;
}

#about-page .about-container {
    max-width: var(--ab-width);
    margin: 0 auto;
    padding: 0 var(--ab-gutter);
}

/* ------------------------------------------------------------------ Boutons */

#about-page .about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.7rem;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

#about-page .about-button-solid {
    background: var(--ab-accent);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55);
}

#about-page .about-button-solid:hover,
#about-page .about-button-solid:focus-visible {
    background: var(--ab-accent-deep);
}

#about-page .about-button:hover,
#about-page .about-button:focus-visible {
    transform: translateY(-2px);
}

/* ------------------------------------------------ Ouverture de la page */

/* La page n'a pas de bandeau d'en-tête : elle s'ouvre directement sur son
   titre et sa présentation, sur fond blanc. */
#about-page .about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1.1rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ab-ink);
}

#about-page .about-eyebrow::before {
    content: '';
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--ab-accent);
}

#about-page .about-page-title {
    margin: 0;
    /* Pas de largeur maximale : un titre court comme « Qui sommes-nous ? »
       ne doit pas renvoyer le « ? » à la ligne. */
    text-wrap: balance;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ab-ink);
}

/* ------------------------------------------------- Titres de section */

/* Tout le contenu de la page partage le même axe : le bord gauche du
   conteneur, celui du titre de l'en-tête et celui des cartes des fondateurs.
   Les blocs de texte gardent une largeur de lecture confortable, mais calée à
   gauche et non centrée. */
#about-page .about-title {
    position: relative;
    margin: 0 0 1.1rem;
    padding-bottom: .85rem;
    font-size: clamp(1.6rem, 2.7vw, 2.3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--ab-ink);
}

#about-page .about-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: var(--ab-accent);
}

/* --------------------------------------------------------------- Prose */

#about-page .about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ab-muted);
}

#about-page .about-text p {
    margin: 0 0 1em;
}

#about-page .about-text > *:last-child {
    margin-bottom: 0;
}

#about-page .about-text strong {
    font-weight: 600;
    color: var(--ab-ink);
}

#about-page .about-text a {
    color: var(--ab-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------------------------------------------------- Présentation */

#about-page .about-story {
    padding: 3.5rem 0 4.5rem;
    background: #fff;
    scroll-margin-top: 110px;
}

#about-page .about-lead {
    max-width: 46rem;
    margin: 1.75rem 0 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--ab-ink);
}

#about-page .about-story-text {
    max-width: 46rem;
    margin: 1.75rem 0 0;
}

/* ------------------------------------------------------- Fondateurs */

#about-page .about-team {
    padding: 4rem 0 4.5rem;
    scroll-margin-top: 110px;
}

/* Seule exception à l'axe de gauche : les deux cartes en dessous sont
   symétriques, le titre et son introduction sont donc centrés au-dessus. */
#about-page .about-team-head {
    max-width: 46rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

#about-page .about-team .about-title::after {
    left: 50%;
    transform: translateX(-50%);
}

#about-page .about-team-intro {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ab-muted);
}

#about-page .about-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#about-page .about-member {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.9rem 2.2rem;
    background: #fff;
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
}

#about-page .about-member-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.4rem;
}

/* Les portraits sont des carrés cadrés serré sur le visage : en pastille ronde,
   ils gardent leur cadrage d'origine, là où un bandeau leur couperait la tête. */
#about-page .about-member-photo {
    flex: 0 0 auto;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ab-light);
    box-shadow: 0 0 0 1px var(--ab-line), 0 0 0 6px var(--ab-accent-soft);
}

#about-page .about-member-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
}

/* Le trait d'accent relie la carte aux titres de section. */
#about-page .about-member-name {
    position: relative;
    margin: 0;
    padding-bottom: .8rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ab-ink);
}

#about-page .about-member-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--ab-accent);
}

#about-page .about-member-text {
    font-size: .98rem;
}

/* --------------------------------------------------------- Conclusion */

/* Ni carte, ni encadré, ni filet latéral, ni ornement : une déclaration posée
   sur une bande blanche, en grand. */
#about-page .about-outro {
    padding: 5rem 0 6rem;
    background: #fff;
}

#about-page .about-outro-panel {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

/* Le titre devient une mention discrète : c'est la phrase qui porte le bloc. */
#about-page .about-outro-title {
    margin: 0 0 1.2rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ab-accent-deep);
}

#about-page .about-outro .about-text {
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--ab-ink);
}

#about-page .about-outro .about-text strong {
    font-weight: 700;
    color: var(--ab-ink);
}

/* Seul appel à l'action de la page : le bloc d'appel à l'action global n'est
   pas repris ici, il ferait doublon juste en dessous. */
#about-page .about-outro-actions {
    display: flex;
    justify-content: center;
    margin-top: 2.4rem;
}

/* -------------------------------------------------------- Responsive */

@media screen and (max-width: 39.9375em) {
    #about-page {
        --ab-gutter: 0.625rem;
    }

    #about-page .about-story {
        padding: 2.5rem 0 3rem;
    }

    #about-page .about-lead {
        font-size: 1.05rem;
    }

    #about-page .about-team {
        padding: 3rem 0 3rem;
    }

    #about-page .about-team-head {
        margin-bottom: 2rem;
    }

    #about-page .about-member {
        padding: 1.7rem 1.35rem 1.9rem;
    }

    #about-page .about-member-head {
        gap: 1rem;
    }

    #about-page .about-member-photo {
        width: 5.25rem;
        height: 5.25rem;
    }

    #about-page .about-member-name {
        font-size: 1.2rem;
    }

    #about-page .about-outro {
        padding: 3.5rem 0 4rem;
    }


}

@media (prefers-reduced-motion: reduce) {
    #about-page * {
        transition-duration: .001ms !important;
    }
}
