/*
  Zyllow : le complément de Tailwind pour le nouveau design.

  La mise en page, les couleurs, les espacements et les tailles sont en classes Tailwind dans les vues Blade.
  Ce fichier ne contient que ce que Tailwind ne sait pas faire seul, ou ce qui se répète trop pour être recopié :
    1. les deux polices (Recursive pour les titres et les prix, Mona Sans pour le texte) et leurs polices de secours ;
    2. les valeurs du design (couleurs, tailles fluides, espacements, courbe d'animation) en variables CSS ;
    3. les voix typographiques : .zy-title, .zy-mono, .zy-text ;
    4. les apparitions au défilement (.zy-rise, .zy-mask), déclenchées par x-intersect (Alpine, inclus dans Livewire 3) ;
    5. les maquettes répétées sur la page : le téléphone (.zy-phone), son écran de menu (.zy-menu, .zy-dish) et le
       chevalet de table (.zy-tent) ;
    6. les animations (@keyframes) et le mode « réduire les animations ».

  À charger dans le <head> du layout, après le CSS de Tailwind :
    <link rel="preload" href="{{ asset('assets/zyllow/fonts/recursive-zyllow.woff2') }}" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="{{ asset('assets/zyllow/fonts/mona-sans-zyllow.woff2') }}" as="font" type="font/woff2" crossorigin>
    <link rel="stylesheet" href="{{ asset('assets/zyllow/css/zyllow.css') }}">
*/

/* ---------- 1. Polices ---------- */

/* Recursive (SIL OFL 1.1, Arrow Type), sous-ensemble français : titres (Cursive 1, Casual 0,53) et prix (Mono). */
@font-face {
  font-family: 'Recursive Zyllow';
  src: url('../fonts/recursive-zyllow.woff2') format('woff2-variations'),
    url('../fonts/recursive-zyllow.woff2') format('woff2');
  font-weight: 300 1000;
  font-style: normal;
  font-display: swap;
}

/* Mona Sans (SIL OFL 1.1, GitHub), sous-ensemble français : le texte courant, les boutons, l'interface. */
@font-face {
  font-family: 'Mona Sans Zyllow';
  src: url('../fonts/mona-sans-zyllow.woff2') format('woff2-variations'),
    url('../fonts/mona-sans-zyllow.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* Polices de secours calibrées (Roboto sur Android, Arial ailleurs) : aucun saut quand la vraie police arrive. */
@font-face {
  font-family: 'Recursive Repli R';
  src: local('Roboto'), local('Roboto-Regular');
  font-weight: 300 649;
  size-adjust: 114.2%;
  ascent-override: 83.2%;
  descent-override: 21.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Recursive Repli R';
  src: local('Roboto Bold'), local('Roboto-Bold');
  font-weight: 650 1000;
  size-adjust: 111.6%;
  ascent-override: 85.1%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Recursive Repli A';
  src: local('Arial'), local('ArialMT'), local('Helvetica');
  font-weight: 300 649;
  size-adjust: 113.5%;
  ascent-override: 83.7%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Recursive Repli A';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Helvetica-Bold');
  font-weight: 650 1000;
  size-adjust: 105%;
  ascent-override: 90.5%;
  descent-override: 23.8%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Mona Repli R';
  src: local('Roboto'), local('Roboto-Regular');
  font-weight: 200 599;
  size-adjust: 104.4%;
  ascent-override: 104.4%;
  descent-override: 30.7%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Mona Repli R';
  src: local('Roboto Bold'), local('Roboto-Bold');
  font-weight: 600 900;
  size-adjust: 105.9%;
  ascent-override: 102.9%;
  descent-override: 30.2%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Mona Repli A';
  src: local('Arial'), local('ArialMT'), local('Helvetica');
  font-weight: 200 599;
  size-adjust: 103.3%;
  ascent-override: 105.5%;
  descent-override: 31%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Mona Repli A';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Helvetica-Bold');
  font-weight: 600 900;
  size-adjust: 99.7%;
  ascent-override: 109.3%;
  descent-override: 32.1%;
  line-gap-override: 0%;
}

/* ---------- 2. Valeurs du design ---------- */

:root {
  --zy-yellow: #fce91a; /* le jaune des publications */
  --zy-sun: #fff6a0; /* halo de midi */
  --zy-ink: #15120a; /* noir charbon */
  --zy-muted: #4e4410; /* texte secondaire sur jaune */
  --zy-muted-light: #5b5546; /* texte secondaire sur blanc */
  --zy-red: #e30613; /* actions et feutre de correction */
  --zy-red-deep: #9e0410;
  --zy-kraft: #eedfc2;
  --zy-gold: #c9a23a;
  --zy-night: #15120a;
  --zy-night-2: #26200f;
  --zy-night-ink: #fbf6e3;
  --zy-night-muted: #cfc7aa;
  --zy-sand: #f3ead2;
  --zy-bubble: #dff4c9;
  --zy-ok: #128a4a;

  --zy-font-title: 'Recursive Zyllow', 'Recursive Repli R', 'Recursive Repli A', ui-sans-serif, system-ui, sans-serif;
  --zy-font-text: 'Mona Sans Zyllow', 'Mona Repli R', 'Mona Repli A', ui-sans-serif, system-ui, sans-serif;

  /* Tailles fluides (320 → 1440 px) */
  --zy-step--2: clamp(0.74rem, 0.72rem + 0.1vw, 0.82rem);
  --zy-step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.96rem);
  --zy-step-0: clamp(1.04rem, 0.99rem + 0.24vw, 1.17rem);
  --zy-step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.45rem);
  --zy-step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.95rem);
  --zy-step-3: clamp(1.7rem, 1.42rem + 1.35vw, 2.75rem);
  --zy-step-4: clamp(2.05rem, 1.62rem + 2.1vw, 3.7rem);
  --zy-step-5: clamp(2.3rem, 1.6rem + 3.4vw, 5rem);
  --zy-step-6: clamp(2.45rem, 1.45rem + 4.9vw, 6.2rem);

  /* Rythme vertical */
  --zy-section-y: clamp(5rem, 3.4rem + 5.6vw, 9.5rem);
  --zy-head-gap: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --zy-body-gap: clamp(2.75rem, 2.1rem + 2.6vw, 4.75rem);
  --zy-gutter: clamp(20px, 5vw, 72px);
  --zy-header-h: 68px;

  /* Une seule courbe pour tout le site : arrivée douce, aucun rebond. */
  --zy-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --zy-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-width: 720px) {
  :root {
    --zy-header-h: 60px;
  }
}

html:has(.zy-page) {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--zy-header-h) + 16px);
}

/* ---------- 3. Voix typographiques ---------- */

/* Le texte : Mona Sans. Posé sur la racine de chaque vue (et sur la navbar, le footer). */
.zy-text,
.zy-page {
  font-family: var(--zy-font-text);
  font-weight: 420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.zy-page {
  color: var(--zy-ink);
  background: var(--zy-yellow);
  font-size: var(--zy-step-0);
  overflow-x: clip;
}

.zy-page p {
  text-wrap: pretty;
}

.zy-page :is(h1, h2, h3, h4) {
  text-wrap: balance;
}

/*
  Les titres : Recursive, réglage Slant 0, Weight 1000, Casual 0,53 (figé dans le fichier), Cursive 1.
  La graisse passe par font-variation-settings : aucune classe font-* de Tailwind ne peut l'alléger par erreur.
  Taille, interlignage et interlettrage restent en classes Tailwind (ex. leading-[1] tracking-[-0.03em]).
*/
.zy-title {
  font-family: var(--zy-font-title);
  font-weight: 1000;
  font-variation-settings: 'wght' 1000, 'MONO' 0, 'CRSV' 1;
}

/* Les prix, tickets, additions : la voix du ticket de caisse (Recursive Mono), chiffres tabulaires. */
.zy-mono {
  font-family: var(--zy-font-title);
  font-variation-settings: 'MONO' 1, 'CRSV' 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. Apparitions au défilement ---------- */

/*
  Usage (dans une vue dont la racine a un x-data) :
    <h2 class="zy-rise" x-intersect.once.margin.-10%="$el.classList.add('is-in')">…</h2>
    Décalage d'une cascade : style="--zy-delay: .12s"
  Titre qui monte sous un cache : <h2 class="zy-mask" x-intersect…><span>Ligne 1</span> <span>Ligne 2</span></h2>
  Rien n'est caché sans JavaScript (html.zy-js est posé par Alpine), ni en mouvement réduit.
*/
.zy-js .zy-rise {
  opacity: 0;
  transform: translate3d(0, 2.25rem, 0);
  transition:
    opacity 0.9s var(--zy-ease) var(--zy-delay, 0s),
    transform 1.15s var(--zy-ease) var(--zy-delay, 0s);
}

.zy-js .zy-rise.is-in {
  opacity: 1;
  transform: none;
}

.zy-mask > * {
  display: block;
}

.zy-js .zy-mask > * {
  overflow: clip;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.zy-js .zy-mask > * > * {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.15s var(--zy-ease);
}

.zy-js .zy-mask > :nth-child(2) > * {
  transition-delay: 0.09s;
}

.zy-js .zy-mask > :nth-child(3) > * {
  transition-delay: 0.18s;
}

.zy-js .zy-mask.is-in > * > * {
  transform: none;
}

/* ---------- 5a. Le téléphone ---------- */

/*
  <div class="zy-phone [--pw:290px]"> <div class="zy-phone__screen"> … </div> </div>
  Tout l'intérieur est en em : la maquette garde ses proportions à toutes les tailles (--pw = largeur, 290 px par défaut,
  réglable en classe Tailwind, y compris par taille d'écran : [--pw:250px] min-[960px]:[--pw:300px]).
  --m-accent : la couleur du restaurant (rouge par défaut).
*/
.zy-phone {
  position: relative;
  width: var(--pw, 290px);
  aspect-ratio: 9 / 19.2;
  flex: none;
  font-family: var(--zy-font-text);
  font-size: calc(var(--pw, 290px) * 0.0455);
  padding: 0.52em;
  border-radius: 2.7em;
  background: linear-gradient(150deg, #4a4436 0%, #120f08 34%, #1d1910 70%, #3b3527 100%);
  box-shadow:
    inset 0 0 0 0.12em #6c6553,
    inset 0 0 0 0.32em #0a0805,
    0 2.4em 4em -1.6em rgb(21 18 10 / 0.55),
    0 0.6em 1.2em -0.4em rgb(21 18 10 / 0.3);
  line-height: 1.25;
  color: #15120a;
  text-align: left;
}

/* L'île du téléphone */
.zy-phone::before {
  content: '';
  position: absolute;
  z-index: 8;
  top: 1.12em;
  left: 50%;
  width: 5.4em;
  height: 1.55em;
  translate: -50% 0;
  border-radius: 1em;
  background: #050403;
}

.zy-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.2em;
  background: #fbfaf6;
  isolation: isolate;
}

.zy-phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05em 1.65em 0.35em;
  font-size: 0.74em;
  font-weight: 700;
}

.zy-phone__sig {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18em;
  height: 0.9em;
}

.zy-phone__sig i {
  width: 0.24em;
  background: currentColor;
  border-radius: 0.1em;
}

.zy-phone__sig i:nth-child(1) {
  height: 40%;
}

.zy-phone__sig i:nth-child(2) {
  height: 70%;
}

.zy-phone__sig i:nth-child(3) {
  height: 100%;
}

.zy-phone__sig b {
  width: 1.6em;
  height: 0.85em;
  margin-left: 0.35em;
  border-radius: 0.25em;
  border: 0.12em solid currentColor;
  background: linear-gradient(90deg, currentColor 70%, transparent 70%) content-box;
  padding: 0.08em;
}

/* La notification, posée sous l'île comme une vraie bannière. Alpine la montre avec la classe .is-on. */
.zy-phone__toast {
  position: absolute;
  z-index: 9;
  top: 3.7em;
  left: 0.8em;
  right: 0.8em;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.7em 0.85em;
  border-radius: 1.1em;
  background: #15120a;
  color: #fff;
  font-size: 0.78em;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: 0 0.8em 1.6em -0.6em rgb(0 0 0 / 0.5);
  opacity: 0;
  transform: translate3d(0, -60%, 0) scale(0.94);
  transform-origin: 50% 0;
  transition:
    opacity 0.5s var(--zy-ease),
    transform 0.75s var(--zy-ease);
  pointer-events: none;
}

.zy-phone__toast.is-on {
  opacity: 1;
  transform: none;
}

.zy-phone__toast svg {
  width: 1.5em;
  height: 1.5em;
  flex: none;
  padding: 0.28em;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
}

/* ---------- 5b. L'écran de menu (ce que voit le client) ---------- */

.zy-menu {
  padding: 0.35em 0.95em 1em;
}

.zy-menu__head {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.45em 0 0.75em;
}

.zy-menu__logo {
  display: grid;
  place-items: center;
  width: 2.35em;
  height: 2.35em;
  flex: none;
  border-radius: 0.75em;
  background: var(--m-accent, var(--zy-red));
  color: #fff;
  font-family: var(--zy-font-title);
  font-variation-settings: 'wght' 1000, 'MONO' 0, 'CRSV' 1;
  font-size: 1em;
  transition: background-color 0.55s var(--zy-ease);
}

.zy-menu__id {
  min-width: 0;
}

.zy-menu__name {
  font-weight: 800;
  font-size: 1.06em;
  line-height: 1.1;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zy-menu__place {
  font-size: 0.72em;
  color: #6b6555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zy-menu__search {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  margin-left: auto;
  flex: none;
  border-radius: 50%;
  background: #efece2;
}

.zy-menu__search svg {
  width: 1em;
  height: 1em;
}

.zy-menu__tabs {
  display: flex;
  gap: 0.4em;
  margin-bottom: 0.75em;
  overflow: hidden;
}

.zy-menu__tabs span {
  padding: 0.45em 0.85em;
  border-radius: 999px;
  background: #efece2;
  font-size: 0.72em;
  font-weight: 650;
  white-space: nowrap;
}

.zy-menu__tabs .is-on {
  background: var(--m-accent, var(--zy-red));
  color: #fff;
  transition: background-color 0.55s var(--zy-ease);
}

.zy-menu__today {
  position: relative;
  display: grid;
  margin-bottom: 0.6em;
  padding: 0.6em 0.75em;
  border-radius: 0.9em;
  background: #fff6a0;
  font-size: 0.74em;
  line-height: 1.25;
}

/* Les deux lignes du bandeau (horaires / plat du jour) se relaient au même endroit. */
.zy-menu__today > * {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em 0.5em;
  transition:
    opacity 0.45s var(--zy-ease),
    transform 0.75s var(--zy-ease);
}

.zy-menu__today b {
  font-weight: 800;
  color: #9e0410;
}

.zy-menu__today-price {
  margin-left: auto;
  font-weight: 800;
  font-family: var(--zy-font-title);
  font-variation-settings: 'MONO' 1, 'CRSV' 0;
}

.zy-menu__section {
  margin: 0.9em 0 0.45em;
  font-size: 0.8em;
  font-weight: 800;
}


.zy-menu__list {
  display: grid;
  gap: 0.55em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zy-menu__list--plain {
  gap: 0.35em;
}

.zy-dish {
  position: relative;
  display: grid;
  grid-template-columns: 4em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7em;
  padding: 0.45em 0.7em 0.45em 0.45em;
  border-radius: 1em;
  background: #fff;
  box-shadow:
    0 0.12em 0.5em rgb(21 18 10 / 0.07),
    0 0 0 1px rgb(21 18 10 / 0.04);
  transition:
    background-color 0.9s var(--zy-ease),
    opacity 0.55s var(--zy-ease);
}

.zy-dish--plain {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.55em 0.75em;
}

.zy-dish__img,
.zy-dish__ph {
  width: 4em;
  height: 3.15em;
  border-radius: 0.7em;
  object-fit: cover;
  transition: filter 0.55s var(--zy-ease);
}

.zy-dish__ph {
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--m-accent, var(--zy-red)) 14%, #fff);
  color: var(--m-accent, var(--zy-red));
  font-family: var(--zy-font-title);
  font-variation-settings: 'wght' 1000, 'MONO' 0, 'CRSV' 1;
  font-size: 1.15em;
}

.zy-dish__body {
  min-width: 0;
}

.zy-dish__name {
  font-weight: 750;
  font-size: 0.86em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zy-dish__desc {
  font-size: 0.68em;
  color: #6b6555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Le prix : l'ancien et le nouveau se relaient sous ce cache (voir zyPrice dans les vues). */
.zy-dish__price {
  position: relative;
  display: grid;
  font-size: 0.86em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--m-accent, var(--zy-red));
  white-space: nowrap;
  text-align: right;
  overflow: clip;
  padding-block: 0.12em;
  margin-block: -0.12em;
  transition: color 0.55s var(--zy-ease), opacity 0.55s var(--zy-ease);
}

.zy-dish__price > * {
  grid-area: 1 / 1;
}

.zy-dish__out {
  position: absolute;
  right: 0.6em;
  top: 50%;
  translate: 0 -50%;
  padding: 0.35em 0.6em;
  border-radius: 999px;
  background: #15120a;
  color: #fff;
  font-size: 0.66em;
  font-weight: 750;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.55s var(--zy-ease),
    transform 0.55s var(--zy-ease);
}

.zy-dish.is-out {
  background: #f1efe9;
}

.zy-dish.is-out .zy-dish__img {
  filter: grayscale(1) opacity(0.55);
}

.zy-dish.is-out :is(.zy-dish__name, .zy-dish__desc) {
  color: #8c8778;
}

.zy-dish.is-out .zy-dish__price {
  opacity: 0;
}

.zy-dish.is-out .zy-dish__out {
  opacity: 1;
  transform: none;
}

.zy-dish.is-flash {
  background: #fff6a0;
}

/* Variantes d'écran : en-tête centré avec photo de couverture, plats en cartes, choix de la langue. */
.zy-menu__head--center {
  justify-content: center;
  text-align: center;
  padding-top: 1.6em;
}

.zy-menu__cover {
  position: relative;
  margin: -0.35em -0.95em 0;
  height: 6.6em;
}

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

.zy-menu__logo--big {
  position: absolute;
  left: 50%;
  bottom: -1.3em;
  translate: -50% 0;
  width: 2.8em;
  height: 2.8em;
  box-shadow: 0 0 0 0.22em #fbfaf6;
}

.zy-menu__list--cards {
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

.zy-dish--card {
  grid-template-columns: 1fr;
  gap: 0.25em;
  padding: 0.4em 0.4em 0.55em;
  align-items: start;
}

.zy-dish--card .zy-dish__img {
  width: 100%;
  height: 4.4em;
}

.zy-dish--card :is(.zy-dish__name, .zy-dish__price) {
  font-size: 0.78em;
  text-align: left;
}

.zy-menu__lang {
  display: inline-flex;
  margin-left: auto;
  padding: 0.18em;
  border-radius: 999px;
  background: #efece2;
  font-size: 0.68em;
  font-weight: 800;
}

.zy-menu__lang span {
  padding: 0.3em 0.6em;
  border-radius: 999px;
}

.zy-menu__lang .is-on {
  background: var(--m-accent, var(--zy-red));
  color: #fff;
}

.zy-theme-green {
  --m-accent: #0f7a43;
  background: #f4f8f2;
}

/* ---------- 5c. Le chevalet de table ---------- */

/*
  <figure class="zy-tent [--tw:140px]"> <div class="zy-tent__card"> <p class="zy-tent__name">…</p>
  <p class="zy-tent__cta">Scannez notre menu</p> <img class="zy-tent__qr" …> <p class="zy-tent__by">Propulsé par Zyllow</p>
  </div> <div class="zy-tent__base"></div> </figure>
*/
.zy-tent {
  width: var(--tw, 140px);
  margin: 0;
  font-family: var(--zy-font-text);
  font-size: calc(var(--tw, 140px) * 0.08);
}

.zy-tent__card {
  position: relative;
  padding: 1.05em 0.9em 0.8em;
  border-radius: 0.9em 0.9em 0.35em 0.35em;
  background: linear-gradient(170deg, #fff 60%, #f3f1ea);
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgb(21 18 10 / 0.06),
    inset 0 -0.25em 0 rgb(21 18 10 / 0.05),
    0 1.6em 2.2em -1.2em rgb(21 18 10 / 0.45);
}

.zy-tent__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / 0) 40%, rgb(255 255 255 / 0.7) 48%, rgb(255 255 255 / 0) 56%);
  pointer-events: none;
}

.zy-tent__name {
  font-family: var(--zy-font-title);
  font-variation-settings: 'wght' 1000, 'MONO' 0, 'CRSV' 1;
  font-size: 1.15em;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--m-accent, var(--zy-red));
  overflow-wrap: anywhere;
}

.zy-tent__cta {
  margin: 0.35em 0 0.55em;
  font-size: 0.72em;
  font-weight: 650;
  color: #5b5546;
}

.zy-tent__qr {
  display: block;
  width: 82%;
  aspect-ratio: 1;
  height: auto;
  margin-inline: auto;
}

.zy-tent__by {
  margin-top: 0.5em;
  font-size: 0.58em;
  font-weight: 650;
  color: #6b6555;
}

.zy-tent__base {
  height: 1.7em;
  margin: -0.25em -0.7em 0;
  border-radius: 0.35em 0.35em 0.5em 0.5em;
  background: linear-gradient(180deg, #c48a52 0%, #9b6534 45%, #6f4520 100%);
  box-shadow:
    inset 0 0.12em 0 rgb(255 255 255 / 0.25),
    0 1em 1.4em -0.8em rgb(21 18 10 / 0.6);
}

/* ---------- 6. Animations ---------- */

[x-cloak] {
  display: none !important;
}

/* Les plats qui flottent lentement */
@keyframes zy-float {
  from {
    transform: translate3d(0, -5px, 0) rotate(-1.2deg);
  }

  to {
    transform: translate3d(0, 6px, 0) rotate(1.2deg);
  }
}

/* L'arrivée du premier écran */
@keyframes zy-in {
  from {
    opacity: 0.001;
    transform: translate3d(0, 26px, 0);
  }
}

/* « … en train d'écrire » */
@keyframes zy-typing {
  to {
    background-position: 100% 0;
  }
}

/* L'épingle de Parakou */
@keyframes zy-pulse {
  from {
    transform: scale(0.4);
    opacity: 0.7;
  }

  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* La vapeur du plat (intro) */
@keyframes zy-steam {
  0% {
    transform: translateY(14px) scaleY(0.5);
    opacity: 0;
  }

  40% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(-22px) scaleY(1.1);
    opacity: 0;
  }
}

.zy-float {
  animation: zy-float var(--fd, 8s) ease-in-out var(--fdel, 0s) infinite alternate;
}

/* Mouvement réduit : tout est en place, rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
  html:has(.zy-page) {
    scroll-behavior: auto;
  }

  .zy-page *,
  .zy-page *::before,
  .zy-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .zy-js .zy-rise,
  .zy-js .zy-mask > * > * {
    opacity: 1;
    transform: none;
  }
}

/* ====================================================================================================
   Complément : 05-intro
   ==================================================================================================== */

/* ---------- Intro « C'est servi » (05-intro.blade.php) ---------- */

/* Filet de sécurité : si Alpine ne démarre jamais, l'intro s'efface d'elle-même au bout de 9 s. */
.zy-intro {
  animation: zy-intro-failsafe 0s linear 9s forwards;
}

@keyframes zy-intro-failsafe {
  to {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

/* ====================================================================================================
   Complément : 40-steps
   ==================================================================================================== */

/* 4. Comment ça marche : le bord dentelé des bons de cuisine (une dent tous les 12 px, découpée par un masque). */
.zy-steps-ticket {
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}

/* ====================================================================================================
   Complément : 50-try
   ==================================================================================================== */

/*
  5. Essayer : la taille du téléphone et du chevalet de l'aperçu. zyllow.css donne déjà une valeur à --pw / --tw sur
  .zy-phone / .zy-tent et se charge après Tailwind : une classe [--pw:…] perdrait. D'où ce sélecteur double.
*/
.zy-try-phone.zy-phone {
  --pw: min(250px, 64vw);
}

/* line-height : celle du texte de la page, comme le chevalet de la landing (zyllow.css le resserre à 1,25). */
.zy-try-tent.zy-tent {
  --tw: min(132px, 34vw);
  line-height: 1.6;
}

@media (min-width: 960px) {
  .zy-try-phone.zy-phone {
    --pw: 280px;
  }

  .zy-try-tent.zy-tent {
    --tw: 150px;
  }
}

/* La rubrique « Boissons » du téléphone, comme sur la landing : intitulé un peu plus grand, lignes plus serrées. */
.zy-try-phone .zy-menu__section {
  font-size: 0.8em;
  font-weight: 820;
}

.zy-try-phone .zy-try-plain {
  gap: 0.35em;
}

/* ====================================================================================================
   Complément : 60-bill
   ==================================================================================================== */

/* ---------- 6. L'addition : le ticket de caisse ---------- */

/* Le bas du ticket en dents de scie, comme un ticket déchiré à la sortie de l'imprimante. */
.zy-bill-paper {
  --zig: 14px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
}

/* ====================================================================================================
   Complément : pricing
   ==================================================================================================== */

/*
  Zyllow : compléments de la page Abonnements (pricing.blade.php), réunis dans zyllow.css.
  Tout le reste est en classes Tailwind dans la vue. Sans ces règles, la page reste juste (seuls l'arrivée des
  chevalets, le motif de la conversation et les trois points « en train d'écrire » manquent).
*/

/* Les chevalets se déplient sur la table, du socle vers le haut (comme sur l'accueil). Aucun fondu, aucun rebond. */
@keyframes zy-pricing-stand {
  from {
    transform: perspective(900px) translate3d(0, 22px, 0) rotateX(70deg);
  }
}

.zy-pricing-tent {
  transform-origin: 50% 100%;
  animation: zy-pricing-stand 1.25s var(--zy-ease) var(--zy-delay, 0s) backwards;
}

/*
  Avec Alpine (html.zy-js), le chevalet attend que sa case arrive à l'écran : x-intersect pose .is-in sur la case
  (elle ne bouge pas, le chevalet plié n'est donc pas mesuré). Sans JavaScript, il se déplie au chargement.
  Dans les deux cas, rien n'est caché puis montré d'un coup.
*/
.zy-js :not(.is-in) > .zy-pricing-tent {
  animation-play-state: paused;
}

/* La conversation : le papier peint discret de WhatsApp (bols, assiettes, couverts). */
.zy-pricing-chat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9cdaa' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='22' cy='24' r='9'/%3E%3Cpath d='M16 24h12M70 20c6-8 16-8 22 0M66 26h30M96 70l10 10M100 66l10 10M18 84h22l-3 14H21zM60 90a10 10 0 0 0 20 0z'/%3E%3C/g%3E%3C/svg%3E");
}

/* « … en train d'écrire » : trois points dans la bulle, le temps que la réponse arrive. */
.zy-pricing-typing {
  display: block;
  width: 2.4em;
  height: 0.6em;
  background:
    radial-gradient(circle closest-side, #8a8472 90%, #0000) 0 50% / 0.6em 0.6em no-repeat,
    radial-gradient(circle closest-side, #8a8472 90%, #0000) 50% 50% / 0.6em 0.6em no-repeat,
    radial-gradient(circle closest-side, #8a8472 90%, #0000) 100% 50% / 0.6em 0.6em no-repeat;
  animation: zy-pricing-typing 0.9s steps(3) infinite;
}

@keyframes zy-pricing-typing {
  33% {
    opacity: 0.5;
  }

  66% {
    opacity: 0.8;
  }
}

/* Mouvement réduit : les chevalets sont debout tout de suite. */
@media (prefers-reduced-motion: reduce) {
  .zy-pricing-tent {
    animation: none;
  }
}
