* {
  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: 0vw; 
     margin: 7.2vw;
     width: 85.7%;
  min-height: 100vh; 
    background: #143D5B;
z-index:1;
    display:flex;
    flex-direction: column;
    justify-content: space-evenly;}

.titre-archive {
  height: 20vw;
color:white ;
text-decoration: underline;
text-underline-offset: 1vw;
padding-left: 5vw;
}

    h2{
      color: #fff;
      font-size: 1.6vw;
      font-weight: normal;
    }
    h1{
      color: #fff;
      font-size: 2.4vw;
      font-weight: normal;
    
    }

    .list-vid{background: #143D5B;
  position: relative;
    
    padding: 1vw; 
     margin: 7.2vw;
    width: 85.7%;
    height: 125vw;
    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;
}

.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;
  }
  .titre-archive h1{
    font-size: 5vw;
  }

  .vid-wraper video{
    width: 30vw;
    
  }
 
}
  
  
  

  
  
  

@media (min-width: 769px) {
  .mobile-header,
  .mobile-nav,
  .menu-overlay {
    display: none !important;
  }
}


h1  {
  text-align: center;
  margin-bottom: 3vw;
}

.category {
  margin-bottom: 4vw;
  padding-left: 1vw;

}

.category h2 {
  margin-bottom: 1vw;
  font-size: 1.8vw;

  
}

/* Main Video Player */
/* === Main Display === */
.main-video {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  margin-bottom: 2vw;
}

.main-video img {
  width: 80%;
  max-width: 60vw;
  max-height: 35vw;
  border-radius: 10px;
  background-color: #000; /* fond noir */
  object-fit: contain; /* évite de couper les images */
}

.main-nav-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 3vw;
  border: none;
  cursor: pointer;
  padding: 0.5vw 1vw;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.main-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}




/* Carousel Wrapper & Scroll Buttons */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 1.5vw;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1vw 0;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}

/* Boutons de scroll */
.scroll-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 3vw;
  border: none;
  cursor: pointer;
  padding: 0.3vw 1vw;
  position: absolute;
  top: 6vw;
  transform: translateY(-50%);
  border-radius: 6px;
  z-index: 2;
}
.scroll-btn:hover {
  background-color: rgba(13, 157, 201, 0.6);
  color: white;
  
  
}
.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

/* Miniatures d’images */
.thumbnail {
  width: 18vw;
  aspect-ratio: 16 / 9;
  object-fit: contain; /* ✅ pour éviter de couper les images */
  background-color: #000; /* fond noir si vide */
  border-radius: 6px;
  transition: transform 0.3s;
  cursor: pointer;
}
.thumbnail:hover {
  transform: scale(1.05);
}

.thumb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18vw;
}

.thumb-title {
  font-size: 1vw;
  color: white;
  text-align: center;
  margin-top: 0.3vw;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* limite à 2 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


@media (max-width: 900px) {
  .thumb-container { width: 70vw; }
  .thumb-title { font-size: 2vw; }
}



.video-title {
  text-align: center;
  
  font-size: 3vw;
  font-family: 'Julius Sans One', sans-serif;
  color: #fff;
  margin-bottom: 3vw;
}


/* --- Vidéo principale --- */
.main-video video {
  width: 90%;
  max-width: 60vw;
  aspect-ratio: 16 / 9; /* garde toujours le même format */
  background-color: #000; /* fond noir autour de la vidéo */
  border-radius: 10px;
  object-fit: contain; /* garde toute l'image visible sans couper */
}

/* --- Miniatures (thumbnails) --- */
.video-link img {
  width: 100%;
  aspect-ratio: 16 / 9; /* même format pour toutes les images */
  object-fit: contain; /* pas de coupe, fond visible autour */
  background-color: #000; /* fond noir si l'image n’occupe pas tout */
  border-radius: 6px;
  transition: transform 0.3s;
}


@media(max-width:786px) {
  .thumb-container { width: 90vw; }
  .thumb-title { font-size: 3vw; }

  .category {
  margin-bottom: 4vw;
  padding-left: 1vw;
}

.category h2 {
  margin-bottom: 1vw;
  font-size: 2.8vw;
  font-weight: bold;
}

.main-video video {
  width: 90%;
  max-width: 80vw;
  aspect-ratio: 16 / 9; /* garde toujours le même format */
  background-color: #000; /* fond noir autour de la vidéo */
  border-radius: 10px;
  object-fit: contain; /* garde toute l'image visible sans couper */
}

.scroll-btn {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 3vw;
  border: none;
  cursor: pointer;
  padding: 0.3vw 1vw;
  position: absolute;
  top: 8vw;
  transform: translateY(-50%);
  border-radius: 6px;
  z-index: 2;
  display: none;
}
  
}


.fst{
  border-top: 0.2vw solid #143D5B;
  
}
.l1{
  
  width: 53vw; 
}
.l2{
  width: 48vw; 
}

.l3 {
  width: 43vw; 
}

.l4{
  width: 45vw;
}
.l5{
  width: 50vw; 
}
.l6{
  width: 55vw; 
}