/* =============================================================
   SMASH RIOT - socle commun aux trois directions
   Chaque direction (nuit.css, ticket.css, affiche.css) définit les jetons
   --sr-* et son propre habillage ; ce fichier porte la structure,
   l'accessibilité et les composants partagés (thème + plugin).

   01. Reset & jetons par défaut      06. Formulaires, FAQ
   02. Accessibilité                  07. Parcours de commande
   03. Mise en page fluide            08. Compatibilité plugin
   04. En-têtes de page               09. Mouvement (états de base)
   05. Contenus (split, prose)        10. Impression
   ============================================================= */

/* ========== 01. RESET & JETONS ========== */
:root {
  --sr-gutter: clamp(16px, 4vw, 64px);
  --sr-max: 1440px;
  --sr-section: clamp(56px, 9vw, 120px);
  --sr-ease-out: cubic-bezier(.23, 1, .32, 1);
  --sr-ease-expo: cubic-bezier(.19, 1, .22, 1);
  --sr-ease-io: cubic-bezier(.77, 0, .175, 1);
  --sr-dur-fast: 120ms;
  --sr-dur: 200ms;
  --sr-dur-in: 720ms;
  --sr-top: var(--wp-admin--admin-bar--height, 0px);
  --sr-focus: var(--sr-ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(90px + var(--sr-top));
}

@media (prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--sr-bg);
  color: var(--sr-ink);
  font-family: var(--sr-fbody);
  font-size: clamp(16px, .35vw + 15px, 18px);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--sr-fdisp);
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul[class],
ol[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

::selection {
  background: var(--sr-accent);
  color: var(--sr-on-accent);
}

/* ========== 02. ACCESSIBILITÉ ========== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-skip {
  position: absolute;
  left: 12px;
  top: calc(-80px + var(--sr-top));
  z-index: 10000;
  padding: 12px 18px;
  background: var(--sr-ink);
  color: var(--sr-bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.sr-skip:focus {
  top: calc(12px + var(--sr-top));
}

:focus-visible {
  outline: 3px solid var(--sr-focus);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

main:focus {
  outline: none;
}

/* Cibles tactiles confortables */
.sr-burger,
.btn,
.sr-cart-link,
.sr-faq__q,
.sr-slot,
.sr-filter,
.sr-tab {
  min-height: 44px;
}

/* ========== 03. MISE EN PAGE FLUIDE ========== */
.wrap {
  width: 100%;
  max-width: var(--sr-max);
  margin-inline: auto;
  padding-inline: var(--sr-gutter);
}

.section {
  padding-block: var(--sr-section);
}

.section--alt {
  background: var(--sr-surface2);
}

.shead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.shead h2 {
  font-size: clamp(36px, 5.2vw, 76px);
}

.shead em {
  font-style: normal;
}

.sr-btn--block {
  width: 100%;
  justify-content: center;
}

/* ========== 04. EN-TÊTES DE PAGE ========== */
.sr-phead {
  border-bottom: var(--sr-bw) solid var(--sr-line);
}

.sr-phead__in {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px);
}

.sr-phead--img .sr-phead__in {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.sr-phead__eyebrow {
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--sr-accent2-text, var(--sr-accent-text, var(--sr-accent)));
}

.sr-phead h1 {
  font-size: clamp(42px, 7.4vw, 112px);
}

.sr-phead h1 em {
  font-style: normal;
  color: var(--sr-accent-text, var(--sr-accent));
}

.sr-phead__lead {
  max-width: 56ch;
  margin-top: 18px;
  color: var(--sr-muted);
  font-size: clamp(17px, .5vw + 15px, 20px);
}

.sr-phead__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.sr-phead--compact .sr-phead__in {
  padding-block: clamp(24px, 4vw, 40px);
}

.sr-phead--compact h1 {
  font-size: clamp(34px, 5vw, 64px);
}

@media (max-width:860px) {
  .sr-phead--img .sr-phead__in {
    grid-template-columns: 1fr;
  }
}

/* ========== 05. CONTENUS ========== */
.sr-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.sr-split--rev .sr-split__img {
  order: 2;
}

.sr-split__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.sr-prose {
  max-width: 68ch;
}

.sr-prose h2,
.sr-prose h3 {
  margin: 1.6em 0 .5em;
}

.sr-prose h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.sr-prose h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.sr-prose p,
.sr-prose li {
  color: var(--sr-muted);
}

.sr-prose strong {
  color: var(--sr-ink);
}

.sr-prose a {
  color: var(--sr-accent-text, var(--sr-ink));
  text-underline-offset: 3px;
}

.sr-cols-2,
.sr-cols-3 {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.sr-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sr-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sr-demo-note {
  padding: 24px;
  border: var(--sr-bw) dashed var(--sr-line);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.sr-notice {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: var(--sr-bw) solid var(--sr-ink);
  background: var(--sr-surface);
  font-weight: 700;
}

@media (max-width:860px) {

  .sr-split,
  .sr-cols-2,
  .sr-cols-3 {
    grid-template-columns: 1fr;
  }

  .sr-split--rev .sr-split__img {
    order: 0;
  }
}

/* Ouvert / fermé */
.sr-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.sr-open__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

/* ========== 06. FORMULAIRES, FAQ ========== */
.sr-form {
  display: grid;
  gap: 18px;
}

.sr-field {
  display: grid;
  gap: 8px;
}

.sr-field label {
  font-weight: 700;
  font-size: 14px;
}

.sr-field input,
.sr-field select,
.sr-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: var(--sr-radius-sm, var(--sr-radius));
  background: var(--sr-surface);
  color: var(--sr-ink);
}

.sr-field input:focus-visible,
.sr-field textarea:focus-visible {
  outline: 3px solid var(--sr-focus);
  outline-offset: 1px;
}

.sr-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sr-ok {
  font-weight: 700;
}

@media (max-width:640px) {
  .sr-field--row {
    grid-template-columns: 1fr;
  }
}

.sr-faq {
  max-width: 860px;
  display: grid;
  gap: 12px;
}

.sr-faq__h {
  margin: 0;
  font-size: inherit;
  font-family: inherit;
}

.sr-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 18px 20px;
  background: var(--sr-surface);
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: var(--sr-radius);
  cursor: pointer;
  font-family: var(--sr-fdisp);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.2;
  color: var(--sr-ink);
}

.sr-faq__ic {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}

.sr-faq__ic::before,
.sr-faq__ic::after {
  content: "";
  position: absolute;
  inset: 9px 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--sr-dur) var(--sr-ease-out);
}

.sr-faq__ic::after {
  transform: rotate(90deg);
}

.sr-faq__q[aria-expanded="true"] .sr-faq__ic::after {
  transform: rotate(0deg);
}

.sr-faq__a {
  padding: 4px 20px 18px;
  color: var(--sr-muted);
}

/* ========== 07. PARCOURS DE COMMANDE ========== */
.sr-journey {
  margin: 0 0 22px;
}

.sr-journey__list {
  display: flex;
  gap: 6px;
}

.sr-journey__step {
  flex: 1;
  min-width: 0;
}

.sr-journey__step>a,
.sr-journey__step>span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 12px;
  color: var(--sr-muted);
  text-decoration: none;
}

.sr-journey__n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border: 2px solid currentColor;
}

.sr-journey__l {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-journey__step.is-done>a {
  color: var(--sr-ink);
  border-bottom-color: var(--sr-ink);
}

.sr-journey__step.is-done .sr-journey__n {
  background: var(--sr-ink);
  color: var(--sr-bg);
  border-color: var(--sr-ink);
}

.sr-journey__step.is-current>span {
  color: var(--sr-ink);
  border-bottom-color: var(--sr-accent);
}

.sr-journey__step.is-current .sr-journey__n {
  background: var(--sr-accent);
  color: var(--sr-on-accent);
  border-color: var(--sr-accent);
}

@media (max-width:640px) {
  .sr-journey__step:not(.is-current) .sr-journey__l {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .sr-journey__step.is-current {
    flex: 3;
  }

  .sr-journey__step:not(.is-current) {
    flex: 0 0 auto;
  }

  .sr-journey__step:not(.is-current)>a,
  .sr-journey__step:not(.is-current)>span {
    padding-right: 10px;
  }
}

.sr-journey-wrap {
  padding-top: 20px;
}

.section.sr-section--tight {
  padding-top: clamp(24px, 4vw, 40px);
}

.sr-reassure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.sr-reassure li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: var(--sr-surface);
  font-size: 14px;
  color: var(--sr-muted);
}

.sr-reassure svg {
  flex: none;
  color: var(--sr-accent-text, var(--sr-accent));
}

.sr-reassure strong {
  display: block;
  color: var(--sr-ink);
  font-size: 15px;
}

@media (max-width:860px) {
  .sr-reassure {
    grid-template-columns: 1fr;
  }
}

.sr-track-layout {
  align-items: start;
}

.sr-track-help {
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: var(--sr-surface);
  padding: 22px 22px 8px;
}

.sr-track-help h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.sr-track-help ol {
  padding-left: 18px;
  margin: 0 0 18px;
  display: grid;
  gap: 6px;
  color: var(--sr-muted);
  font-size: 14px;
}

.sr-track-help p {
  color: var(--sr-muted);
  font-size: 14px;
}

.sr-track-help a {
  font-weight: 700;
  color: var(--sr-ink);
  text-underline-offset: 3px;
}

.sr-account-block {
  margin-top: 48px;
}

/* ========== 08. COMPATIBILITÉ PLUGIN (carte, panier, créneaux, suivi) ========== */
.sr-filters,
.sr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.sr-filter,
.sr-tab {
  padding: 10px 16px;
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: 999px;
  background: transparent;
  color: var(--sr-ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--sr-dur) ease, color var(--sr-dur) ease, border-color var(--sr-dur) ease;
}

.sr-filter.active,
.sr-tab.active {
  background: var(--sr-ink);
  color: var(--sr-bg);
  border-color: var(--sr-ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--sr-surface);
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: var(--sr-radius);
  overflow: hidden;
}

.card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sr-surface2);
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__img .flag {
  position: absolute;
  top: 10px;
  left: 10px;
}

.card__num {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--sr-ink);
  color: var(--sr-bg);
}

.card__b {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}

.card__b h3 {
  font-size: clamp(20px, 1.6vw, 24px);
}

.card__b p {
  color: var(--sr-muted);
  font-size: 14px;
  flex: 1;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sr-order {
  display: grid;
  gap: 24px;
  max-width: 760px;
  margin-inline: auto;
}

.sr-cart {
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: var(--sr-surface);
  padding: 22px;
}

.sr-li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px dashed var(--sr-line);
  font-size: 14px;
}

.sr-li:first-of-type {
  border-top: 0;
}

.sr-li .q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--sr-accent);
  color: var(--sr-on-accent);
  font-weight: 700;
  font-size: 12px;
  margin-right: 8px;
}

.sr-tot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0;
  padding-top: 16px;
  border-top: var(--sr-bw) solid var(--sr-line);
}

.sr-tot .lab {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sr-muted);
  font-weight: 700;
}

.sr-tot .val {
  font-family: var(--sr-fdisp);
  font-size: 30px;
}

.sr-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sr-slot {
  padding: 10px 16px;
  border-radius: 999px;
  border: var(--sr-bw) solid var(--sr-line);
  background: var(--sr-bg);
  color: var(--sr-ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.sr-slot.active {
  background: var(--sr-accent);
  color: var(--sr-on-accent);
  border-color: var(--sr-accent);
}

.sr-track {
  max-width: 680px;
}

/* Sections Elementor des modules du plugin (carte, commande, suivi, compte…) :
   même largeur et mêmes marges que l'en-tête (.wrap). La section garde ses
   16 px de marge ; le conteneur complète jusqu'à la gouttière du thème. */
.elementor-section.elementor-section-boxed:has(.elementor-widget[class*="elementor-widget-srcc_"])>.elementor-container {
  max-width: var(--sr-max);
  padding-inline: max(0px, calc(var(--sr-gutter) - 16px));
}

.elementor-section:has(.elementor-widget-srcc_track)+.elementor-section:has(.elementor-widget-srcc_account) {
  margin-top: -40px;
}

/* suivi puis compte : moins d'écart */
.sr-tcode {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: var(--sr-surface);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.sr-tcode .code {
  font-family: var(--sr-fdisp);
  font-size: 32px;
  letter-spacing: .04em;
  color: var(--sr-accent-text, var(--sr-accent));
}

.sr-tstep {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding-bottom: 24px;
  position: relative;
}

.sr-tstep::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 40px;
  bottom: -4px;
  width: 2px;
  background: var(--sr-line);
}

.sr-tstep:last-child::before {
  display: none;
}

.sr-tdot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: var(--sr-bw) solid var(--sr-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--sr-bg);
  color: var(--sr-muted);
  z-index: 1;
}

.sr-tstep.done .sr-tdot {
  background: var(--sr-accent);
  color: var(--sr-on-accent);
  border-color: var(--sr-accent);
}

.sr-tstep.active .sr-tdot {
  background: var(--sr-accent2);
  color: var(--sr-on-accent2, #fff);
  border-color: var(--sr-accent2);
}

.sr-tstep h3 {
  font-size: 20px;
}

.sr-tstep p {
  color: var(--sr-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Le plugin reconnaît le thème : pas de styles de repli */
.srcc-elwrap {
  display: block;
}

/* ========== 09. MOUVEMENT : états de base ==========
   html.sr-motion n'est posée que si JS est actif, hors éditeur Elementor,
   hors « mouvement réduit ». Chaque direction définit SA révélation pour
   [data-rv] ; sans .sr-motion, tout est visible. */
.sr-motion [data-rv] {
  transition: opacity var(--sr-dur-in) var(--sr-ease-out), transform calc(var(--sr-dur-in) + 80ms) var(--sr-ease-expo), clip-path var(--sr-dur-in) var(--sr-ease-io), filter var(--sr-dur-in) var(--sr-ease-out);
}

.sr-motion [data-rv].is-in {
  transition-delay: calc(min(var(--i, 0), 8) * var(--sr-stagger, 80ms));
}

.sr-motion [data-rv].is-done {
  transition-delay: 0s;
}

.sr-motion [data-split]:not(.is-split) {
  opacity: 0;
}

.sr-ch,
.sr-wd {
  display: inline-block;
}

.sr-wd {
  white-space: nowrap;
}

.sr-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--sr-top);
  z-index: 9990;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--sr-accent);
  pointer-events: none;
}

.sr-ticking {
  animation: none !important;
  will-change: transform;
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .sr-progress {
    display: none;
  }
}

/* ========== 10. IMPRESSION ========== */
@media print {
  .sr-motion [data-rv] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }

  .sr-header,
  .sr-footer,
  .sr-progress,
  .sr-burger,
  .sr-skip {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* Chiffres clés (À propos) */
.sr-stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sr-stat {
  padding: 24px;
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: var(--sr-surface);
}

.sr-stat__big {
  margin: 0 0 10px;
  font-family: var(--sr-fdisp);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  color: var(--sr-accent-text, var(--sr-accent));
}

.sr-stat h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  margin-bottom: 8px;
}

.sr-stat p:not(.sr-stat__big) {
  color: var(--sr-muted);
}

.sr-split__h {
  font-size: clamp(30px, 3.4vw, 48px);
  margin: 0 0 18px;
}

.sr-split--contact {
  align-items: start;
}

/* Très petits écrans : le libellé « Menu » devient invisible mais reste lu */
@media (max-width:420px) {
  .sr-burger__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .sr-burger {
    padding-inline: 12px;
  }
}

/* Mobile : panier + menu calés à droite (le panneau de navigation passe en surimpression) */
@media (max-width:960px) {
  .sr-header__actions {
    margin-left: auto;
  }
}

/* Listes de navigation sans puces (pied de page, menus) */
.sr-footer ul,
.sr-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-cart h2,
.srcc-cart-h {
  font-size: clamp(20px, 1.8vw, 24px);
  margin: 0 0 16px;
}

/* Îlot : en-tête / pied d'une autre direction que la page.
   display:contents garde le comportement « collant » de l'en-tête ;
   les jetons --sr-* de la direction de l'îlot s'héritent quand même. */
.sr-island {
  display: contents;
  font-family: var(--sr-fbody);
  color: var(--sr-ink);
}

/* ---------- Effets rares : mécaniques communes (activées par theme.js) ---------- */
/* Tableau à palettes : chaque lettre a la largeur de sa lettre finale */
.sr-flap {
  display: inline-block;
  text-align: center;
}

/* Compteur mécanique : un rouleau 0-9 par chiffre, qui tourne jusqu'à sa valeur */
.sr-odo {
  display: inline;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* inline : les espaces entre chiffres et unités sont conservés */
.sr-odo__d {
  display: inline-block;
  height: 1em;
  line-height: 1;
  overflow: hidden;
  vertical-align: -.1em;
}

.sr-odo__s {
  display: block;
  white-space: pre;
  line-height: 1;
  transform: translateY(0);
  transition: transform 1.3s var(--sr-ease-expo);
  transition-delay: calc(var(--k, 0) * 110ms);
}

.sr-odo.is-on .sr-odo__s {
  transform: translateY(calc(var(--n) * -1em));
}

/* ---------- Sélecteur de direction (pilule en bas de page, inc/switcher.php) ----------
   Couleurs neutres, identiques sur les trois directions : texte #F4F1FF sur #111218
   (18:1), gris #B9B8CC (10:1), page active inversée. */
.sr-switcher {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px;
  background: rgba(17, 18, 24, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  transform: translateX(-50%);
}

.sr-switcher__h {
  padding: 0 8px 0 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #B9B8CC;
}

.sr-switcher ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.sr-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  color: #F4F1FF;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--sr-dur) ease, color var(--sr-dur) ease;
}

.sr-switcher a.is-active {
  background: #F4F1FF;
  color: #111218;
}

.sr-switcher a:focus-visible {
  outline: 3px solid #FFD23F;
  outline-offset: 2px;
}

@media (hover:hover) and (pointer:fine) {
  .sr-switcher a:not(.is-active):hover {
    background: rgba(255, 255, 255, .12);
  }
}

.sr-switcher__sw {
  display: inline-flex;
}

.sr-switcher__sw i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: -4px;
  border: 2px solid #111218;
}

.sr-switcher__sw i:first-child {
  margin-left: 0;
}

.sr-switcher a.is-active .sr-switcher__sw i {
  border-color: #F4F1FF;
}

body.has-sr-switcher {
  padding-bottom: 84px;
}

/* le bas de page reste lisible au-dessus de la pilule */
/* Page de commande (barre panier flottante en bas) : la pilule se pose juste
   au-dessus de la barre, et s'efface quand le récap est déplié */
body.has-sr-switcher:has(.srcc-kiosk) {
  padding-bottom: 0;
}

body:has(.srcc-kiosk) .sr-switcher {
  bottom: 92px;
  transition: opacity 200ms ease, visibility 200ms;
}

body:has(.srcc-k-recap-toggle[aria-expanded="true"]) .sr-switcher,
body:has(.srcc-modal:not([hidden])) .sr-switcher {
  opacity: 0;
  visibility: hidden;
}

@media (max-width:700px) {
  body:has(.srcc-kiosk) .sr-switcher {
    bottom: 84px;
  }
}

.sr-motion .sr-switcher {
  animation: sr-switch-in 320ms var(--sr-ease-out) 600ms both;
}

@keyframes sr-switch-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

.sr-switcher__s {
  display: none;
}

@media (max-width:640px) {

  .sr-switcher__h,
  .sr-switcher__l {
    display: none;
  }

  .sr-switcher__s {
    display: inline;
  }

  .sr-switcher a {
    padding: 0 12px 0 10px;
    font-size: 13px;
  }
}

@media print {
  .sr-switcher {
    display: none !important;
  }
}

/* Restaurant choisi dans l'en-tête : à côté du panier (nom + statut) ; sur mobile,
   icône dans la barre et carte complète en tête du menu */
.sr-spot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 220px;
  padding: 4px 12px 4px 10px;
  border: var(--sr-bw) solid var(--sr-line);
  border-radius: 999px;
  background: var(--sr-surface);
  color: var(--sr-ink);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.15;
  transition: border-color var(--sr-dur) ease;
}

.sr-spot-chip svg {
  flex: 0 0 auto;
  color: var(--sr-accent-text, var(--sr-accent));
}

.sr-spot-chip__t {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sr-spot-chip__l {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-spot-chip .sr-spot-chip__s {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--sr-muted);
}

.sr-spot-chip .sr-spot-chip__s .sr-open__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
}

.sr-spot-chip .sr-spot-chip__s .sr-open__txt {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sr-spot-chip--bar {
  position: relative;
  max-width: 200px;
  flex: 0 1 auto;
  min-width: 0;
}

.sr-spot-chip--bar .sr-spot-chip__flag {
  position: absolute;
  top: -9px;
  right: -4px;
  padding: 2px 7px;
  font-size: 9px;
  box-shadow: 0 0 0 2px var(--sr-bg);
}

.sr-spot-chip__flag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sr-accent);
  color: var(--sr-on-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sr-spot-chip.is-empty {
  border-style: dashed;
  font-weight: 700;
}

@media (hover:hover) and (pointer:fine) {
  .sr-spot-chip:hover {
    border-color: var(--sr-accent);
  }
}

.sr-spot-chip:focus-visible {
  outline: 3px solid var(--sr-focus, var(--sr-accent));
  outline-offset: 2px;
}

.sr-spot-chip--panel {
  display: none;
}

/* En-tête : pas de retour à la ligne dans le logo, le menu ni le panier ; entre tablette et grand écran, le sélecteur ne garde que le nom */
.sr-header__bar>a:first-child,
.sr-header .sr-menu a,
.sr-header .sr-cart-link {
  white-space: nowrap;
}

.sr-header__bar>a:first-child {
  flex-shrink: 0;
}

@media (min-width:1101px) and (max-width:1366px) {
  .sr-spot-chip--bar {
    max-width: 150px;
  }

  .sr-spot-chip--bar .sr-spot-chip__s {
    display: none;
  }
}

@media (min-width:961px) and (max-width:1100px) {
  .sr-spot-chip--bar {
    width: 44px;
    height: 44px;
    max-width: none;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .sr-spot-chip--bar .sr-spot-chip__t {
    display: none;
  }

  .sr-header .sr-header__actions>.btn {
    display: none !important;
  }

  .sr-header .sr-cart-link [data-srcc-cart] {
    display: none;
  }

  /* panier en icône, comme sur mobile */
  /* déjà dans le menu (« Commander ») : place gagnée */
}

/* Mobile (menu replié) : icône seule dans la barre, carte complète dans le menu */
@media (max-width:960px) {
  .sr-spot-chip--bar {
    width: 44px;
    height: 44px;
    max-width: none;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .sr-spot-chip--bar .sr-spot-chip__t,
  .sr-spot-chip--bar .sr-spot-chip__flag {
    display: none;
  }

  .sr-spot-chip--panel {
    display: flex;
    max-width: none;
    width: 100%;
    border-radius: var(--sr-radius, 14px);
    padding: 10px 14px;
    margin-bottom: 12px;
  }
}

/* Produit épuisé / pas vendu dans le restaurant choisi (cartes du thème) */
.sr-item-link.is-soldout {
  position: relative;
  cursor: not-allowed;
}

.sr-item-link.is-soldout img {
  filter: grayscale(1);
  opacity: .55;
}

.sr-item-link.is-soldout::after {
  content: attr(data-soldout);
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--sr-ink);
  color: var(--sr-bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.srcc-was {
  margin-right: 4px;
  font-size: .8em;
  font-weight: 500;
  color: var(--sr-muted);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}