@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-image: url("imgs/basiltomat.webp");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    background: red;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

.logo {
    font-size: 2em;
    color: #fff;
    user-select: none;
}

.navigation {
    display: flex;
    gap: 20px;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
}

.navigation a:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

.burger {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Section des boutons de pizza */
.button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les boutons horizontalement */
    gap: 20px; /* Espacement entre les boutons */
    padding: 20px;
    margin-top: 100px; /* Pour éviter que les boutons ne se superposent au header */
}

/* Style des boutons */
.btn {
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: none;
}

/* Effet au survol des boutons */
.btn:hover {
    background-color: #c0392b;
}

/* Styles responsives pour mobile */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .burger {
        display: block;
    }

    .navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        margin: 10px 0;
    }

    /* Adaptation de la section des boutons sur mobile */
    .button {
        flex-direction: column; /* Les boutons se mettent en colonne sur mobile */
        align-items: center; /* Centrer les boutons */
        padding: 30px 15px; /* Ajuste l'espacement */
    }

    .btn {
        width: 80%; /* Les boutons prennent 80% de la largeur sur mobile */
        max-width: 400px; /* Largeur maximale pour chaque bouton */
        padding: 15px 20px; /* Ajuste la taille des boutons */
        font-size: 1rem; /* Ajuste la taille du texte */
    }
}

@media screen and (max-width: 480px) {
    .btn {
        width: 90%; /* Prend presque toute la largeur sur très petit écran */
        font-size: 0.9rem; /* Réduit encore un peu la taille du texte */
    }
}
