/* ===========================================
   GEMATO CAKE — DESIGN SYSTEM
   Palette dérivée du logo : crème chaud, bordeaux profond,
   rose poudré, caramel, framboise pop.
=========================================== */

:root {
  --cream:        #FBF1E9;
  --cream-soft:   #F7E8DD;
  --maroon:       #4A1224;
  --maroon-soft:  #6B2438;
  --pink:         #F3AFC7;
  --pink-deep:    #E888AC;
  --caramel:      #E0934A;
  --raspberry:    #C23B6B;
  --cream-line:   rgba(74, 18, 36, 0.1);

  --font-display: 'Fraunces', serif;
  --font-script:  'Caveat', cursive;
  --font-body:    'Jost', sans-serif;

  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--maroon);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* subtle grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { background: var(--pink); color: var(--maroon); }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--raspberry);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== TYPE HELPERS ===== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--raspberry);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--pink); }

.script {
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--raspberry);
  font-size: 1.08em;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.15;
}
.section-head.light .eyebrow,
.section-head.light h2 { color: var(--cream); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--maroon);
  color: var(--cream);
  box-shadow: 0 8px 24px -8px rgba(74,18,36,0.5);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(74,18,36,0.6); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
}
.btn-ghost:hover { background: var(--maroon); color: var(--cream); transform: translateY(-3px); }

/* ===========================================
   NAV
=========================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 241, 233, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--maroon-soft);
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--raspberry);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:not(.nav-cta):hover { color: var(--maroon); }

.nav-cta {
  background: var(--maroon);
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: var(--raspberry); transform: translateY(-2px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--maroon); border-radius: 2px; transition: 0.3s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 28px 22px;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--maroon-soft);
  border-bottom: 1px solid var(--cream-line);
}

/* ===========================================
   HERO
=========================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 28px 100px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 35% 30%, var(--pink) 0%, transparent 70%);
  top: -180px; right: -160px;
  animation: float1 14s ease-in-out infinite;
}
.blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle at 60% 60%, var(--caramel) 0%, transparent 72%);
  bottom: -160px; left: -120px;
  opacity: 0.35;
  animation: float2 17s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-25px, 30px) scale(1.05); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px, -20px) scale(1.07); } }

.hero-sparkle {
  position: absolute;
  font-size: 1.4rem;
  color: var(--raspberry);
  opacity: 0.5;
  z-index: 1;
  animation: twinkle 3.2s ease-in-out infinite;
}
.s1 { top: 22%; left: 8%; animation-delay: 0s; font-size: 1.1rem; }
.s2 { top: 65%; right: 9%; animation-delay: 1.1s; }
.s3 { top: 14%; right: 32%; animation-delay: 2s; font-size: 0.9rem; }
@keyframes twinkle { 0%,100% { opacity: 0.2; transform: scale(0.85) rotate(0deg);} 50% { opacity: 0.7; transform: scale(1.1) rotate(15deg);} }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
}
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--raspberry);
  font-weight: 500;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero-title .script { font-size: 1.15em; }

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--maroon-soft);
  max-width: 480px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stack {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  z-index: 1;
  display: none;
}
.stack-card {
  position: absolute;
  border-radius: 24px;
  box-shadow: 0 20px 50px -15px rgba(74,18,36,0.35);
}
.card-a { width: 200px; height: 240px; background: linear-gradient(145deg, var(--pink), var(--pink-deep)); top: 10px; right: 60px; transform: rotate(8deg); animation: drift1 8s ease-in-out infinite; }
.card-b { width: 170px; height: 200px; background: linear-gradient(145deg, var(--caramel), #c97633); top: 60px; right: 0; transform: rotate(-6deg); animation: drift2 9s ease-in-out infinite; }
.card-c { width: 150px; height: 150px; background: linear-gradient(145deg, var(--maroon-soft), var(--maroon)); bottom: 0; right: 90px; transform: rotate(4deg); animation: drift1 10s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(-14px) rotate(5deg); } }
@keyframes drift2 { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(12px) rotate(-9deg); } }

@media (min-width: 1080px) { .hero-stack { display: block; } }

/* ===========================================
   MARQUEE
=========================================== */
.marquee {
  background: var(--maroon);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  animation: scroll-marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.marquee-track span:nth-child(even) { color: var(--pink); font-family: var(--font-body); font-size: 0.9rem; }
@keyframes scroll-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================================
   CRÉATIONS
=========================================== */
.creations { padding: 120px 28px; max-width: var(--container); margin: 0 auto; }

.creations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 70px;
}
.creation-card {
  padding: 48px 38px;
  border-radius: var(--radius-lg);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.creation-cake { background: linear-gradient(160deg, var(--cream-soft), var(--pink) 180%); }
.creation-cupcake { background: linear-gradient(160deg, var(--cream-soft), var(--caramel) 220%); }
.creation-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -20px rgba(74,18,36,0.25); }

.creation-icon { font-size: 2.6rem; margin-bottom: 22px; }
.creation-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.creation-card p { line-height: 1.65; color: var(--maroon-soft); font-size: 0.98rem; }

.manifesto {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--maroon-soft);
}

@media (max-width: 760px) {
  .creations-grid { grid-template-columns: 1fr; }
}

/* ===========================================
   GALERIE
=========================================== */
.galerie {
  background: var(--maroon);
  padding: 120px 28px;
  position: relative;
}
.galerie::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(243,175,199,0.12), transparent 55%);
  pointer-events: none;
}

.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.5);
}
.gallery-item:nth-child(1),
.gallery-item:nth-child(5),
.gallery-item:nth-child(10),
.gallery-item:nth-child(14) {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  transform: translateY(8px);
  opacity: 0;
  transition: 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(10),
  .gallery-item:nth-child(14) { grid-row: span 1; aspect-ratio: 4/5; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-caption { opacity: 1; transform: translateY(0); padding: 14px 12px 10px; font-size: 0.78rem; }
}

/* ===========================================
   COMMANDE
=========================================== */
.commande { padding: 120px 28px; }
.commande-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 70px;
  align-items: center;
}

.commande-text .eyebrow { margin-bottom: 14px; }
.commande-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 44px;
  line-height: 1.2;
}

.steps { display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.step h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--maroon-soft); line-height: 1.55; font-size: 0.95rem; }

.notice {
  background: var(--pink);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.commande-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-blob {
  position: absolute;
  inset: 8%;
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  background: linear-gradient(150deg, var(--pink), var(--caramel));
  animation: morph 9s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; }
  50% { border-radius: 58% 42% 35% 65% / 55% 60% 40% 45%; }
}
.visual-emoji { font-size: 5rem; position: relative; z-index: 1; filter: drop-shadow(0 12px 20px rgba(74,18,36,0.25)); }

@media (max-width: 860px) {
  .commande-inner { grid-template-columns: 1fr; gap: 50px; }
  .commande-visual { max-width: 240px; margin: 0 auto; }
}

/* ===========================================
   CONTACT
=========================================== */
.contact {
  background: var(--maroon);
  padding: 120px 28px;
  text-align: center;
}
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 18px;
}
.contact-sub {
  color: var(--pink);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(243,175,199,0.25);
  border-radius: var(--radius-md);
  padding: 28px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: 0.25s ease;
}
.contact-card:hover {
  background: var(--pink);
  border-color: var(--pink);
  transform: translateY(-4px);
}
.contact-card:hover .contact-label { color: var(--maroon); }
.contact-ic { font-size: 1.6rem; }
.contact-label { font-size: 0.82rem; color: var(--cream); font-weight: 500; transition: color 0.25s ease; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================================
   FOOTER
=========================================== */
.footer {
  background: #2C0B16;
  padding: 56px 28px;
  text-align: center;
}
.footer-logo { height: 60px; margin: 0 auto 18px; opacity: 0.92; }
.footer p { color: var(--pink); font-size: 0.95rem; margin-bottom: 4px; }
.footer-sub { color: rgba(243,175,199,0.55) !important; font-size: 0.82rem !important; }

/* ===========================================
   RESPONSIVE NAV SWITCH
=========================================== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ===== reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
