/* =========================================
   TAFSIRBAMOUN - DESIGN FLUIDE & MOBILE
   ========================================= */

:root {
    --islamic-green: #198754;
    --islamic-dark: #146c43;
    --light-gray: #f8f9fa;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
}

body {
    background-color: var(--light-gray);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    /* Empêche le défilement horizontal */
    overflow-x: hidden; 
}

/* --- CARTES DU PORTAIL (index.php) --- */
.main-card {
    transition: transform 0.2s ease;
}

.main-card:active {
    transform: scale(0.95);
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* --- CARTES JUZLIST (juzlist.php) --- */
.juz-card {
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.03) !important;
    transition: all 0.2s ease;
}

.juz-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.juz-card:active {
    background-color: #e9ecef;
    transform: scale(0.96);
}

/* --- DESIGN DES BOUTONS PLAY --- */
.play-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background 0.3s;
}

/* --- LECTEUR AUDIO FIXE (footer.php) --- */
#global-player {
    z-index: 1060;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-bottom: env(safe-area-inset-bottom); /* Pour iPhone X+ */
}

#track-title {
    font-size: 0.8rem;
    color: var(--islamic-green);
    display: block;
    width: 100%;
}

/* --- PANNEAU COULISSANT (Offcanvas) --- */
.offcanvas-bottom {
    border-top-left-radius: 25px !important;
    border-top-right-radius: 25px !important;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
}

.offcanvas-header {
    padding: 1rem 1.5rem;
}

/* --- SCROLLBAR PERSONNALISÉE (Optionnel) --- */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* --- ANIMATIONS --- */
.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.custom-range::-webkit-slider-runnable-track { background: #e9ecef; height: 4px; }
.custom-range::-webkit-slider-thumb { background: #198754; margin-top: -6px; } /* Vert Bootstrap */

