/* ===================================================================== */
/* PASSION AUTO 85 — Feuille de style : slider-desktop.css               */
/* --------------------------------------------------------------------- */
/* Description :                                                         */
/*   Styles CSS pour le slider principal (desktop) du site BMW Passion   */
/*   Auto 85. Gère la structure, les effets, le responsive, etc.         */
/*   À utiliser pour personnaliser l’apparence du slider sur desktop.    */
/* --------------------------------------------------------------------- */
/* Structure :                                                           */
/*   1. Structure générale et layout du slider                           */
/*   2. Slides, titres, textes                                           */
/*   3. Effets visuels et animations                                     */
/*   4. Media queries et responsive                                      */
/* --------------------------------------------------------------------- */
/* Auteur : 0xcyberlitech                                                */
/* Date de création : 24/12/2025                                         */
/* Dernière modification : 29/12/2025                                    */
/* ===================================================================== */

/* ===================================================================== */
/* 1. STRUCTURE GÉNÉRALE ET LAYOUT DU SLIDER                             */
/*    Structure globale, containers, marges, etc.                        */
/* ===================================================================== */

/* Masque les indicateurs du slider sur desktop :
  Les points de navigation ne sont pas affichés sur la version desktop. */
.slider-indicators {
  display: none !important;
}

/* Zone principale du slider desktop :
  Définit la taille, le fond, la bordure et l'effet néon du slider. */
 .slider-zone {
  width: 100vw;
  max-width: 100vw;
  height: 40vh;
  min-height: 30vh;
  max-height: 50vh;
  border-radius: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: #181c22;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 0.3vh solid var(--bmw-blue);
  box-shadow: 0 0.3vh 1.5vh 0px #1e90ff66;
  border-image: linear-gradient(90deg, #00d4ff 0%, #1e90ff 50%, #00d4ff 100%) 1;
  filter: drop-shadow(0 0.3vh 0.8vh #00d4ff33);
  opacity: 1;
  transition: box-shadow 0.3s, border-image 0.3s;
  animation: neon-glow-move 3s ease-in-out infinite;
}

/* Conteneur du slider desktop :
  Structure le slider et applique les styles de texte et d'ombre. */
 .slider-container {
  margin-top: 0;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  color: #1e90ff;
  text-shadow: 0 1vh 3vh #000c, 0 0.3vh 1vh #1e90ff99;
  background: none;
  -webkit-background-clip: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  padding-top: 0;
}

/* Bloc principal du slider BMW desktop :
  Zone contenant tous les slides et l'image de fond. */
 .bmw-slider {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 40vh;
  min-height: 30vh;
  max-height: 50vh;
  overflow: hidden;
  z-index: 4000;
  background: linear-gradient(
      135deg,
      var(--carbon-black) 0%,
      var(--carbon-dark) 50%,
      var(--carbon-medium) 100%
    ),
    url("../../images/fond/bg-bmw.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 0.15vh solid rgba(30, 144, 255, 0.4);
  box-shadow: 0 0 2.5vh rgba(30, 144, 255, 0.3),
    0 0 5vh rgba(30, 144, 255, 0.15), 0 0 7.5vh rgba(30, 144, 255, 0.1);
  animation: sliderNeonGlow 4s ease-in-out infinite;
}

/* Wrapper contenant tous les slides (flex horizontal) :
  Permet le défilement horizontal des slides via flexbox. */
 .slider-wrapper {
  width: 400%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: row;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

/* Slide individuel du slider desktop :
  Style de chaque slide, centré et occupant 25% de la largeur. */
 .slider-slide {
  width: 25%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  flex: 0 0 25%;
  margin: 0;
  z-index: 11;
}

/* Image à l'intérieur d'un slide :
  S'assure que l'image occupe tout l'espace du slide et reste bien cadrée. */
 .slider-slide img {
  display: block;
  width: 100%;
  height: 40vh;
  min-height: 30vh;
  max-height: 50vh;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  box-shadow: none;
}

/* Indicateurs de navigation (points) :
  Points cliquables pour naviguer entre les slides. */
 .slider-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3vh;
  z-index: 9999;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Style d'un indicateur (point) :
  Apparence des points de navigation sous le slider. */
 .indicator {
  width: 2vw;
  height: 2vw;
  min-width: 16px;
  min-height: 16px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  background: #1e90ff;
  border: 0.3vh solid #fff;
  opacity: 1;
  box-shadow: 0 0.3vh 1.5vh rgba(30, 144, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s;
}

/* Overlay du titre et sous-titre sur le slider desktop :
  Superpose les titres au centre du slider. */
 .slider-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Titre principal du slider desktop :
  Style du titre principal affiché sur le slider. */
 .slider-main-title {
  font-family: "Orbitron", sans-serif;
  margin-top: 0;
  font-size: 3vw;
  font-weight: 900;
  color: #00aeef;
  text-shadow: 0 0.2vh 1vh rgba(0, 174, 239, 0.5), 0 0 0.3vw #000;
  letter-spacing: 0.1vw;
  margin-bottom: 1vh;
  text-align: center;
  pointer-events: none;
}

/* Sous-titre du slider desktop :
  Style du sous-titre affiché sous le titre principal. */
 .slider-title-overlay .slider-main-subtitle {
  position: static;
  width: 80vw;
  max-width: 40vw;
  text-align: center;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.2vw;
  font-weight: 500;
  color: #fff;
  z-index: 19;
  pointer-events: none;
  text-shadow: 0 0.2vh 0.7vh #000a, 0 0 0.2vw #1e90ff22;
  line-height: 1.3;
  letter-spacing: 0.05vw;
  margin-top: 0.5vh;
  white-space: pre-line;
}

/* Rayon lumineux animé sur le slider desktop :
  Effet de lumière animée traversant le slider. */
 .slider-ray {
  position: relative;
  left: 0;
  top: 0;
  width: 80vw;
  height: 0.12vh;
  margin: 0.3vh 0 1vh 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #00d4ff 8%,
    #1e90ff 50%,
    #00d4ff 92%,
    transparent 100%
  );
  box-shadow: 0 0 0.12vh 0.05vh #1e90ff66, 0 0 0.24vh 0.07vh #00d4ff33;
  border-radius: 1vw;
  z-index: 10;
  opacity: 1;
  pointer-events: none;
  animation: slider-ray-move 2.5s linear infinite;
  filter: blur(0.03vw);
}

/* Animation du rayon lumineux :
  Keyframes pour l'animation du rayon lumineux. */
@keyframes slider-ray-move {
  0% {
    transform: translateX(-100vw);
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw);
    opacity: 1;
  }
}

/* Animation de l'effet néon sur le contour :
  Keyframes pour l'effet néon autour du slider. */
@keyframes neon-glow-move {
  0% {
    box-shadow: 0 4px 12px -6px #00d4ff33, 0 1px 4px -1px #1e90ff22;
    filter: drop-shadow(0 2px 6px #00d4ff33);
  }
  50% {
    box-shadow: 0 8px 24px -8px #1e90ff44, 0 2px 8px -2px #00d4ff44;
    filter: drop-shadow(0 4px 12px #1e90ff44);
  }
  100% {
    box-shadow: 0 4px 12px -6px #00d4ff33, 0 1px 4px -1px #1e90ff22;
    filter: drop-shadow(0 2px 6px #00d4ff33);
  }
}

/* ===================================================================== */
/* 2. SLIDES, TITRES, TEXTES                                             */
/*    Styles pour slides, titres, textes du slider                       */
/* ===================================================================== */

/* ===================================================================== */
/* 3. EFFETS VISUELS ET ANIMATIONS                                       */
/*    Effets visuels et animations du slider                             */
/* ===================================================================== */

/* ===================================================================== */
/* 4. MEDIA QUERIES ET RESPONSIVE                                        */
/*    Adaptation du slider pour chaque écran                             */
/* ===================================================================== */

/* Masque le slider mobile sur desktop :
  Cache le composant slider mobile sur les grands écrans. */
.slider-mobile {
  display: none;
}
