/**
 * Christmas recitals 2026: home banner and share sheet (temporary, see includes/recitals_noel_2026.php)
 * Reads tokens.css only: nuit, or, cire, cinabre for the Book buttons.
 */

.cn-noel {
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, var(--c-surface), var(--c-bg));
    border-bottom: 1px solid var(--c-line);
}

.cn-noel__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "label share" "dates dates";
    align-items: center;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 8px var(--gutter) 10px;
    gap: 6px 12px;
}

.cn-noel__label {
    grid-area: label;
    margin: 0;
    font-family: var(--font-titre);
    font-size: var(--fs-xs);
    letter-spacing: var(--titre-tracking);
    text-transform: uppercase;
    color: var(--c-accent-text);
}

.cn-noel__dates {
    grid-area: dates;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cn-noel__date {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 8px 8px 10px;
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-s);
    background: rgba(13, 20, 40, 0.5);
}

.cn-noel__date time { display: grid; gap: 0; min-width: 0; }

.cn-noel__jour {
    font-family: var(--font-titre);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--c-text);
}

.cn-noel__ville {
    font-style: italic;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--c-text-2);
}

.cn-noel__reserver.fl-btn {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 12px;
}

.cn-noel__partager {
    grid-area: share;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid var(--c-accent);
    background: none;
    color: var(--c-accent-text);
    font-family: var(--font-titre);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Phone: keep the name and "Listen" on the first screen under the banner
   (~ rather than +: the share dialog sits between the banner and the opening) */
.cn-noel ~ .cn-ouverture .cn-ouverture__arche { height: 44svh; min-height: 260px; }

/* Wide screens: one line — label, the two dates, share */
@media (min-width: 900px) {
    .cn-noel__inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "label dates share";
        gap: 24px;
        padding-block: 10px;
    }
    .cn-noel__dates { grid-template-columns: auto auto; justify-content: center; gap: 16px; }
    .cn-noel__date { display: flex; align-items: center; gap: 18px; padding: 6px 8px 6px 16px; }
    .cn-noel__jour { font-size: var(--fs-sm); letter-spacing: 0.06em; }
    .cn-noel__reserver.fl-btn { min-height: 40px; padding: 8px 14px; }
    .cn-noel__date time { grid-auto-flow: column; gap: 12px; align-items: baseline; }
    .cn-noel ~ .cn-ouverture .cn-ouverture__arche { height: 62svh; }
}

/* Arabic: names stay in Latin letters, the layout mirrors by itself (dir=rtl on <html>) */
[dir="rtl"] .cn-noel__label,
[dir="rtl"] .cn-noel__partager { letter-spacing: 0; font-family: var(--font-arabe); font-size: var(--fs-sm); }

/* Share sheet */
.cn-noel-sheet {
    width: min(480px, calc(100% - 2 * var(--gutter)));
    padding: 22px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-s);
    background: var(--c-surface);
    color: var(--c-text);
}
.cn-noel-sheet::backdrop { background: rgba(8, 13, 28, 0.78); }
.cn-noel-sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cn-noel-sheet h2 { margin: 0; font-size: var(--fs-lg); letter-spacing: 0.08em; }
.cn-noel-sheet__intro { margin: 8px 0 16px; color: var(--c-text-2); font-size: var(--fs-sm); }
.cn-noel-sheet__ville { padding-top: 14px; border-top: 1px solid var(--c-line-soft); margin-top: 14px; }
.cn-noel-sheet__ville h3 { margin: 0 0 10px; font-size: var(--fs-md); letter-spacing: 0.08em; }
.cn-noel-sheet__ville h3 span { display: block; font-family: var(--font-texte); font-style: italic; letter-spacing: 0; color: var(--c-text-2); font-size: var(--fs-sm); text-transform: none; }
.cn-noel-sheet__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cn-noel-sheet__actions .fl-btn { min-height: 40px; padding: 8px 16px; }
