/* ==========================================================================
   Fête de la Musique 2026 - La Mézière
   Feuille de style principale
   ========================================================================== */

:root {
    --color-primary: #25474f;
    --color-text: #1a1a1a;
    --color-muted: #555555;
    --color-link-hover: #1a3239;
    --max-content-width: 1024px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Header / Bandeau
   ========================================================================== */

.header-banner {
    width: 100%;
    height: 70vh;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.header-logo {
    max-width: 90%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Sections groupes
   ========================================================================== */

.band-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #e5e5e5;
}

.band-card:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
    padding-bottom: 0;
}

/* Alternance gauche/droite : on commence par photo à gauche (par défaut),
   puis on inverse pour les groupes pairs (2e, 4e...) */
.band-card:nth-of-type(even) {
    flex-direction: row-reverse;
}

.band-image {
    flex: 0 0 33.333%;
    width: 33.333%;
}

.band-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.band-text {
    flex: 0 0 calc(66.666% - 2.5rem);
    width: calc(66.666% - 2.5rem);
}

.band-text h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.band-text .band-style {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem 0;
}

.band-text p {
    margin: 0 0 1rem 0;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Lien "En savoir plus"
   ========================================================================== */

.band-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.625rem 1.5rem;
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.band-link:hover,
.band-link:focus {
    background-color: var(--color-link-hover);
    transform: translateY(-1px);
    outline: none;
}

.band-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 3rem 1rem 2rem;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    margin-top: 2rem;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0); /* logos en noir */
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0;
}

/* ==========================================================================
   Responsive : mobile (photo au-dessus, texte en dessous)
   ========================================================================== */

@media (max-width: 768px) {
    .header-banner {
        height: 50vh;
        min-height: 280px;
        padding: 1rem;
    }

    .band-card,
    .band-card:nth-of-type(even) {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }

    .band-image,
    .band-text {
        flex: 1 1 100%;
        width: 100%;
    }

    .band-image img {
        max-width: 400px;
        margin: 0 auto;
        aspect-ratio: 4 / 3;
    }

    .band-text h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .band-text .band-style {
        text-align: center;
    }

    .band-link {
        display: block;
        text-align: center;
    }

    .footer-logos {
        gap: 2rem;
    }

    .footer-logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .header-banner {
        height: 40vh;
        min-height: 220px;
    }

    .band-text h3 {
        font-size: 1.375rem;
    }

    .band-text p {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Accessibilité
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
