/* ======================================================= 
   CULTURE (DESIGN FINAL + 3 COLONNES)
   ================================================== */

.pf-culture-section {
    padding: 70px 24px;
    background-color: var(--bg-main);
    color: var(--color-creme);
}

/* 🌟 MODIFIÉ : On passe à 3 colonnes et on élargit un peu (1100px) */
.pf-culture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1150px; 
    margin: 0 auto;
}

/* --- CARTE BASE --- */
.pf-culture-card {
    background-color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative; overflow: hidden;
    transition: transform 0.3s ease;
}
@media (hover: hover) {
    .pf-culture-card:hover  {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        border-color: rgba(255,255,255,0.15);
    }
}

/* BADGES */
.card-header-badge { width: 100%; display: flex; justify-content: flex-start; margin-bottom: 25px; }

/* ==========================================
   1. MUSIQUE 
   ========================================== */
.vinyl-wrapper {
    width: 160px; height: 160px;
    position: relative; margin-bottom: 20px;
    border-radius: 50%; background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: spin 6s linear infinite; animation-play-state: paused;
    display: flex; align-items: center; justify-content: center; overflow: hidden; 
}

.vinyl-disc {
    position: absolute;
    inset: 0; 
    border-radius: 50%;
}

.vinyl-disc img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    border-radius: 50%; 
    display: block; 
    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
}

.vinyl-disc img.is-loaded { opacity: 0.9; }

.vinyl-wrapper::after {
    content: '';
    position: absolute; inset: 0; border-radius: 50%;
    background: repeating-radial-gradient(#000 0, #000 1px, transparent 2px, transparent 4px);
    opacity: 0.1; pointer-events: none; z-index: 2;
}

.center-hole {
    position: absolute; 
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 30px; height: 30px; 
    background: var(--bg-card); 
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1); 
    z-index: 10;
}

/* 🌟 ASTUCE PRO : Pousser les boutons vers le bas pour les aligner horizontalement */
.player-actions {
    margin-top: auto; /* C'est ÇA qui aligne les boutons parfaitement en bas */
    display: flex; align-items: center; justify-content: center; gap: 20px;
    width: 100%;
}

/* 🌟 Limiter le résumé du film à 3 lignes (ajoute les "...") */
.film-summary {
    font-size: 0.85em;
    line-height: 1.4;
    opacity: 0.8;
    margin-bottom: 20px;
    width: 100%;
    
    /* Magie CSS pour limiter le texte */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-play-soft {
    background: transparent; border: none; padding: 0;
    color: var(--color-creme); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s; outline: none;
}
@media (hover: hover) {
    .btn-play-soft:hover {  transform: scale(1.1); color: #fff; }
}

.btn-play-soft svg { width: 54px; height: 54px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.icon-pause { display: none; }
.music-card.is-playing .icon-play { display: none; }
.music-card.is-playing .icon-pause { display: block; }
.music-card.is-playing .vinyl-wrapper { animation-play-state: running; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-spotify-pill {
    display: inline-flex; align-items: center; gap: 8px; 
    padding: 10px 24px; border-radius: 50px;
    background-color: rgba(13, 29, 37, 0.4); border: 1px solid var(--color-accent-yellow);
    color: var(--color-accent-yellow);
    font-family: var(--font-main); font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
    transition: all 0.3s ease; backdrop-filter: blur(4px);
    height: 44px; box-sizing: border-box;
}

@media (hover: hover) {
    .btn-spotify-pill:hover {
        background-color: var(--color-accent-yellow);
        color: var(--bg-main); transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(242, 201, 76, 0.3);
    }
}

/* ==========================================
   2. CINÉMA / DOC (🌟 NOUVEAU)
   ========================================== */
.film-media {
    width: 100%;
    height: 180px; /* Même proportion que le vinyle environ */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.film-media iframe, .film-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

/* ==========================================
   3. VOCABULAIRE
   ========================================== */
.vocab-content {
    width: 100%; flex-grow: 1;
    display: flex; flex-direction: column; justify-content: center;
}

.vocab-row { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.flag-emoji { font-size: 20px; opacity: 0.8; margin-bottom: 2px; }
.word-gt { font-size: 26px; color: var(--color-accent-yellow); margin: 0; line-height: 1.1; }
.word-fr { font-size: 26px; color: var(--color-terracotta); margin: 0; line-height: 1.1; }

.word-pronunciation {
    font-size: 14px; color: var(--color-creme-dim); font-style: italic;
    margin-top: 2px; font-weight: 400;
}

.vocab-gap { height: 25px; }

.vocab-context {
    margin-top: 50px; font-size: 13px; color: rgba(255,255,255,0.4); font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; width: 100%;
}

/* ======================================================= 
   BOUTON ARCHIVE CULTURE (Isolé pour éviter les bugs)
   ================================================== */
.pf-culture-archive-link {
    position: relative; /* 🌟 INDISPENSABLE pour accrocher la ligne au bouton */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 12px; 
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: 1px;
    color: var(--color-accent-yellow);
    text-decoration: none;
    transition: transform 0.3s ease;
    padding-bottom: 4px; /* Laisse un peu d'espace pour la ligne en dessous */
}

/* 🌟 CRÉATION DE LA LIGNE GLISSANTE */
.pf-culture-archive-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%; /* Elle est invisible au départ */
    height: 1.5px; /* Épaisseur de la ligne */
    background-color: var(--color-accent-yellow);
    transition: width 0.3s ease-in-out; /* L'effet de glissement fluide */
}

@media (hover: hover) {
    .pf-culture-archive-link:hover {
        color: var(--color-accent-yellow); 
        transform: translateY(-2px); /* Conserve le petit bond vers le haut */
    }
    
    /* 🌟 AU SURVOL : La ligne glisse de 0 à 100% */
    .pf-culture-archive-link:hover::after {
        width: 100%;
    }
}

/* Container de la miniature */
.youtube-thumbnail-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le bouton Play */
.play-btn-overlay {
    position: absolute;
    z-index: 2;
    transition: transform 0.3s ease;
}

.play-btn-overlay svg {
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

/* Effet au survol */
.youtube-thumbnail-trigger:hover img {
    opacity: 1 !important;
}

.youtube-thumbnail-trigger:hover .play-btn-overlay {
    transform: scale(1.1);
}

/* On change la couleur du bouton play au survol pour le rendre dynamique */
.youtube-thumbnail-trigger:hover .play-btn-bg {
    fill: #FF0000; /* Rouge YouTube classique */
}

/* ======================================================= 
   ARCHIVES CULTURE (Grid Stricte, Lightbox, Design Premium)
   ======================================================= */

.pf-culture-archive-page {
    background-color: var(--color-creme);
}

.pf-culture-main-title {
    font-family: var(--font-main);
    font-size: 40px; 
    font-weight: 800;
    color: var(--color-primary); 
    text-transform: uppercase;
}

/* --- BOUTON VOLVER --- */
.pf-culture-volver {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--color-primary); border: 1.5px solid var(--color-primary);
    padding: 8px 20px; border-radius: 50px; text-decoration: none;
    font-family: var(--font-main); font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;
}
@media (hover: hover) { 
    .pf-culture-volver:hover { 
        background-color: var(--color-primary); 
        color: var(--color-creme); 
    } 
}

@media (min-width: 768px) { .spacer-desktop { display: block !important; } }

/* --- NAVIGATION PILLULES (DESKTOP) --- */
/* Sur Desktop, le conteneur "outer" ne fait rien de spécial, la grille flex gère le centrage */
@media (min-width: 769px) {
    .pf-pill-nav-outer { width: 100%; display: flex; justify-content: center; }
    .pf-culture-pill-container {
        display: flex; justify-content: center; gap: 10px;
    }
}

.pf-culture-pill-btn {
    background-color: rgba(0, 0, 0, 0.06); /* Beige foncé inactif */
    color: var(--color-primary);
    border: none; padding: 12px 24px; border-radius: 50px; cursor: pointer;
    font-family: var(--font-main); font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;
    outline: none;
}
@media (hover: hover) { .pf-culture-pill-btn:hover { opacity: 0.8; } }
.pf-culture-pill-btn.active {
    background-color: var(--color-primary); /* Bleu nuit actif */
    color: var(--color-accent-yellow);
}

/* =========================================
   LES CARTES (DIMENSIONS STRICTES DESKTOP)
   ========================================= */
.pf-culture-strip {
    display: flex; align-items: stretch;
    width: 100%; height: 240px; /* 🌟 HAUTEUR FIXE POUR TOUTES LES CARTES */
    box-sizing: border-box; 
    background-color: var(--color-primary);
    border-radius: 16px; overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: transform 0.3s ease;
}
@media (hover: hover) { .pf-culture-strip:hover { transform: translateY(-4px); } }

/* --- COLONNES GAUCHE (Miniature) --- */
.culture-strip-left {
    width: 280px; height: 100%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background-color: rgba(0,0,0,0.2); overflow: hidden;
}

/* Vinyle de la musique */
.music-cover-container { background-color: rgba(0,0,0,0.1); }
.vinyl-wrapper-archive {
    width: 150px; height: 150px; position: relative; border-radius: 50%; 
    background: #000; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    animation: spin 6s linear infinite; animation-play-state: paused;
    display: flex; align-items: center; justify-content: center; overflow: hidden; 
}
.vinyl-wrapper-archive::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: repeating-radial-gradient(#000 0, #000 1px, transparent 2px, transparent 4px);
    opacity: 0.15; pointer-events: none; z-index: 2;
}
.vinyl-disc-archive { position: absolute; inset: 0; border-radius: 50%; }
.vinyl-disc-archive img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.center-hole-archive { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); 
    width: 30px; height: 30px; background: var(--color-primary); 
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); z-index: 10; 
}

/* --- VINYLE : tourne quand is-playing est sur l'article --- */
.culture-strip-music.is-playing .vinyl-wrapper-archive {
    animation-play-state: running;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* 🌟 MINIATURE YOUTUBE (Pour déclencher la Lightbox) */
.video-container { background: #000; padding: 0; }
.youtube-thumbnail-trigger { position: relative; width: 100%; height: 100%; cursor: pointer; }
.youtube-thumbnail-trigger img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
@media (hover: hover) { .youtube-thumbnail-trigger:hover img { opacity: 1; } }

/* Bouton Play rond au centre de l'image vidéo */
.play-overlay { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: rgba(0,0,0,0.6); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.play-overlay svg { width: 24px; height: 24px; color: white; margin-left: 4px; }

/* Emoji Vocab */
.vocab-emoji-bg { background-color: rgba(0,0,0,0.1); }
.vocab-emoji-bg span { font-size: 80px; } 

/* --- COLONNE CENTRE (Contenu Flexbox) --- */
.culture-strip-center {
    flex: 1; padding: 25px 30px;
    display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; 
}
.culture-strip-vocab .culture-strip-center {
    padding: 30px 40px;
}

/* Badges */
.culture-badge-wrapper { display: block; margin-bottom: 8px; }
.culture-badge {
    display: inline-block; padding: 5px 10px; border-radius: 6px; 
    font-family: var(--font-main); font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; 
}

/* Titres & Sous-titres */
.culture-strip-title { color: white; font-size: 22px; margin: 0 0 5px 0; line-height: 1.2; }
.film-year-hint { font-weight: normal; opacity: 0.5; font-size: 0.8em; }
.culture-strip-subtitle { font-size: 14px; font-style: italic; margin-bottom: 5px; display: block; }

/* 🌟 ALIGNEMENT PARFAIT DU VOCABULAIRE (Baseline) */
.vocab-translation-row { display: flex; gap: 20px; align-items: baseline; margin-bottom: 5px; }
.vocab-gt-word { font-size: 24px; color: var(--color-accent-yellow); font-weight: bold; line-height: 1.1; }
.vocab-arrow { color: rgba(255,255,255,0.2); font-size: 20px; }
.vocab-fr-col { display: flex; flex-direction: column; }
.vocab-fr-word { font-size: 24px; color: var(--color-terracotta); font-weight: bold; line-height: 1.1; }
.vocab-fr-pron { font-size: 13px; color: rgba(255,255,255,0.5); font-style: italic; margin-top: 4px; }
.culture-strip-context { color: rgba(255,255,255,0.6); font-size: 14px; margin: 0; font-style: italic; }

/* Textes limités à 2 lignes (Film) pour ne pas casser la carte */
.film-summary-limit { 
    color: rgba(255,255,255,0.6); font-size: 13px; margin: 0; font-style: italic; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- BOUTONS INTERACTIFS --- */
.culture-interactive-actions { display: flex; align-items: center; gap: 15px; margin-top: 10px; }

.btn-play-archive { background: none; border: none; cursor: pointer; padding: 0; transition: transform 0.2s ease; outline: none; }
@media (hover: hover) { .btn-play-archive:hover { transform: scale(1.1); } }

/* Boutons de lien (Spotify / Plataforma) */
.culture-link-btn {
    font-family: var(--font-main); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; 
    display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-decoration: none;
    padding: 10px 24px; border-radius: 50px; border: 1.5px solid; transition: all 0.3s ease;
}

/* 🌟 LA CLASSE COULEUR UNIQUE : YELLOW */
.btn-yellow { border-color: var(--color-accent-yellow); color: var(--color-accent-yellow); }
@media (hover: hover) {
    .btn-yellow:hover { 
        background-color: var(--color-accent-yellow); 
        color: var(--color-primary) !important; 
        transform: translateY(-2px); 
    }
}

/* 🌟 LIGHTBOX YOUTUBE */
.pf-lightbox-overlay {
    display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
.pf-lightbox-overlay.active { display: flex; opacity: 1; }
.pf-lightbox-content { position: relative; width: 90%; max-width: 900px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.pf-lightbox-iframe-container { width: 100%; height: 100%; }
.pf-lightbox-iframe-container iframe { width: 100%; height: 100%; border: none; display: block; }
#pf-lightbox-close {
    position: fixed; top: 20px; right: 24px; width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease; opacity: 1; z-index: 100000;
}
@media (hover: hover) {
    #pf-lightbox-close:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }
}


/* ================================================= 

/* ==========================================================================
   RESPONSIVE - SECTION CULTURE (MOBILE & TABLETTE < 900px)
   ========================================================================== */
@media (max-width: 900px) {
    .pf-culture-section {
        padding: 40px 0 !important; 
        overflow: hidden;
        background-color: var(--bg-main);
    }

    /* --- 1. GRILLE : Ajustement pour le Scroll Horizontal --- */
    .pf-culture-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        
        gap: 15px !important;
        /* Le secret : 9vw à gauche et à droite pour centrer une carte de 82vw */
        padding: 20px 9vw 40px 9vw !important; 
        scrollbar-width: none; 
    }
    
    .pf-culture-grid::-webkit-scrollbar {
        display: none; 
    }

    /* --- 2. CARTES : Centrage de l'aimant --- */
    .pf-culture-card {
        flex: 0 0 82vw !important; /* Force la largeur exacte */
        scroll-snap-align: center !important; /* Aimant au centre */
        
        min-height: 420px !important; 
        padding: 35px 25px !important;
        border-radius: 24px !important; 
        
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        
        box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
        /* Assure-toi que la bordure reste discrète */
        border: 1px solid rgba(255, 255, 255, 0.05) !important; 
    }

    /* Empêche la dernière carte de coller au bord droit (Surtout sur iOS) */
    .pf-culture-grid::after {
        content: '';
        flex: 0 0 1px;
    }

    /* --- 3. PAGINATION DOTS --- */
    .pf-culture-dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important; 
        margin-top: -15px !important; 
        padding-bottom: 20px !important;
    }

    .pf-culture-dots .dot {
        width: 6px; height: 6px;
        background-color: var(--color-creme) !important; 
        opacity: 0.3; border-radius: 50%;
        transition: all 0.3s ease; 
        display: block;
    }

    .pf-culture-dots .dot.active {
        opacity: 1;
        width: 12px; height: 12px; 
        background-color: var(--color-creme) !important; 
    }

    /* Ajustements internes des cartes sur mobile */
    .vinyl-wrapper {
        width: 140px !important; /* Un peu plus compact sur mobile */
        height: 140px !important;
        margin: 0 auto 20px auto !important;
    }
    .player-actions { margin-top: 15px !important; gap: 15px !important; }
    .vocab-content { margin: auto 0 !important; text-align: center; }
    .word-gt, .word-fr { font-size: 26px !important; font-weight: 900 !important; line-height: 1.2 !important; }
    .vocab-context { margin-top: 25px !important; padding-top: 20px !important; }
}

/* ==========================================================================
   EFFETS TACTILES (CLIC) - ESSENTIEL POUR L'UX MOBILE "APP-LIKE"
   ========================================================================== */
@media (max-width: 900px) {
    /* 1. Effet de ressort sur la carte entière quand on la touche */
    .pf-culture-card:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    /* 2. Enfoncement des boutons au toucher */
    .btn-spotify-pill:active, 
    .btn-play-soft:active,
    .pf-culture-archive-link:active {
        transform: scale(0.95) !important;
        opacity: 0.8;
        transition: transform 0.1s ease, opacity 0.1s ease !important;
    }

    /* 3. Animation du bouton Play YouTube au clic */
    .youtube-thumbnail-trigger:active .play-btn-overlay {
        transform: translate(-50%, -50%) scale(0.9) !important;
        transition: transform 0.1s ease !important;
    }
}

/* ==========================================================================
   RESPONSIVE EXTRÊME - TRÈS PETITS ÉCRANS (< 400px, ex: iPhone SE)
   ========================================================================== */
@media (max-width: 400px) {
    
    /* --- 1. GRILLE : On donne plus de largeur aux cartes --- */
    .pf-culture-grid {
        /* On réduit les marges extérieures (6vw) pour donner de la place à la carte */
        padding: 20px 6vw 30px 6vw !important; 
        gap: 10px !important;
    }

    /* --- 2. CARTES : Plus larges, marges internes réduites --- */
    .pf-culture-card {
        flex: 0 0 88vw !important; /* La carte prend presque tout l'écran */
        min-height: 380px !important; /* Hauteur légèrement réduite */
        padding: 20px 15px !important; /* On récupère de l'espace vital à l'intérieur */
    }

    /* --- 3. MUSIQUE : Miniaturisation des éléments --- */
    .vinyl-wrapper {
        width: 110px !important; /* Vinyle plus petit */
        height: 110px !important;
        margin: 0 auto 15px auto !important;
    }
    .track-meta h3 {
        font-size: 16px !important;
    }
    .btn-play-soft svg {
        width: 42px !important; /* Bouton play plus petit */
        height: 42px !important;
    }
    .btn-spotify-pill {
        padding: 8px 16px !important;
        font-size: 10px !important;
        height: 38px !important; /* Bouton moins haut */
    }

    /* --- 4. CINÉMA : Ajustement de la vidéo --- */
    .film-media {
        height: 130px !important; /* Vidéo moins haute */
        margin-bottom: 10px !important;
    }
    .film-summary {
        font-size: 0.8em !important;
        -webkit-line-clamp: 2 !important; /* On coupe le résumé à 2 lignes au lieu de 3 */
        margin-bottom: 10px !important;
    }

    /* --- 5. VOCABULAIRE : Textes plus compacts --- */
    .word-gt, .word-fr { 
        font-size: 22px !important; /* Mots traduits un peu plus petits */
    }
    .vocab-context { 
        margin-top: 15px !important; 
        padding-top: 15px !important; 
        font-size: 12px !important; 
    }
    .vocab-gap {
        height: 15px !important; /* Moins d'espace entre le français et le guatémaltèque */
    }
}
    
/* ==========================================================================
   📱 RESPONSIVE MOBILE (< 768px) - ARCHIVE CULTURE (AJUSTEMENTS FINS)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* --- HEADER & VOLVER --- */
    .pf-culture-archive-page .pf-archive-header { text-align: center !important; padding-top: 75px !important; }
    .pf-culture-main-title { font-size: 28px !important; margin: 15px 0 10px 0 !important; line-height: 1.1 !important; }
    .pf-culture-archive-page .pf-archive-nav-row { flex-direction: column !important; align-items: center !important; margin-bottom: 0 !important; }
    .pf-culture-archive-page .pf-nav-col-left, .pf-culture-archive-page .pf-nav-col-right { display: block !important; width: 100% !important; height: 0 !important; overflow: visible !important; }
    .pf-culture-archive-page .pf-nav-col-center { width: 100% !important; }

    /* 🌟 VOLVER PLUS LOIN DES BORDS (20px au lieu de 15px) */
    .pf-culture-volver {
        position: fixed !important; top: calc(env(safe-area-inset-top, 30px) + 35px) !important; left: 35px !important; z-index: 1000;
        background: rgba(250, 248, 245, 0.85) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
        padding: 8px 16px !important; border-radius: 50px !important; color: var(--color-primary) !important; font-size: 11px !important; font-weight: 700 !important; text-transform: uppercase !important; border: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    }
    .pf-culture-volver svg { width: 14px !important; height: 14px !important; stroke: var(--color-primary) !important; }
    /* 1. On prépare l'animation pour qu'elle soit fluide (effet ressort rapide) */
.pf-culture-volver {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease, background-color 0.15s ease !important;
    /* (Ajoute juste cette ligne dans ta classe .pf-culture-volver existante si elle n'y est pas) */
}

/* 2. L'effet visuel précis au moment du clic / tap */
.pf-culture-volver:active {
    transform: scale(0.88) !important; /* Le bouton s'enfonce de 12% */
    opacity: 0.65 !important; /* Il devient légèrement transparent */
    background-color: rgba(230, 228, 225, 0.95) !important; /* Le fond "verre" devient très légèrement plus sombre */
}

    /* --- BARRE DE FILTRES GLISSANTE --- */
    .pf-pill-nav-outer { width: 100vw !important; margin-left: calc(-50vw + 50%) !important; overflow: visible !important; margin-bottom: 20px !important; }
    .pf-culture-pill-container { display: flex !important; overflow-x: auto !important; scroll-snap-type: x mandatory !important; scrollbar-width: none !important; padding: 5px 0 15px 0 !important; }
    .pf-culture-pill-container::-webkit-scrollbar { display: none; }
    .pf-culture-pill-container::before, .pf-culture-pill-container::after { content: ''; display: block !important; flex-shrink: 0 !important; min-width: calc(50vw - 65px) !important; }
    .pf-culture-pill-btn { flex-shrink: 0 !important; scroll-snap-align: center !important; margin: 0 6px !important; padding: 10px 20px !important; border-radius: 50px !important; font-size: 12px !important; background: rgba(0,0,0,0.06) !important; border: none !important; color: var(--color-primary) !important; font-weight: 800 !important; text-transform: uppercase !important; }
    .pf-culture-pill-btn.active { background: var(--color-primary) !important; color: var(--color-accent-yellow) !important; }

    /* =========================================================
       🔥 CARTES (PROPORTIONS EXACTES)
       ========================================================= */
    .pf-culture-strip {
        display: flex !important; flex-direction: row !important; align-items: center !important;
        height: auto !important; min-height: 115px !important; 
        padding: 12px !important; gap: 12px !important; margin-bottom: 12px !important;
        background-color: var(--color-primary) !important; border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; box-sizing: border-box !important;
        position: relative !important; overflow: hidden !important;
    }

    /* --- IMAGE GAUCHE (Taille fixe 90x90px) --- */
    .culture-strip-left {
        width: 90px !important; height: 90px !important; flex-shrink: 0 !important;
        position: relative !important; border-radius: 12px !important;
        display: flex !important; align-items: center !important; justify-content: center !important;
    }
    
    .vinyl-wrapper-archive { width: 85px !important; height: 85px !important; border-radius: 50% !important; background: #000 !important; position: relative !important; margin: 0 !important;}
    .vinyl-disc-archive { position: absolute !important; inset: 0 !important; border-radius: 50% !important; overflow: hidden !important; }
    .vinyl-disc-archive img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .center-hole-archive { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%,-50%) !important; width: 16px !important; height: 16px !important; background: var(--color-primary) !important; border-radius: 50% !important; z-index: 10 !important; }

    .video-container { background: #000 !important; }
    .youtube-thumbnail-trigger, .film-poster { width: 100% !important; height: 100% !important; display: block !important; position: absolute !important; inset: 0 !important;}
    .youtube-thumbnail-trigger img, .film-poster img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .play-overlay { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%,-50%) !important; width: 32px !important; height: 32px !important; background: rgba(0,0,0,0.6) !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; }
    .play-overlay svg { width: 14px !important; height: 14px !important; color: white !important; margin-left: 2px !important; }

    /* --- BOUTON PLAY (Sur le Vinyle) --- */
    .culture-strip-music .btn-play-archive {
        position: absolute !important; left: 57px !important; top: 50% !important; transform: translate(-50%, -50%) !important;
        z-index: 20 !important; margin: 0 !important; width: 44px !important; height: 44px !important; background: rgba(0,0,0,0.4) !important;
        border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; border: none !important;
    }
    .culture-strip-music .btn-play-archive svg { width: 24px !important; height: 24px !important; color: var(--color-accent-yellow) !important; }

    /* --- TEXTE DROITE --- */
    .culture-strip-center {
        flex: 1 1 auto !important; min-width: 0 !important; 
        display: flex !important; flex-direction: column !important; justify-content: center !important;
        padding: 0 !important; gap: 4px !important;
    }

    /* 🌟 BADGE ET GENRE SUR LA MÊME LIGNE */
    .culture-badge-wrapper { 
        display: flex !important; 
        align-items: center !important; 
        gap: 8px !important; 
        flex-wrap: wrap !important; 
        margin: 0 0 2px 0 !important; 
    }
    .culture-badge { 
        display: inline-block !important; font-size: 9px !important; padding: 3px 8px !important; border-radius: 6px !important; font-weight: 800 !important; text-transform: uppercase !important; margin: 0 !important; 
    }
    .culture-badge-wrapper .culture-strip-subtitle {
        display: inline-block !important; width: auto !important; margin: 0 !important; font-size: 11px !important;
    }

    .culture-strip-title {
        font-size: 15px !important; font-weight: 800 !important; color: white !important; margin: 0 !important; line-height: 1.2 !important;
        display: block !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; width: 100% !important;
    }
    .culture-strip-subtitle {
        font-size: 12px !important; color: rgba(255,255,255,0.7) !important; margin: 0 !important; line-height: 1.2 !important;
        display: block !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; width: 100% !important;
    }
    
    .film-summary-limit { 
        display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; font-size: 11px !important; color: rgba(255,255,255,0.6) !important; margin: 2px 0 0 0 !important; line-height: 1.3 !important; white-space: normal !important;
    }
    .culture-strip-context { display: none !important; }

    /* --- BOUTONS D'ACTION --- */
    .culture-interactive-actions { display: flex !important; align-items: center !important; gap: 8px !important; margin-top: 4px !important; width: 100% !important; }
    .culture-strip-music .culture-interactive-actions { margin-top: 8px !important; }
    .culture-strip-music .culture-link-btn { width: 100% !important; justify-content: center !important; flex: none !important; }
    
    .culture-link-btn {
        flex: 1 !important; padding: 8px 10px !important; font-size: 10px !important; border-radius: 50px !important; text-align: center !important; text-transform: uppercase !important; font-weight: 800 !important; text-decoration: none !important; border: 1.5px solid currentColor !important; display: flex !important; align-items: center !important; justify-content: center !important;
        white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
    }

    /* 🌟 CARTE VOCABULAIRE (TOUT SUR LA MÊME LIGNE) --- */
    .culture-strip-vocab { flex-direction: column !important; align-items: stretch !important; padding: 16px 20px !important; }
    .culture-strip-vocab .culture-strip-left { display: none !important; } 
    .culture-strip-vocab .vocab-center { width: 100% !important; gap: 8px !important; display: flex !important; flex-direction: column !important;}
    
    .vocab-translation-row { 
        display: flex !important; 
        flex-direction: row !important; /* Force l'affichage horizontal */
        flex-wrap: wrap !important;
        align-items: flex-start !important; 
        gap: 10px !important; 
        margin: 0 !important; 
    }
    
    .vocab-translation-row span:not(.vocab-gt-word):not(.vocab-fr-word):not(.vocab-fr-pron) { font-size: 16px !important; }
    
    .vocab-arrow { 
        display: block !important; 
        color: rgba(255,255,255,0.4) !important; 
        font-size: 14px !important; 
        margin-top: 2px !important; /* Aligne la flèche avec les mots */
    }
    
    .vocab-gt-word, .vocab-fr-word { 
        font-size: 15px !important; font-weight: 800 !important; line-height: 1.2 !important; white-space: normal !important; display: inline-block !important; 
    }
    .vocab-gt-word { color: var(--color-accent-yellow) !important; }
    .vocab-fr-word { color: var(--color-terracotta) !important; }
    
    /* Le bloc FR centre parfaitement la prononciation sous le drapeau et le mot */
    .vocab-fr-col { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; /* 🌟 C'est la magie du centrage */
        gap: 2px !important; 
    }
    .vocab-fr-pron { 
        font-size: 11px !important; 
        color: rgba(255,255,255,0.5) !important; 
        font-style: italic !important; 
        margin-left: 0 !important; 
        text-align: center !important; /* 🌟 Sécurité si la prononciation est longue */
    }
}

/* ==========================================================================
   📱 MICRO-ÉCRANS (< 380px - ex: iPhone SE) - RÉGLAGES ORFÈVRES
   ========================================================================== */
@media (max-width: 380px) {
    
    /* --- HEADER & VOLVER --- */
    .pf-culture-archive-page .pf-archive-header { padding-top: 60px !important; }
    .pf-culture-main-title { font-size: 24px !important; margin-top: 10px !important; }
    .pf-culture-volver { 
        top: calc(env(safe-area-inset-top, 20px) + 20px) !important; 
        left: 20px !important; 
        padding: 6px 12px !important; 
        font-size: 10px !important; 
    }

    /* --- CARTES (Respiration et Angles doux) --- */
    .pf-culture-strip { 
        padding: 12px !important; /* Un peu plus d'air qu'avant */
        gap: 10px !important; 
        min-height: 110px !important; 
        border-radius: 18px !important; /* Angles Premium */
    }
    
    /* Image : Légèrement plus petite, mais pas écrasée */
    .culture-strip-left { width: 82px !important; height: 82px !important; border-radius: 10px !important; }
    .vinyl-wrapper-archive { width: 76px !important; height: 76px !important; }
    
    /* Play Bouton (Mathématique : 12px padding + 41px demi-image = 53px) */
    .culture-strip-music .btn-play-archive { 
        left: 53px !important; 
        width: 36px !important; 
        height: 36px !important; 
    }
    .culture-strip-music .btn-play-archive svg { width: 20px !important; height: 20px !important; }

    /* --- TEXTES & BADGES --- */
    .culture-badge { font-size: 8px !important; padding: 2px 6px !important; margin-bottom: 2px !important; }
    .culture-badge-wrapper .culture-strip-subtitle { font-size: 10px !important; }
    
    .culture-strip-title { font-size: 14px !important; margin-bottom: 1px !important; }
    .culture-strip-subtitle { font-size: 11px !important; }
    
    /* Bouton d'action (Cible tactile optimisée) */
    .culture-interactive-actions { gap: 8px !important; margin-top: 4px !important; }
    .culture-link-btn { padding: 7px 12px !important; font-size: 9px !important; }
    
    /* --- VOCABULAIRE --- */
    .culture-strip-vocab { padding: 15px !important; }
    .vocab-translation-row { gap: 6px !important; }
    
    /* On réduit légèrement les drapeaux pour l'harmonie sur une ligne */
    .vocab-translation-row span:not(.vocab-gt-word):not(.vocab-fr-word):not(.vocab-fr-pron) { font-size: 14px !important; } 
    
    .vocab-gt-word, .vocab-fr-word { font-size: 14px !important; }
    .vocab-arrow { font-size: 12px !important; margin-top: 1px !important; }
    .vocab-fr-pron { font-size: 10px !important; }
}
