/* =============================================================
   STYLES GÉNÉRAUX POUR HORAIRES DE PRIÈRE
   ============================================================= */
:root {
    --primary-color: #00775d;
    --primary-hover: #005f4b;
    --background-color: #fdf8f2;
    --text-color: #333;
    --tag-color: white;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body.hdp {
    font-family: "Segoe UI", sans-serif;
    background: var(--background-color) url('../assets/bg-pattern.png') repeat;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

.hdp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hdp-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* =============================================================
   GRILLE DE VILLES
   ============================================================= */
.hdp-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.hdp-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 20px 30px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeIn 0.5s ease-in-out;
}

.hdp-card:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   HEADER
   ============================================================= */
.hdp-header {
    width: 100%;
    height: 480px;
    max-height: 480px;
    overflow: hidden;
}

.hdp-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (max-width: 768px) {
    .hdp-header {
        height: 240px;
        max-height: 240px;
    }
}

/* =============================================================
   HORAIRES JOURNALIERS
   ============================================================= */
.hdp-horaires-jour {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hdp-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* =============================================================
   CALENDRIER
   ============================================================= */
.hdp-calendrier-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.hdp-calendrier table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.hdp-calendrier th,
.hdp-calendrier td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

.hdp-calendrier .even-row {
    background-color: #fafafa;
}

.hdp-calendrier .odd-row {
    background-color: #ffffff;
}

.hdp-calendrier .highlight-today {
    background-color: #d59c3a22;
    font-weight: bold;
}

@media (max-width: 768px) {
    .hdp-calendrier-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hdp-calendrier table {
        min-width: 600px;
        font-size: 0.85rem;
    }

    .hdp-calendrier th,
    .hdp-calendrier td {
        padding: 8px 6px;
    }
}

/* =============================================================
   SHORTCODE
   ============================================================= */
.hdp-shortcode .hdp-horaires-jour {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.hdp-shortcode .hdp-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.hdp-shortcode.compact .hdp-circle {
    width: 70px;
    height: 70px;
    font-size: 0.75rem;
    padding: 5px;
}

.hdp-shortcode.compact .hdp-horaires-jour {
    gap: 10px;
}

.hdp-shortcode h3 a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* =============================================================
   BREADCRUMBS
   ============================================================= */
.hdp-breadcrumb {
    text-align: center;
    margin: 25px 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.hdp-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.hdp-breadcrumb .separator {
    margin: 0 8px;
    color: #888;
    font-weight: bold;
}

@media (max-width: 600px) {
    .hdp-breadcrumb a:not(:last-of-type),
    .hdp-breadcrumb .separator:not(:last-of-type) {
        display: none;
    }
    .hdp-breadcrumb {
        font-size: 0.9rem;
        text-align: center;
        white-space: nowrap;
        overflow-x: auto;
        padding: 0 10px;
    }
}

/* =============================================================
   TAG CLOUD
   ============================================================= */
.hdp-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 20px;
}

.hdp-tag {
    background-color: var(--primary-color);
    color: var(--tag-color);
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.hdp-tag:hover {
    background-color: var(--primary-hover);
}

/* =============================================================
   DARK MODE (future proof)
   ============================================================= */
@media (prefers-color-scheme: dark) {
    body.hdp {
        background-color: #121212;
        color: #e0e0e0;
    }

    .hdp-card {
        background-color: #1e1e1e;
        color: #9be2cd;
        box-shadow: none;
    }

    .hdp-card:hover {
        background-color: #2a2a2a;
        color: white;
    }

    .hdp-calendrier table {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .hdp-calendrier th,
    .hdp-calendrier td {
        border-color: #333;
    }

    .hdp-tag {
        background: #2a9d8f;
        color: white;
    }
}