/* Réinitialisation du style par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fond sombre + police lisible */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #1e1e1e;
  color: #f0f0f0;
}

/* En-tête avec navigation */
header {
  background-color: #111;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

header h1 {
  color: #fff;
  font-size: 28px;
}

/* Liens de navigation */
nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s, transform 0.3s;
}

nav a:hover {
  color: #f39c12;
  transform: scale(1.1);
}

/* Section d'accueil avec une image de fond immersive */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: url('https://source.unsplash.com/1600x900/?photography,dark') no-repeat center/cover;
  color: white;
}

.hero h2 {
  font-size: 48px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  animation: fadeIn 2s ease-in-out;
}

/* Mise en page générale des sections */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.section h3 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideIn 1s ease-in-out;
}

/* Galerie photo responsive */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  user-select: none;
}

.photos img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
  cursor: pointer; /* on montre que c'est cliquable */
}

.photos img:hover {
  transform: scale(1.05);
}

/* Blocs avec effet d'ombre et arrondis */
.block {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  animation: fadeIn 1s ease-in-out;
}

/* Liens généraux */
a {
  color: #f39c12;
  text-decoration: none;
}

/* Enlever contour et soulignement sur les liens avec icônes au hover/focus */
a:hover,
a:focus,
a:active {
  outline: none;
  text-decoration: none;
}

/* Icônes de réseaux sociaux */
.icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-left: 8px;
  transition: transform 0.3s;
}

.icon:hover,
.icon:focus {
  transform: scale(1.2);
  outline: none;
  text-decoration: none;
}

/* Pied de page */
footer {
  text-align: center;
  padding: 20px;
  background-color: #222;
  color: #bbb;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Lightbox - fond sombre et image centrée */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.lightbox #close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.hidden {
  display: none;
}

.decor-left, .decor-right {
  position: fixed;
  top: 20%;
  width: 300px;
  height: 300px;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
}

.decor-left {
  left: -150px;
  background: radial-gradient(circle, #f39c12, transparent);
}

.decor-right {
  right: -150px;
  background: radial-gradient(circle, #3498db, transparent);
}

body::before, body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 80px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.05) 2px,
    transparent 2px,
    transparent 10px
  );
  z-index: 0;
  pointer-events: none;
}

body::before {
  left: 0;
}
body::after {
  right: 0;
}




/* ========================= */
/* ===== MOBILE FIRST ===== */
/* ========================= */

@media (max-width: 768px) {

  /* HEADER */
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
    text-align: center;
  }

  header h1 {
    font-size: 22px;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    margin: 0;
    font-size: 16px;
  }

  /* HERO */
  .hero {
    padding: 60px 15px;
  }

  .hero h2 {
    font-size: 28px;
  }

  /* SECTIONS */
  .section {
    padding: 40px 15px;
  }

  .section h3 {
    font-size: 24px;
  }

  /* BLOCS */
  .block {
    padding: 15px;
  }

  /* GALERIE */
  .photos {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .photos img {
    border-radius: 8px;
  }

  /* TEXTE */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* ICÔNES */
  .icon {
    width: 28px;
    height: 28px;
  }

  /* LIGHTBOX */
  .lightbox img {
    max-width: 95%;
    max-height: 75%;
  }

  .lightbox #close {
    top: 15px;
    right: 20px;
    font-size: 32px;
  }

  /* DÉCORATIONS : désactivées sur mobile */
  .decor-left,
  .decor-right,
  body::before,
  body::after {
    display: none;
  }
}

/* ========================= */
/* ===== TRÈS PETITS ÉCRANS */
/* ========================= */

@media (max-width: 480px) {

  header h1 {
    font-size: 20px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .section h3 {
    font-size: 22px;
  }

  footer {
    font-size: 14px;
  }
}

