/* ========== PAGE ANNEXES ========== */

.annexes-page {
  --accent-color: #005ffe;     /* Bleu moderne — change selon ton identité */
  --text-color: #222;
  --bg-light: #f8f9fb;
  --border-color: #e0e4e8;
  --radius: 12px;

  font-family: "Inter", "Poppins", sans-serif;
  color: var(--text-color);
  background: white;
  padding: 60px 20px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

/* -------- HERO -------- */
.annexes-hero {
  text-align: center;
  margin-bottom: 80px;
}

.annexes-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--accent-color);
  font-weight: 700;
}

.annexes-hero p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* -------- SECTIONS -------- */
.annexes-section {
  margin-bottom: 70px;
}

.annexes-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.annexes-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* -------- LISTES (Liens, PDF) -------- */
.annexes-links,
.annexes-pdf {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.annexes-links a,
.annexes-pdf a {
  display: inline-block;
  padding: 12px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.25s ease;
}

.annexes-links a:hover,
.annexes-pdf a:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 95, 254, 0.15);
}

/* -------- GRILLE D’AFFICHES -------- */
.annexes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.annexes-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.annexes-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.annexes-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.annexes-actions {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--border-color);
}

.annexes-actions a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 600;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  padding: 6px 12px;
  transition: all 0.25s ease;
}

.annexes-actions a:hover {
  background: var(--accent-color);
  color: white;
}

/* -------- Responsive -------- */
@media (max-width: 600px) {
  .annexes-hero h1 {
    font-size: 2rem;
  }

  .annexes-card img {
    height: 220px;
  }

  .annexes-section h2::after {
    width: 80%;
  }
}
