
/* Hero */
.hero {
    padding: 4rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(242, 140, 40, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 128, 128, 0.05), transparent 40%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text {
    color: var(--tertiary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: #f2f2f2;
    opacity: 0.1;
    filter: blur(40px);
    border-radius: 1rem;
    z-index: -1;
}

.hero-img {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* --- Features Section --- */

.features-grid {
    grid-template-columns: repeat(4, 1fr);
}

.feature-icon-wrapper{ 
    background-color: #bce0d8; 
    color: var(--brand-teal); 
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.85rem;
}

.feature{
    padding: 0 1rem;
}

/* --- Stats Section --- */

.stats-card{
    text-align: center;
    background-color: #022727;
}

.stat-title{
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    margin-bottom: 1.5rem;
    color: #bce0d8;
}

.stat-item:not(:first-child) {
    border-left: 2px solid rgba(140, 211, 211, 0.5);
}

.stat-content {
    padding: 0 1rem;
}

.stat-content .stat-num {
    color: #039e9e;
}

.stat-content .stat-label {
    color: #bce0d8;
}

/* Team */

.section-header {
    text-align: start;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cta{
    padding: 4rem 0;
}

.cta-content {
    display: block;
}

.social-link .material-symbols-outlined {
    font-size: 1.1rem;
}

/* Menu logic helpers */
body.no-scroll {
    overflow: hidden;
}

/* ===== ABOUT RESPONSIVE ===== */

/* 1. HERO */
@media (max-width: 992px) {
    .hero {
        padding: 3rem 0 4rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-image-wrapper {
        order: -1; /* image au dessus */
        justify-self: center;
    }
    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    .accent-line {
        margin: 1rem auto;
    }
}

/* 2. FEATURES */
.features-grid {
    grid-template-columns: 1fr; /* mobile first */
    gap: 0;
}

@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature {
    padding: 1.5rem 1rem;
}

.feature:not(:first-child) {
    border-left: none;
    border-top: 2px solid var(--gray-200);
}

@media (min-width: 1024px) {
    .feature:not(:first-child) {
        border-left: 2px solid var(--gray-200);
        border-top: none;
    }
}

.feature-card h3 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.feature-card p {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
}

/* 3. STATS */
.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.stat-item:not(:first-child) {
    border-left: none;
    border-top: 2px solid rgba(140, 211, 211, 0.5);
    padding-top: 1.5rem;
}

@media (min-width: 641px) {
    .stat-item:not(:first-child) {
        border-left: 2px solid rgba(140, 211, 211, 0.5);
        border-top: none;
        padding-top: 0;
    }
}

.stat-content .stat-num {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
}

/* 4. TEAM - VERSION SCROLL */
.team {
    padding: 3rem 0;
    overflow: hidden; /* évite le débordement */
}

.team-grid {
    display: grid;
    grid-auto-flow: column; /* force en ligne */
    grid-auto-columns: 75%; /* 1 carte + un bout de la suivante sur mobile */
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 1rem 2rem; /* espace pour le scroll */
    -webkit-overflow-scrolling: touch; /* scroll fluide iOS */
    scrollbar-width: none; /* cache scrollbar firefox */
}

.team-grid::-webkit-scrollbar {
    display: none; /* cache scrollbar chrome */
}

.member-card {
    scroll-snap-align: start;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 3/4;
    min-width: 0; /* important pour le grid */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
}

/* Tablette : 2 cartes visibles */
@media (min-width: 640px) {
    .team-grid {
        grid-auto-columns: 45%;
        gap: 1.5rem;
        padding: 1rem 2rem 2rem;
    }
}

/* Desktop : grille normale 4 colonnes */
@media (min-width: 1024px) {
    .team-grid {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-columns: auto;
        overflow-x: visible;
        scroll-snap-type: none;
        gap: 1.5rem;
        padding: 0;
    }
    
    .member-card {
        aspect-ratio: 4/5;
    }
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .member-img {
    transform: scale(1.05);
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
}

.member-info h4 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 0.25rem;
}

.member-info p {
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    opacity: 0.9;
}

.member-socials {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.member-socials .social-link {
    width: 28px;
    height: 28px;
}

/* 5. CTA */
.cta {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .cta .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .cta-content {
        text-align: center;
    }
}

/* 6. FIX GLOBAL MOBILE */
@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .feature { padding: 1.25rem 0.5rem; }
}