/* Photo du bandeau (voile : .page-head--photo, core/css/layout.css).
   Limitée à la rubrique : la feuille reste chargée quand on change de page. */
[data-route="services"] .page-head--photo { --ph-photo: url('/assets/heroes/nos-accueils.webp'); --ph-photo-sm: url('/assets/heroes/nos-accueils-1000.webp'); --ph-pos: center 40%; --ph-pos-sm: 62% center; }
/* ============================================================
   ACCUEILS — temps d'accueil, programmes « affiche », menus
   ============================================================
   Couleurs vives du logo pour les liserés et les gommettes ;
   variantes « -ink » pour les fonds porteurs de texte blanc
   et le texte coloré (contraste AA).
   ============================================================ */
/* ---------- Quatre portes d'entrée ---------- */
.shead-sticker, .tap-sticker { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--c); display: grid; place-items: center; }
.shead:hover .shead-sticker, .tap-acts li:hover .tap-sticker { animation: fun-jump .5s ease-out; }

/* ---------- Périscolaire : trois ciels ---------- */
/* Périscolaire : trois cartes à gommette (matin, midi, soir), comme les objectifs de « Le centre » */
.peri { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.peri > li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 20px 20px; background: var(--s); border: 3px solid transparent; border-radius: 26px 26px 26px 8px; transition: transform .25s, border-color .25s; }
.peri > li:nth-child(2) { border-radius: 26px 26px 8px 26px; }
.peri > li:nth-child(3) { border-radius: 26px 8px 26px 26px; }
.peri > li:hover { transform: translateY(-5px) rotate(-1deg); border-color: var(--c); }
.peri-sticker { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--c); display: grid; place-items: center; }
.peri-sticker svg { width: 34px; height: 34px; }
.peri > li:hover .peri-sticker { animation: fun-jump .5s ease-out; }
.peri h3 { font-size: 24px; color: var(--i); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.peri time { font-family: var(--f-body); font-size: 14px; font-weight: 800; background: #fff; color: var(--i); border-radius: var(--r-pill); padding: 2px 12px; }
.peri p { margin: 0; font-size: 15.5px; }
.peri-tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.peri-tags li { font-size: 13px; font-weight: 800; background: #fff; border-radius: var(--r-pill); padding: 2px 10px; }
.is-in .peri > li { animation: fun-hop .6s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--n) * .1s); }
@media (prefers-reduced-motion: reduce) { .peri > li { transition: none; } .peri > li:hover { transform: none; } .is-in .peri > li, .peri > li:hover .peri-sticker { animation: none; } }

/* ---------- TAP : mur de gommettes ---------- */
.tap { background: var(--s); border-radius: 28px; padding: clamp(18px, 3vw, 32px); }
.tap-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tap-head h2 { margin-bottom: 6px; }
.tap-head .block-intro { margin: 0; color: var(--c-ink); }
.tap-clock { display: inline-flex; align-items: center; gap: 10px; background: var(--c-green-ink); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 20px; border-radius: var(--r-pill); padding: 4px 16px 4px 6px; }
.tap-clock i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.tap-clock i::before, .tap-clock i::after { content: ""; position: absolute; left: 14px; bottom: 15px; width: 2px; height: 10px; background: var(--c-black); transform-origin: bottom; }
.tap-clock i::after { height: 7px; transform: rotate(90deg); }
.is-in .tap-clock i::before { animation: tap-tick 4s steps(12) infinite; }
@keyframes tap-tick { to { transform: rotate(360deg); } }
.tap-acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.tap-acts li { text-align: center; background: #fff; border-radius: 20px; padding: 14px 6px 12px; font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.15; transform: rotate(-2deg); transition: transform .25s; }
.tap-acts li:nth-child(even) { transform: rotate(2deg); }
.tap-acts li:hover { transform: scale(1.06); }
.tap-sticker { margin: 0 auto 8px; background: var(--s); }
.is-in .tap-acts li { animation: fun-pop .5s cubic-bezier(.3, 1.8, .5, 1) both; animation-delay: calc(var(--n) * .07s); }

/* ---------- Bandeaux des mercredis, vacances et menus ---------- */
.shead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 18px; border-radius: 24px; background: var(--s); }
.shead-sticker { width: 70px; height: 70px; }
.shead-sticker svg { width: 42px; height: 42px; }
.shead h2 { margin: 0; color: var(--i); }
.shead p { margin: 2px 0 8px; }
.shead-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.shead-chips li { background: #fff; border-radius: var(--r-pill); padding: 2px 10px; font-size: 13px; font-weight: 800; }

@media (max-width: 960px) {
  .tap-acts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shead { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .shead .btn { grid-column: 1 / -1; justify-self: start; }
  .shead-sticker { width: 56px; height: 56px; }
}
@media (max-width: 480px) {
  .tap-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .tap-acts li { flex: 0 0 calc((100% - 16px) / 3); font-size: 14px; }
}

/* ---------- Tons ---------- */
.tone-blue    { --tc: var(--c-blue);    --tc-ink: var(--c-blue-ink);    --ts: var(--c-blue-soft); }
.tone-yellow  { --tc: var(--c-yellow);  --tc-ink: var(--c-yellow-ink);  --ts: var(--c-yellow-soft); }
.tone-green   { --tc: var(--c-green);   --tc-ink: var(--c-green-ink);   --ts: var(--c-green-soft); }
.tone-magenta { --tc: var(--c-magenta); --tc-ink: var(--c-magenta-ink); --ts: var(--c-magenta-soft); }
.tone-orange  { --tc: var(--c-orange);  --tc-ink: var(--c-orange-ink);  --ts: var(--c-orange-soft); }
/* Fonds porteurs de texte blanc (≥ 4,5:1) ; l'orange reste orange. */
.tone-orange .ticket-date, .tone-orange .stop-pin { background: #B85A00; }
.t-blue { color: var(--c-blue-ink); } .t-green { color: var(--c-green-ink); } .t-magenta { color: var(--c-magenta-ink); }
.t-orange { color: var(--c-orange-ink); } .t-yellow { color: var(--c-yellow); }

/* ---------- Gommettes ---------- */
.sticker { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--c-blue-soft); }
.sticker .picto { width: 38px; height: 38px; }
.sticker--yellow { background: var(--c-yellow-soft); } .sticker--green { background: var(--c-green-soft); }
.sticker--magenta { background: var(--c-magenta-soft); } .sticker--orange { background: var(--c-orange-soft); }

.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Affiche (programme) ---------- */
.poster, .menu-poster { position: relative; background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 34px); overflow: hidden; margin-bottom: 22px; }
.poster--holidays { background: linear-gradient(180deg, var(--c-blue-soft), #fff 55%); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; display: block; border-radius: 50%; }
.confetti i:nth-child(1) { width: 14px; height: 14px; background: var(--c-yellow); top: 30px; right: 34%; }
.confetti i:nth-child(2) { width: 9px; height: 9px; background: var(--c-magenta); top: 72px; right: 29%; }
.confetti i:nth-child(3) { width: 20px; height: 20px; background: var(--c-green); top: 24px; right: 5%; opacity: .3; }
@media (max-width: 720px) { .confetti { display: none; } }

.poster-top, .menu-top { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.poster-title { font-family: var(--f-display); font-weight: 800; line-height: .95; letter-spacing: -.01em; margin: 0; }
.poster-title .l1 { display: block; font-size: clamp(38px, 6vw, 64px); color: var(--c-black); }
.poster-title .l2 { display: block; font-size: clamp(23px, 3.4vw, 38px); margin-top: 4px; }
/* Une période à la fois : flèches de part et d'autre du titre ; le type n'apparaît qu'à l'impression. */
.poster-nav { display: flex; align-items: center; gap: 14px; }
.poster-nav .round-btn { flex: 0 0 auto; }
.poster-nav .poster-title:focus { outline: 0; }
.poster-kind { display: none; }
.poster-dates { margin: 10px 0 0; font-weight: 800; color: var(--c-mute); font-size: 15px; }
.poster-theme { background: var(--c-yellow-soft); border: 2px dashed var(--c-yellow); border-radius: 18px; padding: 10px 16px; font-weight: 700; }
.poster-theme b { font-family: var(--f-display); font-size: 20px; display: block; color: var(--c-yellow-ink); }
.poster-summary { position: relative; margin: -4px 0 18px; color: var(--c-mute); }
.poster-foot { position: relative; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 20px; }
.prog-open { text-decoration: none; }

.note-pill { display: block; text-align: center; margin: 8px auto 0; font-size: 12.5px; font-weight: 800; color: var(--c-orange-ink); background: var(--c-orange-soft); border-radius: var(--r-pill); padding: 2px 10px; width: fit-content; max-width: 100%; }
.outing-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--c-magenta-ink); color: #fff; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; padding: 2px 10px; letter-spacing: .04em; text-transform: uppercase; }
.outing-pill svg { width: 14px; height: 14px; }
.tbd { color: var(--c-mute); font-weight: 700; margin: 0; padding: 18px 6px; text-align: center; }

/* Mercredis : tickets */
.p1-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 14px; border: 2px solid var(--c-line); border-radius: 22px; padding: 14px; }
.ticket { display: flex; flex-direction: column; }
.ticket-date { background: var(--tc-ink); color: #fff; border-radius: 14px 14px 0 0; text-align: center; padding: 8px 6px 6px; font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1.05; margin: 0 8px; }
.ticket-date small { display: block; font-size: 14px; font-weight: 700; }
.ticket-body { border: 2px solid var(--tc); border-radius: 16px; background: #fff; flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-content: start; overflow: hidden; }
.ticket-body.is-one { grid-template-columns: 1fr; }
.grp { padding: 10px 8px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.grp + .grp { border-left: 2px dashed var(--ts); }
.grp--wide { grid-column: 1 / -1; border-bottom: 2px dashed var(--ts); }
.grp--wide + .grp { border-left: 0; }
.grp-name { background: var(--ts); color: var(--c-ink); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: 8px; padding: 2px 10px; align-self: stretch; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.act p { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 16.5px; line-height: 1.15; }
.act small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-mute); }
.ticket .note-pill { margin-top: 8px; }
.ticket.is-closed .ticket-date { background: #6B7480; }
.ticket.is-closed .ticket-body { border: 2px dashed #C7CDD4; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--c-mute); font-weight: 700; padding: 22px 12px; text-align: center; }
.ticket.is-closed .ticket-body p { margin: 0; }
@media (max-width: 720px) {
  .p1-days { padding: 0; border: 0; grid-template-columns: 1fr; }
}

/* Vacances : chemin */
.p2-road { position: relative; margin-top: 10px; }
.p2-road + .p2-road { margin-top: 30px; }
.p2-path { position: absolute; left: 0; right: 0; top: 70px; width: 100%; height: 160px; }
.p2-path path { fill: none; stroke: var(--c-blue); stroke-opacity: .45; stroke-width: 5; stroke-dasharray: 4 14; stroke-linecap: round; }
.p2-stops { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stop { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.stop.is-low { margin-top: 84px; }
.stop-pin { width: 64px; height: 64px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: var(--tc-ink); display: grid; place-items: center; box-shadow: 0 6px 0 rgba(14, 12, 12, .08); flex: 0 0 auto; }
.stop-pin b { transform: rotate(45deg); color: #fff; font-family: var(--f-display); font-size: 26px; font-weight: 800; line-height: 1; text-align: center; }
.stop-pin b small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.stop-card { background: #fff; border-radius: 18px; border: 2px solid var(--tc); padding: 12px; width: 100%; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.stop:nth-child(even) .stop-card { transform: rotate(1.5deg); }
.stop-card h4 { font-size: 18px; text-align: center; margin: 0 0 8px; }
.slot { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.slot + .slot { border-top: 2px dotted var(--ts); }
.slot .sticker { width: 44px; height: 44px; }
.slot .sticker .picto { width: 28px; height: 28px; }
.slot small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--c-mute); }
.slot span { font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.stop.is-closed .stop-pin { background: #6B7480; }
.stop.is-closed .stop-card { border: 2px dashed #C7CDD4; color: var(--c-mute); text-align: center; font-weight: 700; }
.stop.is-closed .stop-card p { margin: 0; }
@media (max-width: 900px) {
  .p2-path { display: none; }
  .p2-stops { grid-template-columns: 1fr; gap: 0; }
  .p2-stops::before { content: ""; position: absolute; left: 30px; top: 30px; bottom: 30px; border-left: 4px dashed var(--c-blue); opacity: .45; }
  .stop, .stop.is-low { grid-column: 1 !important; margin: 0 0 14px; flex-direction: row; align-items: flex-start; }
  .stop-pin { width: 60px; height: 60px; }
  .stop-card, .stop:nth-child(even) .stop-card { transform: none; }
  .stop-card h4 { text-align: left; }
  .p2-road + .p2-road { margin-top: 0; }
}

.prog-extra { position: relative; margin-top: 18px; border-top: 2px dashed var(--c-line); padding-top: 14px; }
.prog-extra h4 { font-size: 18px; margin: 0 0 10px; }
.prog-extra-list { display: flex; flex-wrap: wrap; gap: 16px; }
.prog-extra .act { max-width: 180px; text-align: center; }

/* ---------- Menus ---------- */
.menu-nav { display: flex; align-items: center; gap: 8px; }
.menu-nav strong { font-family: var(--f-display); font-size: 19px; text-align: center; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--c-line); background: #fff; display: grid; place-items: center; color: var(--c-ink); flex: 0 0 auto; }
.round-btn:hover:not(:disabled) { border-color: var(--c-black); }
.round-btn:disabled { opacity: .4; }
.round-btn svg { width: 18px; height: 18px; }

.menu-table { position: relative; width: 100%; border-collapse: separate; border-spacing: 10px; table-layout: fixed; margin: 0 -10px; width: calc(100% + 20px); }
.menu-table thead td { width: 128px; }
.menu-day { position: relative; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--tc-ink); padding-bottom: 2px; }
.menu-day small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--c-mute); font-weight: 700; }
.today-tag { display: inline-block; background: var(--c-yellow); color: var(--c-black); font-family: var(--f-body); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); transform: rotate(-4deg); vertical-align: middle; }
.menu-day .today-tag { position: absolute; top: -16px; right: 0; transform: rotate(8deg); }
.course-label abbr { text-decoration: none; }
.course-label { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-ink); background: var(--c-bg); border-radius: 14px; padding: 10px; text-align: left; }
.course-label .picto { width: 24px; height: 24px; flex: 0 0 auto; }
.course-label--alt { background: var(--c-green-soft); color: var(--c-green-ink); }
.course-label--allergen { background: var(--c-orange-soft); color: var(--c-orange-ink); }
.menu-table tbody td { border: 2px solid color-mix(in srgb, var(--tc, var(--c-line)) 55%, #fff); border-radius: 14px; padding: 10px; text-align: center; vertical-align: middle; background: #fff; }
.menu-table tbody td.is-today { background: color-mix(in srgb, var(--tc) 8%, #fff); border-width: 3px; }
.menu-table tbody td.is-empty { color: #A3ABB5; border-style: dashed; }
.menu-table tbody td.is-closed { border-style: dashed; border-color: #D5DAE0; background: #F7F8FA; }
.menu-table td b { display: block; font-weight: 800; font-size: 15px; line-height: 1.2; }
.menu-table .alt-row td { border: 0; background: var(--c-green-soft); color: var(--c-green-ink); font-weight: 700; font-size: 13.5px; padding: 6px 8px; }
.menu-table .allergen-row td { padding: 8px 6px; }
.closed-txt { margin: 0; font-size: 13px; font-weight: 700; color: var(--c-mute); }
.fg { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: .05em; flex: 0 0 auto; }
.fg-protein { background: #E30079; } .fg-starch { background: #A85300; } .fg-produce { background: #009234; } .fg-dairy { background: #009FDF; } .fg-sweet { background: #FECA00; }
.lbls { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 5px; }
.lbl { font-size: 10.5px; font-weight: 800; border-radius: var(--r-pill); padding: 1px 7px; letter-spacing: .03em; }
.lbl-bio { background: var(--c-green-soft); color: var(--c-green-ink); }
.lbl-local { background: var(--c-blue-soft); color: var(--c-blue-ink); }
.lbl-homemade { background: var(--c-magenta-soft); color: var(--c-magenta-ink); }
.allergens { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.allergens span { font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: var(--r-pill); background: var(--c-orange-soft); color: var(--c-orange-ink); }
.menu-legend { position: relative; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 700; color: var(--c-mute); }
.menu-legend span { display: inline-flex; align-items: center; }
.menu-note { font-size: 14px; color: var(--c-mute); margin: 10px 0 0; }

/* Assiette du jour (téléphone) */
.menu-plate { display: none; }
.plate-days { display: flex; gap: 8px; justify-content: space-between; margin-bottom: 14px; }
.plate-days button { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--tc); background: #fff; color: var(--tc-ink); font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: .9; padding: 0; }
.plate-days button small { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 800; }
.plate-days button[aria-pressed="true"] { background: var(--tc-ink); border-color: var(--tc-ink); color: #fff; transform: translateY(-3px); box-shadow: 0 5px 0 rgba(14, 12, 12, .1); }
.plate-title { font-size: 22px; margin: 4px 0 6px; }
.plate-wrap { position: relative; display: grid; place-items: center; margin: 0 0 8px; }
.plate-wrap .plate { width: min(74%, 300px); height: auto; }
.plate-badge { position: absolute; top: 2%; right: 2%; transform: rotate(10deg); background: var(--c-magenta-ink); color: #fff; border-radius: 50%; width: 92px; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 13px; line-height: 1.05; padding: 8px; box-shadow: 0 5px 0 rgba(14, 12, 12, .08); }
.plate-badge small { font-family: var(--f-body); font-size: 10.5px; margin-top: 3px; }
.course-list { display: grid; gap: 10px; margin-bottom: 12px; }
.course { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 18px; padding: 8px 12px 8px 8px; }
.course .sticker { width: 50px; height: 50px; }
.course .sticker .picto { width: 30px; height: 30px; }
.course small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-mute); }
.course b { font-family: var(--f-display); font-size: 18px; font-weight: 700; line-height: 1.15; }
.course .lbls { justify-content: flex-start; }
.course--alt { grid-template-columns: 1fr; background: var(--c-green-soft); border-color: transparent; padding-left: 16px; }
.course--alt b { color: var(--c-green-ink); }
.menu-plate .allergens { justify-content: flex-start; }
@media (max-width: 860px) {
  .menu-board { display: none; }
  .menu-plate { display: block; }
  .menu-nav { width: 100%; justify-content: space-between; }
}

/* ---------- Impression d'une affiche ---------- */
@media print {
  #print-root .poster { page: poster; box-shadow: none; margin: 0; border-radius: 0; padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root .poster-foot { display: none; }
  #print-root .poster-nav .round-btn { display: none; }
  #print-root .poster-kind { display: block; font-family: var(--f-display); font-weight: 800; font-size: 28px; }
  #print-root .p1-days { grid-template-columns: repeat(3, 1fr); }
  #print-root .ticket, #print-root .stop { break-inside: avoid; }
  @page poster { size: A4 landscape; margin: 10mm; }
}
