@font-face {
  font-family: 'Junicode';
  src: url('fonts/Junicode.ttf') format('truetype');
}

body {
  font-family: 'Junicode', serif;
  background-color: #F5F5DC;
  margin: 0;
  padding: 0;
  color: #333;
}

.header-container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #F5F5DC;
  z-index: 1000;
}

header {
  background-color: #F5F5DC;
  color: black;
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-header {
  height: 150px;
}

header p {
  font-size: 12px;
  color: #666;
  text-align: center;
}

nav {
  background-color: #efefc8;
  padding: 10px 0;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
  margin: 5px;
}

nav ul li a, .dropbtn {
  color: #101037;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 10px 15px;
  border-radius: 5px;
  display: block;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

nav ul li a:hover, nav ul li a.active, .dropbtn:hover {
  color: #000000; /* Texte en noir solide */
  background-color: #ebdfc2; /* Fond couleur au survol */
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #efefc8;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: #101037;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ebdfc2; /* Fond couleur au survol */
  color: #000000; /* Texte en noir solide */
}

.dropdown:hover .dropdown-content {
  display: block;
}


main {
  padding: 20px;
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#container01, #container02 {
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}

#container01 {
  background-color: #efefc8;
}

#container02 {
  background-color: #F5F5DC;
}

.img01 {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.numero {
  text-align: center;
  background-color: #efefc8;
  padding: 10px;
  border-radius: 8px;
}

.numero img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .3s ease;
}

.numero img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #F5F5DC;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 1000px;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
}

.modal-lettrine {
  float: left;
  max-width: 200px;
  margin-right: 15px;
  margin-bottom: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: .3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

.nav-button {
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.left-button {
  left: 20px;
}

.right-button {
  right: 20px;
}

.modal-details {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

h1, h2, h3, h4, p {
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { font-size: 1rem; }

p0 {
  display: block;
  text-align: justify;
  font-family: 'Junicode', serif;
  font-style: italic;
  font-size: 0.8rem;
  margin-left: 20px;
  margin-right: 20px;
  padding: 0;
  text-indent: 1.5em;
}

p1 {
  display: block;
  text-align: justify;
  font-family: 'Junicode', serif;
  font-style: normal;
  font-size: 1rem;
  margin-left: 20px;
  margin-right: 20px;
  padding: 0;
  text-indent: 1.5em;
}

p2 {
  display: block;
  text-align: justify;
  font-family: 'Junicode', serif;
  font-style: normal;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

p3 {
  display: block;
  text-align: center;
  font-family: 'Junicode', serif;
  font-style: normal;
  font-size: 1rem;
  margin-left: 20px;
  margin-right: 20px;
  padding: 0;
  text-indent: 1.5em;
  line-height: 3;
  font-weight: bold;
}

.modal-details-button01 {
  display: block;
  margin: 0 auto;
  background-color: #efefc8;
  border: none;
  color: black;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
}

.modal-details-button01:hover {
  color: #efefc8;
  background-color: #101037;
}

.link-button {
    display: inline-block;
    background-color: #efefc8;
    border: none;
    color: black;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
}

.link-button:hover {
    background-color: #101037;
    color: #efefc8;
}


@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  
  nav ul li, .dropdown {
    width: 100%;
    margin: 5px 0;
  }
  
  nav ul li a, .dropbtn {
    white-space: normal;
  }

  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  header {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  main {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #editorial, #info {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .modal-content {
    width: 95%;
  }

  .nav-button {
    font-size: 30px;
  }

  .left-button {
    left: 10px;
  }

  .right-button {
    right: 10px;
  }
}

@media screen and (max-width: 576px) {
  .logo-header {
    height: 60px;
  }

  header p {
    font-size: 10px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }

  .modal-lettrine {
    max-width: 150px;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}
