/* Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #262626;
    color: #fff;
     scroll-behavior: smooth;
}
/* Cible le premier <h1> de chaque page */
body h1:first-of-type {
    padding-top: 5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
}

/* Conteneur principal pour chaque section */
.section-container {
    max-width: 1200px; /* Limite la largeur pour éviter que les éléments soient trop étendus */
    margin: 0 auto; /* Centre le contenu horizontalement */
    padding: 2rem; /* Ajoute un espacement autour du contenu */
    display: flex;
    flex-direction: column; /* Les éléments s'empilent (colonne) */
    gap: 1.5rem; /* Espacement entre les éléments */
}

/* Limiter la taille du logo */
.site-logo {
    max-height: 50px; /* Hauteur maximale du logo */
    width: auto; /* Préserve les proportions du logo */
    vertical-align: middle; /* Centre verticalement le logo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar */
.navbar {
    position: fixed; /* Fixe la barre en haut de la fenêtre */
    top: 0; /* Positionne la barre en haut */
    left: 0; /* Alignement à gauche */
    width: 100%; /* La barre prend toute la largeur */
    background: linear-gradient(to right, #0078d7, #00c6ff); /* Couleur de fond */
    color: white; /* Texte blanc */
    z-index: 1000; /* Assure que la barre est au-dessus du contenu */
    padding: 1rem 2rem; /* Ajoute de l'espace interne */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre sous la barre */
    justify-content: space-between; /* Espace entre les éléments */
    flex-wrap: wrap; /* Permet aux éléments de se placer sur plusieurs lignes si nécessaire */
    display: flex;
}

.navbar.scrolled {
    background-color: white;
    color: black;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* Permet aux liens de se répartir sur plusieurs lignes si l'espace est réduit */
}

.navbar .nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #0078d7;
}


/* Section Produits Populaires */
.popular-products {
    padding: 2rem 1rem;
    text-align: center;
}

.popular-products h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0078d7;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Colonnes flexibles (4 max) */
    gap: 1.5rem; /* Espacement entre les produits */
    justify-content: center;
}

/* Conteneur des produits */
.produits-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 20px; /* Espace entre les colonnes */
    margin: 20px 0;
}

/* Products Section */
.products {
    padding: 4rem 2rem;
    text-align: center;
}

.products h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: #181818;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.product-card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin: 0.5rem 0;
}

.product-card p {
    font-size: 1.2rem;
    color: #ff4655;
    margin: 0.5rem 0;
}
.footer {
    background: #181d22;
    color: #ffd700;
    padding: 40px 10px 20px 10px;
    border-top: 2px solid #22283a;
    font-size: 1.07em;
    margin-top: 40px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-section {
    flex: 1 1 250px;
    min-width: 210px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 7px;
}
.footer-link {
    color: #3fa5f7;
    text-decoration: underline;
    margin-right: 17px;
    margin-bottom: 7px;
    display: inline-block;
    transition: color 0.2s;
    font-size: 1em;
}
.footer-link:hover,
.footer-link:focus {
    color: #ffd700;
    text-decoration: underline;
}
.footer-bottom {
    color: #fff;
    text-align: center;
    margin-top: 26px;
    font-size: 0.99em;
}
.footer-bottom strong {
    color: #ffd700;
}
/* Responsive */
@media (max-width: 700px) {
    .footer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: left;
    }
    .footer-section {
        min-width: 0;
    }
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    margin-left: 1rem;
    z-index: 1100;
}
.burger span {
    display: block;
    width: 28px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 1000px) {

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1001;
    }

    .burger span {
        width: 20px;
        height: 2px;
        margin: 3px;
        background-color: white;
        border-radius: 2px;
    }

    /* Cacher le menu sur mobile au démarrage */
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(to right, #0078d7, #00c6ff);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem;
        gap: 1.2rem;
        z-index: 1000;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links.show {
        opacity: 1;
        pointer-events: auto;
    }
}
