/* =========================================================
   1. STYLES GÉNÉRAUX & STRUCTURE
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f9fa;
}

main {
    padding-top: 80px; /* Espace réservé sous le bandeau fixe */
}

/* Réduction ciblée de la photo de la cheffe sur PC */
.photo-cheffe {
    max-width: 280px !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Sécurité globale des images */
img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h2 {
    color: #1a252f;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.content-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Ancre invisible pour décalage sous le menu sur PC */
.ancre-menu {
    display: block;
    height: 115px;
    margin-top: -115px;
    visibility: hidden;
    pointer-events: none;
}


/* =========================================================
   2. EN-TÊTE & NAVIGATION
   ========================================================= */

header {
    background-color: #1a252f;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px; /* Passage de 20px à 10px en haut/bas pour gagner de la place */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Taille du logo agrandie */
.logo-header img {
    height: 60px;          /* Passe de 45px à 60px */
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.logo-header img:hover {
    opacity: 0.85;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, 
nav ul li a.active {
    color: #fff;
    border-bottom: 2px solid #3498db;
}


/* =========================================================
   3. BANNIÈRE HERO & CARTES
   ========================================================= */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), url('images/ork.jpg') no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 200px;
    min-height: 350px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.card {
    background-color: #e8f4fd;
    border-left: 5px solid #3498db;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}


/* =========================================================
   4. LAYOUT DES SECTIONS (TEXTE + IMAGE)
   ========================================================= */
.content-section p {
    text-align: justify;
}
.cheffe-container .section-img,
.cheffe-img {
    max-width: 320px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: start;
}

.section-media {
    margin-top: 0;
    width: 100%;
}

.section-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cheffe-container h3 {
    color: #1a252f;
    font-size: 22px;
    margin-bottom: 15px;
}

.card-cours {
    background-color: #f4f7f6;
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 4px;
    margin-top: 25px;
}

.card-cours h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}


/* =========================================================
   5. GALERIE PHOTOS & LOGO
   ========================================================= */

.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.galerie img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galerie img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Galerie d'affiches de concert sur PC (3 colonnes) */
.galerie-affiches {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    margin-top: 25px;
}

.galerie-affiches img {
    width: 100% !important;
    max-width: 100% !important;
    height: 320px !important;
    object-fit: contain !important;
    border: none !important;
    background-color: transparent !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.galerie-affiches img:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.logo-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}


/* =========================================================
   6. SECTION LES MUSICIENS
   ========================================================= */

.sous-titre-musiciens {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.musiciens-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.pupitre {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #1a252f;
}

.pupitre h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a252f;
    font-size: 18px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.pupitre ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pupitre ul li {
    padding: 3px 0;
    font-size: 15px;
    color: #333;
}

.pupitre.comite-presidence {
    border-left-color: #3498db;
}


/* =========================================================
   7. PIED DE PAGE
   ========================================================= */

footer {
    background-color: #1a252f;
    color: #7f8c8d;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
}


/* =========================================================
   8. OPTIMISATIONS MOBILES ET TABLETTES (<= 768px)
   ========================================================= */

@media (max-width: 768px) {

    main {
        padding-top: 140px;
    }


   .logo-header img {
        height: 48px;       /* Un logo bien visible sur mobile sans charger l'écran */
        margin-bottom: 8px;
    }
   
    .ancre-menu {
        height: 140px;
        margin-top: -140px;
    }

    .photo-cheffe {
        max-width: 100% !important;
    }

    .cheffe-container .section-img,
    .cheffe-img {
        max-width: 100% !important;
    }

    /* Force 2 affiches côte à côte sur mobile */
    .galerie-affiches {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .galerie-affiches img {
        height: 220px !important;
    }

header {
        flex-direction: column;
        padding: 8px 10px;  /* Padding très fin sur mobile */
        text-align: center;
    }

    header .logo {
        margin-bottom: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }

    nav ul li {
        margin-left: 0;
    }

    nav ul li a {
        font-size: 14px;
        padding: 4px 6px;
    }

    .hero {
        padding-top: 20px;
        padding-bottom: 160px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .content-section {
        margin: 20px 10px;
        padding: 15px;
    }

    h2 {
        font-size: 22px;
        padding-top: 0;
        margin-top: 0;
        scroll-margin-top: 0;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-media {
        margin-top: 0;
    }

    .section-img {
        width: 100%;
        height: auto;
    }

    .logo-img {
        max-width: 180px;
        margin-top: 20px;
    }

    .musiciens-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* =========================================================
   9. PETITS ÉCRANS MOBILES (<= 480px)
   ========================================================= */

@media (max-width: 480px) {
    .galerie {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .galerie img {
        height: 130px;
    }
}

/* Indique que les images sont cliquables */
.galerie img, .section-img, .galerie-affiches img {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.galerie img:hover, .section-img:hover {
    opacity: 0.9;
}
