/* Site Page Specific Styles */

/* ----------------------------------------------------
   Header & Navigation
---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-gold);
  border-bottom: 2px solid rgba(27, 25, 24, 0.1);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(235, 177, 41, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 38px;
  width: auto;
}

.age-badge {
  font-family: var(--font-cta);
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  background-color: rgba(27, 25, 24, 0.12);
  color: var(--color-text-dark);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border: 1px solid rgba(27, 25, 24, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-subtitle);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-dark);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-dark);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ----------------------------------------------------
   Hero Section (Dark contrast card with wavy borders)
---------------------------------------------------- */
.hero-section {
  padding: 2.5rem 1.5rem 4.5rem;
  position: relative;
  background-color: var(--color-gold);
}

.hero-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--color-dark-surface);
  border-radius: 36px;
  color: var(--color-text-light);
  padding: 4.5rem 2.5rem 4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-dark-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-brand-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--color-text-light);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 780px;
  margin: 0 auto 2.2rem;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.hero-chips-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.hero-chip {
  font-family: var(--font-body);
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
}

/* Video Presentation (Clean, borderless embed) */
.hero-video-wrapper {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: #0d0c0b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}

/* ----------------------------------------------------
   Section: C'est quoi Palmelito ? (Concept & Carousel)
---------------------------------------------------- */
.concept-section {
  padding: 4.5rem 0 5rem;
  background-color: var(--color-gold);
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-heading {
  font-family: var(--font-title);
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-text-dark);
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}

.carousel-track-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  width: 100%;
  /* 3.8rem top and 4.8rem bottom padding completely prevents shadow cropping */
  padding: 3.8rem 2.5rem 4.8rem;
  margin: -1.5rem 0 -2rem;
}

.carousel-track-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 0 2rem;
}

.carousel-track::after {
  content: '';
  flex: 0 0 3.5rem; /* Padding after the last card */
  height: 1px;
  pointer-events: none;
}

.carousel-card-item {
  flex: 0 0 250px;
  scroll-snap-align: center;
  border-radius: 20px;
  border: 6px solid #141211;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38), 0 6px 14px rgba(0, 0, 0, 0.24);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.32s ease;
  background-color: #24211f;
  cursor: pointer;
  aspect-ratio: 5 / 7.2;
}

.carousel-card-item:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.52), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.carousel-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(27, 25, 24, 0.9);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 25;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-arrow:hover {
  background-color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.carousel-arrow.prev {
  left: 1.5rem;
}

.carousel-arrow.next {
  right: 1.5rem;
}

/* ----------------------------------------------------
   Section: Comment on joue ? (Rules timeline)
---------------------------------------------------- */
.rules-section {
  padding: 4.5rem 1.5rem;
  background-color: #f7ca5e;
  position: relative;
}

.rules-card-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background-color: var(--color-cream);
  border-radius: 32px;
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(27, 25, 24, 0.1);
  position: relative;
}

.rules-heading {
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  color: var(--color-text-dark);
  margin-bottom: 2.5rem;
}

.rules-content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: center;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.step-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-dark);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subtitle);
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step-info h3 {
  font-family: var(--font-subtitle);
  font-size: 1.4rem;
  color: var(--color-text-dark);
  margin-bottom: 0.35rem;
}

.step-info p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #4a453f;
  line-height: 1.5;
}

.pirate-mascot-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pirate-mascot-img {
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.15));
}

/* ----------------------------------------------------
   Section: Dans la boîte (Box contents)
---------------------------------------------------- */
.box-section {
  padding: 4.5rem 1.5rem;
  background-color: var(--color-cream);
  border-top: 1px solid rgba(27, 25, 24, 0.08);
}

.box-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.box-title {
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.box-subtitle {
  font-family: var(--font-subtitle);
  font-size: 1.15rem;
  color: #615a52;
  margin-bottom: 2.5rem;
}

.box-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.box-item-card {
  background-color: var(--color-dark-surface);
  border-radius: 20px;
  padding: 1.25rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--color-dark-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.box-item-card:hover {
  transform: translateX(6px);
  border-color: var(--color-gold);
}

.box-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(235, 177, 41, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.box-item-texts h4 {
  font-family: var(--font-subtitle);
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 0.2rem;
}

.box-item-texts p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dim);
}

/* ----------------------------------------------------
   Section: Prêt à embarquer ? (CTA Banner with Waves)
---------------------------------------------------- */
.cta-banner-section {
  position: relative;
  background-color: var(--color-dark);
  color: var(--color-text-light);
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.cta-banner-content {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-tag {
  font-family: var(--font-subtitle);
  font-size: 1rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  display: block;
}

.cta-title {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: var(--color-text-light);
}

.cta-pitch {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-text-dim);
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

/* ----------------------------------------------------
   Section: FAQ (Accordion)
---------------------------------------------------- */
.faq-section {
  padding: 5rem 1.5rem;
  background-color: var(--color-dark-surface);
  color: var(--color-text-light);
  border-top: 1px solid var(--color-dark-border);
}

.faq-wrapper {
  max-width: 840px;
  margin: 0 auto;
}

.faq-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--color-gold);
}

.faq-subtitle {
  font-family: var(--font-subtitle);
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text-dim);
  margin-bottom: 2.5rem;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border-radius: 16px;
  background-color: var(--color-dark-card);
  border: 1px solid var(--color-dark-border);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.accordion-item.active {
  border-color: var(--color-gold);
  background-color: #332f2c;
}

.accordion-trigger {
  font-family: var(--font-subtitle);
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-light);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.accordion-trigger span {
  font-family: var(--font-subtitle);
}

.accordion-icon {
  font-size: 1.3rem;
  color: var(--color-gold);
  transition: transform 0.25s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.6rem;
  color: var(--color-text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  max-height: 250px;
  padding: 0 1.6rem 1.4rem;
  transition: max-height 0.35s ease-in-out, padding 0.3s ease;
}

/* ----------------------------------------------------
   Footer & Socials
---------------------------------------------------- */
.site-footer {
  font-family: var(--font-body);
  background-color: #121110;
  color: #8c857e;
  padding: 3.5rem 1.5rem 2.8rem;
  border-top: 1px solid #292523;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

/* Social Media Block (Rejoindre l’Équipage) */
.footer-socials-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
}

.footer-socials-title {
  font-family: var(--font-cta);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(235, 177, 41, 0.85);
}

.footer-socials-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(28, 25, 23, 0.9);
  border: 1px solid rgba(235, 177, 41, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
}

.social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.social-emoji {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-block;
}

/* Specific Social Button Theme Colors (Matching play-palmelito) */
.social-instagram {
  color: #f472b6;
}
.social-instagram:hover {
  background-color: rgba(80, 7, 36, 0.85);
  border-color: rgba(244, 114, 182, 0.55);
  color: #f9a8d4;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
}

.social-tiktok {
  color: #22d3ee;
}
.social-tiktok:hover {
  background-color: rgba(8, 51, 68, 0.85);
  border-color: rgba(34, 211, 238, 0.55);
  color: #67e8f9;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}

.social-youtube {
  color: #ef4444;
}
.social-youtube:hover {
  background-color: rgba(69, 10, 10, 0.85);
  border-color: rgba(239, 68, 68, 0.55);
  color: #f87171;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.social-ulule {
  color: #f59e0b;
}
.social-ulule:hover {
  background-color: rgba(69, 26, 3, 0.85);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.social-bmc {
  color: #eab308;
}
.social-bmc:hover {
  background-color: rgba(66, 32, 6, 0.85);
  border-color: rgba(234, 179, 8, 0.55);
  color: #fde047;
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.35);
}

/* Footer Bottom Meta Row */
.footer-meta-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  font-family: var(--font-body);
  color: #8c857e;
  font-size: 0.88rem;
}

/* ----------------------------------------------------
   Responsive Layout Rules
---------------------------------------------------- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-gold);
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--color-dark);
  }
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide carousel arrow buttons on touch screens so they do not overlap cards */
  .carousel-arrow {
    display: none;
  }

  .carousel-track-wrapper {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .rules-content-grid {
    grid-template-columns: 1fr;
  }
  .pirate-mascot-box {
    order: -1;
  }
  .pirate-mascot-img {
    max-width: 150px;
  }
}

@media (max-width: 640px) {
  /* Navbar Compactness */
  .nav-container {
    padding: 0.7rem 1rem;
  }
  .nav-brand {
    gap: 8px;
  }
  .nav-logo-img {
    height: 32px;
  }
  .age-badge-extra {
    display: none; /* Hide "• Dirty card game" to gain space */
  }
  .age-badge {
    padding: 3px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn-primary {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
  .mobile-menu-toggle {
    width: 24px;
  }

  /* Hero Section */
  .hero-section {
    padding: 1.5rem 1rem 3.5rem;
  }
  .hero-wrapper {
    padding: 2.5rem 1.2rem 2.2rem;
    border-radius: 24px;
  }
  .hero-brand-logo {
    max-width: 200px;
    margin-bottom: 1.2rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 0.9rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.55;
  }
  .hero-chips-row {
    gap: 0.4rem;
    margin-bottom: 2.2rem;
  }
  .hero-chip {
    padding: 5px 11px;
    font-size: 0.78rem;
  }
  .video-player-container {
    border-radius: 14px;
  }

  /* Concept & Carousel Section */
  .concept-section {
    padding: 3.5rem 0 4rem;
  }
  .section-heading {
    font-size: 2.4rem;
    margin-bottom: 1rem;
  }
  .carousel-track-wrapper {
    padding: 2.5rem 1.2rem 3.5rem;
  }
  .carousel-track {
    gap: 1.2rem;
  }
  .carousel-track::after {
    flex: 0 0 3.5rem; /* Generous end padding on mobile */
  }
  .carousel-card-item {
    flex: 0 0 215px;
    border-radius: 18px;
    border-width: 5px;
  }

  /* Rules Section */
  .rules-section {
    padding: 3.5rem 1rem;
  }
  .rules-card-wrapper {
    padding: 2.2rem 1.2rem;
    border-radius: 24px;
  }
  .rules-heading {
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
  }
  .timeline-steps {
    gap: 1.5rem;
  }
  .step-card {
    gap: 1rem;
  }
  .step-number {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
  .step-info h3 {
    font-size: 1.25rem;
  }
  .step-info p {
    font-size: 0.92rem;
  }

  /* Box Section */
  .box-section {
    padding: 3.5rem 1rem;
  }
  .box-title {
    font-size: 2.2rem;
  }
  .box-subtitle {
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }
  .box-item-card {
    padding: 1rem 1.2rem;
    gap: 1rem;
    border-radius: 16px;
  }
  .box-item-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .box-item-texts h4 {
    font-size: 1.1rem;
  }
  .box-item-texts p {
    font-size: 0.88rem;
  }

  /* CTA Banner Section */
  .cta-banner-section {
    padding: 3.8rem 1.2rem;
  }
  .cta-title {
    font-size: 2.4rem;
  }
  .cta-pitch {
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }

  /* FAQ Section */
  .faq-section {
    padding: 3.8rem 1.2rem;
  }
  .faq-title {
    font-size: 2.4rem;
  }
  .faq-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
  }
  .accordion-trigger {
    padding: 1rem 1.2rem;
    font-size: 0.98rem;
  }
  .accordion-content {
    padding: 0 1.2rem;
    font-size: 0.9rem;
  }
  .accordion-item.active .accordion-content {
    padding: 0 1.2rem 1.2rem;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
  .footer-links {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}
