/* ============================================
   FAST FOOD MAROC - Styles Landing Page
   ============================================ */

/* ----- FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s ease;
}

/* ----- RESET ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-primary); letter-spacing: 0.5px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ----- PRELOADER ----- */
.preloader {
    position: fixed; inset: 0;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; color: #fff; }
.preloader-logo, .preloader-logo-img {
    width: 100px; height: 100px;
    background: #fff; border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 15px rgba(255,255,255,0.2);
}
.preloader-logo-img { object-fit: contain; padding: 15px; }
.preloader-text {
    font-family: var(--font-primary);
    font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 1rem;
}
.preloader-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 15px rgba(255,255,255,0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 25px rgba(255,255,255,0.1); }
}

/* ----- TOP BAR ----- */
.top-bar { background: var(--bg-footer); color: #fff; padding: 0.5rem 0; font-size: 0.85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.top-bar-info span { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-info i { color: var(--accent); }
.top-bar-badge {
    background: var(--accent); color: var(--dark, #1a1a2e);
    padding: 0.3rem 1.2rem; border-radius: 30px;
    font-weight: 700; font-size: 0.8rem;
    animation: badgeGlow 2s ease-in-out infinite;
}
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,186,8,0.3); }
    50% { box-shadow: 0 0 20px rgba(255,186,8,0.6); }
}

/* ----- NAVBAR ----- */
.navbar {
    position: sticky; top: 0; width: 100%;
    background: var(--bg-navbar);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.logo {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-primary); font-size: 1.6rem;
    color: var(--primary); text-decoration: none; letter-spacing: 1px;
}
.logo-icon, .logo-icon-small {
    width: 45px; height: 45px;
    background: var(--gradient-1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; transform: rotate(-5deg);
    overflow: hidden;
}
.logo-icon img, .logo-icon-small img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.logo-icon-small { width: 40px; height: 40px; font-size: 1.2rem; transform: rotate(-3deg); }
.nav-menu { display: flex; gap: 1.8rem; align-items: center; }
.nav-link {
    color: var(--text-primary); text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    transition: color 0.3s; position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2.5px;
    background: var(--gradient-1); border-radius: 2px;
    transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1.2rem; }
.cart-btn {
    position: relative; background: none; border: none;
    font-size: 1.3rem; color: var(--text-primary);
    cursor: pointer; transition: color 0.3s; padding: 0.5rem;
}
.cart-btn:hover { color: var(--primary); }
.cart-count {
    position: absolute; top: -2px; right: -5px;
    background: var(--primary); color: #fff;
    font-size: 0.7rem; width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.hamburger { display: none; }
.promo-active-badge {
    background: var(--danger); color: #fff;
    padding: 0.2rem 0.8rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700; animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0.5; } }

/* ----- HERO ----- */
.hero {
    background: var(--bg-hero); position: relative; overflow: hidden;
    padding: 3rem 0 5rem; min-height: 85vh; display: flex; align-items: center;
}
.hero-bg-pattern {
    position: absolute; inset: 0; opacity: 0.05;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 30px 30px;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; padding: 0.5rem 1.2rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; color: var(--primary);
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}
.hero-badge .dot {
    width: 8px; height: 8px; background: var(--success);
    border-radius: 50%; animation: blink 1.5s infinite;
}
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1rem; }
.hero-title span { color: var(--primary); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 450px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.hero-feature { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; font-size: 0.95rem; }
.hero-feature i { color: var(--success); font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image-wrapper { display: flex; justify-content: center; align-items: center; }
.hero-image-main {
    width: 100%; max-width: 450px; border-radius: var(--radius-xl);
    animation: heroFloat 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2.2rem; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    transition: var(--transition); border: none; cursor: pointer;
    font-family: var(--font-secondary); letter-spacing: 0.5px;
}
.btn-primary { background: var(--gradient-1); color: #fff; box-shadow: 0 5px 20px rgba(232,93,4,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(232,93,4,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 0.6rem 1.5rem; font-size: 0.85rem; }

/* ----- SECTION HEADER ----- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-subtitle {
    display: inline-block; color: var(--primary);
    font-weight: 700; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.8rem; }
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--text-secondary); max-width: 550px; margin: 0 auto; }

/* ----- CATEGORIES ----- */
.categories-section { padding: 60px 0; background: var(--bg-primary); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; }
.category-card {
    background: var(--bg-primary); border: 2px solid #f0f0f0; border-radius: var(--radius-lg);
    padding: 2rem 1rem; text-align: center; cursor: pointer;
    transition: var(--transition); color: var(--text-primary); position: relative; overflow: hidden;
}
.category-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-1);
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.category-icon {
    width: 70px; height: 70px; background: #fff5eb; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 2rem;
    transition: transform 0.3s;
}
.category-card:hover .category-icon { transform: scale(1.1) rotate(-10deg); background: var(--gradient-1); color: #fff; }
.category-card h3 { font-size: 1rem; font-family: var(--font-secondary); font-weight: 600; }

/* ----- MENU ----- */
.menu-section { padding: 70px 0; background: var(--bg-secondary); }
.menu-tabs { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn {
    padding: 0.7rem 1.8rem; background: #fff;
    border: 2px solid #e0e0e0; border-radius: 50px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    font-family: var(--font-secondary); font-size: 0.9rem; color: var(--text-primary);
}
.tab-btn.active, .tab-btn:hover { background: var(--gradient-1); color: #fff; border-color: transparent; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.menu-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition); position: relative;
}
.menu-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.menu-card-badge {
    position: absolute; top: 15px; left: 15px; z-index: 2;
    padding: 0.3rem 1rem; border-radius: 30px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #fff;
}
.badge-bestseller { background: var(--primary); }
.badge-new { background: var(--success); }
.badge-promo { background: var(--danger); }
.menu-card-image { height: 200px; overflow: hidden; }
.menu-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.menu-card:hover .menu-card-image img { transform: scale(1.1); }
.menu-card-info { padding: 1.3rem; }
.menu-card-info h3 { font-size: 1.2rem; margin-bottom: 0.3rem; font-family: var(--font-secondary); font-weight: 700; }
.menu-card-desc { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.4; }
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; }
.menu-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.menu-price small { font-size: 0.8rem; color: var(--text-secondary); text-decoration: line-through; margin-right: 0.3rem; font-weight: 400; }
.menu-add-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--gradient-1); color: #fff; border: none;
    font-size: 1.2rem; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.menu-add-btn:hover { transform: scale(1.15); box-shadow: 0 5px 15px rgba(232,93,4,0.3); }

/* ----- PROMO ----- */
.promo-section { background: var(--gradient-2); }
.promo-banner { padding: 2.5rem 0; text-align: center; color: #fff; }
.promo-banner h3 { font-size: 2rem; margin-bottom: 0.3rem; }
.promo-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1rem; }
.promo-code-box {
    display: inline-block; background: rgba(255,255,255,0.2);
    border: 2px dashed #fff; padding: 0.6rem 2.5rem; border-radius: 50px;
    font-size: 1.4rem; font-weight: 700; letter-spacing: 2px;
    font-family: var(--font-primary);
}

/* ----- MAP ----- */
.map-section { padding: 70px 0; background: var(--bg-primary); }
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid var(--primary); }
.map-wrapper iframe { width: 100%; height: 450px; border: none; display: block; }

/* ----- TESTIMONIALS ----- */
.testimonials-section { padding: 70px 0; background: var(--bg-secondary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.testimonial-card {
    background: #fff; padding: 2rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: var(--transition); position: relative;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.testimonial-quote-icon { font-size: 3rem; color: var(--primary); opacity: 0.2; line-height: 1; margin-bottom: 0.5rem; }
.testimonial-stars { color: var(--accent); margin-bottom: 1rem; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-text { font-style: italic; color: var(--text-primary); margin-bottom: 1.5rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--gradient-1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
}
.testimonial-author-info h4 { font-family: var(--font-secondary); font-weight: 700; font-size: 1rem; }
.testimonial-author-info span { font-size: 0.85rem; color: var(--text-secondary); }

/* ----- ADD REVIEW ----- */
.add-review-section { text-align: center; }
.add-review-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 2rem; background: var(--gradient-1); color: #fff;
    border: none; border-radius: 50px; font-weight: 700;
    cursor: pointer; font-size: 1rem; transition: var(--transition);
    font-family: var(--font-secondary);
}
.add-review-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ----- REVIEW MODAL ----- */
.review-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 4000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.review-modal-overlay.open { opacity: 1; visibility: visible; }
.review-modal {
    background: #fff; border-radius: var(--radius-lg); padding: 2rem;
    width: 95%; max-width: 500px; text-align: center;
}
.review-modal h3 { margin-bottom: 1rem; }
.star-rating { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; flex-direction: row-reverse; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; color: #ccc; cursor: pointer; transition: color 0.2s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--accent); }
.review-modal input, .review-modal textarea {
    width: 100%; padding: 0.8rem 1rem; border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm); font-family: var(--font-secondary);
    font-size: 1rem; margin-bottom: 1rem;
}
.review-modal input:focus, .review-modal textarea:focus { border-color: var(--primary); outline: none; }

/* ----- FOOTER ----- */
.footer { background: var(--bg-footer); color: #fff; padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-primary); font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
.footer-about p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
    width: 38px; height: 38px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; transition: var(--transition); font-size: 0.95rem;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer h3 { margin-bottom: 1.2rem; font-size: 1.1rem; color: var(--accent); }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul li a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); font-size: 0.95rem; }
.footer ul li a:hover { color: #fff; padding-left: 5px; }
.footer-contact-item { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-contact-item i { color: var(--primary); width: 18px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s; }
.footer-bottom-links a:hover { color: #fff; }

/* ----- TOAST ----- */
.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary); color: #fff;
    padding: 1rem 2rem; border-radius: 50px;
    font-weight: 600; z-index: 5000;
    transition: transform 0.3s; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 0.5rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ----- RESPONSIVE ----- */
@media (max-width: 968px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-image-wrapper { order: -1; }
    .hero-image-main { max-width: 320px; }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex !important; flex-direction: column; gap: 5px;
        cursor: pointer; background: none; border: none; z-index: 1600;
    }
    .hamburger span { width: 26px; height: 2.5px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
    .nav-menu {
        position: fixed; top: 0; left: -100%; width: 80%; height: 100vh;
        background: var(--bg-navbar); flex-direction: column;
        padding: 5rem 2rem 2rem; transition: left 0.3s;
        z-index: 1500; box-shadow: var(--shadow-lg);
    }
    .nav-menu.open { left: 0; }
    .hero { padding: 2rem 0 3rem; min-height: auto; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .category-card { padding: 1.2rem 0.5rem; }
    .category-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .menu-grid { grid-template-columns: 1fr; }
    .map-wrapper iframe { height: 300px; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .top-bar .container { flex-direction: column; text-align: center; }
    .top-bar-info { flex-direction: column; gap: 0.3rem; }
}
/* =====================================================================
   REDESIGN LAYER — "Sleek Automotive" (Auto Location)
   Midnight + Amber. Hero sombre, lignes nettes, Oswald sportif.
   ===================================================================== */
:root{
  --r-radius: 14px;
  --r-radius-sm: 10px;
  --r-shadow-sm: 0 6px 18px rgba(15,23,42,.08);
  --r-shadow: 0 22px 50px -20px rgba(15,23,42,.30);
  --r-shadow-lg: 0 40px 80px -28px rgba(0,0,0,.55);
  --r-grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --r-ink: #0c1426;
  --r-line: #e7e9ee;
}
body{ background:var(--bg-primary); }
h1,h2,h3,.section-header h2,.hero-title,.logo{ letter-spacing:.5px; }

/* ---------- Buttons (sporty, sharp) ---------- */
.btn{ border-radius:10px; font-family:var(--font-primary); text-transform:uppercase; letter-spacing:1px; font-weight:600; transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, background .22s; }
.btn-primary{ background:var(--r-grad); border:none; color:#0c1426; box-shadow:0 12px 26px -10px var(--primary); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 20px 40px -12px var(--primary); }
.btn-outline{ border:2px solid rgba(255,255,255,.3); background:transparent; color:#fff; }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-3px); }

/* ---------- Top bar / navbar ---------- */
.top-bar{ background:#0c1426; border-bottom:1px solid rgba(255,255,255,.06); }
.top-bar-badge{ background:var(--r-grad); color:#0c1426; border-radius:8px; padding:5px 14px; font-weight:700; }
.navbar.scrolled{ box-shadow:0 10px 40px -18px rgba(15,23,42,.3); background:rgba(255,255,255,.92); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.nav-link::after{ background:var(--r-grad); height:3px; }
.cart-btn{ background:var(--secondary); color:#fff; }

/* ---------- HERO (dark, premium) ---------- */
.hero{
  position:relative; overflow:hidden; color:#fff;
  background:
    radial-gradient(45% 60% at 85% 12%, rgba(255,90,31,.30), transparent 70%),
    radial-gradient(40% 50% at 8% 85%, rgba(255,176,32,.16), transparent 70%),
    linear-gradient(160deg, #0c1426 0%, #131f38 60%, #0c1426 100%);
}
.hero::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(115deg, transparent 60%, rgba(255,90,31,.12) 60.4%, rgba(255,90,31,.12) 63%, transparent 63.4%);
}
.hero .container{ position:relative; z-index:1; }
.hero-bg-pattern{ background-image:linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size:48px 48px; opacity:.6; }
.hero-badge{ background:rgba(255,255,255,.08); border:1px solid rgba(255,176,32,.4); border-radius:8px; color:#ffce7a; font-weight:600; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.hero-badge .dot{ background:var(--accent); box-shadow:0 0 0 4px rgba(255,176,32,.25); }
.hero-title{ color:#fff; font-weight:700; text-transform:uppercase; letter-spacing:1px; line-height:1.05; }
.hero-title span{ background:var(--r-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-subtitle{ color:rgba(255,255,255,.78); }
.hero-feature{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:8px; padding:9px 15px; color:#e7ecf5; }
.hero-feature i{ color:var(--accent); }
.hero-image-main{ border-radius:16px; box-shadow:var(--r-shadow-lg); border:1px solid rgba(255,255,255,.12); }
.hero-image-wrapper{ position:relative; }
.hero-image-wrapper::after{ content:""; position:absolute; inset:auto -14px -14px auto; width:130px;height:130px; background:var(--r-grad); border-radius:16px; z-index:-1; opacity:.55; filter:blur(2px); }
@keyframes rFadeUp{ from{opacity:0; transform:translateY(22px);} to{opacity:1; transform:translateY(0);} }
.hero-badge,.hero-title,.hero-subtitle,.hero-features,.hero-buttons{ animation:rFadeUp .8s both; }
.hero-title{ animation-delay:.08s; } .hero-subtitle{ animation-delay:.16s; }
.hero-features{ animation-delay:.24s; } .hero-buttons{ animation-delay:.32s; }
.hero-image-wrapper{ animation:rFadeUp 1s .2s both; }

/* ---------- Section headers ---------- */
.section-header h2{ text-transform:uppercase; letter-spacing:1px; }
.section-subtitle, .section-header .section-subtitle{
  display:inline-block; text-transform:uppercase; letter-spacing:3px; font-size:.72rem; font-weight:700;
  color:var(--primary); background:rgba(255,90,31,.10); padding:7px 16px; border-radius:8px; border:1px solid rgba(255,90,31,.2);
  font-family:var(--font-secondary);
}
.section-header h2 span{ background:var(--r-grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.section-header h2::after{ content:""; display:block; width:60px;height:4px;border-radius:4px;margin:14px auto 0; background:var(--r-grad); }

/* ---------- Category cards ---------- */
.categories-section{ background:linear-gradient(180deg,#fff,#f5f6f8); }
.category-card{ border-radius:var(--r-radius); border:1px solid var(--r-line); background:#fff; box-shadow:var(--r-shadow-sm); transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; overflow:hidden; }
.category-card::before{ content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--r-grad); opacity:0; transition:opacity .3s; }
.category-card:hover{ transform:translateY(-8px); box-shadow:var(--r-shadow); border-color:rgba(255,90,31,.35); }
.category-card:hover::before{ opacity:1; }
.category-icon{ width:78px;height:78px;border-radius:16px; display:flex;align-items:center;justify-content:center; background:var(--secondary); color:#fff; font-size:2rem; margin:0 auto 1rem; transition:transform .3s, background .3s; }
.category-card:hover .category-icon{ transform:translateY(-3px); background:var(--r-grad); }

/* ---------- Vehicle cards ---------- */
.menu-section{ background:var(--bg-primary); }
.tab-btn{ border-radius:8px; border:1px solid var(--r-line); background:#fff; font-family:var(--font-primary); text-transform:uppercase; letter-spacing:.5px; font-weight:500; transition:all .22s; }
.tab-btn.active, .tab-btn:hover{ background:var(--r-grad); color:#0c1426; border-color:transparent; box-shadow:0 10px 22px -10px var(--primary); }
.menu-card{ border-radius:var(--r-radius); border:1px solid var(--r-line); background:#fff; box-shadow:var(--r-shadow-sm); overflow:hidden; transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.menu-card:hover{ transform:translateY(-8px); box-shadow:var(--r-shadow); }
.menu-card-image{ position:relative; background:var(--secondary); }
.menu-card-image::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 50%, rgba(12,20,38,.45)); }
.menu-card:hover .menu-card-image img{ transform:scale(1.07); }
.menu-card-badge{ border-radius:6px; font-family:var(--font-primary); text-transform:uppercase; letter-spacing:.6px; font-weight:600; box-shadow:0 6px 14px -6px rgba(0,0,0,.5); }
.badge-bestseller{ background:var(--r-grad); color:#0c1426; }
.badge-new{ background:linear-gradient(135deg,#06d6a0,#38e0b0); color:#06301f; }
.badge-promo{ background:linear-gradient(135deg,#ef476f,#ff7aa2); }
.menu-price{ color:var(--primary); font-weight:800; font-family:var(--font-primary); }
.menu-price::after{ content:" / jour"; font-size:.62em; color:var(--text-secondary); font-weight:600; letter-spacing:.5px; }
.menu-add-btn{ background:var(--r-grad); border:none; color:#0c1426; width:46px;height:46px;border-radius:10px; box-shadow:0 10px 20px -8px var(--primary); transition:transform .22s, box-shadow .22s; }
.menu-add-btn:hover{ transform:translateY(-3px); box-shadow:0 16px 28px -10px var(--primary); }

/* ---------- Promo / testimonials / map ---------- */
.promo-banner{ background:linear-gradient(135deg,#16223d,#0c1426); border:1px solid rgba(255,176,32,.25); border-radius:var(--r-radius); box-shadow:var(--r-shadow); position:relative; overflow:hidden; }
.promo-banner h3, .promo-banner p{ color:#fff; }
.promo-code-box{ border:2px dashed rgba(255,176,32,.6); border-radius:10px; background:rgba(255,176,32,.12); color:#ffce7a; }
.testimonials-section{ background:linear-gradient(180deg,#f5f6f8,#fff); }
.testimonial-card{ border-radius:var(--r-radius); border:1px solid var(--r-line); background:#fff; box-shadow:var(--r-shadow-sm); transition:transform .3s, box-shadow .3s; }
.testimonial-card:hover{ transform:translateY(-6px); box-shadow:var(--r-shadow); }
.testimonial-quote-icon{ color:var(--primary); opacity:.5; }
.testimonial-stars{ color:var(--accent); }
.testimonial-avatar{ background:var(--r-grad); color:#0c1426; font-weight:700; }
.map-wrapper{ border-radius:var(--r-radius); overflow:hidden; box-shadow:var(--r-shadow); border:1px solid var(--r-line); }
.add-review-btn{ border-radius:10px; background:var(--r-grad); color:#0c1426; border:none; text-transform:uppercase; font-family:var(--font-primary); letter-spacing:.5px; }
.review-modal{ border-radius:var(--r-radius); box-shadow:var(--r-shadow-lg); }
.review-modal input, .review-modal textarea{ border-radius:8px; }

/* ---------- Footer ---------- */
.footer{ background:radial-gradient(60% 80% at 100% 0%, rgba(255,90,31,.18), transparent 60%), #0c1426; position:relative; }
.footer::before{ content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--r-grad); }
.footer-social a:hover{ background:var(--r-grad); color:#0c1426; transform:translateY(-3px); }
.footer-contact-item i{ color:var(--accent); }

/* ---------- Toast ---------- */
.toast{ border-radius:10px; box-shadow:var(--r-shadow); }

/* safe perf hint (never hides content) */
@media (prefers-reduced-motion: no-preference){ .category-card,.menu-card,.testimonial-card{ will-change:transform; } }

/* ===================== GALERIE VÉHICULE ===================== */
/* badge nb photos + indice "voir" sur la card */
.menu-card-image{ cursor:pointer; }
.gallery-count{ position:absolute; bottom:12px; right:12px; z-index:3; background:rgba(12,20,38,.78); color:#fff; font-size:.74rem; font-weight:600; padding:5px 10px; border-radius:8px; display:flex; align-items:center; gap:6px; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.gallery-zoom{ position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center; gap:8px; color:#fff; font-family:var(--font-primary); text-transform:uppercase; letter-spacing:1px; font-size:.82rem; background:linear-gradient(180deg, rgba(12,20,38,.1), rgba(12,20,38,.55)); opacity:0; transition:opacity .25s; }
.menu-card-image:hover .gallery-zoom{ opacity:1; }

/* overlay */
.gallery-overlay{ position:fixed; inset:0; z-index:2000; background:rgba(8,13,26,.86); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); display:none; align-items:center; justify-content:center; padding:20px; }
.gallery-overlay.open{ display:flex; animation:galFade .25s ease; }
@keyframes galFade{ from{opacity:0} to{opacity:1} }
.gallery-modal{ width:min(860px,96vw); background:linear-gradient(160deg,#131f38,#0c1426); border:1px solid rgba(255,255,255,.1); border-radius:18px; padding:18px 18px 20px; position:relative; box-shadow:0 40px 90px -30px rgba(0,0,0,.7); }
.gallery-close{ position:absolute; top:12px; right:14px; width:38px; height:38px; border-radius:10px; border:none; background:rgba(255,255,255,.08); color:#fff; font-size:1.5rem; line-height:1; cursor:pointer; transition:background .2s; z-index:5; }
.gallery-close:hover{ background:var(--primary); }
.gallery-title{ color:#fff; font-family:var(--font-primary); text-transform:uppercase; letter-spacing:1px; font-size:1.25rem; margin:2px 0 14px; padding-right:46px; }
.gallery-main{ position:relative; border-radius:12px; overflow:hidden; background:#0a1120; aspect-ratio:16/10; display:flex; align-items:center; justify-content:center; }
.gallery-main img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-nav{ position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:none; background:rgba(12,20,38,.6); color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:1.05rem; transition:background .2s, transform .2s; z-index:3; }
.gallery-nav:hover{ background:var(--primary); transform:translateY(-50%) scale(1.07); }
.gallery-nav.prev{ left:12px; } .gallery-nav.next{ right:12px; }
.gallery-thumbs{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.gallery-thumbs img{ width:84px; height:60px; object-fit:cover; border-radius:9px; cursor:pointer; opacity:.55; border:2px solid transparent; transition:opacity .2s, border-color .2s; }
.gallery-thumbs img:hover{ opacity:.85; }
.gallery-thumbs img.active{ opacity:1; border-color:var(--primary); }
@media(max-width:560px){ .gallery-title{ font-size:1.05rem; } .gallery-thumbs img{ width:64px; height:46px; } }
