/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    margin: 0 auto;
    max-width: 1940px;
}

/* Header DESKTOP */
.header {
    background: #fff;
    padding: 12px 20px;
    /* border-bottom: 1px solid #e6e6e6; */
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Menu hamburger */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.hamburger-menu:hover {
    background-color: #f6f6f6;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #000;
    margin: 2px 0;
    border-radius: 1px;
}

/* Logo */
.logo {
    font-size: 35px;
    font-weight: 900;
    text-decoration: none;
    color: #000;
    letter-spacing: 3.5px;
    flex-shrink: 0;
    margin-right: 10px;
    font-family: "Arial Black", Arial, sans-serif;
}

.logo-text .eats {
    color: #333;
    font-weight: 500;
}

.logo-text .promo {
    color: #333;
    font-weight: 900;
}

/* Affichage de l'adresse avec GPS */
.address-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f6f6f6;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.address-display:hover {
    background: #eeeeee;
}

.location-icon {
    color: #666;
    font-size: 14px;
}

.address-value {
    font-size: 13px;
    color: #000;
    font-weight: 500;
    white-space: nowrap;
}

.gps-icon {
    padding: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.gps-icon:hover {
    background: #f6f6f6;
}

.location-text {
    font-size: 10px;
    display: inline-block;
    transition: opacity 0.3s ease;
  
}

/* Barre de recherche */
.search-section {
    flex: 1;
    margin-right: 15px;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 18px 12px 45px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: #f6f6f6;
    color: #000;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    background: #eeeeee;
}

.search-input::placeholder {
    color: #6b6b6b;
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b6b6b;
    font-size: 14px;
}

/* Sélecteur de langue */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Boutons communs (optimisé) */
.language-btn, .language-dropdown, .city-option, .confirm-btn {
    padding: 8px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.language-btn:hover, .language-dropdown:hover {
    background: #f6f6f6;
}

.language-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.language-dropdown {
    display: none;
}

/* Éléments cachés sur desktop */
.header-top, .header-first-line {
    display: none;
}

/* Modaux communs (optimisé) */
.city-modal, .language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.city-modal-content, .language-modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.city-modal-header, .language-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.city-modal-header h3, .language-modal-header h3 {
    margin: 0;
    font-size: 15px;
    /* font-weight: 600; */
    color: #666;
}

/* Sélection de ville (optimisé) */
.city-selection {
    /* padding: 20px; */
}

.city-selection h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.city-options, .language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

/* Options communes (OPTIMISÉ - combiné city-option et language-option) */
.city-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    position: relative;
}


.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px;
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    position: relative;
}



.city-option:hover, .language-option:hover {
    border-color: #000;
    background: #f8f9fa;
}

.city-option.selected, .language-option.active {
    border-color: #000;
    background: #fff;
     color: #000;
     
}

.language-option.active {
    background-color: #ffbdbd;
    border-color: #dd6a6a;
}

.city-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.confirm-btn {
    width: 100%;
    padding: 15px;
    background: #dd6a6a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    /* font-weight: 600; */
}

.confirm-btn:hover {
    background: #333;
}

.confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Boutons de fermeture communs (optimisé) */
.close-btn, .language-modal .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-modal .close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Éléments spécifiques au modal de langue */
.language-flag {
    font-size: 18px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.language-info {
    flex: 1;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.language-code {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.language-check {
    color: #000;
    font-size: 18px;
}

/* Boutons de langue (optimisé) */
.language-btn-modal, .language-btn-mobile {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.language-btn-modal:hover, .language-btn-mobile:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.language-btn-mobile {
    padding: 6px 10px;
    font-size: 12px;
}

/* Animation pour les modaux */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Font Awesome */
.fa-solid, .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
}





/* Responsive MOBILE */
@media (max-width: 768px) {
    .header {
        padding: 15px 15px 0px;
        flex-direction: column;
        gap: 1px;
        align-items: stretch;
    }
    
    .address-display {
        display: none;
    }
    
    .gps-icon {
        border: 1px solid #e6e6e6 !important;
        border-radius: 8px !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 14px !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 6px 20px !important;
        text-transform: uppercase;
    }
    
    .location-text {
        font-size: 12px;
        line-height: 1.1;
          display:none;
    }
    
    /* Cacher les éléments desktop */
    .header > .hamburger-menu,
    .header > .logo,
    .header > .search-section,
    .header > .language-selector {
        display: none;
    }
    
    /* Afficher les éléments mobile */
    .header-top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        order: 1;
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .header-first-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-left: 5px;
    }
    
    .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .header-top .hamburger-menu {
        display: none;
        flex-direction: column;
        cursor: pointer;
        padding: 6px;
        border-radius: 50%;
        transition: background-color 0.2s;
        flex-shrink: 0;
    }
    
    .header-top .hamburger-line {
        width: 18px;
        height: 2px;
        background-color: #000;
        margin: 2px 0;
        border-radius: 1px;
    }
    
    .header-top .logo {
        display: block;
        font-size: 22px;
        font-weight: 900;
        text-decoration: none;
        color: #000;
        letter-spacing: 1.0px;
        flex-shrink: 0;
        font-family: "Arial Black", Arial, sans-serif;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .header-top .language-selector {
        display: block;
        flex-shrink: 0;
    }
    
    .header-top .language-btn {
        display: none;
    }
    
    .header-top .language-dropdown {
        display: block;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .header .search-section {
        display: block;
        margin-right: 0;
        width: 100%;
        order: 2;
    }
    
    .search-input {
        font-size: 14px;
        padding: 8px 16px 8px 40px;
    }
}  

/* ÉPISODE 2 - Styles pour produit.php */

/* Menu horizontal */
.menu-section {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-nav {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

.menu-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    margin-left: 10px;
}

.menu-scroll::-webkit-scrollbar {
    display: none;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-item:hover {
    color: #000;
}

.menu-item.active {
    color: #000;
    border-bottom-color: #000;
    font-weight: 600;
}

.menu-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.menu-arrow:hover {
    background: #f6f6f6;
    border-color: #d0d0d0;
}

.menu-arrow.left {
    left: 10px;
}

.menu-arrow.right {
    right: 10px;
}

.menu-arrow.disabled {
    display: none !important;
}

/* Section des catégories */
.categories-section {
    background: #fff;
    padding: 5px 0;
    /* border-bottom: 1px solid #e6e6e6; */
}

.categories-nav {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.categories-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    margin-left: 2px;
    margin-right: 2px;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-arrow:hover {
    background: #f6f6f6;
    border-color: #d0d0d0;
}

.nav-arrow.left {
    left: 10px;
}

.nav-arrow.right {
    right: 10px;
    margin-right: 20px;
}

.nav-arrow.disabled {
    display: none !important;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 12px;
}

.category-item:hover {
    transform: translateY(-2px);
    
}

















/* Conteneur de l'icône - cercle parfait */
.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 8px; */
    overflow: hidden;
    background: #fff;
     border: 2px solid #f0f0f0; 
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease;
}

/* Image dans le cercle */
.category-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Effet hover sur le cercle */
/* Effet hover sur le cercle µµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµµ*/
.category-item:hover .category-icon {
    border-width: 3px;        /* augmente l'épaisseur */
    border-style: solid;      /* nécessaire si ce n'est pas défini ailleurs */
    border-color: #ff6363;       /* couleur de la bordure */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}


/* Effet hover sur l'image */
.category-item:hover .category-icon-img {
    transform: scale(1.12);
    
}

/* Nom de la catégorie */
.category-name {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: #666;
    white-space: nowrap;
    margin-top: 4px;
    transition: color 0.3s ease;
    letter-spacing: 1.0px;
}

/* Effet hover sur le nom */
.category-item:hover .category-name {
    color: #000;
    font-weight: 600;
}

/* Variante avec couleurs de fond pour certaines catégories */
.category-item[data-category="fast-food"] .category-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.category-item[data-category="pizza"] .category-icon {
    background: linear-gradient(135deg, #4ecdc4, #6ee5dd);
}

.category-item[data-category="burgers"] .category-icon {
    background: linear-gradient(135deg, #ffd93d, #ffe066);
}

.category-item[data-category="dessert"] .category-icon {
    background: linear-gradient(135deg, #ff9ff3, #ffb3f7);
}

.category-item[data-category="sushi"] .category-icon {
    background: linear-gradient(135deg, #74b9ff, #81c3ff);
}

/* Section carrousel */
.carousel-section {
    margin-bottom: 10px;
    margin-left: 15px;
}

/* Header avec titre et bouton */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    padding-right: 40px;
     text-transform: capitalize;
             margin-top: 10px;
}

.carousel-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.show-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.show-all-btn:hover {
    background-color: #f6f6f6;
}

/* Container du carrousel */
.carousel-container {
    position: relative;
}

/* Flèches de navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.carousel-nav:hover {
    background: rgba(240, 240, 240, 0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-container .carousel-nav.disabled {
    display: none !important;
    visibility: hidden !important;
}

.carousel-nav.left {
    left: 35px;
}

.carousel-nav.right {
    right: 35px;
}

.carousel-nav i {
    color: #000;
    font-size: 16px;
}

/* Scroll container */
.carousel-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-scroll::-webkit-scrollbar {
    display: none;
}

/* Item du carrousel */
.carousel-item {
    flex-shrink: 0;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    transition: transform 0.2s;
    position: relative;
}

.carousel-item:hover {
    transform: translateY(-2px);
}

/* Contenu de l'item */
.item-content {
    position: relative;
}

/* Image */
.item-image {
    width: 100%;
       height: 110px;
    border-radius: 8px;
    /* object-fit: cover; */
    display: block;
}

/* Nom de l'entreprise */
.company-name {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Offre */
.offer-text {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
    overflow: hidden;

    -webkit-box-orient: vertical;
    margin-left: 5px;
     white-space: nowrap;       /* le texte ne passe pas à la ligne */
    overflow: hidden;          /* cache ce qui dépasse */
}

/* Responsive MOBILE */
@media (max-width: 768px) {
    .menu-arrow {
        display: none;
    }
    
    .menu-scroll {
        padding-left: 1px;
        padding-right: 15px;
    }
    
    .menu-item {
        padding: 10px 15px;
    }
    
    .nav-arrow {
        display: none;
    }
    
    .categories-scroll {
        gap: 13px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* padding-left: 15px; */
        padding-right: 15px;
    }
    
    .category-item {
        scroll-snap-align: start;
                max-width: 70px;
    }
    
    .category-icon {
        width: 46px;
        height: 46px;
        border-width: 1.5px;
    }
    
    .category-icon-img {
        width: 54px;
        height: 54px;
        padding: 6px;
    }
    
        .category-name {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.0px;
    }
    
    .carousel-header {
        padding-right: 4px;
                margin-top: 0px;
    }

    .carousel-title {
    font-size: 22px;
        MARGIN-BOTTOM: 10px;
          MARGIN-top: 10px;
        
        
    }

    .carousel-nav.left {
        display: none !important;
    }
    
    .carousel-nav.right {
        display: none !important;
    }

    .carousel-item {
        width: 280px;
    }



    .company-name {
        font-size: 14px;
        max-width: 140px;
        margin-left: 5px;
                font-weight: 800;
    }

    .offer-text {
        font-size: 12px;
        max-width: 300px;
        margin-left: 5px;
    }

    .carousel-scroll {
        gap: 15px;
    }
}

/* Styles desktop */
@media (min-width: 769px) {
    .carousel-nav {
        display: flex;
        background: #F3F3F3;
    }
    
    .carousel-nav.disabled {
        display: none !important;
    }
    
    .carousel-item {
        width: 280px;
    }

    .item-image {
        /* width: 307px; */
        /* height: 130px; */
        /* transform: scale(1.3); */
    }

    .company-name {
        font-size: 16px;
        max-width: 180px;
        margin-left: 5px;
                font-weight: 800;
    }

    /* .offer-text { */
        /* font-size: 12px; */
        /* max-width: 180px; */
        /* margin-left: 5px; */
    /* } */
}

/* ÉPISODE 3 - Styles pour pub.php */

/* Desktop - 3 cadres avec espaces et coins arrondis */
.promo-container {
    width: 100%;
    margin: 0;
    display: flex;
    gap: 8px;
    padding: 0 15px;
    min-width: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.promo-card {
    background: linear-gradient(135deg, var(--bg-color), var(--bg-color-dark));
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    flex: 1;
    min-width: 0;
}

.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Variantes de couleurs */
.promo-card.orange {
    --bg-color: #ff8c00;
    --bg-color-dark: #ff7700;
}

.promo-card.blue {
    --bg-color: #4a90e2;
    --bg-color-dark: #357abd;
}

.promo-card.green {
    --bg-color: #00c851;
    --bg-color-dark: #00a844;
}

.promo-header {
    margin-bottom: 15px;
}

.promo-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.promo-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.promo-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
}

.promo-text {
    flex: 1;
    min-width: 0;
}

.promo-image {
    width: 180px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    margin-left: 15px;
    flex-shrink: 0;
}

.promo-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.promo-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.promo-btn .fas {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.promo-btn:hover .fas {
    transform: translateX(3px);
}

.promo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 16px;
    color: white;
    opacity: 0.8;
}

.promo-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.delivery-info {
    font-size: 11px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Animation ripple */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive - Réduction progressive */
@media (max-width: 1200px) {
    .promo-title {
        font-size: 15px;
    }
    .promo-subtitle {
        font-size: 12px;
    }
    .promo-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 900px) {
    .promo-container {
        gap: 10px;
        padding: 0 10px;
    }
    .promo-title {
        font-size: 14px;
    }
    .promo-subtitle {
        font-size: 11px;
    }
    .promo-image {
        width: 50px;
        height: 50px;
    }
    .promo-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Mobile - Un seul cadre avec rotation automatique - HAUTEUR 250PX */
@media (max-width: 768px) {
    .promo-container {
        display: block;
        position: relative;
        width: calc(100% - 40px);
        height: 250px;
        overflow: hidden;
        margin: 20px auto 0;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .promo-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.5s ease-in-out;
        min-height: 200px;
        padding: 18px;
        border-radius: 20px;
    }
    
    .promo-card.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .promo-title {
        font-size: 15px;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    
    .promo-subtitle {
        font-size: 12px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .promo-content {
        margin-bottom: 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .promo-image {
        width: 180px;
        height: 70px;
        margin-left: 10px;
    }
    
    .promo-btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 16px;
    }
    
    .delivery-info {
        font-size: 10px;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .promo-container {
        width: calc(100% - 20px);
        height: 200px;
        margin-bottom: 20px;
    }
    
    .promo-card {
        padding: 16px;
        min-height: 200px;
    }
    
    .promo-title {
        font-size: 14px;
    }
    
    .promo-subtitle {
        font-size: 11px;
    }
    

}

/* ÉPISODE 4 - Styles pour menu.php */

/* Menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

/* Container principal du menu */
.menu-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 10000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.menu-container.menu-open {
    left: 0;
}

/* Header du menu */
.menu-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
}

/* Logo du menu */
.menu-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.menu-logo .menu-eats {
    color: white;
    margin-bottom: 2px;
}

.menu-logo .menu-promo {
    color: #00D4AA;
    font-size: 12px;
}

/* Bouton de fermeture */
.menu-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-close:hover {
    background-color: #f0f0f0;
}

/* Section authentification */
.menu-auth-section {
    padding: 20px;
    background-color: white;
}

.menu-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Boutons du menu */
.menu-btn {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    display: block;
}

.menu-btn-register {
    background-color: #000;
    color: white;
    border: none;
}

.menu-btn-register:hover {
    background-color: #333;
    text-decoration: none;
    color: white;
}

.menu-btn-login {
    background-color: #e1e1e1;
    color: #000;
    border: none;
}

.menu-btn-login:hover {
    background-color: #e8e8e8;
    text-decoration: none;
    color: #000;
}

/* Items du menu principal */
.menu-items {
    padding: 0;
    background-color: white;
}

.menu-items {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.menu-items:hover {
    background-color: #f8f8f8;
    text-decoration: none;
    color: #000;
}

/* Section fonctionnalités */
.menu-features-section {
    padding: 0;
    background-color: white;
}

.menu-features-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 16px 20px 8px 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-feature-item {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.menu-feature-item:hover {
    background-color: #f8f8f8;
    text-decoration: none;
    color: #000;
}

.menu-feature-item:last-child {
    border-bottom: 8px solid #f5f5f5;
}

/* Footer du menu */
.menu-footer {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 100px;
    padding: 20px;
    background-color: white;
}

/* Promotion de l'app */
.menu-app-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.menu-app-icon {
    width: 80px;
    height: 40px;
    background-color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.menu-eats {
    color: white;
}

.menu-app-text {
    flex: 1;
}

.menu-app-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.menu-app-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Boutons de l'app */
.menu-app-buttons {
    display: flex;
    gap: 8px;
}

.menu-app-btn {
    flex: 1;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.menu-app-btn:hover {
    background-color: #e8e8e8;
    text-decoration: none;
    color: #000;
}

/* Footer apps */
.footer-apps {
    display: flex;
    gap: 8px;
}

.google-play-btnss {
    width: 165px !important;
    height: 50px !important;
}

.google-play-btnss img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Content du menu */
.menu-content {
    flex: 1;
    overflow-y: auto;
}

/* Responsive - Tablette */
@media (max-width: 768px) {
    .google-play-btnss {
        width: 125px !important;
        height: 50px !important;
        margin-top: -5px !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .menu-container {
        display: none;
        max-width: none;
    }
    
    .menu-header {
        display: flex;
        justify-content: right;
        align-items: center;
        padding: 16px 20px;
        background-color: white;
    }
    
    .menu-auth-section {
        padding: 16px 20px;
    }
    
    .menu-items {
        padding: 10px 10px;
        font-size: 15px;
    }
    
    .menu-feature-item {
        padding: 14px 20px;
        font-size: 15px;
    }
}









.footer-language {
    position: relative;
}

.language-select {
    background: transparent;
    border: none;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}





















/* etape_4*/




.image-container {
    position: relative;
    overflow: hidden;
            border-radius: 8px;
}

.offer-type-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    width: auto;                 /* ne pas prendre toute la largeur */
    max-width: calc(100% - 10px);/* rester dans l'image avec marge 5px */
    white-space: nowrap;         /* éviter le retour à la ligne */
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-type {
    position: absolute;
    top: 8px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    width: auto;                 /* ne pas prendre toute la largeur */
    max-width: calc(100% - 10px);/* rester dans l'image avec marge 5px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-type i,
.offer-type-badge i {
    font-size: 14px;
}
.offer-details {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 11px;
    color: #666;
    width:200px !important;
}

.rating {
    color: #ffc107;
    font-weight: 500;
}

.separator {
    color: #ccc;
    font-weight: bold;
}

.delivery-status {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 4px;
    font-size: 11px;
}

.delivery-icon-img {
    width: 22px;
    height: 18px;
    // opacity: 0.85;
}

.delivery-free {
    color: #04a708;
    FONT-WEIGHT: 700;
}

.delivery-paid {
color: #ff4646;
    FONT-WEIGHT: 700;
}

.delivery-none {
color: #100f0f;
    opacity: 0.4;
}

.price {
    font-weight: bold;
    color: #000;
    font-size: 11px;
}

.no-offers {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-offers h3 {
    margin-bottom: 10px;
    color: #333;
}
.company-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.favorite-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;      /* largeur fixe */
    height: 22px;     /* hauteur fixe */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.heart-icon {
    width: 22px;
    height: 22px;
}
.heart-icon path {
    fill: #cbc6c6;  /* cœur vide par défaut */
  /*   stroke: #999999;     /* contour gris */
    stroke-width: 1.6;
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.favorite-heart.active .heart-icon path {
    fill: #e53935;       /* cœur rempli rouge */
       /* contour assorti */
}
.favorite-heart.active {
    color: #70000;   /* actif: rouge */
}
.favorite-heart:focus {
    outline: none;
}

/* Styles pour les offres à venir */
.upcoming-offer {
    position: relative;
}

.upcoming-offer .item-image {
    filter: brightness(0.4) grayscale(0.3);
    transition: filter 0.3s ease;
}

.soon-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.rating-msg {

    color: #f5b301;
    font-weight: bolder;
        margin-left: 5px;
}
}