:root {
  /* Palette extraite directement du logo Cherie CoCo */
  --coco-green: #57a352;       /* vert tropical du texte "CHÉRIE" */
  --coco-green-dark: #3a7a37;  /* variante foncée pour hover/contrastes */
  --coco-green-light: #e8f4e6; /* teinte claire pour badges/fonds */
  --coco-cream: #faf7ef;       /* blanc cassé / fond général */
  --coco-beige: #e9dfc7;       /* beige coco pour sections et cartes */
  --coco-brown: #5c4032;       /* brun coco du texte "COCO" */
  --coco-brown-dark: #3d2a20;
  --coco-accent: #c98a52;      /* doré/terracotta de la baseline du logo */
  --coco-accent-dark: #a56b3b;
  --coco-red: #e2543b;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--coco-cream);
  color: #33261b;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Poppins', sans-serif;
}

.text-accent { color: var(--coco-accent); }

/* ---- Logo ---- */
.logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.logo-img-footer { box-shadow: 0 2px 10px rgba(0,0,0,.2); border: 2px solid rgba(255,255,255,.25); }
.logo-img-lg { width: 90px; height: 90px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }

.brand-text { font-weight: 700; font-size: 1.3rem; color: var(--coco-green-dark); }

/* ---- Navbar ---- */
.navbar-coco {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.navbar-coco .nav-link { font-weight: 600; color: #3a2c20; font-size: .93rem; padding-left: .6rem !important; padding-right: .6rem !important; }
.navbar-coco .nav-link:hover { color: var(--coco-green); }

.btn-coco {
  background: var(--coco-green);
  border-color: var(--coco-green);
  color: #fff;
  font-weight: 600;
}
.btn-coco:hover { background: var(--coco-green-dark); border-color: var(--coco-green-dark); color: #fff; }
.btn-coco-outline {
  border: 2px solid var(--coco-green);
  color: var(--coco-green);
  font-weight: 600;
  background: transparent;
}
.btn-coco-outline:hover { background: var(--coco-green); color: #fff; }

/* ---- Hero ---- */
.hero-coco {
  background: linear-gradient(120deg, var(--coco-green) 0%, var(--coco-green-dark) 100%);
  color: #fff;
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: hidden;
}
.hero-coco::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,138,82,.35) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  padding: .35rem .9rem;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
}

/* ---- Hero Slider ---- */
.hero-slider { border-radius: 0 0 40px 40px; overflow: hidden; }
.hero-slider .carousel-item {
  min-height: 560px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-slide { width: 100%; padding: 3rem 0; color: #fff; position: relative; overflow: hidden; }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.16) 0%, transparent 55%);
  pointer-events: none;
}
.hero-slide-1 { background: linear-gradient(120deg, var(--coco-green) 0%, var(--coco-green-dark) 100%); }
.hero-slide-2 { background: linear-gradient(120deg, var(--coco-accent) 0%, var(--coco-accent-dark) 100%); }
.hero-slide-3 { background: linear-gradient(120deg, var(--coco-green-dark) 0%, var(--coco-brown) 100%); }
.hero-slide-4 { background: linear-gradient(120deg, var(--coco-brown) 0%, var(--coco-brown-dark) 100%); }

.hero-slide-badge {
  display: inline-block;
  background: rgba(255,255,255,.16);
  padding: .35rem .9rem;
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-slide-title { font-size: 2.6rem; font-weight: 800; line-height: 1.15; }
.hero-slide-text { font-size: 1.05rem; opacity: .9; max-width: 480px; }
.hero-illustration { width: 100%; max-width: 380px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }

.hero-slider .carousel-indicators { bottom: 18px; }
.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(255,255,255,.5);
  border: none; margin: 0 5px;
}
.hero-slider .carousel-indicators .active { background-color: #fff; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 6%; opacity: 0; transition: opacity .2s; }
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next { opacity: .8; }
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  background-color: rgba(0,0,0,.25);
  border-radius: 50%;
  padding: 20px;
  background-size: 45%;
}

@media (max-width: 991px) {
  .hero-slider .carousel-item { min-height: 620px; }
  .hero-slide-title { font-size: 2rem; }
  .hero-illustration { max-width: 260px; margin-top: 1.5rem; }
}

/* ---- Cards produits ---- */
.card-produit {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(47,122,77,.1);
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
  height: 100%;
}
.card-produit:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(47,122,77,.18); }
.card-produit .img-produit {
  height: 190px;
  background: linear-gradient(135deg, var(--coco-green-light), var(--coco-beige));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.badge-stock-bas { background: var(--coco-red) !important; }

/* ---- Footer ---- */
.footer-coco { background: var(--coco-green-dark); }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ---- Sections ---- */
.section-title { font-weight: 700; color: var(--coco-green-dark); }
.section-title-line {
  width: 60px; height: 4px; background: var(--coco-accent); border-radius: 4px; margin: .5rem auto 1.5rem;
}

/* ---- Admin / Espace pro ---- */
.sidebar-pro {
  min-height: 100vh;
  background: var(--coco-green-dark);
  color: #fff;
}
.sidebar-pro a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  display: block;
  padding: .7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
}
.sidebar-pro a:hover, .sidebar-pro a.active { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-pro .brand-text { color: #fff; }

.stat-card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--coco-green) 0%, var(--coco-green-dark) 100%);
}
.login-card { border-radius: 20px; border: none; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* ---- Reçu (impression) ---- */
.recu-box { max-width: 420px; margin: 0 auto; font-family: 'Quicksand', monospace; }
.recu-box hr { border-top: 1px dashed #999; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
}

table.table thead { background: #f1f8f3; }
