/* ifs-Horaires — formats d'affichage des balises {ifshoraires …} (1.2.0).
   Styles légers : le texte hérite de la page ; couleurs du site si le template les définit (--accent, --muted…). */

.ifs-h { color: inherit; font: inherit; line-height: 1.55; }
.ifs-h-liste { display: grid; grid-template-columns: auto 1fr; gap: .25em 1.1em; margin: 0; }
.ifs-h-ligne { display: contents; }
.ifs-h-liste dt { font-weight: 600; white-space: nowrap; }
.ifs-h-liste dd { margin: 0; }
.ifs-h-ligne.is-ferme dd, .ifs-h-col.is-ferme .ifs-h-heures, .ifs-h-seg.is-ferme { color: var(--muted, #6b7280); }
.ifs-h-ligne.is-aujourdhui dt, .ifs-h-ligne.is-aujourdhui dd { color: var(--accent, #1d6fa5); font-weight: 700; }

.ifs-h-colonnes { display: flex; flex-wrap: wrap; gap: .75em 2em; }
.ifs-h-col { display: flex; flex-direction: column; min-width: 8em; }
.ifs-h-jours { font-weight: 700; }

.ifs-h--ligne .ifs-h-seg { white-space: nowrap; }
.ifs-h--ligne .ifs-h-sep { color: var(--muted, #6b7280); }

/* Remarque du jour (1.4.7) : « sur rendez-vous » à la suite des heures. */
.ifs-h-note { color: var(--muted, #6b7280); font-size: .9em; font-style: normal; font-weight: 400; }
.ifs-h-liste .ifs-h-note::before, .ifs-h--aujourdhui .ifs-h-note::before { content: "· "; }
.ifs-h--ligne .ifs-h-note::before { content: "("; }
.ifs-h--ligne .ifs-h-note::after { content: ")"; }
.ifs-h-col .ifs-h-note { display: block; }

.ifs-h-statut { display: inline-block; padding: .1em .65em; border-radius: 999px; font-size: .85em; font-weight: 700; letter-spacing: .02em; }
.ifs-h-statut.is-ouvert { color: #146c43; background: rgba(25, 135, 84, .12); }
.ifs-h-statut.is-ferme { color: #9a3412; background: rgba(234, 88, 12, .12); }
div.ifs-h > .ifs-h-statut { margin-bottom: .5em; }

.ifs-h--fermetures, .ifs-h-annonces { list-style: none; margin: .75em 0 0; padding: .6em .85em; border-radius: var(--radius-sm, 10px); background: rgba(217, 130, 43, .08); border: 1px solid rgba(217, 130, 43, .25); }
.ifs-h--fermetures li, .ifs-h-annonces li { display: flex; flex-direction: column; gap: 1px; }
.ifs-h--fermetures li + li, .ifs-h-annonces li + li { margin-top: .5em; }
.ifs-h--fermetures strong, .ifs-h-annonces strong { color: #92501a; }
.ifs-h--fermetures small, .ifs-h-annonces small { opacity: .85; }

/* Espacement sous les formats en bloc (le thème garde la main sur les titres) */
div.ifs-h { margin: 0 0 1em; }

/* Service de garde (1.4.0) : bandeau de la garde en cours, liste des prochaines gardes. */
.ifs-h--garde { display: flex; align-items: center; flex-wrap: wrap; gap: .75em 1.1em; padding: .9em 1.1em; border-radius: var(--radius-sm, 12px); background: rgba(29, 111, 165, .07); border: 1px solid rgba(29, 111, 165, .25); }
.ifs-h-garde-icone { display: inline-flex; align-items: center; justify-content: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--accent, #1d6fa5); color: #fff; flex: none; }
.ifs-h-garde-texte { display: flex; flex-direction: column; gap: .1em; flex: 1 1 14em; min-width: 0; }
.ifs-h-garde-sur { font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, #1d6fa5); }
.ifs-h-garde-titre { font-size: 1.05em; }
.ifs-h-garde-message { color: var(--muted, #6b7280); font-size: .92em; }
.ifs-h-garde-tel { display: inline-flex; align-items: center; padding: .55em 1.1em; border-radius: 999px; background: var(--accent, #1d6fa5); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ifs-h-garde-tel:hover, .ifs-h-garde-tel:focus-visible { color: #fff; filter: brightness(1.08); }
.ifs-h--gardes { list-style: none; margin: 0; padding: 0; }
.ifs-h--gardes li { padding: .5em 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.ifs-h--gardes li:last-child { border-bottom: 0; }
.ifs-h--gardes a { white-space: nowrap; }
