﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --vert-fonce: #154420;
    --vert-moyen: #1f5a2d;
    --or-vif: #edc500;
    --blanc: #ffffff;
    --gris-clair: #f5f5f3;
    --gris-texte: #4f5c53;
    --gris-border: #e1e5df;
    --texte-body: #243329;
}

.hero-about {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: stretch;
    margin-top: 0;
    overflow: hidden;
    isolation: isolate;
}

.about-page main {
    margin-top: 0;
}

/* .about-page .site-header {
    background: transparent;
    box-shadow: none;
} */

/* .about-page .site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
} */

.hero-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 25, 12, 0.12) 0%, rgba(7, 25, 12, 0.38) 42%, rgba(8, 28, 13, 0.95) 100%),
        url('/pages/assets/images/apropos-banner.jpg') top center / cover no-repeat;
    z-index: 0;
}

.hero-about::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50vh;
    min-height: 120px;
    background: #edc500;
    z-index: 1;
}

.hero-about-inner {
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    padding: clamp(7rem, 11vh, 8.5rem) 24px 4rem;
    gap: 40px;
    align-items: flex-end;
}

.hero-histoire {
    flex: 0 0 auto;
    width: min(620px, 100%);
}

.hero-histoire-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
}

.hero-histoire-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--or-vif) 0%, var(--vert-moyen) 100%);
}

.histoire-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.histoire-titre {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--vert-fonce);
    line-height: 1.18;
    margin-bottom: 18px;
}

.histoire-intro {
    font-size: 14px;
    color: var(--texte-body);
    line-height: 1.72;
    margin-bottom: 24px;
}

.timeline-histoire {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-histoire::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(to bottom, var(--or-vif) 0%, var(--vert-moyen) 100%);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 18px;
    padding: 0 0 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--vert-fonce);
    border: 3px solid var(--or-vif);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
    margin-top: 2px;
}

.timeline-dot .dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--or-vif);
}

.timeline-year {
    font-size: 12px;
    font-weight: 800;
    color: #b88700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.timeline-heading {
    font-size: 14px;
    font-weight: 800;
    color: var(--vert-fonce);
    margin-bottom: 6px;
    line-height: 1.3;
}

.timeline-text {
    font-size: 14px;
    line-height: 1.62;
    color: var(--texte-body);
}

.timeline-text ul {
    margin-top: 8px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-text ul li {
    position: relative;
    padding-left: 14px;
    font-size: 12.5px;
}

.timeline-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--or-vif);
}

.hero-droite {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    padding: 40px 0;
    /* min-height: 100%; */
}

.hero-slogan {
    text-align: right;
}

.hero-slogan-main,
.hero-slogan-accent {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-slogan-main {
    color: var(--blanc);
}

.hero-slogan-accent {
    display: block;
    color: var(--or-vif);
}

.bottom-content-hero {
    gap: 2rem;
}

.hero-cta-block-right {
    width: 90%;
}

.hero-cta-block {
    width: 100%;
    max-width: 380px;
    text-align: right;
}

.hero-cta-label {
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    text-align: right;
    color: #154420;
}

.section-equipe {
    padding: 80px 0;
    background: var(--blanc);
}

.section-equipe .section-heading {
    margin-bottom: 36px;
}

.equipe-group {
    margin-bottom: 56px;
}

.equipe-group:last-child {
    margin-bottom: 0;
}

.equipe-group-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--vert-fonce);
    text-align: center;
    margin-bottom: 28px;
    padding: 8px 24px;
    display: inline-block;
    background: var(--gris-clair);
    border-radius: 30px;
    border: 1px solid var(--gris-border);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.equipe-group-title::before,
.equipe-group-title::after {
    content: '';
}

.membres-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.membre-card {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    background: var(--blanc);
    box-shadow: 0 18px 34px rgba(8, 28, 13, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.membre-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 42px rgba(8, 28, 13, 0.14);
}

.membre-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: #173c27;
}

.membre-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 68, 32, 0.2) 27.4%, #081c0d 91.35%);
    border-radius: 25px;
}

.membre-info {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    min-height: 100px;
    padding: 18px 18px 16px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
}

.membre-nom {
    font-size: 15px;
    font-weight: 800;
    color: var(--blanc);
    margin-bottom: 4px;
    line-height: 1.2;
}

.membre-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 500;
}

@media (max-width: 1201px) {
    .hero-about-inner {
        align-items: center;
        flex-direction: column;
        padding: 10rem 0 4rem;
    }

    .hero-histoire {
        width: min(100%, 100%);
    }

    .hero-droite {
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .hero-slogan {
        width: 100%;
        text-align: left;
    }

    .bottom-content-hero .hero-stats {
        padding-top: 24px;
    }

    .hero-cta-block {
        max-width: 100%;
        text-align: left;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .hero-about::after {
        background: none;
    }

    .hero-cta-label {
        color: #fff;
        text-align: left;
    }

    .hero-cta-block-left {
        display: none;
    }
}

@media (max-width: 1080px) {
    .membres-grid {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        width: 100%;
    }

    .membre-card {
        flex: 0 0 min(78vw, 340px);
        scroll-snap-align: start;
        margin-bottom: 20px;
    }
}

@media (max-width: 769px) {
    .hero-droite {
        align-items: center;
    }

    .compteur-stat {
        justify-content: center;
    }

    .hero-slogan {
        text-align: center;
    }

    .hero-cta-block {
        text-align: center;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-cta-label {
        text-align: center;
    }

    .hero-histoire-card {
        padding: 32px 24px;
    }
}