/* =========================================================
   COOKIE PARADISE — Feuille de style principale
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --cream: #fdf6e6;
  --cream-dark: #f7ecd2;
  --teal: #16a2a7;
  --teal-dark: #0d7a7f;
  --orange: #f2941d;
  --orange-dark: #d97b0a;
  --brown: #3e2723;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(62, 39, 35, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', cursive;
  color: var(--brown);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--orange); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(242, 148, 29, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }

.btn-secondary {
  background: var(--white);
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1ebe5b; color: var(--white); }

.btn-small { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--cream-dark);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brown);
}
.brand img { height: 54px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  color: var(--brown);
  font-size: 1.02rem;
}
.nav-menu a.active,
.nav-menu a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--brown);
  border-radius: 2px;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-text { flex: 1.1; }
.hero-text h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 0.3em;
}
.hero-text p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.5em; }
.hero-image { flex: 1; text-align: center; }
.hero-image img {
  max-width: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
}

.wave {
  display: block;
  width: 100%;
  line-height: 0;
}

.hero-produits {
  background: linear-gradient(160deg, rgba(13, 122, 127, 0.45), rgba(13, 122, 127, 0.65)),
              url('../images/bg-produits.svg') center / cover no-repeat;
}

/* ---------- Sections génériques ---------- */
section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 12px; font-size: 2rem; }
.section-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
  color: #6b544c;
}

.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: var(--white); }

/* ---------- Atouts (cards) ---------- */
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.atout-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.atout-card .emoji { font-size: 2.4rem; margin-bottom: 12px; }
.atout-card h3 { font-size: 1.2rem; }

/* ---------- Cartes produits ---------- */
.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.produit-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.produit-card:hover { transform: translateY(-4px); }

.produit-photo {
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.produit-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.produit-photo img:hover { transform: scale(1.04); }
.produit-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.produit-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.produit-body h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.produit-body p {
  font-size: 0.92rem;
  color: #6b544c;
  flex: 1;
}
.produit-body .btn { margin-top: 12px; align-self: flex-start; }

.prix-produit {
  display: inline-block;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1rem;
  color: var(--orange-dark);
  margin-bottom: 6px;
}

/* ---------- Lot spécial (carte mise en avant) ---------- */
.produit-card.featured {
  border: 3px solid var(--orange);
  position: relative;
  flex-direction: row;
  align-items: stretch;
}
.produit-card.featured .produit-photo {
  flex: 0 0 300px;
  aspect-ratio: 1 / 1;
}
.produit-card.featured .produit-body {
  justify-content: center;
}
.produit-card.featured.featured-full { grid-column: 1 / -1; }
.produit-card.featured.featured-half { grid-column: span 2; }
@media (max-width: 700px) {
  .produit-card.featured { flex-direction: column; }
  .produit-card.featured .produit-photo { flex: none; width: 100%; }
  .produit-card.featured.featured-half { grid-column: 1 / -1; }
}
.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(242, 148, 29, 0.4);
  z-index: 2;
}
.prix-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--orange-dark);
  margin-bottom: 10px;
}
.prix-tag .prix-barre {
  position: relative;
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #a08a80;
}
.prix-tag .prix-barre::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 50%;
  height: 2px;
  background: #c0392b;
  transform: rotate(-12deg);
  transform-origin: center;
}
.prix-tag .devise { font-size: 0.9rem; font-weight: 600; }
.prix-tag .vat-note {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #6b544c;
}

/* ---------- Composition du lot (fiche) ---------- */
.composition-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.composition-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}
.composition-list li .qte {
  flex: none;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.85rem;
}
.composition-group h4 {
  margin: 28px 0 10px;
  color: var(--teal-dark);
  font-size: 1rem;
}
.composition-group:first-child h4 { margin-top: 0; }
.composition-total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--cream-dark);
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  color: var(--brown);
  text-align: right;
}

@media (max-width: 600px) {
  .composition-list { grid-template-columns: 1fr; }
}

.categorie-titre {
  font-size: 1.5rem;
  margin: 56px 0 24px;
  padding-top: 8px;
  border-top: 3px dashed var(--cream-dark);
}
.categorie-titre:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

/* ---------- CTA bandeau ---------- */
.cta-bandeau {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-bandeau h2 { color: var(--white); }
.cta-bandeau p { opacity: 0.95; max-width: 560px; margin: 0 auto 24px; }

/* ---------- À propos ---------- */
.about-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 0;
}
.about-hero img { max-width: 280px; margin: 0 auto; }
.about-hero-text { flex: 1.2; }

.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.valeur-card {
  text-align: center;
  padding: 20px;
}
.valeur-card .emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.valeur-card h4 { font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .emoji { font-size: 2.2rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.contact-card p { color: #6b544c; margin-bottom: 16px; word-break: break-word; }

.contact-note {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
  color: #6b544c;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 40px 0 24px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 1.2rem;
}
.footer-brand img { height: 42px; }
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a { color: var(--cream); opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--orange); }
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { flex-direction: column; padding-top: 40px; padding-bottom: 40px; }
  .hero-text p { max-width: 100%; }
  .atouts-grid { grid-template-columns: 1fr; }
  .valeurs-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-hero { flex-direction: column; text-align: center; }
}

/* ---------- Fiche produit ---------- */
.breadcrumb {
  font-size: 0.9rem;
  color: #6b544c;
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--teal-dark); }

.fiche-hero {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  margin-bottom: 52px;
}
.fiche-photo {
  flex: 0 0 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.fiche-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.fiche-photo img:hover { transform: scale(1.03); }
.fiche-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.fiche-info { flex: 1; }
.fiche-info .categorie-tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--teal-dark);
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.fiche-info h1 { font-size: 2rem; margin-bottom: 10px; }
.fiche-info .descriptif { font-size: 1.08rem; color: #5b463f; margin-bottom: 22px; }

.fiche-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.detail-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-card p {
  font-size: 0.92rem;
  color: #5b463f;
  white-space: pre-line;
  margin: 0;
}
.detail-card.full-width { grid-column: 1 / -1; }

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.nutrition-table tr {
  border-bottom: 1px solid var(--cream-dark);
}
.nutrition-table tr:last-child { border-bottom: none; }
.nutrition-table td {
  padding: 8px 6px;
  color: #5b463f;
}
.nutrition-table td:first-child {
  font-weight: 600;
  color: var(--brown);
  padding-right: 12px;
}
.nutrition-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
.nutrition-table tr.sub-row td:first-child {
  font-weight: 400;
  font-style: italic;
  padding-left: 18px;
  color: #7a655d;
}

.fiche-nav-bas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .fiche-hero { flex-direction: column; }
  .fiche-photo { width: 100%; flex: none; }
  .fiche-details { grid-template-columns: 1fr; }
}

/* ---------- Lightbox (agrandissement image) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 15, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  background: var(--cream);
  padding: 16px;
  cursor: zoom-out;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .hero-text h1 { font-size: 2rem; }
  section { padding: 44px 0; }
}
