/* -------------------- */
/*        GLOBAL        */
/* -------------------- */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #e0e0e0;
  background-color: #121212;
}

header {
  padding: 20px;
  background: #1e1e1e;
  text-align: center;
  font-size: 25px;
}

a {
  color: #a6d7ff;
  text-decoration: none;
}
a:visited {
  color: #497091;
}
a:active {
  color: lightslategray;
}

/* -------------------- */
/*     NAVIGATION       */
/* -------------------- */

nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, 210px);
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 10px 20px;
}

nav a,
nav a:visited {
  font-weight: bold;
  color: #e0e0e0;
}

/* -------------------- */
/*        HERO          */
/* -------------------- */

.hero {
  min-height: 80vh;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 48px);
  margin-bottom: 10px;
  color: #ffffff;
}

.hero div {
  width: 100%;
  max-width: 600px;
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  text-align: justify;
  color: #cccccc;
}

/* -------------------- */
/*       CONTENT        */
/* -------------------- */

.section {
  padding: 60px 20px;
  text-align: center;
  background-color: #1e1e1e;
  color: #e0e0e0;
}

li {
  font-size: 20px;
  margin: 10px;
  list-style-type: none;
  text-align: justify;
}

i {
  font-size: large;
}

#centered {
  text-align: center;
}

/* -------------------- */
/*        GRID          */
/* -------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Card autour de chaque image */
.card {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 180ms ease;
}

/* Petit effet au survol */
.card:hover {
  transform: translateY(-6px);
}

/* Conserver un ratio (1:1) pour les vignettes */
.card .thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.card figcaption {
  padding: 10px 12px;
  font-size: 16px;
  font-weight: bold;
}

/* -------------------- */
/*       FOOTER         */
/* -------------------- */

footer {
  padding: 20px;
  background: #1e1e1e;
  text-align: center;
  font-size: 14px;
  color: #aaaaaa;
}

/* -------------------- */
/*     RESPONSIVE       */
/* -------------------- */

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }

  nav {
    grid-template-columns: 1fr;
  }

  iframe {
    width: 90%;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  .hero p {
    font-size: 16px;
  }
}
