/* V2 : en-tête compact, compteurs, choix « qui patine », FAQ. S'ajoute à style.css. */

.hero--compact .hero__in { padding-top: 14px; padding-bottom: 20px; gap: 10px; }
.hero--compact .hero__img { opacity: .5; object-position: 50% 40%; }
.hero__back { font-size: 13px; color: var(--creme); opacity: .8; text-decoration: none; justify-self: start; }
.hero--compact .hero__logo { width: min(210px, 56vw); margin-top: 10px; }
.hero--compact .hero__lead { font-size: 16px; max-width: 40ch; }
@media (min-width: 900px) { .hero--compact .hero__in { padding-top: 22px; padding-bottom: 32px; } .hero--compact .hero__logo { width: 280px; margin-top: 24px; } .hero--compact .hero__lead { font-size: 18px; } }
.v2 .layout { padding-top: 16px; }
.v2 .step__h { margin-bottom: 14px; }
.v2 .step__sub { margin-top: -8px; }

/* Compteurs */
.cts { display: grid; }
.ct { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cts .ct:first-child { border-top: 0; }
.ct__l { display: grid; }
.ct__n { font-weight: 600; font-size: 17px; }
.ct__h { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ct.has-q .stepper { border-color: var(--nuit); }
.stepper button { width: 44px; height: 44px; }
.stepper output { min-width: 26px; font-size: 17px; }
.ct output.bump { animation: bump 220ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* Questions */
.q { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.q[hidden] { display: none; }
.q__t { margin: 0 0 10px; font-weight: 700; font-size: 17px; }
.q__h { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg label[hidden] { display: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--field); font-weight: 600; font-size: 15px; user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.seg label:active span { transform: scale(0.96); }
.seg input:checked + span { background: var(--nuit); border-color: var(--nuit); color: var(--creme); }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; } }
.perso { margin-top: 12px; padding: 4px 14px; border-radius: 14px; background: var(--creme); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .perso { background: var(--nuit-2); } }
.perso .ct:first-child { border-top: 0; }

/* Récap */
.summary { transition: opacity 160ms ease; }
.summary[aria-busy="true"] .summary__tot strong, .summary[aria-busy="true"] .summary__l { opacity: .55; }
.saving { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(241,212,155,.14); color: var(--or); font-size: 14px; font-weight: 600; }
.summary__note a { color: inherit; }
.summary .btn { font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 54px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.v2 .infos { padding-top: 0; }

/* ---------- V3 (25/11) : un seul habillage alterné nuit / clair, calendrier repliable, prix visibles ---------- */
.v2 .layout { padding-bottom: 28px; }
.v2 .step { border: 1px solid var(--line); }
.v2 .step__sub { margin: -6px 0 16px; font-size: 14px; }

/* Calendrier : 5 colonnes sur téléphone, cases allégées */
.cal { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 280ms var(--ease-out), opacity 180ms ease; }
.cal__in { min-height: 0; overflow: hidden; padding: 3px; margin: -3px; }
.is-picked .cal { grid-template-rows: 0fr; opacity: 0; }
.days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .days { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; } }
.day { padding: 8px 2px 7px; min-height: 68px; align-content: center; }
.day__d { font-size: 21px; }
.day__s { font-size: 10.5px; line-height: 1.2; min-height: 1.2em; }
.day__s.soir { color: var(--orange-fonce); font-weight: 600; }
.day__s.ev { color: #fff; background: var(--orange); border-radius: 999px; padding: 0 5px; font-weight: 600; font-size: 9.5px; line-height: 1.45; }
.day:has(input:checked) .day__s.ev { color: #fff; }
.cal__leg { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.cal__leg b { color: var(--orange-fonce); font-weight: 600; margin-right: 4px; }

/* Jour choisi : carte nuit, le calendrier se replie dessous */
.v2 .dayinfo { margin-top: 0; padding: 16px 16px 8px; border-radius: 16px; background: var(--nuit); color: var(--creme); gap: 0; animation: pick 320ms var(--ease-out); }
@keyframes pick { from { opacity: 0; transform: translateY(8px); } }
.v2 .dayinfo__t { font-size: 19px; font-stretch: 112%; }
.v2 .dayinfo__row { margin-top: 8px; display: grid; gap: 2px; color: #c9cede; font-size: 14px; }
.v2 .dayinfo__row span { display: flex; justify-content: space-between; gap: 12px; }
.v2 .dayinfo__row b { color: var(--creme); font-variant-numeric: tabular-nums; }
.v2 .dayinfo__ev { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(241,212,155,.14); color: var(--or); font-size: 13.5px; line-height: 1.4; }
.dayinfo__chg { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 14px 0 8px; padding: 0 16px; border: 1.5px solid rgba(244,239,228,.55); border-radius: 999px; background: rgba(244,239,228,.08); color: var(--creme); font-weight: 600; font-size: 16px; cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.dayinfo__chg .ic { color: var(--or); }
.dayinfo__chg:active { transform: scale(0.97); }

/* Compteurs : le prix se lit sur la ligne */
.ct__h b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper { border-color: #cfc5b0; }
.stepper button { font-weight: 500; }

/* Qui patine : contrôle segmenté + lien des cas particuliers */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--creme); }
.seg label { flex: 1 1 0; }
.seg label[hidden] { display: none; }
.v2 .step { scroll-margin-top: 10px; }
.seg span { width: 100%; justify-content: center; padding: 0 8px; border-color: transparent; background: transparent; font-size: 15px; }
.seg input:checked + span { box-shadow: 0 2px 8px -2px rgba(12,18,34,.35); }
.perso { animation: pick 260ms var(--ease-out); }

/* Repas : deux cartes côte à côte */
.cts--repas { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cts--repas .ct { grid-template-columns: 1fr; justify-items: start; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--field); transition: border-color 160ms ease, background-color 160ms ease; }
.cts--repas .ct:first-child { border-top: 1.5px solid var(--line); }
.cts--repas .ct.has-q { border-color: var(--nuit); background: var(--creme); }
.cts--repas .ct__h { font-size: 15px; font-weight: 700; color: var(--orange-fonce); }
.cts--repas .stepper { justify-self: stretch; justify-content: space-between; }

/* Récapitulatif */
.saving--info { background: rgba(255,255,255,.08); color: #c9cede; font-weight: 500; }
.payways { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.payways li { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(244,239,228,.28); font-size: 12px; font-weight: 600; color: var(--creme); }
.summary__note b { color: var(--creme); font-weight: 600; }

/* Barre du bas : s'efface quand le bouton du récapitulatif est à l'écran */
.paybar.is-away { transform: translateY(110%); }
.paybar .btn { min-width: 118px; }
@media (prefers-reduced-motion: reduce) { .v2 .dayinfo, .perso { animation: none; } }

/* ---------- V3.1 (25/11, retours Marc) : pictos, horaires lisibles, vrais logos de paiement ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v2 .step__h { align-items: center; }
.v2 .step__n { transform: none; }
.step__ic { margin-left: auto; width: 28px; height: 28px; color: var(--orange); }
.q__t { display: flex; align-items: center; gap: 8px; }
.q__t .ic { width: 24px; height: 24px; color: var(--orange); }
.summary__t { display: flex; align-items: center; gap: 6px; }
.summary__t .ic { width: 18px; height: 18px; }

/* Horaires du jour choisi : un picto par lieu, une horloge devant chaque horaire */
.dayinfo__cap { margin-top: 12px; font-size: 13px; color: var(--or); font-weight: 600; }
.v2 .dayinfo__row { margin-top: 4px; gap: 0; font-size: 15px; }
.v2 .dayinfo__row span { align-items: center; padding: 9px 0; border-top: 1px solid rgba(244,239,228,.14); }
.v2 .dayinfo__row span:first-child { border-top: 0; }
.dayinfo__row i { font-style: normal; display: flex; align-items: center; gap: 10px; color: var(--creme); }
.dayinfo__row i .ic { width: 22px; height: 22px; color: var(--or); }
.v2 .dayinfo__row b { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dayinfo__row b .ic { width: 16px; height: 16px; color: #aab0c4; }

/* Cas particuliers : une vraie ligne cliquable, au même niveau que le choix au-dessus */
.more { display: block; position: relative; margin-top: 8px; cursor: pointer; }
.more input { position: absolute; opacity: 0; pointer-events: none; }
.more__in { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 1.5px solid #cfc5b0; border-radius: 16px; background: var(--field); user-select: none; -webkit-user-select: none; transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.more:active .more__in { transform: scale(0.98); }
.more__in > .ic:first-child { width: 24px; height: 24px; color: var(--orange); }
.more__t { display: grid; }
.more__t b { font-size: 16px; font-weight: 600; }
.more__t small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.more__chev { margin-left: auto; color: var(--muted); transition: transform 200ms var(--ease-out); }
.more input:checked + .more__in { border-color: var(--nuit); background: var(--creme); }
.more input:checked + .more__in .more__chev { transform: rotate(90deg); color: var(--nuit); }
.more input:focus-visible + .more__in { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Repas : picto dans chaque carte */
.ct__ic { width: 30px; height: 30px; color: var(--orange); }
.cts--repas .ct { gap: 8px; }

/* Logos de paiement */
.payways { gap: 8px; }
.payways .pw { display: grid; place-items: center; width: 52px; height: 34px; padding: 0; border: 0; border-radius: 7px; background: #fff; }
.payways .pw svg { width: 34px; height: 34px; }
.payways .pw--applepay { color: #000; } .payways .pw--googlepay { color: #3c4043; } .payways .pw--visa { color: #1434cb; }

/* ---------- Présentation de l'événement (retours Fanny, 26/11) ---------- */
.lahaut { padding: 8px 0 28px; }
.lahaut h2 { font-size: 22px; margin: 0 0 14px; font-stretch: 112%; }
.lahaut__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .lahaut__l { grid-template-columns: 1fr 1fr; } }
.lahaut__l li { background: var(--surface); border-radius: 16px; padding: 14px 18px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.lahaut__l b { display: block; color: var(--text); font-weight: 600; font-size: 16px; }
.lahaut__n { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Calendrier sur petits écrans : plus de débordement (étiquettes « Nocturne » et « Événement ») ---------- */
.layout > * { min-width: 0; }
.cal { grid-template-columns: minmax(0, 1fr); }
.cal__in { min-width: 0; }
.day__s.ev { font-size: 8.5px; padding: 0 3px; letter-spacing: -.1px; max-width: 100%; white-space: nowrap; }
@media (max-width: 349px) { .days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 349px) { .cts--repas { grid-template-columns: minmax(0, 1fr); } .cts--repas .ct { min-width: 0; } }
