@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.alert {
    position: fixed;
    top: 5%;
    right: 2%;
    background: #111;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    padding: 20px;
    width: 300px;
    height: 100vh;
    border-radius: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease-in-out;
	 z-index: 1000; 
}

.alert .navigation1 {
    display: flex;
    flex-direction: column;
    list-style: none;
    text-align: center;
}

.alert .navigation1 li a {
    text-decoration: none;
    color: #fff;
}

.alert .navigation li a {
    text-decoration: none;
    color: #fff;
}
.alert .navigation1 li a:hover {
    text-decoration: none;
    color: red;
}

.alert p {
    margin: 30px;
    letter-spacing: 1px;
}

.alert i {
    display: flex;
    justify-content: flex-end;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
	 z-index: 1000; 
}

body {
    background: #fefefe;
}

header {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    top: 0;
    left: 0;
	 box-shadow: 0 3px 4px rgba(0, 0, 0, 0.19), 0 2px 2px rgba(0, 0, 0, 0.23);
     z-index: 1000; 
    padding: 15px 20px;
    background:#ef6535;
    position: fixed;
    
}

header .logo {
    color: #fff;
    font-weight: bold;
    font-size: 2.5em;
    text-decoration: none;
}

header ul {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 60px;
    list-style: none;
}

header .navigation li a {
    text-decoration: none;
    color: #fff;
	
}

header .navigation li a:hover {
   color:#fff;
  
background:#1b3665;
padding:8px;
border-radius:5px;
}
header .navigation li a.active {
color:#fff;
  
background:#1b3665;
padding:8px;
border-radius:5px;
}
header .navigation li a.active:hover {
font-weight:900;   
border-bottom:2px solid red; 
}
header .hamburger {
    display: none;
    color: #fff;
    cursor: pointer;
}
@media(max-width:991px) {
    header .navigation {
        display: none;
    }

    header .hamburger {
        display: block;
    }
}


/* The Image Box */
div.img {
  border: 1px solid #dfdfdf;
  border-radius:5%;
}

div.img:hover {
  border: 1px solid #342532;
}

/* The Image */
div.img img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius:5%;
}

/* Description of Image */
div.desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

/* Add Responsiveness */
.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 800px;
  height: 520px;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0.1)} 
  to {transform:scale(1)}
}

/* The Close Button */
.closex {
  position: absolute;
  top: 110px;
  right: 300px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.closex:hover,
.closx:focus {
  color: #c3c3c3;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #fff;
}

/* Responsive Columns */
@media only screen and (max-width: 700px){
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
  .modal-content {
    width: 100%;
  }
}

@media only screen and (max-width: 500px){
  .responsive {
    width: 100%;
  }
}

/* Clear Floats */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}
.footer {
   position: relative;
   left: 0;
   bottom: 0;
   width: 100%;
   height: 100px;
   
   color: white;
   text-align: center;
    padding: 20px;
}

  @media(max-width:991px) {
    header .navigation {
        display: none;
    }

    header .hamburger {
        display: block;
    }
}
.modal {
    display: none; 
    position: fixed; z-index: 1000; padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9);
}

.prev, .next {
    cursor: pointer;
    position: absolute; top: 50%; width: auto;
    padding: 16px; margin-top: -50px;
    color: white; font-weight: bold; font-size: 40px;
    transition: 0.6s ease; user-select: none;
}

.next { right: 5%; }
.prev { left: 5%; }

.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }
/* Alignement de la galerie */
.row-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    padding: 35px;
}

.gallery-img {
    width: 280px;
    height: 230px;
    object-fit: cover; /* Empêche la déformation */
    border-radius: 3%;
    cursor: pointer;
    transition: 0.3s;
    padding: 5px;
}

.gallery-img:hover { opacity: 0.7; }

/* Styles du Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    margin-top: 60px;
}

.closex {
    position: absolute; top: 20px; right: 35px;
    color: #f1f1f1; font-size: 40px; cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute; top: 50%; width: auto;
    padding: 16px; color: white; font-weight: bold;
    font-size: 30px; transition: 0.6s ease;
    user-select: none; text-decoration: none;
}
.next { right: 5%; }
.prev { left: 5%; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

