* {
  box-sizing: border-box;
}

/* Custom scrollbar styles - Modern floating thumb */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.2); /* Track légèrement visible */
}

::-webkit-scrollbar-thumb {
  background: rgba(238, 116, 21, 0.9); /* Plus opaque */
  border-radius: 8px;
  border: 2px solid rgba(26, 26, 26, 0.3);
  background-clip: content-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(238, 116, 21, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(238, 116, 21, 1); /* Complètement opaque au hover */
  box-shadow: 0 4px 12px rgba(238, 116, 21, 0.6);
  transform: scaleY(1.1);
}

::-webkit-scrollbar-corner {
  background: rgba(26, 26, 26, 0.2);
}

/* Pour Firefox - Scrollbar visible */
html {
  scrollbar-width: auto; /* Largeur normale au lieu de thin */
  scrollbar-color: rgba(238, 116, 21, 0.9) rgba(26, 26, 26, 0.2); /* Thumb orange et track sombre */
}

html, body { 
  margin: 0; 
  padding: 0; 
  font-family: Arial, sans-serif; 
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%); 
  /* Empêche le scroll vertical global afin d'éviter un double scroll sur la vue desktop détaillée d'une fiche */
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Landing page d'accueil inspirée de la photo */
#landing-home { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh; 
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%); 
  color: #fff; 
  z-index: 10001; 
  display: flex; 
  flex-direction: column; 
  transition: opacity 0.5s ease-out; 
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100vw;
}

#landing-home[hidden] { 
  display: none !important; 
  opacity: 0; 
  pointer-events: none; 
}

/* Header navigation */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  border-bottom: 1px solid rgba(238, 116, 21, 0.2);
  box-sizing: border-box;
}

.header-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-logo img {
  width: 40px;
  height: 40px;
}

.home-logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.home-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.home-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.home-nav a:hover {
  color: #EE7415;
}

.home-nav .btn-demo {
  background: transparent;
  border: 1px solid #EE7415;
  color: #EE7415;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.home-nav .btn-demo:hover {
  background: #EE7415;
  color: white;
}

.home-nav .btn-connexion {
  background: #EE7415;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.home-nav .btn-connexion:hover {
  background: #BB5B11;
}

.home-nav .back-to-basecle {
  background: #EE7415;
  border: none;
  color: white;
  margin-left: -1rem;
}

/* Contenu principal */
.home-content {
  margin-top: 70px;
  padding: 0 8rem 2rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  gap: 3rem;
}

/* Section hero avec titre et clé */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 2rem 0;
  padding: 0;
  gap: 1rem;
}

.home-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.home-hero-right {
  flex: 0 0 400px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.hero-key-image {
  width: 350px;
  height: 350px;
  max-width: 90vw; /* sécurité pour petits écrans hors media-queries */
  background-image: url('icons/keycar2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  filter: drop-shadow(0 10px 20px rgba(238, 116, 21, 0.2));
  position: relative;
  z-index: 1;
  margin-left: 30px; /* Décalage vers la droite pour ne pas chevaucher le texte */
  animation: parallaxKey linear;
  animation-timeline: scroll();
  animation-range: 0 200vh; /* Plus court = effet plus rapide et visible */
  animation-fill-mode: forwards;
}

.hero-key-image:hover {
  filter: drop-shadow(0 15px 30px rgba(238, 116, 21, 0.4));
}

/* ANCIENNES SECTIONS - COMMENTÉES CAR PLUS UTILISÉES */
/*
.home-bottom-section {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-description-left {
  flex: 1;
  max-width: 800px;
  background: rgba(238, 116, 21, 0.1);
  border: 1px solid rgba(238, 116, 21, 0.3);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
}

.home-description-left h2 {
  color: #EE7415;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

.home-description-left h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
  font-weight: bold;
  border-bottom: 2px solid #EE7415;
  padding-bottom: 0.5rem;
  display: inline-block;
  white-space: nowrap;
}

.home-description-left p {
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.home-description-left .highlight-text {
  font-weight: bold;
  color: #EE7415;
}

.home-features-right {
  flex: 0 0 350px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.features-overlay {
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid #EE7415;
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(238, 116, 21, 0.3);
  width: 100%;
}
*/

/* Styles des titres et textes */
.home-title,
.home-subtitle {
  white-space: normal;
  word-break: break-word;
}
.home-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.home-subtitle { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.home-title .highlight {
  background: #EE7415;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-wrap: nowrap;
  text-wrap: nowrap;
}

.home-subtitle .orange {
  color: #EE7415;
}

/* 4 points sous le texte principal */
.home-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2rem;
}

.feature-point {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 600;
}

.feature-icon {
  background: #EE7415;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Liste des 8 points techniques sous les titres - en 2 colonnes */
.technical-features-container {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  justify-content: space-between;
}

.technical-features-left,
.technical-features-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.technical-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.technical-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 400;
}

.technical-icon {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.technical-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Styles des features dans le cadre orange */
.features-overlay {
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid #EE7415;
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(238, 116, 21, 0.3);
  width: 100%;
}


/* ANCIEN FOOTER - COMMENTÉ CAR REMPLACÉ PAR LE NOUVEAU FOOTER FULL-WIDTH */
/*
.home-footer {
  width: 100%;
  background: rgba(26, 26, 26, 0.95);
  border-top: 1px solid rgba(238, 116, 21, 0.3);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo img {
  width: 35px;
  height: 35px;
}

.footer-logo span {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
}

.footer-text {
  text-align: right;
}
*/

.footer-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0.3rem 0;
  line-height: 1.4;
}

.footer-text p:first-child {
  color: #EE7415;
  font-weight: 500;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item:before {
  content: "✓";
  background: #EE7415;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.7rem;
  font-size: 0.65rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feature-item div {
  flex: 1;
}

.feature-item h3 {
  color: #EE7415;
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0 0 0.15rem 0;
  line-height: 1.3;
  white-space: nowrap;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.4;
}

/* Clé mobile - affichée uniquement sur mobile à côté du texte */
.mobile-key {
  display: none;
}

/* Section centrale avec les features principales */
.home-middle-section {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  margin: 4rem 0;
  padding: 0;
}

.features-center-card {
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid #EE7415;
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(238, 116, 21, 0.3);
  max-width: 600px;
  width: 100%;
}

/* Section 5 points principaux (alignés à gauche, pour faire place aux photos à droite) */
.main-features-section {
  width: 100%;
  max-width: 1200px;
  margin: 2rem 0 0rem 0;
  padding: 2rem 0 0.5rem 0;
  display: flex;
  justify-content: flex-start;
}

.main-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 600px;
  width: 50%;
}

.main-features-image {
  flex: 1;
  display: flex;
  padding-top: 1rem; 
  
}

.main-features-image img {
  max-width: 70%;
  max-height: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.main-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.1rem;
  color: #fff;
  text-align: left;
  max-width: 100%;
}

.main-feature-content {
  flex: 1;
}

.main-feature-content h3 {
  color: #EE7415;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
}

.main-feature-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.4;
}

.main-feature-icon {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.main-feature-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Section carousel */
.carousel-section {
  width: 100%;
  max-width: 1200px;
  margin: 0.5rem 0 0.5rem 0;
  padding: 1.5rem 0 0.5rem 0;
}

.carousel-title {
  text-align: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 2rem;
  font-weight: bold;
}

.highlight-text {
  background-color: #EE7415;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
}

/* Styles du carousel de logos de voitures */
.car-logos-carousel {
  width: 100%;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.3);
  border-radius: 12px;
  padding: 2rem 0;
  position: relative;
}

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

.carousel-track {
  display: flex;
  align-items: center;
  animation: scroll-left 60s linear infinite;
  gap: 3rem;
  width: max-content;
}

.carousel-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: #f2f2f2;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(26,26,26,0.08);
  margin: 0 6px;
  transition: background 0.3s;
}

.carousel-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0.8);
  transition: all 0.3s ease;
}

.carousel-item:hover {
  background: #e0e0e0;
}

.carousel-item:hover img {
  filter: brightness(1);
  transform: scale(1.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-10%);
  }
}

/* Section description (sans card, full width avec marges) */
.description-section {
  width: 100%;
  max-width: 1200px;
  margin: 0.5rem 0 3rem 0;
  padding: 0.5rem 0 2rem 0;
  color: #fff;
  line-height: 1.6;
  position: relative;
  z-index: 10;
}

.description-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.description-section h3 {
  font-size: 1.5rem;
  color: #fff;
  margin: 2rem 0 1rem 0;
}

.description-section p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.description-section .highlight-text {
  color: #fff;
  font-weight: bold;
  flex-wrap: nowrap;
  text-wrap: nowrap;
}

/* Footer full width */
.home-footer {
  background: #1A1A1A;
  padding: 2rem 0;
  border-top: 1px solid rgba(238, 116, 21, 0.2);
  width: 100%;
  margin-top: auto;
  position: relative;
  bottom: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  width: 30px;
  height: 30px;
}

.footer-logo span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.footer-text {
  text-align: right;
}

.footer-text p {
  margin: 0.25rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Section 3 icônes principales */
.main-icons-section {
  width: 100%;
  max-width: 1200px;
  margin: 0rem 0 0.5rem 0;
  padding: 0.5rem 0 0.5rem 0;
}

.main-icons-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
}

.main-icon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(26, 26, 26, 0.3);
  border-radius: 12px;
  padding: 2rem 1rem;
  transition: all 0.3s ease;
}

.main-icon:hover {
  background: rgba(238, 116, 21, 0.1);
  transform: translateY(-5px);
}

.main-icon-symbol {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  filter: grayscale(1) brightness(0.7);
  transition: all 0.3s ease;
}

.main-icon:hover .main-icon-symbol {
  filter: grayscale(0) brightness(1);
  transform: scale(1.1);
}

.main-icon h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0.5rem 0 0 0;
  line-height: 1.3;
  background-color: #EE7415;
  padding: 0.5rem 1rem;
  border-radius: 12px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .home-header {
    padding: 0.8rem 1rem;
    right: 0; /* Supprime l'espace pour la scrollbar sur mobile */
  }
  
  .home-content {
    padding: 0 2rem 4rem 2rem;
    margin-top: 70px;
    gap: 2rem;
  }
  
  /* Hero section sur mobile */
  .home-hero {
    flex-direction: row;
    text-align: center;
    gap: 2rem;
  }
  
  .home-hero-right {
    flex: none;
  }
  
  .hero-key-image {
    width: 200px;
    height: 200px;
    margin-left: 0;
  }
  
  .home-title {
    font-size: 2rem;
    white-space: normal;
  }
  
  .home-subtitle {
    font-size: 1.6rem;
    white-space: normal;
  }
  
  /* Section 5 points principaux sur mobile */
  .main-features-section {
    margin: 1.5rem 0 0rem 0;
    padding: 1.5rem 0 0.5rem 0;
    justify-content: center;
    flex-direction: row;
  }
  
  .main-features-list {
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: none;
  }
  
  .main-features-image {
    padding-left: 0;
    padding-top: 2rem;
    width: 100%;
  }
  
  .main-features-image img {
    max-width: 80%;
  }
  
  .main-feature {
    font-size: 1rem;
    align-items: flex-start;
  }
  
  .main-feature-icon {
    width: 30px;
    height: 30px;
    margin-top: 0.1rem;
  }
  
  .main-feature-icon img {
    width: 24px;
    height: 24px;
  }
  
  .main-feature-content h3 {
    font-size: 1.1rem;
  }
  
  .main-feature-content p {
    font-size: 0.95rem;
  }
  
  /* Section 3 icônes principales sur mobile */
  .main-icons-section {
    margin: 0rem 0 0.5rem 0;
    padding: 0.5rem 0 0.5rem 0;
  }
  
  .main-icons-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .main-icon {
    padding: 1.5rem 1rem;
    max-width: 300px;
    width: 100%;
  }
  
  .main-icon-symbol {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
  }
  
  .main-icon h3 {
    font-size: 1rem;
    margin: 0.3rem 0 0 0;
  }
  
  /* Section carousel sur mobile */
  .carousel-section {
    margin: 0.5rem 0 0.5rem 0;
    padding: 1rem 0 0.5rem 0;
  }
  
  .carousel-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
  
  .carousel-item {
    width: 80px;
    height: 80px;
  }
  
  .carousel-item img {
    width: 60px;
    height: 60px;
  }
  
  /* Section description sur mobile */
  .description-section {
    margin: 0.5rem 0 2rem 0;
    padding: 0.5rem 0 1rem 0;
  }
  
  .description-section h2 {
    font-size: 1.5rem;
  }
  
  .description-section h3 {
    font-size: 1.2rem;
  }
  
  .description-section p {
    font-size: 0.9rem;
  }
  
  /* Footer sur mobile */
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .footer-text {
    text-align: center;
  }
  
  /* 8 points techniques sous le titre sur mobile */
  .technical-features-container {
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .technical-features-left,
  .technical-features-right {
    gap: 0.8rem;
  }
  
  .technical-features-list {
    margin-top: 1rem;
    gap: 0.8rem;
  }
  
  .technical-feature {
    font-size: 1.4rem;
    gap: 0.8rem;
  }
  
  .technical-icon {
    width: 28px;
    height: 28px;
  }
  
  .technical-icon img {
    width: 20px;
    height: 20px;
  }
}

/* SEO landing page (existante) */
#landing-seo { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh; 
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%); 
  color: #fff; 
  z-index: 9998; /* z-index inférieur au splash principal #loading */
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  transition: opacity 0.3s; 
}

#landing-seo[hidden] { 
  display: none !important; 
  opacity: 0; 
  pointer-events: none; 
}

#landing-seo header img { 
  width: 120px; 
  height: 120px; 
  margin-bottom: 1rem; 
}

#landing-seo h1 { 
  font-size: 2.5rem; 
  margin: 0.5rem 0; 
}

#landing-seo p { 
  font-size: 1.2rem; 
  margin: 0.5rem 0 1.5rem 0; 
}

#landing-seo .loader { 
  margin: 2rem auto; 
  border: 6px solid #eee; 
  border-top: 6px solid #EE7415; 
  border-radius: 50%; 
  width: 48px; 
  height: 48px; 
  animation: spin 1s linear infinite; 
}

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

#loading { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%); 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
  z-index: 9999; 
  transition: opacity 0.3s ease-out; 
}

#loading .normal-content { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  transition: opacity 0.3s ease-out; 
}

#loading .stripe-content { 
  display: none; 
  flex-direction: column; 
  align-items: center; 
  transition: opacity 0.3s ease-in; 
}

#loading.stripe-return .normal-content { 
  display: none; 
}

#loading.stripe-return .stripe-content { 
  display: flex; 
}

#loading .logo-img { 
  width: 25vw; 
  height: 25vw; 
  object-fit: contain; 
  opacity: 1; 
  animation: fadeInLogo 2s ease-in; 
}

#loading .logo-main { 
  width: 10vw; /* Réduction supplémentaire de 12vw à 10vw */
  height: 10vw; 
  object-fit: contain; 
  animation: rotateAndFade 2s infinite linear; /* Restauration de l'animation de rotation */
}

#loading .spacing-after-logo { 
  height: 2.5vh; /* Correspond au spacingHeight de Flutter */
}

#loading .logo-txt { 
  width: 20vw; /* Web: 20% de la largeur de l'écran */
  height: 4vh; /* Web: 4% de la hauteur de l'écran */
  object-fit: contain; 
  opacity: 1; 
  animation: fadeInLogo 2s ease-in; 
}

#loading .spacing-after-text { 
  height: 4vh; 
}

#loading .loader-placeholder {
  /* L'ancien placeholder n'est plus utilisé, on le masque. */
  display: none;
}

#loading .stripe-message { 
  color: #EE7415; 
  font-size: 1.2rem; 
  font-weight: 600; 
  margin-top: 3vh; 
  text-align: center; 
  animation: fadeInLogo 1s ease-in; 
}

#loading .stripe-message.success { 
  color: #22c55e; 
}

#loading .stripe-submessage { 
  color: rgba(238, 116, 21, 0.8); 
  font-size: 0.9rem; 
  font-weight: 400; 
  margin-top: 1vh; 
  text-align: center; 
  animation: fadeInLogo 1.5s ease-in; 
}

@keyframes fadeInLogo { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

@keyframes rotateAndFade { 
  0% { transform: rotate(0deg); opacity: 1; } 
  50% { opacity: 0.7; } 
  100% { transform: rotate(360deg); opacity: 1; } 
}

body.flutter-ready #loading { 
  opacity: 0; 
  pointer-events: none; 
}

flt-glass-pane { 
  opacity: 0; 
  transition: opacity 0.3s ease-in; 
}

body.flutter-ready flt-glass-pane { 
  opacity: 1; 
}

@media (max-width: 768px) { 
  #loading .logo-img { 
    width: 50vw; 
    height: 50vw; 
    object-fit: contain; 
  } 
  
  #loading .logo-main { 
    width: 22vw; /* Réduction supplémentaire de 25vw à 22vw pour mobile */
    height: 22vw; 
  } 
  
  #loading .spacing-after-logo { 
    height: 2.5vh; 
  } 
  
  #loading .logo-txt { 
    width: 40vw; 
    height: 6vh; 
    object-fit: contain; 
  } 
  
  #loading .spacing-after-text { 
    height: 5vh; 
  } 
  
  #loading .loader-placeholder { 
    width: 15vw; 
    height: 15vw; 
  } 
  
  #loading .stripe-message { 
    font-size: 1rem; 
    margin-top: 4vh; 
  } 
  
  #loading .stripe-submessage { 
    font-size: 0.8rem; 
    margin-top: 1.5vh; 
  } 
}

@keyframes parallaxKey {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(5px) rotate(45deg); /* Limite à 45° max */
  }
}

/* --------------------------------------------------------------------
   AJOUT RESPONSIVE – TABLETTE, MOBILE XS & LARGE ÉCRANS
   -------------------------------------------------------------------- */

/* TABLETTE (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Header fix */
  .home-header { right: 0; }

  /* Hero section passe en colonne */
  .home-hero {
    flex-direction: row;
    text-align: center;
    gap: 2rem;
  }
  .home-hero-right { flex: none; }
  .hero-key-image { margin-left: 0; }

  /* 8 points techniques sous le titre */
  .technical-features-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Section 5 points principaux */
  .main-features-section {
    flex-direction: row;
    align-items: center;
  }
  .main-feature {
    margin: 0 15%;
    width: 100%;
  }
  .main-features-list,
  .main-features-image { width: 100%; max-width: none; padding-left: 0; }
  .main-features-image img { max-width: 85%; }

  /* Carousel */
  .carousel-item { width: 90px; height: 90px; }
  .carousel-item img { width: 70px; height: 70px; }

  /* Footer alignment */
  .footer-content { padding: 0 1.5rem; }
}

/* MOBILE XS (<=480px) */
@media (max-width: 480px) {
  .home-content { padding: 0 1rem 3rem 1rem; }

  /* Hero */
  .hero-key-image { width: 160px; height: 160px; }
  .home-title { font-size: 1.6rem; }
  .home-subtitle { font-size: 1.2rem; }

  /* 8 points techniques & features */
  .technical-feature { font-size: 1.2rem; }
  .main-feature { gap: 0.5rem; font-size: 0.95rem; }
  .main-feature-icon { width: 24px; height: 24px; }
  .main-feature-icon img { width: 20px; height: 20px; }

  /* Carousel */
  .carousel-item {
    width: 60px;
    height: 60px;
    background: #f2f2f2;
    border-radius: 10px;
    margin: 0 2px;
  }
  .carousel-item img {
    width: 40px;
    height: 40px;
  }

  /* Icônes principales */
  .main-icons-list { flex-direction: column; gap: 1rem; }
  .main-icon { padding: 1rem; }
  .main-icon-symbol { font-size: 2rem; }
  .main-icon h3 { font-size: 0.9rem; }

  /* Description */
  .description-section h2 { font-size: 1.3rem; }
  .description-section h3 { font-size: 1.1rem; }
  .description-section p { font-size: 0.85rem; }

  /* Footer */
  .footer-content { padding: 0 0.5rem; }
}

/* VERY LARGE DESKTOP (≥1600px) */
@media (min-width: 1600px) {
  .home-content { max-width: 1600px; }

  /* Hero */
  .home-hero-right { flex: 0 0 500px; }
  .hero-key-image { width: 450px; height: 450px; margin-left: 50px; }

  /* Titres */
  .home-title { font-size: 4rem; }
  .home-subtitle { font-size: 2.6rem; }

  /* Listes */
  .technical-feature,
  .feature-point { font-size: 1.8rem; }

  /* Carousel */
  .carousel-item {
    width: 140px;
    height: 140px;
    background: #f2f2f2;
    border-radius: 24px;
    margin: 0 10px;
  }
  .carousel-item img {
    width: 100px;
    height: 100px;
  }
}

/* Logo tournant utilisé comme loader pour la version statique (cohérent avec RotatingLogoLoader) */
#loading .normal-content .logo-main {
  width: 17vw; /* Réduction supplémentaire de 20vw à 17vw */
  height: 17vw;
  object-fit: contain;
  animation: rotateAndFade 2s infinite linear; /* Restauration de l'animation de rotation */
  filter: none; /* Pas de drop-shadow pour correspondre à Flutter */
}

@media (max-width: 768px) {
  #loading .normal-content .logo-main {
    width: 35vw; /* Réduction supplémentaire de 40vw à 35vw pour mobile */
    height: 35vw;
  }
}

/* --------------------------------------------------------------------
   SUPPORT SMART-TV : rendre le rendu Flutter scrollable via clavier / télécommande
   -------------------------------------------------------------------- */
/* Empêcher le scroll global (html / body) pour éviter le double scroll sur desktop */
html,
body {
  overflow-y: hidden !important;
}

/* Laisser le scroll interne uniquement au canvas Flutter */
flt-glass-pane {
  /* Permet le défilement vertical du contenu Flutter */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Défilement inertiel sur WebKit (certaines TV en WebKit/Blink) */
flt-glass-pane {
  -webkit-overflow-scrolling: touch;
}

/* Correctif YouTube mobile – forcer les platform-views au-dessus du canvas Flutter  */
flt-platform-view, .flt-platform-view {
  position: relative !important;
  z-index: 9999 !important;
}

/* Idem pour le slot Shadow DOM généré par Flutter */
flt-platform-view-slot, .flt-platform-view-slot {
  position: relative !important;
  z-index: 9999 !important;
}
