/* ========================================
   LUBUMFOOD - STYLE COMPLET
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --secondary: #E63946;
    --success: #2A9D8F;
    --accent: #F4A261;
    --dark: #1D3557;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --whatsapp: #25D366;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* NAVIGATION */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.cart-count {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 140px 15px 80px;    text-align: center;
    margin-top: 60px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BOUTONS */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary {
    background: var(--dark);
    color: var(--white);
}
.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

/* CAROUSEL */
.carousel-section {
    padding: 50px 15px;
    background: var(--white);
}

.carousel-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 15px 5px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-item {
    min-width: 280px;
    flex-shrink: 0;
}

.carousel-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.prev-btn {
    margin-right: 10px;
}

.next-btn {
    margin-left: 10px;
}

/* CARDS */
.restaurants-grid, .plats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.restaurant-card, .plat-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;}

.restaurant-card:hover, .plat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.restaurant-image, .plat-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.restaurant-image img, .plat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.restaurant-card:hover .restaurant-image img,
.plat-card:hover .plat-image img {
    transform: scale(1.05);
}

/* === === === === === === === === === === === */
/* === SUPPORT VIDÉO POUR LES PLATS === */
/* === === === === === === === === === === === */

.plat-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.plat-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
}

.plat-card:hover .plat-video {
    transform: scale(1.05);
}

/* === === === === === === === === === === === */
/* === FIN DU CODE VIDÉO === */
/* === === === === === === === === === === === */

.no-image {
    font-size: 60px;
    color: var(--accent);
}

.no-image {
    font-size: 60px;
    color: var(--accent);
}

.restaurant-info, .plat-info {
    padding: 18px;
}

.restaurant-info h3, .plat-info h4 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 18px;
}

.restaurant-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.restaurant-name, .categorie-name {    color: var(--primary);
    font-size: 13px;
    margin: 5px 0;
}

.plat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.prix {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

.btn-add-cart {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 14px;
}

.btn-add-cart:hover {
    background: #21867a;
}

/* HOW IT WORKS */
.how-it-works {
    padding: 60px 15px;
    background: var(--white);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));    gap: 30px;
}

.step {
    text-align: center;
    padding: 25px 15px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
}

.step h3 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 18px;
}

.step p {
    color: #666;
    font-size: 14px;
}

/* CATEGORIES */
.categories-section {
    background: var(--light);
    padding: 60px 15px;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.category-card {
    background: var(--white);
    padding: 25px 15px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 16px;
}

/* MENU FILTERS */
.menu-filters {
    padding: 25px 15px;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 18px;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-size: 14px;
    white-space: nowrap;}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
}

/* CART & CHECKOUT */
.cart-section {
    padding: 60px 15px;
    background: var(--light);
    min-height: 60vh;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
}

.cart-items-container {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.cart-items-container h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 22px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-item-info h4 {
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 16px;
}

.item-price {    color: #666;
    font-size: 14px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.item-total {
    font-weight: bold;
    color: var(--primary);
    min-width: 70px;
    text-align: right;
    font-size: 16px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    min-width: 32px;
    min-height: 32px;
}

.btn-qty:hover {
    background: var(--primary);
    color: white;
}

.btn-remove {
    background: var(--secondary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;    border-radius: 6px;
    cursor: pointer;
    min-width: 36px;
    min-height: 36px;
}

.cart-summary {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.cart-summary h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 22px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.summary-row.total {
    border-bottom: none;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--primary);
}

.checkout-form h3 {
    margin: 25px 0 15px;
    color: var(--dark);
    font-size: 18px;
}

.checkout-form .form-group {
    margin-bottom: 15px;
}

.checkout-form label {
    display: block;    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    min-height: 48px;
}

.checkout-form textarea {
    min-height: 90px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--whatsapp);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    min-height: 52px;
}

.btn-submit:hover {
    background: #128C7E;
}

.checkout-note {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 15px;
    line-height: 1.6;
}

.cart-navigation {
    display: flex;    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cart-navigation .btn {
    flex: 1;
    text-align: center;
    min-width: 150px;
}

/* FOOTER */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 15px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 18px;
}

.footer-section p {
    margin: 8px 0;
    font-size: 14px;
}

.footer-section i {
    margin-right: 8px;
    width: 18px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* EMPTY STATES */
.empty-cart, .no-results {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i, .no-results i {
    font-size: 70px;
    color: var(--accent);
    margin-bottom: 20px;
}

.empty-cart h3, .no-results h2 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 22px;
}
.empty-cart p, .no-results p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

/* RESPONSIVE TABLETTE */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 15px;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        gap: 12px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 120px 15px 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .carousel-item {
        min-width: 260px;
    }
    
    .cart-grid {
        grid-template-columns: 1fr;
    }    
    .cart-summary {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 480px) {
    .navbar .container {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .hero {
        padding: 100px 0 50px !important;
    }
    
    .hero h1 {
        font-size: 24px !important;
        padding: 0 15px !important;
    }
    
    .hero p {
        font-size: 15px !important;
        padding: 0 15px !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .carousel-section {
        padding: 30px 0 !important;
    }
    
    .carousel-btn {        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        background: rgba(255, 107, 53, 0.9) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    }
    
    .carousel-btn i {
        font-size: 18px !important;
        color: white !important;
    }
    
    .carousel-track {
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .carousel-item {
        min-width: 100% !important;
    }
    
    .plat-card, .restaurant-card {
        margin: 10px !important;
        border-radius: 12px !important;
    }
    
    .plat-image, .restaurant-image {
        height: 220px !important;
    }
    
    .plat-info, .restaurant-info {
        padding: 15px !important;
    }
    
    .btn, .btn-small, .btn-add-cart, .btn-submit {
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }
    
    .btn:active, .btn-small:active, .btn-add-cart:active {
        transform: scale(0.95) !important;
        opacity: 0.9 !important;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card {
        padding: 20px 10px;
    }
    
    .category-card i {
        font-size: 28px;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .cart-navigation {
        flex-direction: column;
    }
    
    .cart-navigation .btn {
        width: 100%;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;        min-height: 48px;
    }
    
    .btn-add-cart {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .empty-cart, .no-results {
        padding: 40px 15px;
    }
    
    .empty-cart i, .no-results i {
        font-size: 60px;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 15px;
    }
    
    .section {
        padding: 40px 0 !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
    
    .whatsapp-float {
        width: 55px !important;
        height: 55px !important;
        font-size: 28px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .container {
        padding: 0 15px !important;    }
}

/* UTILITIES */
.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}/* ============================================
   🛒 PANIER FLOTTANT - VERSION CORRIGÉE
   ============================================ */
.floating-cart {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
    animation: none;
}

/* ✅ ICÔNE PANIER - Plus visible */
.floating-cart i {
    font-size: 32px;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ✅ BADGE DU NOMBRE D'ARTICLES */
.floating-cart .floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #27ae60;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 28px;
    height: 28px;
    border-radius: 50%;    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ✅ TEXTE "PANIER" - TOUJOURS VISIBLE */
.floating-cart .floating-cart-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    margin-top: 2px;
    display: block !important; /* ✅ Force l'affichage sur tous les navigateurs */
    text-align: center;
    line-height: 1.2;
}

/* Animation pulse */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .floating-cart {
        bottom: 100px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .floating-cart i {
        font-size: 28px;
    }
    
    .floating-cart .floating-cart-count {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }    
    /* ✅ Afficher "PANIER" même sur mobile */
    .floating-cart .floating-cart-label {
        display: block !important;
        font-size: 10px;
    }
}

/* Ajustement pour éviter conflit avec WhatsApp */
@media (max-width: 480px) {
    .floating-cart {
        bottom: 160px;
        right: 20px;
    }
}
/* ============================================
   FORCER MODE CLAIR - DÉSACTIVER DARK MODE
   ============================================ */

:root {
    color-scheme: light only !important;
}

html, body {
    background-color: #ffffff !important;
    color: #000000 !important;
    color-scheme: light only !important;
}

@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    .hero, .hero-section, .banner {
        background-color: #ff6b35 !important;
    }
    
    .auth-container, .login-container, .register-container,
    .dashboard-container, .main-container {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    div {
        background-color: transparent !important;
    }
    
    .popular-dishes, .restaurants-section, .menu-section {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    input, textarea, select, button {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
}

* {
    caret-color: #000000 !important;
}
/* ============================================
   CORRIGER IMAGES FLOUES SUR IPHONE (iOS)
   ============================================ */

img {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}

.popular-dishes img,
.dish-card img,
.restaurant-card img,
.menu-item img {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: high-quality !important;
}

@supports (-webkit-touch-callout: none) {
    img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}
/* ========================================
   STYLE CARROUSEL - STYLE FSPEEJ
   ======================================== */

/* Conteneur du carrousel */
.carousel,
.slider,
.popular-dishes {
    overflow: hidden;
    padding: 20px 0;
}

/* Images dans le carrousel */
.carousel img,
.slider img,
.popular-dishes img,
.dish-card img,
.restaurant-card img {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    min-height: 300px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ========================================
   CORRECTION SPÉCIFIQUE POUR MOBILE
   ======================================== */

/* iPhone et Android */
@media screen and (max-width: 768px) {
    .carousel img,
    .slider img,
    .popular-dishes img,
    .dish-card img,
    .restaurant-card img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
        min-height: 250px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
    
    /* Carte des plats/restaurants */
    .dish-card,
    .restaurant-card {
        margin-bottom: 20px !important;
        padding: 15px !important;
        border-radius: 15px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }
}

/* ========================================
   CORRECTION SPÉCIFIQUE POUR IPHONE/SAFARI
   ======================================== */

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .carousel img,
    .slider img {
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
}
/* ============================================
   CORRECTION FINALE - APPROCHE DIFFÉRENTE
   ============================================ */

/* Pour TOUS les navigateurs mobiles */
@media screen and (max-width: 768px) {
    
    /* Images des plats populaires */
    .popular-dishes img,
    .dish-card img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        object-fit: contain !important;
        aspect-ratio: 4/3 !important;
    }
    
    /* Images des restaurants */
    .restaurant-card img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 16/9 !important;
    }
    
    /* Carrousel principal */
    .carousel img,
    .slider img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        object-fit: contain !important;
    }
}

/* Spécifique Safari iOS */
@supports (-webkit-touch-callout: none) {
    .carousel img,
    .slider img,
    .popular-dishes img,
    .dish-card img,
    .restaurant-card img {
        width: 100%;
        height: auto;
        max-height: none;
        min-height: auto;
        -webkit-object-fit: contain;
        object-fit: contain;
    }
}
