* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 70px;
  background-color: #e1e7f2;
  color: rgb(255, 255, 255);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  z-index: 1000;
  overflow: visible;
}

nav {
  display: flex;
  align-items: center;
  width: 100%;
  padding-right: 2rem; /* pour deplacer legerment à droite les links */
}

.logo {
  height: 60px;
  display: flex;
  align-items: flex-start;
}

.logo img {
  height: 160px;
  position: relative;
  top: -50px;
  image-rendering: auto;
}

/* pousse les liens complètement à droite */
.nav-links {
  margin-left: auto;
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: rgb(58, 58, 58);
  text-decoration: none;
}

.nav-links li::after {
  content: '';
  width: 0%;
  height: 2px;
  background: #FFA500;
  display: block;
  margin: auto;
  transition: 0.5s;
}

.nav-links li:hover::after {
  width: 100%;
}

.atelier-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* espace entre les cartes */
    padding: 160px 20px 60px;
}

.atelier-card {
    position: relative;
    width: 90%;
    max-width: 700px;
    height: 300px;
    margin-top: 0; /* superposition */
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 1;
}

.atelier-card:hover {
    transform: scale(1.03);
    z-index: 1;
}

.atelier-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.6);
    transition: 0.4s ease;
}

.atelier-card:hover img {
    filter: blur(2px) brightness(0.9);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4); /* fond sombre semi-transparent */
    transition: background 0.3s ease;
    z-index: 2;
}

.atelier-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.6); /* un peu plus foncé au hover */
}

.card-overlay h2 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.gallery-popup {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(53, 53, 53, 0.84);
  align-items: center;
  justify-content: center;
}

.gallery-content {
  position: relative;
  max-width: 70%;
  max-height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gallery-image {
  top: 20px;
  max-width: 50%;
  max-height: 110vh;
  border-radius: 10px;
  box-shadow: 0 0 20px black;
  object-fit: contain;
  align-content: center;
}

.gallery-popup.active {
  display: flex;
}

/* Criteres communs à tout les boutons */
.gallery-content .arrow-left:hover,
.gallery-content .arrow-right:hover{
  color: rgba(255, 255, 255, 0.705);
  background: rgba(0, 0, 0, 0);
  color: #ffffff;
}

.gallery-popup .close:hover {
  color: #f26a6a;
  transform: scale(1.1);
}

/* code pour le bouton close des popup */
.gallery-popup .close {
  position: fixed;
  top: 70px;
  right: 20px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 1001; /* Assure qu'elle soit au-dessus de tout */
}

/* Code pour les boutons */
.gallery-content .arrow-left,
.gallery-content .arrow-right {
  padding: 30px 30px;
  border: none;
  position: relative;
  cursor: pointer;  
  top: 65%;
  z-index: 1000;
  transition: background 0.3s;
}



.gallery-content .arrow-left {
  left: -60px;
}

.gallery-content .arrow-right {
  right: -60px;
}


.gallery-controls,
.gallery-buttons {
  display: flex;
  justify-content: center;
  gap: 500px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Style commun à tous les boutons */
.gallery-controls button,
.gallery-exit {
  padding: 14px 28px;
  font-size: 30px;
  font-weight: bold;
  border: 2px solid #ffffff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-controls button:hover,
.gallery-exit:hover {
  background-color: #f2f2f2;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
  .gallery-controls button,
  .gallery-exit {
    width: 100%;
    font-size: 16px;
  }
}

  footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 1.875rem;
  }