/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7; /* Couleur de fond légère */
    color: #333;
}

/* Header */
header {
    background-color: #000;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo et marque */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    margin-right: 15px;
}

.brand {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: white;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
}

nav ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: white;
    transition: width .3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Contenu principal */
main {
    padding: 20px 0;
}

h2 {
    text-align: center;
    margin: 20px 0;
    font-size: 2.5rem;
}

/* Panier Wrapper */
.panier-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

/* Section produits */
.panier-produits {
    width: 65%;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.panier-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 20px;
}

.header-item {
    flex: 1; /* Permet à chaque élément d'avoir la même largeur */
    text-align: center; /* Aligne le texte au centre */
}

.panier-content {
    display: flex;
    flex-direction: column;
}

.panier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

.panier-item > div {
    flex: 1; /* Permet à chaque colonne d'avoir la même largeur */
    display: flex;
    align-items: center;
    justify-content: center; /* Aligne les éléments au centre */
}

.panier-item img {
    width: 80px;
    border-radius: 10px;
}

.panier-item h3 {
    font-size: 1.2em;
    margin: 0;
}

.panier-item .quantite {
    display: flex;
    align-items: center;
}

.panier-item input {
    width: 50px;
    padding: 5px;
    text-align: center;
    margin-right: 10px;
}

/* Section récapitulatif */
.panier-resume {
    width: 30%;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.panier-resume h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.resume-total p {
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.btn-valider {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-valider:hover {
    background-color: #ff4b4b;
}

/* Style pour le bouton Retirer avec icône de poubelle */
.btn-remove {
    display: flex;
    align-items: center;
    background: none; /* Enlève l'arrière-plan */
    border: none; /* Enlève la bordure */
    cursor: pointer; /* Change le curseur pour indiquer que c'est cliquable */
    color: #0d0000; /* Couleur de l'icône de poubelle */
    font-size: 1.5em; /* Taille de l'icône */
    transition: color 0.3s ease;
}

.btn-remove span {
    margin-right: 5px; /* Espace entre le texte et l'icône */
}

.btn-remove:hover {
    color: #ff4b4b; /* Couleur au survol */
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 20px 0;
}
