/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #000000;
    --surface-color: #121212;
    --surface-hover: #1e1e1e;
    --border-color: #333333;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Suppression globale des arrondis */
    border-radius: 0 !important; 
}

/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/outfit-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  src: url('./fonts/outfit-v15-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 100px; /* Espace pour le player */
}

/* --- LOGO STYLE METRO --- */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-logo {
    height: 40px; /* Ajuste selon la taille de ton logo */
    width: auto;
    display: block;
    transition: filter 0.3s ease, transform 0.2s;
}

/* Effet au survol : le logo redevient blanc pur ou s'éclaire */
.logo-link:hover .main-logo {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.05);
}

/* On enlève la marge à gauche pour le premier lien du logo */
.logo-link {
    margin-left: 0 !important;
    padding: 0;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent);
}

/* --- RESPONSIVE NAVIGATION --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* On empile le logo et les liens */
        padding: 15px 5%;
        gap: 15px;             /* Espace entre le logo et le menu */
        text-align: center;
    }

    .nav-container {
        display: flex;
        flex-wrap: wrap;       /* Permet aux liens de passer à la ligne si besoin */
        justify-content: center;
        gap: 10px;             /* Espace uniforme entre les liens */
    }

    .nav-link {
        margin-left: 0;        /* IMPORTANT : On supprime le décalage forcé */
        margin: 5px 10px;      /* On centre avec des marges égales */
        font-size: 0.8rem;      /* On réduit légèrement la taille */
        padding: 5px 0;
    }
}

/* --- CONTENU PRINCIPAL --- */
main {
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero {
    margin-bottom: 40px;
    border-left: 4px solid var(--accent);
    padding-left: 20px;
}

.hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 900;
}

/* --- HERO SLIDER --- */
.hero-home {
    height: 600px;
    position: relative;
    margin: -40px -5% 40px -5%;
    overflow: hidden; /* Cache les slides qui dépassent */
    background: #000;
}

#slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Transition fluide style Windows */
    width: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 20%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 10%;
}

/* Grayscale sur les images de fond du slider */
.slide { filter: grayscale(100%); transition: filter 0.5s; }
.slide:hover { filter: grayscale(30%); }

/* Navigation manuelle */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
}
.slider-nav:hover { background: var(--accent); color: #000; }
.prev { left: 0; }
.next { right: 0; }

/* Points indicateurs (Dots) */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border: 1px solid white;
    border-radius: 50% !important;
    cursor: pointer;
    background: transparent;
    transition: background 0.3s;
}

.dot.active { background: white; }

.play-circle {
    width: 80px;
    height: 80px;
    border: 2px solid white;
    border-radius: 50% !important; /* Exception pour le rond de lecture */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    transition: transform 0.3s;
}
.play-circle:hover { transform: scale(1.1); background: rgba(255,255,255,0.2); }
.play-circle svg { width: 40px; }

/* --- PRODUCTIONS GRID --- */
.label-section { text-align: center; margin-top: 80px; }
.section-title { font-weight: 900; letter-spacing: 3px; margin-bottom: 40px; }

.productions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.prod-card img { width: 100%; transition: 0.3s; margin-bottom: 15px; }
.prod-card:hover img { filter: grayscale(0%) brightness(1.2);transform: scale(1.05); }
.prod-card p { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 15px; min-height: 60px; }

.btn-metro {
    background: #333;
    color: white;
    padding: 10px;
    font-size: 0.7rem;
    text-decoration: none;
    display: block;
    margin: auto;
}

/* --- texte home --- */

.intro-text {
    text-align: center;
}

/* --- ABONNEMENT RESPONSIVE --- */
.subscribe-section { 
    text-align: center; 
    padding: 60px 5%; /* Ajout d'un padding latéral pour éviter que ça colle aux bords */
}

.social-icons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 20px;
    flex-wrap: nowrap; /* Force le maintien sur une seule ligne quoi qu'il arrive */
}

.social-icons img { 
    /* La taille varie entre 35px et 60px selon la largeur de l'écran */
    width: clamp(35px, 8vw, 60px); 
    height: auto;
    transition: transform 0.2s;
}

.social-icons img:hover { 
    transform: translateY(-5px); 
}

/* Ajustement du gap (l'espace entre les icônes) pour les petits écrans */
@media (max-width: 480px) {
    .social-icons { 
        gap: 12px; 
    }
    .subscribe-section {
        padding: 40px 5%;
    }
}

/* --- GRILLE D'ÉPISODES (Style Tuiles Windows 8) --- */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.episode-card {
    background: var(--surface-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background 0.3s;
}

.episode-card:hover {
    background: var(--surface-hover);
}

.episode-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: filter 0.3s;
}

.episode-card:hover img {
    object-fit: contain;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-content p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- BOUTONS --- */
.card-footer {
    display: flex;
    gap: 2px;
}

.play-btn, .play-btn-large, .nav-link.secondary, .share-btn {
    background: var(--accent);
    color: var(--bg-color);
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.nav-link.secondary, .share-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: inline-block;
    text-align: center;
}

.play-btn:hover, .play-btn-large:hover {
    opacity: 0.8;
}

/* --- PAGE DÉTAIL --- */
.episode-detail {
    max-width: 900px;
    margin: auto;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
}

.content {
    font-size: 1.1rem;
    color: var(--text-dim);
}

/* --- LECTEUR FIXE (BAS) --- */
.player-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 96px;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
}

.player-ui {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding-right: 5%; /* Pas de padding à gauche pour coller l'image au bord */
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

/* Container de la pochette (Bouton Play/Pause) */
#player-control-container {
    position: relative;
    width: 90px; /* Largeur égale à la hauteur du footer */
    height: 90px;
    cursor: pointer;
    background: #000;
}

#player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

/* Overlay SVG */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Transparence noire */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.2s;
}

#player-control-container:hover .play-overlay {
    opacity: 1;
}

#play-pause-svg {
    width: 40px;
    height: 40px;
}

/* Texte et progression */
.track-info {
    display: flex;
    flex-direction: column;
}

.progress-wrapper {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #222;
}

#progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
}

#progress-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: pointer;
}

.player-controls button {
    background: white;
    color: black;
    border: none;
    padding: 10px 25px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
}

.player-controls button:hover {
    background: #ccc;
}

/* Volume */
.volume-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 20%;
    justify-content: flex-end;
}

.volume-zone span {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-dim);
}

#volume-slider {
    width: 80px;
    cursor: pointer;
    accent-color: white; /* Pour les navigateurs modernes */
}

/* Animation de clignotement Metro */
@keyframes metroBlink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Cette classe sera ajoutée via JS quand le son est en pause */
.is-paused #progress-fill {
    animation: metroBlink 1.5s infinite step-end; /* step-end pour un effet bien net/haché */
}

/* On s'assure que le container de la pochette a bien cet ID */
#player-control-container {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: pointer;
    background: #000;
}

/* Meta données et Tags style Metro */
.meta-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.episode-tags {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.tag {
    background: var(--border-color);
    padding: 4px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}

.guid {
    display: block;
    margin-top: 40px;
    font-size: 0.6rem;
    color: #333;
    font-family: monospace;
}

.actions {
    display: flex;
    gap: 1px; /* Ligne de séparation style Windows 8 */
    margin-top: 20px;
}

.actions .nav-link.secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- PAGE À PROPOS --- */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 800px;
    margin-top: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 1px; /* Quadrillage type Windows 8 */
    background: var(--border-color);
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.profile-card {
    background: var(--surface-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.profile-image-container {
    width: 100%;
    height: 350px;
    background: #000;
    margin-bottom: 25px;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Force le noir et blanc */
    transition: filter 0.3s ease;
}

.profile-card:hover .profile-img {
    filter: grayscale(0%); /* L'image reprend ses couleurs au survol */
}

.profile-header h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.role-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-color);
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.profile-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-dim);
    text-align: justify;
}

.profile-footer {
    margin-top: auto; /* Pousse le bouton en bas */
    padding-top: 20px;
}

.about-footer {
    margin-bottom: 60px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.copyright {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #444;
}

/* Responsive */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.episode-detail .content {
    white-space: pre-wrap; /* Respecte les sauts de ligne du texte original */
}

/* --- EN-TÊTE IMMERSIF --- */
.category-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

.act-1 {
    background: url('./images/acte1-hero.jpg') center/cover; /* Image de fond spatiale */

}

.act-2 {
    background: url('./images/acte2-hero.jpg') center/cover; /* Image de fond spatiale */

}
.act-3 {
    background: url('./images/acte3-hero.jpg') center/cover; /* Image de fond spatiale */

}
.azenmr {
    background: url('./images/azenmr-hero.jpg') center/cover; /* Image de fond spatiale */

}

.category-hero:hover {
    filter: grayscale(40%);
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 0 5% 60px 5%;
}

.category-tag {
    background: var(--accent);
    color: #000;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-hero h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    line-height: 1;
    margin-top: 20px;
    font-weight: 900;
}

.category-hero h1 .outline {
    -webkit-text-stroke: 1px white;
    color: transparent;
}

/* --- LAYOUT DE L'INTRODUCTION --- */
.intro-exploration {
    margin: 60px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.4;
}

.quote-container {
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
}

blockquote {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* --- SÉPARATEUR STYLE METRO --- */
.section-divider {
    display: flex;
    align-items: center;
    margin: 80px 0;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: #333;
}

.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #222;
    margin-left: 20px;
}

/* --- BOUTON RETOUR --- */
.navigation-footer-custom {
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.btn-back {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.btn-back:hover {
    color: var(--accent);
}

.btn-back .arrow {
    transition: transform 0.3s;
}

.btn-back:hover .arrow {
    transform: translateX(-10px);
}

/* Responsive */
@media (max-width: 850px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .quote-container {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 20px 0 0 0;
    }
}

/* Feedback visuel pour le partage */
.share-btn.success {
    background-color: #4CAF50 !important; /* Vert */
    color: white !important;
    border-color: #4CAF50 !important;
    transition: all 0.3s ease;
}


/* Conteneur principal pour l'épisode mis en avant */
.episode-full-card {
    position: relative;
    width: 100%;
    min-height: 450px;
    margin: 2rem 0 4rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: #0a0a0a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Background avec overlay sombre pour la lisibilité */
.full-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    mask-image: linear-gradient(to right, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 40%, transparent 100%);
}

.full-card-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    max-width: 700px;
}

.full-card-content h2 {
    font-size: 3rem;
    margin: 1.5rem 0;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.full-card-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.full-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}


@media (max-width: 768px) {
    /* 1. Centrage global du contenu de la carte */
    .full-card-content {
        padding: 2rem 1.5rem;
        text-align: center; /* Centre le titre et le texte */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 2. Alignement des boutons */
    .full-card-meta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center; /* Centre les éléments horizontalement */
    }

    /* 3. Suppression du décalage (margin-left) hérité de .nav-link */
    .full-card-meta .nav-link.secondary, 
    .full-card-meta .play-btn-large {
        margin-left: 0 !important; /* Supprime le décalage de 30px */
        width: 100%;               /* Force la largeur pleine */
        max-width: 320px;          /* Optionnel : limite la largeur pour l'esthétique */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 4. Ajustement du tag de durée pour qu'il ne soit pas collé */
    .full-card-meta .tag {
        margin-bottom: 10px;
        width: auto;
    }
}

/* --- RESPONSIVE GRILLES --- */
@media (max-width: 768px) {
    /* Passage à 2 colonnes pour les productions */
    .productions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Un peu moins d'espace pour gagner de la place */
    }


    /* Ajustement des textes des cartes pour qu'ils ne soient pas trop serrés */
    .prod-card p {
        font-size: 0.75rem;
        min-height: auto;
        margin-bottom: 10px;
    }
}

/* --- OPTIMISATION DU PLAYER MOBILE --- */
@media (max-width: 550px) {
    /* 1. On masque totalement la zone de volume */
    .volume-zone {
        display: none !important;
    }

    /* 2. On verrouille la pochette pour qu'elle ne soit jamais écrasée */
    #player-control-container {
        flex-shrink: 0; /* Empêche le conteneur de rétrécir */
        width: 80px;    /* On peut réduire légèrement la taille si besoin */
        height: 80px;
    }

    /* 3. On ajuste les infos du morceau pour occuper l'espace libéré */
    .track-info {
        flex: 1;
        min-width: 0; /* Important pour que le texte puisse tronquer proprement */
        padding-right: 10px;
    }

}

