
html{
    margin:0;
    padding:0;
}
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

h1, h2{
   font-family: "Montserrat", sans-serif;
      font-weight: bold;
}

p{
    font-family: "Roboto", sans-serif;
    font: 1.3rem;
}

    .nav-link {
      color: black;
      padding: 6px 12px;
      transition: 0.3s;
      font-family: "Montserrat", sans-serif;
      font-weight: bold;
      text-align: center;
    }

    #navbarNav {
  background-color: white;   
  border-radius: 8px;
  box-shadow: -7px 7px 0 rgba(0, 0, 0, 1);
  border: 6px solid black;                     
  padding: 1rem;                  
  margin-top: 10px;               
  transition: all 0.3s ease;
    text-transform: uppercase;


}

    .nav-link:hover,
    .nav-link:focus,
    .nav-link.active {
      background-color: black;
      color: white;
    }
   
  
    .navbar-toggler:focus,
    .navbar-toggler:active {
  outline: none;
  box-shadow: none;
}

    .navbar-toggler{
      border:none;
    }
    
  .custom-toggler {
  border: none;
  background: none;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 10000;
}

.custom-toggler .bar {
  width: 30px;
  height: 3px;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation croix */
.custom-toggler:not(.collapsed) .bar:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.custom-toggler:not(.collapsed) .bar:nth-child(2) {
  opacity: 0;
}

.custom-toggler:not(.collapsed) .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}


.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
  background-color: transparent;
  height: 0px;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}


@media (min-width: 768px) {

#navbarNav {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
  border-radius: 0;
}

    .nav-link {
      color: black;
      border: 2px solid black;
      border-radius: 8px;
      margin-left: 20px;
      padding: 6px 12px;
      transition: 0.3s;
      font-family: "Montserrat", sans-serif;
      font-weight: bold;
    }

    .nav-link:hover,
    .nav-link:focus,
    .nav-link.active {
      background-color: black;
      color: white;
    }
  }

    
  /* FOOTER — MOBILE FIRST (centré) */

main {
  /* make sure to cover the screen */
  min-height: 100vh;

  /* need a solid bg to hide the footer */
  background: white;

  /* put on top */
  position: relative;
  z-index: 1;

  font: 16px/1.4 system-ui, sans-serif;
  padding: 2rem;
}


footer {
  /* place on the bottom */
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;

  background: #252a47;
  display: grid;
  place-items: center;
  padding: 50px;
}







footer.site-footer {
  width: auto;
  background: #000;
  color: #fff;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 100%;
}

.logo-column {
  margin: 0;
}

.footer-logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom:2rem;
}

.content-column h2 {
  text-transform: uppercase;
  font-size: 2rem;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  position: relative;
  margin-bottom: 1rem;
}

.content-column h2::after {
  content: "";
  display: block;
  width: 50%;
  height: 6px;
  background: #ff0000;
  margin: 0.5rem auto 0;
}

.content-column p {
  font-family: "Roboto", sans-serif;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 1.1rem;
  max-width: 80%;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.5rem;
  margin-top: 1rem;
}

.social-icons a {
  color: #fff;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ff0000;
}

/* DESKTOP (min-width: 768px) */
@media (min-width: 768px) {
  footer.site-footer {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding-top: 200px;
    padding-bottom: 100px;
    margin-top: 150px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-column {
    flex: 1 1 300px;
    align-items: flex-start;
  }

  .logo-column {
    align-items: flex-start;
    margin-left: 100px;
  }

  .footer-logo {
    scale: 300%;
    margin: 0;
    margin-left:20%;
  }

  .content-column h2::after {
    margin: 0.5rem 0 0 0;
  }

  .content-column p {
    max-width: 620px;
    font-size: 1.3rem;
  }
}


.background-video {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    margin-top:-4rem;
    z-index:-1;
}

#video-mobile {
  display: none;
}

@media (max-width: 768px) {
  #video-desktop {
    display: none;
  }
  #video-mobile {
    display: block;
  }
}




/* WORK2 */
.filters button, .controls button {
  all: unset; /* 👈 Réinitialise TOUT le style par défaut du navigateur */
  cursor: pointer; /* 👈 Montre que c’est cliquable */
  padding: 0.5rem 1rem;
  border: none;
  color: black;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  border-radius: 6px;
  margin: 0 0.6rem;
  transition: all 0.3s ease;

}

.filters button:hover,
.filters button.active{
  background-color: black;
  color: white;
}

   .slider-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 3rem;
      text-align: center;
      margin-top:50px;
    }

    .filters {
      margin-bottom: 1.5rem;
    }

@media (max-width: 575px) {
  .filters {
    flex-direction: column;
    align-items: center;
    margin-top: -3rem;
    margin-bottom:6rem;
  }

  .filters button {
    width: 100%;
    max-width: 200px;
  }

}


    .filters button {
      margin: 0 0.5rem;
      padding: 0.5rem 1rem;
      cursor: pointer;
    }

    .slider-wrapper {
      overflow: hidden;
      position: relative;
      padding:10px;
      margin-top:50px;
    }

    .slider-track {
      display: flex;
      transition: transform 0.5s ease;
      gap: 1.05rem;
    }
    
  .image-hover-wrapper {
  position: relative;
  display: block;
  border-radius: 8px;
  box-shadow: -7px 7px 0 rgba(0, 0, 0, 1);
  border: 6px solid black;
  overflow: hidden;
}

.image-hover-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  position: relative;
}

/* Calque sombre au hover */
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* assombrissement */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Texte au hover */
.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
  text-align: center;
  pointer-events: none;
}

/* Hover effect */
.image-hover-wrapper:hover .hover-overlay,
.image-hover-wrapper:hover .hover-text {
  opacity: 1;
}



    .slide {
      flex: 0 0 calc(33.333% - 1rem);
   
    }

    .slide img {
      width: 100%;
      height: auto;
      display: block;
    }

    .controls {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 1rem;
   
    }

    .controls button {
      padding: 0.5rem 1rem;
      margin: 0 1rem;
      font-size: 1.2rem;
      cursor: pointer;
      font-size: 2rem;
      font-weight: bold;
    }

    .indicators {
      display: flex;
      gap: 0.5rem;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .dot.active {
      background-color: #000;
    }

    @media (max-width: 768px) {
      .slide {
        flex: 0 0 100%;
      }
    }













/* contact */
.two-columns-page {
  display: flex;
  gap: 13rem;
  padding: 5rem;
  display:flex;
  justify-content: center;
}

.left-column img {
  max-width: 100%;
  height: auto;
  margin-top:-2.5rem;
  border-radius: 0.5rem;
  border-radius: 8px;
  box-shadow: -7px 7px 0 rgba(0,0,0,1);
  border: 3px solid black;
  scale: 0.9;
}

.right-column{
  margin-top:-1.5rem;
}

.right-column h1 {
  font-size: 4rem;
   font-family: "Montserrat", sans-serif;
  font-weight:bold;  
  text-transform: uppercase;

}

.right-column h1::after {
  content: "";
  display: block;
  width: 30%;                 
  height: 6px;
  background: #ff0000;       
  margin-top: 0.5rem;
  margin-bottom:8rem;
}

.line-with-icon {
  gap: 1rem;
  margin-bottom: 0.5rem;
}


.line-with-icon h2 {
  text-transform: uppercase;
  font-size: 1.5rem;
  position: relative;
  margin-bottom: 0.3rem;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}

.icon-and-text {
  display: flex;
  align-items: center;
  gap: 30px;
}

.two-columns-page i{
    color:black;
  font-size: 30px;

}


.two-columns-page i:hover{
  color: red; /* couleur de l'icône */
}


.two-columns-page{
  font-family: "Roboto", sans-serif;
  margin-bottom: 1rem;
  margin-top:1rem;
  line-height: 1.5;
  font-size: 1.3rem;
}



/* Mobile */
@media (max-width: 768px) {
  .two-columns-page {
    flex-direction: column; /* empile en colonne */
    gap: 3rem;              /* réduit l’espace vertical */
    padding: 2rem;          /* réduit le padding */
  }

  .left-column img {
    margin-top: 0; 
    margin-bottom:3rem;         /* enlève la marge négative */
    scale: 1;               /* supprime le scale */
    max-width: 80%;
    margin-left:2rem;
    height: auto;
    border-radius: 8px;
    box-shadow: -7px 7px 0 rgba(0,0,0,1);
    border: 3px solid black;
  }
    .right-column {
      text-align: center;
    }

    .right-column h1::after {
  content: "";
  display: block;
  width: 30%;                 
  height: 6px;
  margin-left:25%;
  background: #ff0000;       
  margin-top: 0.5rem;
  margin-bottom:8rem;
}

  .right-column h1 {
    font-size: 1.8rem;      /* taille adaptée pour mobile */
    margin-bottom: 5rem;    /* réduit le margin bottom */
  }

  .right-column h1::after {
    width: 50%;             /* adapte la largeur du trait */
    height: 6px;
    margin-bottom: 2rem;
  }

  .line-with-icon h2 {
    font-size: 1.2rem;      /* texte un peu plus petit */
  }

  .icon-and-text {
    gap: 15px; 
    display:flex;
    justify-content: center;
    font-size: 1rem;
    
  }

  .two-columns-page i {
    font-size: 20px;        /* icônes un peu plus petites */
  }
}




/* ABOUT */

/* ABOUT — MOBILE FIRST */
.about {
  margin-top: 50px;
  margin-left: 0px;
  margin-right: 0px;
}

.about-container {
  display: flex;
  flex-direction: column; /* empile par défaut */
  gap: 2rem;
  margin-left:0px;
  margin-right: 0px;
}

.about-left,
.about-right {
  flex: 1 1 100%;
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
  font-size: 1.2rem;
}

.about-left h1 {
  font-size: 2rem;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  position: relative;
}

.about-left h1::after {
  content: "";
  display: block;
  width: 30%;
  height: 6px;
  background: #ff0000;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.about-left p {
  margin-top: 0;
  max-width: 100%;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-right h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  margin-bottom: 1rem;
}

.about-right h2::after {
  content: "";
  display: block;
  width: 30%;
  height: 6px;
  background: #ff0000;
  margin-top: 0.5rem;
}

.about-boxes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.box,
.rectangle {
  padding: 1rem;
  border-radius: 8px;
  border: 3px solid black;
  box-shadow: -7px 7px 0 rgba(0, 0, 0, 1);
}

.rectangle {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Bouton CV — MOBILE */
.cv-button {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 2rem; /* Ajout mobile uniquement */
  border: 3px solid black;
  color: black;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.cv-button:hover {
  background-color: black;
  color: white;
}

/* DESKTOP — mise en page côte à côte */
@media (min-width: 768px) {
  .about {
    margin-left: 50px;
    margin-right: 50px;
    padding: 4rem 2rem;
  }

  .about-container {
    flex-direction: row;
    gap: 1rem;
       margin-left: 90px;
    margin-right: 90px;
  }

  .about-left h1 {
  font-size: 3rem;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  position: relative;
}

  .about-left p {
    margin-top: -1rem;
    max-width: 550px;
  }

  .about-boxes {
    flex-direction: row;
  }

  .cv-button {
    margin-bottom: 0; /* Supprime le bottom margin en desktop */
  }
}






/* WORK PROJECT*/

/* ===== MOBILE FIRST ===== */

/* HEADER */
.hero {
  position: relative;
  text-align: center;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  position: relative; /* pas absolute sur mobile pour éviter chevauchement */
  margin-top: 0;
  object-fit: cover;
}

.hero h1 {
  margin-top: 2rem; /* plus petit sur mobile */
  font-size: 2.5rem;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hero h1::after {
  content: "";
  display: block;
  width: 20%;
  height: 6px;
  background: #ff0000;
  margin: 0.5rem auto 0 auto;
  position: relative;
  z-index: 1;
}

/* SECTION INTRO */
.intro {
  padding: 20px 10px;
  max-width: 100%;
  margin: auto;
  margin-top: 2rem;
  z-index: 1;
  position: relative;
}

.intro-grid {
  display: block; /* pas de flex sur mobile */
}

.intro-grid h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.intro-grid p {
  margin-bottom: 1.5rem;
}

.accordion details {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #000;
  color: white;
  max-width: 100%;
  margin-left: 0;
}

summary {
  cursor: pointer;
  font-weight: bold;
  font-weight: bold;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
}

/* CAROUSEL */
.carousel {
  position: relative;
  max-width: 100%;
  height: auto; 
  margin: auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.carousel-track > * {
  flex: 0 0 100%;
  width: 100%;
  height: auto; /* auto pour s'adapter */
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-track img,
.carousel-track video {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: -7px 7px 0 rgba(0,0,0,1);
  border: 6px solid black;
  display: block;
}

.bouton-diplome{
display:flex;
justify-content: center;
margin-top:40px;
}


.carousel-track video {
  object-fit: cover;
  scale: 0.9;
  margin-left:12px;
}
.carousel-dots .prev,
.carousel-dots .next {
  background: none;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}




button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

.carousel-dots {
  margin-top: 10px;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 3px;
  margin-bottom:5px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
}

.dot.active {
  background: #333;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  margin-top:5rem;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: -7px 7px 0 rgba(0,0,0,1);
  border: 6px solid black;
  scale: 0.8;

}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}




/* GALERIE */
.gallery {
  background-color: #f0f0f0;
  padding: 20px 10px;
  text-align: center;
  margin-top: 7rem;
  margin-bottom:5rem;
}

.gallery h2 {
  margin-top:25px;
  margin-bottom: 55px;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.gallery h2::after {
  content: "";
  display: block;
  width: 20%;
  height: 6px;
  background: #ff0000;
  margin: 0.5rem auto 0 auto;
  margin-bottom:10rem;
}

.gallery img{
  margin-top:0px;
}

.gallery .image-hover-wrapper{
  scale:0.5;
  margin-top:-13rem;
}

@media (max-width: 575px) {

.gallery .image-hover-wrapper:nth-child(2),
.gallery .image-hover-wrapper:nth-child(3) {
  scale: 0.5;
  margin-top: -7rem;
}

.gallery .image-hover-wrapper:nth-child(1){

   margin-top: -10rem;
}

}

/* ===== DESKTOP : À partir de 1024px ===== */

@media screen and (min-width: 1024px) {

  .hero img {
    position: absolute; 
    top: 0;
    left: 0;
    margin-top: -2rem;
    z-index: 0;
  }

  .hero h1 {
    margin-top: 5rem;
    font-size: 5rem;
    z-index: 1;
  }

  .hero h1::after {
    width: 8%;
    height: 12px;
  }

  .intro {
    padding: 40px 20px;
    max-width: 1200px;
    margin-top: 50rem;
  }

  .intro-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: start;
  }

  .intro-grid h2 {
    flex: 1 1 200px;
    font-size: 2rem;
  }

  .intro-grid p {
    flex: 2 1 300px;
    font-size: 1.3rem;
  }

  .accordion details {
    max-width: 60%;
    margin-left: 430px;
  }

.bouton-diplome{
  width: 30%;
  margin-left:430px;
  margin-top:80px;
}


  .carousel {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 950px;
  height: 700px;
  margin: 0 auto;
  padding: 0 50px;
}


  .carousel-section{
    margin-top:8rem;
  }

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 40px; /* espace entre chaque élément */
}

 .carousel-track > * {
  flex: 0 0 100% ; 
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}



  .carousel-track img,
  .carousel-track video {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

.carousel-track video {
  object-fit: cover;
  scale: 1;
  margin-left:15px;
}

  button.prev, button.next {
    font-size: 2rem;
  }

  .gallery {
    padding: 40px 20px;
    margin-top: 10rem;
  }

  .gallery h2 {
    margin-bottom: 20px;
  }

  .gallery h2::after {
    width: 8%;
    height: 12px;
     margin-bottom:18rem;
  }

  .gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .gallery-images img {
    max-width: 300px;
    margin-bottom: 0;
  }

  .gallery .image-hover-wrapper{
  scale:1;
}


}

