* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Julius Sans One', Arial, sans-serif;
  font-style: normal;
  color: #143D5B;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Nav */
.header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  height: 7.3w;

}

.nav a {
  color: #10326c;
  text-decoration: none;
  margin: 0 0.5vw;
  position: relative;
  padding-bottom: 0vw;
  font-family: 'Julius Sans One';
  transition: color 0.3s ease;
  font-size: 1.5vw;
}

.t-n:hover {
  color: #143D5B;
  text-decoration: underline;
  text-underline-offset: 10px;
}

.t-n::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 15px;
  background: url('images/logos/mosaic-pattern.png') no-repeat center bottom / contain;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.t-n:hover::after {
  transform: scaleX(1);
}

.logo-nav  {width: 100px;
  
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  z-index: 1001;
  border-radius: 14px;
  padding: 0.5rem 0;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: #10326c;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a:hover {
  color: #2798e9;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.arrow {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

.dropdown .arrow {
  margin-left: 6px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* Mobile Header */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.mobile-logo img {
  width: 100px;
  height: 45px;
}


.menu-toggle {
  cursor: pointer;
}

.menu-toggle svg {
  height: 30px;
  width: 30px;
}

 .mobile-nav {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 55px;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  padding: 1rem;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;

}

.mobile-nav a {
  padding: 0.75rem 1rem;
  color: #143D5B;
  text-decoration: none;
  font-family: 'Julius Sans One';
  font-size: 1rem;
  font-weight: normal;
  border-bottom: 1px solid #eee;
}

.mobile-nav a:last-child {
  border-bottom: none;
  
}
.mobile-nav a:hover {
  color: #2798e9;
}


.mobile-nav.open {
  transform: translateX(0%);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
}





/*actualite*/

/*zelij*/
.zelij {
  position:relative;

}
.zelij img{
  position:absolute;
width:100%;
z-index:0;
top:0vw;
}

.vid-wraper {
  background: #143D5B;
  position: relative;
  padding: 1vw;
  margin: 7.2vw auto;
  width: 86%;
  background: #143D5B;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4vw;
}


.titre-archive {
  height: 5vw;
color:white ;
text-decoration: underline;
text-underline-offset: 1vw;
  
}

    h2{
      color: #fff;
      font-size: 1.6vw;
      font-weight: normal;
      padding-top: 4vw;
    }

    h1{
      margin-bottom: 0vw;
      color: #fff;
      font-size: 2.4vw;
      font-weight: normal;
    
    }

    .list-vid{background: #143D5B;
  position: relative;
    
    padding: 1vw; 
     margin: 7.2vw;
    width: 85.7%;
    height: 85vw;
    background: #143D5B;
z-index:1;
    display:flex;
    flex-direction: column;
    justify-content: space-evenly;}
    

    
     
    /*footer*/
/* footer */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: space-between;
  background-color: #143D5B;
  color: #fff;
  
  padding: 2vw 1vw;
  position: relative;
  height: 13vw;
  width: 100%;
}

.ft-part1 {
  position: relative;
  width: 13vw;
}

.ft-part1 img {
  position: absolute;
  width: 100%;
  right: 7.5vw;
  top: -2vw;
  pointer-events: none;
}

.ft-part2 {
  padding-left: 0vw;
  flex: 2 1 24vw;
  text-align: left;
  font-size: 1.4vw;
  
}

.ft-adress {
  padding-bottom: 1.4vw;
  text-align: left;
  left: 10vw;
}

.ft-tel {
  padding-bottom: 2vw;
  text-align: left;
}

.footer-contact .logo-footer {
  position: absolute;
  top: 1vw;
  right: 3vw;
  width: 11vw;
}

.logo-footer {
  flex: 2;
  width: 11vw;
  margin-top: 1vw;
  pointer-events: none;
}

/* Images zoomables */
img.zoomable {
  cursor: pointer;
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
  border-radius: 0px;
}

/* Lightbox zoom */
.zoom-container {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.zoom-container img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.zoom-container.active {
  display: flex;
}

/* Media Queries */
@media (max-width: 768px) {
  .header .nav {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .list-vid{
    height: inherit;
    padding-bottom: 25vw;
  }
  .vid-wraper{background: #143D5B;
 
    height: 460vw;
    }
}
  
  
  

  
  
  

@media (min-width: 769px) {
  .mobile-header,
  .mobile-nav,
  .menu-overlay {
    display: none !important;
  }
}


h1  {
  text-align: center;
  margin-bottom: 0vw;
}

.category {
  margin-bottom: 1vw;
}

.category h2 {
  margin-bottom: 1vw;
  font-size: 1.8vw;
}

/* Main Video Player */
.main-video {
  display: flex;
  justify-content: center;
  margin-bottom: 0vw;
}
.main-video {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-bottom: 2vw;
}


.main-video video {
  width: 80%;
  max-width: 60vw;
  max-height: 30vw;
  border-radius: 10px;
  background: #000;
}

/* Carousel Wrapper & Scroll Buttons */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scroll-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 3vw;
  border: none;
  cursor: pointer;
  padding: 4 1vw;
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 2;
  border-radius: 4px;
  display: none; /* will be shown by JS if needed */
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

/* Carousel Style */
.carousel {
  display: flex;
  gap: 1.5vw;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1vw 0;
  scrollbar-width: none; /* Firefox */
}

.carousel img {
  width: 20vw;
  height: 13vw;
  object-fit: contain; /* ✅ Pas coupées */
  background-color: black; /* ✅ Remplit l’espace vide */
  border-radius: 6px;
  margin: 0 5px;
  transition: transform 0.2s ease;
}

.carousel img:hover {
  transform: scale(1.05);
}

.carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Miniatures (thumbnails) */
.thumbnail {
  flex-shrink: 0;
  width: 18vw;
  height: 12vw;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #000;
}
.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

/* Titre de la photo active */
.video-title {
  text-align: center;
  font-size: 1.8vw;
  font-family: 'Julius Sans One', sans-serif;
  color: #fff;
  margin-bottom: 2vw;
}

.main-nav-btn {
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}
.main-nav-btn:hover {
  color: #2798e9;
}

#photoDisplay {
  width: 60vw;
  height: 35vw;
  object-fit: contain;
  background-color: #000;
  border-radius: 10px;
  display: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

#photoDisplay.active {
  display: block;
}

#photoDisplay.zoomed {
  transform: scale(1.8);
}


/* responsive pour petits écrans */
@media (max-width: 768px) {
  .titre-archive h1{
    font-size: 3.5vw;
  }

  .category{
    margin-bottom: 2vw;
  }
  .vid-wraper p{
    font-size: 4vw;
  }
  .category h2 {
    font-size: 2.5vw;
  }
  #photoDisplay {
    width: 60vw;
    height: 40vw;
  }

  .vid-wraper {
  background: #143D5B;
  position: relative;
  padding: 1vw;
  margin: 7.2vw auto;
  width: 86%;
  background: #143D5B;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4vw;
  height: auto;
}

}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6vw;
  margin: 3vw 0;
  flex-wrap: wrap;
}

.page-btn {
  background-color: transparent;
  border: 2px solid #143D5B;
  color: #fff;
  font-family: 'Julius Sans One', sans-serif;
  font-size: 1rem;
  padding: 0.6vw 1.2vw;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 40px;
}

.page-btn:hover {
  background-color: #3f9de0;
  color: #fff;
  transform: translateY(-2px);
}

.page-btn.active {
  background-color: #3b8dc8;
  color: #fff;
  border-color: #143D5B;
  font-weight: bold;
  transform: scale(1.05);
}





