/* ═══════════════════════════════════════════════════════════════
   SECTEUR RESTAURANT — thème chaleureux (bistrot / terroir)
   ─────────────────────────────────────────────────────────────
   ⚠️ Ce fichier COHABITE avec :
      - /assets/css/style.css  (header, footer, variables :root, reset)
      - /assets/css/fiche.css  (composants communs à toutes les fiches)

   Règles respectées :
     • Utilise UNIQUEMENT les variables de style.css (--red, --navy, --r-md…)
     • Ne redéfinit JAMAIS :root
     • Ne touche PAS aux classes du header (.hdr, .mob-nav…)
     • Ne touche PAS aux classes du footer (.footer, .prefooter…)
     • Préfixe ses classes avec hero-resto-*, cta-*, quick-*, toc-r-*
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   VARIABLES LOCALES (scopées sous .theme-resto)
   ─────────────────────────────────────────────────────────────
   On évite :root pour ne pas polluer le reste du site.
   ═══════════════════════════════════════════════════════════════ */
.theme-resto {
    --resto-primary:   #8B2E1F;   /* bordeaux profond */
    --resto-secondary: #D4A24C;   /* or / laiton */
    --resto-dark:      #2C1810;   /* brun foncé */
    --resto-cream:     #FBF6EE;   /* crème */
    --resto-accent:    #C0392B;   /* rouge tomate */
}

/* ═══════════════════════════════════════════════════════════════
   1. HERO RESTAURANT
   ═══════════════════════════════════════════════════════════════ */
.hero-resto {
    background: linear-gradient(135deg, var(--resto-dark) 0%, #4A2418 100%);
    position: relative;
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0px);
}
.hero-resto::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 85% 20%, rgba(212, 162, 76, .18), transparent 65%),
        radial-gradient(ellipse 40% 50% at 15% 80%, rgba(139, 46, 31, .28), transparent 65%);
    pointer-events: none;
}
.hero-resto-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 26px;
    position: relative;
    z-index: 1;
}
@media (max-width: 640px) {
    .hero-resto-inner { padding: 20px 14px 22px; }
}

/* ── Grille logo + infos ── */
.hero-resto-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
}
@media (max-width: 640px) {
    .hero-resto-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
}

/* Logo circulaire */
.hero-resto-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--resto-secondary);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-resto-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-resto-avatar {
    font-family: var(--fh);
    font-size: 42px;
    font-weight: 800;
    color: var(--resto-primary);
}
@media (max-width: 640px) {
    .hero-resto-logo {
        width: 96px;
        height: 96px;
        margin: 0 auto;
    }
    .hero-resto-avatar { font-size: 32px; }
}

/* ── Badges ── */
.hero-resto-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
@media (max-width: 640px) {
    .hero-resto-badges { justify-content: center; }
}

.hero-resto-badges .badge-chef,
.hero-resto-badges .badge-verified,
.hero-resto-badges .badge-menu {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    line-height: 1.4;
}
.badge-chef     { background: var(--resto-secondary); color: var(--resto-dark); }
.badge-verified { background: rgba(10, 123, 80, .9); color: #fff; }
.badge-menu     { background: rgba(255, 255, 255, .15); color: #fff; }

/* ── Titre + tagline ── */
.hero-resto-info h1 {
    font-family: var(--fh);
    font-size: clamp(26px, 5vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.8px;
    margin-bottom: 10px;
    word-break: break-word;
}
.hero-resto-tagline {
    font-size: 15px;
    color: var(--resto-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}
.hero-resto-desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}
@media (max-width: 640px) {
    .hero-resto-desc { margin: 0 auto; }
}

/* ── Boutons CTA ── */
.hero-resto-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
@media (max-width: 640px) {
    .hero-resto-ctas { justify-content: center; }
}

.cta-reserver,
.cta-carte,
.cta-itineraire,
.cta-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fh);
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 24px;
    min-height: 50px;
    border-radius: 100px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.cta-reserver {
    background: var(--resto-accent);
    color: #fff;
    box-shadow: 0 6px 24px rgba(192, 57, 43, .5);
}
.cta-reserver:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(192, 57, 43, .6);
    background: #a83224;
}

.cta-carte {
    background: var(--resto-secondary);
    color: var(--resto-dark);
    box-shadow: 0 6px 24px rgba(212, 162, 76, .4);
}
.cta-carte:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(212, 162, 76, .55);
    background: #c89540;
}

.cta-itineraire {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
}
.cta-itineraire:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-2px);
}

.cta-share {
    background: transparent;
    color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 14px 18px;
}
.cta-share:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

@media (max-width: 640px) {
    .cta-reserver,
    .cta-carte,
    .cta-itineraire,
    .cta-share {
        flex: 1 1 auto;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13.5px;
    }
}

/* ── Bandeau infos pratiques ── */
.hero-resto-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.quick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-right: 1px solid rgba(255, 255, 255, .08);
}
.quick-item:last-child { border-right: none; }
.quick-ico {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
}
.quick-item strong {
    display: block;
    font-size: 11px;
    color: var(--resto-secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    margin-bottom: 2px;
}
.quick-item span {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    line-height: 1.3;
}
@media (max-width: 640px) {
    .quick-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding-bottom: 10px;
    }
    .quick-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   2. TOC RESTAURANT (sticky nav secondaire)
   ═══════════════════════════════════════════════════════════════ */
.toc-resto {
    position: sticky;
    top: 76px; /* hauteur du header global */
    z-index: 40;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    background: var(--resto-cream);
    border: 1px solid rgba(139, 46, 31, .15);
    border-radius: var(--r-lg);
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(44, 24, 16, .06);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.toc-resto::-webkit-scrollbar { display: none; }

.toc-r-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid rgba(139, 46, 31, .12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--resto-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all .2s ease;
}
.toc-r-item:hover,
.toc-r-item.active {
    background: var(--resto-primary);
    color: var(--resto-secondary);
    border-color: var(--resto-primary);
    transform: translateY(-1px);
}
@media (max-width: 640px) {
    .toc-resto { padding: 10px; gap: 6px; top: 66px; }
    .toc-r-item { padding: 8px 14px; font-size: 12.5px; }
}

/* ═══════════════════════════════════════════════════════════════
   3. SECTIONS THÉMATISÉES (override des .section-* de fiche.css)
   ═══════════════════════════════════════════════════════════════ */
.theme-resto .section-header {
    background: linear-gradient(90deg, var(--resto-cream), #fff);
    border-bottom: 2px solid var(--resto-secondary);
}
.theme-resto .section-header h2 {
    color: var(--resto-primary);
    font-family: var(--fh);
}
.theme-resto .section-block {
    border-color: rgba(139, 46, 31, .12);
}

/* ═══════════════════════════════════════════════════════════════
   4. MENU / CARTE DU RESTAURANT
   ═══════════════════════════════════════════════════════════════ */
.menu-resto-block {
    background: linear-gradient(180deg, #fff, var(--resto-cream));
}
.menu-count-badge {
    margin-left: auto;
    background: var(--resto-primary);
    color: var(--resto-secondary);
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}

/* Bandeau haut du menu */
.menu-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--resto-dark), #4A2418);
    border-radius: var(--r-md);
    position: relative;
    overflow: hidden;
}
.menu-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 50%, rgba(212, 162, 76, .18), transparent 60%);
    pointer-events: none;
}
.menu-hero-left,
.menu-hero-right { position: relative; z-index: 1; }
.menu-hero-left { flex: 1; min-width: 200px; }

.menu-hero-title {
    font-family: var(--fh);
    font-size: 17px;
    font-weight: 800;
    color: var(--resto-secondary);
    margin-bottom: 4px;
}
.menu-hero-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .65);
}
.menu-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--resto-secondary);
    color: var(--resto-dark);
    padding: 10px 18px;
    min-height: 42px;
    border-radius: 100px;
    font-family: var(--fh);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease;
}
.menu-download-btn:hover {
    transform: translateY(-2px);
    background: #c89540;
}

/* Grille des catégories */
.menu-categories-resto {
    display: grid;
    gap: 20px;
}
.menu-cat-card {
    background: #fff;
    border: 1px solid rgba(139, 46, 31, .12);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(44, 24, 16, .04);
    transition: box-shadow .2s ease;
}
.menu-cat-card:hover {
    box-shadow: 0 8px 28px rgba(44, 24, 16, .08);
}
.menu-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--resto-primary), #A8392A);
    color: #fff;
}
.menu-cat-head h3 {
    font-family: var(--fh);
    font-size: 15.5px;
    font-weight: 800;
    color: var(--resto-secondary);
    letter-spacing: .2px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-cat-count {
    background: var(--resto-secondary);
    color: var(--resto-dark);
    font-size: 11px;
    font-weight: 800;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

.menu-cat-items { padding: 4px 0; }

.menu-dish {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px dashed rgba(139, 46, 31, .12);
    transition: background .15s ease;
}
.menu-dish:last-child { border-bottom: none; }
.menu-dish:hover { background: var(--resto-cream); }
.menu-dish-info { flex: 1; min-width: 0; }
.menu-dish-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--resto-dark);
    line-height: 1.4;
    word-break: break-word;
}
.menu-dish-desc {
    font-size: 12.5px;
    color: var(--slate);
    margin-top: 3px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.menu-dish-price {
    font-family: var(--fh);
    font-size: 16px;
    font-weight: 800;
    color: var(--resto-primary);
    white-space: nowrap;
    padding-top: 2px;
    flex-shrink: 0;
}
.menu-dish-price span {
    font-size: 10.5px;
    color: var(--slate);
    margin-left: 2px;
    font-weight: 700;
}
@media (max-width: 640px) {
    .menu-dish { padding: 11px 16px; gap: 12px; }
    .menu-dish-price { font-size: 15px; }
}

/* Note "plus de plats" */
.menu-more-resto {
    margin-top: 18px;
    padding: 14px;
    text-align: center;
    background: rgba(139, 46, 31, .06);
    border: 1px dashed rgba(139, 46, 31, .2);
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--resto-primary);
    font-weight: 600;
}

/* Pied du menu (liens externes) */
.menu-footer-resto {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(139, 46, 31, .15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.menu-footer-resto .menu-footer-left {
    flex: 1;
    min-width: 220px;
    font-size: 12px;
    color: var(--muted);
}
.menu-footer-resto .menu-footer-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.menu-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 46, 31, .06);
    border: 1px solid rgba(139, 46, 31, .18);
    padding: 8px 14px;
    min-height: 38px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--resto-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
}
.menu-footer-link:hover {
    background: var(--resto-primary);
    color: var(--resto-secondary);
    border-color: var(--resto-primary);
}

/* ═══════════════════════════════════════════════════════════════
   5. SIDEBAR RESTAURANT
   ═══════════════════════════════════════════════════════════════ */
.resto-sidebar-card {
    background: linear-gradient(135deg, var(--resto-dark), #4A2418);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 162, 76, .3);
    color: #fff;
}
.resto-sidebar-card .csc-title {
    font-family: var(--fh);
    font-size: 14px;
    font-weight: 800;
    color: var(--resto-secondary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--resto-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.resto-sidebar-card .csc-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.resto-sidebar-card .csc-hour-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}
.resto-sidebar-card .csc-hour-row.closed {
    color: rgba(255, 255, 255, .35);
    text-decoration: line-through;
}
.resto-sidebar-card .csc-hour-row span:first-child { font-weight: 600; }

.resto-sidebar-card .csc-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.resto-sidebar-card .csc-sugg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--r-sm);
    transition: background .15s ease;
}
.resto-sidebar-card .csc-sugg:hover {
    background: rgba(255, 255, 255, .06);
}
.resto-sidebar-card .csc-sugg-ico {
    font-size: 22px;
    flex-shrink: 0;
}
.resto-sidebar-card .csc-sugg-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}
.resto-sidebar-card .csc-sugg-price {
    font-size: 12.5px;
    color: var(--resto-secondary);
    font-weight: 800;
}

/* Bouton sidebar principal (réserver) */
.resto-sidebar-card .csc-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--resto-accent);
    color: #fff;
    border-radius: var(--r-sm);
    padding: 13px;
    min-height: 46px;
    font-family: var(--fh);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(192, 57, 43, .35);
    transition: transform .2s ease;
}
.resto-sidebar-card .csc-cta-primary:hover {
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   6. BLOC AVIS (placeholder)
   ═══════════════════════════════════════════════════════════════ */
.bloc-avis .avis-placeholder {
    text-align: center;
    padding: 24px;
    background: var(--resto-cream);
    border-radius: var(--r-md);
    border: 1px dashed rgba(139, 46, 31, .2);
}
.bloc-avis .avis-stars {
    font-size: 32px;
    color: var(--resto-secondary);
    letter-spacing: 4px;
    margin-bottom: 12px;
    line-height: 1;
}
.bloc-avis .avis-placeholder p {
    color: var(--slate);
    margin-bottom: 16px;
    font-size: 14.5px;
    line-height: 1.5;
}
.bloc-avis .btn-avis {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    background: var(--resto-primary);
    color: #fff;
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--fh);
    font-weight: 700;
    font-size: 13.5px;
    transition: background .2s ease, transform .2s ease;
}
.bloc-avis .btn-avis:hover {
    background: var(--resto-dark);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   7. STICKY MOBILE — override couleurs
   ═══════════════════════════════════════════════════════════════ */
.theme-resto .sticky-mob .cb.cta-phone {
    background: linear-gradient(135deg, var(--resto-accent), #a83224) !important;
}
.theme-resto .sticky-mob .cb.cb-gold {
    background: linear-gradient(135deg, var(--resto-secondary), #c89540) !important;
    color: var(--resto-dark) !important;
}

/* ═══════════════════════════════════════════════════════════════
   8. ACCESSIBILITÉ / REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .cta-reserver,
    .cta-carte,
    .cta-itineraire,
    .cta-share,
    .menu-download-btn,
    .menu-footer-link,
    .toc-r-item,
    .btn-avis {
        transition-duration: .001ms !important;
        transform: none !important;
    }
}

/* Focus visible (couleur adaptée au thème) */
.theme-resto a:focus-visible,
.theme-resto button:focus-visible {
    outline: 2px solid var(--resto-secondary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   9. RESPONSIVE — petits ajustements
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-resto-quick { padding: 14px; gap: 8px; }
    .menu-hero-banner { padding: 14px; }
    .menu-download-btn { width: 100%; justify-content: center; }
    .menu-footer-resto { flex-direction: column; align-items: stretch; }
    .menu-footer-resto .menu-footer-right { width: 100%; }
    .menu-footer-link { flex: 1; justify-content: center; }
}