
/* ================================
   BASE
================================ */
* {
  font-family: "Gabriola";
}

#top {
  padding: 25px;
  max-height: 500px;
}

#logo {
  height: 150px;
}

#header {
  display: flex;
  align-items: center;
}

#titel {
  padding: 40px;
  padding-top: 50px;
  font-size: 50px;
  display: flex;
}

/* ================================
   VIDEO BACKGROUND
================================ */
#video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  background: black;
}

/* ================================
   NAV
================================ */
nav.nav {
  width: 450px;
  display: flex;
  justify-content: space-between;
  list-style: none;
  font-size: 20px;
}

nav.nav li a {
  padding: 20px;
  text-decoration: none;
  color: black;
}

/* ================================
   BACK TO TOP
================================ */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 2rem;
  background: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  opacity: 0.7;
  z-index: 999;
  transition: opacity 0.3s;
}

.back-to-top:hover {
  opacity: 1;
}

/* ================================
   PRESENTATION
================================ */
#Présentation {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   INPUT
================================ */
input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ================================
   ACCORDION
================================ */
#accordionContainer {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 2fr);
  padding: 20px;
  gap: 20px;
}

.accordion {
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.accordion-header {
  background-color: #eaeaea;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}

.accordion-content {
  display: none;
  padding: 10px;
  background-color: #f9f9f9;
}

.open > .accordion-content {
  display: block;
}

.niveau .accordion-header {
  background-color: #dfe8ff;
}

.niveau .accordion-content {
  background-color: #f0f6ff;
}

.hidden {
  display: none !important;
}

/* ================================
   CAROUSEL
================================ */
.carousel-item {
  position: relative;
  height: 85vh;
  min-height: 500px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70%;
  overflow-y: auto;
  background: rgba(0,0,0,0.75);
  padding: 20px;
}

.texteSlide1 {
  color: white;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ================================
   CONTENEUR
================================ */
.conteneur {
  background-color: rgba(255, 255, 255, 0.2);
  max-width: 1400px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  #accordionContainer {
    grid-template-columns: 1fr;
  }

  .carousel-item {
    height: 90vh;
  }

  .texteSlide1 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #top {
    padding: 5px;
  }

  #logo {
    height: 60px;
  }

  #titel {
    font-size: 22px;
    text-align: center;
    padding: 10px;
  }

  nav.nav {
    width: 100%;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #Présentation {
    flex-direction: column;
    padding-top: 100px;
  }
}
