/*! 
 * LUDICERTIF - Styles personnalisés
 * À charger APRÈS tailwind-compiled.css
 */

/* ========================================
   VARIABLES CSS PERSONNALISÉES
   ======================================== */
:root {
  /* Polices personnalisées */
  --font-primary: 'Rubik', system-ui, sans-serif;
  --font-secondary: 'Inter', system-ui, sans-serif;
  
  /* PALETTE PERSONNALISÉE LUDICERTIF */
  --color-primary-50: #e6eefa;
  --color-primary-100: #b3d0f2;
  --color-primary-200: #80b3e9;
  --color-primary-300: #2653a2;
  --color-primary-400: #2d71d3;
  --color-primary-500: #1e5299;
  --color-primary-600: #1a4680;
  --color-primary-700: #153966;
  --color-primary-800: #0f2a4d;
  --color-primary-900: #0a1c33;
  --color-secondary: #27AE60;
  --color-accent: #FFDD4A;
  --color-brand-yellow: #FFDD4A;
  --color-dark: #1F2937;
  --color-light: #E0E0E0;
}

/* ========================================
   STYLES DE BASE PERSONNALISÉS
   ======================================== */
body {
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
}

/* ========================================
   CLASSES TYPOGRAPHIQUES PERSONNALISÉES
   ======================================== */
.font-primary {
  font-family: var(--font-primary);
}

.font-secondary {
  font-family: var(--font-secondary);
}

/* Tailles de titres personnalisées */
.text-heading-xl {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-heading-lg {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-heading-md {
  font-size: 2.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-subheading-lg {
  font-size: 2.125rem;
  line-height: 1.3;
}

.text-subheading-md {
  font-size: 1.875rem;
  line-height: 1.3;
}

.text-subheading-sm {
  font-size: 1.625rem;
  line-height: 1.4;
}

.text-body-lg {
  font-size: 1.25rem;
  line-height: 1.6;
}

.text-body-md {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Tailles secondaires */
.text-heading-secondary-lg {
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-heading-secondary-md {
  font-size: 2rem;
  line-height: 1.2;
}

.text-subheading-secondary-lg {
  font-size: 1.75rem;
  line-height: 1.3;
}

.text-subheading-secondary-md {
  font-size: 1.5rem;
  line-height: 1.4;
}

.text-subheading-secondary-sm {
  font-size: 1.375rem;
  line-height: 1.4;
}

.text-body-secondary-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-body-secondary-md {
  font-size: 1rem;
  line-height: 1.6;
}

/* ========================================
   COULEURS PERSONNALISÉES - Backgrounds
   ======================================== */
.bg-primary-50 { background-color: var(--color-primary-50); }
.bg-primary-100 { background-color: var(--color-primary-100); }
.bg-primary-200 { background-color: var(--color-primary-200); }
.bg-primary-300 { background-color: var(--color-primary-300); }
.bg-primary-400 { background-color: var(--color-primary-400); }
.bg-primary-500 { background-color: var(--color-primary-500); }
.bg-primary-600 { background-color: var(--color-primary-600); }
.bg-primary-700 { background-color: var(--color-primary-700); }
.bg-primary-800 { background-color: var(--color-primary-800); }
.bg-primary-900 { background-color: var(--color-primary-900); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.bg-brand-yellow { background-color: var(--color-brand-yellow); }
.bg-dark { background-color: var(--color-dark); }
.bg-light { background-color: var(--color-light); }

/* Gradients personnalisés */
.bg-gradient-to-br.from-primary-300.to-primary-400 {
  background: linear-gradient(to bottom right, var(--color-primary-300), var(--color-primary-400)) !important;
}

.bg-gradient-to-br.from-secondary.to-green-600 {
  background: linear-gradient(to bottom right, var(--color-secondary), #059669) !important;
}

.bg-gradient-to-br.from-accent.to-yellow-500 {
  background: linear-gradient(to bottom right, var(--color-accent), #eab308) !important;
}

.bg-gradient-to-br.from-purple-500.to-purple-700 {
  background: linear-gradient(to bottom right, #a855f7, #7e22ce) !important;
}

/* ========================================
   COULEURS PERSONNALISÉES - Textes
   ======================================== */
.text-primary-50 { color: var(--color-primary-50); }
.text-primary-100 { color: var(--color-primary-100); }
.text-primary-200 { color: var(--color-primary-200); }
.text-primary-300 { color: var(--color-primary-300); }
.text-primary-400 { color: var(--color-primary-400); }
.text-primary-500 { color: var(--color-primary-500); }
.text-primary-600 { color: var(--color-primary-600); }
.text-primary-700 { color: var(--color-primary-700); }
.text-primary-800 { color: var(--color-primary-800); }
.text-primary-900 { color: var(--color-primary-900); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-brand-yellow { color: var(--color-brand-yellow); }
.text-dark { color: var(--color-dark); }
.text-light { color: var(--color-light); }

/* ========================================
   COULEURS PERSONNALISÉES - Bordures
   ======================================== */
.border-primary-300 { border-color: var(--color-primary-300); }
.border-accent { border-color: var(--color-accent); }

/* États hover */
.hover\:bg-primary-300:hover { background-color: var(--color-primary-300); }
.hover\:bg-primary-400:hover { background-color: var(--color-primary-400); }
.hover\:bg-primary-500:hover { background-color: var(--color-primary-500); }
.hover\:text-accent:hover { color: var(--color-accent); }
.hover\:bg-accent:hover { background-color: var(--color-accent); }
.hover\:bg-yellow-500:hover { background-color: #eab308; }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:text-dark:hover { color: var(--color-dark); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animation pour le hero title alternant */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.hero-title-animated {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fadeUp {
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.6s ease-out forwards;
}

.reveal {
  animation: reveal 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   CLASSES UTILITAIRES PERSONNALISÉES
   ======================================== */
.btn-hover {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-input {
  transition: all 0.3s ease;
}

.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .text-heading-xl {
    font-size: 4rem;
  }
  
  .text-heading-lg {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* ========================================
   COMPOSANTS SPÉCIFIQUES
   ======================================== */

/* Header transparent/opaque */
.header-transparent {
  background-color: transparent;
  backdrop-filter: none;
  transition: all 0.3s ease;
}

.header-opaque {
  background-color: rgba(0, 0, 34, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Logos - Tailles fixes */
#logoHeader {
  height: 2rem !important;
  width: auto !important;
  max-height: 2rem !important;
  object-fit: contain !important;
}

#logoMobile {
  height: 1.75rem !important;
  width: auto !important;
  max-height: 1.75rem !important;
  object-fit: contain !important;
}

#logoFooter {
  height: 2.5rem !important;
  width: auto !important;
  max-height: 2.5rem !important;
  object-fit: contain !important;
}

/* Tailles responsives pour le logo header */
@media (min-width: 640px) {
  #logoHeader {
    height: 2.5rem !important;
    max-height: 2.5rem !important;
  }
  
  #logoMobile {
    height: 2rem !important;
    max-height: 2rem !important;
  }
}

@media (min-width: 1024px) {
  #logoHeader {
    height: 3rem !important;
    max-height: 3rem !important;
  }
}

/* Hero video overlay */
.hero-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg, 
    rgba(0,0,34,0.8) 0%, 
    rgba(13,31,73,0.6) 50%, 
    rgba(27,56,116,0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Timeline */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-primary-300);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-light);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  width: 2px;
  height: calc(100% + 10px);
  background: linear-gradient(to bottom, var(--color-light) 0%, var(--color-light) 100%);
  z-index: 1;
}

/* Animation au hover - Point de timeline */
.timeline-item:hover::before {
  transform: scale(1.4);
  background-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-light), 0 0 20px rgba(255, 221, 74, 0.6);
}

/* Icône ronde des niveaux - Améliorations */
.timeline-item .rounded-full {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible;
}

.timeline-item:hover .rounded-full {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Animation spécifique Niveau 1 - Bleu */
.timeline-item:nth-child(1) .rounded-full {
  animation: pulse-blue 3s ease-in-out infinite;
}

.timeline-item:nth-child(1):hover .rounded-full {
  animation: none;
  box-shadow: 0 15px 40px rgba(38, 83, 162, 0.5);
}

@keyframes pulse-blue {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(38, 83, 162, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(38, 83, 162, 0);
  }
}

/* Animation spécifique Niveau 2 - Vert */
.timeline-item:nth-child(2) .rounded-full {
  animation: pulse-green 3s ease-in-out infinite 0.5s;
}

.timeline-item:nth-child(2):hover .rounded-full {
  animation: none;
  box-shadow: 0 15px 40px rgba(39, 174, 96, 0.5);
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(39, 174, 96, 0);
  }
}

/* Animation spécifique Niveau 3 - Jaune */
.timeline-item:nth-child(3) .rounded-full {
  animation: pulse-yellow 3s ease-in-out infinite 1s;
}

.timeline-item:nth-child(3):hover .rounded-full {
  animation: none;
  box-shadow: 0 15px 40px rgba(255, 221, 74, 0.6);
}

@keyframes pulse-yellow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 221, 74, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 221, 74, 0);
  }
}

/* Animation des icônes à l'intérieur */
.timeline-item .rounded-full i {
  transition: all 0.3s ease;
}

.timeline-item:hover .rounded-full i {
  transform: scale(1.2);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Animation de la carte complète */
.timeline-item > div {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover > div {
  transform: translateX(8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Effet glow au survol du texte */
.timeline-item h3 {
  transition: all 0.3s ease;
}

.timeline-item:hover h3 {
  color: var(--color-primary-300);
  text-shadow: 0 0 10px rgba(38, 83, 162, 0.3);
}

.timeline-item:nth-child(2):hover h3 {
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(39, 174, 96, 0.3);
}

.timeline-item:nth-child(3):hover h3 {
  color: #000;
  text-shadow: 0 0 10px rgba(255, 221, 74, 0.5);
}

@media (min-width: 768px) {
  .timeline-item {
    padding-left: 60px;
    margin-bottom: 40px;
  }
  
  .timeline-item::before {
    left: 20px;
    width: 16px;
    height: 16px;
    border: 4px solid #ffffff;
  }
  
  .timeline-item:not(:last-child)::after {
    left: 26px;
    width: 4px;
    height: calc(100% + 16px);
  }
}

/* Menu mobile */
.mobile-menu {
  transform: translateY(-100%);
  transition: transform 0.3s ease-out;
  background: rgba(31, 41, 55, 0.40) !important;
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(255, 221, 74, 0.2);
  height: 100vh !important;
  min-height: 100vh !important;
}

.mobile-menu.open {
  transform: translateY(0);
}

/* Loading spinner */
.loading {
  display: inline-block;
  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;
}

/* Hover effects - seulement sur devices avec hover */
@media (hover: hover) {
  .btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  }
  
  .game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  }
  
  .form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(38, 83, 162, 0.2);
  }
}

/* Styles spécifiques pour les boutons Hero */
.btn.bg-brand-yellow {
  background: linear-gradient(135deg, #FFDD4A 0%, #FFB703 100%);
  color: #1F2937;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn.bg-brand-yellow:hover {
  background: linear-gradient(135deg, #FFB703 0%, #FFDD4A 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 221, 74, 0.5);
}

.btn.border-white {
  border: 2px solid white;
  color: white;
  background: transparent;
  transition: all 0.3s ease;
}

.btn.border-white:hover {
  background: white;
  color: #1F2937;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

/* Boutons Header - Curseur pointer */
button {
  cursor: pointer;
}

/* Bouton "Créer un compte" - Style discret */
#signupBtnDesktop {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

#signupBtnDesktop:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Bouton "Connexion" - Style proéminent */
#loginBtnDesktop {
  box-shadow: 0 4px 12px rgba(255, 221, 74, 0.3);
}

#loginBtnDesktop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 221, 74, 0.5);
}

/* Mobile - Bouton Créer un compte */
#signupBtnMobile {
  background: transparent;
}

#signupBtnMobile:hover {
  background: rgba(38, 83, 162, 0.05);
}

/* Focus visible pour accessibilité */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   SECTION BOOKING (PRISE DE RENDEZ-VOUS)
   ======================================== */

/* Carte de réservation - Style cohérent avec la page */
#contact .bg-gradient-to-br {
  background: linear-gradient(135deg, rgba(38, 83, 162, 0.85) 0%, rgba(45, 113, 211, 0.85) 50%, rgba(30, 82, 153, 0.85) 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 3rem !important;
}

@media (min-width: 640px) {
  #contact .bg-gradient-to-br {
    padding: 4rem !important;
  }
}

@media (min-width: 1024px) {
  #contact .bg-gradient-to-br {
    padding: 5rem !important;
  }
}

/* Effet de profondeur avec ombres */
#contact .shadow-2xl {
  box-shadow: 0 25px 60px -12px rgba(38, 83, 162, 0.3), 
              0 10px 30px -10px rgba(38, 83, 162, 0.2);
}

/* Masquer l'icône calendrier */
#contact .fa-calendar-check {
  display: none !important;
}

/* Bouton de réservation avec padding augmenté */
#bookingBtn {
  position: relative;
  overflow: hidden;
  padding: 1rem 2.5rem !important;
  box-shadow: 0 8px 24px rgba(255, 221, 74, 0.4),
              0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 640px) {
  #bookingBtn {
    padding: 1.125rem 3rem !important;
  }
}

@media (min-width: 1024px) {
  #bookingBtn {
    padding: 1.25rem 3.5rem !important;
  }
}

/* Effet ripple au hover */
#bookingBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
  z-index: 0;
}

#bookingBtn:hover::before {
  width: 500px;
  height: 500px;
}

#bookingBtn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 221, 74, 0.6),
              0 6px 20px rgba(0, 0, 0, 0.3);
}

#bookingBtn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Position relative pour le contenu du bouton */
#bookingBtn span,
#bookingBtn i {
  position: relative;
  z-index: 1;
}

/* Titre de la section booking */
#contact h3 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

/* Description avec meilleure lisibilité */
#contact p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Animation au scroll pour la section */
#contact .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#contact .animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Effet glow subtil sur la carte */
#contact .bg-gradient-to-br::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 221, 74, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#contact .bg-gradient-to-br:hover::after {
  opacity: 1;
}

/* Note de réassurance stylisée */
#contact .text-white\/70 {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  display: inline-block;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#contact .text-white\/70:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  #bookingBtn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
  
  #contact .fa-calendar-check {
    font-size: 3rem;
  }
  
  #contact h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  #bookingBtn {
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
  }
}

/* ========================================
   FOOTER - FOND OPTIMISÉ
   ======================================== */

/* Fond principal - Bleu nuit profond avec gradient */
footer {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a2332 50%, #0f1419 100%) !important;
  position: relative;
}

/* Overlay subtil pour effet de profondeur */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(38, 83, 162, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Améliorer la lisibilité des textes */
footer h3 {
  color: #FFDD4A;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

footer p,
footer .text-gray-300 {
  color: #e5e7eb;
}

footer .text-gray-400 {
  color: #9ca3af;
}

/* Liens avec transition fluide */
footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: #FFDD4A;
  transform: translateX(2px);
}

/* Boutons réseaux sociaux améliorés */
footer .bg-gray-700 {
  background: rgba(31, 41, 55, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

footer .bg-gray-700:hover {
  background: #2653a2 !important;
  border-color: #2653a2;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 83, 162, 0.4);
}

/* Bordure de séparation subtile */
footer .border-gray-700 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Améliorer le contraste des liens */
footer a.text-gray-300 {
  color: #e5e7eb;
}

footer a.text-gray-300:hover {
  color: #ffffff;
}

/* Icônes Font Awesome */
footer i.fas,
footer i.fab {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

footer a:hover i.fas,
footer a:hover i.fab {
  opacity: 1;
}
/*
  /* ========================================
    SECTION MINI-JEU - AMÉLIORATIONS CSS
    ======================================== */
  /* Amélioration du container principal */

  #minijeu .relative.overflow-hidden {
    transition: transform 0.3s ease;
  }

  #minijeu .relative.overflow-hidden:hover {
    transform: translateY(-2px);
  }

  /* Bouton carré avec image de fond */
  #minijeu .bg-gradient-to-br.from-primary-300.to-primary-500 {
    background: url('image/runner_presentation_illustration.webp') center center / cover no-repeat !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(38, 83, 162, 0.3);
    border: 3px solid rgba(255, 221, 74, 0.2);
  }

  /* Masquer l'icône gamepad */
  #minijeu .bg-gradient-to-br.from-primary-300.to-primary-500 i {
    display: none;
  }

  /* Effet hover sur le bouton image */
  #minijeu .bg-gradient-to-br.from-primary-300.to-primary-500:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 12px 32px rgba(38, 83, 162, 0.5);
    border-color: rgba(255, 221, 74, 0.5);
  }

  /* Effet glow animé derrière le bouton */
  #minijeu .bg-gradient-to-br.from-primary-300.to-primary-500::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: radial-gradient(circle, rgba(255, 221, 74, 0.4) 0%, transparent 70%);
    border-radius: inherit;
    animation: pulse-minigame 2s ease-in-out infinite;
    z-index: -1;
  }

  @keyframes pulse-minigame {
    0%, 100% {
      opacity: 0.5;
      transform: scale(0.95);
    }
    50% {
      opacity: 1;
      transform: scale(1.1);
    }
  }

  /* Amélioration du container gradient bleu */
  #minijeu .bg-gradient-to-br.from-primary-100 {
    background: linear-gradient(135deg, rgba(230, 238, 250, 0.8) 0%, rgba(179, 208, 242, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(38, 83, 162, 0.1);
    transition: all 0.3s ease;
  }

  #minijeu .bg-gradient-to-br.from-primary-100:hover {
    background: linear-gradient(135deg, rgba(230, 238, 250, 1) 0%, rgba(179, 208, 242, 1) 100%);
    box-shadow: 0 8px 24px rgba(38, 83, 162, 0.15);
  }

  /* Amélioration du bouton "Lancer maintenant" */
  #minijeu button.bg-brand-yellow {
    background: linear-gradient(135deg, #FFDD4A 0%, #FFB703 100%);
    box-shadow: 0 4px 12px rgba(255, 221, 74, 0.4);
    font-weight: 600;
    position: relative;
    overflow: hidden;
  }

  #minijeu button.bg-brand-yellow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  #minijeu button.bg-brand-yellow:hover::before {
    width: 300px;
    height: 300px;
  }

  #minijeu button.bg-brand-yellow:hover {
    background: linear-gradient(135deg, #FFB703 0%, #FFDD4A 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 221, 74, 0.6);
  }

  /* Amélioration des textes */
  #minijeu .text-primary-600 {
    color: #2653a2;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  #minijeu .text-primary-500 {
    color: #1e5299;
  }

  /* Effet shimmer sur le titre */
  #minijeu h2 {
    background: linear-gradient(135deg, #1F2937 0%, #2653a2 50%, #1F2937 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 3s ease-in-out infinite;
  }

  @keyframes shimmer-text {
    0%, 100% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
  }

  /* Masquer les cercles décoratifs dans la section mini-jeu */
  #minijeu .pointer-events-none.absolute {
    display: none !important;
  }

  /* Amélioration responsive */
  @media (max-width: 639px) {
    #minijeu .bg-gradient-to-br.from-primary-300.to-primary-500 {
      width: 80px !important;
      height: 80px !important;
    }
    
    #minijeu h2 {
      font-size: 1.75rem;
    }
  }

  @media (min-width: 640px) and (max-width: 1023px) {
    #minijeu .bg-gradient-to-br.from-primary-300.to-primary-500 {
      width: 100px !important;
      height: 100px !important;
    }
  }

  /* Animation d'entrée au scroll */
  #minijeu .animate-on-scroll.animate {
    animation: slideUpFadeIn 0.8s ease-out forwards;
  }

  @keyframes slideUpFadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Effet de focus pour accessibilité */
  #minijeu .bg-gradient-to-br.from-primary-300.to-primary-500:focus-visible {
    outline: 3px solid #FFDD4A;
    outline-offset: 4px;
    border-radius: 1rem;
  }

/* ========================================
   OPTIMISATIONS MOBILE
   ======================================== */
@media (max-width: 639px) {

    /* Augmentation du padding horizontal global */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Sections avec padding */
  section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Réduction globale de la taille de police de base */
  body {
    font-size: 14px;
  }

  /* Réduction de toutes les classes de texte personnalisées */
  .text-heading-xl {
    font-size: 2.25rem !important;
  }

  .text-heading-lg {
    font-size: 2rem !important;
  }

  .text-heading-md {
    font-size: 1.75rem !important;
  }

  .text-subheading-lg {
    font-size: 1.5rem !important;
  }

  .text-subheading-md {
    font-size: 1.375rem !important;
  }

  .text-subheading-sm {
    font-size: 1.25rem !important;
  }

  .text-body-lg {
    font-size: 1rem !important;
  }

  .text-body-md {
    font-size: 0.9375rem !important;
  }

  .text-heading-secondary-lg {
    font-size: 1.875rem !important;
  }

  .text-heading-secondary-md {
    font-size: 1.5rem !important;
  }

  .text-subheading-secondary-lg {
    font-size: 1.375rem !important;
  }

  .text-subheading-secondary-md {
    font-size: 1.25rem !important;
  }

  .text-subheading-secondary-sm {
    font-size: 1.125rem !important;
  }

  .text-body-secondary-lg {
    font-size: 0.9375rem !important;
  }

  .text-body-secondary-md {
    font-size: 0.875rem !important;
  }

  /* Réduction de la taille des titres du hero */
  #heroTitle1,
  #heroTitle2 {
    font-size: 1.625rem !important;
    line-height: 1.25 !important;
  }

  /* Réduction de la taille du texte de description du hero */
  #heroDescription {
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
  }

  /* Ajustement de la hauteur minimale du H1 en mobile */
  h1.relative.flex {
    min-height: 90px !important;
  }

  /* Réduction des boutons */
  .btn {
    font-size: 0.875rem !important;
    padding: 0.625rem 1.25rem !important;
  }

  /* Réduction de la taille des paragraphes */
  p {
    font-size: 0.875rem !important;
  }

  /* Réduction de la taille des liens */
  a {
    font-size: 0.875rem !important;
  }
}