/* ========================================
   WIDGET WHATSAPP
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background-color: #128C7E;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --primary-color: #FF0000;
    --primary-dark: #CC0000;
    --primary-light: #FF3333;
    --secondary-color: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--secondary-color);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.logo-text {
    display: none; /* Masqué car le logo contient déjà le texte */
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-cart {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 0.5rem;
}

.btn-cart:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: -5px;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading:hover {
    transform: none;
}

.btn-block {
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/Fond_Hero.png') center/cover;
    background-position: center center;
    opacity: 1;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
    padding: 2rem 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.highlight {
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.menu-section,
.formules-section,
.contact-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   MAIN CATEGORIES
   ======================================== */
.main-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    margin-top: 4rem !important; /* Espacement avec le hero sur desktop - !important pour forcer */
    padding-top: 2rem; /* Padding supplémentaire pour être sûr */
}

/* Sur mobile, pas de marge supérieure */
@media (max-width: 768px) {
    .main-categories {
        margin-top: 1.5rem !important;
        padding-top: 0;
    }
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.category-btn i {
    font-size: 1.5rem;
}

.category-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.15);
}

.category-btn.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

/* ========================================
   MENU FILTERS
   ======================================== */
.menu-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

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

/* ========================================
   MENU GRID
   ======================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* En-tête de catégorie */
.category-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-header:first-child {
    margin-top: 0;
}

.category-header i {
    font-size: 2rem;
}

.category-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.pizza-card {
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pizza-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pizza-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.pizza-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.pizza-card:hover .pizza-image img {
    transform: scale(1.05);
}

.pizza-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pizza-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pizza-header {
    margin-bottom: 1rem;
}

.pizza-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icône de catégorie */
.category-icon {
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Badges spéciaux */
.special-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.special-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.badge-spicy {
    background: rgba(255, 69, 0, 0.15);
    color: #FF4500;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.badge-spicy i {
    color: #FF4500;
}

.badge-premium {
    background: rgba(255, 215, 0, 0.15);
    color: #DAA520;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-premium i {
    color: #FFD700;
}

.badge-unavailable {
    background: rgba(128, 128, 128, 0.2);
    color: #666;
    border: 1px solid rgba(128, 128, 128, 0.4);
    font-weight: 600;
}

.badge-unavailable i {
    color: #999;
}

/* Carte produit indisponible */
.item-unavailable {
    opacity: 0.6;
    position: relative;
}

.item-unavailable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.item-unavailable .pizza-image img {
    filter: grayscale(50%);
}

.pizza-badge.badge-unavailable {
    background: rgba(128, 128, 128, 0.9);
    color: white;
    font-weight: 600;
}

/* En-têtes de catégorie */
.category-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0 1rem 0;
    margin-top: 2rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-header:first-child {
    margin-top: 0;
}

.category-header i {
    font-size: 2rem;
}

.category-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.pizza-ingredients {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pizza-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.pizza-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pizza-actions {
    display: flex;
    gap: 0.75rem;
}

.pizza-actions .btn {
    flex: 1;
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
}

.pizza-actions .btn-block {
    width: 100%;
}

.pizza-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.qty-label {
    font-weight: 600;
    color: var(--text-dark);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    transition: var(--transition);
}

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

.qty-input {
    width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.375rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

/* ========================================
   FORMULES SECTION
   ======================================== */
.formules-section {
    background: var(--bg-light);
}

.formules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.formule-card {
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.formule-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.formule-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.formule-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.formule-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.formule-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.formule-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.formule-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.price-variant {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.promo-info {
    font-size: 0.9rem;
    padding: 0.75rem;
    background: rgba(255, 0, 0, 0.05);
    border-radius: var(--radius-sm);
}

.formule-details {
    text-align: left;
    margin-bottom: 1.5rem;
}

.formule-details li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.formule-details i {
    color: var(--primary-color);
}

/* Promo Modal Buttons */
.promo-option-btn:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.2);
}

.promo-option-btn:active {
    transform: translateY(-2px);
}

/* Boisson Selection Buttons */
.boisson-btn {
    padding: 20px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    position: relative; /* Pour positionner le badge */
}

.boisson-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 10;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.boisson-btn i {
    font-size: 2rem;
    color: #2196F3;
    transition: all 0.3s ease;
}

.boisson-btn:hover {
    border-color: #2196F3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.2);
}

.boisson-btn:hover i {
    transform: scale(1.1);
}

.boisson-btn.selected {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.boisson-btn.selected i {
    color: #4CAF50;
}

.boisson-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.boisson-btn:disabled:hover {
    transform: none;
    border-color: #ddd;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    z-index: 3100;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-close {
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    padding-bottom: 0; /* Pas de padding en bas car le footer scrolle avec */
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.cart-item-title {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.cart-item-remove {
    color: var(--text-light);
    font-size: 1.25rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--primary-color);
}

.cart-item-details {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 50%;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    /* Le footer est maintenant dans le scroll, pas fixe en bas */
}

/* Code Promo Section */
.promo-code-section {
    margin-bottom: 1.5rem;
}

.promo-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.promo-input-wrapper input {
    flex: 2;
    min-width: 120px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.promo-input-wrapper input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.promo-input-wrapper .btn-sm {
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

.promo-message {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: none;
}

.promo-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.promo-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.summary-row.promo-discount {
    color: #28a745;
    font-weight: 600;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* ========================================
   MODALS
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
    overflow: hidden;
}

/* Empêcher le scroll du body quand modal ouvert */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 800px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

/* ========================================
   CUSTOMIZE MODAL
   ======================================== */
.customize-section {
    margin-bottom: 2rem;
}

.customize-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.size-options,
.base-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.size-option,
.base-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.size-option:hover,
.base-option:hover {
    border-color: var(--primary-light);
}

.size-option input:checked + span,
.base-option input:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.size-option input[type="radio"]:checked ~ .size-option,
.base-option input[type="radio"]:checked ~ .base-option {
    border-color: var(--primary-color);
    background: rgba(255, 0, 0, 0.05);
}

input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(255, 0, 0, 0.05);
}

.ingredients-remove,
.ingredients-add {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ingredient-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.ingredient-checkbox:hover {
    background: rgba(255, 0, 0, 0.05);
}

.ingredient-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quantity-selector .qty-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.quantity-selector .qty-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.quantity-selector input {
    width: 80px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.modal-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ========================================
   CHECKOUT MODAL
   ======================================== */
.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.checkout-step h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.delivery-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.delivery-option {
    cursor: pointer;
}

.option-card {
    padding: 2rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.option-card:hover {
    border-color: var(--primary-light);
}

.delivery-option input:checked ~ .option-card {
    border-color: var(--primary-color);
    background: rgba(255, 0, 0, 0.05);
}

.delivery-option input:disabled ~ .option-card {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f0f0f0;
}

.delivery-option input:disabled ~ .option-card:hover {
    border-color: transparent;
}

.delivery-option input:disabled ~ .option-card i,
.delivery-option input:disabled ~ .option-card span,
.delivery-option input:disabled ~ .option-card small {
    color: #999;
}

.option-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.option-card span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-card small {
    color: var(--text-light);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.checkout-actions .btn {
    flex: 1;
}

/* ========================================
   ORDER SUMMARY
   ======================================== */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.summary-section h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-section h5 i {
    color: var(--primary-color);
}

.summary-total {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

/* ========================================
   CONFIRMATION
   ======================================== */
.text-center {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.confirmation-details {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    /* Barre de catégories en position fixed sur mobile pour suivre tout le scroll */
    .main-categories {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 50;
        background: rgba(0, 0, 0, 0.85); /* Fond noir semi-transparent pour voir un peu le contenu derrière */
        backdrop-filter: blur(8px); /* Flou pour l'effet moderne */
        padding: 0.5rem 1rem; /* Plus d'espace à gauche ET à droite */
        padding-left: 1.25rem; /* Encore plus d'espace à gauche pour voir Pizzas */
        padding-right: 1rem;
        margin-bottom: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        gap: 0.5rem;
        width: 100%;
        display: none; /* Caché par défaut, affiché par JavaScript uniquement après scroll */
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .main-categories::-webkit-scrollbar {
        display: none;
    }
    
    .category-btn {
        flex-shrink: 0;
        padding: 0.4rem 0.6rem; /* Encore plus petit */
        min-width: 70px; /* Largeur fixe pour tous les boutons */
        width: 70px; /* Largeur fixe */
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem; /* Moins d'espace entre icône et texte */
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: white;
        border-radius: 6px; /* Plus petit */
        font-size: 0.75rem; /* Plus petit */
    }
    
    /* Premier bouton avec marge à gauche */
    .category-btn:first-child {
        margin-left: 1rem; /* Plus d'espace pour ne pas être coupé par le bord */
    }
    
    .category-btn.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }
    
    .category-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    
    /* Espace après le dernier élément pour qu'il ne soit pas coupé */
    .main-categories::after {
        content: '';
        display: block;
        min-width: 1.5rem; /* Plus d'espace pour voir "Pizzas" complètement */
        flex-shrink: 0;
    }
    
    /* Espace AVANT le premier élément aussi */
    .main-categories::before {
        content: '';
        display: block;
        min-width: 4.75rem; /* Plus d'espace à gauche pour ne pas couper "Pizzas" */
        flex-shrink: 0;
    }
    
    .category-btn i {
        font-size: 0.9rem; /* Icône encore plus petite */
    }
    
    .category-btn span {
        font-size: 0.7rem; /* Label encore plus petit */
    }
    
    /* Ajouter du padding-top aux sections menu pour compenser les filtres fixed */
    .menu-section {
        padding-top: 80px; /* Hauteur des filtres + marge */
    }
    
    /* Le premier menu-section (pizzas) n'a pas besoin de padding supplémentaire */
    .menu-section#menu {
        padding-top: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px); /* Hauteur complète moins le header */
        background: var(--secondary-color);
        flex-direction: column;
        padding: 2rem;
        padding-bottom: 4rem; /* Espace en bas pour scroll complet */
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        overflow-y: auto; /* Permettre le scroll vertical */
        -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        min-height: 80vh;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .formules-grid {
        grid-template-columns: 1fr;
    }

    .formule-card.featured {
        transform: scale(1);
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .modal-content {
        max-width: 95%;
    }

    .delivery-options {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pizza-actions {
        flex-direction: column;
    }

    .checkout-actions {
        flex-direction: column;
    }
    
    /* FIX MODAL CHECKOUT SUR MOBILE */
    .modal-content {
        max-height: 95vh; /* Plus de hauteur sur mobile */
        margin: 0; /* Enlever les marges */
    }
    
    .modal-body {
        overflow-y: auto; /* Force le scroll */
        -webkit-overflow-scrolling: touch; /* Scroll fluide iOS */
        padding-bottom: 1rem; /* Espace en bas */
    }
    
    .modal-footer {
        position: sticky; /* Footer toujours visible en bas */
        bottom: 0;
        z-index: 10;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1); /* Ombre pour voir qu'il y a un footer */
    }
    
    /* Option cards plus petites sur mobile */
    .option-card {
        padding: 1.5rem 1rem;
    }
    
    .option-card i {
        font-size: 2rem;
    }
    
    .option-card span {
        font-size: 1rem;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Scrollbar personnalisé */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   FORMULE MODALS - Grilles de sélection
   ======================================== */
.formule-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.formule-item-option {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.formule-item-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.formule-item-option input[type="radio"] {
    display: none;
}

.formule-item-option input[type="radio"]:checked + .formule-item-content {
    color: var(--primary-color);
    font-weight: bold;
}

.formule-item-option input[type="radio"]:checked ~ * {
    border-color: var(--primary-color);
}

.formule-item-option.selected {
    border-color: var(--primary-color);
    background: #fff3cd;
}

.formule-item-content {
    display: block;
}

.formule-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.formule-item-note {
    font-size: 0.8rem;
    color: #666;
}

.boissons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.boissons-grid .ingredient-checkbox {
    margin: 0;
    position: relative;
}

.boisson-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

