/* KFBURGER : ajouts par-dessus le style de The Foundation (styles.css) */

/* Infos encore à compléter */
mark.todo {
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 106, 0, 0.14);
  color: var(--accent-lt);
}

/* ---------- Logo KFB : un reflet blanc le traverse toutes les 3 s ---------- */
.kf-mark {
  position: relative;
  display: block;
  width: 92px;
}

.kf-mark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.kf-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.35) 45%, #fff 50%, rgba(255, 255, 255, 0.35) 55%, transparent 62%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-mask: url("assets/kfb.png") center / contain no-repeat;
  mask: url("assets/kfb.png") center / contain no-repeat;
  animation: kf-logo-shine 3s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

/* le reflet passe en 0,9 s puis attend la fin des 3 s */
@keyframes kf-logo-shine {
  0% {
    background-position: 100% 0;
  }
  30%,
  100% {
    background-position: 0% 0;
  }
}

.footer .footer-brand .kf-mark {
  width: 76px;
}

/* Préchargement : le vrai logo KFB, avec tous ses détails. En noir et blanc pendant le chargement,
   avec un reflet blanc qui passe ; à 100 % il passe en orange avec des reflets façon verre,
   puis l'éclat final le traverse avant la plongée dans le logo. */
.loader-logo {
  width: 150px;
  aspect-ratio: 1681 / 791;
  background: none;
  -webkit-mask: none;
  mask: none;
  animation: none;
}

.loader-logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

/* version blanche pendant le chargement, posée sur la version orange qui apparaît à 100 % */
.loader-logo .loader-logo-white {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.loader.full .loader-logo img {
  opacity: 1;
}

.loader.full .loader-logo .loader-logo-white {
  opacity: 0;
}

/* Le filtre de l'image en fait une couche à part qui passerait au-dessus des reflets :
   ceux-ci sont donc remis explicitement au premier plan. */
.loader-logo::before {
  z-index: 1;
}

.loader-logo::after {
  z-index: 2;
}

/* reflet blanc pendant le chargement, découpé à la forme du logo */
.loader-logo::before {
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.85) 50%, transparent 60%);
  background-size: 300% 100%;
  -webkit-mask: url("assets/kfb.png") center / contain no-repeat;
  mask: url("assets/kfb.png") center / contain no-repeat;
  mix-blend-mode: soft-light;
  opacity: 1;
  animation: loader-shine 1.6s ease-in-out infinite;
}

/* à 100 % : effet verre. Un éclat orange et blanc glisse sur le logo, au-dessus d'un reflet fixe
   clair en haut et orange chaud en bas, comme une surface vernie */
.loader.full .loader-logo::before {
  background:
    linear-gradient(115deg, transparent 32%, rgba(255, 180, 90, 0.5) 42%, #fff8ec 48%, #fff 50%, rgba(255, 160, 60, 0.75) 54%, transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.38) 40%, rgba(255, 255, 255, 0.05) 46%, rgba(255, 255, 255, 0) 60%, rgba(255, 120, 20, 0.55) 100%);
  background-size: 300% 100%, 100% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  animation: kf-glass 1.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

@keyframes kf-glass {
  0% {
    background-position: 100% 0, 0 0;
  }
  70%,
  100% {
    background-position: 0% 0, 0 0;
  }
}

.loader-logo::after {
  -webkit-mask: url("assets/kfb.png") center / contain no-repeat;
  mask: url("assets/kfb.png") center / contain no-repeat;
}

.loader-glow {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.loader.full .loader-glow {
  filter: drop-shadow(0 0 14px rgba(255, 106, 0, 0.45));
}

/* ---------- Motif KFB en relief, en fond de tout le site (tuile raccordée sans coupure) ----------
   Deux calques fixes alignés : le motif très sombre, et le même motif éclairci, visible seulement
   autour de la souris (bg.js). Le motif suit le défilement de la page grâce à --sy. */
body {
  background: #090909;
}

/* Le fond du chargement est un voile séparé : c'est lui qu'on perce à la forme du logo (main.js) */
.loader {
  background: transparent;
}

.loader-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #090909 url("assets/pattern.png") 0 0 / 392px 108px repeat;
}

/* même lumière à la souris que sur le site ; placée dans le voile, elle est percée avec lui pendant la plongée */
.loader-lit {
  position: absolute;
  inset: 0;
  background: url("assets/pattern.png") 0 0 / 392px 108px repeat;
}

.loader.diving .loader-veil {
  -webkit-mask-image: url("assets/kfb.png"), linear-gradient(#000, #000);
  mask-image: url("assets/kfb.png"), linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* pendant la plongée : plus de halo (trop coûteux à cette taille), compteur et barre s'effacent */
.loader.diving .loader-glow {
  filter: none;
}

.loader.diving .loader-spark,
.loader.diving .loader-logo::before,
.loader.diving .loader-logo::after {
  display: none;
}

.loader.diving .loader-pct,
.loader.diving .loader-bar {
  opacity: 0;
  transition: opacity 0.3s;
}

.loader.diving .loader-logo img {
  will-change: transform, opacity;
}

.kf-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/pattern.png") 0 calc(var(--sy, 0) * -1px) / 392px 108px repeat;
}

.kf-bg-lit {
  filter: brightness(3.2);
  opacity: 0;
  transition: opacity 0.6s ease;
  -webkit-mask: radial-gradient(240px circle at var(--bx, 50%) var(--by, 50%), #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  mask: radial-gradient(240px circle at var(--bx, 50%) var(--by, 50%), #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
}

.kf-bg-lit.on {
  opacity: 1;
}

/* Le bas de page laisse voir le motif. Il ne doit pas isoler son contenu : la lumière qui suit la souris
   (footer.js) se fond par « multiplication » avec ce qui est derrière, et sur un fond isolé et transparent
   elle apparaissait comme un carré blanc. */
.footer {
  background: transparent;
  isolation: auto;
}

/* ---------- Boutons blancs de commande ---------- */
.btn-white .in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.btn .in img,
.rot-item img {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.btn .in img.wide,
.rot-item img.wide {
  height: 16px;
}

.hero-order {
  margin-top: 40px;
}

.hero-more {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 106, 0, 0.6);
  text-underline-offset: 5px;
  transition: color 0.3s;
}

.hero-more:hover {
  color: var(--text);
}

/* ---------- Menu ---------- */
.kf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.kf-tabs button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card-bg);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.kf-tabs button:hover {
  color: var(--text);
}

.kf-tabs button[aria-selected="true"] {
  color: #111;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.12);
}

.kf-dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.kf-dish {
  padding: 26px;
  animation: kf-in 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes kf-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
}

.kf-menu-note {
  margin: -8px 0 24px;
  font-size: 14px;
  color: var(--accent-lt);
}

.kf-menu-note[hidden] {
  display: none;
}

.kf-dish {
  display: flex;
  flex-direction: column;
}

/* photo détourée, posée sur un halo orange */
.kf-dish-img {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  margin: -6px -6px 18px;
}

.kf-dish-img::before {
  content: "";
  position: absolute;
  inset: 12% 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.32), transparent);
  filter: blur(8px);
}

.kf-dish-img img {
  position: relative;
  max-width: 100%;
  max-height: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.6s var(--ease-out);
}

.kf-dish-photo {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 100%;
  transition: transform 0.6s var(--ease-out);
}

/* drapeau planté dans le plat : le pied du mât est posé sur le dessus de la barquette */
.kf-dish-flag {
  left: 66%;
  top: 34%;
  width: 76px;
  transform: translate(-1%, calc(-100% + 76px * 14 / 280));
}

.kf-dish-flag::after {
  display: none;
}

.kf-dish:hover .kf-dish-photo:has(.kf-dish-flag) {
  transform: translateY(-6px) scale(1.04) rotate(-1.5deg);
}

.kf-dish:hover .kf-dish-photo:has(.kf-dish-flag) img {
  transform: none;
}

/* produit à tailles (tacos) : la photo grossit avec la taille choisie */
.kf-sized .kf-dish-photo {
  transform: scale(var(--size, 1));
  transform-origin: 50% 80%;
}

.kf-sized:hover .kf-dish-img img {
  transform: none;
}

.kf-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.kf-sizes button {
  padding: 6px 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.kf-sizes button:hover {
  color: var(--text);
}

.kf-sizes button[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: #090909;
}

.kf-dish:hover .kf-dish-img img {
  transform: translateY(-6px) scale(1.04) rotate(-1.5deg);
}

.kf-dish-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.kf-dish h4 {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}

.kf-dish p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.kf-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.kf-prices small {
  margin-right: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
}

/* ---------- Horaires ---------- */
.kf-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--muted);
}

.kf-status[hidden] {
  display: none;
}

.kf-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
}

.kf-status.open {
  color: var(--text);
}

.kf-status.open::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.kf-hours {
  list-style: none;
  margin: 0;
  padding: 10px 30px;
}

.kf-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  font-size: 16px;
}

.kf-hours li + li {
  border-top: 1px solid var(--line);
}

.kf-hours li.today {
  color: var(--text);
  font-weight: 500;
}

.kf-hours li.today span:first-child::after {
  content: "Aujourd'hui";
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.14);
  color: var(--accent-lt);
  font-size: 12px;
}

/* ---------- Localisation ---------- */
.kf-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 24px;
}

.kf-place-info {
  padding: 34px;
}

.kf-line {
  display: flex;
  gap: 16px;
}

.kf-line + .kf-line {
  margin-top: 26px;
}

.kf-line svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  opacity: 0.7;
}

.kf-line span {
  font-size: 13px;
  color: var(--dim);
}

.kf-line p {
  margin-top: 4px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.kf-map {
  min-height: 340px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.kf-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  border-radius: inherit;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

.kf-map {
  position: relative;
}

/* Drapeau KFB planté sur l'adresse, qui flotte au vent comme sur la bannière (main.js).
   Le pied du mât (à 1 % de la largeur, en bas du dessin) est posé au centre de la carte,
   compte tenu de la marge de 14 px sur 245 laissée sous le drapeau pour l'ondulation. */
.kf-flagpin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  pointer-events: none;
  transform: translate(-1%, calc(-100% + 100px * 14 / 280));
}

.kf-flagpin-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 280 / 273;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55));
}

/* ombre au sol sous le pied du mât */
.kf-flagpin::after {
  content: "";
  position: absolute;
  left: -9px;
  bottom: calc(100px * 14 / 280 - 4px);
  width: 20px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
}

.kf-map-empty {
  padding: 24px;
  text-align: center;
}

@media (max-width: 960px) {
  .kf-place {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-order .btn {
    width: 100%;
  }

  .hero-order .btn .in {
    width: 100%;
    justify-content: center;
  }

  .kf-hours {
    padding: 6px 20px;
  }

  .kf-place-info {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kf-mark::after,
  .kf-dish {
    animation: none;
  }
}

/* ---------- Bannière du hero ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero : la bannière seule, sur toute la largeur et en entier, juste sous la barre de navigation */
.kf-hero {
  height: auto;
  min-height: 0;
  padding: 72px 0 0;
  display: block;
}

.kf-banner-frame {
  position: relative;
  z-index: 1;
  width: 100%;
}

.kf-banner {
  position: relative;
  aspect-ratio: 1846 / 792;
}

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

/* Calque du drapeau, posé exactement sur le drapeau de l'image (découpe 520,0 → 960,320 sur 1846 × 792) */
.kf-flag {
  position: absolute;
  left: 28.169%;
  top: 0;
  width: 23.835%;
  height: 40.404%;
  opacity: 0;
  transition: opacity 0.6s;
}

.kf-flag.ready {
  opacity: 1;
}

/* Éclat blanc argenté qui balaie le texte « On débarque à Amiens dans le 80 ».
   Deux couches : le halo (filtre, sur le conteneur) et le calque découpé à la forme des lettres,
   dans lequel la lumière glisse en déplaçant son dégradé de fond. Safari ne découpe pas correctement
   un élément animé en transform à l'intérieur d'un masque : l'animation porte donc sur le fond
   du calque masqué lui-même, ce que Safari et Chrome rendent de la même façon.
   Le filtre et le masque restent sur deux éléments différents, sinon le halo serait coupé aux lettres. */
.kf-text-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 9px rgba(240, 245, 252, 0.95)) drop-shadow(0 0 22px rgba(215, 225, 240, 0.55));
}

/* Le dégradé fait 3 fois la largeur de la bannière : une large bande argentée (au centre du dégradé)
   suivie d'une bande fine. En passant de 57,5 % à 17,5 %, la bande traverse le texte (moitié droite)
   de gauche à droite, puis marque une courte pause. */
.kf-text-mask {
  position: absolute;
  inset: 0;
  -webkit-mask: url("assets/hero-text.png") 0 0 / 100% 100% no-repeat;
  mask: url("assets/hero-text.png") 0 0 / 100% 100% no-repeat;
  background: linear-gradient(
    105deg,
    transparent 41.5%,
    rgba(236, 241, 247, 0.85) 42.4%,
    transparent 43.3%,
    transparent 46.3%,
    rgba(190, 200, 214, 0.6) 47.9%,
    rgba(236, 241, 247, 1) 49.2%,
    #fff 50%,
    rgba(236, 241, 247, 1) 50.8%,
    rgba(190, 200, 214, 0.6) 52.1%,
    transparent 53.7%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 57.5% 0;
  animation: kf-text-sweep 2.4s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

@keyframes kf-text-sweep {
  0% {
    background-position: 57.5% 0;
  }
  62%,
  100% {
    background-position: 17.5% 0;
  }
}

/* Lampadaire : sa lumière vacille doucement */
.kf-lamp {
  position: absolute;
  left: 27.2%;
  top: 19.2%;
  width: 9%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 236, 190, 0.85), rgba(255, 190, 90, 0.35) 40%, transparent);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: kf-lamp 4s ease-in-out infinite;
}

@keyframes kf-lamp {
  0%,
  100% {
    opacity: 0.85;
  }
  45% {
    opacity: 1;
  }
  48% {
    opacity: 0.55;
  }
  52% {
    opacity: 0.95;
  }
  75% {
    opacity: 0.7;
  }
}

/* Étoiles qui scintillent */
.kf-twinkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(4.2% * var(--size, 1));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, #fff 50%, transparent) center / 100% 6% no-repeat,
    linear-gradient(0deg, transparent, #fff 50%, transparent) center / 6% 100% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 6%, rgba(255, 220, 160, 0.4) 14%, transparent 38%);
  filter: drop-shadow(0 0 6px rgba(255, 230, 180, 0.9));
  animation: kf-twinkle 2.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes kf-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(45deg);
  }
  70% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(90deg);
  }
}

/* Braises qui montent */
.kf-embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.kf-embers i {
  position: absolute;
  left: var(--x);
  bottom: -4%;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c4, #ffb347 45%, rgba(255, 106, 0, 0) 70%);
  box-shadow: 0 0 8px rgba(255, 170, 60, 0.9);
  animation: kf-ember var(--dur) linear infinite;
  animation-delay: var(--delay);
}

/* la hauteur à parcourir est celle de la bannière : on anime bottom, pas transform (relatif à la braise) */
@keyframes kf-ember {
  0% {
    bottom: -4%;
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    bottom: 104%;
    transform: translateX(var(--drift));
    opacity: 0;
  }
}

/* Commander, juste sous la bannière */
.kf-order {
  position: relative;
  padding: 56px 0 30px;
}

.kf-order .rotator-line {
  margin-top: 0;
}

.kf-order .hero-order {
  margin-top: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .kf-lamp,
  .kf-twinkle,
  .kf-text-mask {
    animation: none;
  }
}

/* Boutons Uber Eats : au survol, le motif KFB apparaît en blanc dans le fond du bouton */
.btn-white .in {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-white .in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/pattern-light.png") 0 0 / 196px 54px repeat;
  opacity: 0;
  transition: opacity 0.45s var(--ease), background-position 6s linear;
}

.btn-white:hover .in::before {
  opacity: 1;
  background-position: 196px -54px;
}

/* Onglets du menu : l'onglet blanc (sélectionné) laisse apparaître le motif KFB blanc au survol */
.kf-tabs button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.kf-tabs button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/pattern-light.png") 0 0 / 196px 54px repeat;
  opacity: 0;
  transition: opacity 0.45s var(--ease), background-position 6s linear;
}

.kf-tabs button[aria-selected="true"]:hover::before {
  opacity: 1;
  background-position: 196px -54px;
}

/* ---------- Protection du site : grand texte tout en bas ---------- */
.kf-rights {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* six petits paragraphes, discrets, comme un texte de mentions */
.kf-rights-text {
  max-width: 820px;
  margin: 0 auto;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.kf-rights-text p + p {
  margin-top: 12px;
}

/* ---------- Espacement resserré entre les parties ---------- */
.section {
  padding: 64px 0;
}

.head-row {
  margin-bottom: 40px;
}

.kf-order {
  padding: 44px 0 8px;
}

.cta-plain {
  padding: 24px 0 16px;
}

.kf-rights {
  padding-top: 44px;
}

@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }
}

/* Bouton « Appeler », entre les boutons de commande et « Voir le menu » */
.kf-call {
  margin-top: 16px;
}

.kf-call .in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* Au survol, le motif KFB apparaît aussi dans le bouton orange « Appeler » :
   le motif blanc est « multiplié » avec l'orange, ce qui donne des KFB en orange plus foncé */
.kf-call .in {
  position: relative;
  isolation: isolate;
}

.kf-call .in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("assets/pattern-mid.png") 0 0 / 196px 54px repeat;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.45s var(--ease), background-position 6s linear;
}

.kf-call .btn:hover .in::before {
  opacity: 1;
  background-position: 196px -54px;
}

/* Logo orange en haut à gauche : même effet verre que le logo du chargement à 100 %
   (haut brillant, bas orange chaud, éclat orange et blanc qui glisse), sous le reflet blanc des 3 s */
.nav .kf-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 32%, rgba(255, 180, 90, 0.5) 42%, #fff8ec 48%, #fff 50%, rgba(255, 160, 60, 0.75) 54%, transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.38) 40%, rgba(255, 255, 255, 0.05) 46%, rgba(255, 255, 255, 0) 60%, rgba(255, 120, 20, 0.55) 100%);
  background-size: 300% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-mask: url("assets/kfb.png") center / contain no-repeat;
  mask: url("assets/kfb.png") center / contain no-repeat;
  mix-blend-mode: screen;
  animation: kf-glass 2.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

/* le reflet blanc des 3 s reste au-dessus de l'effet verre */
.nav .kf-mark::after {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .nav .kf-mark::before {
    animation: none;
  }
}

/* Panneau « Amiens » planté sur le haut de la carte des coordonnées, à droite */
.kf-place {
  padding-top: 70px;
}

.kf-place-info {
  position: relative;
}

.kf-amiens {
  position: absolute;
  right: 28px;
  bottom: calc(100% - 2px);
  width: 190px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

@media (max-width: 767px) {
  .kf-place {
    padding-top: 56px;
  }

  .kf-amiens {
    right: 18px;
    width: 150px;
  }
}
