/* ====================================================
   SUGAR DADDIMT – Stylesheet
   Palette : crème, café, caramel
   ==================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:      #FDF6E3;
  --cream-dark: #F0E6C8;
  --coffee:     #3D1C0B;
  --coffee-mid: #6B3A2A;
  --caramel:    #C07840;
  --caramel-lt: #E8B870;
  --cocoa:      #2C1A0E;
  --white:      #FFFDF7;
  --text:       #3D2010;
  --text-light: #7A5840;
  --open-green: #2D6A4F;
  --open-bg:    #D8F3DC;
  --radius:     16px;
  --shadow:     0 8px 40px rgba(61,28,11,0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====================================================
   HERO
   ==================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #5a2a12 0%, #2C1A0E 55%, #130a04 100%);
  overflow: hidden;
}

/* Subtle grain texture via SVG */
.hero__noise {
  position: absolute;
  inset: 0;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* Radial glow behind logo */
.hero__glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,120,64,0.22) 0%, rgba(192,120,64,0.06) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* Decorative ring */
.hero__ring {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(232,184,112,0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
.hero__ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(232,184,112,0.08);
}

/* Floating decorative elements container */
.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.deco {
  position: absolute;
  animation: floatDeco var(--dur, 8s) ease-in-out var(--delay, 0s) infinite alternate;
}

/* Coffee beans */
.deco--bean {
  display: block;
  width: 36px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(232,184,112,0.3);
  opacity: 0.65;
}
.deco--bean::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: 1.5px;
  background: rgba(232,184,112,0.3);
  border-radius: 1px;
}
.deco--bean-sm {
  width: 22px;
  height: 12px;
}

/* Cross sparkles */
.deco--star {
  display: block;
  width: 16px;
  height: 16px;
  opacity: 0.55;
  animation: twinkleDeco var(--dur, 3.5s) ease-in-out var(--delay, 0s) infinite alternate;
}
.deco--star::before,
.deco--star::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--caramel-lt);
  border-radius: 2px;
}
.deco--star::before { width: 2px; height: 16px; }
.deco--star::after  { width: 16px; height: 2px; }
.deco--star-sm { width: 9px; height: 9px; }
.deco--star-sm::before { height: 9px; }
.deco--star-sm::after  { width: 9px; }

/* Glowing dots */
.deco--dot {
  display: block;
  border-radius: 50%;
  background: rgba(232,184,112,0.45);
  box-shadow: 0 0 6px rgba(232,184,112,0.4);
}

/* Ornament divider between logo and tagline */
.hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--caramel-lt);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  opacity: 0.6;
  margin-bottom: 12px;
}
.hero__ornament span {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--caramel-lt));
}
.hero__ornament span:last-child {
  background: linear-gradient(to left, transparent, var(--caramel-lt));
}

/* Gradient fade transition vers la section suivante */
.hero__layers {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--cream-dark));
  pointer-events: none;
  z-index: 3;
}

.layer { display: none; }
.layer--cocoa, .layer--cream, .layer--cocoa2 { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 0;
  animation: fadeUp 0.9s ease both;
}

.hero__logo {
  width: min(420px, 82vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.55));
  animation: fadeUp 0.9s ease both;
}

.hero__tagline {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(255,253,247,0.7);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.btn--hero {
  background: linear-gradient(135deg, var(--caramel-lt) 0%, var(--caramel) 50%, var(--coffee-mid) 100%);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(192,120,64,0.6), 0 0 0 0 rgba(232,184,112,0.5);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px 58px;
  margin-bottom: 20px;
  border: 2px solid rgba(232,184,112,0.35);
  animation: heroPulse 2.4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(192,120,64,0.6), 0 0 0 0 rgba(232,184,112,0.45); }
  50%       { box-shadow: 0 12px 40px rgba(192,120,64,0.8), 0 0 0 12px rgba(232,184,112,0); }
}

.btn--hero:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 48px rgba(192,120,64,0.75);
  background: linear-gradient(135deg, #f5d08a 0%, var(--caramel-lt) 50%, var(--caramel) 100%);
  color: var(--white);
  animation: none;
  border-color: rgba(245,208,138,0.6);
}

.hero__scroll-hint {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.hero__scroll-hint span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--caramel-lt), transparent);
  border-radius: 99px;
  animation: scrollHint 2s ease-in-out infinite;
}

/* ====================================================
   ABOUT
   ==================================================== */

.about {
  padding: 100px 0 90px;
  background: var(--cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 700px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--coffee);
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--caramel), var(--caramel-lt));
  margin-top: 10px;
}

.section-title--center {
  text-align: center;
  display: block;
}

.section-title--center::after {
  margin: 10px auto 0;
}

.section-title--light {
  color: var(--white);
}

.section-title--light::after {
  background: linear-gradient(90deg, var(--caramel-lt), rgba(232,184,112,0.4));
}

.about__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cream-dark);
  border: 1px solid rgba(192,120,64,0.25);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coffee-mid);
  letter-spacing: 0.03em;
}

.about__badge span { font-size: 1rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tiramisu illustration en CSS */
.tiramisu-card {
  position: relative;
  width: 260px;
  height: 180px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(61,28,11,0.25);
  display: flex;
  flex-direction: column;
}

.tiramisu-card__layer {
  width: 100%;
}

.tiramisu-card__layer--cocoa  { background: #3D2010; flex: 2; }
.tiramisu-card__layer--cream  { background: #F5ECD7; flex: 3; }
.tiramisu-card__layer--biscuit{ background: #C8956C; flex: 2; }
.tiramisu-card__layer--cream2 { background: #F5ECD7; flex: 3; }
.tiramisu-card__layer--cocoa2 { background: #2C1A0E; flex: 1.5; }

.tiramisu-card__dots {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 22px;
  background-image: radial-gradient(circle, rgba(92,50,20,0.35) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

/* ====================================================
   ORDER SECTION
   ==================================================== */

.order {
  padding: 52px 0 64px;
  background: linear-gradient(160deg, #2C1A0E 0%, #3d2010 60%, #2C1A0E 100%);
  position: relative;
  overflow: hidden;
}

.order::before {
  content: '';
  position: absolute;
  inset: 0;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.order .section-title { color: var(--white); }

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 680px;
  margin: 24px auto 28px;
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 3px solid var(--caramel);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.product-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.product-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
  position: absolute;
  inset: 0;
}

.product-card__placeholder span { font-size: 2.8rem; opacity: 0.4; }
.product-card__placeholder p {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-card__info {
  padding: 12px 16px 14px;
}

.product-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--coffee);
  margin-bottom: 5px;
}

.product-card__desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

.order-box {
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.3);
  padding: 32px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease both;
}

@media (max-width: 600px) {
  .order-box { padding: 36px 20px; }
}

/* Open state */
.order-box--open {
  background: var(--white);
  border: 2px solid var(--caramel-lt);
}

.order-box--open::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--caramel), var(--caramel-lt), var(--caramel));
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

.order-box__badge {
  display: inline-block;
  background: var(--open-bg);
  color: var(--open-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.order-box__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--coffee);
  margin-bottom: 14px;
}

.order-box__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 12px;
}

.order-box__deadline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--caramel);
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}

/* Closed state */
.order-box--closed {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  color: var(--text-light);
}

.order-box--closed .order-box__title {
  color: var(--coffee-mid);
  margin-bottom: 12px;
}

.order-box--closed .order-box__desc {
  line-height: 1.8;
}

.order-box__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: var(--caramel);
  opacity: 0.6;
}

.order-box__icon svg {
  width: 100%;
  height: 100%;
}

/* ====================================================
   BUTTON
   ==================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 16px 36px;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--caramel) 0%, var(--coffee-mid) 100%);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(192,120,64,0.4);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(192,120,64,0.5);
  background: linear-gradient(135deg, var(--caramel-lt) 0%, var(--caramel) 100%);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ====================================================
   FOOTER
   ==================================================== */

.footer {
  background: #0e0704;
  padding: 56px 0 36px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--caramel-lt), transparent);
  margin: 0 auto 28px;
}

.footer__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--caramel-lt);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,253,247,0.3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(255,253,247,0.2);
  letter-spacing: 0.05em;
}

/* ====================================================
   ANIMATIONS
   ==================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.8; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes floatDeco {
  0%   { transform: translateY(0)    rotate(0deg); }
  100% { transform: translateY(-16px) rotate(18deg); }
}

@keyframes twinkleDeco {
  0%   { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  100% { opacity: 0.75; transform: scale(1.3) rotate(45deg); }
}

@keyframes pulseGlow {
  0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}
}
