/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #3b8ba9; 
    --primary-dark: #2c6a82;
    --secondary-color: #1e293b;
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    
    /* Gradient Mauve -> Bleu Profond -> Rose */
    --gradient-bg: linear-gradient(135deg, #4c1d95, #3b8ba9, #be185d, #4c1d95);
}

/* --- STABILISATION GLOBALE (Empêche le bougé latéral) --- */
html, body {
    overflow-x: hidden; /* CRUCIAL */
    max-width: 100%;
    margin: 0;
    padding: 0;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    padding-bottom: 90px; /* Espace pour le menu bas */
}
@media (max-width: 768px) {
    html, body {
        
        margin-top: -20px;
    }
}

/* Correction Bootstrap pour éviter les débordements */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* --- HERO SECTION --- */
.hero-futuristic {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    
    background: var(--gradient-bg);
    background-size: 300% 300%;
    animation: luxuriousGradient 15s ease infinite;
    
    border-bottom-left-radius: 60px; /* Un peu moins rond pour faire sérieux */
    border-bottom-right-radius: 60px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    
    /* Padding responsive géré plus bas */
    padding-top: 100px; 
    padding-bottom: 60px;
}

@keyframes luxuriousGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;
    margin-bottom: 20px;
}

.hero-text-giant {
    font-size: 4.5rem; /* Ajusté pour éviter les débordements */
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-text-middle {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-desc {
    font-weight: 500;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* --- BOUTONS HERO --- */
.btn-hero {
    padding: 15px 35px;
    border-radius: 20px;
    border: none !important;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 10px;
    min-width: auto;
    border-radius: 34px;
}

.btn-hero-primary {
    background: white;
    color: #4c1d95;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    border-radius: 34px;
    margin: 20px;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.btn-hero-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 20px;
}
.btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.btn-text-main { font-size: 1.1rem; font-weight: 800; text-transform: capitalize; }
.btn-text-sub { font-size: 0.75rem; font-weight: 500; opacity: 0.8; }

/* --- NAVBAR --- */
.navbar-ubondia {
    padding: 20px 0;
    transition: all 0.4s ease;
}
.navbar-ubondia.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}
.navbar-ubondia .navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: white;
}
.navbar-ubondia.scrolled .navbar-brand,
.navbar-ubondia.scrolled .nav-link {
    color: var(--secondary-color) !important;
}

/* Bouton connexion PC */
.navbar-ubondia .btn-connexion-pc {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    font-weight: 600;
}
.navbar-ubondia.scrolled .btn-connexion-pc {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
/* ========================================================================= */
/* --- BOTTOM BAR ÉTUDIANT (Design Natif App Mobile)                       --- */
/* ========================================================================= */

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Pour iOS Safari */
    
    /* Coins supérieurs arrondis pour un effet Premium */
    border-top-left-radius: 24px; 
    border-top-right-radius: 24px;
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 5px 20px 5px; /* Espace en bas pour l'indicateur iOS */
    z-index: 9999;
    
    /* Ombre douce vers le haut */
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05); 
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

/* Boutons standards */
.bottom-nav-item {
    color: #94a3b8; /* Gris clair élégant */
    text-align: center;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20%; /* 5 éléments = 20% chacun */
    position: relative;
    -webkit-tap-highlight-color: transparent; /* Enlève le carré bleu au clic sur Android */
}

/* Conteneur de l'icône pour permettre des animations internes */
.bottom-nav-item .icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-item i {
    font-size: 1.35rem;
    transition: transform 0.3s;
}

/* ÉTAT ACTIF (Quand on est sur la page) */
.bottom-nav-item.active {
    color: var(--primary-color);
}
.bottom-nav-item.active .icon-wrapper {
    background: rgba(59, 139, 169, 0.15); /* Fond bleu clair */
    color: var(--primary-color);
}
.bottom-nav-item.active i {
    transform: translateY(-2px); /* Léger rebond */
}

/* --- LE BOUTON CENTRAL FLOTTANT (Ma Classe) --- */
.bottom-nav-item.center-btn {
    position: relative;
}

.floating-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%; /* Bouton parfaitement rond */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-top: -30px; /* Le fait déborder au-dessus de la barre */
    border: 4px solid #f8fafc; /* Bordure imitant un trou dans la barre */
    box-shadow: 0 10px 20px rgba(59, 139, 169, 0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item.center-btn:active .floating-btn {
    transform: scale(0.9); /* Effet d'enfoncement au clic */
}

/* Point rouge de notification */
.notif-dot {
    width: 10px;
    height: 10px;
    position: absolute;
    top: 2px;
    right: 2px;
    border-radius: 50%;
}

/* ========================================================================= */
/* --- CARTES --- */
.container-vision {

    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.cursus-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}
.cursus-card:hover { transform: translateY(-10px); }

/* --- RESPONSIVE MOBILE (< 768px) --- */
@media (max-width: 768px) {
    
    /* Hero ajustements */
    .hero-futuristic {
        min-height: auto;
        padding-top: 90px; /* Espace pour le header */
        padding-bottom: 0px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .hero-title-wrapper {
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    .hero-text-giant { font-size: 3.2rem; }
    .hero-text-middle { font-size: 1.4rem; }
    
    .hero-desc {
        font-size: 0.95rem;
        width: 100%; /* Prend toute la largeur dispo */
        padding: 0 10px;
        margin-bottom: 2rem;
    }

    /* Boutons mobiles compacts */
    .btn-hero {
        display: block;
        width: 100%;
        max-width: 320px;
        padding: 12px 2px;
        margin: 5px;
        flex-direction: row; /* Côte à côte sur mobile pour gagner place verticale ? Non, tu voulais double ligne */
        justify-content: center;
        border-radius: 30px;
    }


    
    /* Vision Card Mobile */
    .container-vision {
        padding: 2rem;
        margin-top: 10px; /* Léger chevauchement */
        margin-bottom: 30px;
    }
}

/* Rappel CSS Hamburger (A vérifier dans ton style.css) */
.custom-hamburger {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligné à droite */
    background: none; border: none; padding: 0; gap: 5px;
}
.bar { background: white; height: 3px; border-radius: 5px; transition: 0.3s; }
.navbar-ubondia.scrolled .bar { background: var(--secondary-color); } /* Devient noir au scroll */
.bar.top { width: 30px; }
.bar.mid { width: 22px; }
.bar.bot { width: 26px; }

/* --- BACKGROUND PAGES INTERNES (Non-Accueil) --- */
/* On applique ça par défaut au body, et l'accueil l'écrasera avec son propre style si besoin,
   ou on garde ce fond léger partout pour la cohérence. */
body {
    /* Un fond très léger gris-bleuté avec un dégradé subtil en haut */
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 139, 169, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.05) 0%, transparent 20%),
        #f8fafc; /* Couleur de fond de base */
    background-attachment: fixed; /* Le fond reste fixe quand on scrolle */
}

/* Container principal pour l'inscription */
.inscription-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px); /* Glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* inputs en mode "Lecture seule" qui ressemblent à du texte */
.form-control-plaintext-custom {
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--secondary-color);
    padding-left: 0;
}

/* Bouton edit (crayon) */
.btn-edit {
    color: var(--primary-color);
    border: none;
    background: transparent;
    transition: transform 0.2s;
}
.btn-edit:hover { transform: scale(1.2); }

/* Style des questions Quiz */
.quiz-option {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s;
    cursor: pointer;
    background: white;
}
.quiz-option:hover, .quiz-input:checked + .quiz-option {
    border-color: var(--primary-color);
    background: rgba(59, 139, 169, 0.05);
    box-shadow: 0 4px 10px rgba(59, 139, 169, 0.1);
}

/* --- MODALS ULTRA MODERNES --- */

.modal-content {
    background: rgba(255, 255, 255, 0.95); /* Blanc quasi opaque */
    backdrop-filter: blur(20px); /* Flou d'arrière-plan */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px; /* Coins très arrondis */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* En-tête avec dégradé subtil */
.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 2rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(59, 139, 169, 0.15);
}

.modal-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.modal-body {
    padding: 2rem;
}

/* Champs de saisie modernes (Floating) */
.form-floating > .form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 139, 169, 0.1);
    background: white;
}

/* Sélecteurs de date personnalisés */
.date-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 10px;
    font-weight: 500;
    color: var(--secondary-color);
}

/* Boutons Modal */
.btn-modal-primary {
    background: var(--gradient-bg);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(59, 139, 169, 0.2);
}
.btn-modal-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    color: white;
}

.btn-modal-secondary {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-color);
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-modal-secondary:hover {
    background: #e2e8f0;
    color: var(--secondary-color);
}

/* Stepper Inscription */
.modal-step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.dot {
    width: 10px; height: 10px;
    background: #e2e8f0;
    border-radius: 50%;
    transition: 0.3s;
}
.dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 10px;
}

/* Ajoute ceci à la fin de style.css */

/* Force le Drawer au-dessus de tout (Bottom bar est souvent à 9999) */
.offcanvas {
    z-index: 10500 !important;
}
/* Le fond noir semi-transparent derrière le drawer */
.offcanvas-backdrop {
    z-index: 10400 !important;
}

/* Correction de la couleur du texte blanc sur fond blanc (si ça arrive encore) */
.text-white-50 { color: rgba(255,255,255,0.5) !important; }

/* --- MINI HERO (Pour les pages internes) --- */
.mini-hero_bu {
    position: relative;
    width: 100%;
    height: 120px; /* Juste assez pour couvrir le menu */
    background: var(--gradient-bg);
    background-size: 300% 300%;
    animation: luxuriousGradient 15s ease infinite;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.mini-hero {
   position: relative;
   width: 100%;
   height: 120px !important; /* Juste assez pour couvrir le menu */
   margin-bottom: 2rem;
  
}

/* Style des cartes Cursus */
.filiere-card {
    background: white;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.filiere-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 139, 169, 0.15);
}

.filiere-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.filiere-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.filiere-card:hover .filiere-img {
    transform: scale(1.1);
}

.filiere-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.filiere-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.price-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    background: #f1f5f9;
    color: var(--secondary-color);
}


/* Force les modales à s'afficher au-dessus de la Bottom-Bar (9999) et du Drawer (10500) */
.modal {
    z-index: 10600 !important;
}
.modal-backdrop {
    z-index: 10550 !important;
}

/* --- STYLE POUR L'ICÔNE AFFICHER/MASQUER MOT DE PASSE --- */
.toggle-password {
    cursor: pointer;
    z-index: 10; /* S'assure d'être cliquable au-dessus du champ flottant */
    padding: 10px; /* Zone de clic plus large pour le mobile */
}
.toggle-password i {
    transition: color 0.3s;
}
.toggle-password:hover i {
    color: var(--primary-color) !important;
}

/* --- TYPOGRAPHIE PREMIUM --- */
.section-title {
    font-weight: 900 !important;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -1px;
    color: #0f172a;
}

/* --- CARTES PREMIUM SURÉLEVÉES --- */
.card-premium {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    overflow: hidden;
    /* Empêche le texte de déborder */
    word-wrap: break-word; 
    overflow-wrap: break-word;
}
.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 139, 169, 0.12);
    border-color: rgba(59, 139, 169, 0.3);
}

/* --- INDICATEUR DE SCROLL HORIZONTAL MOBILE --- */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 15px 5px 30px 5px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }
/* Astuce UX : Laisse la carte suivante dépasser un peu pour montrer qu'on peut scroller */
.scroll-container .card-premium {
    width: 85vw; max-width: 320px; flex-shrink: 0;
}

/* Animation pour inviter au scroll */
.scroll-indicator {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; background: rgba(255,255,255,0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 10;
    color: var(--primary-color); animation: pulseScrollRight 2s infinite;
    pointer-events: none; /* Laisse le clic passer à travers */
}
@keyframes pulseScrollRight {
    0% { right: 10px; opacity: 1; }
    50% { right: 0px; opacity: 0.5; }
    100% { right: 10px; opacity: 1; }
}

/* Forcer le Quick Login à prendre toute la largeur sur mobile */
@media (max-width: 768px) {
    .quick-login-container { width: 100% !important; padding: 0 10px; }
}

/* --- SCROLL HORIZONTAL MOBILE PREMIUM --- */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 15px 30px 15px;
    /* Force le scroll "magnétique" (Snap) */
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; 
    scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }

/* Chaque carte s'aligne magnétiquement au centre/début */
.scroll-container > div.card,
.scroll-container > div.card-premium {
    scroll-snap-align: start;
}

/* 
 * ASTUCE MOBILE : Largeur de 85vw pour qu'on voie le bord de la carte suivante !
 */
@media (max-width: 768px) {
    .scroll-container > div.card,
    .scroll-container > div.card-premium {
        width: 85vw !important; 
        max-width: 320px;
        flex-shrink: 0;
    }
}

/* L'indicateur animé (la flèche ou la main qui swipe) */
.swipe-indicator {
    position: absolute;
    right: 15px;
    top: 40%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 10;
    pointer-events: none; /* Le clic passe au travers */
    animation: swipeLeft 2.5s infinite;
}

@keyframes swipeLeft {
    0% { transform: translate(0, -50%); opacity: 0; }
    20% { transform: translate(-10px, -50%); opacity: 1; }
    80% { transform: translate(-30px, -50%); opacity: 1; }
    100% { transform: translate(-40px, -50%); opacity: 0; }
}

/* On cache l'indicateur dès que l'utilisateur scroll */
.scroll-container.is-scrolled + .swipe-indicator {
    display: none;
}

/* ========================================================================= */
/* --- HEADER RESPONSIVE & FLOATING PILL (PC)                              --- */
/* ========================================================================= */

/* Mobile : Fixe, Verre poli, très épuré */
.navbar-ubondia {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    padding: 12px 0;
}

.avatar-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(59, 139, 169, 0.3);
    border: 2px solid white;
}

/* PC : Floating Pill (Barre flottante) */
@media (min-width: 992px) {
    .navbar-ubondia {
        width: 90%;
        max-width: 1200px;
        margin: 20px auto 0 auto; /* Décollé du haut */
        border-radius: 50px; /* Complètement arrondi */
        background: rgba(255, 255, 255, 0.85) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.8);
        padding: 8px 20px;
        left: 0; right: 0;
    }
    
    /* Ajustement du mini-hero pour PC à cause du Header flottant */
    .mini-hero {
        margin-top: -90px !important;
        padding-top: 90px !important;
    }
}

/* --- CARTES DASHBOARD (Ma Classe) --- */
.dash-resume-card {
    background: white;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: transform 0.2s;
    overflow: hidden;
}
.dash-resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 139, 169, 0.1);
}

/* ========================================================================= */
/* --- INTERFACE SPOTIFY (ACCUEIL) --- */
/* ========================================================================= */

/* Conteneur des grilles (Hybride Mobile/PC) */
.spotify-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 15px 25px 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.spotify-scroll::-webkit-scrollbar { display: none; }

/* Les cartes "Album" (Carrées) */
.spotify-card {
    width: 140px; /* Taille mobile par défaut */
    flex-shrink: 0;
    scroll-snap-align: start;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
}
.spotify-card:hover { transform: translateY(-3px); }

/* L'image de couverture (Toujours carrée) */
.spotify-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #282828;
    border-radius: 8px; /* Léger arrondi façon album */
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spotify-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.spotify-card:hover .spotify-cover img { transform: scale(1.05); }

/* Modification : On affiche tout le titre et on cache le sous-titre */
.spotify-title { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: #0f172a; 
    line-height: 1.4; 
    display: block; /* Supprime le line-clamp */
    white-space: normal; 
    overflow: visible; 
    text-align: center; 
    margin-bottom: 5px;
}
.spotify-subtitle { 
    display: none !important; /* On cache le sous-titre pour la clarté */
}

/* Badge Prix */
.spotify-price-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Bouton Admin "Crayon" sur la cover */
.admin-edit-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    background: white; color: #121212;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    border: none;
}
.admin-edit-btn:hover { background: var(--primary-color); color: white; transform: scale(1.1); }

/* ========================================================================= */
/* --- BARRE DE LECTURE EN COURS (NOW PLAYING) --- */
/* ========================================================================= */
.now-playing-bar {
    position: fixed;
    bottom: 70px; /* Au-dessus de la bottom-bar mobile */
    left: 10px; right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 9998;
    text-decoration: none;
    transition: transform 0.2s;
}
.now-playing-bar:active { transform: scale(0.98); }
.np-cover {
    width: 40px; height: 40px; border-radius: 6px;
    background: var(--primary-color); margin-right: 12px;
    flex-shrink: 0; overflow: hidden;
}
.np-cover img { width: 100%; height: 100%; object-fit: cover; }

.np-play-btn { width: 35px; height: 35px; color: #121212; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }


.np-info { flex: 1; min-width: 0; overflow: hidden; padding-right: 10px; }
    .np-title { font-size: 0.85rem; font-weight: 800; color: #121212; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: 100%; margin-bottom: 2px; }
    .np-subtitle { font-size: 0.7rem; font-weight: 600; color: var(--primary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: 100%; }

/* ========================================================================= */
/* --- GRILLE PC --- */
/* ========================================================================= */
@media (min-width: 768px) {
    .spotify-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 carrés par ligne */
        gap: 25px;
        overflow-x: visible;
        padding: 10px 0 25px 0;
    }
    .spotify-card { width: 100%; } /* Prend la largeur de la colonne */
    .now-playing-bar {
        bottom: 20px; left: auto; right: 20px; width: 350px; /* Devient un widget flottant à droite sur PC */
    }
}