/* Global Styles */
@font-face {
  font-family: 'raleway';
  src: local('raleway'),
       url('fonts/raleway.woff2') format('woff2'),
       url('fonts/raleway.woff') format('woff');
}
@font-face {
  font-family: 'Source Sans Pro';
  src: local('Source Sans Pro'),
       url('fonts/Source Sans Pro.woff2') format('woff2'),
       url('fonts/Source Sans Pro.woff') format('woff');    
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'),
       url('fonts/Roboto.woff2') format('woff2'),
       url('fonts/Roboto.woff') format('woff');
       
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
}
p {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

header {
  display: flex;
  background-color: #FAF0CA;
  padding: 10px;
  justify-content: space-between;
  align-items: center;
  
  
}
a{
  text-decoration: none;
  color: black;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: bold;


}

.icon-container img {
  
  margin: 0 5px;
  width: 40px;
  height: 40px;


  }
  .logo {
    display: flex;
    justify-content: flex-end;

}

.logo :hover {
    width: 100px;
    height: 100px;
    transition: opacity 0.5s ease-in-out; 

}
.icons img, .footer-icons img {
  width: 24px;
  margin: 0 5px;
}
.language-switch {
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr; /* Une seule colonne */
  gap: 20px; /* Espacement entre les éléments */
  padding: 20px;
}

.card {
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  display: block;
  border-radius: 10px; /* Coins arrondis pour un meilleur design */
}

.card .text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.card:hover .text {
  opacity: 1;
}

footer {
  background-color: #F95738;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  text-align: center;
}

footer p {
  margin: 5px 0;
  color: white;
}

footer img {
  width: 22px;
  height: 22px;
  margin: 0 6px;
}


#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ff704d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none; /* Par défaut, le bouton est masqué */
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#back-to-top:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Affiche le bouton uniquement sur les écrans mobiles */
@media (max-width: 768px) {
  #back-to-top {
      display: block; /* Bouton visible uniquement sur mobile */
  }
}


/* Desktop */
@media (min-width: 769px) {
  .gallery {
      grid-template-columns: 1fr 1fr; /* Deux colonnes pour PC */
      gap: 30px; /* Plus d'espacement entre les images */
  }
  #back-to-top {
   
    visibility: hidden;
}
}

