/* JVD Food côté client (food.html, suivi-commande.html) — complète espace-restaurant.css */
.fd-titre-lien { text-decoration: none; }
.fd-page { max-width: 1100px; }
.fd-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; min-height: 58vh; }
.fd-hero h1 { font-size: clamp(28px, 6vw, 46px); line-height: 1.1; letter-spacing: -1px; margin-bottom: 12px; }
.fd-hero p { color: var(--jvd-gris); font-size: 17px; margin: 0; }
.fd-lieu-carte .er-lieu { margin-bottom: 4px; }
@media (max-width: 760px) { .fd-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 4vh; } }

.fd-barre-lieu { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px; box-shadow: var(--neu-creux-petit); font-size: 14.5px; margin-bottom: 16px; }
.fd-barre-lieu .er-lien { margin: 0; padding: 4px; }
.fd-recherche { margin-bottom: 14px; }
.fd-puces { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px 12px; margin: 0 -4px; }
.fd-puces::-webkit-scrollbar { display: none; }
.fd-puces button, .fd-puces a { flex-shrink: 0; border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; background: var(--neu-fond); box-shadow: var(--neu-relief-petit); color: var(--jvd-texte); cursor: pointer; text-decoration: none; white-space: nowrap; }
.fd-puces .actif { box-shadow: var(--neu-creux-petit); color: var(--jvd-bleu); font-weight: 600; }
.fd-puces-collantes { position: sticky; top: 70px; z-index: 5; background: var(--neu-fond); }

.fd-grille-restos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.fd-resto { display: block; text-align: left; border: 0; padding: 0; font: inherit; color: inherit; background: var(--neu-fond); border-radius: 28px; box-shadow: var(--neu-relief); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine) { .fd-resto:hover { transform: translateY(-3px); } }
.fd-resto:focus-visible { outline: 2px solid var(--jvd-bleu); outline-offset: 3px; }
.fd-resto-img { height: 140px; background: linear-gradient(135deg, var(--jvd-bleu), #2d6bb8 60%, var(--jvd-orange)); background-size: cover; background-position: center; position: relative; }
.fd-resto-img img { position: absolute; left: 16px; bottom: -26px; width: 56px; height: 56px; border-radius: 18px; object-fit: cover; border: 3px solid var(--neu-fond); background: #fff; box-shadow: var(--neu-relief-petit); }
.fd-resto-corps { padding: 32px 18px 18px; }
.fd-resto-corps h2, .fd-resto-corps h3 { font-size: 18px; margin: 0 0 2px; }
.fd-resto-cats { color: var(--jvd-gris); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-resto-infos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fd-resto-infos span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; box-shadow: var(--neu-creux-petit); }
.fd-resto.ferme { opacity: .62; }
.fd-resto .fd-etat { color: #A26100; font-weight: 600; }

.fd-retour { margin: 0 0 10px; padding-left: 0; }
.fd-cat-titre { font-size: 18px; font-weight: 700; margin: 26px 0 12px 4px; scroll-margin-top: 130px; }
.fd-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .fd-plats { grid-template-columns: 1fr; } }
.fd-plat { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 24px; box-shadow: var(--neu-relief-petit); }
.fd-plat-img { position: relative; width: 96px; height: 96px; flex-shrink: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--neu-creux-petit); display: grid; place-items: center; font-size: 34px; }
.fd-plat-img img { width: 100%; height: 100%; object-fit: cover; }
.fd-plat-img em { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 9.5px; font-style: normal; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--jvd-gris); white-space: nowrap; }
.fd-plat-txt { flex: 1; min-width: 0; }
.fd-plat-txt b { display: block; }
.fd-plat-txt p { margin: 2px 0 6px; color: var(--jvd-gris); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-plat-prix { font-weight: 700; color: var(--jvd-bleu); }
.fd-qte { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; box-shadow: var(--neu-creux-petit); padding: 3px; }
.fd-qte button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--neu-fond); box-shadow: var(--neu-relief-petit); font-size: 20px; font-weight: 600; color: var(--jvd-bleu); cursor: pointer; line-height: 1; touch-action: manipulation; }
.fd-qte span { min-width: 22px; text-align: center; font-weight: 700; }
.fd-ajouter { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--jvd-bleu); color: #fff; font-size: 24px; line-height: 1; box-shadow: var(--neu-relief-petit); cursor: pointer; flex-shrink: 0; touch-action: manipulation; }
.fd-ajouter:disabled { background: #B9C2CF; cursor: not-allowed; }

.fd-barre-panier { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; align-items: center; gap: 14px;
  width: min(520px, calc(100vw - 32px)); padding: 14px 20px; border: 0; border-radius: 999px; background: var(--jvd-bleu); color: #fff; font: inherit; font-size: 15.5px; font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(13, 43, 87, .6); cursor: pointer; }
.fd-barre-panier span:nth-child(2) { flex: 1; text-align: left; }
.fd-nb { min-width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--jvd-orange); font-size: 14px; }
.fd .er-page { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

.fd-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--neu-fonce); }
.fd-ligne-nom { flex: 1; min-width: 0; }
.fd-ligne-nom small { display: block; color: var(--jvd-gris); }
.fd-ligne-total { font-weight: 700; min-width: 74px; text-align: right; }
.fd-totaux { margin: 12px 0 4px; font-size: 14.5px; }
.fd-totaux div { display: flex; justify-content: space-between; padding: 3px 0; }
.fd-totaux .grand { font-size: 18px; font-weight: 700; color: var(--jvd-bleu); padding-top: 8px; }
.fd-paiement { grid-template-columns: repeat(3, 1fr); }
.fd-bientot { opacity: .5; cursor: not-allowed !important; }
@media (max-width: 600px) { .fd-paiement { grid-template-columns: 1fr 1fr 1fr; } .fd-paiement label { padding: 10px; } .fd-paiement small { font-size: 11px; } }
.fd-piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fd-petit { font-size: 12.5px; text-align: center; margin-top: 10px; }

/* suivi */
.fd-suivi { max-width: 640px; margin: 0 auto; }
.fd-etat-grand { text-align: center; padding: 26px 20px; }
.fd-etat-grand .ic { font-size: 54px; line-height: 1; }
.fd-etat-grand h1 { margin: 10px 0 4px; }
.fd-etat-grand p { color: var(--jvd-gris); margin: 0; }
.fd-etapes { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fd-etapes li { text-align: center; font-size: 12.5px; color: var(--jvd-gris); position: relative; }
.fd-etapes li::before { content: ""; display: block; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%; box-shadow: var(--neu-creux-petit); }
.fd-etapes li.fait::before { background: var(--jvd-vert); box-shadow: var(--neu-relief-petit); }
.fd-etapes li.encours::before { background: var(--jvd-orange); box-shadow: var(--neu-relief-petit); animation: fd-pulse 1.4s ease-in-out infinite; }
.fd-etapes li.fait, .fd-etapes li.encours { color: var(--jvd-texte); font-weight: 600; }
@keyframes fd-pulse { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .fd-etapes li.encours::before { animation: none; } }
.fd-compte { font-weight: 700; color: var(--jvd-orange); }
.fd-actions-suivi { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.fd-recap h3 { margin-top: 0; }
.fd-recap .fd-adresse { color: var(--jvd-gris); font-size: 14px; }

/* navigation JVD Food (sous l'en-tête) */
.fd-nav { max-width: 1100px; margin: 0 auto; padding: 0 16px 10px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fd-nav::-webkit-scrollbar { display: none; }
.fd-nav a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--jvd-texte); text-decoration: none; background: var(--neu-fond); box-shadow: var(--neu-relief-petit); white-space: nowrap; }
.fd-nav a.actif { box-shadow: var(--neu-creux-petit); color: var(--jvd-bleu); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .fd-nav a:hover { color: var(--jvd-orange); } }
.fd-partenaires { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 10px; }
@media (max-width: 760px) { .fd-partenaires { grid-template-columns: 1fr; } }
.fd-partenaire { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 26px; box-shadow: var(--neu-relief); color: var(--jvd-texte); text-decoration: none; transition: transform .15s; }
@media (hover: hover) and (pointer: fine) { .fd-partenaire:hover { transform: translateY(-2px); } }
.fd-partenaire .ic { font-size: 34px; width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; border-radius: 20px; box-shadow: var(--neu-creux-petit); }
.fd-partenaire b { display: block; font-size: 16px; color: var(--jvd-bleu); margin-bottom: 2px; }
.fd-partenaire span:last-child { font-size: 14px; color: var(--jvd-gris); line-height: 1.5; }
.fd-macmd { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 22px; box-shadow: var(--neu-relief-petit); margin-bottom: 12px; color: var(--jvd-texte); text-decoration: none; }
.fd-macmd small { display: block; color: var(--jvd-gris); }

/* ---------- scènes animées du suivi ---------- */
.fd-etat-grand .ic.ic-scene { font-size: 0; }
.fd-scene { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; overflow: visible; }
.fd-scene .nuages ellipse { fill: #fff; opacity: .9; }
.fd-scene .resto rect:first-child { fill: #F3EEE6; stroke: var(--jvd-orange); stroke-width: 2; }
.fd-scene .resto .toit { fill: var(--jvd-orange); }
.fd-scene .porte { fill: var(--jvd-bleu); opacity: .8; }
.fd-scene .enseigne { font-size: 14px; }
.fd-scene .maison path:first-child { fill: #fff; stroke: var(--jvd-bleu); stroke-width: 2; stroke-linejoin: round; }
.fd-scene .repere { fill: var(--jvd-vert); } .fd-scene .repere-c { fill: #fff; }
.fd-scene .route { stroke: #B9C2CF; stroke-width: 3; stroke-linecap: round; }
.fd-scene .marquage { stroke: #D1D9E6; stroke-width: 3; stroke-dasharray: 14 12; }
.fd-scene .carrosserie { fill: var(--jvd-orange); }
.fd-scene .coffre { fill: var(--jvd-bleu); }
.fd-scene .pilote { fill: var(--jvd-bleu-nuit); }
.fd-scene .casque { fill: var(--jvd-orange-fonce); }
.fd-scene .guidon { stroke: var(--jvd-texte); stroke-width: 3; stroke-linecap: round; }
.fd-scene .vitesse { stroke: var(--jvd-gris); stroke-width: 2; stroke-linecap: round; opacity: .6; }
.fd-scene .roue circle { fill: #fff; stroke: var(--jvd-texte); stroke-width: 3; }
.fd-scene .roue path { stroke: var(--jvd-texte); stroke-width: 1.5; }
.fd-scene .marmite { fill: var(--jvd-orange); } .fd-scene .couvercle, .fd-scene .anse { fill: var(--jvd-orange-fonce); }
.fd-scene .vapeur { fill: none; stroke: #B9C2CF; stroke-width: 3; stroke-linecap: round; }

/* la moto traverse la route du restaurant à la maison, en boucle */
.fd-scene-route .moto { transform: translate(160px, 90px); }
.fd-scene .flamme { fill: var(--jvd-orange); stroke: none; }
.fd-scene .flamme-c { fill: #FFC531; }
@media (prefers-reduced-motion: no-preference) {
  .fd-scene-route .moto { animation: fd-trajet 6s cubic-bezier(.45, .05, .55, .95) infinite; }
  .fd-scene-route .corps { animation: fd-secousse .35s ease-in-out infinite alternate; }
  .fd-scene-route .roue circle, .fd-scene-route .roue path { transform-box: fill-box; transform-origin: center; }
  .fd-scene-route .roue { animation: none; }
  .fd-scene-route .roue path { animation: fd-tourne .45s linear infinite; }
  .fd-scene-route .marquage { animation: fd-route .6s linear infinite; }
  .fd-scene-route .nuages { animation: fd-nuages 9s linear infinite alternate; }
  .fd-scene-route .vitesse { animation: fd-vitesse .5s ease-in-out infinite alternate; }
  .fd-scene-route .repere { animation: fd-repere 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
  .fd-scene-cuisine .vapeur { stroke-dasharray: 30; animation: fd-vapeur 1.8s ease-in-out infinite; }
  .fd-scene-cuisine .couvercle { animation: fd-couvercle 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .fd-scene-cuisine .flamme { animation: fd-flamme .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
}
@keyframes fd-trajet { 0% { transform: translate(96px, 90px); opacity: 0; } 8% { opacity: 1; } 82% { transform: translate(226px, 90px); opacity: 1; } 95%, 100% { transform: translate(230px, 90px); opacity: 0; } }
@keyframes fd-secousse { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes fd-tourne { to { transform: rotate(360deg); } }
@keyframes fd-route { to { stroke-dashoffset: -26; } }
@keyframes fd-nuages { to { transform: translateX(-14px); } }
@keyframes fd-vitesse { from { opacity: .2; } to { opacity: .7; } }
@keyframes fd-repere { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes fd-vapeur { 0% { stroke-dashoffset: 30; opacity: 0; } 40% { opacity: .9; } 100% { stroke-dashoffset: -30; opacity: 0; } }
@keyframes fd-couvercle { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-3px) rotate(-3deg); } 90% { transform: translateY(-1px) rotate(2deg); } }
@keyframes fd-flamme { from { transform: scaleY(.85); opacity: .8; } to { transform: scaleY(1.1); opacity: 1; } }

/* livrée : coche qui se dessine, sac posé, confettis (une seule fois) */
.fd-scene-livree .badge-fond { fill: var(--jvd-vert); }
.fd-scene-livree .coche { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.fd-scene-livree .sac-corps { fill: var(--jvd-orange); }
.fd-scene-livree .sac-anse { fill: none; stroke: var(--jvd-orange-fonce); stroke-width: 3; stroke-linecap: round; }
.fd-scene-livree .sac-logo { font: 700 8px Poppins, sans-serif; fill: #fff; }
.fd-scene-livree .c1 { fill: var(--jvd-orange); } .fd-scene-livree .c2 { fill: var(--jvd-bleu); } .fd-scene-livree .c3 { fill: var(--jvd-vert); }
.fd-scene-livree .confettis { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .fd-scene-livree .badge { transform-box: fill-box; transform-origin: center; animation: fd-badge .6s cubic-bezier(.34, 1.56, .64, 1) both; }
  .fd-scene-livree .coche { stroke-dasharray: 48; stroke-dashoffset: 48; animation: fd-coche .45s ease-out .45s forwards; }
  .fd-scene-livree .sac { animation: fd-sac .7s cubic-bezier(.34, 1.4, .64, 1) .2s both; }
  .fd-scene-livree .confettis { animation: fd-confettis 1.6s ease-out .7s both; }
  .fd-scene-livree .confettis > * { transform-box: fill-box; transform-origin: center; animation: fd-tombe 1.6s ease-in .7s both; }
  .fd-scene-livree .confettis > :nth-child(even) { animation-duration: 1.9s; }
}
@media (prefers-reduced-motion: reduce) { .fd-scene-livree .confettis { opacity: 1; } }
@keyframes fd-badge { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fd-coche { to { stroke-dashoffset: 0; } }
@keyframes fd-sac { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fd-confettis { 0% { opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fd-tombe { from { transform: translateY(-14px) rotate(0); } to { transform: translateY(40px) rotate(220deg); } }

/* ---------- Accueil JVD Food : grand bandeau coloré avec les plats ---------- */
.jvd-food .fd-hero { position: relative; isolation: isolate; margin-top: 8px; padding: 46px 44px; border-radius: 36px; background: var(--food-degrade); color: #fff; min-height: 0; box-shadow: 0 30px 60px -30px rgba(11, 59, 31, .6); overflow: hidden; }
.jvd-food .fd-hero::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .5), transparent 65%); }
.jvd-food .fd-hero::after { content: ""; position: absolute; z-index: -1; left: -100px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); }
.jvd-food .fd-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .15); }
.jvd-food .fd-hero p { color: rgba(255, 255, 255, .9); }
.fd-etiquette { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-size: 13.5px; font-weight: 600; }
.fd-hero-plats { display: flex; margin-top: 26px; padding-left: 10px; }
.fd-hero-plats img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; margin-left: -14px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .45); background: #fff; animation: fd-flotte 5s ease-in-out infinite; }
.fd-hero-plats img:nth-child(2) { animation-delay: -1s; } .fd-hero-plats img:nth-child(3) { animation-delay: -2s; }
.fd-hero-plats img:nth-child(4) { animation-delay: -3s; } .fd-hero-plats img:nth-child(5) { animation-delay: -4s; }
@keyframes fd-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .fd-hero-plats img { animation: none; } }
.jvd-food .fd-hero .fd-lieu-carte { background: #FFFBF6; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); color: var(--jvd-texte); }
@media (max-width: 760px) {
  .jvd-food .fd-hero { padding: 28px 20px 22px; border-radius: 28px; gap: 22px; }
  .fd-hero-plats img { width: 64px; height: 64px; border-width: 3px; margin-left: -12px; }
}
.fd-partenaire img.ic { object-fit: cover; padding: 0; width: 84px; height: 64px; box-shadow: var(--neu-relief-petit); }

/* ---------- Liste des restaurants : simple comme une appli de livraison ---------- */
.fd-recherche { position: relative; }
.fd-loupe { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 17px; pointer-events: none; opacity: .75; }
.fd-recherche .er-champ { padding-left: 48px; min-height: 54px; font-size: 16px; }
.fd-titre-section { font-size: 18px; font-weight: 700; margin: 22px 4px 12px; color: var(--jvd-texte); }
.fd-titre-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fd-titre-ligne .er-lien { margin: 0; white-space: nowrap; font-weight: 600; }

/* bulles des catégories : tout est visible, elles passent à la ligne */
.fd-bulles { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 14px 8px; margin-bottom: 4px; }
.fd-bulles:empty { display: none; }
.fd-bulle { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; line-height: 1.2; text-align: center; color: var(--jvd-texte); cursor: pointer; touch-action: manipulation; }
.fd-bulle .rond { width: 66px; height: 66px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: var(--neu-relief-petit); border: 3px solid transparent; font-size: 30px; transition: transform .15s, border-color .15s; }
.fd-bulle .rond img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.fd-bulle .rond.tout { background: var(--jvd-sable); }
.fd-bulle.actif .rond { border-color: var(--jvd-bleu); transform: scale(1.06); }
.fd-bulle.actif { color: var(--jvd-bleu); font-weight: 700; }
.fd-bulle:focus-visible { outline: none; } .fd-bulle:focus-visible .rond { outline: 2px solid var(--jvd-bleu); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .fd-bulle:hover .rond { transform: translateY(-2px); } }
@media (max-width: 420px) { .fd-bulles { grid-template-columns: repeat(4, 1fr); } .fd-bulle .rond { width: 60px; height: 60px; } .fd-bulle { font-size: 12px; } }

/* rangées « à la une » : 2 cartes par ligne sur téléphone, 4 sur ordinateur, sans défilement de côté */
.fd-rangee { margin-bottom: 6px; }
.fd-grille-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .fd-grille-mini { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* cartes de restaurant */
.fd-resto-img { height: 150px; }
.fd-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.fd-badges span { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.b-nouveau { background: var(--jvd-orange); color: #fff; }
.b-offert { background: #fff; color: var(--jvd-vert); }
.fd-ferme-bandeau { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30, 20, 15, .45); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .3px; }
.fd-resto.ferme { opacity: 1; }
.fd-resto.ferme .fd-resto-corps { opacity: .7; }
.fd-resto.mini { border-radius: 22px; }
.fd-resto.mini .fd-resto-img { height: 104px; }
.fd-resto.mini .fd-resto-img > img { width: 42px; height: 42px; border-radius: 14px; bottom: -18px; left: 12px; }
.fd-resto.mini .fd-resto-corps { padding: 24px 12px 12px; }
.fd-resto.mini h3 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-resto.mini .fd-resto-cats { font-size: 12px; }
.fd-resto.mini .fd-resto-infos span { font-size: 11.5px; padding: 3px 8px; }
.fd-resto.mini .fd-badges span { font-size: 10.5px; padding: 3px 7px; }
.fd-resto.mini .b-offert { display: none; }

/* barre du panier aux couleurs de JVD Food */
.jvd-food .fd-barre-panier { box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--jvd-bleu) 70%, transparent); }
.fd-barre-panier { animation: fd-monte .25s ease-out; }
@keyframes fd-monte { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fd-barre-panier { animation: none; } }

/* Téléphone : cartes en ligne (photo à gauche, infos à droite), la liste reste courte */
@media (max-width: 600px) {
  .fd-grille-restos { grid-template-columns: 1fr; gap: 12px; }
  .fd-grille-restos .fd-resto { display: flex; align-items: stretch; border-radius: 22px; min-height: 112px; }
  .fd-grille-restos .fd-resto-img { width: 116px; height: auto; flex-shrink: 0; }
  .fd-grille-restos .fd-resto-img > img { width: 38px; height: 38px; border-radius: 12px; left: auto; right: 8px; bottom: 8px; border-width: 2px; }
  .fd-grille-restos .fd-resto-corps { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
  .fd-grille-restos .fd-resto-corps h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fd-grille-restos .fd-resto-infos { margin-top: 8px; }
  .fd-grille-restos .fd-badges { top: 6px; left: 6px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .fd-grille-restos .fd-badges span { font-size: 10px; padding: 3px 7px; }
  .fd-grille-restos .fd-ferme-bandeau { font-size: 13px; }
}
/* Téléphone : le menu JVD Food tient sur 2 lignes, sans défiler de côté */
@media (max-width: 600px) {
  .fd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; }
  .fd-nav a { text-align: center; padding: 8px 6px; font-size: 13.5px; }
}

/* ---------- Étoiles et avis ---------- */
.fd-etoiles { color: #F59E0B; font-weight: 700; white-space: nowrap; }
.fd-etoiles .vide { color: #E5D5C3; }
.fd-etoiles small, .fd-etoiles b { color: var(--jvd-texte); font-weight: 600; }
.fd-resto-cats .fd-etoiles small { color: var(--jvd-gris); font-weight: 400; }
#menuNote { margin-top: 2px; font-size: 15px; }
.fd-avis-liste { margin-top: 18px; }
.fd-avis { padding: 14px 16px; border-radius: 20px; box-shadow: var(--neu-relief-petit); margin-bottom: 12px; }
.fd-avis p { margin: 6px 0 0; color: var(--jvd-texte); font-size: 14.5px; }

/* ---------- Restaurants d'autres quartiers de la ville ---------- */
.fd-ailleurs { margin-top: 26px; padding-top: 6px; border-top: 2px dashed var(--jvd-ligne); }
.fd-ailleurs .er-aide { margin: -4px 4px 14px; }
.fd-ailleurs .fd-resto .fd-resto-corps { opacity: .92; }

/* ---------- Noter le restaurant (page de suivi) ---------- */
.fd-noter { margin-top: 18px; padding: 18px; border-radius: 22px; box-shadow: var(--neu-creux-petit); text-align: center; }
.fd-noter h3 { margin: 0 0 4px; }
.fd-noter-etoiles { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; }
.fd-noter-etoiles button { border: 0; background: none; font-size: 40px; line-height: 1; color: #E5D5C3; cursor: pointer; padding: 2px 4px; transition: transform .12s, color .12s; touch-action: manipulation; }
.fd-noter-etoiles button.on { color: #F59E0B; }
.fd-noter-etoiles button:active { transform: scale(1.2); }
.fd-noter textarea { margin-bottom: 4px; text-align: left; }
.fd-noter .er-btn { margin-top: 10px; }
.fd-noter-merci { margin: 0; font-size: 16px; }

/* ---------- Position GPS du client ---------- */
.fd-gps { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: 18px; background: #F0FDF4; border: 1px dashed #86EFAC; }
.fd-gps-btn { min-height: 44px; }
.fd-gps-btn.ok { background: #DCFCE7; color: #15803D; box-shadow: none; }
.fd-gps small { margin: 0; font-size: 13px; }

/* Suivi du livreur en direct sur la carte */
.fd-carte-suivi { margin: 18px 0 4px; }
#carteSuivi { height: 280px; border-radius: 20px; overflow: hidden; box-shadow: var(--neu-creux-petit); background: #E8EEF2; z-index: 0; }
@media (min-width: 700px) { #carteSuivi { height: 340px; } }
#carteInfo { margin: 10px 2px 0; font-size: 14.5px; text-align: center; }
#carteInfo b { color: var(--jvd-vert, #14532D); }
.fd-pin { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid #14532D; font-size: 19px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.fd-pin.client { border-color: #2563EB; }
.fd-pin.livreur { width: 46px; height: 46px; font-size: 24px; border-color: #F97316; background: #FFF7ED; }
.fd-pin.livreur::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(249,115,22,.45); animation: fdPouls 1.8s ease-out infinite; }
@keyframes fdPouls { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fd-pin.livreur::after { animation: none; } }
.fd-macmd .er-badge { margin-top: 6px; }
.fd-cmd-compte { margin-bottom: 16px; }
