/* ============================================================
   ifs-Location de salles — site. S'appuie sur les variables du template du site
   (--accent, --ink, --text, --muted, --border, --page, --radius-*) avec des replis.
   ============================================================ */

.ifs-salles, .ifs-salles-cartes, .ifs-salles-fiche, .ifs-salles-cal, .ifs-salles-resa, .ifs-salles-bouton {
	--sal-accent: var(--accent, #127a94);
	--sal-accent-dark: var(--accent-dark, #0d5f73);
	--sal-sur-accent: #fff;
	--sal-ink: var(--ink, #123c4b);
	--sal-text: var(--text, #1d3d49);
	--sal-muted: var(--muted, #4f6a75);
	--sal-border: var(--border, #dde8eb);
	--sal-page: var(--page, #f7fafb);
	--sal-pale: var(--blue-pale, #e9f6fa);
	--sal-libre: var(--green-pale, #e7f4dc);
	--sal-libre-texte: var(--green-text, #3f6512);
	--sal-occupe: #f3e1dc;
	--sal-occupe-texte: #8a3b25;
	--sal-ferme: #eef1f2;
	--sal-ferme-texte: #6a7c82;
	--sal-r-lg: var(--radius-lg, 20px);
	--sal-r-md: var(--radius-md, 14px);
	--sal-r-sm: var(--radius-sm, 10px);
	--sal-pill: var(--radius-pill, 999px);
	color: var(--sal-text);
}

.ifs-salles *, .ifs-salles *::before, .ifs-salles *::after,
.ifs-salles-cartes *, .ifs-salles-cal *, .ifs-salles-resa * { box-sizing: border-box; }

.ifs-salles { max-width: 1040px; margin: 0 auto; }
.ifs-salles h1 { color: var(--sal-ink); margin: 0 0 18px; }
.ifs-salles h2 { color: var(--sal-ink); font-size: 1.35rem; margin: 0 0 12px; }
.ifs-salles-section { margin: 32px 0; }
.ifs-salles-intro { margin-bottom: 22px; line-height: 1.6; }
.ifs-salles-vide { color: var(--sal-muted); }
.ifs-salles-pastille { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.ifs-salles-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ifs-salles-num { text-align: right; white-space: nowrap; }

/* ---------- Cartes ---------- */
.ifs-salles-cartes {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(max(240px, calc((100% - (var(--ifs-salles-colonnes, 3) - 1) * 20px) / var(--ifs-salles-colonnes, 3))), 1fr));
}
.ifs-salles-carte__lien {
	display: flex; flex-direction: column; height: 100%;
	border: 1px solid var(--sal-border); border-radius: var(--sal-r-md); overflow: hidden;
	background: #fff; color: inherit; text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ifs-salles-carte__lien:hover, .ifs-salles-carte__lien:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 60, 75, .12); }
.ifs-salles-carte__image { display: block; aspect-ratio: 16 / 10; background: var(--sal-pale); }
.ifs-salles-carte__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ifs-salles-carte__image.is-vide { background: linear-gradient(135deg, var(--ifs-salles-teinte, #8aa1a8), var(--sal-pale)); opacity: .55; }
.ifs-salles-carte__corps { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.ifs-salles-carte__titre { margin: 0; font-size: 1.15rem; color: var(--sal-ink); }
.ifs-salles-carte__resume { color: var(--sal-muted); line-height: 1.5; }
.ifs-salles-carte__infos { display: flex; flex-wrap: wrap; gap: 6px; }
.ifs-salles-carte__infos span { font-size: .85rem; padding: 3px 10px; border-radius: var(--sal-pill); background: var(--sal-page); border: 1px solid var(--sal-border); }
.ifs-salles-carte__action { margin-top: auto; font-weight: 700; color: var(--sal-accent-dark); }
.ifs-salles-carte__lien:hover .ifs-salles-carte__action { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Fiche (1.5.0) ---------- */
.ifs-salles-fiche { display: grid; gap: 26px; }
.ifs-salles-fiche__titre { margin: 0; }

/* Galerie : mosaïque (1 grande + 4 petites au plus), agrandissement dans une fenêtre */
.ifs-salles-galerie { position: relative; display: grid; gap: 8px; border-radius: var(--sal-r-lg); overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 21 / 9; }
.ifs-salles-galerie--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 7; }
.ifs-salles-galerie--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.ifs-salles-galerie--3 { grid-template-columns: 2fr 1fr; }
.ifs-salles-galerie--4 { grid-template-columns: 2fr 1fr 1fr; }
.ifs-salles-galerie__photo { position: relative; display: block; overflow: hidden; background: var(--sal-pale); min-height: 0; }
.ifs-salles-galerie__photo:first-child { grid-row: 1 / -1; }
.ifs-salles-galerie--4 .ifs-salles-galerie__photo:nth-child(2) { grid-column: 2 / -1; }
.ifs-salles-galerie__photo.is-cachee { display: none; }
.ifs-salles-galerie__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .35s ease; }
.ifs-salles-galerie__photo:hover img, .ifs-salles-galerie__photo:focus-visible img { transform: scale(1.04); filter: brightness(1.05); }
.ifs-salles-galerie__photo:focus-visible { outline: 3px solid var(--sal-accent); outline-offset: -3px; }
.ifs-salles-galerie__plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12, 32, 40, .55); color: #fff; font-weight: 700; font-size: 1.1rem; }
.ifs-salles-galerie__compte { position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: var(--sal-pill); background: rgba(255, 255, 255, .92); color: var(--sal-ink); font-size: .82rem; font-weight: 600; pointer-events: none; }

.ifs-salles-visionneuse { border: 0; padding: 0; width: min(96vw, 1200px); max-height: 94vh; background: transparent; color: #fff; overflow: visible; }
.ifs-salles-visionneuse::backdrop { background: rgba(8, 20, 26, .88); }
.ifs-salles-visionneuse__cadre { position: relative; display: grid; gap: 10px; justify-items: center; margin: 0; }
.ifs-salles-visionneuse__cadre img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: var(--sal-r-sm); display: block; }
.ifs-salles-visionneuse__legende { font-size: .95rem; text-align: center; min-height: 1.4em; }
.ifs-salles-visionneuse button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--sal-ink, #123c4b); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ifs-salles-visionneuse button:hover, .ifs-salles-visionneuse button:focus-visible { background: #fff; outline: 3px solid var(--sal-accent, #127a94); }
.ifs-salles-visionneuse__fermer { top: -8px; right: -8px; }
.ifs-salles-visionneuse__prec { left: 8px; top: calc(50% - 40px); }
.ifs-salles-visionneuse__suiv { right: 8px; top: calc(50% - 40px); }

.ifs-salles-fiche__haut { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: start; }
.ifs-salles-fiche__haut:has(> .ifs-salles-fiche__texte:only-child) { grid-template-columns: 1fr; }
.ifs-salles-fiche__resume { font-size: 1.15rem; line-height: 1.55; margin: 0 0 18px; color: var(--sal-ink); }
.ifs-salles-fiche__infos { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ifs-salles-fiche__infos li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--sal-border); border-radius: var(--sal-r-md); background: var(--sal-page); }
.ifs-salles-fiche__infos small { font-size: .78rem; color: var(--sal-muted); text-transform: none; }
.ifs-salles-fiche__infos strong { color: var(--sal-ink); font-size: 1rem; }
.ifs-salles-fiche__infos li.is-direct strong { color: var(--sal-libre-texte); }
.ifs-salles-fiche__description { line-height: 1.7; }
.ifs-salles-fiche__description > :first-child { margin-top: 0; }
.ifs-salles-fiche__sous-titre { font-size: 1.1rem; color: var(--sal-ink); margin: 22px 0 10px; }
.ifs-salles-fiche__equipements { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ifs-salles-fiche__equipements li { position: relative; padding-left: 28px; line-height: 1.45; }
.ifs-salles-fiche__equipements li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--sal-libre); color: var(--sal-libre-texte); font-size: .75rem; font-weight: 700; }

.ifs-salles-fiche__carte { position: sticky; top: 16px; padding: 20px; border: 1px solid var(--sal-border); border-radius: var(--sal-r-lg); background: #fff; box-shadow: 0 18px 40px -28px rgba(18, 60, 75, .45); }
.ifs-salles-fiche__carte .ifs-salles-fiche__sous-titre { margin-top: 0; }
.ifs-salles-fiche__tarifs { list-style: none; padding: 0; margin: 0 0 16px; }
.ifs-salles-fiche__tarifs li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sal-border); }
.ifs-salles-fiche__tarifs li:last-child { border-bottom: 0; }
.ifs-salles-fiche__tarifs small { display: block; color: var(--sal-muted); font-size: .82rem; }
.ifs-salles-fiche__tarifs strong { white-space: nowrap; color: var(--sal-ink); }
.ifs-salles-fiche__cta { display: block; text-align: center; }
.ifs-salles-fiche__note { margin: 10px 0 0; font-size: .85rem; color: var(--sal-muted); text-align: center; line-height: 1.45; }

/* ---------- Calendrier ---------- */
.ifs-salles-cal {
	--cal-carte: #fff;
	--cal-jour: var(--sal-page);
	--cal-libre: var(--sal-libre-texte);
	margin: 8px 0 20px; padding: clamp(14px, 2.5vw, 26px);
	background: var(--cal-carte); border: 1px solid var(--sal-border); border-radius: var(--sal-r-lg);
	box-shadow: 0 1px 2px rgba(18, 60, 75, .04), 0 12px 32px -18px rgba(18, 60, 75, .25);
}

/* En-tête : mois en grand, tranches libres du mois, flèches rondes */
.ifs-salles-cal__barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ifs-salles-cal__entete-mois { text-align: center; min-width: 0; }
.ifs-salles-cal__titre { margin: 0; font-family: var(--font-serif, inherit); font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--sal-ink); line-height: 1.2; }
.ifs-salles-cal__titre::first-letter { text-transform: uppercase; }
.ifs-salles-cal__sous-titre { margin: 4px 0 0; font-size: .85rem; color: var(--sal-muted); }
.ifs-salles-cal__sous-titre strong { color: var(--cal-libre); }
.ifs-salles-cal__nav {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--sal-border); background: #fff; color: var(--sal-ink);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ifs-salles-cal .ifs-salles-cal__nav:hover:not(:disabled),
.ifs-salles-cal .ifs-salles-cal__nav:focus-visible { background: var(--sal-pale); border-color: var(--sal-accent); color: var(--sal-accent-dark); }
.ifs-salles-cal .ifs-salles-cal__nav svg { stroke: currentColor; }
.ifs-salles-cal__nav:disabled { opacity: .3; cursor: default; }

/* Légende, sous la grille */
.ifs-salles-cal__legende { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--sal-border); font-size: .82rem; color: var(--sal-muted); }
.ifs-salles-cal__legende li { display: inline-flex; align-items: center; gap: 7px; }
.ifs-salles-cal__puce { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.ifs-salles-cal__puce.is-libre { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cal-libre); }
.ifs-salles-cal__puce.is-choisie { background: var(--sal-accent); }
.ifs-salles-cal__puce.is-occupee { background: repeating-linear-gradient(45deg, #e6ebed, #e6ebed 3px, #f4f6f7 3px, #f4f6f7 6px); }
.ifs-salles-cal__puce.is-fermee { background: var(--sal-ferme); }
.ifs-salles-cal__puce.is-mienne { background: var(--sal-pale); box-shadow: inset 0 0 0 1.5px var(--sal-accent); }

/* Grille du mois */
.ifs-salles-cal__mois { margin: 0; }
.ifs-salles-cal__mois + .ifs-salles-cal__mois { margin-top: 26px; }
.ifs-salles-cal.is-js .ifs-salles-cal__mois + .ifs-salles-cal__mois { margin-top: 0; }
.ifs-salles-cal.is-js .ifs-salles-cal__nom-mois { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ifs-salles-cal__nom-mois { font-size: 1.05rem; color: var(--sal-ink); margin: 0 0 10px; }
.ifs-salles-cal__nom-mois::first-letter { text-transform: uppercase; }
.ifs-salles-cal__grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ifs-salles-cal__entete { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sal-muted); padding: 0 0 4px; }
.ifs-salles-cal__entete.is-weekend { color: color-mix(in srgb, var(--sal-muted) 70%, transparent); }

/* Un jour */
.ifs-salles-cal__jour {
	position: relative; min-height: 104px; padding: 8px; border-radius: var(--sal-r-md);
	background: var(--cal-jour); display: flex; flex-direction: column; gap: 5px;
	border: 1px solid transparent; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ifs-salles-cal__jour.is-weekend { background: color-mix(in srgb, var(--cal-jour) 70%, var(--sal-border)); }
.ifs-salles-cal__jour.is-dispo { background: #fff; border-color: var(--sal-border); }
.ifs-salles-cal__jour.is-dispo:hover { border-color: color-mix(in srgb, var(--cal-libre) 45%, var(--sal-border)); box-shadow: 0 6px 18px -12px rgba(18, 60, 75, .45); }
.ifs-salles-cal__jour:has(input:checked) { border-color: var(--sal-accent); box-shadow: 0 0 0 1px var(--sal-accent); }
.ifs-salles-cal__jour.is-passe { background: transparent; }
.ifs-salles-cal__jour.is-passe .ifs-salles-cal__num { color: color-mix(in srgb, var(--sal-muted) 55%, transparent); }

.ifs-salles-cal__num { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .92rem; color: var(--sal-ink); margin-bottom: 2px; }
.ifs-salles-cal__jour-chiffre { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; }
.ifs-salles-cal__jour.is-aujourdhui .ifs-salles-cal__jour-chiffre { background: var(--sal-accent); color: var(--sal-sur-accent); }
.ifs-salles-cal__jour-nom { display: none; }

/* « Complet » / « Fermé » à la place de trois tranches identiques */
.ifs-salles-cal__statut { margin: auto 0; align-self: center; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sal-muted); }
.ifs-salles-cal__jour.is-complet .ifs-salles-cal__statut { color: var(--sal-occupe-texte); }
.ifs-salles-cal__jour.is-complet { background: repeating-linear-gradient(45deg, var(--cal-jour), var(--cal-jour) 8px, color-mix(in srgb, var(--cal-jour) 60%, var(--sal-border)) 8px, color-mix(in srgb, var(--cal-jour) 60%, var(--sal-border)) 16px); }

/* Une tranche */
.ifs-salles-cal__tranche {
	position: relative; display: flex; align-items: center; gap: 6px;
	border-radius: var(--sal-pill); padding: 4px 9px; min-height: 26px;
	font-size: .74rem; line-height: 1.2; border: 1px solid transparent;
	white-space: nowrap; overflow: hidden;
}
.ifs-salles-cal__libelle { overflow: hidden; text-overflow: ellipsis; }
.ifs-salles-cal__point { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }

.ifs-salles-cal__tranche.is-libre { background: #fff; color: var(--sal-ink); border-color: color-mix(in srgb, var(--cal-libre) 40%, var(--sal-border)); }
.ifs-salles-cal__tranche.is-libre .ifs-salles-cal__point { background: var(--cal-libre); opacity: 1; }
.ifs-salles-cal__tranche.is-occupee { color: var(--sal-ferme-texte); }
.ifs-salles-cal__tranche.is-occupee .ifs-salles-cal__libelle { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--sal-ferme-texte) 60%, transparent); }
.ifs-salles-cal__tranche.is-occupee .ifs-salles-cal__point { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.ifs-salles-cal__tranche.is-fermee, .ifs-salles-cal__tranche.is-passee { color: color-mix(in srgb, var(--sal-ferme-texte) 70%, transparent); }
.ifs-salles-cal__tranche.is-fermee .ifs-salles-cal__point, .ifs-salles-cal__tranche.is-passee .ifs-salles-cal__point { opacity: .35; }
.ifs-salles-cal__tranche.is-mienne { background: var(--sal-pale); color: var(--sal-accent-dark); border-color: color-mix(in srgb, var(--sal-accent) 45%, transparent); font-weight: 600; }

label.ifs-salles-cal__tranche { cursor: pointer; transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
label.ifs-salles-cal__tranche input { position: absolute; opacity: 0; pointer-events: none; }
label.ifs-salles-cal__tranche:hover { border-color: var(--cal-libre); background: color-mix(in srgb, var(--sal-libre) 55%, #fff); transform: translateY(-1px); }
label.ifs-salles-cal__tranche:has(input:focus-visible) { outline: 2px solid var(--sal-accent); outline-offset: 2px; }
label.ifs-salles-cal__tranche:has(input:checked) { background: var(--sal-accent); color: var(--sal-sur-accent); border-color: var(--sal-accent); font-weight: 700; }
label.ifs-salles-cal__tranche:has(input:checked) .ifs-salles-cal__point {
	width: 12px; height: 12px; background: transparent; opacity: 1;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	background-color: currentColor;
}
/* Sans :has() : la case reste visible. */
@supports not selector(:has(*)) { label.ifs-salles-cal__tranche input { position: static; opacity: 1; pointer-events: auto; margin-right: 4px; } }

/* Changement de mois en douceur */
.ifs-salles-cal.is-js .ifs-salles-cal__mois:not([hidden]) { animation: ifs-salles-mois .22s ease both; }
@keyframes ifs-salles-mois { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Récapitulatif et formulaire ---------- */
.ifs-salles-resa__titre { margin-top: 0; }
.ifs-salles-resa__aide { color: var(--sal-muted); line-height: 1.55; }
.ifs-salles-recap { border: 1px solid var(--sal-border); border-radius: var(--sal-r-md); padding: 14px 18px; margin: 0 0 22px; background: var(--sal-page); }
.ifs-salles-recap.is-plein {
	position: sticky; bottom: 10px; z-index: 3; background: #fff; border-color: color-mix(in srgb, var(--sal-accent) 45%, var(--sal-border));
	box-shadow: 0 14px 34px -16px rgba(18, 60, 75, .45);
}
.ifs-salles-recap__total strong { font-size: 1.15rem; color: var(--sal-ink); }
.ifs-salles-recap__vide { margin: 0; color: var(--sal-muted); }
.ifs-salles-recap__vide.is-erreur { color: var(--sal-occupe-texte); font-weight: 700; }
.ifs-salles-recap__liste { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow: auto; }
.ifs-salles-recap__liste li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: var(--sal-pill); background: #fff; border: 1px solid var(--sal-border); font-size: .85rem; }
.ifs-salles-recap__liste button { border: 0; background: transparent; color: var(--sal-muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; border-radius: 50%; }
.ifs-salles-recap__liste button:hover { color: var(--sal-occupe-texte); background: var(--sal-occupe); }
.ifs-salles-recap__total, .ifs-salles-recap__acompte, .ifs-salles-recap__note { margin: 2px 0; }
.ifs-salles-recap__note { font-size: .85rem; color: var(--sal-muted); }

/* Location répétée (1.5.0) */
.ifs-salles-repeter { border: 1px solid var(--sal-border); border-radius: var(--sal-r-md); margin: -8px 0 22px; background: #fff; overflow: hidden; }
.ifs-salles-repeter[open] { border-color: color-mix(in srgb, var(--sal-accent) 40%, var(--sal-border)); }
.ifs-salles-repeter summary { cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 12px; list-style: none; }
.ifs-salles-repeter summary::-webkit-details-marker { display: none; }
.ifs-salles-repeter summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--sal-muted); border-bottom: 2px solid var(--sal-muted); transform: rotate(45deg); transition: transform .2s ease; }
.ifs-salles-repeter[open] summary::after { transform: rotate(-135deg); }
.ifs-salles-repeter summary:hover { background: var(--sal-page); }
.ifs-salles-repeter__icone { flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--sal-accent) 14%, #fff); color: var(--sal-accent); font-size: 1.1rem; }
.ifs-salles-repeter__entete { display: grid; gap: 1px; }
.ifs-salles-repeter__entete strong { color: var(--sal-ink); }
.ifs-salles-repeter__entete small { color: var(--sal-muted); font-size: .85rem; }
.ifs-salles-repeter__corps { display: grid; gap: 14px; padding: 14px 16px 16px; border-top: 1px solid var(--sal-border); }
.ifs-salles-repeter__reglages { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.ifs-salles-repeter__groupe { border: 0; padding: 0; margin: 0; min-width: 0; }
.ifs-salles-repeter__groupe legend { float: none; width: auto; padding: 0; margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--sal-muted); }
.ifs-salles-repeter__pastilles { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: var(--sal-pill); background: var(--sal-page); border: 1px solid var(--sal-border); }
.ifs-salles-repeter__pastilles label { position: relative; margin: 0; cursor: pointer; }
.ifs-salles-repeter__pastilles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ifs-salles-repeter__pastilles span { display: block; padding: 6px 14px; border-radius: var(--sal-pill); font-size: .88rem; font-weight: 600; color: var(--sal-text); transition: background .15s ease, color .15s ease; white-space: nowrap; }
.ifs-salles-repeter__pastilles input:checked + span { background: var(--sal-accent); color: var(--sal-sur-accent); box-shadow: 0 2px 6px -2px rgba(18, 60, 75, .4); }
.ifs-salles-repeter__pastilles input:focus-visible + span { outline: 2px solid var(--sal-accent); outline-offset: 2px; }
.ifs-salles-repeter__pastilles label:hover input:not(:checked) + span { background: #fff; }
.ifs-salles-repeter__fin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ifs-salles-repeter__valeur { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--sal-muted); }
.ifs-salles-repeter__valeur[hidden] { display: none; }
.ifs-salles-resa .ifs-salles-repeter input[type="number"] { width: 4.2em; padding: 6px 8px; text-align: center; }
.ifs-salles .ifs-salles-repeter input[type="date"], .ifs-salles-resa .ifs-salles-repeter input[type="date"] { width: auto; padding: 6px 10px; }
.ifs-salles-repeter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ifs-salles-repeter__appliquer { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.ifs-salles-repeter__annuler { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: .88rem; color: var(--sal-muted); cursor: pointer; }
.ifs-salles-repeter__annuler:hover { color: var(--sal-occupe-texte); }
.ifs-salles-repeter__resultat { margin: 0; font-size: .88rem; font-weight: 600; }
.ifs-salles-repeter__resultat:empty { display: none; }
.ifs-salles-repeter__resultat.is-ok { padding: 4px 12px; border-radius: var(--sal-pill); background: var(--sal-libre); color: var(--sal-libre-texte); }
.ifs-salles-repeter__resultat.is-erreur { color: var(--sal-occupe-texte); }
.ifs-salles-repeter__resultat.is-neutre { color: var(--sal-muted); font-weight: 400; }
.ifs-salles-repeter__indispo { margin: 0; padding: 8px 12px; border-radius: var(--sal-r-sm); background: var(--sal-occupe); color: var(--sal-occupe-texte); font-size: .85rem; line-height: 1.5; }
@media (max-width: 480px) {
	.ifs-salles-repeter__entete small { display: none; }
	.ifs-salles-repeter__groupe { width: 100%; }
	.ifs-salles-repeter__pastilles { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; border-radius: 14px; }
	.ifs-salles-repeter__pastilles span { display: grid; place-items: center; height: 100%; padding: 7px 6px; border-radius: 11px; font-size: .84rem; line-height: 1.2; text-align: center; white-space: normal; }
}

.ifs-salles-resa__bloc { border: 1px solid var(--sal-border); border-radius: var(--sal-r-md); padding: 16px 18px; margin: 0 0 18px; background: #fff; }
.ifs-salles-resa__bloc legend { float: none; width: auto; padding: 0 6px; margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--sal-ink); }
.ifs-salles-resa__champs { display: grid; gap: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ifs-salles-resa__champs p, .ifs-salles-espace__absence p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ifs-salles-resa__large { grid-column: 1 / -1; }
.ifs-salles-resa input[type="text"], .ifs-salles-resa input[type="email"], .ifs-salles-resa input[type="tel"], .ifs-salles-resa input[type="number"], .ifs-salles-resa textarea,
.ifs-salles input[type="date"], .ifs-salles input[type="text"] {
	width: 100%; padding: 9px 12px; border: 1px solid var(--sal-border); border-radius: var(--sal-r-sm); font: inherit; color: inherit; background: #fff;
}
.ifs-salles-resa input:focus, .ifs-salles-resa textarea:focus, .ifs-salles input:focus { outline: 2px solid var(--sal-accent); outline-offset: 0; border-color: var(--sal-accent); }
.ifs-salles-resa__moyens { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ifs-salles-resa__moyen { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--sal-border); border-radius: var(--sal-r-sm); cursor: pointer; }
.ifs-salles-resa__moyen:has(input:checked) { border-color: var(--sal-accent); background: var(--sal-pale); }
.ifs-salles-resa__moyen span { display: flex; flex-direction: column; gap: 2px; }
.ifs-salles-resa__moyen small { color: var(--sal-muted); }
.ifs-salles-resa__accord label { display: flex; gap: 8px; align-items: flex-start; }
.ifs-salles-resa__envoyer { font-size: 1.05rem; padding: 10px 26px; border-radius: var(--sal-pill); }

/* ---------- Suivi et espace ---------- */
.ifs-salles-statut { display: inline-block; padding: 4px 12px; border-radius: var(--sal-pill); font-weight: 700; font-size: .9rem; background: var(--sal-ferme); color: var(--sal-ink); }
.ifs-salles-statut--confirmee { background: var(--sal-libre); color: var(--sal-libre-texte); }
.ifs-salles-statut--demande, .ifs-salles-statut--paiement { background: #fff3d6; color: #7a5300; }
.ifs-salles-statut--refusee, .ifs-salles-statut--annulee { background: var(--sal-occupe); color: var(--sal-occupe-texte); }
.ifs-salles-suivi__table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.ifs-salles-suivi__table th, .ifs-salles-suivi__table td { padding: 9px 8px; border-bottom: 1px solid var(--sal-border); text-align: left; vertical-align: top; }
.ifs-salles-suivi__table thead th { font-size: .85rem; color: var(--sal-muted); }
.ifs-salles-suivi__table .ifs-salles-num { text-align: right; }
.ifs-salles-suivi__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-top: 20px; }
.ifs-salles-suivi__annuler summary { list-style: none; display: inline-block; cursor: pointer; }
.ifs-salles-suivi__annuler summary::-webkit-details-marker { display: none; }
.ifs-salles-suivi__annuler form { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--sal-occupe); border-radius: var(--sal-r-sm); background: #fff; }

.ifs-salles-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ifs-salles-onglets a { padding: 6px 14px; border-radius: var(--sal-pill); border: 1px solid var(--sal-border); text-decoration: none; color: var(--sal-ink); }
.ifs-salles-onglets a[aria-current="page"] { background: var(--sal-accent); border-color: var(--sal-accent); color: var(--sal-sur-accent); }
.ifs-salles-espace__liste { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ifs-salles-espace__liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--sal-border); border-radius: var(--sal-r-sm); }
.ifs-salles-espace__detail { color: var(--sal-muted); flex: 1 1 260px; }
.ifs-salles-espace__annuler { margin: 0 0 0 auto; }
.ifs-salles-espace__absence { display: grid; gap: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }

/* ---------- Grille de la semaine ---------- */
.ifs-salles-grille { display: grid; gap: 10px; margin-bottom: 14px; }
.ifs-salles-grille__salle { border: 1px solid var(--sal-border, #dde8eb); border-radius: 12px; background: #fff; }
.ifs-salles-grille__salle > summary { padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.ifs-salles-grille__compte { margin-left: auto; font-size: .85rem; color: var(--sal-muted, #4f6a75); }
.ifs-salles-grille__corps { padding: 0 14px 14px; }
.ifs-salles-grille__table-defile { overflow-x: auto; }
.ifs-salles-grille__table { border-collapse: separate; border-spacing: 4px; min-width: 520px; }
.ifs-salles-grille__table th { font-size: .82rem; text-align: center; padding: 2px 4px; font-weight: 700; }
.ifs-salles-grille__table tbody th { text-align: left; white-space: nowrap; padding-right: 10px; }
.ifs-salles-grille__table tbody th small { display: block; font-weight: 400; color: var(--sal-muted, #4f6a75); }
.ifs-salles-grille__table td { text-align: center; width: 80px; height: 40px; border-radius: 8px; background: var(--sal-page, #f7fafb); }
.ifs-salles-grille__table td.is-autre { background: repeating-linear-gradient(45deg, #eef1f2, #eef1f2 6px, #e2e7e9 6px, #e2e7e9 12px); }
.ifs-salles-grille__case { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; cursor: pointer; }
.ifs-salles-grille__case input { width: 20px; height: 20px; cursor: pointer; }
.ifs-salles-grille__autre { font-size: .72rem; color: #5b6b70; display: block; padding: 2px; line-height: 1.2; }
.ifs-salles-grille__periode { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 10px 0 0; }
.ifs-salles-grille__periode label { display: inline-flex; gap: 6px; align-items: center; }
.ifs-salles-grille__periode input { width: auto; }
.ifs-salles-grille__periode small { color: var(--sal-muted, #4f6a75); flex-basis: 100%; }

/* ---------- Bouton (balise) ---------- */
.ifs-salles-bouton { display: inline-block; padding: 10px 22px; border-radius: var(--sal-pill); background: var(--sal-accent); color: var(--sal-sur-accent); font-weight: 700; text-decoration: none; }
.ifs-salles-bouton:hover, .ifs-salles-bouton:focus-visible { background: var(--sal-accent-dark); color: var(--sal-sur-accent); }

/* ---------- Petits écrans : calendrier en liste ---------- */
@media (max-width: 720px) {
	.ifs-salles-galerie, .ifs-salles-galerie--2, .ifs-salles-galerie--3, .ifs-salles-galerie--4, .ifs-salles-galerie--5 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; border-radius: var(--sal-r-md); }
	.ifs-salles-galerie__photo { aspect-ratio: 4 / 3; }
	.ifs-salles-galerie__photo:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
	.ifs-salles-galerie--4 .ifs-salles-galerie__photo:nth-child(2) { grid-column: auto; }
	.ifs-salles-galerie__photo:nth-child(n+4) { display: none; }
	.ifs-salles-galerie--1 .ifs-salles-galerie__photo:first-child { aspect-ratio: 16 / 10; }
	.ifs-salles-fiche__carte { position: static; }
	.ifs-salles-visionneuse__prec, .ifs-salles-visionneuse__suiv { top: auto; bottom: -58px; }
	.ifs-salles-fiche__haut, .ifs-salles-resa__champs, .ifs-salles-espace__absence { grid-template-columns: 1fr; }
	.ifs-salles-cal { padding: 14px; border-radius: var(--sal-r-md); }
	.ifs-salles-cal__grille { grid-template-columns: 1fr; gap: 8px; }
	.ifs-salles-cal__entete, .ifs-salles-cal__vide, .ifs-salles-cal__jour.is-passe, .ifs-salles-cal__jour.is-ferme { display: none; }
	.ifs-salles-cal__jour { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; }
	.ifs-salles-cal__jour.is-weekend { background: var(--cal-jour); }
	.ifs-salles-cal__num { flex: 0 0 100%; justify-content: flex-start; gap: 8px; }
	.ifs-salles-cal__jour-chiffre { display: none; }
	.ifs-salles-cal__jour-nom { display: inline; }
	.ifs-salles-cal__jour.is-aujourdhui .ifs-salles-cal__jour-nom { color: var(--sal-accent-dark); }
	.ifs-salles-cal__statut { margin: 0; align-self: auto; }
	.ifs-salles-cal__tranche { font-size: .88rem; padding: 9px 14px; flex: 1 1 auto; justify-content: center; min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.ifs-salles-galerie__photo img { transition: none; }
	.ifs-salles-galerie__photo:hover img, .ifs-salles-galerie__photo:focus-visible img { transform: none; }
	.ifs-salles-cal.is-js .ifs-salles-cal__mois:not([hidden]) { animation: none; }
	label.ifs-salles-cal__tranche, label.ifs-salles-cal__tranche:hover { transition: none; transform: none; }
	.ifs-salles-carte__lien { transition: none; }
	.ifs-salles-carte__lien:hover, .ifs-salles-carte__lien:focus-visible { transform: none; }
}

/* Instructions d'accès (1.1.0) */
.ifs-salles-suivi__acces { margin: 18px 0; padding: 14px 18px; border-radius: var(--sal-r-md, 14px); background: var(--sal-pale, #e9f6fa); border: 1px solid var(--sal-border, #dde8eb); }
.ifs-salles-suivi__acces h2 { font-size: 1.05rem; margin: 0 0 6px; }
.ifs-salles-suivi__acces p { margin: 0; line-height: 1.55; }

/* Captcha (1.2.0) */
.ifs-salles-captcha-bloc { margin: 12px 0; max-width: 100%; overflow: hidden; }
