/* Réinitialisation de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* ----- Header : image de fond + titre par-dessus ----- */
header {
  position: relative;
  width: 100%;
  padding: 80px 20px;          /* hauteur confortable pour voir l'image */
  text-align: center;
  color: #fff;
  background-image:
    /*linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), /* voile sombre pour la lisibilité */
    url("./images/hourdel.png");                   /* remplace par ton image */
  background-size: cover;
  background-position: center;
}

/* ----- Titre positionné au pixel près ----- */
/* Le header (position: relative ci-dessus) sert de repère.
   Ajuste simplement les valeurs en px ci-dessous :            */
header h1 {
  position: absolute;
  top: 20px;        /* décalage depuis le haut du header */
  left: 430px;      /* décalage depuis la gauche du header */
  margin: 0;        /* marges par défaut neutralisées */
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ----- Nav principale : pleine largeur ----- */
.nav-principale {
  width: 100%;
  background: #34495e;
}

.nav-principale ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-principale a {
  display: block;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
}

.nav-principale a:hover {
  background: #2c3e50;
}

/* ----- Zone centrale : section à gauche, asides empilés à droite ----- */
main {
  display: flex;
  width: 100%;
  gap: 20px;
  padding: 20px;
}

/* Colonne des asides : empilés verticalement */
.asides {
  display: flex;
  flex-direction: column;
  flex: 0 0 250px;      /* largeur fixe de la colonne */
  gap: 20px;
}

section {
  flex: 1;              /* occupe l'espace restant à gauche */
  background: #ecf0f1;
  padding: 20px;
}

/* ----- Asides : empilés verticalement à droite ----- */
aside {
  background: #dfe6e9;
  padding: 15px;
}

.aside-1 .nav-secondaire ul {
  list-style: none;
}

.aside-1 .nav-secondaire a {
  color: #2c3e50;
  text-decoration: none;
}

.aside-1 .nav-secondaire a:hover {
  text-decoration: underline;
}

/* ----- Grille de liens : 6 cases (2 lignes de 3) ----- */
.grille-liens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 colonnes égales */
  grid-auto-rows: 1fr;                    /* lignes de hauteur égale */
  gap: 20px;
  margin-top: 20px;
}

.case-lien {
  display: flex;
  align-items: center;       /* centrage vertical de l'image */
  justify-content: center;   /* centrage horizontal de l'image */
  flex-direction: column;
  background: #fff;
  border: 1px solid #b2bec3;
  border-radius: 8px;
  overflow: hidden;          /* arrondi appliqué aussi à l'image */
  text-decoration: none;
  color: #2c3e50;
  transition: transform 0.2s, box-shadow 0.2s;
}

.case-lien:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.case-lien img {
  width: 100%;
  aspect-ratio: 220 / 137;   /* proportion exacte de tes imagettes */
  object-fit: cover;         /* l'image remplit la case sans déformation */
  max-width: 220px;          /* taille réelle des imagettes, pas d'agrandissement */
  margin: 0 auto;            /* centrage horizontal dans la case */
  display: block;
}

.case-lien span {
  padding: 10px;
  text-align: center;
  font-weight: bold;
}



/* ----- Footer : pleine largeur ----- */
footer {
  width: 100%;
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 15px;
}
