* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: #cb6ce6;
    justify-content: center;
    align-items: center;
    font-family: "Poppins", sans-serif;
}

.hero {
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 0 1rem;
  
}

.hero1 {
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 0 1rem;
}

h2 {
  text-align: center;
  margin-top: 5%;
  color: white;
}


/* Vidéo plein écran */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: -1;
}

.overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 8px;
  z-index: 1;
}

.overlay img{
  display: block;      
  margin: 0 auto 1rem;
  width: min(40vw, 260px);
  max-height: 5svh; 
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}


.background2{
  background-size: cover;
  background-position: center;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 8px;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background-color: #9b179b;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  display: inline-block;
  font-weight: bold;
  border: white solid 1px;
  text-decoration: none;
}
/*size and bring titles 1 and 2 closer together on index.html*/
.title1 {
    font-size: 1rem;
}

.title2 {
    margin-top: 1px;
    font-size: 1.5rem;
}

.title1 h1,
.title2 h2 {
    margin: 0;
    padding: 0;
    line-height: 1;
}


/* barre de nav */
  .navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid #dddddd00;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
  }

/* --- Logo --- */
.logo {
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.5); 
  border-radius: 8px;
  transition: 0.3s ease;
  display: inline-block;
}

.logo:hover {
  background: rgba(0, 0, 0, 0.7); 
  transform: scale(1.05);       
}

  /* --- Liens de navigation --- */
  .nav-links {
    display: flex;
    gap: 1rem;
  }

  .nav-links a {
    text-decoration: none;
    color: #ffffff;
  }

  /* --- Responsive : bouton burger --- */
  #menu-toggle {
    display: none;
  }

  .menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
  }

  /* --- Mobile --- */
  @media (max-width: 512px) {
    .menu-icon {
      display: block;
    }

    .nav-links {
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background: rgba(255, 255, 255, 0);
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      display: none;
      padding: 1rem 0;
      border-top: 1px solid #ddd;
    }

    #menu-toggle:checked + .menu-icon + .nav-links {
      display: flex;
    }
  }

.slider{
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px auto 0; /* au lieu de top + transform */
    z-index: 1;          /* il passe SOUS l’overlay */
}
.slide-track {
    display: flex;
    width: calc(200px * 15);
    animation: scroll 10s linear infinite;
}
.slide-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7.5)); }
}


.slide {
    width: 130px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}
img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5em;

    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
img:hover {
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1rem -0.25rem;
}

/* mon petit jojo */
.jojo {
  display: flex;
  align-items: center; 
  gap: 20px;          
  margin-top: 16px;
}

.jojo__img {
  width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.jojo__text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive : image au-dessus sur mobile */
@media (max-width: 600px) {
  .jojo {
    flex-direction: column;
    text-align: center;
  }

  .jojo__img {
    width: 100%;
    max-width: 300px;
  }
}

/* Footer */
footer {
  background-color: #cb6ce6;
  color: #fff;
  text-align: center;
  padding: 25px 10px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

footer img {
  width: 40px; 
  height: 40px; 
  object-fit: contain; 
}

/* Section générale */
.staircase {
  text-align: center;
  margin: 60px;
}

.staircase h2 {
  margin-bottom: 40px;
}

/* Conteneur d'images */
.staircase-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

/* Chaque bloc image + texte */
.staircase-images div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Images */
.staircase-images img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Texte sous l'image */
.staircase-images p {
  margin-top: 8px;
  font-size: 1rem;
  color: #cb6ce6;
  font-weight: 500;
}

/* Effet escalier */
.staircase-images div:nth-child(1) { margin-top: 80px; }
.staircase-images div:nth-child(2) { margin-top: 120px; }
.staircase-images div:nth-child(3) { margin-top: 160px; }
.staircase-images div:nth-child(4) { margin-top: 200px; }

/* Effet au survol */
.staircase-images img:hover {
  transform: scale(1.05);
}


/* Responsive */
@media (max-width: 1024px) {
  .staircase {
    margin: 40px 20px;
  }

  .staircase-images {
    gap: 30px;
  }

  .staircase-images img {
    width: 200px;
  }

  .staircase-images div:nth-child(1) { margin-top: 40px; }
  .staircase-images div:nth-child(2) { margin-top: 60px; }
  .staircase-images div:nth-child(3) { margin-top: 80px; }
  .staircase-images div:nth-child(4) { margin-top: 100px; }
}

/* Mobiles */
@media (max-width: 700px) {
  .staircase-images {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .staircase-images div {
    margin-top: 0;
  }

  .staircase-images img {
    width: 90%;
    max-width: 320px;
  }
}

/* Contact */
.contact-section {
  margin: 60px auto;
  padding: 30px 20px;
  max-width: 700px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  color: white;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 20px;
  color: #ffffff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  text-align: left;
  font-weight: 600;
  color: #cb6ce6;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 2px solid #cb6ce6;
  border-radius: 8px;
  background-color: #3b1e60;
  color: #fff;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #cfa0e8;
}

.contact-btn {
  background-color: #ff00ff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  border: 1px solid white;
}

.contact-btn:hover {
  transform: scale(1.05);
}


