/* ============================================================================
   STYLES PAGE HORAIRES DE PRIÈRES - MOSQUÉE MIRAIL TOULOUSE
   Fichier : horaires-complete.css
   Version : 2.1.0 - Avec jours blancs
   
   Utilisé par les shortcodes :
   - [horaires_header] → Section en-tête
   - [horaires_tableau] → Section tableau mensuel
   ============================================================================ */

/* ============================================
   CACHER LA TOP-BAR SUR LA PAGE HORAIRES
   ============================================ */
body.page-id-4337 .mmt-topbar {
    display: none !important;
}


/* ============================================================================
   SECTION 1 : EN-TÊTE HORAIRES
   ============================================================================ */

/* Container principal */
.mmt-horaires-header {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0px;
}

/* ============================================
   TITRE H1
   ============================================ */
.mmt-horaires-title {
    color: #B01D58;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0; /* MODIF : Réduit de 30px à 15px pour gagner de la place */
    text-align: left;
}

/* ============================================
   LOCALISATION ET DATES
   ============================================ */
.mmt-horaires-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Localisation */
.mmt-horaires-location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 20px; /* Texte 20px */
    font-weight: 600;
    text-transform: uppercase; /* MAJUSCULES */
}

.mmt-horaires-location svg {
    color: #B01D58;
    width: 24px; /* Icône plus grande */
    height: 24px;
}

/* Dates */
.mmt-horaires-dates {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px; /* Texte 20px */
    text-transform: uppercase; /* MAJUSCULES */
}

.mmt-horaires-dates svg {
    color: #B01D58;
    width: 24px; /* Icône calendrier plus grande */
    height: 24px;
}

.mmt-date-hijri {
    color: #B01D58;
    font-weight: 700;
}

.mmt-date-separator {
    color: #999;
    font-weight: 600;
}

.mmt-date-greg {
    color: #333;
    font-weight: 600;
}

/* ============================================
   BLOCS DES PRIÈRES
   ============================================ */
.mmt-prayer-blocks {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Bloc individuel */
.mmt-prayer-block {
    background: #E64C5B; /* Couleur demandée */
    border-radius: 10px !important; /* MODIF : Uniformisé à 10px */
    padding: 24px 16px;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* MODIF : Pas de hover car pas cliquable - SUPPRIMÉ */

/* Prochaine prière en VERT */
.mmt-prayer-block.next-prayer {
    background: #ACC830 !important;
    border-radius: 10px !important; /* MODIF : Ajouté pour garder 10px sur le bloc vert */
}

/* MODIF : Texte blanc dans le bloc vert */
.mmt-prayer-block.next-prayer * {
    color: #fff !important;
}

/* Animation de clignotement */
@keyframes prayer-call-blink {
    0%, 100% {
        background: #E64C5B;
        color: #fff;
    }
    50% {
        background: #fff;
        color: #E64C5B;
    }
}

.mmt-prayer-block.prayer-call {
    animation: prayer-call-blink 1s ease-in-out infinite !important;
}

/* ORDRE DES ÉLÉMENTS : NOM → ICONE → HEURE → +10 */

/* 1. NOM de la prière (en haut) */
.mmt-prayer-name {
    font-size: 24px; /* 24px comme demandé */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    order: 1;
}

/* 2. ICONE (au milieu) */
.mmt-prayer-icon {
    width: 60px; /* Icône plus grande */
    height: 60px;
    order: 2;
}

.mmt-prayer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Icône blanche */
}

/* 3. HEURE (après l'icône) */
.mmt-prayer-time {
    font-size: 35px;
    font-weight: 700;
    font-family: 'AvenirNextLTPro-Bold',Helvetica,Arial,Lucida,sans-serif;
    line-height: 1;
    order: 3;
}

/* 4. +10 (en bas) */
.mmt-prayer-offset {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
    order: 4;
}

/* ============================================
   NOTES INFORMATIVES
   ============================================ */
.mmt-horaires-notes {
    padding: 0;
}

.mmt-horaires-notes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmt-horaires-notes li {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
    font-size: 15px;
}

.mmt-horaires-notes li:last-child {
    margin-bottom: 0;
}

.mmt-horaires-notes strong {
    color: #B01D58;
    font-weight: 700;
}


/* ============================================================================
   SECTION 2 : TABLEAU MENSUEL
   ============================================================================ */

/* Container principal */
.mmt-horaires-calendar {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0px;
}

/* ============================================
   CONTRÔLES (Dropdown + Bouton PDF)
   ============================================ */
.mmt-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sélecteur de mois */
.mmt-month-selector {
    display: flex;
    align-items: center;
}

.mmt-month-dropdown {
    padding: 14px 45px 14px 25px;
    border: 2px solid #D9D9D9; /* Contour gris comme demandé */
    border-radius: 30px; /* MODIF : Uniformisé à 10px */
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #fff; /* Fond blanc */
    cursor: pointer;
    appearance: none;
    /* Chevron personnalisé en #B01D58 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23B01D58' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    transition: all 0.3s ease;
}

.mmt-month-dropdown:hover {
    background-color: #f8f8f8;
    border-color: #B01D58;
}

.mmt-month-dropdown:focus {
    outline: none;
    border-color: #B01D58;
    box-shadow: 0 0 0 3px rgba(176, 29, 88, 0.1);
}

/* Bouton téléchargement PDF */
.mmt-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: #E64C5B; /* Couleur demandée */
    color: #fff;
    border-radius: 30px; /* MODIF : Uniformisé à 10px */
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mmt-pdf-download:hover {
    background: #B01D58; /* Hover couleur demandée */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 76, 91, 0.4);
}

.mmt-pdf-download svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   TABLEAU
   ============================================ */
.mmt-calendar-table-wrapper {
    overflow-x: auto;
    border-radius: 10px; /* MODIF : Uniformisé à 10px */
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);*/
}

.mmt-calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

/* En-tête du tableau */
.mmt-calendar-table thead {
    background: #B01D58;
}

.mmt-calendar-table th {
    padding: 18px 12px;
    font-weight: 700;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

/* Lignes du tableau */
.mmt-calendar-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.mmt-calendar-table tbody tr:hover {
    background: #f8f8f8;
}

/* Ligne du jour actuel en vert clair */
.mmt-calendar-table tbody tr.today-row {
    background: #e8f5e9 !important;
}

/* Cellules */
.mmt-calendar-table td {
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.mmt-calendar-table td:first-child,
.mmt-calendar-table td:last-child {
    font-weight: 600;
    color: #666;
}

/* ============================================
   COLONNE JOURS BLANCS (NOUVELLE)
   ============================================ */
.mmt-jour-blanc-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.mmt-jour-blanc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.mmt-jour-blanc-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.mmt-calendar-table tbody tr.today-row .mmt-jour-blanc-cell {
    background: #e8f5e9 !important;
}


/* ============================================================================
   NOTIFICATION JOURS BLANCS (NOUVELLE)
   ============================================================================ */

/* Vignette de notification */
.mmt-jours-blancs-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: #ACC830;
    color: #fff;
    padding: 20px 50px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(450px);
    transition: all 0.4s ease-out;
}

/* Animation d'entrée */
.mmt-jours-blancs-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Contenu */
.mmt-jours-blancs-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Bouton de fermeture */
.mmt-jours-blancs-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mmt-jours-blancs-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}


/* ============================================================================
   RESPONSIVE
   ============================================================================ */

/* Tablette (768px - 1024px) */
@media (max-width: 1024px) {
    .mmt-prayer-blocks {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .mmt-horaires-header,
    .mmt-horaires-calendar {
        padding: 10px;
    }
    
    .mmt-horaires-title {
        font-size: 32px;
        text-align: center;
    }
    
    /* Localisation et dates en colonne */
    .mmt-horaires-info {
        flex-direction: column;
        text-align: center;
        margin-bottom: 25px; /* MODIF : Réduit pour gagner de la place */
    }
    
    /* MODIF : Réduire taille des dates pour tenir sur une ligne */
    .mmt-horaires-location,
    .mmt-horaires-dates {
        font-size: 14px; /* Réduit de 20px à 14px */
    }
    
    .mmt-horaires-location svg,
    .mmt-horaires-dates svg {
        width: 18px; /* Réduit de 24px à 18px */
        height: 18px;
    }
    
    /* Blocs en 2 colonnes sur mobile */
    .mmt-prayer-blocks {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .mmt-prayer-block {
        padding: 18px 12px;
        border-radius: 5px; /* MODIF : Réduit à 5px sur mobile */
    }
    
    /* MODIF : Bloc vert aussi 5px sur mobile */
    .mmt-prayer-block.next-prayer {
        border-radius: 10px !important;
    }
    
    .mmt-prayer-icon {
        width: 60px;
        height: 60px;
    }
    
    .mmt-prayer-name {
        font-size: 20px;
    }
    
    .mmt-prayer-time {
        font-size: 18px;
    }
    
    /* Contrôles en colonne */
    .mmt-calendar-controls {
        flex-direction: column;
        align-items: stretch;
        margin: 10px 0;
    }
    
    /* MODIF : CACHER LE DROPDOWN DES MOIS SUR MOBILE */
    .mmt-month-selector {
        display: none;
    }
    
    .mmt-pdf-download {
        justify-content: center;
        width: 100%;
        border-radius: 40px !important;
        padding:14px 10px; 
    }
    
    /* CACHER LE TABLEAU SUR MOBILE */
    .mmt-calendar-table-wrapper {
        display: none;
    }

    .cycle-lunaire {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    
    /* NOTIFICATION JOURS BLANCS RESPONSIVE (NOUVEAU) */
    .mmt-jours-blancs-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        font-size: 14px;
        padding: 18px 45px 18px 18px;
    }
    
    .mmt-jours-blancs-content strong {
        font-size: 15px;
    }
}

/* Très petit mobile (< 480px) */
@media (max-width: 480px) {
    .mmt-horaires-title {
        font-size: 28px;
    }
    
    /* MODIF : Encore plus petit pour tenir sur une ligne */
    .mmt-horaires-location,
    .mmt-horaires-dates {
        font-size: 12px;
    }
    
    .mmt-horaires-location svg,
    .mmt-horaires-dates svg {
        width: 16px;
        height: 16px;
    }
    
    .mmt-prayer-name {
        font-size: 24px;
    }
    
    .mmt-prayer-time {
        font-size: 24px;
    }

    .cycle-lunaire {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
}