﻿/* === DESIGN PROFESSIONNEL D.Y SUSHI === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-red: #dc3545;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #f8f9fa;
    --text-muted: #a0a0a0;
    --border-subtle: rgba(220, 53, 69, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a0a0a 100%);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    padding-top: 90px;
    padding-bottom: 80px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== HEADER PREMIUM ===== */
header.navbar {
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%) !important;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
}

    header.navbar:hover {
        border-bottom-color: var(--primary-red);
    }

/* Logo */
.logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(220, 53, 69, 0.3));
    transition: transform 0.4s ease, filter 0.4s ease;
    animation: logoEntrance 1s ease forwards;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05) rotateZ(2deg);
    filter: drop-shadow(0 6px 12px rgba(220, 53, 69, 0.5));
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Icônes de navigation */
.nav-icon {
    color: var(--text-light);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-decoration: none;
    display: inline-block;
}

    .nav-icon:hover {
        color: var(--primary-red);
        transform: scale(1.15);
        filter: drop-shadow(0 4px 8px rgba(220, 53, 69, 0.6));
    }

/* Boutons header */
.navbar .btn-outline-danger {
    border: 2px solid var(--primary-red);
    color: var(--text-light);
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .navbar .btn-outline-danger::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: var(--primary-red);
        transform: translate(-50%, -50%);
        transition: width 0.4s ease, height 0.4s ease;
        z-index: -1;
    }

    .navbar .btn-outline-danger:hover::before {
        width: 300px;
        height: 300px;
    }

    .navbar .btn-outline-danger:hover {
        color: #fff;
        border-color: var(--primary-red);
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
    }

.navbar i {
    color: var(--text-light);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

    .navbar i:hover {
        color: var(--primary-red);
        transform: scale(1.15);
        filter: drop-shadow(0 4px 8px rgba(220, 53, 69, 0.6));
    }

/* Badge panier animé */
#cartBadge {
    font-size: 0.7rem;
    padding: 4px 7px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4757 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===== MENU LATÉRAL ÉLÉGANT ===== */
.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.8);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    padding: 40px 25px;
    border-left: 2px solid var(--border-subtle);
}

    .side-menu.open {
        right: 0;
    }

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-subtle);
}

    .menu-header h3 {
        font-size: 1.5rem;
        background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b7a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.side-menu .btn-close {
    background: transparent;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    opacity: 1;
    transition: all 0.3s ease;
}

    .side-menu .btn-close:hover {
        transform: rotate(90deg);
        background: var(--primary-red);
    }

.side-menu a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin: 8px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .side-menu a i {
        font-size: 1.2rem;
        color: var(--primary-red);
        transition: transform 0.3s ease;
    }

    .side-menu a:hover {
        background: rgba(220, 53, 69, 0.1);
        border-left-color: var(--primary-red);
        transform: translateX(8px);
        box-shadow: var(--shadow-sm);
    }

        .side-menu a:hover i {
            transform: scale(1.2) rotateZ(5deg);
        }

/* Overlay premium */
.overlay-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1040;
}

    .overlay-menu.show {
        opacity: 1;
        visibility: visible;
    }


footer.footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
    padding: 16px 0;
}

    footer.footer .small {
        font-size: 0.9rem;
        color: var(--text-muted);
        transition: color 0.3s ease;
    }

        footer.footer .small:hover {
            color: var(--text-light);
        }

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Carte de commande premium */
.order-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px !important;
    box-shadow: var(--shadow-lg);
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.order-card h1 {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(220, 53, 69, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(220, 53, 69, 0.6));
    }
}

/* Boutons premium */
.btn-danger {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c82333 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-danger::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .btn-danger:hover::before {
        width: 400px;
        height: 400px;
    }

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.6);
    }

/* ===== MODALES ÉLÉGANTES ===== */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    color: var(--text-light);
}

.modal-header {
    border-bottom: 1px solid var(--border-subtle);
}

    .modal-header .btn-close {
        filter: invert(1);
        opacity: 0.8;
        transition: all 0.3s ease;
    }

        .modal-header .btn-close:hover {
            opacity: 1;
            transform: rotate(90deg);
        }

/* Inputs modernes */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--primary-red);
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
        color: var(--text-light);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ===== SCROLLBARS PERSONNALISÉES ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c82333 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #ff4757 0%, var(--primary-red) 100%);
    }

/* ===== ANIMATIONS GLOBALES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container, .card, section {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .navbar-brand img {
        height: 60px;
    }

    .order-card {
        padding: 30px !important;
    }

    .side-menu {
        width: 280px;
        right: -300px;
    }
}

/* ===== RESPONSIVE MOBILE COMPLET ===== */

/* ========================================
   TABLETTE (768px - 992px)
   ======================================== */
@media (max-width: 992px) and (min-width: 769px) {
    body {
        padding-top: 80px;
        padding-bottom: 70px;
    }

    .container {
        max-width: 100%;
        padding: 0 25px;
    }

    .navbar-brand img {
        height: 65px;
    }

    .side-menu {
        width: 300px;
        right: -320px;
    }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {

    /* === LAYOUT GÉNÉRAL === */
    body {
        padding-top: 65px !important;
        padding-bottom: 70px !important;
        font-size: 14px;
    }

    .container, .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* === HEADER MOBILE === */
    header.navbar {
        padding: 8px 0 !important;
        height: 60px;
    }

        header.navbar .container-fluid {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            flex-wrap: nowrap !important;
        }

    .navbar-brand {
        flex-shrink: 0 !important;
    }

        .navbar-brand img {
            height: 40px !important;
        }

    .header-logo {
        height: 40px !important;
    }

    .flex-grow-1 {
        display: none !important; /* Cache le spacer sur mobile */
    }

    .d-flex.align-items-center.gap-3 {
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    /* Boutons Header Compacts */
    .nav-icon {
        font-size: 1.2rem !important;
        padding: 0 !important;
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .btn-lang {
        padding: 0 8px !important;
        font-size: 0.75rem !important;
        height: 32px !important;
        min-width: fit-content !important;
        gap: 4px !important;
    }

        .btn-lang i {
            font-size: 0.9rem !important;
        }

    #langText {
        font-size: 0.7rem !important;
    }

    .btn-menu {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
    }

    #cartBadge {
        font-size: 0.6rem;
        padding: 2px 4px;
        width: 16px;
        height: 16px;
    }

    /* Cacher textes longs sur mobile */
    .d-none.d-md-inline-flex {
        display: none !important;
    }

    /* === MENU LATÉRAL MOBILE === */
    .side-menu {
        width: 280px !important;
        right: -300px !important;
        padding: 15px !important;
        overflow-y: auto !important; /* IMPORTANT: Permettre le scroll */
        max-height: 100vh !important;
    }

        .side-menu.open {
            right: 0 !important;
        }

        .side-menu h3 {
            font-size: 1.2rem !important;
        }

        .side-menu .menu-header {
            margin-bottom: 20px !important;
            padding-bottom: 12px !important;
        }

        .side-menu a {
            padding: 10px 12px !important;
            font-size: 0.85rem !important;
            gap: 10px !important;
            margin-bottom: 4px !important;
        }

        .side-menu i {
            font-size: 1rem !important;
            width: 22px !important;
        }

    .btn-close-menu {
        font-size: 1.3rem !important;
    }

    /* === HERO / HOMEPAGE === */
    .hero-bg {
        height: 75vh !important;
        min-height: 400px !important;
    }

    .order-card {
        padding: 25px 20px !important;
        margin: 0 10px !important;
        max-width: 100% !important;
    }

        .order-card h1 {
            font-size: 1.6rem !important;
        }

        .order-card .subtitle {
            font-size: 0.85rem !important;
            margin-bottom: 20px !important;
        }

        .order-card .btn-order {
            font-size: 0.95rem !important;
            padding: 12px 35px !important;
            width: 100% !important;
        }

    /* === SECTIONS TENDANCES & REVIEWS === */
    .tendances-section,
    .reviews-section,
    .info-section {
        padding: 30px 0 !important;
    }

    .section-title {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
    }

    .tendances-container {
        padding: 10px 15px 20px !important;
        gap: 12px !important;
    }

    .tendance-card {
        width: 160px !important;
        min-width: 160px !important;
    }

        .tendance-card img {
            height: 110px !important;
        }

    .tendance-info h6 {
        font-size: 0.85rem !important;
    }

    .tendance-info p {
        font-size: 0.8rem !important;
    }

    .scroll-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
    }

    /* Review Form Mobile */
    .review-form-container {
        margin: 0 10px 25px !important;
        padding: 20px !important;
    }

        .review-form-container .greeting {
            font-size: 0.9rem !important;
        }

    .star {
        font-size: 1.5rem !important;
    }

    textarea.form-control {
        font-size: 0.85rem !important;
    }

    /* Reviews Grid */
    .reviews-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }

    .review-card {
        padding: 12px 16px !important;
    }

    .reviewer-name {
        font-size: 0.9rem !important;
    }

    .review-text {
        font-size: 0.85rem !important;
    }

    /* === PAGES APROPOS, CONTACT, EMPLACEMENTS === */
    .about-container,
    .contact-container,
    .location-container {
        margin: 80px auto 60px !important;
        padding: 0 15px !important;
    }

    .about-title,
    .contact-title,
    .location-title {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }

    .location-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
    }

    .about-card,
    .contact-card,
    .map-container {
        padding: 25px 20px !important;
        margin-bottom: 20px !important;
    }

        .about-card h3 {
            font-size: 1.4rem !important;
        }

        .about-card p,
        .contact-card p {
            font-size: 0.95rem !important;
        }

        .about-card ul li {
            font-size: 0.9rem !important;
        }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .stat-box {
        padding: 20px 15px !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .stat-label {
        font-size: 0.85rem !important;
    }

    /* Info Cards Mobile */
    .info-cards {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .info-card {
        padding: 20px !important;
    }

        .info-card i {
            font-size: 2rem !important;
        }

        .info-card h6 {
            font-size: 0.95rem !important;
        }

        .info-card p {
            font-size: 0.85rem !important;
        }

    /* === AUTH PAGES (LOGIN/REGISTER) === */
    .auth-container {
        min-height: calc(100vh - 140px) !important;
        padding: 30px 15px !important;
    }

    .auth-card {
        padding: 28px 20px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

        .auth-card h2 {
            font-size: 1.5rem !important;
            margin-bottom: 20px !important;
        }

    .form-label {
        font-size: 0.85rem !important;
        margin-bottom: 5px !important;
    }

    .form-control {
        padding: 10px 13px !important;
        font-size: 0.9rem !important;
    }

    .btn-danger {
        padding: 11px !important;
        font-size: 0.95rem !important;
    }

    .address-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .auth-footer {
        font-size: 0.85rem !important;
        margin-top: 12px !important;
    }

    /* === MENU PAGE MOBILE === */
    .menu-layout {
        display: block !important;
        padding: 0 !important;
        margin-top: 65px !important;
        gap: 0 !important;
    }

    /* Categories Horizontal Scroll */
    .categories {
        position: sticky !important;
        top: 60px !important;
        z-index: 990 !important;
        width: 100vw !important;
        margin-left: -12px !important;
        background: rgba(26, 26, 26, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(220, 53, 69, 0.3) !important;
        border-radius: 0 !important;
        padding: 10px 15px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        height: auto !important;
    }

        .categories::-webkit-scrollbar {
            display: none !important;
        }

        .categories h6 {
            display: none !important;
        }

    #categoryList {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        width: max-content !important;
    }

    .categories .btn {
        width: auto !important;
        min-width: fit-content !important;
        margin: 0 !important;
        border-radius: 50px !important;
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Products List Mobile */
    main {
        padding: 15px !important;
        padding-bottom: 80px !important;
    }

        main h2 {
            font-size: 1.4rem !important;
            margin-top: 10px !important;
            margin-bottom: 20px !important;
            text-align: left !important;
            padding-left: 5px !important;
        }

    .product-item {
        flex-direction: row !important;
        height: auto !important;
        align-items: center !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
        min-height: unset !important;
    }

    .product-image-wrapper {
        width: 100px !important;
        min-width: 100px !important;
        padding: 8px !important;
        border-right: none !important;
        border-bottom: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .product-item img {
        width: 85px !important;
        height: 85px !important;
        border-radius: 12px !important;
    }

    .product-info {
        padding: 5px 0 5px 12px !important;
        text-align: left !important;
        flex: 1 !important;
    }

        .product-info h6 {
            font-size: 0.95rem !important;
            margin-bottom: 4px !important;
        }

        .product-info p {
            font-size: 0.75rem !important;
            line-height: 1.3 !important;
            color: #888 !important;
            margin-bottom: 4px !important;
        }

    .product-price {
        font-size: 1rem !important;
        color: #dc3545 !important;
        font-weight: 700 !important;
    }

    /* Hide Cart Box on Mobile */
    .cart-box {
        display: none !important;
    }

    /* Floating Mobile Cart Button */
    #mobileFloatCart {
        display: flex !important;
    }

    /* === MODAL MOBILE === */
    .modal-dialog {
        max-width: 96% !important;
        margin: 8px auto !important;
    }

    .modal-content {
        max-height: 93vh !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-header {
        padding: 12px 16px !important;
        flex-shrink: 0 !important;
    }

    .modal-title {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
    }

    .modal-header .btn-close {
        padding: 8px !important;
        margin: 0 !important;
    }

    .modal-image-section {
        padding: 15px !important;
        flex-shrink: 0 !important;
        min-height: 140px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

        .modal-image-section img {
            max-height: 110px !important;
            max-width: 85% !important;
        }

    .modal-image-nav {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
    }

        .modal-image-nav.prev {
            left: 5px !important;
        }

        .modal-image-nav.next {
            right: 5px !important;
        }

    .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        min-height: 200px !important;
        max-height: calc(93vh - 380px) !important; /* Ajusté pour laisser place header + footer */
    }

    .modal-body-scrollable {
        padding: 12px 14px !important;
    }

    /* Sections d'ingrédients plus compactes */
    .ingredient-section,
    .composition-section {
        padding: 12px 14px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }

        .ingredient-section h6,
        .composition-section h6 {
            font-size: 0.85rem !important;
            margin-bottom: 8px !important;
            padding-bottom: 6px !important;
        }

        .ingredient-section p {
            font-size: 0.78rem !important;
            margin-bottom: 8px !important;
            line-height: 1.4 !important;
        }

    /* Grilles de boutons ingrédients */
    .row.g-2 {
        gap: 6px !important;
        margin: 0 !important;
    }

        .row.g-2 > [class*="col-"] {
            padding: 0 !important;
            margin-bottom: 6px !important;
        }

    .ingredient-btn {
        padding: 7px 6px !important;
        font-size: 0.75rem !important;
        min-height: 36px !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Composition items */
    .composition-item {
        padding: 10px !important;
        margin-bottom: 8px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

        .composition-item > div {
            width: 100% !important;
        }

    .comp-status-badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
        margin-top: 4px !important;
    }

    .customize-item-btn {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }

    /* Contrôles sauces */
    .sauce-control {
        padding: 8px 10px !important;
        margin-bottom: 6px !important;
        flex-wrap: nowrap !important;
    }

        .sauce-control span {
            font-size: 0.8rem !important;
            flex: 1 !important;
            min-width: 0 !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

    .sauce-qty-control {
        flex-shrink: 0 !important;
        gap: 8px !important;
    }

        .sauce-qty-control button {
            width: 28px !important;
            height: 28px !important;
            font-size: 0.9rem !important;
            padding: 0 !important;
        }

        .sauce-qty-control .qty {
            min-width: 18px !important;
            font-size: 0.85rem !important;
        }

    /* Footer modal fixe */
    .modal-footer-fixed {
        padding: 12px 14px !important;
        flex-shrink: 0 !important;
    }

        .modal-footer-fixed .qty-controls {
            margin-bottom: 10px !important;
            gap: 10px !important;
        }

            .modal-footer-fixed .qty-controls button {
                width: 34px !important;
                height: 34px !important;
                font-size: 1.1rem !important;
            }

            .modal-footer-fixed .qty-controls input {
                width: 48px !important;
                height: 34px !important;
                font-size: 0.95rem !important;
            }

        .modal-footer-fixed .total-price {
            margin-bottom: 10px !important;
        }

            .modal-footer-fixed .total-price h5 {
                font-size: 0.85rem !important;
                margin: 0 !important;
            }

            .modal-footer-fixed .total-price span#modalTotal {
                font-size: 1.25rem !important;
                margin-left: 6px !important;
            }

    #addToCartModal {
        padding: 10px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }

    /* Sub Config Modal Mobile */
    #subConfigModal .modal-dialog {
        max-width: 96% !important;
    }

    #subConfigModal .modal-content {
        max-height: 92vh !important;
    }

    #subConfigModal .modal-body {
        max-height: calc(92vh - 160px) !important;
    }

    .unit-config-card {
        padding: 14px !important;
        margin-bottom: 12px !important;
    }

    .unit-header {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    .unit-number-badge {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }

    .config-label {
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
    }

    #subConfigModal .ingredient-btn {
        font-size: 0.7rem !important;
        padding: 6px 4px !important;
        min-height: 32px !important;
    }

    #subConfigModal .row.g-2 {
        gap: 5px !important;
    }

    /* Form checks (switches) */
    .form-check {
        padding-left: 2.5rem !important;
    }

    .form-check-input {
        width: 2.5rem !important;
        height: 1.25rem !important;
    }

    .form-check-label {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }

    /* === PANIER PAGE MOBILE === */
    .cart-page {
        margin: 80px auto 70px !important;
        padding: 0 15px !important;
    }

    .cart-header-box {
        padding: 18px 20px !important;
        margin-bottom: 20px !important;
    }

    .cart-title {
        font-size: 1.4rem !important;
    }

    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cart-items-box,
    .cart-summary-box {
        padding: 20px !important;
    }

        .cart-items-box h5,
        .cart-summary-box h5 {
            font-size: 1.1rem !important;
            margin-bottom: 15px !important;
        }

    .cart-item {
        padding: 10px 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .cart-item-name {
        font-size: 0.9rem !important;
    }

    .cart-item small {
        font-size: 0.75rem !important;
    }

    .cart-item .d-flex {
        width: 100%;
        justify-content: space-between;
    }

    .remove-item {
        padding: 3px 6px !important;
        font-size: 0.85rem !important;
    }

    .delivery-toggle {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 8px !important;
    }

        .delivery-toggle label {
            padding: 8px !important;
            font-size: 0.9rem !important;
        }

    .user-summary-card {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }

        .user-summary-card h6 {
            font-size: 0.95rem !important;
        }

        .user-summary-card p {
            font-size: 0.85rem !important;
        }

    #guestAddressInputs .row {
        gap: 8px !important;
    }

    #guestAddressInputs .col-12,
    #guestAddressInputs .col-6 {
        padding: 0 !important;
    }

    #guestAddressInputs input,
    #guestAddressInputs select {
        margin-bottom: 8px !important;
    }

    .modal-dialog.modal-dialog-centered {
        margin: 15px !important;
    }

    #successModal .modal-content {
        padding: 25px !important;
    }

    #successModal h5 {
        font-size: 1.3rem !important;
    }

    /* === PROFIL PAGE MOBILE === */
    .profile-container {
        margin: 90px 15px 70px !important;
        padding: 25px 20px !important;
    }

    .profile-avatar {
        width: 70px !important;
        height: 70px !important;
    }

        .profile-avatar i {
            font-size: 2rem !important;
        }

    .profile-header h3 {
        font-size: 1.3rem !important;
    }

    .profile-header p {
        font-size: 0.85rem !important;
    }

    .nav-pills-custom {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
        padding: 6px !important;
    }

    .nav-item-btn {
        padding: 8px 5px !important;
        font-size: 0.7rem !important;
    }

        .nav-item-btn i {
            font-size: 1.1rem !important;
        }

    /* Cacher texte des boutons sur très petit écran */
    @media (max-width: 380px) {
        .nav-item-btn span {
            display: none !important;
        }
    }

    .section-title {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

        .section-title i {
            font-size: 1rem !important;
        }

    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }

    .row.g-2 {
        gap: 8px !important;
    }

        .row.g-2 .col-12 {
            padding: 0 !important;
            margin-bottom: 8px !important;
        }

    .history-card {
        padding: 12px !important;
        margin-bottom: 10px !important;
    }

    .history-date {
        font-size: 0.75rem !important;
    }

    .history-price {
        font-size: 0.95rem !important;
    }

    .history-content {
        font-size: 0.8rem !important;
        padding: 6px !important;
    }

    .status-badge {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    .btn-reorder-sm {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }

    /* === REPORT PROBLEM PAGE MOBILE === */
    .report-container {
        margin: 70px 15px 60px !important;
        padding-bottom: 40px !important;
    }

    .report-card-clean {
        padding: 30px 20px !important;
    }

    .report-title {
        font-size: 1.4rem !important;
    }

    .report-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 30px !important;
    }

    .form-label-clean {
        font-size: 0.7rem !important;
        margin-bottom: 6px !important;
    }

    .form-control-clean {
        padding: 12px 14px !important;
        font-size: 0.9rem !important;
    }

    .btn-submit-clean {
        padding: 14px !important;
        font-size: 0.95rem !important;
    }

    .alert-box {
        padding: 12px !important;
        font-size: 0.85rem !important;
    }

    .row.g-4 {
        gap: 12px !important;
    }

        .row.g-4 .col-12,
        .row.g-4 .col-md-6 {
            padding: 0 !important;
            margin-bottom: 12px !important;
        }

    /* === FOOTER MOBILE === */
    footer.footer {
        padding: 12px 0 !important;
        font-size: 0.75rem !important;
    }

        footer.footer .small {
            font-size: 0.75rem !important;
        }

    /* === FLOATING REPORT BUTTON MOBILE === */
    .btn-report-float {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
        bottom: 75px !important;
        right: 15px !important;
    }

    /* === UTILITIES MOBILE === */
    .mb-3 {
        margin-bottom: 12px !important;
    }

    .mb-4 {
        margin-bottom: 16px !important;
    }

    .mt-3 {
        margin-top: 12px !important;
    }

    .mt-4 {
        margin-top: 16px !important;
    }

    .py-4 {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    /* Textes responsives */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    h4 {
        font-size: 1.1rem !important;
    }

    h5 {
        font-size: 1rem !important;
    }

    h6 {
        font-size: 0.9rem !important;
    }

    p {
        font-size: 0.9rem !important;
    }

    small,
    .small {
        font-size: 0.8rem !important;
    }

    /* Boutons génériques mobile */
    .btn {
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }

    .btn-sm {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    .btn-lg {
        font-size: 1rem !important;
        padding: 12px 24px !important;
    }

    /* Inputs génériques mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important; /* Évite le zoom iOS */
    }
}

/* ========================================
   TRÈS PETIT MOBILE (max-width: 380px)
   ======================================== */
@media (max-width: 380px) {
    body {
        font-size: 13px !important;
    }

    .navbar-brand img {
        height: 35px !important;
    }

    .order-card {
        padding: 20px 15px !important;
    }

        .order-card h1 {
            font-size: 1.4rem !important;
        }

    .tendance-card {
        width: 140px !important;
    }

        .tendance-card img {
            height: 100px !important;
        }

    .product-item {
        padding: 10px !important;
    }

    .product-image-wrapper {
        width: 80px !important;
        min-width: 80px !important;
    }

    .product-item img {
        width: 70px !important;
        height: 70px !important;
    }

    .modal-dialog {
        max-width: 98% !important;
        margin: 5px auto !important;
    }

    .cart-page {
        padding: 0 10px !important;
    }

    h1 {
        font-size: 1.6rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }
}
/* =======================================================
   CORRECTIFS PRÉCIS MOBILE (D.Y SUSHI)
   ======================================================= */
@media (max-width: 768px) {

    /* --- 1. PAGE D'ACCUEIL : TEXTE & BOUTON PLUS PETITS --- */
    .order-card h1 {
        margin-bottom: 5px !important; /* Rapproche le titre du texte */
    }

    /* Le texte "Qualité premium..." plus petit */
    .order-card .subtitle {
        font-size: 0.8rem !important; /* Réduit la taille */
        margin-bottom: 15px !important; /* Moins d'espace sous le texte */
    }

    /* Le bouton "Commande Rapide" plus petit et compact */
    .order-card .btn-order {
        font-size: 0.85rem !important; /* Texte bouton plus petit */
        padding: 8px 25px !important; /* Bouton moins gros */
        width: auto !important; /* Ne prend pas toute la largeur si pas nécessaire */
    }

    /* --- 2. HEADER : DÉCALER LE LOGO À DROITE --- */
    .navbar-brand {
        margin-left: 5px !important; /* Décale le logo de ~1-2mm vers la droite */
        padding-left: 0 !important;
    }

    /* --- 3. MENU & MODAL --- */

    /* Remonter les catégories roulantes */
    .categories {
        margin-top: -15px !important; /* Remonte la barre vers le haut */
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* FORCER 2 COLONNES DANS LA MODALE (Garnitures, Légumes, etc) */
    /* On utilise Grid pour forcer l'alignement strict en 2 colonnes */
    #garnitureGrid,
    #veggiesGrid,
    #topGrid,
    #incorporatedGrid,
    .row.g-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 2 colonnes strictes */
        gap: 8px !important; /* Espace entre les boutons */
    }

        /* Annule le comportement Bootstrap qui pourrait gêner */
        #garnitureGrid > div,
        #veggiesGrid > div,
        #topGrid > div {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 !important;
        }
}
/* --- EMPÊCHER L'ÉCRAN DE BOUGER LATÉRALEMENT --- */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; /* Coupe net tout ce qui dépasse à droite */
    position: relative; /* Stabilise le cadre */
    touch-action: pan-y; /* Optimise le scroll vertical sur mobile */
}
/* =======================================================
   FIX FINAL ACCUEIL MOBILE (Carte Immobile & Transparente)
   ======================================================= */
@media (max-width: 768px) {
    .order-card {
        /* 1. Arrête l'animation (elle ne flottera plus) */
        animation: none !important;
        transform: none !important;
        /* 2. Plus transparente */
        /* Le dernier chiffre (0.6) gère la transparence. 
           0.9 = très sombre, 0.1 = invisible. 
           0.6 est un bon équilibre. */
        background: rgba(20, 20, 20, 0.6) !important;
        /* Ajoute un peu de flou derrière pour que le texte reste lisible */
        backdrop-filter: blur(5px) !important;
        /* Enlève la bordure ou la rend plus discrète si tu veux */
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}
/* =======================================================
   AJUSTEMENT CONTACT MOBILE (DÉCALAGE GAUCHE)
   ======================================================= */
@media (max-width: 768px) {
    .info-section {
        /* On ajoute de l'espace à droite pour "pousser" le texte vers la gauche */
        padding-right: 20px !important;
        padding-left: 10px !important;
        /* On s'assure que le texte reste centré dans ce nouvel espace */
        text-align: center !important;
    }

        /* Si tu veux aussi aligner le titre un peu plus à gauche */
        .info-section h2 {
            margin-right: 15px !important;
        }
}