
:root {
    --color-braize-red: #D62828; 
    --color-dark-bg: #1A1A1A;     
    --color-dark-card: #2B2B2B;   
    --color-white: #FFFFFF;
    --color-text-light: #F0F0F0;
    --font-primary: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--color-braize-red); text-align: center; margin-bottom: 40px; }
.hidden { display: none !important; }

.btn-primary, .btn-secondary {
    padding: 10px 20px; border-radius: 5px; text-decoration: none;
    font-weight: 700; transition: all 0.3s ease; display: inline-block; cursor: pointer;
}
.btn-primary { background-color: var(--color-braize-red); color: var(--color-white); border: 2px solid var(--color-braize-red); }
.btn-primary:hover { background-color: #b02020; border-color: #b02020; }
.btn-secondary { background-color: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn-secondary:hover { background-color: var(--color-white); color: var(--color-dark-bg); }
.btn-large { font-size: 1.2rem; padding: 15px 30px; }

header {
    background-color: rgba(26, 26, 26, 0.9); padding: 10px 0;
    position: sticky; top: 0; width: 100%; z-index: 1000; backdrop-filter: blur(5px);
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.header-logo { height: 55px; width: auto; vertical-align: middle; transition: transform 0.3s ease; }
.header-logo:hover { transform: scale(1.05); }

.cart-button {
    position: relative; color: var(--color-white); cursor: pointer;
    font-size: 1.5rem; padding: 10px;
}
#cart-count {
    position: absolute; top: 0; right: 0;
    background-color: var(--color-braize-red);
    color: var(--color-white); border-radius: 50%;
    width: 20px; height: 20px; font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}


.hero {
    height: 85vh; display: flex; align-items: center; justify-content: center;
    text-align: center;
     background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('logo.jpg') no-repeat center center;

    background-size: cover; 
    background-position: center; 
     padding: 0 20px;
}



.store-status-container {
    background-color: var(--color-dark-card); 
    padding: 15px 25px;
    border-radius: 8px;
    margin-top: 30px;
    display: inline-block; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    min-width: 250px;
}


.status-message {
    font-size: 3rem; 
    font-weight: 700;
    margin-bottom: 5px;
}


.status-open {
    color: #4CAF50; 
}

.status-closed {
    color: var(--color-braize-red); 
}


.next-open-time {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 5px;
    font-weight: 700; 
}
.hero-content h1 { color: var(--color-white); margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }


#menu { padding: 80px 0; }
#menu-filtres { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filtre-btn {
    font-family: var(--font-primary); background-color: var(--color-dark-card);
    color: var(--color-white); border: 2px solid var(--color-dark-card);
    padding: 10px 20px; border-radius: 20px; cursor: pointer;
    font-weight: 700; transition: all 0.3s ease;
}
.filtre-btn:hover { background-color: var(--color-braize-red); border-color: var(--color-braize-red); }
.filtre-btn.active { background-color: var(--color-braize-red); border-color: var(--color-braize-red); }

#menu-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.menu-item {
    background-color: var(--color-dark-card); border-radius: 10px;
    overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-item:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.5); }
.menu-item-img {
    height: 200px; width: 100%; background-color: #555; 
    display: flex; align-items: center; justify-content: center;
    font-style: italic; color: #aaa; font-size: 0.9rem;
    text-align: center; padding: 10px;
    background-size: cover; background-position: center; background-repeat: no-repeat; 
}
.menu-item-content { padding: 20px; }
.menu-item-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.menu-item-header h3 { font-size: 1.4rem; color: var(--color-white); }
.menu-item-header .price { font-size: 1.5rem; font-weight: 900; color: var(--color-braize-red); white-space: nowrap; padding-left: 10px; }
.menu-item-content p { margin-bottom: 0; font-size: 0.9rem; min-height: 30px; color: var(--color-text-light); }

footer { background-color: #000; padding: 40px 0 0 0; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
.footer-info, .footer-hours { flex: 1; min-width: 300px; }
footer h3 { color: var(--color-braize-red); margin-bottom: 15px; }
footer p { font-size: 0.9rem; line-height: 1.7; color: var(--color-text-light); }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid var(--color-dark-card); }

#modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); z-index: 1001;
}
#product-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; max-width: 600px; max-height: 90vh;
    background-color: var(--color-dark-card);
    border-radius: 10px; z-index: 1002;
    display: flex; flex-direction: column;
}
.modal-content { padding: 25px; overflow-y: auto; }
.close-btn {
    background: none; border: none; color: var(--color-white);
    font-size: 2rem; cursor: pointer; position: absolute;
    top: 15px; right: 20px;
}
#modal-title { margin-bottom: 20px; color: var(--color-white); }
.modal-footer {
    padding: 20px; border-top: 1px solid #444;
    background-color: var(--color-dark-card); border-radius: 0 0 10px 10px;
}
.option-group { margin-bottom: 20px; }
.option-group h4 {
    color: var(--color-braize-red); border-bottom: 1px solid #555;
    padding-bottom: 5px; margin-bottom: 15px;
}
.option-group h4 span { font-size: 0.9rem; color: #aaa; font-weight: 400; margin-left: 10px; }
.option-item, .option-radio {
    display: block; margin-bottom: 12px; font-size: 1.1rem;
    cursor: pointer;
}
.option-item input[type="checkbox"], .option-radio input[type="radio"] {
    margin-right: 10px; transform: scale(1.2);
}

#cart-sidebar {
    position: fixed; top: 0; right: 0;
    width: 400px; height: 100%;
    background-color: var(--color-dark-card);
    z-index: 1003; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
}
#cart-sidebar.visible { transform: translateX(0); }
.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid #555;
}
.cart-header h3 { color: var(--color-white); font-size: 1.5rem; }
#cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; background-color: var(--color-dark-bg);
    padding: 15px; border-radius: 5px;
}
.cart-item-details h5 { color: var(--color-white); font-size: 1.1rem; }
.cart-item-details p { font-size: 0.8rem; color: #aaa; }
.cart-item-price { font-size: 1.1rem; color: var(--color-braize-red); font-weight: 700; }
.cart-item-remove { background: none; border: none; color: #888; cursor: pointer; font-size: 1.2rem; }
.cart-item-remove:hover { color: var(--color-braize-red); }
#cart-items .empty-cart { text-align: center; color: #888; margin-top: 30px; }
.cart-footer { padding: 20px; border-top: 1px solid #555; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
/* =========================================
   PERSONNALISATION BOUTON GLORIAFOOD
   ========================================= */

.glf-button {
    /* Force la couleur rouge de ta charte */
    background-color: var(--color-braize-red) !important; 
    color: var(--color-white) !important;
    
    /* Typographie et Forme */
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 12px 25px !important;
    border-radius: 50px !important; /* Forme de pilule */
    border: none !important;
    
    /* Positionnement */
    display: inline-block !important;
    cursor: pointer;
    text-transform: uppercase;
    
    /* Animation et Transition */
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulsation-braize 2s infinite;
}

/* Effet au survol (la souris passe dessus) */
.glf-button:hover {
    background-color: #b02020 !important; /* Un peu plus foncé */
    transform: scale(1.05); /* Grossit légèrement */
}

/* Définition de l'animation de pulsation */
@keyframes pulsation-braize {
    0% {
        /* Ombre rouge semi-transparente collée au bouton (RGB de #D62828 est 214, 40, 40) */
        box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.7);
    }
    70% {
        /* L'ombre s'écarte et devient transparente */
        box-shadow: 0 0 0 15px rgba(214, 40, 40, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(214, 40, 40, 0);
    }
}

/* =========================================
   PETIT AJUSTEMENT RESPONSIVE
   ========================================= */
/* Sur mobile, on réduit un peu le texte du bouton pour que tout rentre */
@media (max-width: 768px) {
    .glf-button {
        padding: 10px 15px !important;
        font-size: 0.8rem !important;
    }
}
/* =========================================
   STYLES SPÉCIFIQUES PIZZAS (BASES COULEURS)
   ========================================= */

/* 1. Définition de la couleur Bleu pour la Pizzeria */
:root {
    /* J'ai choisi un bleu "roi" qui ressort bien sur le fond foncé */
    --color-braize-blue: #007bff; 
}

/* 2. Style par défaut pour les articles compacts (Pizzas) */
/* Cela rétablit la bordure rouge par défaut (comme avant) */
.menu-item.menu-item-compact {
    border-left: 5px solid var(--color-braize-red);
    transition: all 0.3s ease; /* Transition douce si la couleur change */
}

/* 3. Style spécifique pour BASE TOMATE (Rouge) */
/* Pour forcer le rouge, même si le prix change au survol */
.menu-item.menu-item-compact.base-tomate {
    border-left-color: var(--color-braize-red);
}


/* 4. Style spécifique pour BASE CRÈME (Bleu) */
.menu-item.menu-item-compact.base-creme {
    /* Change la bordure de gauche en bleu */
    border-left-color: var(--color-braize-blue);
}

/* BONUS : Change aussi la couleur du PRIX en bleu pour les bases crème */
/* Cela rend le design plus cohérent */
.menu-item.menu-item-compact.base-creme .price {
    color: var(--color-braize-blue);
}