/* ============================================================
   holidays.css — Page UNIQUE "Jours fériés à Malte" (dossier special)
   Design dédié : dôme (demi-cercle) pleine largeur + contenu centré.
   Données en <table> sémantique FIDÈLE à l'original (Date / Intitulé /
   Description, <th scope="col">, <td data-label>) -> SEO préservé.
   Le style est purement CSS : aucun texte ni ligne ajouté au tableau.
   ============================================================ */

.hol {
    --hol-ink:    var(--color-dark, #1f2937);
    --hol-muted:  var(--color-text-light, #4b5563);
    --hol-faint:  var(--color-grey, #9ca3af);
    --hol-line:   var(--color-light-grey, #e5e7eb);
    --hol-blue:   var(--color-primary, #3b82f6);
    --hol-blue-d: var(--color-primary-dark, #2563eb);
    --hol-soft:   var(--color-primary-light, #eff6ff);
    --hol-bg-soft: #f6f8fc;
    --hol-past:   #f7f8fa;
    font-family: "Roboto", system-ui, sans-serif;
    color: var(--hol-ink);
}
.hol :where(h1, h2, h3, p, ul, ol) { margin: 0; }

/* ---- Dôme : demi-cercle pleine largeur contenant le titre ---- */
.hol-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(3.75rem, 8vw, 6.5rem);
    background: linear-gradient(165deg, #60a5fa 0%, #3b82f6 32%, #2563eb 66%, #0b3a4a 132%);
    /* demi-ellipse lisse : haut plat pleine largeur, côtés+bas en un seul arc */
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.hol-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 85% at 50% -12%, rgba(255,255,255,.40), transparent 58%),
        radial-gradient(90% 60% at 50% 115%, rgba(11,58,74,.45), transparent 60%);
    pointer-events: none;
}
.hol-hero__inner { position: relative; max-width: 880px; margin: 0 auto; }
.hol-title {
    font-size: clamp(1.9rem, 1.1rem + 3vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 800;
    max-width: 18ch;
    margin: 0 auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.hol-stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin: clamp(1.2rem, 3vw, 1.8rem) auto 0;
    padding: 0;
}
.hol-stat {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.5rem 1.05rem;
    font-size: 0.95rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.hol-stat b { font-size: 1.25rem; font-weight: 800; }
.hol-stat span { opacity: 0.92; }

/* ---- Contenu centré ---- */
.hol-body {
    max-width: 940px;
    margin: clamp(1.75rem, 4vw, 3rem) auto 0;
    padding: 0 1.25rem clamp(3rem, 6vw, 5rem);
}
.hol-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    color: var(--hol-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}
.hol-intro p + p { margin-top: 0.85rem; }
.hol-intro a {
    color: var(--hol-blue-d);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.hol-intro a:hover { color: var(--hol-blue); }

/* ---- Encart "prochain jour férié" (avant le tableau) ---- */
.hol-next {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    margin: 0 0 clamp(1.1rem, 2.5vw, 1.6rem);
    padding: 0.9rem 1.15rem;
    background: linear-gradient(135deg, #e9f1ff 0%, var(--hol-soft) 72%);
    border: 1px solid #c8dbff;
    border-left: 4px solid var(--hol-blue);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.45;
}
.hol-next::before { content: "📅"; font-size: 1.1rem; line-height: 1; align-self: center; }
.hol-next__label { font-weight: 700; color: var(--hol-blue-d); }
.hol-next__date  { font-weight: 700; color: var(--hol-ink); }
.hol-next__sep   { color: var(--hol-faint); }
.hol-next__name  { color: var(--hol-ink); }

/* ---- Tableau des jours fériés (structure fidèle à l'original) ---- */
.hol-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--hol-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.05));
    font-size: 0.95rem;
}
.hol-table thead th {
    text-align: left;
    background: var(--hol-soft);
    color: var(--hol-blue-d);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--hol-line);
    white-space: nowrap;
}
.hol-table tbody td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--hol-line);
    vertical-align: top;
}
.hol-table tbody tr:last-child td { border-bottom: 0; }

.hol-c-date { color: var(--hol-ink); white-space: nowrap; }
.hol-c-name { font-weight: 700; color: var(--hol-ink); }
.hol-c-desc { color: var(--hol-muted); line-height: 1.55; }
.hol-c-desc i, .hol-c-desc em { font-style: italic; color: var(--hol-ink); }

/* survol + prochain jour férié : surlignage de fond uniquement (aucun texte ajouté) */
.hol-row { transition: background 0.15s ease; }
/* jour férié déjà passé : fond légèrement grisé UNIQUEMENT (texte identique aux lignes à venir) */
.hol-row.is-past td { background: var(--hol-past); }
/* survol prime sur l'état "passé" */
.hol-row:hover td { background: var(--hol-bg-soft); }
/* prochain jour férié prime sur tout */
.hol-row.is-next td { background: var(--hol-soft); }
.hol-row.is-next td:first-child { box-shadow: inset 3px 0 0 var(--hol-blue); }

/* Box « Activités conseillées » -> deplacee dans general/activities-target.css (composant partage). */

/* ---- Mobile : le tableau se replie en cartes (data-label) ---- */
@media (max-width: 640px) {
    .hol-table { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
    .hol-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .hol-table tbody, .hol-table tr, .hol-table td { display: block; width: 100%; }

    .hol-row {
        background: #fff;
        border: 1px solid var(--hol-line);
        border-radius: 14px;
        box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.05));
        margin-bottom: 0.75rem;
        padding: 0.4rem 0.3rem;
    }
    .hol-table tbody td { border-bottom: 0; padding: 0.4rem 0.95rem; white-space: normal; }

    .hol-c-date, .hol-c-name, .hol-c-desc { position: relative; }
    .hol-c-date::before, .hol-c-name::before, .hol-c-desc::before {
        content: attr(data-label);
        display: block;
        font-size: 0.64rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--hol-faint);
        margin-bottom: 0.1rem;
    }

    .hol-row:hover td, .hol-row.is-next td, .hol-row.is-past td { background: transparent; }
    .hol-row.is-past { background: var(--hol-past); }
    .hol-row.is-next td:first-child { box-shadow: none; }
    .hol-row.is-next { border-color: var(--hol-blue); box-shadow: 0 6px 22px rgba(59, 130, 246, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
    .hol-row { transition: none; }
}
