:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #b3b3b3;
    --accent-color: #ff5e00; /* Rappel du feu de bois */
    --mexican-white: #f5f5f5;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- HEADER & HERO --- */
header {

    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../img/frise_entete.jpg') no-repeat center center/cover;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 4px solid var(--mexican-white);
    position: relative;
}

/* Motif Calavera stylisé en CSS/FontAwesome */
.logo-icon {
    font-size: 3.5rem;
    color: var(--mexican-white);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mexican-white);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.infos {
    font-size: 0.6rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* --- ENGAGEMENTS --- */
.badges-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.badge {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge i {
    color: var(--accent-color);
}

.badge a {
    color: var(--text-color);
    text-decoration: none;
}

/* --- MAIN CONTENT --- */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 50px;
}

h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h2::before, h2::after {
    content: "\f54c"; /* Code FontAwesome pour la tête de mort */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--mexican-white);
}

/* --- CARTE / MENU --- */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pizza-item {
    background: var(--card-bg);
    border-left: 4px solid var(--mexican-white);
    padding: 20px;
    border-radius: 4px;
    /*display: flex;*/
    justify-content: space-between;
    /*align-items: flex-start;*/
    transition: transform 0.2s;
}

.pizza-item:hover {
    transform: translateY(-2px);
}

.pizza-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--mexican-white);
}

.TypePizza {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--mexican-white);
}

.pizza-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

.pizza-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.2rem;
    white-space: nowrap;
    margin-left: 15px;
}

/* --- INFOS & CONTACT --- */
.info-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.info-item p {
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: var(--mexican-white);
    color: var(--bg-color);
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 15px;
    transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--text-color);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mexican-pattern {
    font-size: 1.2rem;
    letter-spacing: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.2);
}

/* --- RESPONSIVE SMARTPHONE --- */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .logo-icon {
        font-size: 2.8rem;
    }
    .badge {
        width: 100%;
        justify-content: center;
    }
    .pizza-item {
        padding: 15px;
    }
    .pizza-details h3 {
        font-size: 1.1rem;
    }
}

/*********************************/
/* Style pour la pizza du moment */
/*********************************/


/* L'arrière-plan grisé et semi-transparent */
.modal-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Pour passer au-dessus de tout le site */
}

/* La carte de la pizza */
.modal-box-card {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    animation: fadeIn 0.3s ease-out;
}

/* Image de la pizza */
.pizza-modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Recadre joliment l'image sans la déformer */
}

/* Zone de texte */
.pizza-modal-content {
    padding: 25px;
    text-align: center;
}

.pizza-modal-badge {
    background-color: #e67e22;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pizza-modal-content h2 {
    margin: 15px 0 5px 0;
    color: #333;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pizza-name {
    margin: 0 0 15px 0;
    color: #c0392b; /* Rouge pizza */
    font-size: 1.8rem;
    font-weight: bold;
}

.pizza-ingredients {
    color: #242424;
    line-height: 1.5;
    font-size: 1rem;
    margin-bottom: 20px;
}

.pizza-prix {
    color: #555;
    line-height: 1.5;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Bouton d'action/fermeture */
.modal-box-btn {
    background-color: #27ae60; /* Vert appétissant */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-box-btn:hover {
    background-color: #219653;
}

/* Bouton de fermeture "X" en haut à droite */
.modal-box-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.modal-box-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-150px); }
    to { opacity: 1; transform: translateY(0); }
}