/* Réinitialisation des marges et des paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de la page */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.logo img {
    height: 50px;
}

/* Titre principal */
header h1 {
    font-size: 2rem; /* Taille de base */
    text-align: center;
    flex-grow: 1;
}

header .cart-link a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Barre de navigation */
nav {
    background-color: #C894A0;
    padding: 5px 0;
    font-weight: bold;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap; /* Permet une meilleure adaptation */
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-links li {
    margin-right: 5px;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    position: relative;
}

/* Effet de soulignement au survol */
.nav-links a:hover {
    color: #616161;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F8EDEB;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menu burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ---- Responsive Design ---- */

/* Écrans moyens (tablettes et petits écrans) */
@media (max-width: 1024px) {
    header h1 {
        font-size: 1.7rem; /* Réduction du titre */
    }

    .nav-links a {
        font-size: 16px; /* Ajustement de la taille du texte */
    }

    .nav-links li {
        margin-right: 5px;
    }
}

/* Écrans mobiles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #C894A0;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        z-index: 10;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .burger {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    header h1 {
        font-size: 1.5rem; /* Encore plus petit sur mobile */
    }
}

/* Très petits écrans (ex: téléphones en mode portrait) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }

    .nav-links a {
        font-size: 0.9rem; /* Texte plus petit */
    }

    .nav-links {
        padding: 5px 0;
    }
}

/* Footer */
footer {
    background: #C894A0;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Navigation */
footer nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne si besoin */
    gap: 8px; /* Réduction de l'écart sur petits écrans */
}

/* Éléments de la liste */
footer nav ul li {
    display: inline;
}

/* Liens */
footer nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.2em; /* Légèrement réduit pour le rendre plus responsive */
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: #F8EDEB;
}

/* Texte */
footer nav ul li p {
    margin: 5px 0;
    font-size: 1em;
    color: #dcdcdc;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    footer {
        padding: 15px 10px;
    }

    footer nav ul {
        flex-direction: column; /* Les liens passent en colonne sur mobile */
        align-items: center;
    }

    footer nav ul li a {
        font-size: 1.1em; /* Réduction de la taille pour s'adapter */
    }

    footer nav ul li p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    footer {
        padding: 10px 5px;
    }

    footer nav ul {
        gap: 10px; /* Moins d'espace entre les éléments */
    }

    footer nav ul li a {
        font-size: 1em;
    }

    footer nav ul li p {
        font-size: 0.85em;
    }
}

