/**
 * LAYOUT.CSS - Structure & Grilles
 * Volant d'Oc Vauréen
 */

/* ==================== CONTAINER ==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

@media (min-width: 640px) {
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }
}

/* ==================== SECTIONS ==================== */
.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
}

.section-dark {
    background-color: var(--color-dark-bg);
}

.section-gray {
    background-color: rgba(30, 41, 59, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--color-orange);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.section-description {
    color: var(--color-text-secondary);
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* ==================== GRILLES ==================== */

/* Grille 2 colonnes */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Grille 3 colonnes */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grille 4 colonnes */
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
    background-color: var(--color-dark-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e293b' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 1024px) {
    .hero-section {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-dark-bg), transparent, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

/* ==================== STATS STRIP ==================== */
.stats-strip {
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(8px);
}

.stats-strip .container {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== SCHEDULES ==================== */
.schedules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .schedules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== TEAM GRIDS ==================== */
.team-section {
    margin-bottom: 4rem;
}

.team-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .team-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid-large {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .team-grid-small {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid-small {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==================== WHY US GRID ==================== */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== FOOTER GRID ==================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-bottom {
    border-top: 1px solid var(--border-color-light);
    padding-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}