/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background: rgb(250,246,220);
    background: linear-gradient(180deg, rgba(250,246,220,1) 0%, rgba(250,246,220,1) 5%, rgba(255,255,255,1) 100%);
}

/* En-tête */
/* Style du header personnalisé */

.custom-header p{
    font-family: "Fuzzy Bubbles", sans-serif;
    font-size: 4em;
    color: #0EA5B7;
    font-weight: bold;
    text-align: center;
}

/* Style pour les titres H1 */
h1 {
    font-family: 'Mr Dafoe', cursive; /* Utilisation de la nouvelle police Pacifico */
    font-weight: 100;
    font-size: 10em; /* Ajuster la taille en fonction du design */
    color: #000000; /* Couleur principale du texte */
    text-align: center; /* Centrer le texte si souhaité */
    position: relative;
    text-shadow: 6px 6px #ff7a00;
    z-index: 1;
}

#backToTop {
    position: fixed;
    bottom: 30px; /* Positionné en bas de l'écran */
    right: 30px; /* Positionné à droite de l'écran */
    background-color: #ff9a3d; /* Couleur du bouton */
    color: white;
    border: none;
    padding: 15px 15px;
    font-size: 2em;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    z-index: 1000;/* Positionne le bouton devant les autres éléments */
}

#backToTop:hover {
    background-color: #d67329;
}


.button-container {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.text-bouton{
    font-family: 'Fuzzy Bubbles', sans-serif, cursive; /* Utilisation de la nouvelle police Pacifico */
    font-weight: 400;
    font-size: 5em; /* Ajuster la taille en fonction du design */
    color: #000000; /* Couleur principale du texte */
    text-align: center; /* Centrer le texte si souhaité */
    position: relative;
    margin: 5px 0;
    /*text-shadow: 6px 6px #ff7a00;*/
}

.tab-button {
    background-color: #ff9a3d;
    color: white;
    border: none;
    padding: 10px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    flex-grow: 1; /* Les boutons occupent une largeur égale */
    text-align: center;
    font-size: 0.4em;
}


.tab-button:hover {
    background-color: #F9BC6B;
}

.tab-button.active {
    background-color: #d67329;
}

canvas{
    width: 50%;
}

#products {
    padding: 20px;
    text-align: center;
}

.product-category {
    display: none; /* Les autres catégories sont cachées par défaut */
}

/* Section Produits */
#produits {
    padding: 20px;
}

#produits h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}

/* Grille pour les produits */
.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Colonnes flexibles */
    gap: 20px; /* Espace entre les produits */
    max-width: 1200px; /* Largeur maximale de la grille */
    margin: 0 auto; /* Centre la grille */
}

.produit {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.produit img {
    width: 100%; /* L'image occupe toute la largeur du conteneur */
    height: 200px; /* Hauteur fixe pour uniformiser les tailles */
    object-fit: cover; /* Recadre l'image pour qu'elle remplisse l'espace */
    border-radius: 5px; /* Coins arrondis pour un look uniforme */
}

.produit h3 {
    color: #333;
    font-size: 1.5em;
    margin: 10px 0;
}

.produit .prix {
    color: #e76f51;
    font-weight: bold;
    font-size: 1.2em;
}

/* Section À propos */
#about {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
}

/* Section Contact */
#contact {
    color: #0EA5B7;
    font-weight: bold;
    padding: 20px;
    /*background-color: #fefefe;*/
    display: flex;
    justify-content: center;
}

ul.contacts {
    list-style-type: none;
    padding: 0;
}
ul.contacts li {
    margin: 15px 0;
    padding-left: 60px;
    background:  no-repeat left center;
    background-size: 50px 50px;
}

#contact p{
    font-family: "Fuzzy Bubbles", sans-serif;
    font-size: 2em;
}


a {
    color: inherit; /* blue colors for links too */
    text-decoration: inherit; /* no underline */
  }

#contact div{
    text-align: left;
}


/* Pied de page */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
}

@keyframes fadeEffect {
    from {opacity: .4}
    to {opacity: 1}
}

@media only screen and (max-width: 720px) {
    .custom-header p{
        font-family: "Fuzzy Bubbles", sans-serif;
        font-size: 2em;
        color: #0EA5B7;
        font-weight: bold;
        text-align: center;
    }

    /* Make buttons stack vertically and fill the width */
    .button-container {
        flex-direction: column;
    }
    
    .tab-button {
        margin: 5px 0; /* Stack buttons with a little spacing */
        font-size: 1.2em; /* Increase font size for readability */
        padding: 15px; /* Adjust padding for easier tap */
    }

    /* Reduce the size of text */
    h1 {
        font-size: 4em; /* Make the main heading smaller on mobile */
        text-shadow: 2px 2px #ff7a00;
    }

    .text-bouton {
        font-size: 1.5em; /* Adjust button text size */
    }

    canvas{
        width: 100%;
    }

    ul.contacts li {
        margin: 20px 0;
        background-size: 40px 40px;
    }

    #contact p{
        font-size: 1.5em;
    }


    /* Footer adjustments */
    footer {
        font-size: 0.8em;
        padding: 15px;
    }
}