* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #da5b5f;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-bottom: 5px;
}

/* INTRO */
#intro {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #da5b5f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.logo-intro {
  width: 150px;
  animation: fadeZoom 2s ease;
}

@keyframes fadeZoom {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* CONTENU */
.hidden {
  display: none;
}

header {
  margin-top: 40px;
}

.logo {
  width: 150px;
}

h1 {
  margin-top: 20px;
  font-size: 26px;
}

p {
  margin: 10px 0 30px;
}

/* CARD */
.card {
  margin: 20px;
  padding: 30px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* MENU */
.menu {
  transition: all 0.4s ease;
}

.menu-toggle {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);

  border-radius: 25px;
  padding: 15px;

  font-weight: 600;

  transition: 0.3s;
}

.menu-toggle:hover {
  transform: scale(1.02);
}

.menu h3 {
  margin-top: 20px;
}

/* ITEMS */
.item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  background: white;
  color: black;
  padding: 12px;
  border-radius: 15px;
  margin: 8px 0;
}

.item button {
  background: #da5b5f;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  cursor: pointer;
}

/* CONTACT ESPACE */
.card h2 {
  margin-top: 35px;
}

/* BOUTONS RÉSEAUX */
/* BOUTONS RÉSEAUX FIX */
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* 🔥 bouton comme AVANT (propre + centré) */
.btn {
  width: 220px; /* 🔥 longueur parfaite (comme tes traits) */
  padding: 15px;

  border-radius: 30px;
  text-decoration: none; /* 🔥 enlève le souligné */
  color: white;

  font-weight: bold;
  text-align: center;
}

.instagram {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
}

.tiktok {
  background: black;
}

.facebook {
  background: #1877f2;
}

.whatsapp {
  background: #25d366;
}

.btn:hover {
  transform: scale(1.05);
}

/* FOOTER */
/* FOOTER GLOBAL */
footer {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);

  color: white;
  text-align: center;

  padding: 15px 10px;
  font-size: 13px;

  border-top: 1px solid rgba(255,255,255,0.2);
}

/* contenu footer */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* logo footer */
.footer-logo {
  width: 40px;
  opacity: 0.8;
}

/* texte */
footer p {
  margin: 0;
}

/* BOUTON PANIER */
.cart-btn {
  position: fixed;
  top: 20px;
  right: 20px;

  width: 55px;
  height: 55px;
  border-radius: 50%;

  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.3);

  color: white;
  font-size: 20px;
  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* BADGE */
#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 3px 7px;
}

/* ===== PANIER ===== */
.cart {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  background: white;
  color: black;
  border-radius: 20px 20px 0 0;

  padding: 10px 10px; /* 🔥 réduit les côtés */

  display: flex;
  flex-direction: column;
  align-items: center;

  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;

  overflow: hidden;
}

.cart.active {
  transform: translateY(0);
}

/* TOTAL */
#cart-total {
  background: #da5b5f;
  color: white;
  padding: 12px;
  margin: 5px 0 10px;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;

  width: 220px; /* 🔥 même taille que boutons */

  position: sticky;
  top: 0;
  z-index: 10;
}

/* SCROLL */
#cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 5px;
  width: 100%;
}

/* BOUTONS PANIER (gros boutons) */
.order-btn,
.reset-btn,
.cart button:not(.qty-btn):not(.delete-btn) {
  width: 220px;
  padding: 12px;
  margin: 8px 0;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

/* petits boutons + - */
.qty-btn {
  background: #da5b5f;
  color: white;
  border-radius: 50%;
  padding: 5px 10px;
  font-size: 14px;
}

/* bouton supprimer */
.delete-btn {
  background: black;
  color: white;
  border-radius: 50%;
  padding: 5px 10px;
  font-size: 14px;
}

/* couleurs */
.order-btn {
  background: #25d366;
  color: white;
}

.reset-btn {
  background: #999;
  color: white;
}

/* MOBILE */
@media (min-width: 768px) {

  .links {
max-width: 400px;
margin: auto;
}

  .cart {
    height: 85vh;
  }

  #cart-total {
    font-size: 14px;
  }

}

.logo {
  width: 150px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

/* ligne produit */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(255,255,255,0.9);
  color: black;

  padding: 15px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* texte produit */
.item-name {
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  max-width: 60%;
}

/* partie droite (prix + bouton) */
.item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* prix stylé 🔥 */
.price {
  background: #da5b5f;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 13px;
}

/* bouton */
.item button {
  background: #da5b5f;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
}

.item:hover {
  transform: scale(1.02);
  transition: 0.2s;
}

/* bouton dark mode */
.theme-btn {
  position: fixed;
  top: 20px;
  left: 20px;

  width: 55px;
  height: 55px;
  border-radius: 50%;

  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.3);

  font-size: 20px;
  cursor: pointer;

  color: white;

  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* MODE DARK */
body.dark {
  background: #a94448; /* version plus sombre de ton rouge */
  color: white;
}

/* carte */
body.dark .card {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

/* items */
body.dark .item {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* prix */
body.dark .price {
  background: #ff8a8a;
}

/* footer */
body.dark footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);

  border-top: 1px solid rgba(255,255,255,0.1);
  color: #ffdede;
}


body {
  transition: background 0.3s, color 0.3s;
}

.item, .card, footer {
  transition: 0.3s;
}

h3 {
  margin-top: 30px;
  margin-bottom: 15px;

  text-align: left;
  font-size: 18px;
  font-weight: 600;

  position: relative;
  padding-left: 10px;
}

/* petite barre stylée */
h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 4px;
  height: 20px;
  background: white;
  border-radius: 5px;
}

body.dark h3::before {
  background: #ffdede;
}

.menu h3 {
  margin-top: 40px;
}

.item {
  margin-bottom: 12px;
}

h3 {
  letter-spacing: 1px;
  text-transform: uppercase;
}

footer:hover {
  background: rgba(255,255,255,0.2);
}

.footer-content {
  flex-wrap: wrap;
  gap: 10px;
}

/* contenu caché au début */
#content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* quand actif */
#content.show {
  opacity: 1;
  transform: translateY(0);
}

/* item en colonne */
.item-column {
  flex-direction: column;
  align-items: flex-start;
}

/* bloc parfums */
.flavors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

/* chaque ligne */
.flavors label {
  background: rgba(255,255,255,0.2);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}

/* radio custom */
.flavors input {
  margin-right: 5px;
}

/* DARK MODE */
body.dark .flavors label {
  background: rgba(255,255,255,0.1);
} 

.flavors input:checked + span {
  font-weight: bold;
}

.flavor-select {
  margin-top: -5px;
  margin-bottom: 10px;
}

.flavor-header {
  background: rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
}

.flavor-options {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.flavor-options div {
  background: rgba(255,255,255,0.9);
  color: black;
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}

body.dark .flavor-options div {
  background: rgba(255,255,255,0.1);
  color: white;
}

body.dark .cart-btn,
body.dark .theme-btn {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
}

.cart-btn:hover,
.theme-btn:hover {
  transform: scale(1.08);
  transition: 0.2s;
}

.contact-card {
  margin-top: 15px;
  padding-top: 25px;
}

.contact-title {
  margin-bottom: 20px;

  font-size: 20px;
  font-weight: 600;

  text-align: center;

  position: relative;
}

/* ligne stylée dessous */
.contact-title::after {
  content: "";
  display: block;

  width: 60px;
  height: 3px;

  background: white;
  margin: 8px auto 0;
  border-radius: 10px;
}

/* dark mode */
body.dark .contact-title::after {
  background: #ffdede;
}

.links {
  margin-top: 10px;
}

.contact-card {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  margin-top: 20px;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
}

.hero p {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 8px;
}

.divider {
  height: 1px;
  width: 100%;

  background: rgba(255,255,255,0.2);

  margin: 25px 0;
}

body.dark .divider {
  background: rgba(255,255,255,0.1);
}

.flavor-box {
  margin: 8px 0 15px;
  position: relative;
  z-index: 10;  
}

/* bouton principal */
.flavor-selected {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);

  padding: 10px;
  border-radius: 20px;

  text-align: center;
  cursor: pointer;
  font-size: 13px;
}

/* liste */
.flavor-options {
  margin-top: 8px;

  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 10;
}

/* chaque option */
.flavor-options div {
  background: rgba(255,255,255,0.15);
  padding: 10px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
}

.flavor-options div:hover {
  background: rgba(255,255,255,0.3);
}

/* dark */
body.dark .flavor-selected,
body.dark .flavor-options div {
  background: rgba(255,255,255,0.1);
}

.hidden {
  display: none;
}

.item {
  position: relative;
  z-index: 1;
}

.flavor-options {
  position: relative;
  z-index: 9999; /* 🔥 très important */
}

.flavor-box {
  position: relative;
  z-index: 9999;
}

.card {
  position: relative;
  z-index: 1;
}

/* ===== MOBILE OPTIMISATION ===== */
@media (max-width: 480px) {

  .item {
    padding: 10px 12px;
    border-radius: 18px;
  }

  .item-name {
    font-size: 13px;
    max-width: 55%;
  }

  .item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .item-name {
    word-break: break-word;
  }

  /* prix plus compact 🔥 */
  .price {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 12px;
    min-width: 55px;
    text-align: center;
  }

  /* bouton ajouter plus clean */
  .item button {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 15px;
  }

}