/* css/styles.css */

/* ─── 1. RESET & VARIABLES ───────────────────────────────────────── */

*, *::before, *::after {

box-sizing: border-box;

margin: 0;

padding: 0;

}

:root {

/* Couleurs principales */

--bleu-principal: #00CFC1;

--jaune-soleil: #FFD93D;

--corail: #FF6B6B;

--sable: #FFF4E0;

--texte-fonce: #333;

/* Typographie */

--font-base: Arial, sans-serif;

--font-logo: 'Dancing Script', cursive;

}

/* ─── 2. TYPOGRAPHIE & BACKGROUND ───────────────────────────────── */

html, body {

font-family: var(--font-base);

background-color: var(--sable);

color: var(--texte-fonce);

overflow-x: hidden;

}

/* ─── 3. HEADER & LOGO ───────────────────────────────────────────── */

header {
  background: linear-gradient(to right, #85c4e0, #f2e4d5);
  padding: 1.25rem;
  text-align: center;
  position: relative;
}

.full-header-link {
  display: block;        /* rend le lien block */
  width: 100%;           /* largeur du header */
  height: 100%;          /* hauteur du header */
  text-decoration: none; /* supprime soulignement */
  color: white;          /* couleur du texte */
}

.full-header-link:hover,
.full-header-link:focus {
  text-decoration: none; /* toujours pas de soulignement au hover */
  color: white;          /* couleur inchangée au hover */
}

.logo {
  font-family: var(--font-logo);
  font-size: 4rem;
  font-weight: bold;
  margin: 0;
  color: inherit; /* hérite de la couleur du lien */
  pointer-events: none; /* évite que le h1 bloque le clic sur le lien */
}




/* ─── 4. NAVIGATION ──────────────────────────────────────────────── */

nav {

background: #fff;

display: flex;

flex-wrap: wrap;

align-items: center;

justify-content: space-between;

padding: 0.625rem 1.25rem;

box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}

nav ul {

display: flex;

list-style: none;

gap: 1.25rem;

}

nav a {

text-decoration: none;

color: var(--texte-fonce);

font-weight: bold;

}

.dropdown {

position: relative;

}

.dropdown-menu {

display: none;

position: absolute;

top: 100%;

left: 0;

background: #fff;

box-shadow: 0 4px 10px rgba(0,0,0,0.1);

list-style: none;

padding: 0.625rem 0;

min-width: 180px;

z-index: 999;

}

.dropdown-menu li {

padding: 0.5rem 1.25rem;

white-space: nowrap;

}

.dropdown:hover .dropdown-menu {

display: block;

}

/* ─── 5. FORMULAIRES & BOUTONS ──────────────────────────────────── */

.search-bar {

display: flex;

align-items: center;

background: #f0f0f0;

border-radius: 30px;

padding: 0.5rem 1rem;

flex: 1 1 auto;

max-width: 300px;

}

.search-bar input {

flex: 1;

border: none;

outline: none;

background: transparent;

padding: 0.3125rem 0.625rem;

font-size: 0.9375rem;

}

.search-bar button {

background: none;

border: none;

cursor: pointer;

font-size: 1rem;

}

.btn-corail {

display: block;

width: 100%;

text-align: center; 

font-size: 0.8rem;

align-items: center;

gap: 0.5rem;

background: var(--corail);

color: #fff;

padding: 1rem;

border: none;

border-radius: 30px;

cursor: pointer;

transition: background 0.3s, transform 0.2s;

font-weight: 600;

}

.btn-corail:hover {

background: #e95a5a;

transform: scale(1.05);

}


/* ─── 6. PANIER (volet & bouton) ────────────────────────────────── */

/* Bouton Mon compte */

.account-btn {

display: inline-flex;

align-items: flex-start;

gap: 0.5rem;

padding: 0.5rem 1rem;

border-radius: 30px;

background: var(--corail);

color: #fff;

text-decoration: none;

cursor: pointer;

transition: background 0.3s;

line-height: 1;

}

.account-btn i {

margin-top: 0.25rem;

font-size: 1.2rem;

}

.account-text {

display: flex;

flex-direction: column;

line-height: 1;

}

.main-label {

font-size: 1rem;

font-weight: bold;

}

.sub-label {

font-size: 0.75rem;

color: #fff;

margin-top: 0.125rem;

}

.account-btn:hover {

background: #e95a5a;

}

.account-cart {

display: flex;

align-items: center;

gap: 0.625rem;

position: relative;

}

.cart-btn {

display: flex;

align-items: center;

gap: 0.5rem;

background: var(--corail);

color: #fff;

padding: 0.5rem 1rem;

border: none;

border-radius: 30px;

cursor: pointer;

transition: background 0.3s;

position: relative;

font-weight: 600;

}

.cart-btn:hover {

background: #e95a5a;

}

.cart-count {

position: absolute;

top: -0.5rem;

right: 0.3125rem;

background: var(--jaune-soleil);

color: #000;

font-size: 0.75rem;

padding: 0.1875rem 0.4375rem;

border-radius: 50%;

font-weight: bold;

line-height: 1;

}

.recapitulatif-panier {

position: absolute;

top: calc(100% + 0.625rem);

right: 0;

width: 20rem;

max-height: 70vh;

background: #fff;

border: 1px solid #e0e0e0;

border-radius: 0.75rem;

box-shadow: 0 8px 30px rgba(0,0,0,0.12);

padding: 1rem;

display: none;

overflow-y: auto;

z-index: 1000;

}

.recapitulatif-panier ul {

display: flex;

flex-direction: column; /* éléments l’un sous l’autre */

gap: 0.75rem;

}

.recapitulatif-panier img {

width: 3.75rem; /* 60px environ */

height: 3.75rem;

object-fit: cover;

border-radius: 0.25rem;

}

.recapitulatif-panier.active {

display: block;

animation: fadeIn 0.3s ease;

}

@keyframes fadeIn {

from { opacity: 0; transform: translateY(-0.625rem); }

to { opacity: 1; transform: translateY(0); }

}

.panier-item {

display: flex;

align-items: flex-start;

gap: 0.9375rem;

padding: 0.9375rem;

background: #f8f9fa;

border-radius: 0.5rem;

box-shadow: 0 2px 6px rgba(0,0,0,0.03);

transition: transform 0.2s;

}
/* ─── Contrôles de quantité dans le récapitulatif panier ───────────────── */

.recapitulatif-panier .panier-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recapitulatif-panier .item-quantite {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.recapitulatif-panier .qty-btn {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: var(--bleu-principal);
  color: white;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.recapitulatif-panier .qty-btn:hover {
  background: var(--corail);
}

.recapitulatif-panier .qty-input {
  width: 3rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.15rem;
  font-size: 1rem;
}

.recapitulatif-panier .qty-input::-webkit-outer-spin-button,
.recapitulatif-panier .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.recapitulatif-panier .qty-input {
  -moz-appearance: textfield;
}

.panier-item:hover {

transform: translateY(-0.125rem);

}

.poubelle {

margin-left: auto;

cursor: pointer;

color: var(--corail);

transition: transform 0.2s;

}

.poubelle:hover {

transform: scale(1.1);

color: #ff4757;

}

.total {

display: flex;

justify-content: space-between;

font-weight: 700;

margin-top: 1rem;

padding-top: 0.625rem;

border-top: 2px solid #eee;

}

.btn-payer {

display: block;

background: var(--corail);

color: #fff;

text-align: center;

padding: 0.75rem;

border: none;

border-radius: 0.5rem;

font-weight: bold;

margin-top: 0.9375rem;

cursor: pointer;

transition: transform 0.2s;

}

.btn-payer:hover {

transform: scale(1.02);

}

/* ─── 7. GRILLES DE CARDS (commun) ──────────────────────────────── */

.products,

.similaires {

display: grid;

gap: 1.5rem;

}

.products {

grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

}
#ventilateurs-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
#ventilateurs-container .product-card {
  width: 100%;
  box-sizing: border-box;
}
.product-card,

.similaire {

background: #fff;

border-radius: 0.625rem;

box-shadow: 0 4px 15px rgba(0,0,0,0.1);

padding: 1rem;

text-align: center;

transition: transform 0.3s;

}

.product-card:hover,

.similaire:hover {

transform: translateY(-0.3125rem);

}

.product-card img,

.similaire img {

width: 100%;

height: 180px;

object-fit: contain;

margin-bottom: 0.75rem;

}

.product-card {

position: relative; /* ← indispensable pour placer le badge à l’intérieur */

background: #fff;

border-radius: 0.625rem;

box-shadow: 0 4px 15px rgba(0,0,0,0.1);

padding: 1rem;

text-align: center;

transition: transform 0.3s;

}

.color-options {

display: flex;

justify-content: center;

gap: 0.75rem;

margin-top: 0.5rem;

}

.color-option {

position: relative;

}

/* Le carré coloré */

.color-swatch {

display: block;

width: 2.2rem;

height: 2.2rem;

border: 2px solid #ddd;

border-radius: 0.25rem;

cursor: pointer;

box-shadow: 0 1px 3px rgba(0,0,0,0.1);

transition: transform 0.2s, box-shadow 0.2s;

/* background-color est injecté inline par product.js */

}

/* Coche quand on sélectionne */

.color-option input[type="radio"] {

display: none;

}

.color-option input[type="radio"]:checked + .color-swatch {

border-color: var(--bleu-principal); /* même effet que sur fiche produit */

transform: scale(1.1); /* léger zoom */

box-shadow: 0 0 8px var(--bleu-principal);

}

/* Badge promotionnel */

.promo-badge {

position: absolute;

top: 0.625rem;

right: 0.625rem;

display: block;

background: var(--corail);

color: #fff;

padding: 0.375rem 0.75rem;

border-radius: 1rem;

font-size: 0.875rem;

font-weight: bold;

box-shadow: 0 2px 6px rgba(0,0,0,0.15);

z-index: 1;

}

.product-price-box {

display: flex;

justify-content: center;

align-items: baseline;

gap: 0.75rem;

margin: 0.75rem 0;

}

.old-price {

text-decoration: line-through;

color: #999;

font-size: 1.2rem;

}

.new-price {

color: var(--corail);

font-size: 2rem;

font-weight: 700;

}

.btn-group.vertical-buttons {

display: flex;

flex-direction: column;

justify-content: center;

gap: 1rem;

margin-top: 1rem;

}

.btn-group.vertical-buttons .btn-corail {

width: auto; /* règle la largeur selon le contenu */

min-width: 150px; /* ou la largeur que vous souhaitez */

font-size: 1.125rem;

text-align: center;

}


.error-message {
  display: none;
  color: #dc3545;
  text-align: center;
  margin: 0.5rem 0;
}

#error-message,
#error-color,
#color-error {
  display: none;
  color: red;
  font-size: 0.9rem;
  margin-top: 5px;
}
#color-error {
  font-size: 1.2rem; /* Taille augmentée */
  font-weight: bold;
  color: #dc3545;
  margin: 0;
  padding: 8px 15px;
  background: #fff3f3;
  border-radius: 8px;
  border: 1px solid #ffc4c4;
  order: 2; /* Place le message en dessous sur mobile */
}

.main-title {
  font-family: Arial, sans-serif;
  text-align: center;
  font-size: 2.5rem;     /* Ajuste selon ton goût */
  margin: 2rem 0;        /* Un peu de marge au-dessus et en-dessous */
}




footer {

background-color: var(--texte-fonce);

color: white;

padding: 20px 20px;

font-size: 14px;

}

.footer-container {

display: flex;

justify-content: space-between;

align-items: center;

flex-wrap: wrap;

max-width: 1200px;

margin: auto;

}

.footer-left {

display: flex;

align-items: center;

gap: 10px;

}

.footer-left img {

width: 35px; /* ↑ agrandi */

height: 35px;

vertical-align: middle;

}

.footer-center h2 {

font-size: 18px;

margin: 0;

text-align: center;

}

.footer-center {

text-align: center;

}

.footer-center .footer-logo {

width: 60px; /* ajuste la taille à ton goût */

height: auto;

margin-bottom: 6px; /* espace entre l'image et le texte */

}

.footer-right .contact-btn {

background-color: #ff7e5f;

color: white;

padding: 6px 14px;

border-radius: 20px;

text-decoration: none;

font-weight: bold;

font-size: 13px;

transition: background 0.3s ease;

}

.footer-right .contact-btn:hover {

background-color: #ff5a36;

}








.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.StripeElement {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
}














/* ─── Styles du formulaire Contact ───────────────────────────────── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.form-card {
  background-color: #fffaf4;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 40px;
  margin-bottom: 40px;
}

.form-title {
  text-align: center;
  margin: 0 0 20px;
  font-size: 2rem;
  line-height: 1.2;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: bold;
  color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}
.form-group select {
  appearance: none;
  padding: 10px 48px 10px 12px;
  background: white url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="10">\
<path fill="%23999" d="M1 1l7 7 7-7"/>\
</svg>') no-repeat right 12px center;
  background-size: 16px 10px;
}
.form-group select:focus {
  border-color: #ff6f91;
  box-shadow: 0 0 4px rgba(255,143,163,0.4);
  outline: none;
}

.btn-submit {
  background-color: #ff8fa3;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.btn-submit:hover {
  background-color: #ff6f91;
}
/* ─── CONTENEUR PRINCIPAL POUR FORMULAIRES ENCARTÉS ───────────────── */
.main-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  flex-wrap: wrap;   /* pour le responsive */
  gap: 40px;
}

/* ─── STYLE DE LA « CARTE » FORMULAIRE ───────────────────────────── */
.form-container {
  max-width: 600px;
  margin: 0 40px;                  /* même marge que connexion */
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 40px;
  width: 100%;
}
.form-container h2 {
  text-align: center;
  margin-bottom: 1.5rem; /* espace sous le titre */
}

.form-container .btn-corail {
  display: block;             /* comme tes autres btn-corail */
  width: auto;                /* ou 100% si tu veux full width */
  min-width: 200px;           /* assure une largeur minimale */
  margin: 0 auto;             /* centre s’il n’est pas full width */
  text-align: center;
  font-size: 1.2rem;            /* plus lisible */
  padding: 0.75rem 1.5rem;    /* vertical / horizontal */
  line-height: 1.2;
  letter-spacing: 0.5px;
  background: var(--corail);
  color: #fff;
  border-radius: 30px;        /* pill shape */
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-container .btn-corail:hover {
  background: #e95a5a;
  transform: none;            /* enlève le zoom si besoin */
}


/* ─── 8. MEDIA QUERIES / RESPONSIVE ─────────────────────────────── */

@media (max-width: 992px) {

nav { flex-wrap: wrap; gap: 0.625rem; }

.search-bar { width: 100%; order: 3; margin: 0.625rem 0; }

}

@media (max-width: 900px) {
  #ventilateurs-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

.products { grid-template-columns: 1fr; }

}
@media (max-width: 500px) {
  #ventilateurs-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {

html { font-size: 14px; }

nav ul { gap: 0.625rem; justify-content: center; }

}


/* ─── 9. QUANTITY CONTROLS ───────────────────────────────────────── */

.qty-controls {
  display: inline-flex;    /* aligne tout sur une même ligne */
  align-items: center;     /* centre verticalement */
  white-space: nowrap;     /* interdit tout retour à la ligne interne */
  margin-right: 1.5rem;
}

.qty-controls button,
.qty-controls .qty-input {
  margin: 0;               /* supprime toute marge parasite */
  flex-shrink: 0;          /* empêche le bouton ou l’input de rapetisser */
}

.qty-controls .qty-decrease {
  margin-right: 0.3rem; /* espace entre le bouton «−» et l’input */
}

.qty-controls .qty-increase {
  margin-left: 0.3rem;  /* espace entre l’input et le bouton «+» */
}

/* ─── LISTE DES COMMANDES ───────────────────────────────────────── */

.main-title {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.orders-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.order-card {
  background: #fffaf4;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

.order-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.order-header h2 {
  font-size: 1.25rem;
  color: var(--corail);
}

.order-date {
  font-size: 0.9rem;
  color: #666;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #fff;
  text-transform: capitalize;
}
.status-payé       { background: var(--bleu-principal); }
.status-en_attente { background: var(--jaune-soleil); color: #000; }
.status-annulé     { background: #aaa; }

.order-total {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.btn-sm {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #fff;
  background: var(--corail);
  border-radius: 0.5rem;
  transition: background 0.3s;
}

.btn-sm:hover {
  background: #e95a5a;
}




/* === Alignement propre et placement de l'icône dans le dropdown compte === */
.dropdown-menu.account-menu li a { display: inline-flex; /* icône + texte sur la même ligne */ align-items: center; /* centre verticalement */ gap: 0.6rem; /* espace entre icône et texte */ padding: 0.55rem 1rem; /* zone cliquable plus agréable */ color: inherit; /* conserve la couleur parente */ text-decoration: none; } /* Taille idéale de l'icône dans le menu (modifie la valeur si tu veux plus grand/petit) */ .dropdown-menu.account-menu li a .ico-img, .dropdown-menu.account-menu li a img.ico-img { width: 24px; /* taille conseillée pour un menu */ height: 24px; max-width: 24px; max-height: 24px; object-fit: contain; display: block; /* évite problèmes d'alignement */ margin: 0; /* pas de décalage inutile */ } /* Si l'icône semble légèrement trop haut ou bas -> ajustement fin (valeur en px) */ .dropdown-menu.account-menu li a img.ico-img.tweak { transform: translateY(1px); /* augmente/decrease si nécessaire: -1px, 2px, etc. */ } /* Assure un bon centrage du texte (au cas où) */ .dropdown-menu.account-menu li a span, .dropdown-menu.account-menu li a .menu-text { line-height: 1; display: inline-block; } /* Optionnel : rendre le menu plus aéré */ .dropdown-menu.account-menu { border-radius: 8px; padding: 0.25rem 0; }








/* Rend le menu lisible : texte et icônes en couleur foncée */
.dropdown-menu.account-menu {
  color: var(--texte-fonce); /* texte par défaut du site */
}

/* S'applique aux liens dans le menu (icônes + texte) */
.dropdown-menu.account-menu li a {
  color: var(--texte-fonce);
}











/* --- Icône "Mon compte" : plus grande (desktop / tablette / mobile) --- */
.account-btn .account-ico,
.account-btn .ico-fallback {
  width: 28px;           /* taille desktop */
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  margin-right: 0.6rem;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}











/* --- Bloc "Informations personnelles" dans le menu compte --- */
.dropdown-menu.account-menu li.account-personal {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 1rem;
  border-top: 1px dashed rgba(0,0,0,0.04);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
}

/* icône / svg */
.dropdown-menu.account-menu li.account-personal .personal-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* zone texte */
.dropdown-menu.account-menu li.account-personal .personal-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 160px;
}

/* nom + statut */
.dropdown-menu.account-menu li.account-personal .pi-name {
  font-weight: 700;
  color: var(--texte-fonce);
  font-size: 0.98rem;
  line-height: 1;
}

/* email / téléphone (plus discret) */
.dropdown-menu.account-menu li.account-personal .pi-meta {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* lien vers le profil */
.dropdown-menu.account-menu li.account-personal .pi-edit {
  margin-top: 4px;
  display: inline-block;
  font-size: 0.85rem;
  color: var(--bleu-principal);
  text-decoration: none;
  font-weight: 700;
}
.dropdown-menu.account-menu li.account-personal .pi-edit:hover {
  text-decoration: underline;
}

/* mobile : compacter le bloc */
@media (max-width: 480px) {
  .dropdown-menu.account-menu li.account-personal {
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
  }
  .dropdown-menu.account-menu li.account-personal .personal-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .dropdown-menu.account-menu li.account-personal .pi-name {
    font-size: 0.95rem;
  }
  .dropdown-menu.account-menu li.account-personal .pi-meta {
    font-size: 0.8rem;
  }
}





/* image SVG externe */
.cart-btn .ico-img,
.cart-btn .cart-ico {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* fallback FA caché par défaut */
.cart-btn .ico-fallback {
  width: 28px;
  height: 28px;
  font-size: 20px;
  line-height: 28px;
  display: none;
}

















/* ─── RESTAURATION DU STYLE DU PANIER (ancien visuel) ───────────────── */

/* Style du volet panier */
.recapitulatif-panier {
  position: absolute;
  top: calc(100% + 0.625rem);
  right: 0;
  width: 350px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 1rem;
  display: none;
  z-index: 1000;
}

/* Style des items du panier */
.mini-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid #f3f3f3;
}

.mini-cart-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}

.mini-cart-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-cart-name {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.mini-cart-info {
  font-size: 12px;
  color: #666;
}

.mini-cart-color {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid #ddd;
  border-radius: 50%;
}

.mini-cart-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.mini-decr, .mini-incr {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-cart-qty {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.mini-cart-price {
  font-weight: bold;
  color: var(--corail);
  font-size: 14px;
}

.mini-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  padding: 4px;
}

.mini-remove:hover {
  color: var(--corail);
}

/* Total et bouton payer */
.total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-top: 1rem;
  padding-top: 0.625rem;
  border-top: 2px solid #eee;
  font-size: 16px;
}

.btn-payer {
  display: block;
  width: 100%;
  background: var(--corail);
  color: #fff;
  text-align: center;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.btn-payer:hover {
  background: #e95a5a;
}

/* Compteur du panier */
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--jaune-soleil);
  color: #000;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* Style du bouton panier */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--corail);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
  position: relative;
}

.cart-btn:hover {
  background: #e95a5a;
}

.cart-label {
  font-size: 14px;
}