/*
 * Le site vitrine de LunchUp (ADR-040).
 *
 * La palette est celle des applications (`apps/employe/src/design/
 * palette.ts`, ADR-039) : crème, bordeaux, or, abricot. Les deux règles de la
 * marque tiennent ici aussi :
 *
 * - le rouge ne sert qu'au danger, et le site n'en a pas l'usage ;
 * - l'or ne s'écrit jamais sur fond clair : `--or` est décoratif (filets,
 *   losanges, bordures), un texte or s'écrit en `--or-encre`, et en
 *   `--or-clair` sur fond bordeaux.
 *
 * Une page de vente : peu de texte, beaucoup d'air, un message par section.
 * Tout est fluide — tailles en `clamp()`, grilles `auto-fit`.
 *
 * Les polices sont servies par le core lui-même : aucune requête ne part
 * ailleurs pour dessiner la page.
 */

@font-face {
  font-family: "Playfair Display";
  font-weight: 600;
  font-display: swap;
  src: url("/site/polices/playfair-600.ttf") format("truetype");
}

/* L'italique de la seconde moitié des titres : 500, et 600 pour la marque. */
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/site/polices/playfair-500-italique.ttf") format("truetype");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/site/polices/playfair-600-italique.ttf") format("truetype");
}

@font-face {
  font-family: Jost;
  font-weight: 400;
  font-display: swap;
  src: url("/site/polices/jost-400.ttf") format("truetype");
}

@font-face {
  font-family: Jost;
  font-weight: 500;
  font-display: swap;
  src: url("/site/polices/jost-500.ttf") format("truetype");
}

@font-face {
  font-family: Jost;
  font-weight: 600;
  font-display: swap;
  src: url("/site/polices/jost-600.ttf") format("truetype");
}

:root {
  color-scheme: light dark;
  --fond: #fbf6ee;
  --carte: #fff;
  --encre: #2a1a20;
  --encre-2: #68525a;
  --attenue: #f4ece0;
  --pri: #5a1e33;
  --pri-survol: #6e2742;
  --sur-pri: #f8eedc;
  --heros: #5a1e33;
  --heros-encre: #f3e6cc;
  --heros-encre-2: #e6d6c8;
  --encre-corps: #4a3a40;
  --or: #c9a15a;
  --or-survol: #d9b670;
  --or-encre: #875f1b;
  --or-clair: #e3c489;
  --or-doux: #f5e7c8;
  --abricot: #f6e0c4;
  --sur-abricot: #4a1c30;
  --nuit: #2a0e1a;
  --ok: #1f5a44;
  --ok-fond: #e3efe7;
  --trait: #eadfcf;
  --bord: #9c8a8f;
  --ombre: 0 1px 2px rgb(42 14 26 / 6%), 0 8px 24px rgb(42 14 26 / 7%);
  --ombre-flottante: 0 14px 30px -18px rgb(90 30 51 / 45%);
  --ombre-schema: 0 30px 60px -40px rgb(90 30 51 / 35%);
  --titre: "Playfair Display", Georgia, "Times New Roman", serif;
  --texte: Jost, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --large: 75rem;
  --marge: clamp(20px, 5vw, 48px);
  --entre-sections: clamp(96px, 12vw, 160px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #1c1116;
    --carte: #2a1b22;
    --encre: #f3e8ea;
    --encre-2: #bca7af;
    --attenue: #251820;
    --pri: #e3c27e;
    --pri-survol: #ecd096;
    --sur-pri: #2a0e1a;
    --heros: #3a1626;
    --heros-encre: #f3e6cc;
    --heros-encre-2: #e6d6c8;
    --encre-corps: #d9c8ce;
    --or: #d9b670;
    --or-survol: #e6c88a;
    --or-encre: #e3c489;
    --or-clair: #e3c489;
    --or-doux: rgb(217 182 112 / 16%);
    --abricot: #3a2820;
    --sur-abricot: #f6e0c4;
    --nuit: #12080d;
    --ok: #8fcbae;
    --ok-fond: rgb(143 203 174 / 13%);
    --trait: rgb(243 232 234 / 12%);
    --bord: #8e7886;
    --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --ombre-flottante: 0 14px 30px -18px rgb(0 0 0 / 70%);
    --ombre-schema: 0 30px 60px -40px rgb(0 0 0 / 70%);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--fond);
  color: var(--encre);
  font: 17px / 1.55 var(--texte);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--or-encre);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.passer {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--pri);
  color: var(--sur-pri);
  border-radius: 999px;
  z-index: 1000;
}

.passer:focus {
  left: 1rem;
}

.cadre {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 var(--marge);
}

/* --- En-tête ------------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 500;
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.entete .cadre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  text-decoration: none;
  font-family: var(--titre);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  color: var(--pri);
  white-space: nowrap;
}

.marque img {
  width: 34px;
  height: 34px;
  flex: none;
}

.entete nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
}

.lien-pro {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--encre);
}

.lien-pro:hover {
  color: var(--or-encre);
}

.entete .bouton {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  box-shadow: none;
}

/* Le lien « Restaurateurs » cède la place au bouton sur un téléphone : le
   héros et le pied de page y mènent aussi. */
@media (max-width: 30rem) {
  .lien-pro {
    display: none;
  }
}

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

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--pri);
  color: var(--sur-pri);
  font: 600 16px / 1.2 var(--texte);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.bouton:hover {
  background: var(--pri-survol);
}

.bouton.grand {
  min-height: 58px;
  padding: 0 32px;
  font-size: 17px;
}

.bouton.second {
  background: transparent;
  color: var(--encre);
  border-color: var(--bord);
}

.bouton.grand.second {
  padding: 0 28px;
}

.bouton.second:hover {
  border-color: var(--pri);
  color: var(--pri);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Ornements ----------------------------------------------------------- */

.ornement {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ornement::before,
.ornement::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--or);
}

.ornement span {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--or);
  transform: rotate(45deg);
}

.surtitre {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--or-encre);
}

/* L'étiquette de section, entre deux filets or. */
.etiquette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-encre);
}

.etiquette::before,
.etiquette::after {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--or);
}

/* La petite étiquette des cartes : sans filets. */
.mini {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-2);
}

h1,
h2,
.h2,
h3 {
  font-family: var(--titre);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* La seconde moitié d'un titre : en italique, en bordeaux. */
h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--pri);
}

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

.accueil {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(64px, 11vw, 140px);
  padding-bottom: clamp(56px, 8vw, 96px);
  text-align: center;
}

.accueil > :not(.flottantes) {
  position: relative;
}

.accueil h1 {
  max-width: 860px;
  margin: 28px 0 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.accueil .chapeau {
  max-width: 480px;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--encre-2);
}

.accueil .actions {
  justify-content: center;
  margin-top: 40px;
}

.accueil .bouton:not(.second) {
  box-shadow: 0 14px 26px -16px rgb(90 30 51 / 70%);
}

/* Les cartes flottantes : un décor, masqué là où il recouvrirait le titre. */
.flottantes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  text-align: left;
}

@media (max-width: 999px) {
  .flottantes {
    display: none;
  }
}

.flottante {
  position: absolute;
}

.flottante > div {
  animation: flotter 6s ease-in-out infinite;
  box-shadow: var(--ombre-flottante);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.flottante .titre {
  display: block;
  font-family: var(--titre);
  font-weight: 600;
}

.f1 {
  left: 2%;
  top: 18%;
  transform: rotate(-6deg);
}

.f1 > div {
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--carte);
}

.f1 .mini {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.f1 .titre {
  margin-top: 4px;
  font-size: 19px;
}

.f2 {
  right: 3%;
  top: 14%;
  transform: rotate(5deg);
}

.f2 > div {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ok-fond);
  color: var(--ok);
  animation-duration: 7s;
  animation-delay: 0.8s;
  box-shadow: 0 14px 30px -18px rgb(31 90 68 / 50%);
}

.f3 {
  left: 7%;
  bottom: 14%;
  transform: rotate(4deg);
}

.f3 > div {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--abricot);
  color: var(--sur-abricot);
  animation-duration: 6.5s;
  animation-delay: 1.4s;
  box-shadow: none;
}

.f4 {
  right: 6%;
  bottom: 18%;
  transform: rotate(-4deg);
}

.f4 > div {
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--heros);
  color: var(--heros-encre);
  font-size: 13px;
  font-weight: 400;
  animation-duration: 7.5s;
  animation-delay: 0.4s;
  box-shadow: 0 14px 30px -14px rgb(90 30 51 / 60%);
}

.f4 .titre {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1;
}

@keyframes flotter {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.bloc-section {
  padding-bottom: var(--entre-sections);
}

.titre-section {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* --- Le schéma : une envie, trois adresses ------------------------------- */

.schema {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 32px;
  background: var(--carte);
  box-shadow: var(--ombre-schema);
}

.envie {
  display: flex;
  flex: 0 1 240px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.criteres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteres li {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--or);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.pivot {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pivot .filet {
  width: 40px;
  height: 1.5px;
  background: var(--or);
}

/* Le logo de la marque, cadran et cuillère superposés : la cuillère fait
   son tour et revient à midi. Le pivot est le centre du cadran, un peu sous
   celui de l'image. */
.disque {
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--heros);
}

.disque img {
  position: absolute;
  inset: 13px;
  width: 75px;
  height: 75px;
}

.disque .cuillere {
  transform-origin: 50% 54.76%;
  animation: midi 7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s infinite both;
}

/* Le tour de la cuillère, celui du site d'origine — puis un temps de
   pause à midi, pour qu'on lise l'heure avant le tour suivant. */
@keyframes midi {
  0% {
    transform: rotate(-200deg);
  }

  34%,
  100% {
    transform: rotate(0);
  }
}

.adresses {
  display: flex;
  flex: 0 1 300px;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.propositions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.propositions li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--fond);
}

.propositions .rang {
  font-family: var(--titre);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  color: var(--or-encre);
}

.propositions div {
  flex: 1;
  min-width: 0;
}

.propositions p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--encre-2);
}

.propositions p.plat {
  font-size: 15px;
  font-weight: 600;
  color: var(--encre);
}

.propositions .prix {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 18px;
}

/* --- Trois étapes -------------------------------------------------------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 4vw, 56px);
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.etapes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.numero {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--or);
  font-family: var(--titre);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--or-encre);
}

.etapes h3 {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.2;
}

.etapes p {
  max-width: 260px;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--encre-2);
}

/* --- Pour qui ------------------------------------------------------------ */

.publics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(24px, 3vw, 32px);
}

.public {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  background: var(--abricot);
  color: var(--sur-abricot);
}

.public .mini {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: inherit;
}

.public h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.public h2 em {
  color: inherit;
}

.public ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-top: 1px solid color-mix(in srgb, currentcolor 16%, transparent);
}

.public li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 10px;
  color: var(--or-encre);
}

.public h3 {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
}

.public li p {
  margin: 2px 0 0;
  font-size: 15px;
  opacity: 0.85;
}

.public .bouton {
  align-self: flex-start;
  background: var(--sur-abricot);
  color: var(--abricot);
}

.public .bouton:hover {
  background: var(--pri);
  color: var(--sur-pri);
}

.public.pro {
  scroll-margin-top: 90px;
  background: var(--heros);
  color: var(--heros-encre);
}

.public.pro .mini,
.public.pro h2 em {
  color: var(--or-clair);
}

.public.pro li {
  border-top-color: rgb(243 230 204 / 18%);
}

.public.pro li::before {
  color: var(--or);
}

.public.pro li p {
  color: var(--heros-encre-2);
  opacity: 1;
}

.public.pro .bouton,
.appel .bouton {
  background: var(--or);
  color: var(--nuit);
}

.public.pro .bouton:hover,
.appel .bouton:hover {
  background: var(--or-survol);
  color: var(--nuit);
}

.public.pro a:focus-visible,
.appel a:focus-visible {
  outline-color: var(--or-clair);
}

/* --- Ce que LunchUp ne fera pas ---------------------------------------- */

.engagements {
  padding-top: var(--entre-sections);
}

.promesses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.promesses li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--carte);
  border: 1px solid var(--trait);
}

.promesses strong {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  color: var(--pri);
}

.promesses span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--encre-2);
  text-wrap: pretty;
}

/* --- Questions fréquentes ------------------------------------------------ */

.faq {
  max-width: 820px;
}

.faq h2 {
  margin: 0 0 clamp(32px, 4vw, 48px);
  text-align: center;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.questions details {
  border-top: 1px solid var(--trait);
}

.questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.signe {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--or);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--or-encre);
}

.signe::before {
  content: "+";
}

details[open] .signe::before {
  content: "\2212";
}

.questions details p {
  margin: 0;
  padding: 0 52px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre-2);
}

/* --- L'appel final ------------------------------------------------------- */

.appel-section {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.appel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 64px);
  border-radius: 36px;
  background: var(--nuit);
  text-align: center;
}

/* Deux cercles or, le cadran en filigrane. */
.appel::before,
.appel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.appel::before {
  width: 560px;
  height: 560px;
  border: 1px solid rgb(201 161 90 / 30%);
}

.appel::after {
  width: 820px;
  height: 820px;
  border: 1px solid rgb(201 161 90 / 15%);
}

.appel > * {
  position: relative;
  z-index: 1;
}

.appel h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--heros-encre);
}

.appel h2 em {
  color: var(--or-clair);
}

.appel p {
  max-width: 420px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--heros-encre-2);
}

.appel .actions {
  justify-content: center;
  margin-top: 40px;
}

.appel .bouton.second {
  background: transparent;
  border-color: rgb(243 230 204 / 50%);
  color: var(--heros-encre);
}

.appel .bouton.second:hover {
  border-color: var(--heros-encre);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .flottante > div,
  .disque .cuillere {
    animation: none;
  }
}

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

.pied .cadre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 48px;
}

.pied .marque {
  font-size: 18px;
}

.pied .marque img {
  width: 28px;
  height: 28px;
}

.pied ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.pied a {
  display: inline-block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--encre-2);
}

.pied a:hover {
  color: var(--or-encre);
}

/* --- Pages intérieures --------------------------------------------------- */

.etiquette.gauche {
  justify-content: flex-start;
}

.etiquette.gauche::after {
  content: none;
}

/* L'étiquette or des blocs, sans filets. */
.mini-or {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or-encre);
}

.page-titre {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: var(--entre-sections);
}

.page-titre h1 {
  margin: 20px 0 0;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.page-titre p {
  margin: 20px 0 0;
  color: var(--encre-2);
  font-size: 18px;
}

.page-titre .actions {
  margin-top: 32px;
}

/* Une photo absente : le logo, sur l'abricot. */
.sans-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--abricot);
}

.sans-photo img {
  width: 30%;
  max-width: 120px;
  height: auto;
  opacity: 0.85;
}

.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pastilles li {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--abricot);
  color: var(--sur-abricot);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.pastilles li.jour {
  background: var(--ok-fond);
  color: var(--ok);
}

.gamme span {
  opacity: 0.35;
}

.gamme span.plein {
  opacity: 1;
}

/* --- Annuaire ------------------------------------------------------------ */

.page-annuaire {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.page-annuaire h1 {
  margin: 20px 0 0;
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.025em;
}

/* La liste à gauche, la carte à droite ; sur un téléphone, la carte passe
   au-dessus. `start`, et non `flex-start` : avec `wrap-reverse`, ce dernier
   alignerait les colonnes par le bas. */
.annuaire {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: start;
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
}

.liste {
  display: grid;
  flex: 1 1 360px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resto {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--carte);
  box-shadow: 0 30px 60px -44px rgb(90 30 51 / 50%);
  outline: 2px solid transparent;
  transition:
    transform 0.25s,
    outline-color 0.15s;
}

.resto:hover {
  transform: translateY(-4px);
}

/* Le repère survolé sur la carte. */
.resto.actif {
  outline-color: var(--or);
}

@media (prefers-reduced-motion: reduce) {
  .resto {
    transition: none;
  }

  .resto:hover {
    transform: none;
  }
}

.vignette {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--abricot);
}

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

.resto-corps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
}

.resto h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

/* Toute la carte est cliquable, mais le lien reste le nom : un lecteur
   d'écran lit un lien, pas une carte entière. */
.resto h2 a {
  text-decoration: none;
}

.resto h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
}

.resto h2 a:focus-visible {
  outline: none;
}

.resto:has(a:focus-visible) {
  outline: 3px solid var(--or-encre);
  outline-offset: 3px;
}

.fleche {
  flex: none;
  font-family: var(--texte);
  font-size: 20px;
  color: var(--or-encre);
}

.resto .adresse {
  margin: 0;
  color: var(--encre-2);
  font-size: 15px;
}

.resto .pastilles {
  margin-top: 4px;
}

.carte-zone {
  flex: 1.3 1 420px;
  min-width: 0;
  margin: 0;
}

@media (min-width: 52rem) {
  .carte-zone {
    position: sticky;
    top: 96px;
  }
}

.carte {
  width: 100%;
  height: clamp(320px, 50vw, 560px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--trait);
  background: var(--attenue);
}

.carte-zone figcaption {
  margin-top: 12px;
  color: var(--encre-2);
  font-size: 13px;
}

.carte-repli {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 1.5rem;
  color: var(--encre-2);
  text-align: center;
}

.vide {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 32px 28px;
  border-radius: 24px;
  border: 1px dashed var(--bord);
  color: var(--encre-2);
  text-align: center;
}

.vide a {
  color: var(--encre);
  font-weight: 600;
}

/* Un appel final plus court que celui de l'accueil : un seul cercle. */
.appel.compact {
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
}

.appel.compact::before {
  width: 520px;
  height: 520px;
}

.appel.compact::after {
  content: none;
}

.appel.compact h2 {
  max-width: 600px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
}

.appel.compact p {
  margin-top: 20px;
  font-size: 17px;
}

.appel.compact .actions {
  margin-top: 32px;
}

.appel.compact .bouton {
  min-height: 56px;
  padding: 0 30px;
}

/* Les fenêtres de la carte, aux couleurs du site. */
.leaflet-container {
  font: 15px / 1.4 var(--texte);
  background: var(--attenue);
}

.leaflet-tile-pane {
  filter: sepia(0.25) saturate(0.85);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--carte);
  color: var(--encre);
  box-shadow: var(--ombre);
}

.leaflet-popup-content {
  margin: 0.8rem 1rem;
}

.leaflet-popup-content strong {
  display: block;
  font-family: var(--titre);
  font-size: 1.1rem;
}

.leaflet-popup-content a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--encre);
}

.leaflet-container .leaflet-control-attribution {
  background: color-mix(in srgb, var(--carte) 85%, transparent);
  color: var(--encre-2);
}

.leaflet-container .leaflet-control-attribution a {
  color: var(--encre);
}

.leaflet-bar a,
.leaflet-bar a:hover {
  background: var(--carte);
  color: var(--encre);
  border-bottom-color: var(--trait);
}

/* Le pin d'un restaurant : la couleur du thème, cerné de la couleur des
   cartes pour se détacher du fond, quel qu'il soit. */
.repere svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / 35%));
  transform-origin: 50% 100%;
  transition: transform 0.15s;
}

.repere path {
  fill: var(--pri);
  stroke: var(--carte);
  stroke-width: 2;
}

.repere circle {
  fill: var(--carte);
}

/* Le pin désigné depuis la liste, ou survolé. */
.repere.actif svg,
.repere:hover svg,
.repere:focus-visible svg {
  transform: scale(1.2);
}

.repere:focus-visible {
  outline: none;
}

.repere:focus-visible path {
  stroke: var(--or);
  stroke-width: 3;
}

@media (prefers-reduced-motion: reduce) {
  .repere svg {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  /* Le fond de carte n'existe qu'en clair : on l'assombrit plutôt que de
     poser un rectangle blanc au milieu d'une page sombre. */
  .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.6);
  }
}

/* --- Fiche --------------------------------------------------------------- */

.page-fiche {
  padding-top: clamp(24px, 4vw, 40px);
}

.retour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--encre-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.retour:hover {
  color: var(--pri);
}

.fiche-haut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(16px, 2vw, 24px);
}

.fiche-photo {
  flex: 1.2 1 400px;
  min-width: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 32px;
  background: var(--abricot);
  box-shadow: 0 30px 60px -40px rgb(90 30 51 / 50%);
}

.fiche-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Plusieurs photos : une galerie qui défile, une photo à la fois. */
.photos {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.photos li {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Les flèches de `galerie.js` : seulement pour qui survole. Au doigt, la
   galerie se balaie, et les flèches n'existent pas. */
.galerie {
  position: relative;
}

.fleche {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .galerie .photos {
    scrollbar-width: none;
  }

  .galerie .photos::-webkit-scrollbar {
    display: none;
  }

  .fleche {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(42 14 26 / 70%);
    color: #f8eedc;
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0;
    transition:
      opacity 0.2s,
      background-color 0.15s;
  }

  .fleche svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .fleche.arriere {
    left: 16px;
  }

  .fleche.avant {
    right: 16px;
  }

  .galerie:hover .fleche,
  .fleche:focus-visible {
    opacity: 1;
  }

  .fleche:hover {
    background: rgb(42 14 26 / 88%);
  }

  .fleche:focus-visible {
    outline: 3px solid var(--or);
    outline-offset: 2px;
  }

  .galerie .fleche:disabled {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fleche {
    transition: none;
  }
}

/* Le rang de la photo : dit qu'il y en a d'autres, à faire défiler. */
.compteur {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(42 14 26 / 70%);
  color: #f8eedc;
  font-size: 13px;
  font-weight: 600;
}

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

.fiche-texte {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  min-width: 0;
}

.fiche-texte h1 {
  margin: 18px 0 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.fiche-texte .etiquette + h1 {
  margin-top: 18px;
}

.fiche-texte > h1:first-child {
  margin-top: 0;
}

.citation {
  margin: 18px 0 0;
  font-family: var(--titre);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
  color: var(--pri);
}

.description {
  margin: 18px 0 0;
  white-space: pre-line;
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre-2);
}

.fiche-texte .adresse {
  margin: 20px 0 0;
  font-size: 16px;
  color: var(--encre-2);
}

.fiche-texte .pastilles {
  margin-top: 20px;
}

.fiche-texte .pastilles li {
  padding: 8px 14px;
  font-size: 14px;
}

.fiche-texte .actions {
  margin-top: 32px;
}

.fiche-texte .bouton {
  min-height: 56px;
  padding: 0 30px;
}

.fiche-texte .bouton:not(.second) {
  box-shadow: 0 14px 26px -16px rgb(90 30 51 / 70%);
}

/* Le menu du jour. */
.menu {
  margin-top: clamp(80px, 10vw, 128px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  background: var(--carte);
  box-shadow: 0 30px 60px -44px rgb(90 30 51 / 35%);
  scroll-margin-top: 90px;
}

.menu-tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.menu-tete h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.confirme {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ok-fond);
  color: var(--ok);
  font-size: 13px;
  font-weight: 600;
}

.attente {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 28px;
  border-radius: 22px;
  background: var(--abricot);
  color: var(--sur-abricot);
}

.attente img {
  width: 56px;
  height: 56px;
  flex: none;
}

.attente div {
  flex: 1;
  min-width: 200px;
}

.attente p {
  margin: 4px 0 0;
  font-size: 16px;
}

.attente p.titre {
  margin: 0;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 22px;
}

.ardoise {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ardoise + .ardoise {
  margin-top: 0;
}

.ardoise li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 22px 0;
  border-top: 1px solid var(--trait);
}

/* La rubrique, ou le « ou » d'un plat au choix, dans la colonne de gauche. */
.ardoise h3,
.ardoise .ou {
  flex: none;
  width: 110px;
  margin: 0;
  font-family: var(--texte);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--encre-2);
}

.ardoise .ou {
  font-family: var(--titre);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.ardoise .plat {
  flex: 1;
  min-width: 200px;
}

.ardoise .nom {
  margin: 0;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
}

.ardoise .allergenes {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--encre-2);
}

.ardoise .prix {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 24px;
  white-space: nowrap;
}

.note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--trait);
  color: var(--encre-2);
  font-size: 14px;
}

/* La maison : les articles du restaurateur. */
.maison {
  margin-top: clamp(80px, 10vw, 128px);
  text-align: center;
}

.article + .article {
  margin-top: clamp(64px, 8vw, 104px);
}

.article > h2 {
  max-width: 680px;
  margin: 14px auto 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.article-rangee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
  text-align: left;
}

/* Un article sur deux, l'image passe de l'autre côté. */
.article:nth-of-type(even) .article-rangee {
  flex-direction: row-reverse;
}

.article-image {
  flex: 1 1 360px;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: var(--abricot);
}

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

.corps {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Sans image, le texte reste à une largeur de lecture. */
.article-rangee > .corps:only-child {
  max-width: 720px;
  margin: 0 auto;
}

.corps > * {
  margin: 0;
}

.corps h3 {
  font-size: 28px;
  line-height: 1.2;
}

.corps p,
.corps ul {
  font-size: 18px;
  line-height: 1.65;
  color: var(--encre-corps);
}

.corps ul {
  padding-left: 1.2em;
}

.corps strong {
  color: var(--encre);
}

/* La dernière phrase, en exergue. */
.corps > p:last-child:not(:first-child) {
  font-family: var(--titre);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: var(--pri);
}

/* Infos pratiques. */
.infos-section {
  margin-top: clamp(80px, 10vw, 128px);
}

.infos-section > h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.infos-rangee {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
  margin-top: 32px;
}

.infos {
  display: grid;
  flex: 1 1 420px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
}

.infos div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
  background: var(--carte);
  border: 1px solid var(--trait);
}

.infos dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.infos dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.infos dd p {
  margin: 0;
}

.plan {
  display: flex;
  flex: 1 1 340px;
  flex-direction: column;
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--trait);
  background: var(--carte);
}

.plan .carte {
  flex: 1;
  height: auto;
  min-height: 220px;
  border: 0;
  border-radius: 0;
}

.lien-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  border-top: 1px solid var(--trait);
  color: var(--pri);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.lien-plan:hover {
  color: var(--or-encre);
}

.lien-plan:focus-visible {
  outline-offset: -3px;
}

/* Réserver : le dernier bloc, sombre. */
.appel-section.reserver {
  padding-top: clamp(80px, 10vw, 128px);
  scroll-margin-top: 60px;
}

.reserver .appel {
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
}

.reserver .appel::before {
  width: 520px;
  height: 520px;
}

.reserver .appel::after {
  width: 780px;
  height: 780px;
}

.reserver .appel p {
  margin-top: 20px;
}

.reserver .appel .actions {
  margin-top: 36px;
}
