/* Spirit 45 — Calendrier des vacances */
.cal-app { padding: 22px 0 8px; background: var(--bg); }
.cal-app[hidden] { display: none; }
.cal-panel { display: grid; gap: 14px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: -40px; position: relative; z-index: 2; }
.cal-ctl-h { font-weight: 800; color: var(--marine); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-ctl-h b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--safran); color: var(--marine); font-size: 13px; }
.cal-ctl-h span { font-weight: 500; font-size: 13px; color: var(--muted); }
.cal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 700 14px var(--sans); cursor: pointer; }
.cal-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.cal-chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.cal-chip[aria-pressed="true"] i { background: #fff; }
.cal-find { margin-top: 10px; font-size: 14px; }
.cal-find summary { cursor: pointer; color: var(--ocean); font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.cal-find dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.cal-find dt { font-weight: 800; color: var(--c); white-space: nowrap; }
.cal-find dt i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cal-find dd { margin: 0; color: var(--muted); }
.cal-find p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.cal-select { width: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: 600 16px var(--sans); }
.cal-ctl-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.cal-block { margin-top: 28px; }
.cal-h2 { font-size: clamp(20px, 5vw, 26px); margin: 0 0 14px; color: var(--marine); }
.cal-h2 small { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--muted); }
.cal-empty { color: var(--muted); }

.cal-cards { display: grid; gap: 12px; }
.cal-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.cal-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-card h3 { margin: 0; font-size: 19px; color: var(--marine); }
.cal-badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--sable); color: var(--marine); white-space: nowrap; }
.cal-badge.is-live { background: var(--safran); }
.cal-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cal-card li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.cal-card li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(1px); }
.cal-card li b { color: var(--c); min-width: 40px; }

.cal-vcard { background: var(--marine); color: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cal-vhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cal-vcard h2 { margin: 2px 0 8px; color: #fff; font-size: clamp(22px, 6vw, 30px); }
.cal-kick { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--safran); font-weight: 800; }
.cal-rate { text-align: center; background: rgba(255,255,255,.1); border-radius: 14px; padding: 8px 12px; white-space: nowrap; }
.cal-rate b { font-size: 24px; color: var(--safran); }
.cal-rate small { display: block; font-size: 11px; opacity: .8; }
.cal-vcard p { margin: 0 0 12px; opacity: .92; }
.cal-vdl { display: grid; gap: 10px; margin: 0 0 14px; }
.cal-vdl div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; }
.cal-vdl dt { font-weight: 800; font-size: 14px; margin-bottom: 2px; }
.cal-vdl dd { margin: 0; font-size: 14px; }
.cal-vdl .is-top { box-shadow: inset 3px 0 0 #4cc38a; }
.cal-vdl .is-avoid { box-shadow: inset 3px 0 0 #ff8a65; }
.cal-vlinks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 !important; }
.cal-vlinks a { color: var(--safran); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cal-best { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: b; }
.cal-best li { counter-increment: b; display: grid; gap: 2px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px 14px 12px 52px; position: relative; }
.cal-best li::before { content: counter(b); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--safran); color: var(--marine); font-weight: 800; display: grid; place-items: center; }
.cal-best b { color: var(--marine); }
.cal-best span { font-size: 14px; color: var(--muted); }
.cal-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.cal-fr { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 18px; }
.cal-fr-in { position: relative; min-width: 1000px; padding-left: 78px; }
.cal-fr-m { position: relative; height: 22px; margin-bottom: 6px; }
.cal-fr-m span { position: absolute; top: 0; font-size: 12px; font-weight: 800; color: var(--muted); border-left: 1px solid var(--line); padding-left: 4px; text-transform: capitalize; overflow: hidden; white-space: nowrap; }
.cal-fr-row { position: relative; height: 34px; margin-bottom: 6px; display: flex; }
.cal-fr-row em { position: sticky; left: 0; z-index: 5; flex: 0 0 78px; width: 78px; margin-left: -78px; padding-right: 6px; box-sizing: border-box; background: var(--white); height: 100%; display: flex; align-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: var(--c, var(--marine)); }
.cal-fr-row em.is-w { color: var(--marine); }
.cal-fr-track { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; background: var(--bg); border-radius: 8px; }
.cal-fr-track button { position: absolute; top: 3px; bottom: 3px; border: 0; padding: 0; border-radius: 6px; cursor: pointer; min-width: 5px; }
.cal-fr-b { opacity: .92; }
.cal-fr-w.is-season { background: #d9ecf5; }
.cal-fr-w.is-top { background: #4cc38a; top: 8px !important; bottom: 8px !important; }
.cal-fr-w.is-avoid { background: #ff8a65; top: 8px !important; bottom: 8px !important; }
.cal-fr-f { background: var(--safran); min-width: 8px !important; }
.cal-fr-f.is-gen { background: #cfd5e4; }
.cal-fr-today { position: absolute; top: 0; bottom: 0; width: 2px; background: #e53935; pointer-events: none; }
.cal-fr-today span { position: absolute; top: -2px; left: 4px; font-size: 11px; font-weight: 800; color: #e53935; background: var(--white); padding: 0 3px; }
.cal-info { margin: 10px 0 0; min-height: 24px; font-weight: 700; color: var(--marine); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.cal-legend .lg-top i { background: #4cc38a; } .cal-legend .lg-av i { background: #ff8a65; } .cal-legend .lg-f i { background: var(--safran); }

.cal-months { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cal-mo { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 12px; }
.cal-mo h3 { margin: 0 0 8px; font-size: 16px; text-transform: capitalize; color: var(--marine); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 12px; }
.cal-grid b { color: var(--muted); font-size: 11px; }
.cal-d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: var(--bg); position: relative; }
.cal-d.is-top { box-shadow: inset 0 -3px 0 #4cc38a; }
.cal-d.is-av { box-shadow: inset 0 -3px 0 #ff8a65; }
.cal-d.is-fete::after { content: ""; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--safran); box-shadow: 0 0 0 1px var(--marine); }
.cal-d.is-today { outline: 2px solid #e53935; outline-offset: 1px; font-weight: 800; }

.cal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 8px; }
.cal-toast { font-size: 14px; font-weight: 700; color: var(--marine); }

.cal-dates { padding-top: 32px; padding-bottom: 40px; }
.cal-lead { color: var(--muted); margin: 14px 0; }
.cal-table-wrap { overflow-x: auto; }
.cal-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.cal-table th, .cal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cal-table thead th { background: var(--marine); color: #fff; white-space: nowrap; }
.cal-table small, .cal-table em { display: block; font-size: 12px; color: var(--muted); font-style: normal; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 760px) {
	.cal-table thead { display: none; }
	.cal-table, .cal-table tbody, .cal-table tr, .cal-table th, .cal-table td { display: block; }
	.cal-table tr { border-bottom: 6px solid var(--bg); }
	.cal-table td[data-label]::before { content: attr(data-label) " : "; font-weight: 800; color: var(--marine); }
}
@media (min-width: 760px) {
	.cal-panel { grid-template-columns: 1.4fr 1fr; padding: 24px; gap: 28px; }
	.cal-cards { grid-template-columns: repeat(3, 1fr); }
	.cal-vdl { grid-template-columns: 1fr 1fr; }
	.cal-best { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 759px) {
	.cal-months { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.cal-mo { padding: 8px; }
	.cal-mo h3 { font-size: 14px; }
	.cal-grid { gap: 2px; font-size: 10px; }
	.cal-d { border-radius: 4px; }
}

/* ---- v2 : avec / sans enfants, fêtes, guide, FAQ ---- */
.cal-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.cal-seg button { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white); color: var(--marine); font: 800 15px var(--sans); cursor: pointer; min-height: 62px; }
.cal-seg button small { font-weight: 500; font-size: 12px; color: var(--muted); }
.cal-seg button[aria-pressed="true"] { background: var(--marine); border-color: var(--marine); color: #fff; box-shadow: 0 0 0 3px rgba(253,191,0,.55); }
.cal-seg button[aria-pressed="true"] small { color: rgba(255,255,255,.8); }
#cal-zones-wrap[hidden] { display: none; }
.cal-ctl-hint em { font-style: normal; opacity: .8; }
.cal-years { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.cal-years a { display: inline-block; margin-left: 6px; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; color: var(--marine); text-decoration: none; }
.cal-years a[aria-current] { background: var(--safran); border-color: var(--safran); }
.cal-card--calm { border-top: 4px solid #2e9d6b; }
.cal-calm { margin: 0 0 4px; font-weight: 800; color: var(--marine); font-size: 17px; }
.cal-sub { margin: 0; font-size: 13px; color: var(--muted); }

.cal-fete-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal-fete { display: flex; gap: 14px; align-items: center; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 10px 14px; border-left: 5px solid var(--safran); }
.cal-fete--nat { border-left-color: #e53935; background: linear-gradient(90deg, #fff4f2, #fff 40%); }
.cal-fete--carn { border-left-color: #8e44ad; }
.cal-fete--rel { border-left-color: #1E5AA8; }
.cal-fete--gen { border-left-color: #cfd5e4; }
.cal-fete.is-past { opacity: .55; }
.cal-fete-date { flex: none; width: 58px; text-align: center; line-height: 1.1; text-transform: uppercase; font-size: 12px; font-weight: 800; color: var(--muted); }
.cal-fete-date b { display: block; font: 800 28px var(--serif); color: var(--marine); }
.cal-fete-date small { display: block; font-size: 10px; text-transform: none; font-weight: 600; }
.cal-fete-body strong { display: block; color: var(--marine); }
.cal-fete-body small { color: var(--muted); font-size: 13px; }

.cal-fr-row--f { height: 44px; }
.cal-fr-f { background: transparent !important; top: 0 !important; bottom: 0 !important; min-width: 18px !important; font-size: 17px; line-height: 1; display: grid; place-items: center; }
.cal-fr-f::before { content: ""; position: absolute; inset: 8px 0; border-radius: 8px; background: var(--safran); opacity: .9; z-index: 0; }
.cal-fr-f span { position: relative; z-index: 1; }
.cal-fr-f--nat::before { background: #ffb4a8; }
.cal-fr-f--carn::before { background: #e0c3ee; }
.cal-fr-f--rel::before { background: #bcd4f2; }
.cal-fr-f--gen::before { background: #fde9a8; }

.cal-d.is-fete { background: var(--safran); color: var(--marine); font-weight: 800; box-shadow: 0 0 0 1.5px var(--marine) inset; }
.cal-d.is-fete--nat { background: #ffb4a8; }
.cal-d.is-fete--carn { background: #e0c3ee; }
.cal-d.is-fete::after { display: none; }
.cal-d.is-calm { background: #e4f4ec; }
.cal-mo-f { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 3px; font-size: 12px; color: var(--marine); }
.cal-mo-f b { display: inline-block; min-width: 18px; }

/* FAQ + guide (référencement) */
.cal-faq { padding-top: 8px; }
.cal-faq-list { display: grid; gap: 8px; margin-top: 14px; }
.cal-faq details { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 4px 16px; }
.cal-faq summary { cursor: pointer; font-weight: 800; color: var(--marine); min-height: 48px; display: flex; align-items: center; }
.cal-faq p { margin: 0 0 12px; color: var(--ink); }
.cal-guide { padding-top: 24px; padding-bottom: 56px; }
.cal-toc ul { list-style: none; margin: 16px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cal-toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; color: var(--marine); text-decoration: none; }
.cal-dest { margin-top: 30px; }
.cal-dest h3 { font-size: clamp(20px, 5vw, 26px); color: var(--marine); margin: 0 0 12px; }
.cal-vill { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 12px; }
.cal-vill h4 { margin: 0 0 6px; font: 800 18px var(--sans); color: var(--marine); }
.cal-vill p { margin: 0 0 8px; }
.cal-vlinks-s { font-size: 14px; }
.cal-vlinks-s a { color: var(--ocean); font-weight: 700; }
@media (max-width: 759px) {
	.cal-seg button { font-size: 14px; padding: 8px 10px; }
}
