/* YCO Opening Hours — front-end
   Polices : on s'aligne sur les « Default Fonts » d'Elementor
   (Site Settings → Global Fonts) en utilisant directement leurs CSS
   custom properties. Si Elementor n'est pas présent, on retombe sur
   `inherit` pour reprendre la police du contexte parent.

   Couleurs : variables thème (`--bleu-fonce`, `--bleu-medium`, `--creme`,
   `--jaune`…) avec fallbacks neutres pour rester autonome. */

.yco-horaires {
    --yoh-bleu-fonce:  var(--bleu-fonce,  #003B5E);
    --yoh-bleu-medium: var(--bleu-medium, #2A6485);
    --yoh-orange:      var(--orange,      #DC6A02);

    color: var(--yoh-bleu-fonce);
    font-family: var(--e-global-typography-text-font-family, inherit);
    line-height: 1.45;
}

.yco-horaires *,
.yco-horaires *::before,
.yco-horaires *::after {
    box-sizing: border-box;
}

/* ---------- En-tête optionnel (eyebrow + titre de section) ---------- */

.yco-horaires__eyebrow {
    margin: 0 0 8px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--yoh-orange);
}

.yco-horaires__title {
    margin: 0 0 18px;
    font-family: var(--e-global-typography-primary-font-family, inherit);
    font-weight: 800;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--yoh-bleu-fonce);
}

/* ---------- Conteneur principal : grille 6 colonnes ---------- */

.yco-horaires__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    width: 100%;
}

/* ---------- Une cellule = un jour (ou un groupe de jours fusionnés) ----- */

.yco-horaires__item {
    margin: 0;
    flex: 1 1 0;
    min-width: 140px;
}

/* Nom du jour — police « secondary » d'Elementor (utilisée pour h2-h6
   par défaut) */
.yco-horaires__day {
    margin: 0;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yoh-bleu-medium);
}

/* Note avant + horaire + note après — police « text » d'Elementor */
.yco-horaires__hours {
    margin: 8px 0 0;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 15px;
    line-height: 1.4;
    color: var(--yoh-bleu-fonce);
}

.yco-horaires__item--closed .yco-horaires__hours { opacity: 0.7; }

/* ---------- Bannière « exceptions à venir » (au-dessus de la grille) ---------- */

.yco-horaires__banner {
    margin: 0 0 10px;
    padding: 12px 15px;
    border-left: 4px solid var(--yoh-orange);
    background: color-mix(in srgb, var(--yoh-orange) 8%, transparent);
    border-radius: 4px;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 14px;
    line-height: 1.5;
    color: var(--yoh-bleu-fonce);
}

.yco-horaires__banner-line {
    margin: 0;
}

.yco-horaires__banner-line + .yco-horaires__banner-line {
    margin-top: 4px;
}

.yco-horaires__banner-line strong {
    color: var(--yoh-orange);
    font-weight: 700;
}

.yco-horaires__banner-sep {
    color: var(--yoh-bleu-medium);
}

/* ---------- Bloc des alertes (bannière + exceptions, sous la grille) ---------- */

.yco-horaires__alerts {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--yoh-bleu-medium) 25%, transparent);
}

.yco-horaires__exceptions {
    margin-top: 0;
}

.yco-horaires__exceptions-title {
    margin: 0 0 12px;
    font-family: var(--e-global-typography-secondary-font-family, inherit);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yoh-bleu-medium);
}

.yco-horaires__exceptions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 15px;
    line-height: 1.5;
    color: var(--yoh-bleu-fonce);
}

.yco-horaires__exceptions-list {
    display: flex;
    align-items: center;
    gap: 20px;
}

.yco-horaires__exceptions-item {
    margin: 0;
    padding: 0;
}

.yco-horaires__exceptions-item + .yco-horaires__exceptions-item {
    margin-top: 0;
}

.yco-horaires__exceptions-period {
    font-weight: 700;
    color: var(--yoh-bleu-medium);
}

.yco-horaires__exceptions-sep {
    color: var(--yoh-bleu-medium);
    opacity: 0.7;
}

/* =========================================================================
 * Variante footer : [yco_horaires_footer]
 * Liste verticale <ul><li><strong>Jour</strong><br>note · horaire · note</li>.
 * Quand placée dans `.footer`, les règles du thème prennent le relais via
 * la cascade ; sinon les déclarations ci-dessous garantissent un rendu
 * cohérent. Les polices héritent du Kit Elementor.
 * ====================================================================== */

.yco-horaires-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 14px;
    line-height: 1.7;
    color: var(--creme, #f5efe6);
}

.yco-horaires-list__item {
    margin: 0;
    padding: 0;
}

.yco-horaires-list__item + .yco-horaires-list__item {
    margin-top: 6px;
}

.yco-horaires-list__day {
    font-family: inherit;
    font-weight: 700;
    color: var(--jaune, #FFCC78);
}

.yco-horaires-list__item--closed { opacity: 0.85; }

/* ---------- Alerte « prochaine fermeture » sous la liste du footer ------- */

.yco-horaires-list__alert {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--creme, #f5efe6) 25%, transparent);
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 14px;
    line-height: 1.7;
    color: var(--creme, #f5efe6);
}

.yco-horaires-list__alert-title {
    display: inline-block;
    margin-bottom: 2px;
    font-family: inherit;
    font-weight: 700;
    color: var(--orange, #DC6A02);
}
