/* =============================================================
   Page "À propos" — refonte (test)
   -------------------------------------------------------------
   Langage visuel : base très claire, énormes respirations,
   titres display en graisse légère, aplats pastel doux,
   rayons généreux, ombres quasi inexistantes.
   Tout est préfixé .ab- (about) et ne s'applique qu'à cette page.
   Pour revenir en arrière : restaurer presentation.backup.php et
   supprimer l'entrée $page_styles en tête de presentation.php.
   ============================================================= */

.ab-page {
    --ab-ink: #16171F;
    --ab-ink-soft: #6B6F76;
    --ab-line: rgba(2, 3, 22, 0.09);
    --ab-tint-blue: #F1F6FD;
    --ab-tint-teal: #EEF8F7;
    --ab-tint-warm: #FDF3EC;
    --ab-tint-neutral: #F6F6F7;
    --ab-radius: 26px;
    --ab-shadow: 0 1px 2px rgba(2, 3, 22, 0.05);
    background-color: var(--color-white);
}

/* Le thème colore et espace toutes les <section> (sélecteur `section`, 0-0-1).
   On neutralise avec la même spécificité — la feuille étant chargée après, elle
   l'emporte — tout en restant surclassable par chaque bloc .ab-* (0-1-0). */
:where(.ab-page) section {
    background-color: transparent;
    padding: 0;
    overflow: visible;
}

.ab-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.ab-shell-narrow {
    max-width: 860px;
}

/* ---------- Typographie commune ---------- */

.ab-title {
    margin: 0;
    font-weight: 300;
    letter-spacing: -0.015em;
    line-height: 1.08;
    color: var(--ab-ink);
    font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.ab-lead {
    margin: 22px 0 0;
    max-width: 46ch;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.6;
    font-weight: 300;
    color: var(--ab-ink-soft);
}

.ab-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-teal);
}

.ab-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background-color: currentColor;
}

/* ---------- Boutons pilule ---------- */

.ab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.ab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ab-btn i {
    font-size: 0.78rem;
    transition: transform 0.3s ease;
}

.ab-btn:hover i {
    transform: translateX(4px);
}

.ab-btn-primary {
    background-color: var(--ab-ink);
    color: var(--color-white);
}

.ab-btn-primary:hover {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.ab-btn-ghost {
    border-color: var(--ab-line);
    background-color: transparent;
    color: var(--ab-ink);
}

.ab-btn-ghost:hover {
    border-color: var(--ab-ink);
    color: var(--ab-ink);
    transform: translateY(-2px);
}

/* ---------- Bandeau de repères ---------- */

.ab-facts {
    padding: clamp(80px, 9vw, 120px) 0 0;
}

.ab-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.ab-fact {
    padding: 34px 30px 30px;
    border-radius: var(--ab-radius);
    background-color: var(--ab-tint-neutral);
}

.ab-fact:nth-child(2) {
    background-color: var(--ab-tint-blue);
}

.ab-fact:nth-child(3) {
    background-color: var(--ab-tint-teal);
}

.ab-fact:nth-child(4) {
    background-color: var(--ab-tint-warm);
}

.ab-fact-value {
    display: block;
    font-size: clamp(2.2rem, 3.6vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ab-ink);
}

.ab-fact-label {
    display: block;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ab-ink-soft);
}

/* ---------- Bloc intro en 2 colonnes ---------- */

.ab-intro {
    padding: clamp(90px, 11vw, 150px) 0;
}

.ab-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: start;
}

.ab-intro-body {
    font-size: 16px;
    line-height: 1.75;
    font-weight: 300;
    color: var(--ab-ink-soft);
}

.ab-intro-body p {
    margin: 0 0 20px;
}

.ab-intro-body p:last-child {
    margin-bottom: 0;
}

.ab-intro-body strong {
    display: block;
    margin-bottom: 22px;
    font-size: 1.28rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--ab-ink);
}

.ab-intro-body br {
    display: none;
}

/* ---------- Membres du GIE (intégrés à l'intro) ---------- */

.ab-intro-members {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--ab-line);
}

.ab-intro-members-title {
    margin: 8px 0 0;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ab-ink);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.ab-intro-members-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.ab-intro-members-list img {
    display: block;
    height: 58px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.ab-intro-members-list img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Logo carré : hauteur augmentée pour un poids visuel comparable aux logos larges. */
.ab-intro-members-list img.ab-logo-square {
    height: 84px;
}

/* ---------- Citation pleine largeur ---------- */

.ab-quote {
    padding: clamp(90px, 12vw, 160px) 0;
    background-color: var(--ab-tint-blue);
}

.ab-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: center;
}

.ab-quote p {
    margin: 0;
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    font-weight: 300;
    line-height: 1.28;
    letter-spacing: -0.015em;
    color: var(--ab-ink);
}

/* ---------- Histoire : étapes en scroll collant ---------- */

.ab-history {
    padding: clamp(90px, 11vw, 150px) 0;
}

.ab-history-head {
    max-width: 640px;
}

.ab-history-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 6vw, 80px);
    margin-top: 60px;
}

.ab-history-sticky {
    position: sticky;
    top: 140px;
}

.ab-history-year {
    font-size: clamp(4rem, 11vw, 8.5rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ab-ink);
    transition: opacity 0.4s ease;
}

.ab-history-progress {
    margin-top: 26px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--ab-line);
    overflow: hidden;
}

.ab-history-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gradient-brand);
    transition: width 0.5s ease;
}

.ab-history-count {
    margin-top: 16px;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: var(--ab-ink-soft);
}

.ab-history-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ab-history-step {
    padding: 30px 0 30px 34px;
    border-left: 1px solid var(--ab-line);
    position: relative;
    opacity: 0.34;
    transition: opacity 0.5s ease;
}

.ab-history-step.is-current {
    opacity: 1;
}

.ab-history-step::before {
    content: "";
    position: absolute;
    top: 40px;
    left: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--ab-line);
    transition: background-color 0.5s ease, transform 0.5s ease;
}

.ab-history-step.is-current::before {
    background-color: var(--color-teal);
    transform: scale(1.5);
}

.ab-history-step-year {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-teal);
}

.ab-history-step p {
    margin: 10px 0 0;
    font-size: clamp(16px, 1.1vw, 17px);
    line-height: 1.6;
    font-weight: 300;
    color: var(--ab-ink);
}

/* ---------- Objectifs ---------- */

.ab-goals {
    padding: clamp(90px, 11vw, 150px) 0;
    background-color: var(--ab-tint-neutral);
}

.ab-goals-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.ab-goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.ab-goal {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 0 36px;
    border-radius: var(--ab-radius);
    background-color: var(--color-white);
    box-shadow: var(--ab-shadow);
    transition: transform 0.45s ease;
}

.ab-goal:hover {
    transform: translateY(-6px);
}

.ab-goal-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.ab-goal-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ab-goal-body {
    display: flex;
    flex-direction: column;
    padding: 28px 32px 0;
}

.ab-goal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    border-radius: 16px;
    background-color: var(--ab-tint-blue);
    color: var(--color-blue);
    font-size: 1.1rem;
}

.ab-goal:nth-child(2n) .ab-goal-icon {
    background-color: var(--ab-tint-teal);
    color: var(--color-teal);
}

.ab-goal h3 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ab-ink);
}

.ab-goal p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 300;
    color: var(--ab-ink-soft);
}

/* ---------- Qualité / ISO 9001 ----------
   Volontairement discrète : fond blanc (comme .ab-goals au-dessus et
   .ab-partners en dessous se chargent déjà des aplats), simples filets
   horizontaux en séparateur, badge de petite taille. */

.ab-quality {
    padding: clamp(50px, 6vw, 80px) 0;
}

.ab-quality-inner {
    display: flex;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(32px, 4vw, 48px) 0;
    border-top: 1px solid var(--ab-line);
    border-bottom: 1px solid var(--ab-line);
}

.ab-quality-badge {
    flex: 0 0 auto;
}

.ab-quality-badge img {
    display: block;
    height: 72px;
    width: auto;
}

.ab-quality-body .ab-eyebrow {
    margin-bottom: 10px;
}

.ab-quality-title {
    margin: 0 0 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ab-ink);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.ab-quality-body p {
    margin: 0;
    max-width: 68ch;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 300;
    color: var(--ab-ink-soft);
}

@media (max-width: 640px) {
    .ab-quality-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Nos partenaires (ex-page financeurs.php, intégrée ici) ---------- */

.ab-partners {
    padding: clamp(90px, 11vw, 150px) 0;
    background-color: var(--ab-tint-neutral);
}

.ab-partners-head {
    max-width: 780px;
    margin-bottom: clamp(44px, 6vw, 70px);
}

.ab-partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 900px) {
    .ab-partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ab-partners-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ab-partner-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 30px 28px;
    border-radius: var(--ab-radius);
    background-color: var(--color-white);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-partner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(2, 3, 22, 0.09);
}

.ab-partner-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 78px;
    margin-bottom: 24px;
}

.ab-partner-logo img {
    max-height: 100%;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.ab-partner-link:hover .ab-partner-logo img {
    filter: grayscale(0);
    opacity: 1;
}

.ab-partner-name {
    display: block;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ab-ink);
}

.ab-partner-role {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-teal);
}

.ab-partner-apport {
    display: block;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 300;
    color: var(--ab-ink-soft);
}

/* ---------- CTA final (bandeau plein cadre) ---------- */

.ab-cta {
    padding: clamp(90px, 11vw, 150px) 0;
    text-align: center;
}

.ab-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}

.ab-cta .ab-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ab-cta .ab-actions {
    justify-content: center;
}

/* Dégradé de marque animé, plein cadre — même principe que .cta-banner (custom.css) */
@keyframes ab-cta-glow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.ab-cta.ab-cta-glow {
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 18% 20%, rgba(29, 156, 149, 0.55), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(0, 80, 143, 0.5), transparent 50%),
        linear-gradient(135deg, var(--color-teal) 0%, var(--color-blue) 50%, var(--color-blue-darker) 100%);
    background-size: 200% 200%;
    animation: ab-cta-glow 14s ease-in-out infinite;
}

.ab-cta-glow .ab-title,
.ab-cta-glow .ab-lead {
    color: var(--color-white);
}

.ab-cta-glow .ab-btn-primary {
    background-color: var(--color-white);
    color: var(--ab-ink);
}

.ab-cta-glow .ab-btn-primary:hover {
    background-color: var(--ab-tint-blue);
    color: var(--ab-ink);
}

.ab-cta-glow .ab-btn-ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--color-white);
}

.ab-cta-glow .ab-btn-ghost:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .ab-cta.ab-cta-glow {
        animation: none;
    }
}

/* ---------- Révélation au scroll (page-scopée) ---------- */

html.js-reveal .ab-page [data-ab-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-reveal .ab-page [data-ab-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    html.js-reveal .ab-page [data-ab-reveal],
    .ab-goal,
    .ab-btn {
        transition: none;
    }

    html.js-reveal .ab-page [data-ab-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {

    .ab-intro-grid,
    .ab-history-layout {
        grid-template-columns: 1fr;
    }

    .ab-history-sticky {
        position: static;
    }

    .ab-history-year {
        font-size: clamp(3rem, 16vw, 5rem);
    }
}

@media (max-width: 575px) {
    .ab-shell {
        padding: 0 18px;
    }

    .ab-actions .ab-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}
