/* ============================================
   SUCRE & JOIE - Catalogue public
   Palette : rose pastel inspirée du logo
   ============================================ */

:root {
  --rose-pale: #FADCE9;
  --rose-light: #FCE8F1;
  --rose-soft: #F5B8D0;
  --rose-medium: #E89BBF;
  --rose-deep: #C4537A;
  --rose-bg: #FFF5FA;
  --cream: #FFFAFC;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #8A8A8A;
  --gold: #D4A574;
  --shadow-soft: 0 8px 30px rgba(232, 155, 191, 0.15);
  --shadow-card: 0 12px 40px rgba(196, 83, 122, 0.12);
  --shadow-hover: 0 20px 60px rgba(196, 83, 122, 0.25);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:before, *:after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 184, 208, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--rose-soft) 100%);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.brand-mark .amp { color: var(--rose-deep); margin: 0 1px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.brand-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--rose-deep); }
.main-nav a:after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--rose-deep);
  transition: all 0.3s;
}
.main-nav a:hover:after { width: 100%; left: 0; }

.btn-wa-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-wa-mini:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 83, 122, 0.4);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--rose-light) 0%, var(--rose-pale) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}
.blob-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--rose-soft), transparent);
  top: -100px; left: -100px;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #FFE8F0, transparent);
  top: 20%; right: -150px;
  animation-delay: -7s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--rose-medium), transparent);
  bottom: -50px; left: 30%;
  animation-delay: -14s;
  opacity: 0.4;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}
.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(196, 83, 122, 0.15);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.1s ease both;
}
.hero h1 em {
  font-style: italic;
  color: var(--rose-deep);
  font-weight: 600;
}
.hero-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeInUp 0.8s 0.3s ease both;
}
.btn-primary, .btn-secondary {
  padding: 16px 32px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--rose-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(196, 83, 122, 0.4);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid rgba(196, 83, 122, 0.2);
}
.btn-secondary:hover {
  background: var(--rose-pale);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--rose-deep);
}
.hero-stats span {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  line-height: 0;
}
.hero-divider svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ============ CATALOG SECTIONS ============ */
.catalog-section {
  padding: 100px 0;
  background: var(--cream);
}
.catalog-alt {
  background: var(--rose-bg);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-head h2 em {
  font-style: italic;
  color: var(--rose-deep);
  font-weight: 600;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
}

/* Filtres */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.filter {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--ink-soft);
  border: 1.5px solid rgba(196, 83, 122, 0.15);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter:hover {
  border-color: var(--rose-medium);
  color: var(--rose-deep);
}
.filter.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filter.active .filter-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.filter-count {
  background: var(--rose-pale);
  color: var(--rose-deep);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.6s ease forwards;
}
.card.hidden { display: none; }
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.card-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  background: var(--rose-pale);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-img img {
  transform: scale(1.06);
}
.card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rose-deep);
}
.card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
}
.card-body p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  flex: 1;
}
.card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-deep);
  letter-spacing: 0.5px;
  align-self: flex-start;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: all 0.3s;
}
.card-cta:hover {
  border-color: var(--rose-deep);
  letter-spacing: 1px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
  font-size: 16px;
  font-style: italic;
}

/* ============ CONTACT ============ */
.contact-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--rose-pale) 0%, var(--rose-soft) 100%);
  position: relative;
  overflow: hidden;
}
.contact-section:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.5), transparent 50%);
  pointer-events: none;
}
.contact-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.contact-deco {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--rose-deep);
  opacity: 0.6;
}
.contact-deco .heart:nth-child(2) { font-size: 32px; opacity: 1; }
.contact-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.contact-section h2 em {
  font-style: italic;
  color: var(--rose-deep);
  font-weight: 600;
}
.contact-section p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.btn-wa-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff !important;
  padding: 18px 36px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.2);
}
.btn-wa-big:hover {
  background: var(--rose-deep);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(196, 83, 122, 0.4);
}
.contact-num {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 1px;
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 40px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 13px;
}
.footer-credit {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 90%;
  max-height: 70vh;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 20px 28px;
  border-radius: var(--r-md);
  text-align: center;
  max-width: 90%;
}
.lightbox-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin-bottom: 4px;
}
.lightbox-info p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  display: grid;
  place-items: center;
  transition: all 0.3s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

/* ============ WHATSAPP FAB ============ */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 14px 18px; gap: 12px; }
  .main-nav { display: none; }
  .brand-name { font-size: 18px; }
  .brand-tag { font-size: 10px; }
  .brand-mark { width: 42px; height: 42px; font-size: 18px; }

  .hero { padding: 60px 0 80px; }
  .hero-stats { gap: 32px; }
  .hero-stats strong { font-size: 28px; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 48px; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; padding: 16px 24px; }

  .catalog-section { padding: 70px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  .filters { gap: 8px; }
  .filter { padding: 8px 16px; font-size: 13px; }

  .contact-section { padding: 80px 0; }
  .btn-wa-big { padding: 16px 28px; font-size: 15px; }

  .wa-fab { width: 56px; height: 56px; bottom: 16px; right: 16px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
}

/* iOS / safe area */
@supports (padding: max(0px)) {
  .wa-fab {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
