/* --- VARIABLES & RESET --- */
/* --- VARIABLES & RESET --- */
/* --- VARIABLES & RESET --- */
:root {
    /* --- FOND ET SURFACES (Restent sombres pour le contraste) --- */
    --bg-color: #121212; /* Le fond noir quasi-total */
    --surface-color: #1e1e1e; /* Un gris très sombre pour les éléments */
    --surface-hover: #2a2a2a; /* Un gris un peu moins sombre au survol */
    --border-color: #333333; /* Gris foncé pour les séparations subtiles */

    /* --- TEXTES (Échelle de gris standard) --- */
    --text-main: #ffffff; /* Blanc pur pour une lisibilité maximale */
    --text-dim: #999999; /* Gris moyen pour les textes secondaires (légèrement assombri pour le contraste monochrome) */
    
    /* --- ACCENTS (Conversion de la couleur vers la luminosité) --- */
    /* Le bleu vibrant devient du blanc pur pour "popper" au maximum */
    --accent: #ffffff; 
    
    /* Le cyan/turquoise devient un gris très clair, distinct du blanc pur */
    --accent-alt: #e0e0e0; 

    /* (Note: il y avait une erreur dans ton code original où funky-yellow était bleu. 
       Je l'ai converti en un autre gris clair distinct pour garder une variation) */
    --play-button-color: #cccccc; 
    
    /* Le dégradé tech devient un dégradé de luminosité : Blanc -> Gris très clair -> Blanc */
    --timeline-gradient: linear-gradient(135deg, #ffffff, #e0e0e0, #ffffff); 
}

/* --- HERO HOME --- */
.hero-home {
    height: 50vh;
    max-height: 600px;
    position: relative;
    margin: 0px -5% 40px -5%;
    overflow: hidden;
    background-image: url(./images/asoundmr-cover.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

* {
    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: 700;
  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: 900;
  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 */
}


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




/* --- 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);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.episode-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 0, 122, 0.2);
}

/* Petit liseré de couleur en bas de carte */
.episode-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--timeline-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.episode-card:hover::after {
    transform: scaleX(1);
}

.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 {
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.8rem;
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s;
}

.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 {
    color: #000;
    border-color: var(--play-button-color);
    background-color: var(--play-button-color);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--play-button-color);
    transition: left 0.3s cubic-bezier(0.7, 0, 0.2, 1);
    z-index: -1;
}

.play-btn:hover::before {
    left: 0;
}

/* --- 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;
}

/* Remplace ton animation metroBlink par celle-ci */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px var(--accent); opacity: 1; }
    50% { box-shadow: 0 0 20px var(--accent); opacity: 0.8; }
    100% { box-shadow: 0 0 5px var(--accent); opacity: 1; }
}

#progress-fill {
    height: 100%;
    background: var(--timeline-gradient); /* Dégradé sur la progression */
    width: 0%;
    box-shadow: 0 0 10px var(--accent);
}

.is-playing #progress-fill {
    animation: pulseGlow 2s infinite ease-in-out;
}

#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é */
}

/* 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;
    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;
    transition: filter 0.8s ease;
}

.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;
}



/* 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;
}



@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;
    }

}

/* --- CSS Option 1 : Néon Pulse --- */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    margin-bottom: 16px;
    margin-left: 0;
    
    /* Style du texte */
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--accent, #ff007a); /* Utilise ta variable rose, sinon fallback */
    
    /* Style de la boîte */
    background: transparent;
    border: 2px solid var(--accent, #ff007a);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    
    /* Ombre portée effet "lueur" */
    box-shadow: 0 0 10px rgba(255, 0, 122, 0.3), inset 0 0 10px rgba(255, 0, 122, 0.1);
}

/* L'icône */
.btn-back-home svg {
    transition: transform 0.3s ease;
}

/* Au survol */
.btn-back-home:hover {
    background: var(--accent, #ff007a);
    color: #000; /* Le texte devient noir pour le contraste */
    box-shadow: 0 0 25px rgba(255, 0, 122, 0.6), inset 0 0 0px transparent;
    transform: translateY(-3px); /* Léger soulèvement */
}

/* Petite animation de la flèche au survol */
.btn-back-home:hover svg {
    transform: translateX(-5px);
}
