/* --- style.css --- */
:root {
    --primary: #d32f2f;
    --text: #333;
    --bg: #f4f4f4;
    --white: #ffffff;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: var(--bg);
}

/* --- Navigation --- */
.nav {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
}
.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    transition: color 0.3s;
}
.nav a:hover, .nav a.active { color: var(--primary); }

/* --- Structure Accueil (COLONNES) --- */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    text-align: left;
    margin-top: 30px;
}
.main-content { flex: 2; min-width: 300px; } /* Pitch */
.sidebar { flex: 1; min-width: 250px; } /* Crowdfunding/Pro */

/* --- Conteneurs --- */
header, footer, .pitch, .sidebar, .bio-card, .info-cie {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Alignements spécifiques */
.pitch, .sidebar, .bio-card { text-align: left; } /* Texte à gauche */
.info-cie, .event-card { text-align: center; } /* Centré */

/* --- Cartes Équipe --- */
.card {
    background: var(--white);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    text-align: left;
    align-items: center;
}

/* --- Billetterie --- */
.event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- Images --- */
.card img, .bio-card img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.card img { width: 130px; height: 130px; }
.bio-card img { width: 200px; height: 200px; border-width: 5px; margin: 0 auto 20px auto; display: block; }
.card img:hover { transform: scale(1.05); }

.affiche {
    max-width: 100%; height: auto; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); margin: 20px 0;
}

/* --- Typographie --- */
h1 { color: var(--primary); margin-bottom: 20px; text-align: center; }
h2 { margin: 0 0 10px 0; color: var(--text); font-size: 1.4em; }
.subtitle { font-style: italic; color: var(--primary); font-size: 1.3em; margin: 0; }
.role { font-weight: bold; color: var(--primary); text-transform: uppercase; font-size: 0.8em; letter-spacing: 1px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* --- Boutons --- */
.btn, .btn-resa, .back-btn {
    display: inline-block; background: #333; color: white;
    padding: 12px 25px; text-decoration: none; border-radius: 8px;
    font-weight: bold; transition: 0.3s; text-align: center;
}
.btn:hover, .back-btn:hover { background: #000; }
.btn-resa { background: var(--primary); font-size: 1.2em; }
.btn-resa:hover { background: #b71c1c; }

/* --- Footer & Divers --- */
footer { margin-top: 50px; font-size: 0.9em; color: #777; border-top: 1px solid #ddd; }
.tournee { background: #fffde7; padding: 15px; border-radius: 8px; border: 1px dashed #fbc02d; color: #827717; }

/* --- Intro Vidéo (CORRECTION ICI) --- */
#intro {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: black; z-index: 10000;
    display: none; /* <--- C'est ça qui corrige le bug : caché par défaut ! */
    justify-content: center; align-items: center;
}
#play-trigger { position: absolute; z-index: 2; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; cursor: pointer; background: black; }
#play-trigger img { height: 40vh; width: auto; transition: transform 0.3s ease; }
#play-trigger:hover img { transform: scale(1.05); }
#play-trigger p { position: absolute; bottom: 10%; left: 0; width: 100%; color: white; font-weight: bold; text-transform: uppercase; letter-spacing: 3px; pointer-events: none; text-align: center; }
#video-container { display: none; position: relative; width: 100%; height: 100%; max-width: 177.78vh; max-height: 56.25vw; margin: auto; }
#player { width: 100%; height: 100%; }

/* --- Mobile (Copie et remplace tout le bas de ton fichier par ça) --- */
@media (max-width: 700px) {
    /* On empile les colonnes les unes sous les autres */
    .container, .card { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .pitch, .sidebar, .main-content { 
        width: 100%; 
        text-align: center; 
    }

    /* --- LA CORRECTION DU MENU EST ICI --- */
    .nav {
        justify-content: center; /* On centre le menu au lieu de le mettre à droite */
        flex-wrap: wrap;         /* On autorise le menu à passer sur 2 lignes */
        gap: 10px;               /* On réduit un peu l'espace entre les mots */
    }
    
    /* On réduit un peu les marges sur téléphone pour gagner de la place */
    body {
        padding: 10px;
    }
}