/* === Reset et style général === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: blue;
  text-align: center;
  padding: 20px;
  min-height: 100vh;
}

/* === En-tête === */
header {
  margin-bottom: 20px;
}

/* === Logo principal === */
.logo {
  width: min(450px, 80vw);
  max-width: 450px;
  border-radius: 50%;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* === Titre principal === */
.main-title {
  color: #007BFF;
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 123, 255, 0.3);
}

/* === Classe pour cacher visuellement mais garder pour les lecteurs d'écran === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Contact === */
.contact {
  margin: 30px 0;
}

.contact p {
  margin: 10px 0;
  font-size: 1.1em;
}

.phone a,
.email a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.phone a:hover,
.email a:hover {
  text-decoration: underline;
}

/* === Réseaux sociaux === */
.socials {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* === Galerie === */
.gallery {
  margin-top: 40px;
}

.gallery h2 {
  color: #007BFF;
  margin-bottom: 30px;
  font-size: 2em;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.image-box {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.image-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
}

.work-sample {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.image-box:hover .work-sample {
  transform: scale(1.05);
}

.image-description {
  padding: 15px;
  color: #007BFF;
  font-weight: bold;
  margin-top: auto;
}

/* === Loading indicator === */
.loading {
  color: #007BFF;
  font-size: 1.2em;
  margin: 40px 0;
}

.loading::after {
  content: '';
  animation: dots 2s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* === Modal pour agrandir les images === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #007BFF;
}

/* === Media queries pour responsive === */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .logo {
    width: min(350px, 90vw);
  }

  .main-title {
    font-size: 1.8em;
  }

  .contact p {
    font-size: 1em;
  }

  .social-icon {
    width: 60px;
    height: 60px;
  }

  .gallery h2 {
    font-size: 1.5em;
  }

  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
  }

  .work-sample {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: min(280px, 85vw);
  }

  .main-title {
    font-size: 1.5em;
  }

  .contact p {
    font-size: 0.9em;
  }

  .socials {
    gap: 15px;
  }

  .social-icon {
    width: 50px;
    height: 50px;
  }

  .gallery-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .work-sample {
    max-height: 200px;
  }

  .image-box {
    min-height: 240px;
  }
}