/* Défilement fluide */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overscroll-behavior: none;
}

body {
  overscroll-behavior: none;
  overflow-x: hidden;
}

/* Variables CSS pour la cohérence des couleurs */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --background-color: #ffffff;
  --background-dark: #f8fafc;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero .container {
  max-width: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section */
.hero {
  background: #1b1d1f;
  color: white;
  padding: 100px 0;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}



/* Vidéo de fond */
.hero-video {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: auto;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.hero-header {
  height: 20rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  padding: 0 8rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero Content */
.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 800px;
  color: white;
  visibility: visible;
  opacity: 1;
}

/* Badges */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 3;
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding-top: 1rem;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-satisfaction {
  background: #1b1d1f;
  color: white;
  border-radius: 20px;
}

.badge-malt {
  background: transparent;
  color: #fbbf24;
  font-weight: 600;
  box-shadow: none;
}

.badge-icon {
  height: 1em;
  object-fit: contain;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
  color: white;
  visibility: visible;
  opacity: 1;
}

.scribe-text {
  white-space: pre-wrap;
  line-height: 1.2;
}

/* Styles pour les spans colorés du titre */
.text-colored-orange {
  color: #ff6b35; /* Orange plus vif */
  font-weight: 700;
}

.text-colored-blue {
  color: #3b82f6; /* Bleu */
  font-weight: 700;
}

.text-colored-yellow {
  color: #fbbf24; /* Jaune */
  font-weight: 700;
}

.text-colored-green {
  color: #10b981; /* Vert */
  font-weight: 700;
}

.cursor {
  animation: blink 1s infinite;
  font-weight: 700;
  color: white;
  display: inline;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.5rem;
  /* margin-top: 2rem; */
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 300;
  min-height: 1.8rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  color: white;
  visibility: visible;
}

.scribe-subtitle {
  white-space: pre-wrap;
  line-height: 1.2;
}

/* Animation fade-in top pour le paragraphe hero */
.hero-subtitle-text {
  opacity: 0 !important;
  transform: translateY(-15px) !important;
  transition: opacity 0.8s ease, transform 0.8s ease !important;
  visibility: hidden !important;
}

.hero-subtitle-text.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.hero-button {
  display: flex;
  justify-content: center;
  visibility: visible;
  opacity: 1;
}

.hero-btn-animate {
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-btn-animate.show {
  opacity: 1;
  transform: scale(1);
}



/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-primary:hover {
  background-color: #cc342d;
  color: white;
  border-color: #cc342d;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--background-dark);
}

.section-content {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Section Preview */
.preview-section {
  background: #000000;
  padding: 4rem 0;
  overflow: hidden;
}

/* Preview Carousel */
.preview-carousel {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: fit-content;
}

.carousel-item {
  flex-shrink: 0;
}

.carousel-image {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

/* Desktop : 5 images visibles avec largeur fixe */
@media (min-width: 768px) {
  .carousel-container {
    width: 1000px; /* Largeur fixe pour 5 images : (180px + 20px) * 5 */
  }

  .carousel-item {
    margin: 0 10px;
  }

  .carousel-image {
    width: 180px;
    height: 135px;
  }
}

/* Mobile : 3 images visibles avec largeur fixe */
@media (max-width: 767px) {
  .carousel-container {
    width: 420px; /* Largeur fixe pour 3 images : (120px + 20px) * 3 */
    overflow: hidden; /* Empêcher le débordement */
  }

  .carousel-item {
    margin: 0 10px;
  }

  .carousel-image {
    width: 120px;
    height: 90px;
  }
}

/* Preview Avis */
.preview-avis {
  width: 100vw; /* Couvrir toute la largeur */
  margin-left: calc(-50vw + 50%); /* Centrer le contenu */
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  position: relative; /* Pour le z-index */
  z-index: 1; /* Au-dessus de la section flottante */
}

.avis-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 80vw; /* Contenu centré à 80vw */
  max-width: 1200px; /* Limite maximale */
  gap: 2rem;
}

.avis-item {
  flex: 1;
  text-align: center;
  color: white;
  max-width: 250px;
}

.avis-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.avis-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: white;
}

.avis-text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: white;
  opacity: 0.9;
}

.avis-signature {
  font-size: 0.8rem;
  font-style: italic;
  color: white;
  opacity: 0.7;
}

/* Indicateur de carousel */
.carousel-indicator {
  display: none; /* Masqué par défaut */
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease;
}

.dot.active {
  background: white;
}

/* Mobile : Carousel horizontal avec scroll */
@media (max-width: 767px) {
  .preview-avis {
    width: 80vw;
    overflow: hidden;
    position: relative;
  }

  .avis-container {
    display: flex;
    width: 400%; /* 4 avis * 100% */
    gap: 0;
    transition: transform 0.3s ease;
    /* Pas de transform initial - sera géré par JavaScript */
    margin-left: 0; /* Reset de la marge */
  }

  .avis-item {
    flex: 0 0 25%; /* Chaque avis prend 25% de la largeur totale */
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .avis-image {
    width: 50px;
    height: 50px;
  }

  .avis-header {
    font-size: 1rem;
    text-align: center;
  }

  .avis-text {
    font-size: 0.85rem;
    text-align: center;
  }

  .avis-signature {
    font-size: 0.75rem;
    text-align: center;
  }

  /* Afficher les indicateurs uniquement sur mobile */
  .carousel-indicator {
    display: flex;
  }
}

/* Bannière défilante */
.scrolling-banner {
  width: 100vw;
  height: 50px;
  background: #000;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.scrolling-text {
  display: flex;
  white-space: nowrap;
  animation: scrollText 40s linear infinite;
  position: relative;
}

.scrolling-text span {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: #fff;
  padding: 0 30px;
  font-weight: 500;
  flex-shrink: 0;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Section transparente après le hero */
.transparent-section {
  width: 100vw;
  height: 70vh;
  background: transparent;
  box-shadow:
    inset 0 50px 50px -20px rgba(64, 64, 64, 0.3),
    inset 0 -50px 50px -20px rgba(64, 64, 64, 0.3);
}

/* Section Avis */
.avis-section {
  width: 100vw;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.avis-title-container {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.avis-title {
  font-size: 20vw;
  font-weight: 900;
  color: #0d0d0d;
  text-transform: lowercase;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

.avis-carousel-container {
  height: 80vh;
  background: #000;
  overflow-y: auto;
  padding: 2rem 0;
}

.avis-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.avis-card {
  background: transparent;
  border: 2px solid #333333;
  border-radius: 8px;
  padding: 40px 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}



.avis-card-content h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.avis-card-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  display: block;
  object-fit: cover;
}

.avis-card-content p {
  color: #cccccc;
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  font-family: 'Nunito', sans-serif;
}

.avis-author {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  opacity: 0.8;
}

/* Carte de redirection */
.avis-redirect-card {
  border: none !important;
}

.avis-redirect-card .avis-card-content {
  text-align: center;
}

.avis-redirect-card h3 {
  margin-bottom: 25px;
}

.avis-redirect-icon {
  width: 80px;
  height: 80px;
  transition: all 0.3s ease;
}

.avis-redirect-icon:hover {
  transform: scale(1.1);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .avis-title {
    font-size: 15vw;
  }

  .avis-carousel {
    padding: 0 1rem;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .avis-card {
    padding: 30px 15px;
    min-height: 180px;
  }

  .avis-card-content h3 {
    font-size: 1rem;
  }

  .avis-card-image {
    width: 50px;
    height: 50px;
  }

  .avis-card-content p {
    font-size: 1rem;
  }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
  .avis-carousel {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* Section Geek Man */
.geek-man-section {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center; /* Image centrée sur toutes les versions */
  background: #000; /* Fond noir */
}

.geek-man-point {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #cc342d;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.geek-man-point::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: rgba(204, 52, 45, 0.6);
  border-radius: 50%;
  animation: geekManPointPulse 2s infinite;
}

.geek-man-point.hidden {
  opacity: 0;
  pointer-events: none;
}

.geek-man-image-container {
  position: relative;
  max-width: 45%; /* Réduit pour voir l'image entière */
  max-height: 70%; /* Réduit pour voir l'image entière */
  height: 100%; /* Restreint à la hauteur de la section */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.geek-man-image-container.show {
  opacity: 1;
}

@keyframes geekManPointPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.geek-man-image {
  width: 100%;
  height: 100%; /* Utilise toute la hauteur disponible */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Garde les proportions */
}

/* Section vide */
.empty-section {
  width: 100vw;
  height: 100vh;
  background: white;
}

/* Section Portfolio fixe en arrière-plan */
.portfolio-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.portfolio-content {
  text-align: center;
}

.portfolio-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
}

/* Section Hello World avec fond inversé du hero */
.hello-world-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  will-change: transform;
  transform: translateZ(0);
}

.hello-world-content {
  text-align: center;
  will-change: transform;
  transform: translateZ(0);
}

.hello-world-content h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(to bottom,
    #666666 0%,
    #333333 50%,
    #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  will-change: transform;
  transform: translateZ(0);
}

/* Cartes flottantes */
.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  width: 120px;
  height: 120px; /* Format 3:3 (carré) */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: float 8s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translateZ(0);
}

/* Animations de flottement pour chaque carte */
.card-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 70%;
  left: 15%;
  animation-delay: -2s;
}

.card-3 {
  top: 25%;
  right: 10%;
  animation-delay: -4s;
}

.card-4 {
  bottom: 15%;
  right: 20%;
  animation-delay: -6s;
}

.card-5 {
  top: 50%;
  left: 45%;
  animation-delay: -1s;
}

.card-6 {
  top: 15%;
  left: 60%;
  animation-delay: -3s;
}

.card-7 {
  top: 80%;
  left: 70%;
  animation-delay: -5s;
}

.card-8 {
  top: 35%;
  right: 60%;
  animation-delay: -7s;
}

.card-9 {
  bottom: 40%;
  left: 25%;
  animation-delay: -2.5s;
}

.card-10 {
  top: 65%;
  right: 45%;
  animation-delay: -4.5s;
}

.card-11 {
  top: 5%;
  left: 35%;
  animation-delay: -1.5s;
}

.card-12 {
  bottom: 5%;
  right: 5%;
  animation-delay: -3.5s;
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(10px, -20px, 0) rotate(2deg);
  }
  50% {
    transform: translate3d(-15px, -10px, 0) rotate(-1deg);
  }
  75% {
    transform: translate3d(5px, -15px, 0) rotate(1deg);
  }
}

/* Grille des fonctionnalités */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Section Contact */
.contact-text {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.contact-label {
  font-weight: 600;
  color: var(--text-color);
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
    max-height: 100vh;
    position: relative;
    background: #191b1c;
  }



  .hero-layout {
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding: 0 2rem;
  }

  /* Hero Content - Centré en mobile */
  .hero-content {
    text-align: center;
    z-index: 3;
    position: relative;
    max-width: none;
  }

  /* Badges - Mobile */
  .hero-badges {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    top: 2rem;
    padding-top: 0.5rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-header {
    height: 6rem;
    margin-bottom: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    /* margin-top: 1.5rem; */
  }

  .hero-button {
    justify-content: center;
  }

  .hero-video {
    clip-path: inset(0 30% 0 0);
    object-position: left center;
    width: 142.86vw;
    bottom: 10vh;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Animations plus lentes sur mobile */
  .hero-subtitle-text {
    transition: opacity 1.2s ease, transform 1.2s ease !important;
  }

  .hero-btn-animate {
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Bannière défilante mobile */
  .scrolling-banner {
    height: 40px;
  }

  .scrolling-text span {
    font-size: 12px;
    padding: 0 20px;
  }

  /* Section Geek Man mobile */
  .geek-man-section {
    justify-content: center;
  }

  .geek-man-image-container {
    max-width: 80%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-layout {
    padding: 0 1rem;
  }

  .hero-header {
    height: 10rem;
    margin-bottom: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    /* margin-top: 1rem; */
  }

  .hero-image {
    max-width: 250px;
    opacity: 0.25;
    transform: translateY(30px);
  }

  .section-title {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .floating-card {
    width: 50px;
    height: 50px; /* Format 3:3 maintenu */
  }

  /* Encore plus réparti pour très petit écran - plus proche du centre */
  .card-1 { top: 10%; left: 10%; }
  .card-2 { top: 80%; left: 15%; }
  .card-3 { top: 20%; right: 10%; }
  .card-4 { bottom: 15%; right: 20%; }
  .card-5 { top: 45%; left: 40%; }
  .card-6 { top: 15%; left: 55%; }
  .card-7 { top: 85%; left: 65%; }
  .card-8 { top: 30%; right: 55%; }
  .card-9 { bottom: 35%; left: 20%; }
  .card-10 { top: 70%; right: 40%; }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .floating-card {
    width: 60px;
    height: 60px; /* Format 3:3 maintenu */
  }

  /* Répartition différente pour mobile - plus proche du centre */
  .card-1 { top: 15%; left: 15%; }
  .card-2 { top: 75%; left: 20%; }
  .card-3 { top: 25%; right: 15%; }
  .card-4 { bottom: 20%; right: 25%; }
  .card-5 { top: 50%; left: 45%; }
  .card-6 { top: 20%; left: 60%; }
  .card-7 { top: 80%; left: 70%; }
  .card-8 { top: 35%; right: 60%; }
  .card-9 { bottom: 40%; left: 25%; }
  .card-10 { top: 65%; right: 45%; }
}

/* Section Stack */
.stack-section {
  background: #000000;
  padding: 1rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stack-header {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.stack-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.stack-title {
  font-size: 20vw;
  font-weight: 900;
  color: #0d0d0d;
  text-transform: lowercase;
  margin: 0 auto; /* Centrer horizontalement */
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 1vw;
  transform: scaleY(1.2); /* Étirement vertical comme timeline */
  width: 80%; /* Couvrir 80% de la largeur */
  max-width: 80%;
  text-align: center; /* Centrer le texte */
  display: block; /* S'assurer que c'est un bloc */
}

.stack-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.stack-pile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 800px;
}

.stack-item {
  position: absolute;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  cursor: pointer;
  z-index: 1;
  /* Zone de hover étendue avec pseudo-élément */
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-item::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 80%;
  background: transparent;
  z-index: -1;
}

.stack-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stack-item:nth-child(odd) {
  transform: translateX(-100px) translateY(50px);
}

.stack-item:nth-child(even) {
  transform: translateX(100px) translateY(50px);
}

.stack-item:nth-child(odd).visible {
  transform: translateX(0) translateY(0);
}

.stack-item:nth-child(even).visible {
  transform: translateX(0) translateY(0);
}

.stack-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); */
  transition: all 0.3s ease;
  /* Zone de hover sur l'image */
  display: block;
}

/* Chevauchement des images : plus d'espace */
.stack-item:nth-child(1) { top: 0; z-index: 8; }
.stack-item:nth-child(2) { top: 60px; z-index: 7; }
.stack-item:nth-child(3) { top: 120px; z-index: 6; }
.stack-item:nth-child(4) { top: 180px; z-index: 5; }
.stack-item:nth-child(5) { top: 240px; z-index: 4; }
.stack-item:nth-child(6) { top: 300px; z-index: 3; }
.stack-item:nth-child(7) { top: 360px; z-index: 2; }
.stack-item:nth-child(8) { top: 420px; z-index: 1; }

/* Hover effect desktop */
@media (min-width: 769px) {
  .stack-item:hover .stack-image {
    transform: scale(1.1);
    /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4); */
  }

  .stack-item:hover .stack-text {
    opacity: 1;
    transform: translateX(0);
  }

  .stack-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .stack-text-left {
    right: 160px;
    transform: translateY(-50%) translateX(20px);
  }

  .stack-text-right {
    left: 160px;
    transform: translateY(-50%) translateX(-20px);
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .stack-section {
    padding: 1rem 0;
    min-height: 100vh;
    overflow: hidden; /* Empêcher le débordement */
  }

  .stack-header {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
  }

  .stack-header.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .stack-title {
    font-size: 25vw;
    transform: scaleY(1.1);
    width: 80%; /* Couvrir 80% de la largeur */
    max-width: 80%;
    margin: 0 auto; /* Centrer */
    text-align: center;
    display: block;
  }

  .stack-pile {
    height: 800px;
  }

  .stack-image {
    width: 80px;
    height: 80px;
    /* Supprimer complètement le surlignage bleu au clic */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
  }

  .stack-item {
    /* Supprimer le surlignage sur le conteneur aussi */
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
  }

  .stack-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5; /* Réduire le z-index pour qu'il soit sous l'image */
    /* Ajuster la largeur max pour éviter le débordement */
    max-width: 200px;
    word-wrap: break-word;
    white-space: normal;
  }

  .stack-text-left {
    right: 90px;
    transform: translateY(-50%) translateX(20px);
  }

  .stack-text-right {
    left: 90px;
    transform: translateY(-50%) translateX(-20px);
  }

  .stack-item.show-text .stack-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .stack-item.show-text .stack-image {
    transform: scale(1.1); /* Effet de grossissement au clic */
  }

  /* Corriger la zone de clic pour qu'elle corresponde à l'image */
  .stack-item {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .stack-item::before {
    display: none; /* Désactiver le pseudo-élément sur mobile */
  }

  .stack-item:nth-child(1) { top: 0; }
  .stack-item:nth-child(2) { top: 40px; }
  .stack-item:nth-child(3) { top: 80px; }
  .stack-item:nth-child(4) { top: 120px; }
  .stack-item:nth-child(5) { top: 160px; }
  .stack-item:nth-child(6) { top: 200px; }
  .stack-item:nth-child(7) { top: 240px; }
  .stack-item:nth-child(8) { top: 280px; }
}

/* Section Terminal */
.terminal-section {
  background: #000000;
  padding: 4rem 0;
  position: relative;
}

.terminal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.terminal-window {
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  border: 1px solid #333;
}

.terminal-header {
  background: #2a2a2a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.terminal-button.close {
  background: #ff5f56;
}

.terminal-button.minimize {
  background: #ffbd2e;
}

.terminal-button.maximize {
  background: #27ca3f;
}

.terminal-title {
  color: #999;
  font-size: 14px;
  font-family: 'Consolas', monospace;
}

.terminal-content {
  background: #000;
  padding: 20px;
  min-height: 300px;
  font-family: 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #00ff00;
  position: relative;
}

.terminal-lines {
  margin-bottom: 10px;
}

.terminal-line {
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(10px);
  animation: terminalLineAppear 0.3s ease-out forwards;
}

.terminal-cursor {
  display: inline-block;
  animation: blink 1s infinite;
  color: #00ff00;
}

@keyframes terminalLineAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Terminal */
@media (max-width: 768px) {
  .terminal-container {
    min-height: 300px;
  }

  .terminal-window {
    max-width: 95%;
  }

  .terminal-content {
    padding: 16px;
    min-height: 250px;
    font-size: 12px;
  }
}

/* Section Formulaire en étapes */
.form-section {
  background-color: #000000;
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.form-section.animate .form-container {
  opacity: 1;
  transform: translateY(0);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Barre de progression */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  position: relative;
}

.progress-point {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2;
}

.progress-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: transparent;
  transition: all 0.3s ease;
}

.progress-point.active .progress-dot,
.progress-point.completed .progress-dot {
  background-color: #ffffff;
  border-color: #ffffff;
}

.progress-line {
    width: 80px;
  height: 2px;
  background-color: #333333;
  margin: 0 10px;
  position: relative;
  overflow: hidden;
}

.progress-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #ffffff;
  transition: width 0.5s ease;
}

.progress-line.completed::before {
  width: 100%;
}

/* Slides du formulaire */
.form-slides {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}



.form-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease;
  visibility: hidden;
}

.form-slide.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.form-slide.prev {
  transform: translateX(-100%);
}

.form-slide.success-slide {
  position: relative;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.form-slide.success-slide.active {
  transform: none;
}

.form-slide h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.form-slide p {
  color: #cccccc;
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
  font-family: 'Nunito', sans-serif;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.form-input {
  width: 100%;
  max-width: 400px;
  padding: 15px 20px;
  border: 2px solid #333333;
  border-radius: 8px;
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #666666;
}

.form-input:focus {
  outline: none;
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.form-input textarea {
  resize: vertical;
  min-height: 100px;
}

.next-btn {
  min-width: 150px;
}

/* Slide de succès */
.success-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px 20px;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.success-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #4CAF50;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  animation: successPulse 2s ease-in-out;
  flex-shrink: 0;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Icône de succès flottante */
.floating-success-icon {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #4CAF50;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-success-icon.show {
  opacity: 1;
  visibility: visible;
  animation: floatingSuccessAnimation 1.5s ease-in-out forwards;
}

/* Icône de succès spécifique au formulaire principal */
#form-success-icon {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #4CAF50;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#form-success-icon.show {
  opacity: 1;
  visibility: visible;
  animation: floatingSuccessAnimation 1.5s ease-in-out forwards;
}

@keyframes floatingSuccessAnimation {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .form-section {
    padding: 60px 0;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
  }

  .form-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .form-slides {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .form-slide {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
  }

  .form-slide h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .form-slide p {
    font-size: 1rem;
    margin-bottom: 30px;
    text-align: center;
  }

  .form-input-group {
    width: 100%;
    max-width: 300px;
  }

  .form-input {
    font-size: 16px; /* Évite le zoom sur iOS */
    padding: 12px 16px;
  }

  .progress-line {
    width: 60px;
  }

  .progress-point {
    width: 35px;
    height: 35px;
  }

  .progress-dot {
    width: 18px;
    height: 18px;
  }
}

/* Footer */
.footer {
  background-color: #000000;
  padding: 30px 0;
}

/* Icônes du footer */
.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .footer-icon {
    width: 60px;
    height: 60px;
  }
}

.footer-icon:hover {
  transform: scale(1.1);
}

/* Copyright */
.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.65rem;
  color: #cccccc;
  margin: 0;
}

/* Section Timeline */
.timeline-section {
  width: 100vw;
  min-height: 100vh;
  background: #000;
  position: relative;
}



/* Header en carrousel auto */
.timeline-header-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.timeline-header {
  width: 100%;
  overflow: hidden;
}

.timeline-banner {
  display: flex;
  white-space: nowrap;
  animation: timelineBannerScroll 12s linear infinite;
}

.timeline-banner h1 {
  font-size: 8vw;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 1vw;
  transform: scaleY(1.2); /* Étirement vertical */
}

@keyframes timelineBannerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Timeline avec points et traits */
.timeline-timeline-container {
  position: absolute;
  top: 30vh;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s ease;
}

.timeline-line.active {
  transform: scaleY(1);
}

.timeline-point-item {
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
  pointer-events: auto;
}

.timeline-point-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-point {
  position: absolute;
  left: -8px; /* Moitié hors champ */
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.6s ease;
}

.timeline-point-item.visible .timeline-point {
  transform: scale(1);
}

.timeline-header-content {
  position: absolute;
  left: 20px;
  top: -10px;
  max-width: calc(100vw - 40px);
  width: calc(100vw - 40px);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.8s ease 0.3s;
}

.timeline-point-item.visible .timeline-header-content {
  opacity: 1;
  transform: translateX(0);
}

.timeline-header-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.timeline-header-content p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
  max-width: 1100px;
  width: 100%;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.6s ease 0.8s;
}

.timeline-point-item.visible .timeline-header-content p {
  opacity: 1;
  transform: translateX(0);
}

/* Positionnement des points avec espacement libre */
.timeline-point-item[data-index="0"] { top: 2rem; }
.timeline-point-item[data-index="1"] { top: 20rem; }
.timeline-point-item[data-index="2"] { top: 38rem; }
.timeline-point-item[data-index="3"] { top: 56rem; }
.timeline-point-item[data-index="4"] { top: 74rem; }
.timeline-point-item[data-index="5"] { top: 92rem; }
.timeline-point-item[data-index="6"] { top: 110rem; }
.timeline-point-item[data-index="7"] { top: 128rem; }

/* Responsive */
@media (max-width: 768px) {
  .timeline-header-content {
    max-width: calc(100vw - 30px);
    width: calc(100vw - 30px);
    left: 15px;
  }

  .timeline-header-content h3 {
    font-size: 1rem;
  }

  .timeline-header-content p {
    font-size: 0.8rem;
    max-width: 400px;
  }

  .timeline-banner {
    animation: timelineBannerScroll 6s linear infinite;
  }

  .timeline-banner h1 {
    font-size: 20vw;
  }
}

/* Section RPG Map */
.rpg-map-section {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Titre en arrière-plan */
.rpg-map-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  z-index: 1;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rpg-map-title.show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* Conteneur principal */
.rpg-map-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Jauge de progression */
.rpg-map-gauge {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  z-index: 10;
}

.rpg-map-slider {
  width: 20px;
  height: 20px;
  background: #cc342d;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  cursor: grab;
  z-index: 11;
}

.rpg-map-slider:active {
  cursor: grabbing;
}

/* Image de la carte */
.rpg-map-image-container {
  position: relative;
  max-width: 80%;
  max-height: 70%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rpg-map-image-container.show {
  opacity: 1;
  transform: scale(1);
}

.rpg-map-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: none;
  outline: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Points rouges clignotants */
.rpg-map-points {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rpg-map-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #cc342d;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.rpg-map-point::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: rgba(204, 52, 45, 0.6);
  border-radius: 50%;
  animation: rpgPointPulse 2s infinite;
  z-index: 9;
}

.rpg-map-point.show {
  opacity: 1;
}

@keyframes rpgPointPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Positionnement asymétrique des points */
.rpg-map-point:nth-child(1) { top: 15%; left: 45%; }
.rpg-map-point:nth-child(2) { top: 25%; left: 55%; }
.rpg-map-point:nth-child(3) { top: 35%; left: 40%; }
.rpg-map-point:nth-child(4) { top: 45%; left: 60%; }
.rpg-map-point:nth-child(5) { top: 55%; left: 35%; }
.rpg-map-point:nth-child(6) { top: 65%; left: 50%; }
.rpg-map-point:nth-child(7) { top: 75%; left: 45%; }
.rpg-map-point:nth-child(8) { top: 85%; left: 55%; }

/* Modals */
.rpg-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
}

.rpg-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpg-modal-content {
  position: relative;
  max-width: 60%;
  max-height: 60%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Taille réduite pour ordinateur */
@media (min-width: 768px) {
  .rpg-modal-content {
    max-width: 42%;
    max-height: 42%;
  }
}

/* Taille mobile pour les modals */
@media (max-width: 767px) {
  .rpg-modal-content {
    max-width: 90%;
    max-height: 90%;
  }
}



.rpg-modal-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}
/* Navbar unifiée (toutes versions) */
.navbar {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
}

/* Bouton Modal (droite) */
.menu-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Bouton Cookies (gauche) */
.cookies-toggle {
  left: 2rem;
  right: auto;
}

.menu-toggle:hover {
  transform: scale(1.05);
}

.menu-toggle:focus {
  outline: none;
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(0.1, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 30px;
  padding-bottom: 2rem;
  padding-top: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  transform: scale(0.9) translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2),
    0 0 60px rgba(255, 255, 255, 0.1);
  position: relative;
}

.modal.active .modal-content {
  transform: scale(1) translateX(0);
}

/* Sections du modal */
.contact-form-section {
  margin-bottom: 2rem;
}

.testimonials-section {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
}

/* Contact Form */
.contact-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 44px;
  resize: vertical;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 100;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Styles spécifiques pour textarea */
textarea.form-input {
  min-height: 120px;
  max-height: 300px;
  font-family: inherit;
  line-height: 1.5;
  font-size: 0.9rem;
}

.form-submit {
  background: rgba(59, 130, 246, 0.4);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-submit:hover {
  background: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success Icon */
.success-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Icône de succès spécifique à la modal */
.modal-success-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Success Message */
.success-message {
  text-align: center;
  color: #10b981;
  font-weight: 600;
  margin-top: 1rem;
  animation: fadeIn 0.5s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Testimonials Carousel */
.testimonials-carousel {
  overflow: hidden;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.testimonials-carousel::before,
.testimonials-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}



.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
  width: fit-content;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  min-width: 200px;
  max-width: 200px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: white;
  margin-bottom: 1rem;
  font-style: italic;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  flex-grow: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.testimonial-author {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  margin-top: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal {
    padding: 1rem;
  }

  .modal-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    max-width: 500px;
  }

  .menu-toggle {
    width: 45px;
    height: 45px;
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .testimonial-card {
    min-width: 150px;
    max-width: 150px;
    padding: 1rem;
  }

  .contact-form {
    max-width: 100%;
  }

  .testimonials-carousel::before,
  .testimonials-carousel::after {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    padding: 1rem;
    border-radius: 12px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    bottom: 0.5rem;
    right: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  .menu-toggle:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .contact-form-title {
    font-size: 1.25rem;
  }

  .testimonial-card {
    min-width: 120px;
    max-width: 120px;
    padding: 0.75rem;
  }

  .testimonial-text {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
  }

  .testimonial-author {
    font-size: 0.7rem;
  }

  .testimonials-carousel::before,
  .testimonials-carousel::after {
    width: 60px;
  }
}

/* Desktop spécifique */
@media (min-width: 769px) {
  .menu-toggle {
    width: 60px;
    height: 60px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .menu-icon {
    width: 60%;
    height: 60%;
  }

  .modal-content {
    max-width: 1000px;
  }

  .contact-form {
    max-width: 500px;
  }

  .testimonials-carousel {
    justify-content: center;
  }

  .testimonials-track {
    gap: 1.5rem;
  }

  .testimonial-card {
    min-width: 250px;
    max-width: 250px;
    padding: 2rem;
    min-height: 150px;
  }

  .testimonial-text {
    font-size: 1rem;
    -webkit-line-clamp: 5;
  }

  .testimonial-author {
    font-size: 0.9rem;
  }

  .testimonials-carousel::before,
  .testimonials-carousel::after {
    width: 150px;
  }
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
  .menu-toggle {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .cookies-toggle {
    left: 1.5rem;
    right: auto;
  }

  .menu-icon {
    width: 60%;
    height: 60%;
  }
}

@media (max-width: 480px) {
  .menu-toggle {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
  }

  .cookies-toggle {
    left: 1rem;
    right: auto;
  }
}

/* Modal Cookies (gauche) */
.cookies-modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
}

.cookies-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookies-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookies-modal.active .cookies-modal-content {
  transform: translateX(0);
}

/* Header de la modal cookies */
.cookies-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cookies-text {
  flex: 1;
}

.cookies-greeting {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.cookies-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.cookies-character {
  flex-shrink: 0;
}

.otter-image {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

/* Corps de la modal cookies */
.cookies-body {
  margin-bottom: 2rem;
}

.cookies-intro {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cookies-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.cookies-points li {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cookies-links {
  margin-bottom: 1rem;
}

.cookies-link {
  color: #333;
  text-decoration: underline;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.cookies-certification {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* Actions de la modal cookies */
.cookies-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.cookies-btn {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.cookies-btn-secondary {
  background: white;
  color: #333;
  border: 1px solid #e0e0e0;
}

.cookies-btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.cookies-btn-primary {
  background: #3b82f6;
  color: white;
}

.cookies-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.cookies-decline {
  color: #666;
  text-decoration: underline;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-top: 0.5rem;
}

.cookies-decline:hover {
  color: #333;
}

/* Responsive pour la modal cookies */
@media (max-width: 768px) {
  .cookies-modal {
    padding: 1rem;
  }

  .cookies-modal-content {
    width: 100%;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .cookies-header {
    gap: 0.75rem;
  }

  .otter-image {
    width: 60px;
    height: 60px;
  }

  .cookies-title {
    font-size: 1.25rem;
  }

  .cookies-actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .cookies-btn {
    width: 100%;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }

  .cookies-decline {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .cookies-modal {
    padding: 0.5rem;
  }

  .cookies-modal-content {
    padding: 1rem;
    border-radius: 12px;
  }

  .cookies-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .otter-image {
    width: 50px;
    height: 50px;
  }

  .cookies-title {
    font-size: 1.1rem;
  }

  .cookies-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookies-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Styles spécifiques pour le formulaire de la modal */
#modal-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

#modal-contact-form .form-input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 44px;
  resize: vertical;
}

#modal-contact-form .form-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 100;
}

#modal-contact-form .form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#modal-contact-form textarea.form-input {
  min-height: 120px;
  max-height: 300px;
  font-family: inherit;
  line-height: 1.5;
  font-size: 0.9rem;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
