* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body, html {
    overflow-x: hidden;  
}


.cCarousel-item {
  width: calc((100% - 48px) / 3); 
  min-width: calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .cCarousel-item {
    width: calc((100% - 24px) / 2); 
    min-width: calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 575px) {
  .col-md-4 {
    margin-bottom: 24px;
  }
  .cCarousel-item {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
  }
}
* {
    list-style: none;
    text-decoration: none;
    margin: 0px;
}


body { 
  background-color: #111215;
 
  font-family: 'Poppins';
  overflow-x: hidden;
}

/*Menu de navigation*/
.header {
  width: 100%;
  padding: 1.3rem 15%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;

}

.logo {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.navbar2 a {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  margin-left: 2.5rem;

}

.icons {
  position: absolute;
  font-size: 2.8rem;
  color: #fff;
  cursor: pointer;
  display: none;
  right: 5%;
  top: 2%;
}

@media (max-width: 822px) {
  .icons {
    display: inline-flex;
  }
  .logo {
    z-index: 100;
    position: absolute;
    top: 2%;
    left: 5%;
    font-family: 'Orbitron', sans-serif;
  }
  .navbar2 {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 18.7rem;
    background-color: rgb(17, 18, 21);
    z-index: 99;
    visibility: hidden;  
    opacity: 0;  
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease; 
  }

  .navbar2.active {
    visibility: visible;  
    opacity: 1;  
    transform: translateY(0);
    height: 45%; 
  }

  .navbar2 a {
    display: block;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    text-align: center;
  }

  .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10%;
    background: rgb(17, 18, 21);
  }
}


/*Début*/
.title1 {
    font-size: 35px;
    font-weight: 500;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ef4444);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}
.title2 {
    font-size: 23px;
    color:white;
    font-weight: 500;

}


/*Mes projects*/
.multi {
    font-size: 45px;
    
    font-weight: 500;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sae {
    color: white;
    font-weight: 400;
    font-size: 25px;
}
.sae2{
    font-weight: bold;
    font-size: 17px;
    
}
.readmore {
    letter-spacing: 3px;
    background-color: #242529;
    color: white;
    border-radius: 3px;
    width: auto;
}

.bg3 {
    background-color: #18191d;
    border-radius: 5px;
    padding: 10px;
}


.bg3a {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3a::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/frenchbox_illu.jpg'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3a:hover::before {
  opacity: 1;
}


.bg3a > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.bg3b {
  position: relative;
  overflow: hidden;
  background-color: #18191d; /* fallback */
  transition: background 0.5s ease;
}


.bg3b::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/japan_illu.jpg'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3b:hover::before {
  opacity: 1;
}


.bg3b > .row {
  position: relative;
  z-index: 1;
  color: white; 
}

.bg3c {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3c::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/cocorico_illu.jpg'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

/* Affiche l'image floue au hover */
.bg3c:hover::before {
  opacity: 1;
}


.bg3c > .row {
  position: relative;
  z-index: 1;
  color: white; 
}
.yes {
    color: white;
}
.border-gradient {
  padding: 2px; /* épaisseur de la bordure */
  border-radius: 8px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ef4444); 
  display: inline-block;
}

.content-inside {
  background-color: #000; 
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 15px;
  color: white;
}
.content-inside:hover {
    background-color: #1a1a1a;
}


/*Caroussel*/

.body2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  
}




.cCarousel {
  position: relative;
  margin: auto;
}

.cCarousel .arrow {
  position: absolute;
  top: 50%;
  display: flex;
  width: 45px;
  height: 45px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  z-index: 100;
  font-size: 26px;
  color: white;
  background: #00000072;
  cursor: pointer;
  pointer-events: auto;
}


.carousel-vp {
 
  margin: auto;
  height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: auto;
}


/* Responsive : 1 colonne sur mobile */
@media (max-width: 575px) {
  .cCarousel-item {
    
    box-sizing: border-box;
    margin-bottom: 24px;
  }
  .carousel-vp {
    height: auto;
    min-height: 320px;
    max-height: 80vh;
    
    overflow: hidden;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
  .carousel-vp::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .cCarousel-inner {
    gap: 0;
    flex-direction: row;
    width: 100vw;
    left: 0;
    transition: none;
    position: relative;
    display: flex;
  }
  .cCarousel-item {
    scroll-snap-align: start;
  }
  .cCarousel .arrow {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    font-size: 26px;
    z-index: 100;
    background: #222;
    opacity: 0.95;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
  }
  .cCarousel .prev {
    left: -55px !important;
  }
  .cCarousel .next {
    right: -55px !important;
    
  }
}

.cCarousel .cCarousel-inner {
  gap: 24px;
  display: flex;
  position: absolute;
  transition: transform 0.5s ease;
  left: 0px;
}

.cCarousel-item {
  
  min-width: 265px; /* Protection pour le responsive */
  height: auto; /* Laisse la hauteur suivre le contenu comme dans "Mes projets" */
  border-radius: 5px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
}

.cCarousel-item img {
  width: 100%;
  object-fit: cover;
  min-height: 246px;
  color: white;
}

.cCarousel-item .infos {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  background: white;
  color: black;
}

.cCarousel-item .infos button {
  background: #222;
  padding: 10px 30px;
  border-radius: 15px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.cCarousel .prev {
  left: -55px;  
}

.cCarousel .next {
  right: -55px; 
}


/*Projets IUT*/

.bg3d {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3d::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae1.avif'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3d:hover::before {
  opacity: 1;
}


.bg3d > .row {
  position: relative;
  z-index: 1;
  color: white; 
}

.bg3e {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3e::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae102.webp'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3e:hover::before {
  opacity: 1;
}


.bg3e > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.bg3f {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3f::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae103.jpg'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3f:hover::before {
  opacity: 1;
}


.bg3f > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.bg3g {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3g::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae104.avif'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3g:hover::before {
  opacity: 1;
}


.bg3g > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.bg3h {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3h::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae105.jpg'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3h:hover::before {
  opacity: 1;
}


.bg3h > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.bg3i {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3i::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae106.avif'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3i:hover::before {
  opacity: 1;
}


.bg3i > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.bg3j {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3j::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae201.avif'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3j:hover::before {
  opacity: 1;
}


.bg3j > .row {
  position: relative;
  z-index: 1;
  color: white; 
}



.bg3k {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3k::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae202.avif'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3k:hover::before {
  opacity: 1;
}


.bg3k > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.bg3l {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3l::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae203.avif'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3l:hover::before {
  opacity: 1;
}


.bg3l > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.bg3m {
  position: relative;
  overflow: hidden;
  background-color: #18191d; 
  transition: background 0.5s ease;
}


.bg3m::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/mes-projets/sae204.webp'); 
  background-size: cover;
  background-position: center;
  filter: blur(3px); 
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}


.bg3m:hover::before {
  opacity: 1;
}


.bg3m > .row {
  position: relative;
  z-index: 1;
  color: white; 
}


.text2 {
  font-size: 20px;
  color: white;
}