* {
  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: 65px;
  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: 1.5rem;
  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;
}

/* Zelij background */
.zelij {
  position: relative;
  z-index: 0;
  top: 0px;
  width: 99vw;
}
.z1 {
  position: absolute;
  width: 100%;
  
  overflow: hidden;
  left: 0;
  top: 0;
  
}

/* Editions Section */
.titre-edition {
  position: relative; 
  padding-left: 3vw;
  bottom:0vw;
  color: #fff;
  text-decoration: underline;
  text-underline-offset:0.5vw ;
  background-color: #143D5B;
  padding-bottom: 1.2vw;
  padding-top: 5vw;
   margin: 7.2vw;
    width: 85.7%;  
  font-size: 2.9vw;
}
.editions {
  padding: 2vw;
  margin: 7.1vw;
  background: #143D5B;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
  top:-9vw;
  
  padding-bottom: 20vw;
}   
.editions > div {
 display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5vw;
  min-width: 23vw;
  max-width: 33vw;
  flex: 1 1 23vw;
}
.editions div img {
  padding-top: 3vw;
  width: 23vw;
  padding-bottom: 4vw;
  border-radius: 1vw;
  
}
.editions h2 {
  color: #fff;
  width: 23vw;
  font-size: 1.4vw;
  font-weight: lighter;
  padding-bottom: 2vw;
  text-align: center;
  line-height: 1.3;
}
.btn {   
  background-color: #143D5B;
  color: #fff;
  padding: 1vw 2vw;
  border-radius: 50px;
  text-decoration: none;
  font-weight: normal;
  border: 2px solid #fff;
  transition: all 0.3s ease;
  align-items: flex-end;
  text-align: center;
  margin-bottom: 18px;
  font-size: 1.8vw;
}
.btn:hover {
  background-color: #fff;
  color: #143D5B;
  border-color: #fff;
}

/* 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;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .editions {
    padding: 2vw;
  margin: 7vw;
  background: #143D5B;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
  top:-9vw;
  padding-bottom: 20vw;
  }
  .editions > div {
     display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5vw;
  min-width: 23vw;
  max-width: 33vw;
  flex: 1 1 23vw;}
  .editions div img {
     padding-top: 3vw;
  width: 23vw;
  padding-bottom: 4vw;
  border-radius: 1vw;
  }
  .editions h2 {
    width: auto;
    font-size: 1rem;
    padding-bottom: 1vw;
  }
  
  .titre-edition {
   
  position: relative; 
  padding-left: 3vw;
  bottom: 0vw;
  color: #fff;
  text-decoration: underline;
  text-underline-offset:1vw ;
  background-color: #143D5B;
  padding-bottom: 1.2vw;
  padding-top: 5vw;
  margin: 7vw;  
  font-size: 2.9vw;
}}
  


@media (max-width: 700px) {
  html { font-size: 13px; }
  .nav img { 
    height: 45px; }
  .zelij{
    width: 100vw;
  }
  
  
  .editions > div {
     display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5vw;
  min-width: 23vw;
  max-width: 33vw;
  flex: 1 1 23vw;
  }
  .editions div img {
    padding-top: 3vw;
  width: 23vw;
  padding-bottom: 4vw;
  border-radius: 1vw;
  }
  .titre-edition {
  position: relative; 
  padding-left: 3vw;
  bottom: 0vw;
  color: #fff;
  text-decoration: underline;
  text-underline-offset:1vw ;
  background-color: #143D5B;
  padding-bottom: 1.2vw;
  padding-top: 5vw;
  margin: 7vw;  
  font-size: 2.9vw;
}}
@media (max-width: 500px) {
  html { font-size: 11px; }
  
  .titre-edition { font-size: 2.8vw; }
}



/* Overlay for selected revue */
.revue-overlay {
  position: fixed;
  inset: 0;
  background: #143D5B;
  z-index: 5000;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: auto;
  transition: opacity 0.2s;
  margin: 11vw 11vw;}
.revue-overlay.active { display: flex; }
.close-btn {
  position: absolute; top: 2.5rem; right: 3rem; font-size: 2.5rem;
  color: #fff; background: none; border: none; cursor: pointer; z-index: 10;
  font-family: Arial, sans-serif; line-height: 1;
}
.revue-selected {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2vw;
  width: 100%;
  justify-content: center;
}
#selectedCover {
  width: 22vw;
  border: 4px solid #fff;
  border-radius: 10px;
  margin-bottom: .5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .revue-selected {
    flex-direction: column;
    align-items: center;
  }
  #selectedCover { width: 10vw; }
  
}


iframe {
  box-sizing: border-box;
  width: 100%;
}


@media (max-width: 768px) {
  .header .nav {
    display: none;
  }

  .mobile-header {
    display: flex;
    height: 80px;
  }

  .mobile-logo img {
  width: 100px;
  height: 55px;
  
}

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  
}
  

 
  
  

@media (min-width: 769px) {
  .mobile-header,
  .mobile-nav,
  .menu-overlay {
    display: none !important;
  }
}.close-btn {
  position: fixed;
  z-index: 100000; /* plus haut que l'iframe */
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #143D5B;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Bouton fermer (X) */
.close-btn {
  top: 15px;
  right: 15px;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
}



/* Sur mobile, adapte la taille */
@media (max-width: 768px) {
  .close-btn {
    font-size: 2.2rem;
    top: 150px;
    right: 25px;
    background: rgba(0,0,0,0.4);
    color: white;
    background-color: #143D5B;
  }

  
}




/* === OVERLAY PDF VIEWER === */


/* === PDF VIEWER CONTAINER === */
#pdfViewer {
  width: 90vw;
  height: 90vh;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  background-color: #fff;
}

/* === BOUTON FERMETURE === */
#closeOverlay, 
#backButton {
  position: fixed;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 28px;
  font-weight: 300;
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  backdrop-filter: blur(6px);
  transition: all 0.3
}
