/**
 * Prayer Times - Theme Kaaba
 * Styles pour les pages de prière moustaqim.com
 */

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --pt-gold: #d4af37;
    --pt-gold-light: #e8c968;
    --pt-black: #1a1a1a;
    --pt-black-light: #2d2d2d;
    --pt-cream: #faf9f6;
    --pt-white: #ffffff;
}

/* ========================================
   COMPTEUR PROCHAINE PRIERE
   ======================================== */
.next-prayer-widget {
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px;
    text-align: center;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.next-prayer-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pt-gold) 0%, transparent 100%);
}

.next-prayer-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 8px;
}

.next-prayer-name {
    color: var(--pt-gold);
    font-size: 24px;
    font-weight: 700;
    font-family: 'Amiri', Georgia, serif;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.next-prayer-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    color: var(--pt-white);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 4px;
}

.countdown-separator {
    color: var(--pt-gold);
    font-size: 28px;
    font-weight: 300;
    align-self: flex-start;
    margin-top: 4px;
}

/* ========================================
   TABLEAU HORAIRES DU JOUR
   ======================================== */
.prayer-table-today {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.prayer-table-today thead tr {
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%);
}

.prayer-table-today thead th {
    color: var(--pt-gold);
    font-size: 12px;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border: none;
}

.prayer-table-today thead .prayer-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.prayer-table-today thead .prayer-name-ar {
    font-family: 'Amiri', serif;
    font-size: 14px;
    display: block;
}

.prayer-table-today tbody td {
    background: var(--pt-white);
    padding: 14px 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--pt-black);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.prayer-table-today tbody td.active {
    background: linear-gradient(135deg, var(--pt-gold) 0%, var(--pt-gold-light) 100%);
    color: var(--pt-black);
    font-weight: 700;
    position: relative;
}

.prayer-table-today tbody td.active::after {
    content: '< Prochaine';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 400;
    opacity: 0.7;
}

/* ========================================
   TABLEAUX HORAIRES (SEMAINE/MOIS)
   ======================================== */
.prayer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 13px;
}

.prayer-table thead tr {
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%);
}

.prayer-table thead th {
    color: var(--pt-gold);
    font-size: 11px;
    font-weight: 600;
    padding: 10px 6px;
    text-align: center;
    border: none;
}

.prayer-table thead .arabic {
    font-family: 'Amiri', serif;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.prayer-table tbody tr {
    background: var(--pt-white);
    transition: background-color 0.2s;
}

.prayer-table tbody tr:nth-child(even) {
    background: var(--pt-cream);
}

.prayer-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.08);
}

.prayer-table tbody tr.today {
    background: rgba(212, 175, 55, 0.15);
    font-weight: 600;
}

.prayer-table tbody tr.today td:first-child {
    position: relative;
}

.prayer-table tbody tr.today td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pt-gold);
}

.prayer-table tbody tr.friday {
    background: #fffef0;
}

.prayer-table tbody tr.friday td:first-child {
    color: var(--pt-gold);
    font-weight: 600;
}

.prayer-table tbody td {
    padding: 10px 6px;
    text-align: center;
    color: var(--pt-black);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.prayer-table .time-suffix {
    color: rgba(0, 0, 0, 0.4);
    font-size: 10px;
    margin-left: 2px;
}

/* ========================================
   FORMULAIRES DE SELECTION
   ======================================== */
.prayer-settings {
    background: linear-gradient(135deg, var(--pt-white) 0%, var(--pt-cream) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
}

.prayer-settings-title {
    color: var(--pt-black);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pt-gold);
}

.prayer-setting-group {
    margin-bottom: 16px;
}

.prayer-setting-group:last-child {
    margin-bottom: 0;
}

.prayer-setting-label {
    display: block;
    color: var(--pt-black);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.prayer-setting-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--pt-black);
    background: var(--pt-white);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.prayer-setting-select:hover {
    border-color: var(--pt-gold);
}

.prayer-setting-select:focus {
    outline: none;
    border-color: var(--pt-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.prayer-method-info {
    background: rgba(212, 175, 55, 0.1);
    padding: 10px 12px;
    margin-top: 12px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

/* ========================================
   WIDGET QIBLA
   ======================================== */
.qibla-widget {
    background: linear-gradient(135deg, var(--pt-white) 0%, var(--pt-cream) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 20px;
    margin-top: 20px;
}

.qibla-widget h3 {
    color: var(--pt-black);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid var(--pt-gold);
}

.qibla-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.qibla-compass {
    width: 60px;
    height: 60px;
    border: 2px solid var(--pt-gold);
    border-radius: 50%;
    position: relative;
    background: var(--pt-white);
}

.qibla-compass::before {
    content: '☪';
    position: absolute;
    font-size: 20px;
    color: var(--pt-gold);
}

.qibla-details p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--pt-black);
}

.qibla-details strong {
    color: var(--pt-gold);
}

.qibla-map {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 12px;
}

/* ========================================
   WIDGET TAHAJJUD
   ======================================== */
.tahajjud-widget {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 16px;
    margin-top: 15px;
    text-align: center;
}

.tahajjud-title {
    color: var(--pt-gold);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Amiri', serif;
}

.tahajjud-title-ar {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.tahajjud-time {
    color: var(--pt-white);
    font-size: 14px;
    margin: 6px 0;
}

.tahajjud-time strong {
    color: var(--pt-gold-light);
    font-size: 16px;
}

.tahajjud-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 8px;
    font-style: italic;
}

/* ========================================
   BOUTON EXPORT CALENDRIER
   ======================================== */
.export-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%);
    color: var(--pt-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin: 15px 0;
}

.export-calendar-btn:hover {
    background: var(--pt-gold);
    color: var(--pt-black);
    border-color: var(--pt-gold);
}

.export-calendar-btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   DARK MODE
   ======================================== */
[data-theme="dark"] .next-prayer-widget {
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
}

[data-theme="dark"] .prayer-table-today tbody td {
    background: #1e1e1e;
    color: #f5f5f5;
    border-color: rgba(212, 175, 55, 0.1);
}

[data-theme="dark"] .prayer-table-today tbody td.active {
    background: linear-gradient(135deg, var(--pt-gold) 0%, var(--pt-gold-light) 100%);
    color: var(--pt-black);
}

[data-theme="dark"] .prayer-table tbody tr {
    background: #1e1e1e;
}

[data-theme="dark"] .prayer-table tbody tr:nth-child(even) {
    background: #252525;
}

[data-theme="dark"] .prayer-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.15);
}

[data-theme="dark"] .prayer-table tbody tr.today {
    background: rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .prayer-table tbody tr.friday {
    background: rgba(212, 175, 55, 0.1);
}

[data-theme="dark"] .prayer-table tbody td {
    color: #f5f5f5;
    border-color: rgba(212, 175, 55, 0.08);
}

[data-theme="dark"] .prayer-table .time-suffix {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .prayer-settings {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
}

[data-theme="dark"] .prayer-settings-title {
    color: #f5f5f5;
}

[data-theme="dark"] .prayer-setting-label {
    color: #f5f5f5;
}

[data-theme="dark"] .prayer-setting-select {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .prayer-method-info {
    background: rgba(212, 175, 55, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .qibla-widget {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
}

[data-theme="dark"] .qibla-widget h3 {
    color: #f5f5f5;
}

[data-theme="dark"] .qibla-compass {
    background: #2a2a2a;
}

[data-theme="dark"] .qibla-details p {
    color: #f5f5f5;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .prayer-table {
        font-size: 11px;
    }

    .prayer-table thead th {
        padding: 8px 4px;
        font-size: 10px;
    }

    .prayer-table thead .arabic {
        font-size: 11px;
    }

    .prayer-table tbody td {
        padding: 8px 4px;
    }

    .next-prayer-countdown {
        gap: 12px;
    }

    .countdown-value {
        font-size: 24px;
    }

    .prayer-settings {
        margin: 15px;
        padding: 15px;
    }

    /* Colonne Jour encore plus petite sur mobile (contenu uniquement, pas en-tetes, pas tableau vendredi, pas daily, pas country-table) */
    .horaires:not(.vendredi-table):not(.country-table) tbody tr:not(.top-row):not(.top-vendredi) td:first-child {
        font-size: 13px !important;
        padding: 4px 2px !important;
    }
}

/* ========================================
   ANCIEN STYLE (COMPATIBILITE)
   Surcharge des anciens styles inline
   ======================================== */
#today {
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

#today td {
    background: transparent !important;
    color: var(--pt-white) !important;
    border: none !important;
}

#today td span {
    color: var(--pt-gold) !important;
}

.horaires,
.daily {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-collapse: collapse !important;
}

.horaires .top-row,
.daily .top-row {
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%) !important;
}

.horaires .top-row td,
.daily .top-row td {
    color: var(--pt-gold) !important;
    border: none !important;
}

.horaires td,
.daily td {
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
}

/* Colonne Jour - taille reduite uniquement pour le contenu (pas les en-tetes, pas le tableau vendredi, pas daily, pas country-table) */
.horaires:not(.vendredi-table):not(.country-table) tbody tr:not(.top-row):not(.top-vendredi) td:first-child {
    font-size: 14px !important;
    padding: 6px 4px !important;
    white-space: nowrap;
}

.select-today {
    background: rgba(212, 175, 55, 0.15) !important;
    border-left: 3px solid var(--pt-gold) !important;
}

.select-djoumoua {
    background: rgba(212, 175, 55, 0.08) !important;
}

.top-vendredi {
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%) !important;
    color: var(--pt-gold) !important;
}

.top-vendredi td {
    color: var(--pt-gold) !important;
}

.methode {
    background: linear-gradient(135deg, var(--pt-white) 0%, var(--pt-cream) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 0 !important;
}

[data-theme="dark"] .methode {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%) !important;
}

[data-theme="dark"] .methode label {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .methode select {
    background: #2a2a2a !important;
    color: #f5f5f5 !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

/* ========================================
   BOITE COMPTE A REBOURS RAMADAN
   ======================================== */
.next-prayer-box {
    background: linear-gradient(135deg, #1a5d1a 0%, #2e7d32 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.next-prayer-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
    opacity: 0.9;
}

.next-prayer-box .next-prayer-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.next-prayer-box .next-prayer-countdown {
    font-size: 24px;
    font-weight: 600;
    color: #ffd700;
}

[data-theme="dark"] #today {
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%) !important;
}

[data-theme="dark"] .horaires td,
[data-theme="dark"] .daily td {
    background: #1e1e1e !important;
    color: #f5f5f5 !important;
}

[data-theme="dark"] .horaires tr:nth-child(even) td,
[data-theme="dark"] .daily tr:nth-child(even) td {
    background: #252525 !important;
}

[data-theme="dark"] .select-today td {
    background: rgba(212, 175, 55, 0.2) !important;
}

[data-theme="dark"] .select-djoumoua td {
    background: rgba(212, 175, 55, 0.1) !important;
}

/* ========================================
   SECTION IMPRIMER CALENDRIER PDF
   ======================================== */
.print-calendar-section {
    background: linear-gradient(135deg, var(--pt-white) 0%, var(--pt-cream) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 20px;
    margin-top: 20px;
}

.print-calendar-title {
    color: var(--pt-black);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.print-icon {
    font-size: 20px;
}

.print-calendar-intro {
    color: rgba(0, 0, 0, 0.7);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.print-calendar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: 30px;
}

.print-calendar-controls label {
    font-size: 13px;
    font-weight: 500;
    color: var(--pt-black);
}

.print-month-select {
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: var(--pt-white);
    color: var(--pt-black);
    cursor: pointer;
    min-width: 180px;
}

.print-month-select:focus {
    outline: none;
    border-color: var(--pt-gold);
}

.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%);
    color: var(--pt-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.print-btn:hover {
    background: var(--pt-gold);
    color: var(--pt-black);
    border-color: var(--pt-gold);
}

.print-btn svg {
    fill: currentColor;
}

/* Zone imprimable cachée à l'écran */
.printable-area {
    display: none;
}

/* Dark mode print section */
[data-theme="dark"] .print-calendar-section {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
}

[data-theme="dark"] .print-calendar-title {
    color: #f5f5f5;
}

[data-theme="dark"] .print-calendar-intro {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .print-calendar-controls label {
    color: #f5f5f5;
}

[data-theme="dark"] .print-month-select {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: rgba(212, 175, 55, 0.3);
}

/* Zone impression cachee a l'ecran */
.print-area {
    display: none;
}

/* ========================================
   STYLES D'IMPRESSION (PRINT MEDIA)
   Optimise pour tenir sur UNE page A4
   ======================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        background: white !important;
    }

    /* Cacher tous les enfants directs de body sauf printArea */
    body > *:not(#printArea) {
        display: none !important;
    }

    /* Afficher printArea */
    #printArea {
        display: block !important;
        width: 100% !important;
        background: white !important;
    }

    #printArea .print-header,
    #printArea .print-header p,
    #printArea .print-header h1 {
        display: block !important;
    }

    #printArea table {
        display: table !important;
        width: 100% !important;
    }

    #printArea thead { display: table-header-group !important; }
    #printArea tbody { display: table-row-group !important; }
    #printArea tr { display: table-row !important; }
    #printArea th, #printArea td { display: table-cell !important; }

    /* En-tete avec bon espacement */
    .print-header {
        text-align: center !important;
        padding: 3mm 0 4mm 0 !important;
        border-bottom: 1px solid #d4af37 !important;
        margin-bottom: 3mm !important;
    }

    .print-header .print-site {
        font-size: 10pt !important;
        color: #000 !important;
        margin: 0 0 2mm 0 !important;
        line-height: 1.2 !important;
    }

    .print-header h1 {
        font-size: 14pt !important;
        color: #000 !important;
        margin: 0 0 3mm 0 !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    }

    .print-header .print-month {
        font-size: 11pt !important;
        color: #333 !important;
        margin: 0 !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
    }

    /* Tableau compact - DOIT tenir sur 1 page */
    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
    }

    .print-table thead tr {
        background: #1a1a1a !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-table thead th {
        background: #1a1a1a !important;
        color: #d4af37 !important;
        padding: 1.5mm 1mm !important;
        font-weight: 600 !important;
        font-size: 7pt !important;
        text-align: center !important;
        border: 0.5px solid #333 !important;
        line-height: 1 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-table tbody tr {
        page-break-inside: avoid !important;
    }

    .print-table tbody td {
        padding: 1.2mm 1mm !important;
        text-align: center !important;
        border: 0.5px solid #ccc !important;
        font-size: 7pt !important;
        line-height: 1 !important;
        background: white !important;
    }

    .print-table tbody tr:nth-child(even) td {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-table tbody tr.friday-row td {
        background: #fff3cd !important;
        font-weight: 600 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* A4 portrait - marges minimales */
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    /* ========================================
       STYLES IMPRESSION CALENDRIER RAMADAN
       ======================================== */
    .timetable {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
    }

    .timetable .head-row td {
        background: #1a5d1a !important;
        color: #fff !important;
        padding: 1.5mm 1mm !important;
        font-weight: 600 !important;
        font-size: 7pt !important;
        text-align: center !important;
        border: 0.5px solid #333 !important;
        line-height: 1.2 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .timetable tbody tr {
        page-break-inside: avoid !important;
    }

    .timetable tbody td {
        padding: 1.2mm 1mm !important;
        text-align: center !important;
        border: 0.5px solid #ccc !important;
        font-size: 7pt !important;
        line-height: 1.2 !important;
        background: white !important;
    }

    .timetable tbody tr:nth-child(even) td {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .timetable .today-row td {
        background: #d4edda !important;
        font-weight: 600 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .timetable .vendredi-row td {
        background: #fff3cd !important;
        font-weight: 600 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .timetable .ramadan-row td {
        background: #e8f5e9 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ========================================
   STYLES CALENDRIER RAMADAN (ECRAN)
   ======================================== */
table.timetable,
#timetable.timetable {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 15px 0 !important;
    font-size: 14px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: none !important;
}

table.timetable .head-row td,
#timetable .head-row td {
    background: linear-gradient(135deg, #1a5d1a 0%, #2e7d32 100%) !important;
    color: #fff !important;
    padding: 12px 8px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border: none !important;
    font-size: 11px !important;
}

table.timetable .head-row td span,
#timetable .head-row td span {
    color: #fff !important;
}

table.timetable tbody td,
#timetable tbody td {
    padding: 8px 6px !important;
    text-align: center !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    vertical-align: middle !important;
    background: #fff !important;
}

table.timetable tbody tr:nth-child(even) td,
#timetable tbody tr:nth-child(even) td {
    background: #f9f9f9 !important;
}

table.timetable tbody tr:hover td,
#timetable tbody tr:hover td {
    background: #f0f0f0 !important;
}

/* Colonne Jour - plus petite */
table.timetable tbody td:first-child,
#timetable tbody td:first-child {
    font-size: 10px !important;
    width: 70px !important;
    max-width: 70px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
}

/* Colonnes horaires */
table.timetable tbody td:not(:first-child),
#timetable tbody td:not(:first-child) {
    font-size: 13px !important;
    font-weight: 500 !important;
}

table.timetable .today-row td,
#timetable .today-row td {
    background: #c8e6c9 !important;
    font-weight: 600 !important;
}

table.timetable .vendredi-row td,
#timetable .vendredi-row td {
    background: #fff8e1 !important;
    font-weight: 500 !important;
}

.timetable .ramadan-row td {
    background: #e8f5e9;
}

/* Responsive Ramadan */
@media (max-width: 768px) {
    .timetable {
        font-size: 11px;
    }

    .timetable .head-row td {
        padding: 8px 4px;
        font-size: 10px;
    }

    .timetable tbody td {
        padding: 6px 3px;
    }
}

/* ========================================
   WIDGET METEO
   ======================================== */
.weather-widget {
    background: linear-gradient(135deg, var(--pt-cream) 0%, var(--pt-white) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Mode nuit */
.weather-widget.night {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: rgba(212, 175, 55, 0.2);
}

.weather-widget.night .weather-city,
.weather-widget.night .weather-temp,
.weather-widget.night .weather-desc {
    color: #fff;
}

.weather-widget.night .weather-details {
    color: rgba(255, 255, 255, 0.7);
}

.weather-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-icon {
    font-size: 28px;
}

.weather-city {
    font-size: 16px;
    font-weight: 600;
    color: var(--pt-black);
}

.weather-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.weather-temp {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--pt-black);
}

.weather-desc {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.weather-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    margin-left: auto;
}

.weather-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dark mode support */
[data-theme="dark"] .weather-widget {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
}

[data-theme="dark"] .weather-widget .weather-city,
[data-theme="dark"] .weather-widget .weather-temp {
    color: #f5f5f5;
}

[data-theme="dark"] .weather-widget .weather-desc,
[data-theme="dark"] .weather-widget .weather-details {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .weather-widget {
        padding: 12px 15px;
        gap: 10px;
    }

    .weather-temp {
        font-size: 26px;
    }

    .weather-details {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========================================
   WIDGETS RAMADAN
   ======================================== */
.ramadan-widgets {
    margin: 25px 0;
}

/* Compte à rebours Iftar/Suhoor - Thème or/noir */
.ramadan-countdown-widget {
    background: linear-gradient(135deg, var(--pt-black) 0%, var(--pt-black-light) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.ramadan-countdown-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pt-gold) 0%, transparent 100%);
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.countdown-icon {
    font-size: 24px;
}

.countdown-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.countdown-timer {
    font-size: 42px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: var(--pt-gold);
}

.countdown-hours, .countdown-minutes, .countdown-seconds {
    color: var(--pt-gold);
}

.countdown-sep {
    color: rgba(212, 175, 55, 0.5);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

.countdown-time-target {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Grille d'info Ramadan */
.ramadan-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Widget progression */
.ramadan-progress-widget {
    background: linear-gradient(135deg, var(--pt-cream) 0%, var(--pt-white) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-day {
    font-weight: 600;
    color: var(--pt-gold);
}

.progress-bar-container {
    background: #e0e0e0;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--pt-gold) 0%, #f0c040 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-percent {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.progress-countdown {
    text-align: center;
    padding: 10px 0;
}

.days-count {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--pt-gold);
}

.days-label {
    font-size: 13px;
    color: #666;
}

/* Widget phase de lune */
.moon-phase-widget {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.moon-icon {
    font-size: 40px;
}

.moon-info {
    display: flex;
    flex-direction: column;
}

.moon-name {
    font-weight: 600;
    font-size: 15px;
}

.moon-day {
    font-size: 12px;
    opacity: 0.7;
}

/* Widget date Aïd */
.eid-date-widget {
    background: linear-gradient(135deg, #f8e8d0 0%, #fff5e6 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eid-icon {
    font-size: 36px;
}

.eid-info {
    display: flex;
    flex-direction: column;
}

.eid-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.eid-date {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Widget Duas */
.duas-widget {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.duas-widget h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.duas-container {
    display: grid;
    gap: 15px;
}

.dua-card {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
}

.dua-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--pt-gold);
    margin-bottom: 10px;
}

.dua-arabic {
    font-family: 'Traditional Arabic', 'Scheherazade', serif;
    font-size: 22px;
    text-align: right;
    direction: rtl;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}

.dua-translation {
    font-style: italic;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.dua-meaning {
    font-size: 13px;
    color: #444;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Widget partage */
.share-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }
.share-btn.email { background: #EA4335; }
.share-btn.copy { background: #666; }

/* Responsive widgets Ramadan */
@media (max-width: 768px) {
    .countdown-timer {
        font-size: 36px;
    }

    .ramadan-info-grid {
        grid-template-columns: 1fr;
    }

    .duas-container {
        grid-template-columns: 1fr;
    }

    .share-widget {
        flex-direction: column;
        align-items: flex-start;
    }

    .dua-arabic {
        font-size: 20px;
    }
}

/* ========================================
   SECTION CTA RAMADAN (maillage interne)
   ======================================== */
.ramadan-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.ramadan-cta h3 {
    color: var(--pt-gold, #d4af37);
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.ramadan-cta p {
    color: #666;
    margin: 0 0 15px 0;
}

.ramadan-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--pt-gold, #d4af37) 0%, #e8c968 100%);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ramadan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* ========================================
   BLOC INFORMATIONS VILLE
   ======================================== */
.city-info-block {
    background: linear-gradient(135deg, #faf9f6 0%, #f5f3ef 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.city-info-block h3 {
    color: var(--pt-gold, #d4af37);
    margin: 0 0 15px 0;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
}

.city-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.city-info-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border-left: 3px solid var(--pt-gold, #d4af37);
}

.city-info-item .info-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.city-info-item .info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.city-info-item .info-value a {
    color: var(--pt-gold, #d4af37);
    text-decoration: none;
}

.city-info-item .info-value a:hover {
    text-decoration: underline;
}

/* Codes postaux */
.city-postal-codes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.city-postal-codes .info-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.postal-codes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.postal-code-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--pt-gold, #d4af37) 0%, #e8c968 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--pt-gold, #d4af37);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .postal-code {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

/* Villes proches */
.nearby-cities {
    margin: 20px 0;
    padding: 0 15px;
}

.nearby-cities h3 {
    color: var(--pt-gold, #d4af37);
    margin-bottom: 12px;
    padding-left: 5px;
}

.nearby-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-list li {
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid var(--pt-gold, #d4af37);
}

.nearby-list li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.nearby-list li a:hover {
    color: var(--pt-gold, #d4af37);
}

.nearby-list li .distance {
    color: #888;
    font-size: 11px;
    margin-left: 5px;
}

/* Dark mode */
[data-theme="dark"] .city-info-block {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border-color: rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .city-info-item {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .city-info-item .info-value {
    color: #f5f5f5;
}

[data-theme="dark"] .nearby-list li {
    background: #2a2a2a;
}

[data-theme="dark"] .nearby-list li a {
    color: #f5f5f5;
}

/* Responsive */
@media (max-width: 600px) {
    .city-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nearby-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   GRILLE DES RÉGIONS (page pays)
   ======================================== */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.region-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: linear-gradient(135deg, #faf9f6 0%, #f5f3ef 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid var(--pt-gold, #d4af37);
}

.region-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    border-color: var(--pt-gold, #d4af37);
}

.region-card .region-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.region-card .region-count {
    font-size: 12px;
    color: #888;
}

.see-more-regions {
    text-align: center;
    color: #666;
    margin: 10px 0;
}

/* Lien retour pays */
.back-to-country {
    margin: 20px 0;
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--pt-gold, #d4af37) 0%, #e8c968 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Code postal petit */
.postal-code-small {
    font-size: 11px;
    color: #888;
    margin-left: 5px;
}

/* Grille de villes */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.city-grid li {
    padding: 6px 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.city-grid li a {
    color: #333;
    text-decoration: none;
}

.city-grid li a:hover {
    color: var(--pt-gold, #d4af37);
}

/* Dark mode régions */
[data-theme="dark"] .region-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border-color: rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .region-card .region-name {
    color: #f5f5f5;
}

[data-theme="dark"] .city-grid li {
    background: #2a2a2a;
}

[data-theme="dark"] .city-grid li a {
    color: #f5f5f5;
}

/* Responsive régions */
@media (max-width: 600px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .city-grid {
        grid-template-columns: 1fr;
    }
}


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

/* Daily Mobile Cards */
.daily-mobile {
    display: none;
}

.daily-mobile .prayer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--pt-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 8px;
    border-radius: 8px;
}

.daily-mobile .prayer-card.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border-color: var(--pt-gold);
}

.daily-mobile .prayer-icon {
    font-size: 20px;
    margin-right: 10px;
}

.daily-mobile .prayer-name {
    flex: 1;
    color: var(--pt-white);
    font-weight: 500;
}

.daily-mobile .prayer-time {
    color: var(--pt-gold);
    font-size: 18px;
    font-weight: 600;
}

/* Nearby Cities Grid */
.nearby-cities {
    margin-top: 20px;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.nearby-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents;
}

.nearby-grid li {
    background: var(--pt-dark);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.nearby-grid li a {
    color: var(--pt-gold);
    text-decoration: none;
    font-weight: 500;
}

.nearby-grid li a:hover {
    text-decoration: underline;
}

.nearby-grid .distance {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-left: 5px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    /* Show mobile cards, hide desktop table */
    .daily {
        display: none !important;
    }
    
    .daily-mobile {
        display: block !important;
    }
    
    /* Nearby grid - 1 column on mobile */
    .nearby-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tahajjud widget */
    .tahajjud-widget {
        padding: 12px;
    }
    
    .tahajjud-title {
        font-size: 16px;
    }
    
    .tahajjud-time {
        font-size: 13px;
    }
    
    /* Tables */
    .horaires {
        font-size: 12px;
    }
    
    .horaires td, .horaires th {
        padding: 6px 4px;
    }
    
    /* Method selector */
    .methode {
        width: 100% !important;
    }
    
    .methode select {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nearby-grid li {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .daily-mobile .prayer-time {
        font-size: 16px;
    }
    
    .horaires {
        font-size: 11px;
    }
    
    .horaires .arabic {
        display: none;
    }
}


/* ========== TABLEAUX RESPONSIVE ========== */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    /* Tableaux scrollables horizontalement */
    .horaires,
    .country-table,
    table.horaires {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .horaires td,
    .horaires th,
    .country-table td,
    .country-table th {
        white-space: nowrap;
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Réduire la taille des cellules sur petit écran */
    .horaires .em {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    /* Cacher le texte arabe sur très petit écran */
    .horaires .arabic {
        display: none;
    }
}

@media (max-width: 480px) {
    .horaires td,
    .horaires th {
        padding: 5px 6px;
        font-size: 11px;
    }
    
    .horaires .em {
        padding: 4px 5px;
        font-size: 11px;
    }
}


/* ========== FIX TABLEAU REGION MOBILE ========== */
@media (max-width: 768px) {
    /* Code postal sur nouvelle ligne */
    .postal-code-small {
        display: block;
        font-size: 10px;
        color: #666;
        margin-top: 2px;
    }
    
    /* Colonnes horaires compactes */
    .horaires td,
    .country-table td {
        padding: 6px 4px;
        font-size: 13px;
    }
    
    /* Colonne ville: texte plus grand */
    .horaires td:first-child,
    .country-table td:first-child {
        white-space: normal;
        padding: 6px 8px;
        font-size: 14px;
    }
    
    .horaires td:first-child a,
    .country-table td:first-child a {
        font-size: 14px;
        font-weight: 500;
    }
}

@media (max-width: 400px) {
    .horaires td,
    .country-table td {
        padding: 5px 3px;
        font-size: 12px;
    }
    
    .horaires td:first-child,
    .country-table td:first-child {
        font-size: 13px;
    }
    
    .horaires td:first-child a,
    .country-table td:first-child a {
        font-size: 13px;
    }
}


/* ========== LISTE DES VILLES REGION ========== */
.alphabet-section {
    margin-bottom: 20px;
}

.alphabet-section h4 {
    background: linear-gradient(135deg, #8B6914 0%, #D4AF37 100%);
    color: white;
    padding: 8px 15px;
    margin: 0 0 10px 0;
    border-radius: 5px;
    font-size: 18px;
}

.city-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.city-grid li {
    background: #f8f6f0;
    border-left: 3px solid #D4AF37;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    transition: all 0.2s ease;
}

.city-grid li:hover {
    background: #f0ebe0;
    border-left-color: #8B6914;
    transform: translateX(3px);
}

.city-grid li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.city-grid li a:hover {
    color: #8B6914;
}

.city-grid .postal-code-small {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

/* Sommaire alphabétique */
.alphabet-sommaire {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.alphabet-sommaire a {
    color: #8B6914;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 5px;
}

.alphabet-sommaire a:hover {
    background: #D4AF37;
    color: white;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .city-grid {
        grid-template-columns: 1fr;
    }
    
    .city-grid li {
        padding: 10px 12px;
    }
    
    .alphabet-section h4 {
        font-size: 16px;
        padding: 6px 12px;
    }
}
