/* ============ Business is Business — styles & animations ============ */

body {
  font-family: 'Quicksand', sans-serif;
  color: #251f31;
  background: #ffffff;
}

/* Layout safety: prevent any horizontal scroll caused by wide children */
html, body {
  overflow-x: hidden;
}

/* Pieces marquee container: hide overflow and keep track inline */
.pieces-scroll-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.pieces-track {
  display: flex;
  gap: 12px;
  align-items: center;
  transform: translateX(0);
  will-change: transform;
  min-width: 200% !important;
  padding: 0;
}

.piece-card {
  flex: 0 0 auto;
  width: 160px !important;
  min-width: 160px !important;
  transition: background-color 0.3s ease;
}

.piece-card:hover {
  background-color: #e8e5da !important;
}

.piece-label {
  font-size: 9px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.4em !important;
}

.piece-name {
  font-size: 16px !important;
  line-height: 1.2 !important;
  text-align: center;
}

/* Ensure regles images cover their card */
.regle-card img,
.step-card img,
.piece-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Règles page: force rule images to fully fill and center without extra shrink */
.img-zoom { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center center !important; }
.img-zoom-wrap { overflow: hidden; }

/* Ensure existing global rules (e.g. .card-lift img) don't cap the height of rule images */
.img-zoom { max-height: none !important; }

/* Hide the big background numbers completely */
.regle-number { display: none !important; }

/* Ensure the card content sits above the hidden number */
button.relative > .flex-1 { position: relative; z-index: 2; }

/* Small number (blue) above title stays on top */
button.relative .font-body { position: relative; z-index: 3; }

/* Card reveal: ensure independence and correct stacking */
article.reveal { position: relative; }
article.reveal .card-lift { position: relative; z-index: 2; max-width: min(100%, 980px); margin-inline: auto; }


/* Newsletter visual tweaks to better match reference */
.newsletter-hero {
  position: relative;
  background-position: center;
  background-size: cover;
  filter: saturate(1.06) contrast(1.03);
  overflow: hidden;
  min-height: 220px;
}

.newsletter-hero .newsletter-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease, opacity 0.8s ease;
  transform: scale(1.02);
}

.reveal-visible .newsletter-hero .newsletter-bg {
  opacity: 1;
  transform: scale(1);
}

.newsletter-headline {
  font-size: 19px;
  line-height: 1.28;
  max-width: 640px;
  margin: 0 auto 12px;
}

#newsletter .newsletter-logo-img {
  width: min(440px, 100%);
}

.newsletter-form {
  background: rgba(255,255,255,0.95);
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(37,31,49,0.12);
}

.newsletter-cta {
  background: #00A676;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
}

/* ---------- Marquee ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* ---------- Pieces scroll animation ---------- */
@keyframes pieces-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.pieces-track.animated { animation: pieces-scroll 20s linear infinite !important; will-change: transform !important; } .pieces-track.animated:hover { animation-play-state: paused !important; }

/* ---------- Scroll reveal (tuned for Règles page) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.12s; /* card animates slightly after decorative elements */
}
.reveal-visible { opacity: 1; transform: translateY(0); transition-delay: 0s; }

.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.reveal-visible, .reveal-right.reveal-visible { opacity: 1; transform: translateX(0); }

/* Staggered children */
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.reveal-visible > * { opacity: 1; transform: translateY(0); }
.stagger.reveal-visible > *:nth-child(1) { transition-delay: 0.04s; }
.stagger.reveal-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.reveal-visible > *:nth-child(3) { transition-delay: 0.20s; }
.stagger.reveal-visible > *:nth-child(4) { transition-delay: 0.28s; }
.stagger.reveal-visible > *:nth-child(5) { transition-delay: 0.36s; }
.stagger.reveal-visible > *:nth-child(6) { transition-delay: 0.44s; }

/* ---------- Animated section titles ---------- */
.title-reveal {
  display: inline-block;
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-visible .title-reveal, .title-reveal.reveal-visible {
  clip-path: inset(0 0 -20% 0);
  transform: translateY(0);
}

/* ---------- Hero ---------- */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-logo { animation: heroFade 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.hero-tagline { animation: heroFade 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }

.hero-video-wrap { position: relative; overflow: hidden; }
.hero-video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15, 20, 40, 0.25), rgba(15, 20, 40, 0.55));
}
.hero-video-wrap video { z-index: 0; }
.hero-overlay { z-index: 1; }
.hero-logo, .hero-tagline { position: relative; z-index: 2; }

/* Precise hero headline styling to match reference */
.hero-tagline {
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 800;
  font-family: 'Archivo Black', 'Quicksand', sans-serif;
  text-align: center;
  font-size: clamp(28px, 6.8vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-top: 8px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure the forced break remains visible */
.hero-tagline br { display: block; }

.hero-logo { display: block; margin: 0 auto; }

/* Game info icons (remove decorative containers) */
.game-icon { width: 64px; height: 64px; object-fit: contain; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1); }
.game-icon:hover { transform: translateY(-6px) scale(1.02); }

/* Normalize piece images */
.card-lift img { max-height: 84px; object-fit: contain; }

/* Modal close button */
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(37,31,49,0.12);
  background: #fffcef;
  color: #251f31;
  cursor: pointer;
}

/* Social SVG images (make them white and slightly larger) */
.social-svg { width: 28px; height: 28px; }
.social-btn { width: 48px; height: 48px; display: inline-flex; align-items:center; justify-content:center; }

/* ---------- Carousel (Maîtrisez les règles) ---------- */
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}
.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.carousel-dot {
  width: 12px; height: 12px; border-radius: 9999px;
  background: #ece6d4;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.carousel-dot.is-active { background: #725c00; transform: scale(1.25); }

/* ---------- Modal (Étapes du jeu) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20, 18, 30, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fffcef;
  border-radius: 32px;
  max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 40px;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.35);
}
.modal-backdrop.is-open .modal-card { transform: translateY(0) scale(1); }

.step-card { cursor: pointer; }
.step-card .step-img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.step-card:hover .step-img { transform: scale(1.07); }
.step-card .step-label { transition: color 0.3s ease, letter-spacing 0.3s ease; }
.step-card:hover .step-label { color: #725c00; letter-spacing: 0.3em; }

/* ---------- Timeline (Rythme d'une ascension) ---------- */
.timeline-item { position: relative; padding-left: 24px; }
.timeline-item::before {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 2px; height: 0;
  background: #a8944f;
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-visible .timeline-item::before { height: 100%; }
.reveal-visible .timeline-item:nth-child(1)::before { transition-delay: 0.1s; }
.reveal-visible .timeline-item:nth-child(2)::before { transition-delay: 0.35s; }
.reveal-visible .timeline-item:nth-child(3)::before { transition-delay: 0.6s; }
.reveal-visible .timeline-item:nth-child(4)::before { transition-delay: 0.85s; }

/* ---------- FAQ accordion ---------- */
.faq-answer {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.faq-answer.is-open { max-height: 260px; opacity: 1; }
.faq-icon { transition: transform 0.3s ease; }
.faq-icon.is-open { transform: rotate(45deg); }
.faq-item { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.faq-item:hover { box-shadow: 0 8px 24px -8px rgba(0,0,0,0.12); }

.faq-chip {
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.faq-chip:hover { transform: translateY(-2px); }
.faq-chip.is-active { background: #251f31; border-color: #251f31; }
.faq-chip.is-active span { color: #fff !important; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-subscribe,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -14px rgba(21, 63, 154, 0.45);
  border: 1px solid rgba(37, 31, 49, 0.08);
  background: #153f9a;
  color: #ffffff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover,
.btn-subscribe:hover,
.btn-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -18px rgba(21, 63, 154, 0.55);
}
.btn-primary:active,
.btn-subscribe:active,
.btn-cta:active {
  transform: translateY(1px);
}
.btn-primary:focus-visible,
.btn-subscribe:focus-visible,
.btn-cta:focus-visible {
  outline: 3px solid rgba(114, 92, 0, 0.22);
  outline-offset: 4px;
}

.btn-subscribe {
  background: #b2f74c;
  color: #111f00;
  border-color: #486f00;
}
.btn-subscribe:hover {
  background: #9bd740;
}

.btn-cta {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: 0 10px 20px -14px rgba(21, 63, 154, 0.45);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
}

/* ---------- Pieces carousel ---------- */
.pieces-scroll-wrap { overflow: hidden; }
.pieces-track { display: flex; gap: 20px; align-items: stretch; will-change: transform; }
.piece-card {
  flex: 0 0 auto;
  background: #f2ead9;
  border-radius: 36px;
  padding: 24px 20px;
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(37,31,49,0.08);
}
.piece-image { width: 100%; height: 208px; overflow: hidden; border-radius: 28px; }
.piece-image img { width: 100%; height: 100%; object-fit: cover; }
.piece-label { font-size: 10px; letter-spacing: 0.45em; text-transform: uppercase; color: #584f4d; }
.piece-name { font-family: 'Quicksand', sans-serif; font-weight: 700; color: #251f31; font-size: 1.125rem; text-align: center; }

/* Specific fix: ensure the gangster hat image is shown whole (no side cropping) */
.piece-image img[src*="gangster"] {
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent;
}

/* ---------- Carousel controls ---------- */
.carousel-controls {
  position: absolute;
  bottom: 20px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}
.carousel-nav {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.2);
  padding: 0;
}
.carousel-nav img { width: 24px; height: 24px; }
.carousel-nav:hover { transform: translateY(-1px); }
.carousel-nav:focus-visible { outline: 2px solid rgba(21,63,154,0.25); }

/* ---------- Images hover ---------- */
.img-zoom-wrap { overflow: hidden; }
.img-zoom { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.img-zoom-wrap:hover .img-zoom { transform: scale(1.06); }
/* Favor top-focused crops for large hero-like images */
.img-zoom { object-position: center top; }

.card-lift { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.card-lift:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2); }

/* ---------- Countdown pulse ---------- */
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 63, 154, 0.14); }
  50% { box-shadow: 0 0 0 12px rgba(21, 63, 154, 0); }
}
.countdown-pulse { animation: pulseSoft 2.6s ease-in-out infinite; }

/* ---------- Coming soon badge ---------- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.coming-soon {
  background: linear-gradient(90deg, #725c00 0%, #d4b95a 40%, #725c00 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3.5s linear infinite;
}

/* ---------- Language toggle ---------- */
.lang-btn {
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-btn.is-active { background: #251f31; color: #fff; }

/* ---------- Sidebar active indicator ---------- */
.nav-link { position: relative; }
.nav-indicator {
  position: absolute;
  left: 14px; bottom: 0px;
  height: 3px; width: 36px;
  border-radius: 126px;
  background: #090909;
}

/* Desktop nav hover: smooth color transition, no hover on touch */
.nav-link { transition: color 0.25s ease; }

/* ===== Layout safety fixes =====
   Ensure main content always begins after the fixed sidebar on desktop
   Do NOT change global widths — only apply a desktop offset so nothing sits beneath the aside.
*/
@media (min-width: 1024px) {
  body > aside {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 228px;
  }

  /* Defensive: sidebar may be rendered inside #sidebar-root div — handle that wrapper too */
  #sidebar-root > aside {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 228px;
    z-index: 60;
    background: inherit;
  }

  /* The main wrapper is the next sibling after the aside; ensure it keeps the exact left offset. */
  body > .lg\:ml-\[228px\] {
    margin-left: 228px !important;
    position: relative; /* ensure stacking context */
    width: auto !important;
    overflow-x: hidden; /* prevent wide children from causing page scroll */
  }

  /* Ensure direct sibling wrapper after aside is offset (robust selector) */
  aside + div,
  /* sibling when sidebar is wrapped */
  #sidebar-root + div {
    margin-left: 228px !important;
  }

  /* Ensure the main column never exceeds the remaining viewport width */
  body > .lg\:ml-\[228px\] {
    max-width: calc(100% - 228px) !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* If the wrapper uses the utility class but is not a direct child, ensure it still respects the main column width */
  #sidebar-root + div.lg\:ml-\[228px\],
  #sidebar-root + .lg\:ml-\[228px\] {
    max-width: calc(100% - 228px) !important;
    box-sizing: border-box !important;
  }

  /* Keep section widths natural (don't force full-width) to preserve centering. */

  /* Keep centered containers centered; avoid forcing left alignment that breaks layout. */

  /* prevent marquee or tracks from forcing page width */
  .marquee-track, .pieces-track { max-width: 100%; }

  /* ensure aside remains above content */
  body > aside { z-index: 60; }

  /* Defensive fallback: shift any top-level content right of the fixed sidebar
     to guarantee no section can sit beneath it. Exclude the aside itself and mobile/backdrop panels. */
  body > *:not(aside):not(#mobile-menu-backdrop):not(script):not(style) {
    margin-left: 228px !important;
  }

      /* Note: avoid padding on body (creates visual gap). Rely on sibling margin rules instead. */

  /* Defensive: if utility class is missing, ensure the utility equivalent applies */
  .lg\:ml-\[228px\] { margin-left: 228px !important; }
}
.nav-link:hover { color: #251f31; }

/* ---------- Pieces slow marquee ---------- */
@keyframes piecesScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.pieces-scroll-wrap { overflow: hidden; }
.pieces-track { display: flex; gap: 20px; align-items: stretch; min-width: 0; will-change: transform; }
.pieces-scroll-wrap:hover { cursor: grab; }
.pieces-track.animated { animation: piecesScroll 40s linear infinite; }
.pieces-track { animation-play-state: running; }
.pieces-track:hover { animation-play-state: paused; }

/* Regles big number positioning */
.regle-number {
  left: -8px !important;
  top: 6px !important;
  color: rgba(168,148,79,0.2) !important;
  z-index: 2;
}

/* Mobile menu */
.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: stretch; justify-content: flex-end;
  background: rgba(0,0,0,0.3);
}
.mobile-menu-backdrop.is-open { display: flex; }
.mobile-menu-panel {
  width: 320px; max-width: 92%; background: #fffcef; padding: 28px; box-shadow: -30px 0 60px -20px rgba(0,0,0,0.35); transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.mobile-menu-backdrop.is-open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-close { background: transparent; border: none; font-size: 28px; line-height: 1; color: #251f31; font-weight: 700; }

/* Image modal (plateau) specific tweaks to avoid huge black margins */
#bib-image-modal.modal-backdrop { background: rgba(0,0,0,0.45); }
#bib-image-modal .modal-card { max-width: 960px; width: auto; padding: 12px; background: transparent; box-shadow: none; }
#bib-image-modal .modal-card .relative { background: transparent; box-shadow: none; border-radius: 12px; overflow: visible; }
#bib-image-modal .modal-card img { display: block; margin: 0 auto; width: auto; max-width: calc(100% - 48px); height: auto; max-height: calc(100vh - 160px); object-fit: contain; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-logo, .hero-tagline, .countdown-pulse, .coming-soon { animation: none !important; }
  .reveal, .reveal-left, .reveal-right, .stagger > *, .title-reveal {
    opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important;
  }
  .timeline-item::before { height: 100% !important; transition: none !important; }
}

/* ---------- FORCE FIXES (non-structural overrides) ---------- */
/* hero: always single-line */
.hero-tagline { white-space: nowrap; }

/* adjust TOURNOIS button to match Figma proportions */
.btn-cta { min-height: 36px !important; padding: 0 18px !important; border-radius: 22px !important; font-size: 0.875rem !important; letter-spacing: 0.16em !important; }

/* carousel images: crop from top to keep faces visible */
.carousel-slide img { object-position: center top !important; }

/* newsletter background image as DOM element so we can apply filters */
.newsletter-hero { position: relative; overflow: hidden; }
.newsletter-hero .newsletter-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; transform: translateZ(0); filter: saturate(1.85) contrast(1.35) brightness(0.66); z-index: 0; }
.newsletter-hero { position: relative; }
.newsletter-hero::after { content: ''; position: absolute; inset: 0; background: #213A8B; opacity: 0.72; mix-blend-mode: multiply; z-index: 1; pointer-events: none; }
.newsletter-hero .newsletter-bg + .relative { position: relative; z-index: 2; }

/* Hover: gently scale the background image for a subtle parallax feel */
.newsletter-hero:hover .newsletter-bg {
  transform: scale(1.08) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.newsletter-hero .newsletter-bg + .relative::before { content: none; }

/* Newsletter — precise layout matching reference */
.newsletter-hero {
  border-radius: 56px; /* keep large rounded corners */
  min-height: 320px; /* reduced height to match reference */
}
.newsletter-hero .newsletter-bg {
  transition: transform 0.6s ease, filter 0.4s ease;
  transform: scale(1.02);
  filter: saturate(1.15) contrast(1.05) brightness(0.95);
}
.newsletter-hero .relative {
  position: relative; z-index: 2; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px 24px;
}
.newsletter-hero p {
  font-size: 30px; /* match reference headline size */
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
}

/* form: big rounded pill centered and slightly overlapping lower area */
.newsletter-form {
  position: relative; z-index: 3; display:flex; align-items:center; justify-content:space-between;
  width: 88%; max-width: 880px; height: 64px; background: rgba(255,255,255,0.98);
  padding: 6px; border-radius: 999px; box-shadow: 0 22px 54px -24px rgba(0,0,0,0.35);
}
.newsletter-form input[type="email"] {
  flex: 1; height: 100%; min-width: 0; border-radius: 999px; padding: 14px 20px; background: transparent; font-weight:700; font-size:1rem; color:#1f2732;
}
.newsletter-form .btn-subscribe {
  height: 56px; min-width: 170px; border-radius: 999px; margin-left: 12px; padding: 0 28px; font-size: 1rem; box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* ensure the big logo sits above text and scales like reference */
#newsletter-logo-img { width: 280px; max-width: 60%; height: auto; margin-bottom: 6px; }

/* small screens: reduce sizes */
@media (max-width: 768px) {
  .newsletter-hero { min-height: 300px; }
  .newsletter-hero p { font-size: 20px; }
  .newsletter-form { width: 92%; height: 56px; }
  #newsletter-logo-img { width: 220px; }
}

/* remove any translucent overlay left from older styles */
.newsletter-hero > .absolute, .newsletter-hero > .overlay { background: transparent !important; }

/* ========== PLATEAU MODAL ========== */
@keyframes plateau-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-plateau-in {
  animation: plateau-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#plateau-modal {
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.78);
}

#plateau-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

#plateau-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.plateau-modal-content {
  animation: plateau-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  width: min(96vw, 1100px);
  max-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.plateau-modal-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
}

#plateau-modal-close {
  z-index: 20;
  transition: all 0.2s ease;
}

#plateau-modal-close:hover {
  transform: scale(1.1);
  background-color: rgba(37, 31, 49, 0.9);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-btn:hover {
  background-color: #f7f5ec;
  box-shadow: 0 4px 12px rgba(37, 31, 49, 0.1);
  transform: scale(1.05);
}

.mobile-menu-btn.active {
  background: linear-gradient(135deg, #251f31 0%, #49454c 100%);
  border-color: #251f31;
}

.mobile-menu-btn.active svg {
  stroke: white;
  transform: rotate(90deg);
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-backdrop.is-open {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 280px;
  background: #f6f1e0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 20px;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-backdrop.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #251f31;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
  color: #49454c;
}

.mobile-menu-panel nav {
  margin-top: 60px;
}

.mobile-menu-panel nav a {
  display: block;
  padding: 16px 0;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #251f31;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 31, 49, 0.1);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.mobile-menu-panel nav a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 31, 49, 0.05);
  transition: left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-panel nav a:hover::before {
  left: 0;
}

.mobile-menu-panel nav a:hover {
  padding-left: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-panel {
    width: 100%;
  }
}
