/* Intégration de la police personnalisée */
    @font-face {    
        font-family: 'Fugaz';
        src: url('Fugaz.ttf') format('truetype');
        /* Autres formats de police peuvent être ajoutés ici */
    }

    /* Application de la police personnalisée à l'élément <title> */
    h1,h2,h3,h4,h5,p,div,span {
        font-family: 'Fugaz', sans-serif; /* Fallback sur une police système si la police personnalisée n'est pas chargée */
    }

    .div_cont {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
  }

  .div_cont iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .overlay_hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
    pointer-events: auto;
    align-content: center;
  }

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


    /* Styles pour la popup container */
/* Styles pour la popup container */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow: auto; /* Ajoutez ceci pour permettre le défilement si nécessaire */
  padding: 20px; /* Ajoutez un padding pour l'espace autour de l'image */
  overflow: auto; /* Supprime les barres de défilement si le contenu est plus grand que la fenêtre du navigateur */
}

.popup-content {
  /* Autres styles */
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  overflow: hidden; /* Empêche le débordement du contenu */
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-img, .popup-video {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}


/* Bouton de fermeture */
.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  z-index: 99999;
}

/* Galerie d'images */
.gallery {
  display: flex;
  flex-wrap: wrap;
}

.popup-clickarea{
cursor: pointer;
}

.hoverdir-item {
  height: 230px;
  border-radius: 5px;
}

/* Formulaire de contact - fond transparent */
#contactForm .form-control {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white !important;
}

#contactForm .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#contactForm .form-control:focus {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.6);
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

  #contactForm button[type="submit"] {
  background-color: #6c757d !important; /* Gris */
  border: 2px solid #6c757d;
  color: white !important;
  transition: all 0.3s ease;
}

#contactForm button[type="submit"]:hover {
  background-color: white !important;
  color: #000 !important;
  border-color: white;
}

/* Alignement de la carte et du formulaire */
.contact-left-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-right-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#contactForm {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.zform-feedback {
  margin-top: auto;
}

    body, html {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  section {
    overflow-x: hidden;
  }

    .form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    outline: none;
    transition: opacity 0.2s;
  }

  .form-range:hover {
    opacity: 0.8;
  }

  .form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
  }

  .form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }

  .form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
  }

  .form-range::-moz-range-thumb:hover {
    transform: scale(1.2);
  }

  @media (max-width: 991px) {
    .form-group {
      margin-bottom: 1.5rem !important;
    }
  }

  .process-icon-circle {
    background-color: rgb(43 69 83) !important;
    border: 2px solid white;
  }

  .isotope-nav.active {
    color: white !important;
    border: 1px solid white !important;
    background-color: rgba(240, 248, 255, 0.27) !important;
  }

  h1, h2, h3, h4, h5, h6 {
  color: white !important;
}

/* Tous les paragraphes en blanc */
p {
  color: white !important;
}

/* Tous les liens en blanc */
a {
  color: white !important;
}

/* Tous les textes en blanc */
.text-black {
  color: white !important;
}

/* Liste en blanc */
ul, li {
  color: white !important;
}

/* Service items */
.service-item h5,
.service-item p {
  color: white !important;
}

/* Process items */
.process-item h5,
.process-item p {
  color: white !important;
}

/* Prix */
.border-200 h5,
.border-200 h2,
.border-200 h3,
.border-200 ul li {
  color: white !important;
}

/* Contact */
.text-600 {
  color: white !important;
}

  body {
  background: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgb(10, 4, 53) 50%, rgb(48, 12, 3) 100%);
  min-height: 100vh;
}


.disciplines-gallery {
  --g: 12px;
  display: grid;
  clip-path: inset(1px);
  min-height: 700px;
  position: relative;
}

.discipline-card {
  --_p: calc(-1 * var(--g));
  grid-area: 1/1;
  width: 100%;
  min-height: 700px;
  cursor: pointer;
  transition: .6s ease;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.discipline-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 0.6s ease;
}

.discipline-card:hover .discipline-bg {
  transform: scale(1.05);
}

.discipline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.drift-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(17, 25, 46, 0.9) 50%, rgba(1, 1, 55, 0.9) 100%);
}

.track-overlay {
    background: linear-gradient(135deg, rgba(97, 0, 0, 0.8) 0%, rgba(49, 24, 24, 0.9) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.discipline-card:hover .discipline-overlay {
  opacity: 0.95;
}

.discipline-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 4rem;
  max-width: 700px;
}

.drift-card .discipline-content {
  margin-left: 0;
  margin-right: auto;
  padding-right: 6rem;
}

.track-card .discipline-content {
  margin-left: auto;
  margin-right: 0;
  padding-left: 6rem;
  text-align: right;
}

.discipline-title {
  color: white;
  font-size: 5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
  margin-bottom: 1.5rem;
  line-height: 0.9;
}

.track-card .discipline-title {
  bottom: 3rem;
  right: 3rem;
  margin: 0;
  font-size: 4.5rem;
}

.discipline-subtitle {
  color: white;
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.discipline-description {
  font-size: 1.1rem;
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  margin-bottom: 2rem;
  font-weight: 300;
}

.discipline-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.discipline-list li {
  font-size: 1rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  margin-bottom: 0.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
}

.drift-card .discipline-list li {
  justify-content: flex-start;
}

.track-card .discipline-list li {
  justify-content: flex-end;
}

.discipline-list li i {
  opacity: 0.8;
}

.drift-card .discipline-list li i {
  margin-right: 0.75rem;
}

.track-card .discipline-list li i {
  margin-left: 0.75rem;
  order: 2;
}

/* Clip paths pour la séparation diagonale */
.drift-card {
  clip-path: polygon(0 0, calc(100% + var(--_p)) 0, 0 calc(100% + var(--_p)));
}

.track-card {
  clip-path: polygon(100% 100%, 100% calc(0% - var(--_p)), calc(0% - var(--_p)) 100%);
}

/* Hover effects */
.disciplines-gallery:hover > .track-card,
.disciplines-gallery:hover > .drift-card:hover {
  --_p: calc(50% - var(--g));
}

.disciplines-gallery:hover > .drift-card,
.disciplines-gallery:hover > .drift-card:hover + .track-card {
  --_p: calc(-50% - var(--g));
}

/* Responsive */
@media (max-width: 992px) {
  .discipline-card {
    min-height: 550px;
  }
  
  .discipline-title {
    font-size: 3.5rem;
  }

  .track-card .discipline-title {
    font-size: 3rem;
    bottom: 2rem;
    right: 2rem;
  }
  
  .discipline-subtitle {
    font-size: 1.3rem;
  }
  
  .discipline-description {
    font-size: 1rem;
  }
  
  .drift-card .discipline-content {
    padding-right: 3rem;
  }
  
  .track-card .discipline-content {
    padding-left: 3rem;
  }
}

@media (max-width: 768px) {
  .discipline-card {
    min-height: 500px;
  }
  
  .discipline-content {
    padding: 2.5rem;
  }
  
  .drift-card .discipline-content,
  .track-card .discipline-content {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  
  .discipline-title {
    font-size: 2.5rem;
  }

  .track-card .discipline-title {
    font-size: 2rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .discipline-subtitle {
    font-size: 1.1rem;
  }
  
  .discipline-description,
  .discipline-list li {
    font-size: 0.9rem;
  }
}