/* ============================================================
   assalate.com — styles extraits de index.php
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #212529;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    max-width: 580px;
    width: 100%;
    padding: 2.5rem 2rem;
    overflow: hidden;
}
.icon { text-align: center; margin-bottom: 1rem; }
h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .3rem; color: #198754; text-align: center; }
.mosque-name { font-size: .95rem; color: #6c757d; text-align: center; margin-bottom: 1.25rem; }
h2 { font-size: 1rem; font-weight: 700; color: #212529; margin: 1.5rem 0 .5rem; }

/* ── Date du jour ─────────────────────────────────── */
.today-card {
    background: linear-gradient(135deg, #198754, #157347);
    color: #fff;
    border-radius: .75rem;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    text-align: center;
}
.today-miladi { font-size: 1.05rem; font-weight: 700; }
.today-hijri  { font-size: .82rem; opacity: .85; margin-top: .2rem; direction: rtl; font-family: 'Segoe UI', Tahoma, sans-serif; }

/* ── Tableau des horaires (featured snippet) ──────── */
.prieres-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}
.prieres-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    padding: .5rem .75rem;
    text-align: left;
    font-size: .82rem;
    border-bottom: 2px solid #dee2e6;
}
.prieres-table td {
    padding: .6rem .75rem;
    border-bottom: 1px solid #f0f0f0;
    color: #212529;
}
.prieres-table tr:last-child td { border-bottom: none; }
.prieres-table tr.is-next td { background: #f0fff4; font-weight: 700; }
.prieres-table tr.is-next td .priere-label { color: #198754; }
.prieres-table tr.is-next .priere-time { color: #198754; font-size: 1.05rem; }
.priere-label { font-weight: 600; }
.priere-label-ar { font-size: .78rem; color: #adb5bd; margin-left: .3rem; }
.priere-time { font-size: 1rem; font-weight: 700; text-align: right; }
.no-prieres {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 0 .5rem .5rem 0;
    padding: .75rem 1rem;
    font-size: .88rem;
    color: #856404;
    margin-bottom: 1.25rem;
}
/* Homepage : invitation à sélectionner une mosquée (avant toute sélection AJAX) */
.select-prompt {
    text-align: center;
    color: #6c757d;
    font-size: .9rem;
    padding: 1.25rem .5rem 1rem;
    margin-bottom: .5rem;
}
.select-prompt i { margin-right: .4rem; color: #198754; }
/* Lien "plus d'informations" vers assalate.latrach.net */
.mosque-link {
    text-align: center;
    margin: .6rem 0 1rem;
    font-size: .82rem;
}
.mosque-link a { color: #198754; text-decoration: none; }
.mosque-link a:hover { text-decoration: underline; }
.mosque-link i { font-size: .75em; margin-right: .25rem; opacity: .7; }
/* État de chargement des lignes */
.prieres-table tr.loading td { opacity: .35; transition: opacity .2s; }

/* ── Section titre ─────────────────────────────────────────── */
.section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #adb5bd;
    margin-bottom: .75rem;
}
.section-title i { margin-right: .3rem; }

/* ── Cards des mosquées ─────────────────────────────────────── */
.masjids-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .45rem;
    margin-bottom: .5rem;
}
.masjid-card {
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    border-radius: .6rem;
    padding: .6rem .75rem;
    text-decoration: none;
    display: block;
    transition: border-color .18s, background .18s;
    cursor: pointer;
}
.masjid-card:hover {
    background: #f0fff4;
    border-color: #b2dfce;
}
.masjid-card.active {
    background: #f0fff4;
    border-color: #198754;
}
.masjid-card-name {
    font-weight: 700;
    font-size: .85rem;
    color: #212529;
    display: block;
    line-height: 1.3;
}
.masjid-card.active .masjid-card-name { color: #198754; }
.masjid-card-loc {
    font-size: .73rem;
    color: #6c757d;
    display: block;
    margin-top: .15rem;
}

/* ── Info box ─────────────────────────────────────────────── */
.info-box {
    background: #f0fff4;
    border-left: 3px solid #198754;
    border-radius: 0 .5rem .5rem 0;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .88rem;
    color: #495057;
    line-height: 1.7;
}
.info-box strong { color: #212529; }

/* ── Features ─────────────────────────────────────── */
.features { margin-bottom: 1.5rem; }
.features li {
    list-style: none;
    padding: .35rem 0;
    font-size: .92rem;
    color: #495057;
}
.features li::before { content: "✓ "; color: #198754; font-weight: 700; }

/* ── Boutons ──────────────────────────────────────── */
.btn {
    display: block;
    background: #198754;
    color: #fff;
    text-decoration: none;
    padding: .75rem 2rem;
    border-radius: .5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: background .2s;
    margin-top: 1rem;
}
.btn:hover { background: #157347; }
.btn-outline {
    display: block;
    background: transparent;
    color: #198754;
    border: 1px solid #198754;
    text-decoration: none;
    padding: .6rem 2rem;
    border-radius: .5rem;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    transition: all .2s;
    margin-top: .75rem;
}
.btn-outline:hover { background: #198754; color: #fff; }

.sep { margin: 1.5rem 0; border: none; border-top: 1px solid #e9ecef; }
.footer { font-size: .8rem; color: #adb5bd; text-align: center; }

/* ── Cookie Consent Banner ──────────────────────────────────────── */
#cconsent-backdrop {
    position: fixed; inset: 0; z-index: 9997;
    background: rgba(0,0,0,.52); backdrop-filter: blur(3px);
    transition: opacity .4s; pointer-events: auto;
}
#cconsent-bar {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 9998;
    background: #fff; border-radius: 14px; padding: 1rem 1.25rem;
    max-width: 440px; width: calc(100% - 2.5rem);
    box-shadow: 0 8px 32px rgba(0,0,0,.16); font-size: .88rem;
    transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s;
}
.ccb--hidden { transform: translateY(calc(100% + 48px)); opacity: 0; pointer-events: none; }
#cconsent-bar .ccb__title { font-weight: 700; font-size: 1rem; margin-bottom: .35rem; color: #212529; }
#cconsent-bar .ccb__text  { color: #495057; line-height: 1.55; margin-bottom: .85rem; }
#cconsent-bar .ccb__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ccb__btn {
    border: none; cursor: pointer; padding: .5rem 1.1rem;
    border-radius: 8px; font-size: .88rem; font-weight: 600;
    transition: background .2s;
}
.ccb__btn--accept  { background: #198754; color: #fff; }
.ccb__btn--accept:hover  { background: #157347; }
.ccb__btn--settings { background: #f0f0f0; color: #333; }
.ccb__btn--settings:hover { background: #e0e0e0; }
.ccb__link { font-size: .78rem; color: #888; text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; }

/* ── Cookie Consent Modal ────────────────────────────────────────── */
#cconsent-modal {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.6); align-items: center; justify-content: center; padding: 1rem;
}
#cconsent-modal.ccm--visible { display: flex; }
.ccm__box {
    background: #fff; border-radius: 14px; max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto; padding: 1.5rem;
}
.ccm__title { font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; }
.ccm__category {
    border: 1px solid #e9ecef; border-radius: 8px;
    padding: .75rem 1rem; margin-bottom: .5rem;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}
.ccm__category-info strong { display: block; font-size: .92rem; margin-bottom: .2rem; }
.ccm__category-info small  { color: #6c757d; font-size: .8rem; line-height: 1.45; }
.ccm__toggle { flex-shrink: 0; padding-top: .1rem; }
.ccm__toggle input[type=checkbox] { width: 42px; height: 24px; cursor: pointer; accent-color: #198754; }
.ccm__toggle input[disabled] { opacity: .5; cursor: default; }
.ccm__actions { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }

/* ── YouTube consent placeholder ─────────────────────────────────── */
.consent-optout-yt {
    background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px;
    padding: 1.25rem; text-align: center; font-size: .88rem; color: #495057;
    margin: .5rem 0;
}
.consent-optout-yt a { color: #198754; cursor: pointer; text-decoration: underline; }

/* ── Sélecteur de mosquée ────────────────────────────────────────────────── */
.masjid-selector {
    margin: 1.25rem auto 1.5rem;
    max-width: 420px;
    text-align: center;
}
.masjid-selector label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: .45rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.masjid-selector select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: .65rem 2.5rem .65rem 1rem;
    border: 1.5px solid #dee2e6;
    border-radius: .65rem;
    font-size: .95rem;
    color: #212529;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23198754' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: border-color .2s, box-shadow .2s;
}
.masjid-selector select:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25,135,84,.15);
}

/* État de chargement des cards */
.prieres-cards.loading-all .priere-card { opacity: .5; pointer-events: none; }
