@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');
:root {
  --color-sage:   #7A9E7E;
  --color-beige:  #F5EFE6;
  --color-terra:  #C4714A;
  --color-cream:  #FDFAF5;
  --color-dark:   #2D2D2D;
  --color-muted:  #6B7280;
  --bs-primary:         var(--color-sage);
  --bs-primary-rgb:     122, 158, 126;
  --bs-secondary:       var(--color-terra);
  --bs-secondary-rgb:   196, 113, 74;
  --bs-body-bg:         var(--color-cream);
  --bs-body-color:      var(--color-dark);
  --bs-body-font-family: 'Inter', sans-serif;
  --shadow-card: 0 4px 20px rgba(0,0,0,.08);
  --radius-card: 16px;
  --transition:  .25s ease;
}

/* ── 3. OVERRIDE BOOTSTRAP COLORS ────────────────────────── */
.btn-primary { background-color: var(--color-sage) !important; border-color: var(--color-sage) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus { background-color: #628c67 !important; border-color: #628c67 !important; }
.btn-outline-primary { color: var(--color-sage) !important; border-color: var(--color-sage) !important; }
.btn-outline-primary:hover { background-color: var(--color-sage) !important; color: #fff !important; }
.btn-secondary { background-color: var(--color-terra) !important; border-color: var(--color-terra) !important; color: #fff !important; }
.bg-primary    { background-color: var(--color-sage)  !important; }
.bg-secondary  { background-color: var(--color-terra) !important; }
.text-primary  { color: var(--color-sage)  !important; }
.text-secondary{ color: var(--color-terra) !important; }
.badge.bg-primary   { background-color: var(--color-sage)  !important; }
.badge.bg-secondary { background-color: var(--color-terra) !important; }
a { color: var(--color-sage); }
a:hover { color: var(--color-terra); }

/* ── 4. TYPOGRAPHIE ──────────────────────────────────────── */
h1, h2, h3, h4, .brand-title { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--color-dark); }
body { font-family: 'Inter', sans-serif; background-color: var(--color-cream); color: var(--color-dark); }

/* ── 5. HEADER / NAVBAR ──────────────────────────────────── */
.navbar { background-color: #fff !important; box-shadow: 0 2px 12px rgba(0,0,0,.07); padding: .75rem 1rem; }
.navbar-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--color-sage) !important; letter-spacing: -.5px; }
.navbar-brand span { color: var(--color-terra); }
.nav-link { font-weight: 500; color: var(--color-dark) !important; transition: color var(--transition); font-size: .95rem; }
.nav-link:hover { color: var(--color-sage) !important; }

#cart-count { position: absolute; top: -6px; right: -8px; background: var(--color-terra); color: #fff; font-size: .65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
.cart-icon-wrap { position: relative; display: inline-flex; }

.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--color-sage); color: #fff; font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--color-beige); }
.user-dropdown .dropdown-menu { border-radius: 12px; border: none; box-shadow: var(--shadow-card); min-width: 200px; }
.user-dropdown .dropdown-item { font-size: .9rem; padding: .5rem 1rem; }
.user-dropdown .dropdown-item:hover { background: var(--color-beige); }
.btn-demo-toggle { font-size: .7rem; padding: .2rem .5rem; border-radius: 20px; background: #f0f0f0; border: 1px solid #ddd; color: #888; cursor: pointer; margin-left: .5rem; }
.btn-demo-toggle:hover { background: #e0e0e0; }

/* ── 6. FOOTER ───────────────────────────────────────────── */
footer { background: var(--color-dark); color: #ccc; padding: 3rem 0 1.5rem; font-size: .9rem; }
footer h5 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 1rem; }
footer a { color: #aaa; text-decoration: none; }
footer a:hover { color: var(--color-sage); }
footer .brand-footer { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--color-sage); }
footer .social-icons a { font-size: 1.2rem; margin-right: .75rem; transition: color var(--transition); }
footer .social-icons a:hover { color: var(--color-terra); }
footer hr { border-color: #444; }
footer .copy { font-size: .8rem; color: #666; }

/* ── 7. CARDS PRODUIT ────────────────────────────────────── */
.product-card { border: none; border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: #fff; transition: transform var(--transition), box-shadow var(--transition); overflow: hidden; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }

/* Image container — accueille une <img> */
.product-card .card-img-top {
  height: 210px;
  overflow: hidden;
  background: var(--color-beige);
  display: block;
}
.product-card .card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.product-card:hover .card-img-top img { transform: scale(1.06); }

.product-card .card-body { padding: 1.25rem; }
.product-card .card-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.product-card .price { font-size: 1.2rem; font-weight: 700; color: var(--color-sage); }
.product-card .price-old { font-size: .85rem; color: var(--color-muted); text-decoration: line-through; margin-left: .4rem; }
.product-card .badge-objectif { font-size: .7rem; font-weight: 600; border-radius: 20px; padding: .2rem .6rem; background: var(--color-beige); color: var(--color-sage); border: 1px solid var(--color-sage); }

.btn-fav { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #ccc; transition: color var(--transition), transform var(--transition); padding: 0; }
.btn-fav.active { color: var(--color-terra); }
.btn-fav:hover { transform: scale(1.2); }

/* ── 8. HERO ─────────────────────────────────────────────── */
.hero-section { background: linear-gradient(135deg, var(--color-beige) 0%, #e8f0e9 100%); padding: 7rem 0 5rem; position: relative; overflow: hidden; }
.hero-section h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; }
.hero-section .lead { font-size: 1.15rem; color: var(--color-muted); max-width: 520px; }

/* Image hero */
.hero-pet-wrap { position: relative; display: inline-block; }
.hero-pet-wrap .hero-dog {
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  object-fit: cover;
  aspect-ratio: 4/4;
}
.hero-pet-wrap .hero-cat {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  position: absolute;
  bottom: -14px;
  right: 4%;
}

/* ── 9. SECTIONS GÉNÉRALES ───────────────────────────────── */
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); position: relative; display: inline-block; margin-bottom: .5rem; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--color-terra); border-radius: 2px; margin-top: .4rem; }
.section-subtitle { color: var(--color-muted); font-size: 1rem; margin-bottom: 2.5rem; }
.section-beige { background: var(--color-beige); }
.section-white { background: #fff; }

.feature-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--color-sage); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* ── TÉMOIGNAGES ─────────────────────────────────────────── */
.testimonial-card { border-radius: var(--radius-card); border: none; background: #fff; box-shadow: var(--shadow-card); padding: 1.75rem; }
.testimonial-card .stars { color: #f4b942; font-size: 1rem; }
.testimonial-card .avatar-test {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-card .avatar-test img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── BLOG CARDS ──────────────────────────────────────────── */
.blog-card { border-radius: var(--radius-card); border: none; background: #fff; box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--transition); }
.blog-card:hover { transform: translateY(-4px); }

.blog-card-img {
  height: 185px;
  overflow: hidden;
  background: var(--color-beige);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }

/* ── FAQ ─────────────────────────────────────────────────── */
.accordion-item { border: none; border-bottom: 1px solid #eee; background: transparent; }
.accordion-button { font-weight: 600; font-size: .97rem; background: transparent !important; color: var(--color-dark) !important; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--color-sage) !important; }

/* ── NEWSLETTER ──────────────────────────────────────────── */
.newsletter-section { background: linear-gradient(135deg, var(--color-sage) 0%, #5a8560 100%); color: #fff; padding: 4rem 0; }
.newsletter-section h2 { color: #fff; }
.newsletter-section .lead { color: rgba(255,255,255,.85); }
.newsletter-section .form-control { border-radius: 30px 0 0 30px; border: none; padding: .75rem 1.25rem; }
.newsletter-section .btn { border-radius: 0 30px 30px 0; background: var(--color-terra) !important; border-color: var(--color-terra) !important; font-weight: 600; }

/* ── 10. POPIN ───────────────────────────────────────────── */
#promo-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9999; display: flex; align-items: center; justify-content: center; animation: fadeIn .35s ease; }
#promo-modal { background: #fff; border-radius: 20px; padding: 2.5rem 2rem; max-width: 440px; width: 92%; position: relative; animation: popIn .4s cubic-bezier(.34,1.56,.64,1); text-align: center; }
#promo-modal .promo-header { font-size: 2.5rem; margin-bottom: .5rem; }
#promo-modal h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: .25rem; }
#promo-modal .promo-discount { font-size: 2.2rem; font-weight: 800; color: var(--color-terra); }
.promo-code-box { display: inline-block; background: var(--color-beige); border: 2px dashed var(--color-sage); border-radius: 10px; padding: .6rem 1.5rem; font-size: 1.4rem; font-weight: 800; color: var(--color-sage); letter-spacing: 3px; cursor: pointer; margin: 1rem 0; transition: background var(--transition); user-select: all; }
.promo-code-box:hover { background: #e8f0e9; }
.promo-code-box .copy-hint { display: block; font-size: .65rem; font-weight: 400; color: var(--color-muted); letter-spacing: 0; }
.btn-close-promo { position: absolute; top: .9rem; right: 1rem; background: none; border: none; font-size: 1.4rem; color: #aaa; cursor: pointer; }
.btn-close-promo:hover { color: var(--color-dark); }
.promo-refuse { font-size: .8rem; color: #aaa; cursor: pointer; text-decoration: underline; background: none; border: none; margin-top: .5rem; }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── 11. ANIMATIONS GLOBALES ─────────────────────────────── */
.fade-in-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }

/* ── 12. PAGE PRODUITS — FILTRES ─────────────────────────── */
.filter-bar { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.filter-bar .filter-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--color-muted); margin-bottom: .4rem; }
.filter-btn { border-radius: 20px !important; padding: .3rem .9rem !important; font-size: .85rem !important; margin: .2rem !important; border: 1.5px solid var(--color-sage) !important; color: var(--color-sage) !important; background: #fff !important; transition: all var(--transition) !important; }
.filter-btn.active, .filter-btn:hover { background: var(--color-sage) !important; color: #fff !important; }
.product-count { font-size: .9rem; color: var(--color-muted); font-weight: 500; }

/* ── 13. PAGE FICHE PRODUIT ──────────────────────────────── */
.main-photo {
  border-radius: var(--radius-card);
  height: 380px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-card);
  background: var(--color-beige);
}
.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.main-photo:hover img { transform: scale(1.05); }

.thumb-strip { display: flex; gap: .5rem; margin-top: .75rem; align-items: center; justify-content: center; }
.thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
  background: var(--color-beige);
  flex-shrink: 0;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-item.active, .thumb-item:hover { border-color: var(--color-sage); transform: scale(1.08); }

.gallery-arrows button { background: #fff; border: 1.5px solid #ddd; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); }
.gallery-arrows button:hover { background: var(--color-beige); }

.format-btn { border: 2px solid #ddd; border-radius: 8px; padding: .4rem .9rem; font-size: .9rem; font-weight: 600; cursor: pointer; background: #fff; transition: all var(--transition); margin-right: .4rem; }
.format-btn.active, .format-btn:hover { border-color: var(--color-sage); background: var(--color-sage); color: #fff; }

.qty-box { display: flex; align-items: center; gap: .5rem; }
.qty-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid #ddd; background: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.qty-btn:hover { background: var(--color-beige); }
.qty-input { width: 54px; text-align: center; border: 1.5px solid #ddd; border-radius: 8px; font-weight: 600; font-size: 1rem; padding: .3rem; }
.reassurance-bar { display: flex; gap: 1.5rem; font-size: .82rem; color: var(--color-muted); margin-top: 1.2rem; flex-wrap: wrap; }
.reassurance-bar span { display: flex; align-items: center; gap: .3rem; }

.nav-tabs .nav-link { color: var(--color-muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--color-sage); border-bottom: 2px solid var(--color-sage); }

.review-card { background: #fff; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 1rem; }
.review-stars { color: #f4b942; }

/* ── 14. PAGE PANIER ─────────────────────────────────────── */
.cart-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; color: var(--color-muted); border: none; }
.cart-table td { vertical-align: middle; border-color: #f0f0f0; }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cart-summary-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.75rem; position: sticky; top: 80px; }
.cart-summary-card .total-line { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .95rem; }
.cart-summary-card .total-final { font-size: 1.3rem; font-weight: 800; color: var(--color-dark); }
.promo-badge-valid { background: #d4edda; color: #155724; border-radius: 6px; padding: .15rem .5rem; font-size: .8rem; font-weight: 600; }
.free-shipping-bar .progress { height: 6px; border-radius: 3px; background: #eee; }
.free-shipping-bar .progress-bar { background: var(--color-sage); border-radius: 3px; }

/* ── 15. PAGE CHECKOUT ───────────────────────────────────── */
.checkout-progress { display: flex; align-items: center; margin-bottom: 2.5rem; }
.checkout-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.checkout-step::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: #ddd; z-index: 0; }
.checkout-step:last-child::after { display: none; }
.step-circle { width: 38px; height: 38px; border-radius: 50%; background: #ddd; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; position: relative; z-index: 1; transition: background var(--transition); }
.checkout-step.active .step-circle { background: var(--color-sage); }
.checkout-step.done .step-circle   { background: var(--color-terra); }
.step-label { font-size: .75rem; font-weight: 600; color: var(--color-muted); margin-top: .4rem; }
.checkout-step.active .step-label { color: var(--color-sage); }

.delivery-option { border: 2px solid #eee; border-radius: 12px; padding: 1rem 1.25rem; cursor: pointer; transition: border-color var(--transition), background var(--transition); margin-bottom: .75rem; }
.delivery-option:hover, .delivery-option.selected { border-color: var(--color-sage); background: #f0f6f1; }
.delivery-option input { display: none; }

#payment-tabs .nav-link { font-weight: 600; }
.card-field { border-radius: 8px; border: 1.5px solid #ddd; padding: .65rem 1rem; font-size: .95rem; width: 100%; transition: border-color var(--transition); }
.card-field:focus { outline: none; border-color: var(--color-sage); }

.confirm-check { font-size: 4.5rem; animation: checkPop .5s cubic-bezier(.34,1.56,.64,1) .1s both; }
@keyframes checkPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.order-number { font-size: 1.8rem; color: var(--color-sage); }

/* Mini recap image */
.recap-thumb { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; margin-right: .4rem; vertical-align: middle; flex-shrink: 0; }

/* ── 16. BREADCRUMB ──────────────────────────────────────── */
.breadcrumb { background: transparent; font-size: .85rem; }
.breadcrumb-item a { color: var(--color-sage); }
.breadcrumb-item.active { color: var(--color-muted); }

/* ── 17. RESPONSIVE MOBILE ───────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 5rem 0 3rem; }
  .hero-section h1 { font-size: 2rem; }
  .hero-pet-wrap .hero-dog { max-width: 280px; }
  .hero-pet-wrap .hero-cat { width: 80px; height: 80px; }
  .main-photo { height: 260px; }
  .reassurance-bar { flex-direction: column; gap: .6rem; }
  #promo-modal { padding: 2rem 1.25rem; }
  .promo-discount { font-size: 1.7rem; }
  .checkout-progress { overflow-x: auto; padding-bottom: .5rem; }
  .step-label { font-size: .65rem; }
  .cart-summary-card { position: static; }
  .filter-bar { padding: 1rem; }
  footer { text-align: center; }
}
