/* SW Ville — styles. Les couleurs et polices viennent du thème (variables --sw-*),
   avec des valeurs de repli pour fonctionner sous n'importe quel thème. */

.swv {
	--swv-accent: var(--sw-accent, #E1251B);
	--swv-ink: var(--sw-ink, #0A1F44);
	--swv-muted: var(--sw-muted, #4A5675);
	--swv-surface: var(--sw-surface, #FFFFFF);
	--swv-surface-2: var(--sw-surface-2, #EEF2F9);
	--swv-border: var(--sw-border, #DDE3EE);
	--swv-brand: var(--sw-brand, #0A1F44);
	--swv-brand-2: var(--sw-brand-2, #123A8C);
	--swv-radius: var(--sw-radius, 10px);
	--swv-radius-sm: var(--sw-radius-sm, 6px);
	--swv-display: var(--sw-font-display, inherit);
	--swv-label: var(--sw-font-label, inherit);
	--swv-shadow: var(--sw-shadow, none);
	--swv-free: #1B7F3B;
	--swv-half: #D97A00;
	--swv-full: #C8102E;
	color: var(--swv-ink);
}
.swv *, .swv *::before, .swv *::after { box-sizing: border-box; }
.swv .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.swv-icon { flex: none; }
.swv-empty { color: var(--swv-muted); font-style: italic; margin: 0; }
.swv-foot { margin-top: 20px; font-size: 14px; color: var(--swv-muted); }
.swv-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sw-link, var(--swv-brand-2)); text-decoration: none; }
.swv-link:hover { color: var(--swv-accent); }
.swv-btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
	background: var(--swv-accent); color: #FFFFFF; border-radius: var(--swv-radius-sm); font-weight: 700; text-decoration: none;
}
.swv-btn:hover { color: #FFFFFF; filter: brightness(1.08); }

.swv-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.swv-chip {
	display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
	font-size: 12px; font-weight: 700; line-height: 1.5; background: var(--swv-surface-2); color: var(--swv-ink);
}
.swv-chip--bio, .swv-chip--local, .swv-chip--hve, .swv-chip--free { background: #E3F2E7; color: #14532D; }
.swv-chip--label-rouge { background: #FDE8EA; color: #8C0D1D; }
.swv-chip--msc { background: #E2EEFB; color: #12407A; }
.swv-chip--nouveau { background: var(--swv-accent); color: #FFFFFF; }

.swv-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; background: #6B7280; }
.swv-dot--free { background: var(--swv-free); }
.swv-dot--half { background: var(--swv-half); }
.swv-dot--full { background: var(--swv-full); }

/* Cartes résumé -------------------------------------------------------------- */
.swv-card {
	--swv-accent: var(--sw-accent, #E1251B);
	--swv-ink: var(--sw-ink, #0A1F44);
	--swv-muted: var(--sw-muted, #4A5675);
	--swv-border: var(--sw-border, #DDE3EE);
	--swv-surface-2: var(--sw-surface-2, #EEF2F9);
	--swv-free: #1B7F3B; --swv-half: #D97A00; --swv-full: #C8102E;
	display: flex; flex-direction: column; gap: 12px; min-width: 0;
	background: var(--sw-surface, #FFFFFF); color: var(--swv-ink);
	border: 1px solid var(--swv-border); border-radius: var(--sw-radius, 10px);
	padding: 22px; box-shadow: var(--sw-shadow, none);
}
.swv-card__head { display: flex; align-items: center; gap: 12px; }
.swv-card__icon { width: 42px; height: 42px; flex: none; border-radius: var(--sw-radius-sm, 8px); display: flex; align-items: center; justify-content: center; background: var(--swv-surface-2); color: var(--sw-brand-2, #123A8C); }
.swv-card__title { margin: 0; font-family: var(--sw-font-display, inherit); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.swv-card__kicker { margin: 0; font-family: var(--sw-font-label, inherit); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--swv-accent); }
.swv-card__body { flex: 1; font-size: 15px; }
.swv-card__more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; font-size: 14px; color: var(--sw-link, #123A8C); text-decoration: none; }
.swv-card__more:hover { color: var(--swv-accent); }
.swv-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.swv-mini li { line-height: 1.4; }
.swv-mini a { color: inherit; text-decoration: none; }
.swv-mini a:hover { color: var(--swv-accent); }
.swv-mini__type { display: inline-block; min-width: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--swv-muted); margin-right: 4px; }
.swv-mini .is-main { font-weight: 700; }
.swv-mini--legend li { display: flex; align-items: center; }

/* Hybride : la cantine en grand avec plats en tuiles */
.sw-skin-hybride .swv-card--cantine .swv-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sw-skin-hybride .swv-card--cantine .swv-mini li { background: var(--sw-surface-2, #EEF1F8); border-radius: 12px; padding: 12px 14px; }
.sw-skin-hybride .swv-card--cantine .swv-mini__type { display: block; margin-bottom: 4px; }
.sw-skin-hybride .swv-card--bornes { background: var(--sw-brand, #081028); color: #FFFFFF; border-color: transparent; --swv-muted: #C4CDE6; }
.sw-skin-hybride .swv-card--bornes .swv-card__icon { background: #16224D; color: #FFFFFF; }
.sw-skin-hybride .swv-card--bornes .swv-card__more { color: #A9C1FF; }
.sw-skin-hybride .swv-card--bornes .swv-card__kicker { color: #8FA6FF; }

/* Magazine : cartes sans cadre ni fond, typographie éditoriale */
.sw-skin-magazine .swv-card { background: transparent; border-radius: 0; box-shadow: none; padding: 24px; }
.sw-skin-magazine .swv-card__icon { display: none; }
.sw-skin-magazine .swv-card__title { font-weight: 600; font-size: 24px; }
.sw-skin-magazine .swv-card__kicker { order: -1; color: var(--sw-brand, #1D3A8A); }
.sw-skin-magazine .swv-card__more { color: var(--sw-ink, #14161F); text-decoration: underline; text-underline-offset: 4px; }

/* Streaming : surfaces bleu nuit */
.sw-skin-streaming .swv-card__icon { background: #22336A; color: #FFFFFF; }
.sw-skin-streaming .swv-chip { background: #22336A; color: #FFFFFF; }
.sw-skin-streaming .swv-chip--bio, .sw-skin-streaming .swv-chip--free, .sw-skin-streaming .swv-chip--local { background: #14532D; color: #DCFCE7; }
.sw-skin-streaming .swv-chip--label-rouge { background: #7F1D1D; color: #FEE2E2; }

/* Grille du shortcode [sw_pratique] */
.swv-pratique { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* Cantine ----------------------------------------------------------------- */
.swv-weeknav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.swv-weeknav__title { margin: 0; font-family: var(--swv-display); font-size: clamp(20px, 3vw, 28px); text-align: center; }
.swv-weeknav__btn {
	width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--swv-border); border-radius: 50%; color: var(--swv-ink); text-decoration: none; background: var(--swv-surface);
}
.swv-weeknav__btn:hover { border-color: var(--swv-accent); color: var(--swv-accent); }
.swv-week { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); }
.swv-day { background: var(--swv-surface); border: 1px solid var(--swv-border); border-radius: var(--swv-radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.swv-day.is-today { border: 2px solid var(--swv-accent); }
.swv-day__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.swv-day__name { font-family: var(--swv-display); font-weight: 800; font-size: 20px; text-transform: capitalize; }
.swv-day__date { color: var(--swv-muted); font-size: 14px; }
.swv-day__today { margin-left: auto; background: var(--swv-accent); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.swv-day__note { margin: 0; font-size: 14px; color: var(--swv-muted); }
.swv-dishes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.swv-dish { display: flex; flex-direction: column; gap: 3px; }
.swv-dish__type { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--swv-muted); }
.swv-dish__name { font-size: 15px; line-height: 1.35; }
.swv-dish--plat .swv-dish__name { font-weight: 700; font-size: 16px; }
.swv-dish__leaf { color: var(--swv-free); display: inline-flex; vertical-align: -2px; margin-right: 2px; }

/* Cinéma ------------------------------------------------------------------ */
.swv-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.swv-tab {
	flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--swv-border); background: var(--swv-surface); color: var(--swv-ink);
	font: inherit; font-weight: 600; text-transform: capitalize;
}
.swv-tab[aria-selected="true"] { background: var(--swv-brand); border-color: var(--swv-brand); color: #FFFFFF; }
.sw-skin-streaming .swv-tab[aria-selected="true"] { background: var(--swv-accent); border-color: var(--swv-accent); }
.swv-tabpanel + .swv-tabpanel { margin-top: 32px; }
.swv-cinema.is-tabbed .swv-tabpanel + .swv-tabpanel { margin-top: 0; }
.swv-tabpanel__title { font-family: var(--swv-display); font-size: 24px; margin: 0 0 14px; }
.swv-cinema.is-tabbed .swv-tabpanel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.swv-films { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.swv-film { display: flex; gap: 16px; background: var(--swv-surface); border: 1px solid var(--swv-border); border-radius: var(--swv-radius); padding: 14px; }
.swv-film__poster { flex: 0 0 110px; aspect-ratio: 2 / 3; border-radius: var(--swv-radius-sm); overflow: hidden; background: var(--swv-surface-2); }
.swv-film__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swv-film__noposter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--swv-muted); }
.swv-film__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.swv-film__title { margin: 0; font-family: var(--swv-display); font-size: 20px; line-height: 1.2; }
.swv-film__title a { color: inherit; text-decoration: none; }
.swv-film__title a:hover { color: var(--swv-accent); }
.swv-film__meta, .swv-film__by { margin: 0; font-size: 14px; color: var(--swv-muted); }
.swv-film__note { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--swv-ink); font-weight: 700; }
.swv-film__note .swv-icon { color: #E8A100; }
.swv-times { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.swv-time {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--swv-radius-sm);
	background: var(--swv-surface-2); color: var(--swv-ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
a.swv-time:hover { background: var(--swv-accent); color: #FFFFFF; }
.swv-film__synopsis summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--sw-link, var(--swv-brand-2)); min-height: 32px; display: flex; align-items: center; }
.swv-film__synopsis p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--swv-muted); }
@media (max-width: 480px) { .swv-film__poster { flex-basis: 84px; } }

/* Agenda ------------------------------------------------------------------ */
.swv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.swv-filter {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--swv-border); color: var(--swv-ink); text-decoration: none; font-weight: 600; background: var(--swv-surface);
}
.swv-filter.is-active { background: var(--swv-brand); border-color: var(--swv-brand); color: #FFFFFF; }
.sw-skin-streaming .swv-filter.is-active { background: var(--swv-accent); border-color: var(--swv-accent); }
.swv-agenda__day + .swv-agenda__day { margin-top: 28px; }
.swv-agenda__date { font-family: var(--swv-display); font-size: 22px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--swv-ink); }
.swv-events { list-style: none; margin: 0; padding: 0; }
.swv-event { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--swv-border); }
.swv-event__time { flex: 0 0 72px; font-weight: 800; font-size: 16px; color: var(--swv-accent); }
.swv-event__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.swv-event__title { font-family: var(--swv-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--swv-ink); text-decoration: none; }
.swv-event__title:hover { color: var(--swv-accent); }
.swv-event__meta { font-size: 14px; color: var(--swv-muted); }
.swv-event__meta:empty { display: none; }

.swv-eventbox { background: var(--swv-surface); border: 1px solid var(--swv-border); border-radius: var(--swv-radius); padding: 20px; margin-bottom: 28px; display: flex; flex-direction: column; gap: 14px; }
.swv-eventbox__img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--swv-radius-sm); }
.swv-eventbox__list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.swv-eventbox__list > div { display: flex; gap: 12px; align-items: flex-start; }
.swv-eventbox__list dt { color: var(--swv-accent); padding-top: 2px; }
.swv-eventbox__list dd { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }

/* Bornes ------------------------------------------------------------------ */
.swv-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; font-size: 14px; }
.swv-legend span { display: inline-flex; align-items: center; }
.swv-map { height: clamp(320px, 55vh, 520px); border-radius: var(--swv-radius); overflow: hidden; border: 1px solid var(--swv-border); background: var(--swv-surface-2); z-index: 0; }
.swv-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.swv-table th, .swv-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--swv-border); vertical-align: middle; }
.swv-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--swv-muted); }
.swv-fill { display: flex; align-items: center; gap: 10px; }
.swv-fill__bar { flex: 0 0 90px; height: 8px; border-radius: 999px; background: var(--swv-surface-2); overflow: hidden; }
.swv-fill__bar span { display: block; height: 100%; background: #6B7280; }
.swv-fill--free .swv-fill__bar span { background: var(--swv-free); }
.swv-fill--half .swv-fill__bar span { background: var(--swv-half); }
.swv-fill--full .swv-fill__bar span { background: var(--swv-full); }
.swv-fill__txt { font-size: 14px; }

/* Neutralise la typographie d'article du thème à l'intérieur des modules */
.swv ul.swv-dishes, .swv ul.swv-events, .swv ul.swv-times, .swv-card ul.swv-mini { padding-left: 0; margin-left: 0; list-style: none; }
.swv ul.swv-times { margin: 4px 0; }
.swv li + li { margin-top: 0; }
.swv .swv-weeknav__title, .swv .swv-tabpanel__title, .swv .swv-agenda__date, .swv .swv-film__title, .swv .swv-card__title { margin-top: 0; }
.swv .swv-agenda__date { margin-bottom: 10px; }
.swv .swv-tabpanel__title { margin-bottom: 14px; }
.swv-day > * + *, .swv-film__body > * + * { margin-top: 0; }
.swv .swv-film__title a, .swv a.swv-time, .swv a.swv-event__title, .swv a.swv-weeknav__btn, .swv a.swv-filter, .swv a.swv-btn, .swv a.swv-link, .swv-card a { text-decoration: none; }
.swv .swv-film__title a { color: inherit; }
.swv a.swv-time { color: var(--swv-ink); }
.swv a.swv-time:hover { color: #FFFFFF; }
.swv a.swv-filter.is-active, .swv a.swv-btn { color: #FFFFFF; }
.swv .swv-tab { font-size: 16px; }
.swv-eventbox .swv-btn { align-self: flex-start; }
