/* ==================================================================
   NESS FOOD — Catalogue, cartes et fiches
   ------------------------------------------------------------------
   Chargée uniquement sur les pages de catalogue et de fiche. Les
   variables de conception proviennent de app.css.
   ================================================================== */

/* ------------------------------------------------------------------
   1. En-tête et outils de liste
   ------------------------------------------------------------------ */

.nf-catalog { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 6vw, 4rem); }

.nf-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.nf-catalog-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 .3rem;
}

.nf-catalog-count { color: var(--nf-text-muted); margin: 0; font-size: .95rem; }

.nf-catalog-tools { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.nf-sort-form .form-select { min-width: 12rem; padding-block: .55rem; }

/* Le bouton de filtres n'existe que sous le point de rupture lg */
.nf-filter-toggle { display: inline-flex; }
@media (min-width: 992px) { .nf-filter-toggle { display: none; } }

/* ------------------------------------------------------------------
   2. Panneau de filtres
   ------------------------------------------------------------------ */

.nf-filters { background: var(--nf-surface); }

@media (min-width: 992px) {
    .nf-filters {
        border: 1px solid var(--nf-border);
        border-radius: var(--nf-radius);
        position: sticky;
        top: 88px;
        max-height: calc(100vh - 108px);
        overflow-y: auto;
    }
    .nf-filters .offcanvas-header { display: none; }
}

.nf-filters .offcanvas-body { padding: 1.25rem; }

.nf-filter-group {
    border: none;
    padding: 0 0 1.1rem;
    margin: 0 0 1.1rem;
    border-bottom: 1px solid var(--nf-border);
}

.nf-filter-group:last-of-type { border-bottom: none; }

.nf-filter-group legend {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--nf-text-muted);
    margin-bottom: .7rem;
    float: none;
    width: auto;
}

.nf-filter-group .form-check { margin-bottom: .4rem; }
.nf-filter-group .form-select { padding-block: .55rem; }

/* ------------------------------------------------------------------
   Rubriques de la fiche établissement
   ------------------------------------------------------------------
   Barre d'ancres collée sous l'en-tête. Le défilement horizontal est
   confiné à la barre : la page elle-même ne doit jamais partir de
   côté sur un téléphone.
   ------------------------------------------------------------------ */

.nf-venue-tabs {
    position: sticky;
    top: 0;
    z-index: 15;
    background: var(--nf-surface);
    border-bottom: 1px solid var(--nf-border);
}

.nf-venue-tablist {
    display: flex;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nf-venue-tablist::-webkit-scrollbar { display: none; }

.nf-venue-tab {
    display: block;
    padding: .85rem .95rem;
    white-space: nowrap;
    font-size: .93rem;
    font-weight: 600;
    color: var(--nf-text-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color var(--nf-duration) var(--nf-ease),
                border-color var(--nf-duration) var(--nf-ease);
}

.nf-venue-tab:hover,
.nf-venue-tab:focus-visible { color: var(--nf-primary); }

.nf-venue-tab.is-current {
    color: var(--nf-primary);
    border-bottom-color: var(--nf-primary);
}

/* La barre étant collée, une ancre atterrit sinon sous elle. */
.nf-panel[id],
.nf-venue-tabs ~ * [id] { scroll-margin-top: 4.5rem; }

/* ------------------------------------------------------------------
   Promotions
   ------------------------------------------------------------------ */

.nf-promo-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }

.nf-promo {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    padding: .8rem .9rem;
    border: 1.5px dashed var(--nf-primary);
    border-radius: var(--nf-radius);
    background: var(--nf-primary-soft);
}

.nf-promo-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nf-primary);
    flex: 0 0 auto;
}

.nf-promo-body { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.nf-promo-desc { font-size: .88rem; color: var(--nf-text-muted); }
.nf-promo-terms { font-size: .8rem; color: var(--nf-text-muted); }

.nf-promo-code {
    flex: 0 0 auto;
    padding: .35rem .7rem;
    border-radius: var(--nf-radius-sm);
    background: var(--nf-surface);
    border: 1px solid var(--nf-primary);
    font-weight: 700;
    font-size: .92rem;
    color: var(--nf-primary);
    user-select: all;
}

/* ------------------------------------------------------------------
   Amorce de réservation
   ------------------------------------------------------------------ */

.nf-booking-quick {
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.nf-booking-quick > div { flex: 1 1 9rem; min-width: 0; }
.nf-booking-quick .btn { flex: 0 0 auto; }

@media (max-width: 575.98px) {
    .nf-booking-quick > div,
    .nf-booking-quick .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------
   Type d'établissement
   ------------------------------------------------------------------
   Rendu en pastilles et non en liste déroulante : c'est le premier
   tri que fait un visiteur, il doit se voir sans ouvrir de menu. Les
   boutons radio natifs sont conservés sous les étiquettes — le
   clavier, les lecteurs d'écran et la soumission du formulaire
   fonctionnent sans une ligne de JavaScript.
   ------------------------------------------------------------------ */

.nf-venue-filter {
    border: none;
    padding: 0;
    margin: 0 0 1.1rem;
}

.nf-venue-filter legend { float: none; width: auto; }

.nf-venue-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.nf-venue-chip-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nf-venue-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border: 1.5px solid var(--nf-border);
    border-radius: var(--nf-radius-pill);
    font-size: .85rem;
    cursor: pointer;
    transition: border-color var(--nf-duration) var(--nf-ease),
                background var(--nf-duration) var(--nf-ease);
}

.nf-venue-chip:hover { border-color: var(--nf-primary); }

.nf-venue-chip-input:checked + .nf-venue-chip {
    border-color: var(--nf-primary);
    background: var(--nf-primary-soft);
    color: var(--nf-primary);
    font-weight: 700;
}

/* Le focus clavier est porté par l'étiquette, l'input étant masqué. */
.nf-venue-chip-input:focus-visible + .nf-venue-chip {
    outline: 2px solid var(--nf-primary);
    outline-offset: 2px;
}

/* Rappel de la couleur du marqueur correspondant sur la carte. */
.nf-venue-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

/* Étiquette de type sur une carte de restaurant */
.nf-venue-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--nf-text-muted);
}

.nf-price-buttons { display: flex; gap: .4rem; }

.nf-price-option { flex: 1; }
.nf-price-option input { position: absolute; opacity: 0; pointer-events: none; }

.nf-price-option span {
    display: block;
    text-align: center;
    padding: .5rem .3rem;
    border: 1.5px solid var(--nf-border);
    border-radius: var(--nf-radius-sm);
    font-size: .85rem;
    letter-spacing: .1em;
    cursor: pointer;
    transition: border-color var(--nf-duration) var(--nf-ease),
                background var(--nf-duration) var(--nf-ease);
}

.nf-price-option input:checked + span {
    border-color: var(--nf-primary);
    background: var(--nf-primary-soft);
    color: var(--nf-primary);
    font-weight: 700;
}

.nf-price-option input:focus-visible + span { outline: 3px solid var(--nf-primary); outline-offset: 2px; }

.nf-filter-actions { padding-top: .5rem; }

/* ------------------------------------------------------------------
   3. Cartes
   ------------------------------------------------------------------ */

.nf-card {
    position: relative;
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--nf-duration) var(--nf-ease),
                transform var(--nf-duration) var(--nf-ease),
                border-color var(--nf-duration) var(--nf-ease);
}

.nf-card:hover {
    box-shadow: var(--nf-shadow-3);
    transform: translateY(-3px);
    border-color: transparent;
}

.nf-card-media {
    position: relative;
    display: block;
    aspect-ratio: 5 / 3;
    background: var(--nf-surface-2);
    overflow: hidden;
}

.nf-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--nf-ease);
}

.nf-card:hover .nf-card-media img { transform: scale(1.04); }

.nf-card-flag {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    z-index: 2;
    background: var(--nf-primary);
    color: var(--nf-primary-text);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .25rem .6rem;
    border-radius: var(--nf-radius-pill);
}

.nf-card-badges {
    position: absolute;
    bottom: .7rem;
    inset-inline-start: .7rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.nf-badge-immersive {
    background: rgba(28, 26, 25, .82);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .28rem .6rem;
    border-radius: var(--nf-radius-pill);
    backdrop-filter: blur(4px);
}

.nf-badge-tour { background: rgba(0, 105, 92, .88); }

.nf-card-discount {
    position: absolute;
    top: .75rem;
    inset-inline-end: .75rem;
    background: #c62828;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    padding: .28rem .55rem;
    border-radius: var(--nf-radius-sm);
}

.nf-card-unavailable {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(28, 26, 25, .58);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    backdrop-filter: blur(2px);
}

.nf-card-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.nf-card-title { font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.35; }
.nf-card-title a { color: var(--nf-text); text-decoration: none; }
.nf-card-title a:hover { color: var(--nf-primary); }

.nf-card-source { font-size: .85rem; color: var(--nf-text-muted); margin: 0; }

.nf-card-text {
    font-size: .88rem;
    color: var(--nf-text-muted);
    line-height: 1.55;
    margin: 0;
}

.nf-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .35rem;
    font-size: .85rem;
    color: var(--nf-text-muted);
}

.nf-card-price { font-size: 1.05rem; font-weight: 800; color: var(--nf-primary); }
.nf-card-price-old { font-size: .82rem; color: var(--nf-text-muted); font-weight: 400; margin-inline-start: .35rem; }

.nf-price-range { letter-spacing: .12em; color: var(--nf-secondary); font-weight: 700; }

.nf-card-distance, .nf-card-prep { white-space: nowrap; }
.nf-card-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nf-card-actions { display: flex; gap: .35rem; flex-wrap: wrap; }

.nf-tag {
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: var(--nf-radius-pill);
    background: var(--nf-surface-2);
    border: 1px solid var(--nf-border);
    color: var(--nf-text-muted);
}

.nf-tag-heritage { background: var(--nf-primary-soft); color: var(--nf-primary); border-color: transparent; }
.nf-tag-veg      { background: var(--nf-secondary-soft); color: var(--nf-secondary); border-color: transparent; }
.nf-tag-spice    { color: #c62828; }

/* Bouton favori */
.nf-favorite {
    position: absolute;
    top: .7rem;
    inset-inline-end: .7rem;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #6d6763;
    cursor: pointer;
    box-shadow: var(--nf-shadow-1);
    transition: color var(--nf-duration) var(--nf-ease),
                transform var(--nf-duration) var(--nf-ease);
}

.nf-favorite:hover { transform: scale(1.08); color: #e53935; }
.nf-favorite.is-active { color: #e53935; --fill: 1; }

[data-bs-theme="dark"] .nf-favorite { background: rgba(28, 26, 25, .88); }

/* ------------------------------------------------------------------
   4. Notes en étoiles
   ------------------------------------------------------------------ */

.nf-rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; }
.nf-stars { display: inline-flex; gap: 1px; }

.nf-star { color: var(--nf-border); line-height: 1; }
.nf-star.is-full { color: #f9a825; }
.nf-star.is-half {
    background: linear-gradient(90deg, #f9a825 50%, var(--nf-border) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nf-rating-value { font-weight: 700; color: var(--nf-text); }
.nf-rating-count { color: var(--nf-text-muted); font-size: .82rem; }

.nf-rating-lg { font-size: 1.15rem; }
.nf-rating-lg .nf-rating-count { font-size: .9rem; }

/* ------------------------------------------------------------------
   5. Pagination
   ------------------------------------------------------------------ */

.nf-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nf-border);
}

.nf-pagination-count { color: var(--nf-text-muted); font-size: .88rem; margin: 0; }

.nf-pagination-list { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }

.nf-page-link {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .6rem;
    border-radius: var(--nf-radius-sm);
    border: 1px solid var(--nf-border);
    color: var(--nf-text);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: border-color var(--nf-duration) var(--nf-ease),
                background var(--nf-duration) var(--nf-ease);
}

.nf-page-link:hover { border-color: var(--nf-primary); color: var(--nf-primary); }

.nf-page-link.is-current {
    background: var(--nf-primary);
    border-color: var(--nf-primary);
    color: var(--nf-primary-text);
}

.nf-page-link.is-disabled { opacity: .4; pointer-events: none; }

.nf-page-ellipsis { display: grid; place-items: center; min-width: 24px; height: 38px; color: var(--nf-text-muted); }

/* ------------------------------------------------------------------
   6. État vide
   ------------------------------------------------------------------ */

.nf-empty-state {
    text-align: center;
    padding: clamp(2.5rem, 8vw, 4.5rem) 1.5rem;
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-lg);
}

.nf-empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--nf-primary-soft);
    color: var(--nf-primary);
    font-size: 2rem;
}

.nf-empty-state h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .6rem; }
.nf-empty-state p { color: var(--nf-text-muted); margin-bottom: 1.5rem; line-height: 1.6; }

/* ------------------------------------------------------------------
   7. Fiche établissement
   ------------------------------------------------------------------ */

.nf-venue-hero { position: relative; margin-bottom: 1.5rem; }

.nf-venue-cover { height: clamp(180px, 30vw, 340px); overflow: hidden; background: var(--nf-surface-2); }
.nf-venue-cover img { width: 100%; height: 100%; object-fit: cover; }

.nf-venue-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: -3rem;
    position: relative;
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--nf-shadow-2);
}

.nf-venue-identity { display: flex; gap: 1.1rem; align-items: flex-start; min-width: 0; }

.nf-venue-logo {
    width: 88px; height: 88px;
    border-radius: var(--nf-radius);
    object-fit: cover;
    border: 3px solid var(--nf-surface);
    box-shadow: var(--nf-shadow-1);
    flex: 0 0 auto;
}

.nf-venue-title {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0 0 .4rem;
}

.nf-venue-meta {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    color: var(--nf-text-muted); font-size: .92rem; margin-bottom: .4rem;
}

.nf-venue-sep { opacity: .5; }

.nf-venue-address { color: var(--nf-text-muted); font-size: .92rem; margin: 0;
                    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.nf-status {
    font-size: .78rem; font-weight: 700; padding: .2rem .6rem;
    border-radius: var(--nf-radius-pill);
}

.nf-status-open   { background: var(--nf-secondary-soft); color: var(--nf-secondary); }
.nf-status-closed { background: #fdecea; color: #c62828; }
[data-bs-theme="dark"] .nf-status-closed { background: #3a1f1f; color: #ef9a9a; }

.nf-venue-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.nf-venue-favorite.is-active { color: #e53935; border-color: #e53935; --fill: 1; }

/* Bandeau immersif */
.nf-immersive-bar { padding: 0 0 1.5rem; }

.nf-immersive-inner {
    background: linear-gradient(135deg, var(--nf-secondary), #004d40);
    color: #fff;
    border-radius: var(--nf-radius);
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem; flex-wrap: wrap;
}

.nf-immersive-text { margin: 0; line-height: 1.55; }
.nf-immersive-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.nf-immersive-actions .nf-btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.nf-immersive-actions .nf-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Blocs de contenu */
.nf-panel-padded { padding: 1.35rem; }
.nf-sticky { position: sticky; top: 88px; }
@media (max-width: 991.98px) { .nf-sticky { position: static; } }

.nf-prose { line-height: 1.75; color: var(--nf-text); }
.nf-subtitle { font-size: .82rem; font-weight: 700; text-transform: uppercase;
               letter-spacing: .06em; color: var(--nf-text-muted); margin: 1.5rem 0 .75rem; }

.nf-info-list { margin: 0; }
.nf-info-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
                   color: var(--nf-text-muted); margin-top: .9rem; }
.nf-info-list dt:first-child { margin-top: 0; }
.nf-info-list dd { margin: .2rem 0 0; font-size: .93rem; line-height: 1.5; }
.nf-info-list a { color: var(--nf-primary); text-decoration: none; }

.nf-amenity-list { list-style: none; padding: 0; margin: 0;
                   display: flex; flex-wrap: wrap; gap: .4rem; }
.nf-amenity-list li {
    font-size: .8rem; padding: .25rem .6rem;
    background: var(--nf-surface-2); border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-pill); color: var(--nf-text-muted);
}

.nf-hours { width: 100%; font-size: .9rem; border-collapse: collapse; }
.nf-hours th { text-align: start; font-weight: 500; color: var(--nf-text-muted); padding: .4rem 0; }
.nf-hours td { text-align: end; padding: .4rem 0; }
.nf-hours tr.is-today th, .nf-hours tr.is-today td { font-weight: 700; color: var(--nf-primary); }
.nf-hour-slot { display: inline-block; margin-inline-start: .5rem; white-space: nowrap; }

.nf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.nf-gallery-item { margin: 0; border-radius: var(--nf-radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.nf-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------
   8. Carte du restaurant
   ------------------------------------------------------------------ */

.nf-menu-page { padding: clamp(1.5rem, 4vw, 2.5rem) 0 4rem; }
.nf-menu-head { display: flex; justify-content: space-between; align-items: flex-end;
                gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.nf-menu-eyebrow { margin: 0 0 .2rem; font-size: .9rem; color: var(--nf-text-muted); }

.nf-menu-nav {
    display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .75rem;
    margin-bottom: 1.5rem; border-bottom: 1px solid var(--nf-border);
    position: sticky; top: 72px; background: var(--nf-bg); z-index: 10;
}

.nf-menu-nav-link {
    white-space: nowrap; padding: .45rem 1rem;
    border: 1px solid var(--nf-border); border-radius: var(--nf-radius-pill);
    color: var(--nf-text-muted); text-decoration: none; font-size: .88rem; font-weight: 600;
}

.nf-menu-nav-link:hover { border-color: var(--nf-primary); color: var(--nf-primary); }

.nf-menu-section { margin-bottom: 2.5rem; scroll-margin-top: 130px; }
.nf-menu-section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem; }
.nf-menu-section-desc { color: var(--nf-text-muted); font-size: .9rem; margin-bottom: 1rem; }

.nf-menu-list { list-style: none; padding: 0; margin: 0; }
.nf-menu-item { border-bottom: 1px solid var(--nf-border); }
.nf-menu-item:last-child { border-bottom: none; }

.nf-menu-link {
    display: flex; align-items: center; gap: .9rem;
    padding: .8rem 0; text-decoration: none; color: var(--nf-text);
}

.nf-menu-link img { width: 72px; height: 72px; border-radius: var(--nf-radius-sm);
                    object-fit: cover; flex: 0 0 auto; }
.nf-menu-body { flex: 1; min-width: 0; }
.nf-menu-name { display: block; font-weight: 600; }
.nf-menu-desc { display: block; font-size: .85rem; color: var(--nf-text-muted); margin-top: .2rem; }
.nf-menu-price { font-weight: 800; color: var(--nf-primary); white-space: nowrap; }

.nf-inline-badge {
    font-size: .65rem; font-weight: 800; vertical-align: middle;
    background: var(--nf-primary-soft); color: var(--nf-primary);
    padding: .1rem .4rem; border-radius: 4px; margin-inline-start: .3rem;
}

/* ------------------------------------------------------------------
   9. Fiche plat et visualiseur 3D
   ------------------------------------------------------------------ */

.nf-breadcrumb {
    display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
    font-size: .87rem; color: var(--nf-text-muted); margin-bottom: 1.5rem;
}
.nf-breadcrumb a { color: var(--nf-text-muted); text-decoration: none; }
.nf-breadcrumb a:hover { color: var(--nf-primary); }

.nf-viewer, .nf-dish-photo {
    position: relative; aspect-ratio: 1; border-radius: var(--nf-radius-lg);
    overflow: hidden; background: var(--nf-surface-2);
    border: 1px solid var(--nf-border);
}

.nf-dish-photo { margin: 0; }
.nf-viewer img, .nf-dish-photo img { width: 100%; height: 100%; object-fit: cover; }

.nf-viewer-fallback { position: absolute; inset: 0; }

.nf-viewer-loading {
    position: absolute; inset-inline: 0; bottom: 1rem;
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    font-size: .85rem; color: #fff;
    background: rgba(28,26,25,.7); padding: .5rem 1rem;
    width: fit-content; margin: 0 auto; border-radius: var(--nf-radius-pill);
}

.nf-viewer-spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
    animation: nf-spin 700ms linear infinite;
}

@keyframes nf-spin { to { transform: rotate(360deg); } }

.nf-viewer-bar {
    display: flex; justify-content: space-between; align-items: center;
    gap: .75rem; flex-wrap: wrap; margin-top: .6rem;
    font-size: .83rem; color: var(--nf-text-muted);
}

.nf-viewer-weight { font-weight: 600; }

/* Lien vers une visionneuse de réalité augmentée externe.
   Traité comme une action à part entière : c'est souvent le seul
   moyen de voir le plat en volume quand aucun fichier n'est hébergé. */
.nf-ar-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: .75rem;
    padding: .85rem 1rem;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius);
    background: var(--nf-surface);
    color: var(--nf-text);
    text-decoration: none;
    transition: border-color var(--nf-duration) var(--nf-ease),
                box-shadow var(--nf-duration) var(--nf-ease);
}

.nf-ar-link:hover,
.nf-ar-link:focus-visible {
    border-color: var(--nf-primary);
    box-shadow: var(--nf-shadow-2);
    color: var(--nf-text);
}

.nf-ar-link-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--nf-radius-sm);
    background: var(--nf-primary-soft);
    color: var(--nf-primary);
    font-size: 1.15rem;
}

.nf-ar-link-text { display: flex; flex-direction: column; gap: .1rem; }
.nf-ar-link-text small { color: var(--nf-text-muted); font-size: .8rem; }

.nf-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }
.nf-thumbs img { width: 90px; height: 90px; border-radius: var(--nf-radius-sm);
                 object-fit: cover; flex: 0 0 auto; border: 1px solid var(--nf-border); }

.nf-dish-header { display: flex; justify-content: space-between; align-items: flex-start;
                  gap: 1rem; margin-bottom: .5rem; }
.nf-dish-venue { margin: 0 0 .2rem; font-size: .9rem; color: var(--nf-text-muted); }
.nf-dish-title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800;
                 letter-spacing: -.015em; margin: 0; }

.nf-dish-price {
    font-size: 1.7rem; font-weight: 800; color: var(--nf-primary);
    margin: .75rem 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
}
.nf-dish-price s { font-size: 1rem; color: var(--nf-text-muted); font-weight: 400; }

.nf-dish-description { color: var(--nf-text); line-height: 1.7; margin-bottom: 1.25rem; }

.nf-dish-facts { list-style: none; padding: 0; margin: 0 0 1.25rem;
                 display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .75rem; }
.nf-dish-facts li { background: var(--nf-surface-2); border: 1px solid var(--nf-border);
                    border-radius: var(--nf-radius-sm); padding: .6rem .75rem; }
.nf-dish-facts span { display: block; font-size: .75rem; color: var(--nf-text-muted); }
.nf-dish-facts strong { font-size: .95rem; }

.nf-details { border: 1px solid var(--nf-border); border-radius: var(--nf-radius-sm);
              padding: .75rem 1rem; margin-bottom: .75rem; }
.nf-details summary { font-weight: 600; cursor: pointer; font-size: .93rem; }
.nf-details p, .nf-details ul { margin: .6rem 0 0; font-size: .9rem; color: var(--nf-text-muted); }
.nf-details-warning { border-color: #ffb74d; background: #fff8e1; }
[data-bs-theme="dark"] .nf-details-warning { background: #332a12; border-color: #8d6e19; }

.nf-allergen-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.nf-allergen-list li { background: #fff3e0; color: #e65100; font-size: .8rem;
                       padding: .2rem .6rem; border-radius: var(--nf-radius-pill); }
[data-bs-theme="dark"] .nf-allergen-list li { background: #3a2a12; color: #ffb74d; }

.nf-order-box { background: var(--nf-surface); border: 1px solid var(--nf-border);
                border-radius: var(--nf-radius); padding: 1.25rem; margin-top: 1.5rem; }
.nf-order-closed { margin: 0; color: var(--nf-text-muted); text-align: center; }

.nf-option-group { border: none; padding: 0 0 1rem; margin: 0 0 1rem;
                   border-bottom: 1px solid var(--nf-border); }
.nf-option-group legend { font-size: .85rem; font-weight: 700; margin-bottom: .6rem;
                          float: none; width: auto; }
.nf-required { font-size: .7rem; font-weight: 600; color: var(--nf-primary);
               background: var(--nf-primary-soft); padding: .1rem .45rem;
               border-radius: var(--nf-radius-pill); margin-inline-start: .4rem; }

.nf-option { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; cursor: pointer; }
.nf-option-name { flex: 1; font-size: .92rem; }
.nf-option-price { font-size: .88rem; font-weight: 600; color: var(--nf-primary); }

.nf-order-row { display: flex; align-items: center; justify-content: space-between;
                gap: 1rem; margin-bottom: 1rem; }
.nf-quantity { max-width: 6rem; text-align: center; }

.nf-qr-note { font-size: .85rem; color: var(--nf-text-muted); margin-top: 1rem; }

/* ------------------------------------------------------------------
   10. Avis
   ------------------------------------------------------------------ */

.nf-review-summary { display: flex; gap: 2rem; align-items: center;
                     flex-wrap: wrap; margin-bottom: 1.5rem;
                     padding-bottom: 1.5rem; border-bottom: 1px solid var(--nf-border); }
.nf-review-score { text-align: center; }
.nf-review-average { display: block; font-size: 2.6rem; font-weight: 800;
                     line-height: 1; color: var(--nf-primary); }
.nf-review-bars { flex: 1; min-width: 200px; display: grid; gap: .35rem; }
.nf-review-bar-row { display: flex; align-items: center; gap: .6rem; font-size: .82rem; }
.nf-review-bar-label { width: 2.4rem; color: var(--nf-text-muted); white-space: nowrap; }
.nf-review-bar { flex: 1; height: 7px; background: var(--nf-border);
                 border-radius: 999px; overflow: hidden; }
.nf-review-bar-fill { display: block; height: 100%; background: #f9a825; border-radius: 999px; }
.nf-review-bar-count { width: 2rem; text-align: end; color: var(--nf-text-muted); }

.nf-review-list { list-style: none; padding: 0; margin: 0; }
.nf-review { padding: 1.1rem 0; border-bottom: 1px solid var(--nf-border); }
.nf-review:last-child { border-bottom: none; }
.nf-review-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .6rem; }
.nf-review-head > div { flex: 1; min-width: 0; }
.nf-review-title { font-weight: 600; margin: 0 0 .3rem; }
.nf-review-text { margin: 0; line-height: 1.65; color: var(--nf-text); }

.nf-verified-tag { font-size: .72rem; font-weight: 700; color: var(--nf-secondary);
                   background: var(--nf-secondary-soft); padding: .1rem .45rem;
                   border-radius: var(--nf-radius-pill); margin-inline-start: .4rem; }

.nf-review-reply { margin-top: .75rem; padding: .8rem 1rem;
                   background: var(--nf-surface-2); border-radius: var(--nf-radius-sm);
                   border-inline-start: 3px solid var(--nf-primary); }
.nf-review-reply strong { font-size: .85rem; display: block; margin-bottom: .3rem; }
.nf-review-reply p { margin: 0; font-size: .9rem; color: var(--nf-text-muted); line-height: 1.6; }

/* ------------------------------------------------------------------
   11. Carte interactive
   ------------------------------------------------------------------ */

.nf-map-layout { display: grid; grid-template-columns: 360px 1fr; min-height: calc(100vh - 72px); }
@media (max-width: 991.98px) { .nf-map-layout { grid-template-columns: 1fr; } }

.nf-map-sidebar { background: var(--nf-surface); border-inline-end: 1px solid var(--nf-border);
                  padding: 1.25rem; overflow-y: auto; max-height: calc(100vh - 72px); }
@media (max-width: 991.98px) { .nf-map-sidebar { max-height: none; } }

.nf-map-header { margin-bottom: 1.25rem; }
.nf-map-filters { padding-bottom: 1.25rem; margin-bottom: 1.25rem;
                  border-bottom: 1px solid var(--nf-border); }

.nf-map-canvas { min-height: 60vh; background: var(--nf-surface-2); }
.nf-venue-map { height: 220px; border-radius: var(--nf-radius-sm); overflow: hidden; }
.nf-map-address { font-size: .85rem; color: var(--nf-text-muted); margin: .6rem 0 0; }

.nf-map-result { display: flex; gap: .7rem; align-items: center; width: 100%;
                 padding: .65rem; border: 1px solid transparent; border-radius: var(--nf-radius-sm);
                 background: transparent; text-align: start; cursor: pointer; }
.nf-map-result:hover { background: var(--nf-primary-soft); border-color: var(--nf-primary); }
.nf-map-result img { width: 44px; height: 44px; border-radius: var(--nf-radius-sm);
                     object-fit: cover; flex: 0 0 auto; }
.nf-map-result-body { min-width: 0; }
.nf-map-result-name { display: block; font-weight: 600; font-size: .92rem;
                      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-map-result-meta { display: block; font-size: .8rem; color: var(--nf-text-muted); }
.nf-map-empty { color: var(--nf-text-muted); font-size: .9rem; padding: 1rem 0; }

/* Marqueurs construits en HTML plutôt qu'en images */
.nf-marker { display: block; width: 28px; height: 34px; position: relative; }
.nf-marker::before {
    content: ""; position: absolute; inset: 0 0 6px;
    /* La couleur du type d'établissement est posée en variable par le
       script ; la teinte principale reste le repli si l'établissement
       n'a pas de type renseigné. */
    background: var(--nf-marker-color, var(--nf-primary)); border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg); transform-origin: 50% 60%;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
/* Un contenu immersif se signale par un anneau plutôt que par la
   couleur de la goutte, désormais porteuse du type d'établissement :
   les deux informations doivent pouvoir coexister sur un marqueur. */
.nf-marker.is-immersive::after {
    content: ""; position: absolute; inset: -3px 0 3px;
    border: 2px solid var(--nf-secondary); border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg); transform-origin: 50% 60%;
}
.nf-marker-dot { position: absolute; top: 8px; inset-inline-start: 10px;
                 width: 9px; height: 9px; background: #fff; border-radius: 50%; z-index: 1; }

.nf-popup { display: flex; gap: .7rem; min-width: 220px; }
.nf-popup img { width: 48px; height: 48px; border-radius: var(--nf-radius-sm); object-fit: cover; }
.nf-popup-body { display: flex; flex-direction: column; gap: .2rem; }
.nf-popup-meta { font-size: .8rem; color: #6d6763; }
.nf-popup-badges { display: flex; gap: .3rem; margin-top: .2rem; }
.nf-popup-badge { font-size: .68rem; font-weight: 700; background: #fbe9e3;
                  color: #e64a19; padding: .1rem .4rem; border-radius: 999px; }
.nf-popup-link { font-size: .85rem; font-weight: 600; color: #e64a19;
                 text-decoration: none; margin-top: .3rem; }

/* ------------------------------------------------------------------
   12. Éléments divers
   ------------------------------------------------------------------ */

.nf-plain-link { color: inherit; text-decoration: none; }
.nf-plain-link:hover { color: var(--nf-primary); }

.nf-count-badge { font-size: .78rem; font-weight: 700; background: var(--nf-primary-soft);
                  color: var(--nf-primary); padding: .12rem .5rem;
                  border-radius: var(--nf-radius-pill); vertical-align: middle; }

.nf-chip-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.nf-chip-link { padding: .4rem .9rem; border: 1px solid var(--nf-border);
                border-radius: var(--nf-radius-pill); text-decoration: none;
                color: var(--nf-text); font-size: .88rem; font-weight: 500; }
.nf-chip-link:hover { border-color: var(--nf-primary); color: var(--nf-primary);
                      background: var(--nf-primary-soft); }

.nf-gallery-filters { display: flex; gap: .75rem; flex-wrap: wrap;
                      align-items: center; margin-bottom: 2rem; justify-content: center; }
.nf-gallery-filters .form-select { max-width: 16rem; }

.nf-switch { display: inline-flex; align-items: center; gap: .5rem;
             font-size: .9rem; cursor: pointer; }

.nf-card-3d .nf-card-media { aspect-ratio: 1; }

/* ------------------------------------------------------------------
   13. Visualiseur 3D
   ------------------------------------------------------------------ */

.nf-viewer.is-active { background: var(--nf-surface); }
.nf-viewer model-viewer,
.nf-viewer-canvas { width: 100%; height: 100%; display: block; }

/* Invitation à charger la 3D — la bibliothèque de rendu n'est
   téléchargée qu'après ce clic. */
.nf-viewer-start {
    position: absolute;
    inset-inline: 0; bottom: 1rem;
    width: fit-content; margin: 0 auto;
    display: flex; align-items: center; gap: .5rem;
    padding: .7rem 1.5rem;
    background: var(--nf-primary); color: var(--nf-primary-text);
    border: none; border-radius: var(--nf-radius-pill);
    font-weight: 700; font-size: .95rem; cursor: pointer;
    box-shadow: var(--nf-shadow-2);
    transition: transform var(--nf-duration) var(--nf-ease),
                background var(--nf-duration) var(--nf-ease);
}

.nf-viewer-start:hover { background: var(--nf-primary-hover); transform: translateY(-2px); }
.nf-viewer-start-icon { font-size: 1.1rem; }
.nf-viewer-start small { opacity: .8; font-weight: 500; font-size: .78rem; }

.nf-viewer.is-active .nf-viewer-start { display: none; }

.nf-viewer-loading[hidden] { display: none; }
.nf-viewer-loading.is-error { background: #c62828; }

/* Bouton de réalité augmentée, inséré par model-viewer */
.nf-ar-button {
    position: absolute;
    inset-inline-end: 1rem; bottom: 1rem;
    padding: .6rem 1.2rem;
    background: var(--nf-secondary); color: #fff;
    border: none; border-radius: var(--nf-radius-pill);
    font-weight: 700; font-size: .88rem; cursor: pointer;
    box-shadow: var(--nf-shadow-2);
}

.nf-ar-button:hover { background: #00897b; }

/* ------------------------------------------------------------------
   14. Visite virtuelle 360°
   ------------------------------------------------------------------ */

.nf-tour-page { padding: clamp(1.5rem, 4vw, 2.5rem) 0 4rem; }

.nf-tour-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}

.nf-tour-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.nf-tour-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--nf-radius-lg);
    overflow: hidden;
    background: #101010;
    box-shadow: var(--nf-shadow-3);
}

@media (max-width: 767.98px) { .nf-tour-frame { aspect-ratio: 4 / 3; } }

.nf-tour-canvas, .nf-tour-iframe { width: 100%; height: 100%; border: 0; display: block; }

.nf-tour-fullscreen {
    position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 5;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: rgba(28,26,25,.7); color: #fff;
    border: none; border-radius: var(--nf-radius-sm);
    cursor: pointer; font-size: 1.1rem;
}

.nf-tour-fullscreen:hover { background: rgba(28,26,25,.9); }

.nf-tour-error { color: #fff; text-align: center; padding: 3rem 1rem; }
.nf-tour-provider { font-size: .82rem; color: var(--nf-text-muted); margin-top: .6rem; text-align: end; }
.nf-tour-description { margin-top: 1.25rem; color: var(--nf-text-muted); line-height: 1.7; }

/* Barre de navigation entre scènes */
.nf-scene-bar { display: flex; gap: .5rem; overflow-x: auto; margin-top: 1rem; padding-bottom: .5rem; }

.nf-scene-button {
    white-space: nowrap; padding: .5rem 1.1rem;
    background: var(--nf-surface); border: 1.5px solid var(--nf-border);
    border-radius: var(--nf-radius-pill);
    color: var(--nf-text-muted); font-size: .88rem; font-weight: 600; cursor: pointer;
    transition: border-color var(--nf-duration) var(--nf-ease);
}

.nf-scene-button:hover { border-color: var(--nf-primary); color: var(--nf-primary); }
.nf-scene-button.is-active {
    background: var(--nf-primary); border-color: var(--nf-primary); color: var(--nf-primary-text);
}

/* Points d'intérêt — c'est le lien entre l'exploration et la commande */
.nf-hotspot-wrapper { cursor: pointer; }

.nf-hotspot {
    display: block; cursor: pointer;
    animation: nf-pulse 2.4s ease-in-out infinite;
}

@keyframes nf-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .nf-hotspot { animation: none; }
}

.nf-hotspot-card {
    display: flex; align-items: center; gap: .6rem;
    background: rgba(255,255,255,.96);
    color: #1c1a19;
    padding: .5rem .8rem .5rem .5rem;
    border-radius: var(--nf-radius-pill);
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
    white-space: nowrap;
    font-size: .88rem;
}

.nf-hotspot-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nf-hotspot-body { display: flex; flex-direction: column; line-height: 1.3; }
.nf-hotspot-meta { font-size: .78rem; color: #6d6763; }

.nf-hotspot-badge {
    align-self: flex-start; margin-top: .15rem;
    font-size: .62rem; font-weight: 800;
    background: #fbe9e3; color: #e64a19;
    padding: .05rem .35rem; border-radius: 999px;
}

.nf-hotspot-info .nf-hotspot-card { padding: .45rem .9rem; }

.nf-hotspot-scene {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,105,92,.9); border: 2px solid #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.4);
}

/* ------------------------------------------------------------------
   15. Panier et commande
   ------------------------------------------------------------------ */

.nf-cart-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--nf-border);
}
.nf-cart-item:last-child { border-bottom: none; }
.nf-cart-item.is-unavailable { opacity: .55; }

.nf-cart-item > img { width: 80px; height: 80px; border-radius: var(--nf-radius-sm);
                      object-fit: cover; flex: 0 0 auto; }
.nf-cart-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.nf-cart-qty .form-control { width: 4.5rem; text-align: center; padding-block: .45rem; }
.nf-cart-price { text-align: end; white-space: nowrap; }
.nf-cart-price s { display: block; font-size: .8rem; color: var(--nf-text-muted); font-weight: 400; }

.nf-cart-remove {
    background: transparent; border: none; color: var(--nf-text-muted);
    font-size: 1.5rem; line-height: 1; cursor: pointer; padding: .2rem .4rem;
    border-radius: var(--nf-radius-sm);
}
.nf-cart-remove:hover { color: #c62828; background: var(--nf-surface-2); }

.nf-unavailable-tag {
    align-self: flex-start; font-size: .72rem; font-weight: 700;
    background: #fdecea; color: #c62828; padding: .1rem .5rem;
    border-radius: var(--nf-radius-pill);
}

@media (max-width: 575.98px) {
    .nf-cart-item { flex-wrap: wrap; }
    .nf-cart-body { flex: 1 1 calc(100% - 96px); }
    .nf-cart-price { flex: 1; text-align: start; }
}

/* Mode de commande */
.nf-type-switch { display: flex; gap: .4rem; flex-wrap: wrap; }

.nf-type-option { flex: 1; min-width: 5.5rem; text-decoration: none; }
.nf-type-option input { position: absolute; opacity: 0; pointer-events: none; }

.nf-type-option span {
    display: block; text-align: center; padding: .55rem .4rem;
    border: 1.5px solid var(--nf-border); border-radius: var(--nf-radius-sm);
    font-size: .88rem; font-weight: 600; color: var(--nf-text-muted); cursor: pointer;
    transition: border-color var(--nf-duration) var(--nf-ease),
                background var(--nf-duration) var(--nf-ease);
}

.nf-type-option input:checked + span,
.nf-type-option.is-selected span {
    border-color: var(--nf-primary); background: var(--nf-primary-soft);
    color: var(--nf-primary);
}

/* Totaux */
.nf-totals { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0 0 1rem; }
.nf-totals dt { color: var(--nf-text-muted); font-size: .92rem; }
.nf-totals dd { margin: 0; text-align: end; font-weight: 600; font-size: .92rem; }
.nf-totals .nf-discount { color: var(--nf-secondary); }
.nf-totals .nf-total-line {
    border-top: 1px solid var(--nf-border); padding-top: .6rem; margin-top: .3rem;
    font-size: 1.1rem; font-weight: 800; color: var(--nf-text);
}

.nf-coupon-form { display: flex; gap: .5rem; }
.nf-coupon-form .form-control { flex: 1; }

.nf-coupon-applied {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    background: var(--nf-secondary-soft); color: var(--nf-secondary);
    padding: .6rem .9rem; border-radius: var(--nf-radius-sm); font-size: .9rem;
}
.nf-coupon-remove { background: none; border: none; color: inherit; font-size: 1.2rem; cursor: pointer; }

/* Récapitulatif */
.nf-summary-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.nf-summary-list li {
    display: flex; gap: .6rem; align-items: flex-start;
    padding: .5rem 0; border-bottom: 1px solid var(--nf-border); font-size: .9rem;
}
.nf-summary-list li:last-child { border-bottom: none; }
.nf-summary-qty { font-weight: 700; color: var(--nf-primary); flex: 0 0 auto; }
.nf-summary-name { flex: 1; min-width: 0; }
.nf-summary-price { font-weight: 600; white-space: nowrap; }

.nf-payment-option {
    display: flex; align-items: center; gap: .8rem; padding: .8rem;
    border: 1.5px solid var(--nf-border); border-radius: var(--nf-radius-sm);
    margin-bottom: .6rem; cursor: pointer;
    transition: border-color var(--nf-duration) var(--nf-ease);
}
.nf-payment-option:has(input:checked) { border-color: var(--nf-primary); background: var(--nf-primary-soft); }
.nf-payment-body { display: flex; flex-direction: column; }

.nf-checkout-legal { font-size: .8rem; color: var(--nf-text-muted); text-align: center; margin: .75rem 0; }

.nf-confirm-head { text-align: center; margin-bottom: 2rem; }
.nf-confirm-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem;
    padding-top: 1.25rem; border-top: 1px solid var(--nf-border); font-size: .9rem;
}

/* ------------------------------------------------------------------
   16. Minuteur de préparation
   ------------------------------------------------------------------ */

.nf-tracking-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.nf-tracking-reference { font-size: .82rem; color: var(--nf-text-muted); margin: 0 0 .2rem;
                         text-transform: uppercase; letter-spacing: .05em; }
.nf-tracking-title { font-size: 1.25rem; font-weight: 700; margin: 0; }

.nf-timer {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    background: var(--nf-surface-2); border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius); padding: 1.5rem; margin-bottom: 1.5rem;
}

.nf-timer.is-ready { background: var(--nf-secondary-soft); border-color: var(--nf-secondary); }

/* Anneau de progression : dessiné en dégradé conique, sans image ni
   bibliothèque de graphiques. */
.nf-timer-ring {
    --progress: 0;
    width: 116px; height: 116px; flex: 0 0 auto;
    border-radius: 50%;
    background: conic-gradient(
        var(--nf-primary) calc(var(--progress) * 1%),
        var(--nf-border) 0
    );
    display: grid; place-items: center;
    transition: background 900ms linear;
}

.nf-timer.is-ready .nf-timer-ring { background: var(--nf-secondary); }

.nf-timer-inner {
    width: 94px; height: 94px; border-radius: 50%;
    background: var(--nf-surface);
    display: grid; place-items: center; text-align: center;
}

.nf-timer-display { font-size: 1.55rem; font-weight: 800; line-height: 1; color: var(--nf-text); }
.nf-timer-unit { font-size: .68rem; color: var(--nf-text-muted); text-transform: uppercase;
                 letter-spacing: .06em; }

.nf-timer-body { flex: 1; min-width: 12rem; }
.nf-timer-label { font-weight: 700; font-size: 1.02rem; margin: 0 0 .3rem; }
.nf-timer-eta { color: var(--nf-text-muted); font-size: .92rem; margin: 0; }

/* Progression par étapes */
.nf-steps {
    display: flex; list-style: none; padding: 0; margin: 0;
    counter-reset: step; overflow-x: auto; gap: .25rem;
}

.nf-step {
    flex: 1; min-width: 5rem; text-align: center; position: relative;
    padding-top: 1.6rem; font-size: .78rem; color: var(--nf-text-muted);
}

.nf-step::before {
    content: ""; position: absolute; top: .55rem; inset-inline-start: -50%;
    width: 100%; height: 2px; background: var(--nf-border);
}
.nf-step:first-child::before { display: none; }

.nf-step-dot {
    position: absolute; top: 0; inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--nf-surface); border: 2px solid var(--nf-border);
    z-index: 1;
}

.nf-step.is-done { color: var(--nf-secondary); }
.nf-step.is-done .nf-step-dot { background: var(--nf-secondary); border-color: var(--nf-secondary); }
.nf-step.is-done::before { background: var(--nf-secondary); }

.nf-step.is-current { color: var(--nf-primary); font-weight: 700; }
.nf-step.is-current .nf-step-dot {
    background: var(--nf-primary); border-color: var(--nf-primary);
    box-shadow: 0 0 0 4px var(--nf-primary-soft);
}

.nf-order-badge { font-size: .8rem; }

/* Historique */
.nf-history { list-style: none; padding: 0; margin: 0; }
.nf-history li { display: flex; gap: 1rem; padding: .55rem 0;
                 border-bottom: 1px solid var(--nf-border); font-size: .9rem; }
.nf-history li:last-child { border-bottom: none; }
.nf-history-time { color: var(--nf-text-muted); white-space: nowrap; flex: 0 0 auto; font-size: .85rem; }
.nf-history-label { flex: 1; }

/* ------------------------------------------------------------------
   17. Créneaux de réservation
   ------------------------------------------------------------------ */

.nf-slots { display: flex; flex-wrap: wrap; gap: .5rem; min-height: 3rem; }

.nf-slot {
    padding: .55rem 1.05rem;
    border: 1.5px solid var(--nf-border); border-radius: var(--nf-radius-sm);
    background: var(--nf-surface); color: var(--nf-text);
    font-weight: 600; font-size: .9rem; cursor: pointer;
    transition: border-color var(--nf-duration) var(--nf-ease),
                background var(--nf-duration) var(--nf-ease);
}

.nf-slot:hover:not(:disabled) { border-color: var(--nf-primary); color: var(--nf-primary); }

.nf-slot.is-selected {
    background: var(--nf-primary); border-color: var(--nf-primary); color: var(--nf-primary-text);
}

.nf-slot.is-taken, .nf-slot:disabled {
    opacity: .4; cursor: not-allowed; text-decoration: line-through;
}

.nf-slots-loading, .nf-slots-empty { color: var(--nf-text-muted); font-size: .9rem; margin: 0; }

/* Pastille du panier dans l'en-tête */
.nf-cart-link { position: relative; }
.nf-cart-count {
    position: absolute; top: -6px; inset-inline-end: -6px;
    min-width: 18px; height: 18px; padding: 0 4px;
    display: grid; place-items: center;
    background: var(--nf-primary); color: var(--nf-primary-text);
    border-radius: 999px; font-size: .68rem; font-weight: 800;
}

/* ------------------------------------------------------------------
   18. Suggestions de la barre de recherche
   ------------------------------------------------------------------ */

.nf-suggestions {
    position: absolute;
    top: calc(100% + .5rem);
    inset-inline: 0;
    z-index: 1040;
    background: var(--nf-surface);
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius);
    box-shadow: var(--nf-shadow-3);
    overflow: hidden;
    max-height: 26rem;
    overflow-y: auto;
}

.nf-suggestions:empty { display: none; }

.nf-suggestion {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    text-decoration: none;
    color: var(--nf-text);
    border-bottom: 1px solid var(--nf-border);
}

.nf-suggestion:last-child { border-bottom: none; }
.nf-suggestion:hover, .nf-suggestion.is-active { background: var(--nf-primary-soft); }

.nf-suggestion img {
    width: 40px; height: 40px;
    border-radius: var(--nf-radius-sm);
    object-fit: cover;
    flex: 0 0 auto;
}

.nf-suggestion-body { min-width: 0; flex: 1; }
.nf-suggestion-label { font-weight: 600; font-size: .92rem; display: block;
                       overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-suggestion-sub { font-size: .8rem; color: var(--nf-text-muted); display: block;
                     overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nf-suggestion-badge {
    font-size: .68rem; font-weight: 800;
    background: var(--nf-primary-soft); color: var(--nf-primary);
    padding: .15rem .45rem; border-radius: var(--nf-radius-pill);
    flex: 0 0 auto;
}
