@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Inter:wght@300;400;500&display=swap');

/* =====================
    VARIABLES
===================== */
:root {
  --bg-main: #faf8f4;
  --bg-white: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #6f6f6f;
  --accent: #c9a24d;
  --border-soft: #eae6de;
  --z-index-header: 1000;
  --z-index-cart-icon: 1100;
  --z-index-overlay: 2000;
  --z-index-drawer: 2100;
}

/* =====================
    RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* =====================
    HEADER
===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-index-header);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  letter-spacing: 3px;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

/* =====================
    HEADER NAV
===================== */
.site-header a {
  text-decoration: none;
  color: inherit;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-btn {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-primary {
  background: var(--text-main);
  color: #fff;
}

.nav-primary:hover {
  background: #000;
}

.nav-secondary {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
}

.nav-secondary:hover {
  border-color: var(--text-main);
}

.nav-outline {
  border: 1px solid var(--text-main);
}

.nav-outline:hover {
  background: var(--text-main);
  color: #fff;
}

.nav-muted {
  font-size: 13px;
  color: var(--text-muted);
  border: none;
  padding: 12px 16px;
}

.nav-muted:hover {
  color: var(--text-main);
}

/* =====================
    PREMIUM CART TOGGLE (NEW REFINED DESIGN)
===================== */
.cart-toggle {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 58px;
  height: 58px;
  background: var(--bg-white);
  color: var(--text-main);
  /* Forme moins ronde : carré avec coins adoucis */
  border-radius: 12px; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-index-cart-icon);
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-toggle:hover {
  transform: translateY(-5px);
  border-color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cart-toggle svg {
  width: 22px;
  height: 22px;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--text-main);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 22px;
  height: 22px;
  border-radius: 6px; /* Assorti au bouton */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

/* =====================
    HERO
===================== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-image:
    linear-gradient(
      rgba(250,248,244,0.88),
      rgba(250,248,244,0.88)
    ),
    url("../img/hero-french-croissants.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =====================
    IMAGE GRID (INDEX FIX)
===================== */
.image-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
}

.image-grid img {
  width: calc(33.33% - 16px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* =====================
    KEY MESSAGE
===================== */
.key-message {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-white);
}

.key-message p {
  font-size: 19px;
  line-height: 1.6;
  max-width: 800px;
  margin: auto;
}

/* =====================
    VALUES
===================== */
.values {
  background: var(--bg-white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px;
  padding: 80px 80px 120px;
}

.value {
  padding: 40px 32px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.value h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

.value p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* =====================
    IMAGE + STATEMENT
===================== */
.image-statement {
  background: var(--bg-white);
  padding: 80px 40px;
}

.image-statement-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.image-statement-image img {
  width: 100%;
  border-radius: 6px;
}

.image-statement-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  line-height: 1.4;
}

/* =====================
    ORNAMENTAL DIVIDER
===================== */
.ornamental-divider {
  position: relative;
  width: 220px;
  height: 2px;
  margin: 100px auto;
  background: #111;
}

.ornamental-divider::before,
.ornamental-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 2px solid #111;
  transform: translateY(-50%) rotate(45deg);
}

.ornamental-divider::before { left: -14px; }
.ornamental-divider::after { right: -14px; }

/* =====================
    HOW IT WORKS
===================== */
.how-it-works {
  padding: 80px 40px;
  text-align: center;
}

.how-it-works h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  margin-bottom: 80px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1100px;
  margin: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.step img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.step span {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  max-width: 220px;
}

/* =====================
    BUTTONS
===================== */
.btn {
  display: inline-block;
  padding: 16px 36px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: var(--text-main);
  color: white;
}

.btn.primary:hover { background: #000; }

.btn.large { padding: 20px 48px; }

/* =====================
    BEFORE / AFTER BAKING
===================== */
.before-after {
  background: var(--bg-main);
  padding: 120px 40px;
  text-align: center;
}

.before-after h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  margin-bottom: 60px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: auto;
}

.before-after-item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 16px;
}

.before-after-item span {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =====================
    FINAL CTA
===================== */
.final-cta {
  background: var(--bg-white);
  padding: 120px 40px;
  text-align: center;
}

.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 20px;
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =====================
    FOOTER
===================== */
footer {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* =====================
    SHOP
===================== */
.shop-hero {
  text-align: center;
  padding: 120px 20px 60px;
}

.shop-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 16px;
}

.shop-hero p {
  color: var(--text-muted);
}

.shop-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.filter-btn {
  padding: 12px 26px;
  border: 1px solid var(--border-soft);
  background: var(--bg-white);
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--text-main);
  color: white;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  padding: 0 80px 160px;
}

.shop-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .3s ease;
}

.shop-card:hover { transform: translateY(-6px); }

.shop-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.shop-card-body { padding: 28px; }

.shop-card h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 10px; }

.shop-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.shop-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

.price { font-size: 16px; font-weight: 500; }

/* =====================
    CART OVERLAY & DRAWER
===================== */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  z-index: var(--z-index-overlay);
}

#cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

#cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: right .35s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: var(--z-index-drawer);
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

#cart-drawer.active { right: 0; }

#cart-drawer h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 20px; }

#cart-items { flex: 1; overflow-y: auto; }

.cart-item { display: flex; gap: 16px; margin-bottom: 20px; }

.cart-item img { width: 70px; border-radius: 4px; }

.cart-footer { border-top: 1px solid var(--border-soft); padding-top: 20px; }

.cart-footer .btn { width: 100%; margin-top: 12px; }

/* =====================
    CART – QUANTITIES & PROMO
===================== */
.cart-item-info { flex: 1; font-size: 14px; }

.cart-qty { display: flex; align-items: center; gap: 10px; margin: 8px 0; }

.cart-qty button { width: 28px; height: 28px; border: 1px solid var(--border-soft); background: var(--bg-white); cursor: pointer; font-size: 16px; }

.cart-qty span { min-width: 20px; text-align: center; }

.cart-promo { display: flex; gap: 10px; margin: 20px 0; }

.cart-promo input { flex: 1; padding: 12px; border: 1px solid var(--border-soft); font-size: 14px; }

/* =====================
    AUTH (LOGIN / REGISTER)
===================== */
.auth-section { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 80px 20px; }

.auth-card { width: 100%; max-width: 420px; background: var(--bg-white); padding: 48px 40px; border-radius: 8px; text-align: center; }

.auth-card h1 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 10px; }

.auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-form label { text-align: left; font-size: 13px; color: var(--text-muted); }

.auth-form input { padding: 14px 16px; border: 1px solid var(--border-soft); font-size: 14px; }

/* =====================
    RESPONSIVE
===================== */
@media (max-width: 900px) {
  .header-inner { padding: 18px 20px; flex-direction: column; gap: 12px; }
  .main-nav { justify-content: center; }
  .hero h1 { font-size: 40px; }
  .values { padding: 80px 20px; gap: 32px; }
  .image-grid { flex-wrap: wrap; }
  .image-grid img { width: 100%; max-width: 500px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .image-statement-inner { grid-template-columns: 1fr; text-align: center; }
  .image-statement-text blockquote { font-size: 26px; }
  .cart-toggle { bottom: 20px; right: 20px; width: 56px; height: 56px; }
}

/* =========================================================
    REGISTER PAGE ENHANCEMENT (PREMIUM E-COMMERCE UX)
========================================================= */
.auth-card.wide {
  max-width: 860px;
  padding: 64px 72px;
  text-align: left;
}

.auth-card.wide h1 { text-align: center; font-size: 38px; }

.auth-card.wide .auth-subtitle {
  text-align: center;
  margin-bottom: 48px;
  font-size: 15px;
}

.auth-form.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
  align-items: start;
}

.auth-form.grid label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.auth-form.grid input, .auth-form.grid select {
  width: 100%; padding: 16px 18px; border-radius: 4px; border: 1px solid var(--border-soft);
}

.auth-form .full { grid-column: 1 / -1; }

.auth-form.grid .btn { margin-top: 24px; padding: 20px; font-weight: 600; }

.auth-card.wide .auth-footer {
  margin-top: 56px; text-align: center; border-top: 1px solid var(--border-soft); padding-top: 32px;
}

@media (max-width: 768px) {
  .auth-card.wide { padding: 48px 24px; }
  .auth-form.grid { grid-template-columns: 1fr; gap: 18px; }
}

/* FIX SHOP CARD FOOTER ALIGNMENT */
.shop-card-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-card-footer .price {
  font-size: 16px;
  font-weight: 500;
}

.shop-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* =====================
   ADD TO CART – MINIMAL LUXE
===================== */
.buy-btn {
  background: #faf8f4;          /* même couleur que le fond */
  color: var(--text-main);             /* texte noir */
  border: 1px solid var(--text-main);  /* contour noir fin */
  padding: 14px 34px;
  font-size: 12px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover très subtil */
.buy-btn:hover {
  background: var(--text-main);
  color: #fff;
  transform: translateY(-1px);
}

/* Focus propre */
.buy-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}



