/* Les polices Google Fonts sont désormais préchargées dans le head d'index.html pour des performances optimales */

/* variables de Design System */
:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Couleurs */
  --bg-primary: #0a0812;
  --bg-secondary: #131122;
  --bg-card: rgba(26, 23, 44, 0.65);
  --bg-glass: rgba(15, 13, 28, 0.8);
  
  --text-primary: #ffffff;
  --text-secondary: #a19eb6;
  --text-muted: #726e8a;
  
  --color-brand: #ff5e3a; /* Corail dynamique */
  --color-brand-hover: #ff7657;
  --color-accent: #7c3aed; /* Violet mystique */
  --color-accent-hover: #9055f7;
  --color-success: #10b981;
  
  --gradient-brand: linear-gradient(135deg, #ff5e3a 0%, #7c3aed 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(255, 94, 58, 0.3) 0%, rgba(124, 58, 237, 0.1) 100%);
  --gradient-card-active: linear-gradient(135deg, rgba(255, 94, 58, 0.4) 0%, rgba(124, 58, 237, 0.4) 100%);
  
  /* Ombres & Effets */
  --shadow-glow: 0 8px 32px 0 rgba(255, 94, 58, 0.15);
  --shadow-glow-active: 0 12px 40px 0 rgba(255, 94, 58, 0.3);
  --shadow-accent: 0 8px 32px 0 rgba(124, 58, 237, 0.2);
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 28px;
  
  /* Transition par défaut */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 94, 58, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- COMPONENT 4: CountdownBanner (Sticky Header) --- */
.countdown-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.countdown-tag {
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-border 2s infinite;
}

.countdown-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.countdown-timer {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand);
  background: rgba(255, 94, 58, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 94, 58, 0.2);
  letter-spacing: 0.03em;
  display: inline-block;
  min-width: 160px;
}

/* --- COMPONENT 1: HeroSection --- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px 20px;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url('/assets/footer_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.45; /* Augmenté à 45% pour rendre le visuel bien visible tout en gardant le texte lisible */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 18, 0.6) 0%, var(--bg-primary) 95%);
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-brand);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-brand);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem); /* Typographie fluide et réactive */
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem); /* Typographie fluide et réactive */
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400; /* Augmenté à 400 pour garantir une lisibilité maximale par-dessus l'image de fond */
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
  cursor: pointer;
  min-height: 48px; /* mobile click target friendly */
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-active);
}

.hero-cta svg {
  transition: var(--transition-smooth);
}

.hero-cta:hover svg {
  transform: translateY(3px);
}

/* --- Ambient Glows & Glassmorphic Game Decorations --- */
.hero-glow-1 {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.15) 0%, rgba(192, 132, 252, 0) 70%);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow1 12s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 55%;
  height: 65%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0) 70%);
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow2 15s ease-in-out infinite alternate;
}

@keyframes pulseGlow1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(50px, 30px) scale(1.15); opacity: 1; }
}

@keyframes pulseGlow2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(-40px, -40px) scale(1.2); opacity: 0.9; }
}

.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Cartes à jouer Glassmorphic */
.deco-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.5s ease;
}

.card-left {
  width: 80px;
  height: 120px;
  top: 25%;
  left: 8%;
  transform: rotate(-15deg);
  animation: floatCardLeft 8s ease-in-out infinite alternate;
}

.card-right {
  width: 75px;
  height: 112px;
  top: 38%;
  right: 6%;
  transform: rotate(12deg);
  animation: floatCardRight 10s ease-in-out infinite alternate;
}

.card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-serif);
}

.card-suit {
  font-size: 1.6rem;
  line-height: 1;
}

.card-val {
  font-size: 1.2rem;
  font-weight: 700;
  align-self: flex-end;
}

/* Meeple Glassmorphic */
.deco-meeple {
  position: absolute;
  width: 55px;
  height: 55px;
  top: 18%;
  right: 22%;
  transform: rotate(-8deg);
  animation: floatMeeple 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

/* Dé Glassmorphic */
.deco-dice {
  position: absolute;
  width: 44px;
  height: 44px;
  bottom: 18%;
  left: 20%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: rotate(35deg);
  animation: floatDice 11s ease-in-out infinite alternate-reverse;
}

.dice-face {
  position: relative;
  width: 100%;
  height: 100%;
}

.dice-face .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.dot.dot-1 { top: 8px; left: 8px; }
.dot.dot-2 { top: 8px; right: 8px; }
.dot.dot-3 { top: 19px; left: 19px; }
.dot.dot-4 { bottom: 8px; left: 8px; }
.dot.dot-5 { bottom: 8px; right: 8px; }

/* --- Floating Keyframes --- */
@keyframes floatCardLeft {
  0% { transform: translateY(0) rotate(-15deg); }
  100% { transform: translateY(-20px) rotate(-10deg); }
}

@keyframes floatCardRight {
  0% { transform: translateY(0) rotate(12deg); }
  100% { transform: translateY(-25px) rotate(18deg); }
}

@keyframes floatMeeple {
  0% { transform: translateY(0) rotate(-8deg); }
  100% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes floatDice {
  0% { transform: translateY(0) rotate(35deg); }
  100% { transform: translateY(-18px) rotate(50deg); }
}

/* Adaptabilité mobile pour les décorations */
@media (max-width: 768px) {
  .deco-card {
    display: none; /* Cacher les cartes sur mobile pour éviter de surcharger */
  }
  .deco-meeple {
    top: 15%;
    right: 10%;
    width: 44px;
    height: 44px;
  }
  .deco-dice {
    bottom: 12%;
    left: 8%;
  }
  .hero-glow-1, .hero-glow-2 {
    filter: blur(60px);
  }
}

/* --- SECTION SEPARATOR: Shape Divider --- */
.shape-divider {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  background-color: var(--bg-primary);
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.shape-divider .shape-fill {
  fill: var(--bg-secondary);
}

/* --- MAIN CONTAINER --- */
main {
  background-color: var(--bg-secondary);
  padding: 60px 20px 100px 20px;
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* --- COMPONENT 2: SituationSelector (Le Coeur du Tunnel) --- */
.situation-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 60px;
}

@media(min-width: 600px) {
  .situation-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px) {
  .situation-selector {
    grid-template-columns: repeat(4, 1fr);
  }
}

.situation-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  user-select: none;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 160px; /* touch-thumb optimization */
}

/* Background overlay on active card */
.situation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-card-active);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}

.situation-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 94, 58, 0.3);
  box-shadow: var(--shadow-glow);
}

.situation-card.active {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-glow-active);
}

.situation-card.active::before {
  opacity: 0.15;
}

.situation-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.situation-card.active .situation-icon-container {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.situation-title-card {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.situation-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.situation-radio {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* indicator dot */
.situation-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.situation-card.active .situation-indicator {
  border-color: var(--color-brand);
  background-color: var(--color-brand);
}

.situation-card.active .situation-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
}

/* --- COMPONENT 3: ProductGrid & ProductCard --- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  transition: var(--transition-smooth);
}

@media(min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 1;
  transform: translateY(0);
}

/* Animation classes for filtering */
.product-card.fade-out {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.product-card.hidden {
  display: none !important;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-accent);
}

/* Media wrapper for HTML5 video */
.product-media-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background-color: #000;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Video controls/mute indicator */
.video-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.video-badge-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: blink-live 1.5s infinite;
}

/* Mute button on video */
.video-mute-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition-smooth);
}

.video-mute-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Product Content */
.product-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-brand);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-hook {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Accordion for Technical details */
.product-accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
  overflow: hidden;
}

.product-accordion-header {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  min-height: 48px; /* mobile-friendly touch zone */
}

.product-accordion-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-accordion-arrow {
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.product-accordion.open .product-accordion-arrow {
  transform: rotate(180deg);
  color: var(--color-brand);
}

.product-accordion-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  overflow: hidden;
}

.product-accordion.open .product-accordion-content {
  max-height: 150px;
  opacity: 1;
  padding-bottom: 14px;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.technical-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.technical-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.technical-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Buy CTA Button */
.product-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  min-height: 48px; /* mobile-friendly */
}

.product-buy-btn:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* --- COMPONENT 5: FloatingWhatsAppWidget --- */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  min-height: 48px;
  min-width: 48px;
}

.whatsapp-link:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* Ripple Pulse effect */
.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25D366;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

/* Badge count to look like a message notification */
.whatsapp-notification {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ff3b30;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  animation: bounce-badge 1s infinite alternate;
}

/* Footer Section */
footer {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-logo span {
  color: var(--color-brand);
}

/* --- ANIMATIONS Keyframes --- */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 94, 58, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 94, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 94, 58, 0);
  }
}

@keyframes blink-live {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes bounce-badge {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

/* --- MODAL STYLES FOR LEGAL & PRIVACY --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 8, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background-color: var(--color-brand);
  color: #fff;
  border-color: transparent;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-body h4 {
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.modal-body p {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-brand);
}

/* --- SECTION: Votre Conseillère Delphine --- */
.counselor-section {
  padding: 20px 0 60px 0;
  margin-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.counselor-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media(min-width: 768px) {
  .counselor-container {
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
  }
}

.counselor-image-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.counselor-image-wrapper:hover {
  transform: scale(1.02);
  border-color: rgba(255, 94, 58, 0.3);
  box-shadow: var(--shadow-glow-active);
}

.counselor-img {
  width: 100%;
  height: auto;
  display: block;
}

.counselor-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.counselor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.counselor-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.counselor-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.counselor-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.counselor-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.counselor-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 15px 0 30px 0;
  width: 100%;
}

.counselor-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  font-size: 1.5rem;
  background: rgba(255, 94, 58, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
}

.counselor-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.counselor-feature p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.counselor-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
  cursor: pointer;
  min-height: 44px;
}

.counselor-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-active);
}

/* --- Form and Modal Styles for Group Order --- */
.modal-form-container {
  max-width: 680px;
}

.modal-form-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-form-intro strong {
  color: var(--color-accent-hover);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-brand);
  box-shadow: 0 0 10px rgba(255, 94, 58, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Grille de cases à cocher pour les jeux */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  max-height: 180px;
  overflow-y: auto;
}

@media(min-width: 576px) {
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Zone de badges pour les jeux sélectionnés */
.selected-games-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  max-height: 120px;
  overflow-y: auto;
  animation: fadeIn 0.2s ease-in-out;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(147, 51, 234, 0.15); /* Couleur de marque translucide */
  border: 1px solid rgba(147, 51, 234, 0.35);
  color: #f3e8ff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.game-badge:hover {
  background: rgba(147, 51, 234, 0.25);
  border-color: rgba(147, 51, 234, 0.6);
}

.game-badge-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.game-badge-close:hover {
  color: #fff;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.checkbox-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.loading-checkboxes {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

/* Erreurs de validation */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error .checkbox-grid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}

.error-msg {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 5px;
  font-weight: 500;
}

.form-group.has-error .error-msg {
  display: block;
}

/* Boutons de soumission et états de chargement */
.submit-btn {
  width: 100%;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-active);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Vue Succès de la modale */
.success-view {
  text-align: center;
  padding: 20px 0;
}

.success-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #22c55e;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #22c55e;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #22c55e;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #22c55e;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 40px rgba(34, 197, 94, 0.05); }
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}

.success-actions {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  max-width: 450px;
  margin: 0 auto;
}

.success-actions p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.wa-success-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wa-success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
  background: #20ba56;
}

/* --- LIGHTBOX / DETAILS MODAL STYLES --- */
.detail-modal-container {
  max-width: 900px !important;
  width: 95% !important;
}

.detail-modal-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
  text-align: left;
}

@media (max-width: 768px) {
  .detail-modal-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.detail-modal-media {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.detail-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.detail-modal-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.detail-product-description-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 18px;
  margin-top: 10px;
}

.detail-product-description {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Personnalisation de la scrollbar de la description */
.detail-product-description::-webkit-scrollbar {
  width: 6px;
}
.detail-product-description::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}
.detail-product-description::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.detail-product-description::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* Zoom Overlay sur l'image de la carte produit */
.product-media-wrapper {
  position: relative;
  overflow: hidden;
}

.product-media-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 8, 18, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: #fff;
  pointer-events: none; /* Laisse passer le clic pour le wrapper */
}

.product-media-wrapper:hover .product-media-zoom-overlay {
  opacity: 1;
}

/* Lien Voir Détails */
.view-details-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.2s;
  cursor: pointer;
}

.view-details-link:hover {
  color: var(--color-accent) !important;
  transform: translateX(3px);
}


