/* Styles de base */
body {
    background-color: #000000; /* Fond noir */
    color: #ffffff; /* Texte blanc */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Styles pour le bandeau de navigation */
nav {
    background-color: rgb(87, 87, 87); /* Couleur entre l'orange et le rouge */
    padding: 10px;
}

nav a {
    color: #ffffff; /* Texte blanc dans le bandeau */
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 10px;
}

nav a:hover {
    background-color: rgb(87, 87, 87); /* Légère variation de la couleur au survol */
}

/* Menu déroulant */
.dropdown-content a {
    background-color: rgb(87, 87, 87); /* Même couleur que le bandeau */
    color: #ffffff; /* Texte blanc */
}

.dropdown-content a:hover {
    background-color: rgb(87, 87, 87); /* Légère variation de la couleur au survol */
}

/* Styles pour le titre principal */
h1 {
    margin-top: 50px;
    font-size: 2.5em;
    color: #ffffff; /* Texte blanc */
}

/* Styles pour l'image */
.logo {
    margin: 20px 0;
    border-radius: 50%;
    width: 200px;
    height: 200px;
}


/* Styles pour le paragraphe */
p {
    margin-top: 20px;
    margin-left: 100px;
    margin-bottom: 20px;
    margin-right: 100px;
    font-size: 1.2em;
    line-height: 1.5em;
    color: #ffffff; /* Texte blanc */
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #333;
    padding: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 10px;
}

nav a:hover {
    background-color: #555;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown:hover .dropdown-content {
    display: block;
}

h1 {
    margin-top: 50px;
    font-size: 2.5em;
}

.cv {
    margin: 20px 0;
    width: 400px;
    height: 600px;
}

p {
    margin-top: 20px;
    margin-left: 100px;
    margin-bottom: 20px;
    margin-right: 100px;
    font-size: 1.2em;
    line-height: 1.5em;
    color: #ffffff; /* Texte blanc */
}
.patrimoine-small {
    width: 600px;
    height: auto;
    margin-top: 30px;
}
.edt{
    margin-top: 50px ;
    width:1000px ;
    height:500px ;
}
.documentation{
    margin-top: 50px ;
    width:1000px ;
    height:500px ;
}
.apn2l{
    margin-top: 20px;
    width: 1000px;
    height: 500px;
}
.code{
    margin-top: 20px;
    width: 1000px;
    height: 500px;
}
.flip{
    width:50px ;
    height:50px ;
}

.code-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.code-images {
    display: flex;
    justify-content: center; /* centre tout le bloc */
    gap: 30px; /* espace entre les images */
    margin: 40px auto;
    flex-wrap: nowrap;
}

.code-images img {
    width: 350px; /* grande taille uniforme */
    height: auto;
    object-fit: cover;
    border-radius: 8px; /* optionnel : angles légèrement arrondis */
}
.thumbnail {
    width: 400px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.02);
}

/* Modale cachée par défaut */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding-top: 60px;
}

/* Afficher la modale quand elle est ciblée */
.modal:target {
    display: block;
}

/* Image agrandie */
.modal-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

/* Zone cliquable pour fermer */
.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    text-decoration: none;
    background-color: transparent;
}

.modal .close::before {
    content: "✕";
    font-size: 2em;
    color: white;
}
.thumbnail {
    width: 350px; /* taille moyenne */
    height: auto;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.thumbnail:hover {
    transform: scale(1.02);
}

/* Modale cachée par défaut */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding-top: 60px;
}

/* Affiche la modale ciblée */
.modal:target {
    display: block;
}

/* Image agrandie dans la modale */
.modal-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

/* Bouton fermer */
.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    text-decoration: none;
    background-color: transparent;
}

.modal .close::before {
    content: "✕";
    font-size: 2em;
    color: white;
}
/* Image principale en haut */
.image-top {
    text-align: center;
    margin-top: 40px;
}

.main-issue {
    width: 900px;
    max-width: 95%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.main-issue:hover {
    transform: scale(1.02);
}

/* Trois images côte à côte */
.issue-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    flex-wrap: wrap;
}

.issue-thumbnail {
    width: 350px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.issue-thumbnail:hover {
    transform: scale(1.02);
}

/* Modale CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
    padding-top: 60px;
}

.modal:target {
    display: block;
}

.modal-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    text-decoration: none;
    background-color: transparent;
}

.modal .close::before {
    content: "✕";
    font-size: 2em;
    color: white;
}
.image-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  flex-wrap: wrap;
}

/* Ligne du haut = images plus grandes */
.top-row img.large-img {
  width: 400px;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.top-row img.large-img:hover {
  transform: scale(1.03);
}

/* Ligne du bas = images plus petites */
.bottom-row img.small-img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.bottom-row img.small-img:hover {
  transform: scale(1.05);
}

/* Modale */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
  padding-top: 60px;
}

.modal:target {
  display: block;
}

.modal-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.modal .close::before {
  content: "✕";
  font-size: 2em;
  color: white;
}
.image-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    flex-wrap: nowrap;
  }
  
  /* Toutes les images de la grille, même taille */
  .grid-img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .grid-img:hover {
    transform: scale(1.03);
  }
  
  /* Modale pour agrandissement */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
    padding-top: 60px;
  }
  
  .modal:target {
    display: block;
  }
  
  .modal-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
  }
  
  .modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    text-decoration: none;
  }
  
  .modal .close::before {
    content: "✕";
    font-size: 2em;
    color: white;
  }
  .image-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.project-img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.project-img:hover {
  transform: scale(1.05);
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
  padding-top: 60px;
}

.modal:target {
  display: block;
}

.modal-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.modal .close::before {
  content: "✕";
  font-size: 2em;
  color: white;
}
.image-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.project-img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.project-img:hover {
  transform: scale(1.05);
}

/* Modale d’agrandissement */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
  padding-top: 60px;
}

.modal:target {
  display: block;
}

.modal-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.modal .close::before {
  content: "✕";
  font-size: 2em;
  color: white;
}
.image-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.left-image, .right-images img {
  width: 300px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.left-image:hover, .right-images img:hover {
  transform: scale(1.05);
}

.right-images {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.image-grid-projet {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.image-gauche {
  width: 300px;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
}

.images-droite {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.images-droite img {
  width: 300px;
  height: 290px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.images-droite img:hover,
.image-gauche:hover {
  transform: scale(1.05);
}
.image-grid-projet {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.image-gauche {
  width: 300px;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.images-droite {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.images-droite img {
  width: 300px;
  height: 290px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.image-gauche:hover,
.images-droite img:hover {
  transform: scale(1.05);
}
/* Galerie disposition */
.image-grid-projet {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.image-gauche {
    width: 300px;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.images-droite {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.images-droite img {
    width: 300px;
    height: 290px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

/* Modales plein écran */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    text-align: center;
    padding-top: 50px;
}

.modal img.modal-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.modal:target {
    display: block;
}

/* Icône de fermeture (optionnel) */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    text-decoration: none;
}
.image-pair {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.medium-img {
    width: 300px;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.medium-img:hover {
    transform: scale(1.05);
}

/* Modale d’agrandissement */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal:target {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    text-decoration: none;
    font-size: 30px;
    color: white;
}

.cv-img {
    margin: 20px 0;
    width: 300px;
    height: 450px;
}



.doc-img {
    display: block;
    margin: 20px auto;
    width: 600px;
    height: auto;
}
