/* Casa di Pizza
   Trois couleurs tirees du metier : le noir du four, le rouge tomate, le creme
   de la pate. Elles s'emploient en grands aplats, une section = une couleur.
   Le motif du site est le rond (disque de pate, pizza, pain) : photo d'accueil,
   sceau tournant, pizzas, tailles Normal / Maxi.
   Titres en capitales condensees tres grandes, prix en chasse fixe (ticket). */

:root {
    --nuit: #140e0b;
    --rouge: #ff4a1f;
    --pate: #f6ead6;
    --farine: #fffaf1;
    --trait: #e0d2ba;
    --doux: #6b5d4d;
    --doux-sombre: #c2b5a3;
    --trait-sombre: #3d312a;

    --titre: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', sans-serif;
    --texte: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --chiffres: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

    --entete: 64px;
    --marge: clamp(20px, 5vw, 72px);
    --bloc: clamp(72px, 10vw, 150px);
}

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

html {
    overflow-x: clip;
    /* La place de la barre de defilement est reservee en permanence : quand une
       fenetre fige la page, la barre disparait sans que la mise en page bouge. */
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--nuit);
    color: var(--nuit);
    font-family: var(--texte);
    font-size: 1.0625rem;
    line-height: 1.55;
}

body.avec-rappel { padding-bottom: 92px; }

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

/* Un element masque le reste, quel que soit le display de sa classe. */
[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* Interligne : jamais sous 1.02 sur un titre qui peut porter des accents.
   Constate le 2026-10-03 : sous 1, Chrome rogne l'accent des capitales (Î, Â)
   qui depasse de la boite de ligne. */
h1, h2, h3, h4 {
    font-family: var(--titre);
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0.005em;
}

h2 {
    font-size: clamp(3rem, 8.6vw, 8.75rem);
    line-height: 1.02;
    text-wrap: balance;
}

h2 em {
    font-style: normal;
    color: var(--rouge);
}

a { color: inherit; }

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

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

.chiffres {
    font-family: var(--chiffres);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.surtitre {
    font-family: var(--chiffres);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--doux);
    margin-bottom: 18px;
}

.annonce {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Apparition a l'arrivee dans l'ecran. Sans script, tout reste visible. */
.js .revele {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .revele.vu {
    opacity: 1;
    transform: none;
}

/* ---------- Boutons ---------- */

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    min-height: 58px;
    padding: 0 28px;
    border: 2px solid var(--rouge);
    border-radius: 999px;
    font-family: var(--titre);
    font-size: 1.4375rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

/* Un numero dans un bouton garde la police du bouton, en un peu plus leger. */
.bouton .chiffres,
.entete__tel .chiffres {
    font-family: var(--titre);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.bouton--plein { background: var(--rouge); color: var(--nuit); }
.bouton--plein:hover { background: var(--pate); border-color: var(--pate); }

.bouton--contour { background: transparent; color: var(--pate); border-color: #6a574a; }
.bouton--contour:hover { border-color: var(--rouge); color: var(--rouge); }

/* ---------- En-tete ---------- */

.entete {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--entete);
    padding: 0 var(--marge);
    background: var(--nuit);
    color: var(--pate);
}

.enseigne {
    font-family: var(--titre);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.enseigne span { color: var(--rouge); }

.entete__nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 0.9375rem;
    font-weight: 500;
}

.entete__nav a {
    text-decoration: none;
    color: var(--doux-sombre);
    padding: 6px 0;
}

.entete__nav a:hover { color: var(--pate); }

/* Etat d'ouverture : une pastille cerclee, un point qui respire quand c'est ouvert. */
.entete__etat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px !important;
    border: 1.5px solid var(--trait-sombre);
    border-radius: 999px;
    color: var(--pate) !important;
    font-weight: 700;
    white-space: nowrap;
}

.entete__etat::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--doux-sombre);
}

/* Point vert quand le service est en cours, rouge quand c'est ferme. */
.entete__etat--ouvert { border-color: #2fb36a; }
.entete__etat--ouvert::before { background: #2fb36a; animation: respire 2.2s ease-in-out infinite; }
.entete__etat--ferme { color: var(--doux-sombre) !important; }
.entete__etat--ferme::before { background: var(--rouge); }
.entete__etat:hover { border-color: var(--pate); }

@keyframes respire {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 179, 106, 0.6); }
    60% { box-shadow: 0 0 0 7px rgba(47, 179, 106, 0); }
}

.entete__tel {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--rouge);
    color: var(--nuit);
    text-decoration: none;
    white-space: nowrap;
}

.entete__tel-lib {
    font-family: var(--titre);
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.entete__tel:hover { background: var(--pate); }

/* ---------- Accueil ---------- */

.accueil {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(32px, 5vw, 64px);
    min-height: calc(100svh - var(--entete));
    padding: clamp(28px, 4vw, 56px) var(--marge) clamp(56px, 6vw, 88px);
    overflow: hidden;
    background: var(--nuit);
    color: var(--pate);
}

/* Halo chaud derriere la photo. */
.accueil__lueur {
    position: absolute;
    top: -22vw;
    right: -26vw;
    width: 86vw;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 74, 31, 0.5) 0%, rgba(255, 74, 31, 0.14) 38%, transparent 64%);
    animation: lueur 7s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes lueur {
    from { opacity: 0.65; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1.04); }
}

.accueil__disque {
    position: absolute;
    top: 4px;
    right: -7vw;
    width: min(44vw, 660px);
    aspect-ratio: 1;
}

.accueil__rond {
    position: absolute;
    inset: 0;
}

.accueil__rond img {
    position: absolute;
    inset: 12.5%;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    object-fit: cover;
}

.sceau {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Sens inverse des aiguilles : le texte avance vers sa propre fin, comme on le lit. */
    animation: tourne 44s linear infinite reverse;
}

.sceau text {
    font-family: var(--titre);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    fill: var(--pate);
}

@keyframes tourne {
    to { transform: rotate(360deg); }
}

.accueil__titre {
    position: relative;
    z-index: 2;
}

.accueil .surtitre { color: var(--rouge); }

/* La note Google tient dans la ligne du surtitre sur mobile ; le bureau a son grand bloc. */
.accueil__note { display: none; color: var(--doux-sombre); }
.accueil__note strong { color: var(--or); }

.accueil h1 {
    font-size: clamp(3.5rem, 8vw, 9.5rem);
    line-height: 1.02;
    letter-spacing: -0.005em;
}

/* Une ligne par bloc : la coupure tombe toujours au meme endroit. */
.accueil h1 > span { display: block; }
.accueil h1 .accueil__suite { color: var(--rouge); }

/* Les mots arrivent un par un, de bas en haut. L'animation n'est posee qu'une
   fois les polices chargees (classe .polices-pretes) : animee avant, la couche
   de rendu garde l'emprise de la police de secours et rogne les accents. Le
   script retire l'animation une fois jouee (.mot--fini). */
/* Chaque mot arrive en contour, un peu plus grand, puis se remplit en
   reprenant sa taille. Le depart et la duree viennent du script (--delai,
   --duree), selon un rythme de lecture. Le mode d'affichage ne change jamais
   en cours de route, pour que rien ne bouge d'un pixel a la fin. */
.polices-pretes .accueil h1 .mot {
    --encre-mot: var(--pate);
    display: inline-block;
    -webkit-text-stroke: 2px transparent;
    animation: mot var(--duree, 0.6s) cubic-bezier(0.2, 0.7, 0.2, 1) var(--delai, 0s) both;
}

.polices-pretes .accueil h1 .accueil__suite .mot { --encre-mot: var(--rouge); }

/* Titres de rubrique : memes mots, meme animation, jouee au passage au
   milieu de l'ecran (classe posee par le script). Invisibles avant. */
.titre-anime .mot {
    --encre-mot: var(--r-encre);
    display: inline-block;
    opacity: 0;
    -webkit-text-stroke: 2px transparent;
}

.titre-anime--joue .mot {
    animation: mot var(--duree, 0.45s) cubic-bezier(0.2, 0.7, 0.2, 1) var(--delai, 0s) both;
}

/* ---------- Balayage avec tranches (titres de « La maison ») ----------
   Le texte se devoile de gauche a droite. Les deux pseudo-elements sont des
   copies du texte (attr data-texte), decoupees en bande haute et bande basse,
   qui decrochent chacune un instant, l'une en rouge, l'autre en cyan. */
.balayage {
    position: relative;
    clip-path: inset(0 100% 0 0);
}

.balayage::before,
.balayage::after {
    content: attr(data-texte);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    white-space: inherit;
}

.balayage--joue { animation: balayage 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.balayage--joue::before { animation: tranche-haute 0.75s steps(1, end) both; color: var(--rouge); }
.balayage--joue::after { animation: tranche-basse 0.75s steps(1, end) both; color: #2fd3c8; }

@keyframes balayage {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes tranche-haute {
    0%, 42% { opacity: 0; }
    43% { opacity: 1; clip-path: inset(18% 0 58% 0); transform: translateX(-7px); }
    52% { opacity: 1; clip-path: inset(10% 0 66% 0); transform: translateX(5px); }
    60%, 100% { opacity: 0; }
}

@keyframes tranche-basse {
    0%, 47% { opacity: 0; }
    48% { opacity: 1; clip-path: inset(62% 0 14% 0); transform: translateX(6px); }
    57% { opacity: 1; clip-path: inset(70% 0 8% 0); transform: translateX(-4px); }
    64%, 100% { opacity: 0; }
}

/* Contour qui grossit, puis, au moment du remplissage, un accroc volontaire :
   trois ou quatre images par a-coups (steps), decalees et un peu inclinees,
   avec un dedoublement rouge et cyan, avant de se poser net. */
@keyframes mot {
    0% { opacity: 0; transform: scale(1.12); color: transparent; -webkit-text-stroke-color: var(--encre-mot); text-shadow: none; }
    35% { opacity: 1; transform: scale(1.04); color: transparent; -webkit-text-stroke-color: var(--encre-mot); text-shadow: none; animation-timing-function: steps(1, end); }
    50% { opacity: 1; transform: scale(1.03) translateX(-3px) skewX(-5deg); color: transparent; -webkit-text-stroke-color: var(--encre-mot); text-shadow: 3px 0 rgba(255, 74, 31, 0.7), -3px 0 rgba(47, 211, 200, 0.7); animation-timing-function: steps(1, end); }
    60% { opacity: 1; transform: scale(1.01) translateX(2px) skewX(3deg); color: var(--encre-mot); -webkit-text-stroke-color: transparent; text-shadow: -2px 0 rgba(255, 74, 31, 0.6), 2px 0 rgba(47, 211, 200, 0.6); animation-timing-function: steps(1, end); }
    70% { opacity: 1; transform: none; color: var(--encre-mot); -webkit-text-stroke-color: transparent; text-shadow: none; }
    100% { opacity: 1; transform: none; color: var(--encre-mot); -webkit-text-stroke-color: transparent; text-shadow: none; }
}

.accueil__bas {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto auto;
    align-items: center;
    gap: 24px clamp(24px, 4vw, 64px);
    padding-top: 28px;
    border-top: 1px solid var(--trait-sombre);
}

.accueil__chapo {
    max-width: 32em;
    font-size: 1.125rem;
    color: #e6dac6;
}

.accueil__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accueil__rubriques {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
}

/* ---------- Note Google ---------- */
/* Or sur fond sombre, cinq etoiles remplies au prorata, un reflet qui passe. */
:root { --or: #ffc83d; --or-clair: #fff0b8; }

.note {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--doux-sombre);
}

.note__chiffre {
    font-family: var(--titre);
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 0.8;
    color: var(--or);
    text-shadow: 0 0 18px rgba(255, 200, 61, 0.45);
}

.note__corps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9375rem;
    line-height: 1.2;
}

/* Les etoiles : un masque en forme d'etoile repete cinq fois, rempli a --pct. */
.etoiles {
    display: block;
    width: 6.4em;
    height: 1.2em;
    font-size: 1rem;
    background: linear-gradient(90deg, var(--or) var(--pct), rgba(255, 255, 255, 0.22) var(--pct));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.5 7.1.9-5.2 4.9 1.3 7.1L12 17.7l-6.3 3.5 1.3-7.1L1.8 9.2l7.1-.9z'/%3E%3C/svg%3E") 0 0 / 1.28em 1.2em repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.5 7.1.9-5.2 4.9 1.3 7.1L12 17.7l-6.3 3.5 1.3-7.1L1.8 9.2l7.1-.9z'/%3E%3C/svg%3E") 0 0 / 1.28em 1.2em repeat-x;
    position: relative;
    overflow: hidden;
}

/* Le reflet qui traverse les etoiles toutes les quelques secondes. */
.etoiles::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(100deg, transparent, var(--or-clair) 50%, transparent);
    opacity: 0.85;
    animation: eclat 4.5s ease-in-out infinite;
}

@keyframes eclat {
    0%, 55% { transform: translateX(-120%); }
    80%, 100% { transform: translateX(300%); }
}

.note__detail { color: var(--doux-sombre); }
.accueil__avis:hover .note__detail { color: var(--or-clair); }

.accueil__avis { align-self: center; }

/* Version sur fond clair, en bas de page, cliquable vers Google. */
.note--infos { margin: 4px 0 12px; color: var(--doux); }
.note--infos:hover .note__chiffre { color: var(--rouge); }
.note--infos:hover .note__detail { color: var(--nuit); text-decoration: underline; text-underline-offset: 3px; }
.note--infos .note__chiffre { font-size: 3.5rem; color: #e0a500; text-shadow: none; }
.note--infos .etoiles { background: linear-gradient(90deg, #e0a500 var(--pct), rgba(20, 14, 11, 0.14) var(--pct)); }
.note--infos .note__detail { color: var(--doux); }

/* ---------- Bandeau defilant ---------- */

.bandeau {
    position: relative;
    z-index: 3;
    margin: -38px 0;
    overflow: hidden;
    background: var(--rouge);
    color: var(--nuit);
    transform: rotate(-1.6deg) scale(1.04);
}

.bandeau__piste {
    display: flex;
    width: max-content;
    animation: defile 38s linear infinite;
}

.bandeau ul { display: flex; }

.bandeau li {
    display: flex;
    align-items: center;
    height: 76px;
    font-family: var(--titre);
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.bandeau li::after {
    content: '';
    width: 16px;
    height: 16px;
    margin: 0 30px;
    border-radius: 50%;
    background: var(--pate);
}

@keyframes defile {
    to { transform: translateX(-50%); }
}

/* ---------- Le kebab maison ---------- */

.maison {
    padding: var(--bloc) var(--marge);
    background: var(--pate);
    scroll-margin-top: var(--entete);
}

.maison__corps {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 104px);
    align-items: start;
    margin-top: clamp(40px, 6vw, 88px);
}

/* Photo de la broche en forme de gelule haute, rappel de la broche elle-meme. */
.maison__broche {
    position: sticky;
    top: calc(var(--entete) + 24px);
}

.maison__broche img {
    width: 100%;
    aspect-ratio: 3 / 4.4;
    max-height: calc(100svh - var(--entete) - 48px);
    object-fit: cover;
    border-radius: 999px;
}

.etapes li {
    display: grid;
    grid-template-columns: clamp(96px, 13vw, 190px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 40px);
    align-items: start;
    padding: clamp(24px, 3.5vw, 48px) 0;
    border-top: 3px solid var(--nuit);
}

.etapes li:last-child { border-bottom: 3px solid var(--nuit); }

.etapes__num {
    font-family: var(--titre);
    font-weight: 900;
    font-size: clamp(5rem, 12vw, 11rem);
    line-height: 0.78;
    color: transparent;
    -webkit-text-stroke: 2.5px var(--rouge);
}

.etapes h3 {
    margin-bottom: 14px;
    font-size: clamp(2.25rem, 4.4vw, 4rem);
}

.etapes p {
    max-width: 30em;
    font-size: 1.125rem;
    color: var(--doux);
}

.etapes .lien {
    display: inline-block;
    margin-top: 16px;
}

/* ---------- Manifeste ---------- */

.manifeste {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(40px, 6vw, 96px);
    align-items: end;
    padding: var(--bloc) var(--marge);
    background: var(--rouge);
    color: var(--nuit);
}

.manifeste__mot {
    font-family: var(--titre);
    font-size: clamp(2.75rem, 7.4vw, 8rem);
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
    color: var(--farine);
    text-wrap: balance;
}

.manifeste__mot span {
    display: block;
    margin-top: 0.3em;
    color: var(--nuit);
}

/* Deux pains dessines a l'echelle : 100 pour 115. */
.tailles {
    --pain: clamp(118px, 13vw, 190px);
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 44px);
}

/* La premiere rangee a la hauteur du grand pain : les deux reposent sur la meme ligne. */
.tailles__cas {
    display: grid;
    grid-template-rows: var(--pain) auto auto;
    row-gap: 6px;
    max-width: var(--pain);
}

.tailles__pain {
    display: block;
    align-self: end;
    width: var(--pain);
    aspect-ratio: 1;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--farine);
    box-shadow: inset 0 0 0 10px var(--pate), inset 0 0 0 12px rgba(20, 14, 11, 0.16);
}

.tailles__pain--normal { width: calc(var(--pain) / 1.15); }
.tailles__pain--maxi { background: var(--nuit); box-shadow: none; }

.tailles h3 { font-size: 2.25rem; }
.tailles p { font-size: 0.9375rem; line-height: 1.4; }

/* ---------- La carte ---------- */

.carte {
    background: var(--farine);
    scroll-margin-top: var(--entete);
}

/* La carte arrive juste sous l'accueil : en-tete court pour atteindre vite les rubriques. */
.carte__tete { padding: calc(38px + clamp(40px, 5vw, 72px)) var(--marge) 28px; }

.carte__tete h2 { font-size: clamp(2.75rem, 6.4vw, 6.5rem); }

.carte__aide {
    max-width: 38em;
    margin-top: 20px;
    font-size: 1.125rem;
    color: var(--doux);
}

/* Toutes les rubriques tiennent dans la largeur, sans defilement. Si la carte
   en gagne un jour trop pour tenir, la barre defile avec un cran par rubrique. */
.rayons {
    position: sticky;
    top: var(--entete);
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 10px var(--marge);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--marge);
    background: var(--farine);
    border-bottom: 1px solid var(--trait);
    scrollbar-width: none;
}

.rayons::-webkit-scrollbar { display: none; }

.rayons a {
    flex: 0 1 auto;
    scroll-snap-align: start;
    text-align: center;
    padding: 7px 18px 6px;
    border: 2px solid var(--nuit);
    border-radius: 999px;
    font-family: var(--titre);
    font-size: 1.1875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

/* La barre est deja « sticky », donc positionnee : le pion absolu s'y rapporte. */
.rayons a { position: relative; z-index: 1; transition: color 0.2s; }
.rayons a:hover { background: var(--pate); }
.rayons a.actif { color: var(--farine); }

/* Sans script, le lien actif garde un fond ; avec, le pion s'en charge. */
.js .rayons a.actif { background: transparent; }

/* Le pion : fond noir qui glisse d'une rubrique a l'autre (position et
   largeur posees par le script), avec un accroc a l'arrivee. */
.rayons__pion {
    position: absolute;
    top: 10px;
    left: 0;
    height: calc(100% - 20px);
    width: 0;
    border-radius: 999px;
    background: var(--nuit);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
    pointer-events: none;
}

.rayons__pion--visible { opacity: 1; }

/* L'accroc : deux images decalees avec un dedoublement rouge et cyan, apres le glissement. */
.rayons__pion--accroc::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: pion-accroc 0.6s steps(1, end) both;
}

@keyframes pion-accroc {
    0%, 62% { opacity: 0; }
    64% { opacity: 1; transform: translateX(-4px) skewX(-8deg); background: rgba(255, 74, 31, 0.85); }
    70% { opacity: 1; transform: translateX(4px) skewX(6deg); background: rgba(47, 211, 200, 0.85); }
    76% { opacity: 1; transform: translateX(-2px); background: rgba(255, 74, 31, 0.6); }
    80%, 100% { opacity: 0; }
}

/* Chaque rubrique est une bande pleine largeur avec sa couleur. Une rubrique
   regle cinq variables, tout le reste (titres, textes, prix) en decoule.
   Une rubrique ajoutee plus tard sans reglage prend les valeurs par defaut. */
.rayon {
    --r-fond: var(--farine);
    --r-encre: var(--nuit);
    --r-discret: var(--doux);
    --r-filet: var(--trait);
    --r-survol: var(--pate);
    --r-plus-fond: var(--rouge);
    --r-plus-encre: var(--nuit);

    padding: clamp(56px, 8vw, 120px) var(--marge);
    scroll-margin-top: calc(var(--entete) + 56px);
    background: var(--r-fond);
    color: var(--r-encre);
}

.rayon--kebabs {
    --r-fond: var(--nuit);
    --r-encre: var(--pate);
    --r-discret: var(--doux-sombre);
    --r-filet: var(--trait-sombre);
    --r-survol: #33261f;
}

.rayon--pizzas {
    --r-fond: var(--pate);
    --r-survol: var(--farine);
}

.rayon--mexicains {
    --r-fond: var(--rouge);
    --r-discret: #4d1707;
    --r-filet: rgba(20, 14, 11, 0.3);
    --r-survol: var(--pate);
    --r-plus-fond: var(--nuit);
    --r-plus-encre: var(--pate);
}

.rayon__tete {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
    margin-bottom: clamp(28px, 4vw, 52px);
    padding-bottom: 20px;
    border-bottom: 3px solid var(--r-encre);
}

/* Le nom du rayon est une affiche. */
.rayon__tete h3 {
    font-size: clamp(4.5rem, 15vw, 14.5rem);
    line-height: 1.02;
    margin-bottom: -0.12em; /* compense l'air sous la ligne unique */
    letter-spacing: -0.01em;
}

.rayon__tete p {
    max-width: 26em;
    padding-bottom: 4px;
    color: var(--r-discret);
}

.rayon__plats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 36px);
}

/* Les kebabs sont la specialite : deux fois plus grands que le reste. */
.rayon--kebabs .rayon__plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rayon--kebabs .plat__photo { aspect-ratio: 3 / 2; }
.rayon--kebabs .plat__nom { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }

.plat {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plat__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--nuit);
}

.plat__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.plat__photo:hover img { transform: scale(1.06); }

/* Une pizza est ronde : sa photo aussi. Au survol, elle tourne d'un cran. */
.rayon--pizzas .plat__photo {
    aspect-ratio: 1;
    border-radius: 50%;
}

.rayon--pizzas .plat__photo:hover img { transform: rotate(14deg) scale(1.1); }

.plat__texte { flex: 1; }

.plat__nom { font-size: 2rem; }

.plat__desc {
    margin-top: 8px;
    font-size: 0.9688rem;
    color: var(--r-discret, var(--doux));
}

.plat__prix {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Le prix est le bouton d'ajout. */
.ajout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 4px 0 18px;
    border: 2px solid var(--r-encre, var(--nuit));
    border-radius: 999px;
    background: transparent;
    transition: background-color 0.15s, color 0.15s;
}

/* Les valeurs de repli servent a la fiche d'un plat, hors de toute rubrique. */
.ajout:hover { background: var(--r-survol, var(--pate)); }
.rayon--mexicains .ajout:hover { color: var(--nuit); }

.ajout__lib {
    font-family: var(--titre);
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ajout__montant { font-size: 1.0625rem; }

.ajout__plus {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--r-plus-fond, var(--rouge));
    color: var(--r-plus-encre, var(--nuit));
    font-family: var(--chiffres);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s;
}

.ajout:hover .ajout__plus { transform: rotate(90deg); }

.ajout--fait { animation: ajout-fait 0.5s ease-out; }

@keyframes ajout-fait {
    0% { background: var(--r-plus-fond, var(--rouge)); color: var(--r-plus-encre, var(--nuit)); transform: scale(0.94); }
    100% { transform: scale(1); }
}

/* Rubrique sans photo (boissons) : simple liste nom / prix. */
.rayon--liste .rayon__plats {
    display: block;
    max-width: 640px;
}

.rayon--liste .plat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--r-filet);
}

.rayon--liste .plat__nom {
    font-family: var(--texte);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- L'equipe ---------- */

.equipe {
    background: var(--nuit);
    color: var(--pate);
    padding: var(--bloc) var(--marge);
    scroll-margin-top: var(--entete);
}

.equipe .surtitre { color: var(--rouge); }

.equipe__liste { margin-top: clamp(40px, 6vw, 88px); }

/* Portrait rond ; sans photo, l'initiale du prenom dans un rond rouge. */
.equipe__portrait {
    display: grid;
    place-items: center;
    width: clamp(96px, 11vw, 160px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: var(--rouge);
    color: var(--nuit);
    font-family: var(--titre);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 4px var(--nuit), 0 0 0 6px var(--rouge);
}

/* Le cadrage (object-position) et le zoom viennent de data/carte.json. */
.equipe__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--zoom, 1));
    transform-origin: var(--origine, 50% 20%);
}

.equipe__liste li {
    display: grid;
    grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 12px clamp(24px, 5vw, 80px);
    align-items: end;
    padding: clamp(20px, 3vw, 36px) 0;
    border-top: 1px solid var(--trait-sombre);
}

.equipe__liste li:last-child { border-bottom: 1px solid var(--trait-sombre); }

/* Les prenoms arrivent en contour, puis se remplissent. */
.equipe__liste h3 {
    font-size: clamp(5rem, 14vw, 13rem);
    line-height: 1.02;
    margin-bottom: -0.12em;
    color: var(--rouge);
    -webkit-text-stroke: 2px var(--rouge);
    transition: color 0.9s ease 0.35s, -webkit-text-stroke-color 0.9s ease 0.35s;
}

.js .equipe__liste li:not(.vu) h3 {
    color: transparent;
    -webkit-text-stroke-color: var(--pate);
}

.equipe__poste {
    margin-bottom: 10px;
    font-family: var(--chiffres);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rouge);
}

.equipe__liste p:last-child {
    max-width: 24em;
    font-size: 1.125rem;
    color: #e6dac6;
}

/* ---------- Infos pratiques ---------- */

.infos {
    padding: var(--bloc) var(--marge);
    background: var(--pate);
    scroll-margin-top: var(--entete);
}

.infos__tel {
    display: block;
    width: fit-content;
    margin: 0 0 24px -0.03em;
    font-family: var(--titre);
    font-size: clamp(3.75rem, 15vw, 15rem);
    font-weight: 900;
    line-height: 0.8;
    color: var(--rouge);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.infos__tel:hover { color: var(--nuit); }

.infos__appel p:last-child {
    max-width: 30em;
    font-size: 1.125rem;
    color: var(--doux);
}

.infos__blocs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    margin-top: clamp(48px, 6vw, 88px);
    padding-top: 32px;
    border-top: 3px solid var(--nuit);
}

.infos__bloc p + p { margin-top: 8px; }
.infos__bloc p:not([class]) { color: var(--doux); }

.infos__fort {
    font-family: var(--titre);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.infos__suite { margin-top: 36px; }

.infos__avis { margin: 8px 0 4px; }
.infos__avis:hover { background: var(--nuit); border-color: var(--nuit); color: var(--pate); }

.horaires { margin: 0; }

.horaires div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--trait);
}

.horaires dt { flex: none; font-weight: 700; }
.horaires dd { margin: 0; font-size: 0.9375rem; text-align: right; }

/* Le jour courant ressort en rouge. */
.horaires__jour dt,
.horaires__jour dd { color: #c92f0a; }

.horaires__jour dt span {
    display: block;
    font-family: var(--chiffres);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lien { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- La boutique en photos ---------- */

.boutique {
    margin-top: clamp(48px, 6vw, 88px);
    padding-top: 32px;
    border-top: 3px solid var(--nuit);
}

.boutique__tete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 40px;
    margin-bottom: 24px;
}

.boutique__mot {
    max-width: 34em;
    font-family: var(--titre);
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    text-wrap: balance;
}

/* Une grande photo et l'amorce de la suivante : on comprend qu'on peut faire defiler. */
.carrousel__piste {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Deborde a droite jusqu'au bord de l'ecran pour laisser passer la photo suivante. */
    margin-right: calc(-1 * var(--marge));
    padding-right: var(--marge);
}

.carrousel__piste::-webkit-scrollbar { display: none; }

.carrousel__diapo {
    flex: 0 0 min(100%, 760px);
    scroll-snap-align: start;
}

.carrousel__diapo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--nuit);
    /* Un leger voile chaud pour unifier des photos prises dans des conditions differentes. */
    filter: saturate(0.92) contrast(1.04);
}

.carrousel__diapo figcaption {
    margin-top: 12px;
    font-size: 0.9375rem;
    color: var(--doux);
}

.carrousel__diapo figcaption .chiffres {
    margin-right: 8px;
    color: var(--rouge);
}

.carrousel__nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.carrousel__fleche {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--nuit);
    border-radius: 50%;
    background: transparent;
    font-size: 1.25rem;
    transition: background-color 0.15s, color 0.15s;
}

.carrousel__fleche:hover { background: var(--nuit); color: var(--farine); }

.carrousel__points { display: flex; gap: 8px; }

.carrousel__points button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid var(--nuit);
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.15s, transform 0.15s;
}

.carrousel__points button[aria-selected="true"] {
    background: var(--rouge);
    border-color: var(--rouge);
    transform: scale(1.3);
}

/* ---------- Avis (affiche seulement si data/carte.json en contient) ---------- */

.avis {
    padding: var(--bloc) var(--marge);
    background: var(--farine);
}

.avis__liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(24px, 3vw, 48px);
    margin-top: clamp(40px, 5vw, 72px);
}

.avis__liste li {
    padding-top: 20px;
    border-top: 3px solid var(--nuit);
}

.avis blockquote {
    margin: 0 0 16px;
    font-size: 1.25rem;
    line-height: 1.45;
}

.avis__auteur {
    font-family: var(--chiffres);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--doux);
}

/* ---------- Pied ---------- */

.pied {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 32px;
    padding: 32px var(--marge);
    background: var(--nuit);
    color: var(--doux-sombre);
    font-size: 0.9375rem;
}

.pied .enseigne { color: var(--pate); }
/* A gauche l'enseigne et l'adresse dessous ; a droite, en bas, le numero. */
.pied { align-items: flex-end; }
.pied__adresse { margin-top: 10px; line-height: 1.5; }

/* Le numero ressort : grand, en rouge, dans la police des titres. */
.pied__tel {
    display: inline-block;
    font-family: var(--titre);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--rouge);
    text-decoration: none;
}

.pied__tel:hover { color: var(--pate); }

/* ---------- Rappel de la liste ---------- */

.rappel {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    width: min(560px, calc(100vw - 24px));
    padding: 6px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: var(--nuit);
    color: var(--pate);
    box-shadow: 0 0 0 2px var(--rouge), 0 14px 40px rgba(20, 14, 11, 0.45);
}

.rappel__ouvrir {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 56px;
    padding: 4px 22px;
    border: 0;
    border-radius: 999px;
    background: none;
    text-align: left;
}

.rappel__lib {
    font-family: var(--titre);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: underline;
    text-decoration-color: var(--rouge);
    text-underline-offset: 4px;
}

.rappel__detail { font-size: 0.9375rem; color: var(--doux-sombre); }
.rappel__detail .chiffres { color: var(--pate); }

.rappel__tel { min-height: 56px; }

/* ---------- Fenetres ---------- */

dialog {
    padding: 0;
    border: 0;
    color: var(--nuit);
    background: var(--farine);
}

dialog::backdrop { background: rgba(20, 14, 11, 0.82); }

/* Ouverture : la fenetre monte et se deplie, le fond s'assombrit. */
dialog[open] { animation: ouverture 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
dialog[open]::backdrop { animation: fond 0.3s ease-out; }

@keyframes ouverture {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes fond {
    from { background: rgba(20, 14, 11, 0); }
    to { background: rgba(20, 14, 11, 0.82); }
}

/* Le ticket, lui, tombe du haut de l'ecran et y remonte. */
/* ---------- Ticket : sortie et rentree, tous les reglages ici ----------
   Le papier descend depuis au-dessus de la fenetre (le dialogue, a debordement
   masque, dont le bord haut est juste au-dessus du papier) : il semble sortir
   d'une machine, le haut du papier portant une ombre le temps du passage.
   Tout se regle par les variables ci-dessous, sans toucher aux animations. */
.ticket {
    /* Sortie */
    --sortie-duree: 0.85s;                              /* temps de descente du papier */
    --sortie-courbe: cubic-bezier(0.25, 0.7, 0.3, 1);   /* vitesse : depart franc, freinage en fin de course */
    --sortie-delai: 0s;                                 /* attente avant la descente (le fond s'assombrit pendant ce temps) */
    --ombre-fondu: 0.35s;                               /* temps d'effacement de l'ombre, cale sur la fin de la descente */
    --fond-entree-duree: 0.3s;                          /* assombrissement du fond */

    /* Rentree */
    --rentree-duree: 0.4s;                              /* temps de remontee du papier */
    --rentree-courbe: cubic-bezier(0.6, 0, 0.8, 0.5);   /* vitesse : acceleration progressive */
    --rentree-delai: 0s;                                /* attente avant la remontee */
    --fond-sortie-duree: 0.25s;                         /* eclaircissement du fond, qui demarre une fois le papier rentre */
    --fond-sortie-delai: calc(var(--rentree-delai) + var(--rentree-duree));
}

.ticket[open],
.ticket.ferme { animation: none; }

.ticket[open]::backdrop { animation: fond var(--fond-entree-duree) ease-out; }
.ticket[open] .ticket__papier { animation: sortie var(--sortie-duree) var(--sortie-courbe) var(--sortie-delai) both; }
/* L'ombre est pleine pendant la descente (remplissage « both » durant le delai)
   et s'efface sur les derniers --ombre-fondu. A la rentree, elle revient d'abord. */
.ticket[open] .ticket__papier::before { animation: ombre-haut var(--ombre-fondu) ease-out calc(var(--sortie-delai) + var(--sortie-duree) - var(--ombre-fondu)) both; }

.ticket.ferme .ticket__papier { animation: rentree var(--rentree-duree) var(--rentree-courbe) var(--rentree-delai) forwards; }
.ticket.ferme .ticket__papier::before { animation: ombre-haut var(--ombre-fondu) ease-in var(--rentree-delai) reverse forwards; }
.ticket.ferme::backdrop { animation: fond-sort var(--fond-sortie-duree) ease-in var(--fond-sortie-delai) forwards; }

/* Le papier part et revient un peu au-dela de sa hauteur (12 px), pour que les
   dents du bas passent bien au-dessus du bord de la fenetre. */
@keyframes sortie {
    0% { transform: translateY(calc(-100% - 12px)); }
    100% { transform: none; }
}

@keyframes rentree {
    0% { transform: none; }
    100% { transform: translateY(calc(-100% - 12px)); }
}

@keyframes ombre-haut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Fermeture : le script pose .ferme, attend la fin de l'animation, puis ferme. */
dialog.ferme { animation: fermeture 0.24s ease-in forwards; }
dialog.ferme::backdrop { animation: fond-sort 0.24s ease-in forwards; }

@keyframes fermeture {
    to { opacity: 0; transform: translateY(20px) scale(0.97); }
}

@keyframes fond-sort {
    to { background: rgba(20, 14, 11, 0); }
}

/* Une fenetre ouverte fige la page derriere. La barre de defilement reste
   affichee (donc la largeur ne bouge pas) ; le corps est fige a la position
   ou il etait, que le script a notee dans --y. */
html.fenetre-ouverte { overflow-y: scroll; }

html.fenetre-ouverte body {
    position: fixed;
    top: var(--y, 0px);
    left: 0;
    right: 0;
}

/* La croix reste visible quand la fenetre defile : elle colle au bord haut et
   se superpose au contenu grace a sa marge basse negative. */
.fermer {
    position: sticky;
    top: 12px;
    z-index: 3;
    margin: 12px 12px -56px auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--nuit);
    color: var(--farine);
    font-size: 1.75rem;
    line-height: 1;
}

.fermer:hover { background: var(--rouge); color: var(--nuit); }

/* Fiche d'un plat */

.fiche {
    width: min(1040px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
}

.fiche[open] {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto 1fr;
}

.fiche .fermer {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: 12px;
}

.fiche__media,
.fiche__texte { grid-row: 2; }

.fiche__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--nuit);
}

.fiche__media video,
.fiche__media--travelling img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fiche__media--travelling img { animation: travelling 14s ease-in-out infinite alternate; }

.fiche__media--plateau {
    background: radial-gradient(circle, rgba(255, 74, 31, 0.45) 0%, transparent 68%), var(--nuit);
}

.fiche__media--plateau img {
    width: 88%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    animation: tourne 60s linear infinite;
}

@keyframes travelling {
    from { transform: scale(1.02) translate(-1%, 1%); }
    to { transform: scale(1.18) translate(2%, -2%); }
}

.fiche__texte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 52px);
}

.fiche__texte h2 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); }

/* Badges de la fiche (halal, regime) : pastilles discretes au-dessus du nom. */
.fiche__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 14px;
}

.badge {
    --badge: #2fb36a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1.5px solid var(--badge);
    border-radius: 999px;
    font-family: var(--chiffres);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--badge) 70%, var(--nuit));
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--badge);
}

.badge--vegetarien { --badge: #6aa84f; }
.badge--poisson { --badge: #3a9ad9; }
.badge--vegan { --badge: #8bb33a; }

/* Sur la carte : petite mention sous le nom pour ce qui n'est pas de la viande. */
.plat__regime {
    margin-top: 4px;
    font-family: var(--chiffres);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f8a3a;
}

.plat__regime--poisson { color: #2d7fb8; }

/* Filtres par regime : pastilles, celle qui est active est pleine. */
.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 28px;
}

.filtres__bouton {
    padding: 7px 16px 6px;
    border: 2px solid var(--r-encre);
    border-radius: 999px;
    background: transparent;
    font-family: var(--titre);
    font-size: 1.0625rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background-color 0.15s, color 0.15s;
}

.filtres__bouton:hover { background: var(--r-survol); }
.filtres__bouton[aria-pressed="true"] { background: var(--r-encre); color: var(--r-fond); }

/* Repli sans View Transitions : le plat s'estompe avant d'etre cache. */
.plat { transition: opacity 0.25s, transform 0.25s; }
.plat--part { opacity: 0; transform: scale(0.94); }

/* View Transitions : les plats glissent vers leur nouvelle place. */
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }

.fiche__desc {
    margin: 18px 0 28px;
    font-size: 1.125rem;
    color: var(--doux);
}

.fiche__note {
    margin-top: 28px;
    padding: 10px 14px;
    background: var(--pate);
    font-size: 0.8125rem;
    color: var(--doux);
}

/* Ticket */

/* Le dialogue est la fenetre de decoupe : transparent, a debordement masque,
   avec la fente en haut. Le papier glisse dessous. */
.ticket {
    width: min(430px, calc(100vw - 24px));
    max-height: none;
    overflow: hidden;
    padding: 6px 0 0;
    background: transparent;
}

/* Plus de barre visible : la fenetre de decoupe suffit a faire la fente. */
.ticket__fente { display: none; }

.ticket__papier {
    position: relative;
    max-height: calc(100dvh - 70px);
    overflow: auto;
    padding: 30px 26px 44px;
    background: #ffffff;
    font-family: var(--chiffres);
    font-size: 0.9375rem;
    font-weight: 500;
    transform-origin: 50% 0;
    /* Bords du haut et du bas denteles, comme un ticket dechire des deux cotes :
       deux masques, un par bord, dont on garde l'intersection. */
    -webkit-mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
    -webkit-mask-composite: source-in;
    mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
    mask-composite: intersect;
    padding-top: 44px;
}

/* Ombre portee sur le haut du papier, le temps qu'il passe sous la fente. */
.ticket__papier::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(20, 14, 11, 0.45), rgba(20, 14, 11, 0.12) 50%, rgba(20, 14, 11, 0));
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.ticket .fermer { top: 22px; margin: -14px 0 -30px auto; }

.ticket .fermer { border-radius: 0; }

.ticket__enseigne {
    font-family: var(--titre);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ticket h2 {
    margin: 6px 0 18px;
    padding-bottom: 18px;
    border-bottom: 2px dashed var(--nuit);
    font-family: var(--chiffres);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-align: center;
}

.ticket__ligne {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 5.2em;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
}

.ticket__quantite {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ticket__pas {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid var(--nuit);
    background: #ffffff;
    font-weight: 600;
    line-height: 1;
}

.ticket__pas:hover { background: var(--rouge); }

.ticket__nombre { min-width: 1.6em; text-align: center; font-weight: 600; }
.ticket__montant { text-align: right; font-weight: 600; }

.ticket__vide { padding: 12px 0; color: var(--doux); }

.ticket__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 14px 0 22px;
    padding-top: 16px;
    border-top: 2px dashed var(--nuit);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ticket__total strong { font-size: 1.5rem; letter-spacing: 0; }

.ticket .bouton {
    width: 100%;
    border-radius: 0;
    border-color: var(--nuit);
}

.ticket .bouton:hover { background: var(--nuit); color: var(--rouge); }

.ticket__envoi { margin-top: 8px; }

.ticket__mention {
    margin-top: 16px;
    font-family: var(--texte);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--doux);
    text-align: center;
}

.ticket__vider {
    display: block;
    margin: 14px auto 0;
    padding: 6px 10px;
    border: 0;
    background: none;
    font-size: 0.8125rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--doux);
}

/* ---------- Ecrans moyens ---------- */

@media (max-width: 1100px) {
    .accueil__bas { grid-template-columns: 1fr auto; }
    .accueil__chapo { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    /* En-tete reduit : seule l'etat d'ouverture reste de la navigation. */
    .entete__nav a:not(.entete__etat) { display: none; }
    .entete__nav { gap: 0; }
    .entete { justify-content: space-between; gap: 10px; padding: 0 14px; }
    .entete__etat { padding: 3px 9px !important; font-size: 0.7rem; gap: 6px; }
    .entete__etat::before { width: 6px; height: 6px; }

    .manifeste { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Telephones ---------- */

@media (max-width: 720px) {
    :root { --entete: 56px; }

    .enseigne { font-size: 1.3125rem; }
    .entete__tel { padding: 0 13px; gap: 0; }
    .entete__tel .chiffres { display: none; }

    /* Le disque passe dans le flux, sous le titre, et deborde a droite. */
    /* L'accueil tient dans l'ecran : les rubriques et le numero restent visibles
       sans faire defiler. Le disque absorbe la hauteur qui reste, le texte etant
       compte dans --accueil-fixe (en-tete, titre, chapo, boutons, marges). */
    .accueil {
        --accueil-fixe: 470px;
        min-height: calc(100svh - var(--entete));
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 44px; /* le bandeau rouge incline empiete sur ce bas */
    }
    .accueil .surtitre { margin-bottom: 12px; }
    .accueil__note { display: inline; }
    .accueil__ville { display: none; } /* la ville est dans l'adresse, la ligne doit tenir */
    .accueil .surtitre { letter-spacing: 0.08em; white-space: nowrap; }
    .accueil__titre { order: 1; position: relative; z-index: 3; }
    /* 13.3vw : la plus grande taille qui garde « fraîchement cuit » sur une ligne. */
    .accueil h1 { font-size: clamp(3rem, 13.3vw, 6rem); letter-spacing: -0.02em; }

    /* Le disque prend toute la hauteur qui reste, entier de haut en bas, et
       deborde sur la droite : on en voit les trois quarts, le sceau se lit. */
    .accueil__disque {
        order: 2;
        position: relative;
        top: auto;
        right: auto;
        width: auto;
        height: clamp(170px, calc(100svh - var(--accueil-fixe)), 470px);
        aspect-ratio: auto;
        /* Le disque remonte d'une ligne derriere la fin du titre (la derniere
           ligne est courte, le coin droit est libre) : il gagne en taille. */
        margin: -56px calc(-1 * var(--marge)) 0 0;
        overflow: hidden;
    }
    .accueil__rond {
        inset: auto;
        top: 0;
        right: -24%;
        height: 100%;
        aspect-ratio: 1;
    }
    .accueil__lueur { top: 30vw; right: -50vw; width: 150vw; }
    .accueil__bas { order: 3; grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
    .accueil__chapo,
    .accueil__avis { display: none; }
    .accueil__rubriques .bouton { min-height: 54px; padding: 0 6px; font-size: 1.25rem; }

    /* Les quatre rubriques se partagent la largeur a parts egales. */
    .rayons { gap: 6px; padding: 8px var(--marge); }
    .rayons__pion { top: 8px; height: calc(100% - 16px); }
    .rayons a { flex: 1 1 0; min-width: 0; padding: 8px 2px 7px; font-size: 1rem; letter-spacing: 0.01em; }

    .bandeau li { height: 60px; font-size: 1.5rem; }
    .bandeau li::after { width: 12px; height: 12px; margin: 0 20px; }

    .maison__corps { grid-template-columns: 1fr; }
    .maison__broche { position: static; width: 72%; }

    .rayon--kebabs .rayon__plats { grid-template-columns: 1fr; }

    /* Pizzas et mexicains : vignette a gauche, texte et prix a droite. */
    .rayon:not(.rayon--kebabs):not(.rayon--liste) .rayon__plats { grid-template-columns: 1fr; gap: 0; }

    .rayon:not(.rayon--kebabs):not(.rayon--liste) .plat {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 10px 16px;
        padding: 18px 0;
        border-bottom: 1px solid var(--r-filet);
    }

    .rayon:not(.rayon--kebabs):not(.rayon--liste) .plat__photo {
        grid-row: 1 / span 2;
        aspect-ratio: 1;
        align-self: start;
    }

    .equipe__liste li { grid-template-columns: auto minmax(0, 1fr); }
    .equipe__liste li > div { grid-column: 1 / -1; }
    .equipe__liste h3 { font-size: clamp(5.5rem, 30vw, 9rem); }

    .infos__blocs { grid-template-columns: 1fr; }

    .fiche[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
    .fiche__media { grid-row: 2; }
    .fiche__texte { grid-row: 3; }
    .fiche__media { aspect-ratio: 4 / 3; }
    .fiche__media--plateau img { width: 70%; }

    .rappel { bottom: 8px; }
    .rappel__tel { padding: 0 22px; }
}

/* ---------- Composition d'un plat ---------- */

/* Sur la carte : les prix par taille, la taille par defaut en avant. */
.plat__tarifs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
}

.plat__tarifs div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plat__tarifs dt {
    font-family: var(--titre);
    font-size: 1.0625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--r-discret);
}

.plat__tarifs dd {
    margin: 0;
    font-family: var(--chiffres);
    font-size: 1rem;
    font-weight: 600;
}

.plat__tarif--defaut dt { color: var(--r-plus-fond); }
.plat__tarif--defaut dd { font-size: 1.125rem; }

/* Boissons : visuel a la place de la photo, cartes plus petites. */
.plat__photo--visuel {
    display: grid;
    place-items: center;
    background: var(--pate);
}

.visuel { width: 46%; height: auto; }

.rayon--boissons .rayon__plats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rayon--boissons .plat__photo { aspect-ratio: 1; }
.rayon--boissons .plat__nom { font-size: 1.5rem; }

/* Fiche : la photo remplit toute la colonne gauche et reste en vue pendant
   que le formulaire defile. Sa hauteur est bornee a celle de la fenetre. */
.fiche__media {
    position: sticky;
    top: 0;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 420px;
    max-height: calc(100dvh - 24px);
}

.fiche__texte { justify-content: flex-start; }

.choix {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.choix legend {
    padding: 0;
    margin-bottom: 10px;
    font-family: var(--titre);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.choix__aide {
    margin: -6px 0 10px;
    font-size: 0.875rem;
    color: var(--doux);
}

.choix__liste {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Une case a cocher ou un bouton radio presente en pastille. */
.choix__case {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.choix__case input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.choix__corps {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    min-height: 44px;
    padding: 8px 16px;
    border: 2px solid var(--nuit);
    border-radius: 22px;
    background: transparent;
    font-weight: 500;
    line-height: 1.3;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.choix__prix { font-size: 0.875rem; }

.choix__note {
    flex-basis: 100%;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--doux);
}

.choix__case:hover .choix__corps { background: var(--pate); }

.choix__case input:checked + .choix__corps {
    background: var(--nuit);
    border-color: var(--nuit);
    color: var(--farine);
}

.choix__case input:checked + .choix__corps .choix__note { color: var(--doux-sombre); }

.choix__case input:focus-visible + .choix__corps {
    outline: 3px solid var(--rouge);
    outline-offset: 3px;
}

/* Composition : une pastille decochee se barre, pour qu'on voie ce qu'on retire. */
#fiche-composition .choix__case input:not(:checked) + .choix__corps {
    text-decoration: line-through;
    color: var(--doux);
    border-color: var(--trait);
}

/* « Sans sauce » n'est pas une sauce : contour pointille, un rond barre devant. */
.choix__case--sans .choix__corps {
    border-style: dashed;
    border-color: var(--doux);
    color: var(--doux);
}

.choix__case--sans .choix__lib::before,
.choix__case--sans input:checked + .choix__corps .choix__lib::before {
    content: '';
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin: 0 0.45em -0.1em 0;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 44%, currentColor 44% 56%, transparent 56%);
    transform: none;
    opacity: 1;
}

.choix__case--sans input:checked + .choix__corps {
    background: var(--doux);
    border-color: var(--doux);
    border-style: solid;
    color: var(--farine);
}

/* Une coche devant tout choix selectionne, pour que l'etat se lise d'un coup. */
.choix__lib::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0.55em;
    margin-right: 0;
    border: solid var(--rouge);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translateY(-0.1em);
    opacity: 0;
    transition: width 0.15s, margin-right 0.15s, opacity 0.15s;
}

.choix__case input:checked + .choix__corps .choix__lib::before {
    width: 0.3em;
    margin-right: 0.6em;
    opacity: 1;
}

/* Pas de coche sur la composition (tout est coche d'office, le barre suffit). */
#fiche-composition .choix__lib::before { display: none; }

/* Les choix mis en avant (Maxi, frites) : cercles de rouge, mais selectionnes
   comme les autres, en noir avec la coche. */
.choix__case--avant .choix__corps { border-color: var(--rouge); border-width: 2.5px; }
.choix__case--avant input:checked + .choix__corps { background: var(--nuit); border-color: var(--rouge); color: var(--farine); }

.fiche__pied {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px -4px 0;
    padding: 16px 4px;
    background: var(--farine);
    border-top: 2px solid var(--nuit);
}

.fiche__total {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.fiche__total span {
    font-family: var(--chiffres);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--doux);
}

.fiche__total strong { font-size: 1.75rem; }

/* Le libelle peut passer sur deux lignes : jamais de debordement lateral. */
.fiche__ajouter {
    flex: 1;
    max-width: 320px;
    min-width: 0;
    padding: 6px 20px;
    white-space: normal;
    text-align: center;
    line-height: 1;
}

.fiche { overflow-x: hidden; }

/* Il manque un choix : le bouton s'eteint un peu mais reste cliquable. */
.fiche__ajouter--attente {
    background: var(--trait);
    border-color: var(--trait);
    color: var(--doux);
}

/* Bulle au-dessus du bouton, avec sa petite pointe. */
.fiche__bulle {
    position: absolute;
    right: 4px;
    bottom: calc(100% + 10px);
    max-width: min(320px, 90%);
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--nuit);
    color: var(--farine);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 10px 30px rgba(20, 14, 11, 0.3);
    transform-origin: 80% 100%;
}

.fiche__bulle::after {
    content: '';
    position: absolute;
    right: 40px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: var(--nuit);
    transform: rotate(45deg);
}

.fiche__bulle--visible { animation: bulle 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }

@keyframes bulle {
    from { opacity: 0; transform: translateY(8px) scale(0.9); }
    to { opacity: 1; transform: none; }
}

.fiche__pied { position: sticky; }

/* Le bloc des sauces se secoue pour se faire voir. */
.choix--secoue { animation: secoue 0.5s ease-in-out; }

@keyframes secoue {
    0%, 100% { transform: none; }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Fenetre « c'est ferme » */
.ferme-avis {
    width: min(440px, calc(100vw - 24px));
    padding: 40px 32px 32px;
    text-align: center;
}

.ferme-avis__pictos {
    margin-bottom: 12px;
    font-size: 2rem;
    color: var(--rouge);
}

.ferme-avis h2 { font-size: clamp(2.25rem, 5vw, 3rem); }
.ferme-avis p:not([class]) { margin: 16px 0 24px; font-size: 1.125rem; color: var(--doux); }
.ferme-avis .bouton { border-color: var(--nuit); }
.ferme-avis .bouton:hover { background: var(--nuit); color: var(--farine); }
.fiche__ajouter:hover { background: var(--nuit); border-color: var(--nuit); color: var(--farine); }

/* Ticket : le detail d'une ligne (« sans oignons · ketchup + mayonnaise »). */
.ticket__detail {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--doux);
}

/* Ticket : une ligne qui arrive, un nombre qui change, une ligne qui part. */
.ticket__ligne--neuve { animation: ligne-arrive 0.3s ease-out both; }

.ticket__ligne--sort,
.ticket__lignes--vide .ticket__ligne {
    max-height: 160px;
    overflow: hidden;
    pointer-events: none;
}

.ticket__ligne--sort { animation: ligne-sort 0.32s ease-in forwards; }

.ticket__nombre { display: inline-block; }

.ticket__lignes--vide .ticket__ligne {
    animation: ligne-sort 0.32s ease-in forwards;
    animation-delay: calc(var(--i) * 50ms);
}

.ticket__nombre.saute { animation: nombre-saute 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes ligne-arrive {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: none; }
}

@keyframes ligne-sort {
    to { opacity: 0; transform: translateX(24px); max-height: 0; padding-top: 0; padding-bottom: 0; }
}

@keyframes nombre-saute {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); color: #c92f0a; }
    100% { transform: scale(1); }
}

.rappel--saute { animation: saute 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes saute {
    0% { transform: translateX(-50%) scale(1); }
    40% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

@media (max-width: 720px) {
    .fiche__media { position: static; aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
    .fiche__pied { margin-inline: 0; gap: 12px; }
    .fiche__total strong { font-size: 1.5rem; }
    .fiche__ajouter { padding: 0 18px; font-size: 1.25rem; }
}

/* Petits telephones : le chapo saute, le disque garde une taille lisible. */
@media (max-width: 720px) and (max-height: 720px) {
    .accueil { --accueil-fixe: 440px; }
    .accueil h1 { font-size: clamp(2.5rem, 12.2vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .revele { opacity: 1; transform: none; }
}
