/* ADRA84 - feuille de style unique pour tout le site.
   Les couleurs sont regroupées ici : pour changer l'ambiance, modifiez ces lignes. */
:root {
  --fond: #000000;
  --texte: #ffffff;
  --jaune: #fef431;
  --vert: #8df12a;
  --orange: #fdd455;
  --bouton: #0b2a6b;
  --bouton-survol: #1e5fc4;
  --largeur: 1024px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: var(--orange); }

.page { max-width: var(--largeur); margin: 0 auto; padding: 0 16px 32px; }

/* ---------- En-tête : symbole - logo - symbole ---------- */
.entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}
.entete .symbole { width: 12%; max-width: 131px; height: auto; }
.entete .logo { width: 18%; max-width: 147px; height: auto; border-radius: 50%; }

/* ---------- Menu ---------- */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.menu a {
  display: block;
  min-width: 140px;
  padding: 8px 16px;
  background: var(--bouton);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .3s;
}
.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"] { background: var(--bouton-survol); }

/* ---------- Titres ---------- */
h1 {
  margin: 0 0 20px;
  font-size: clamp(20px, 3.6vw, 32px);
  text-align: center;
  color: var(--vert);
}
h1 .accent { color: var(--orange); }
h2 { color: var(--orange); font-size: 20px; margin: 24px 0 8px; }

/* ---------- Accueil : photo du Ventoux avec le texte par-dessus ---------- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: url("../images/mont-ventoux.jpg") center / cover no-repeat;
}
.hero p {
  width: 100%;
  margin: 0;
  padding: 48px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  color: var(--jaune);
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 3px #000;
}

/* ---------- Page Relais DMR : carte avec les relais cliquables ---------- */
.carte { position: relative; margin: 0 auto; max-width: var(--largeur); }
.carte img.fond { display: block; width: 100%; height: auto; }
.relais {
  position: absolute;
  width: 4.8%;
  transform: translate(-50%, -50%);
  transition: transform .2s;
}
.relais img { display: block; width: 100%; height: auto; }
.relais:hover, .relais:focus-visible { transform: translate(-50%, -50%) scale(1.25); }
.aide { text-align: center; font-size: 14px; color: #bbb; margin-top: 12px; }

/* ---------- Grilles de vignettes (Liens divers, Expos) ---------- */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}
.carte-lien {
  display: block;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  text-decoration: none;
  transition: border-color .3s, transform .3s;
}
.carte-lien:hover, .carte-lien:focus-visible { border-color: var(--bouton-survol); transform: translateY(-2px); }
/* Toutes les vignettes ont le même format (4:3) : la grille reste régulière
   quelle que soit la forme de l'image, sans jamais couper un logo ou un texte. */
.carte-lien img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #1a1a1a; }
.carte-lien span { display: block; padding: 8px 12px; font-size: 14px; }

.meteo { text-align: center; margin: 0 0 24px; }

/* ---------- Formulaire de contact ---------- */
form.contact { max-width: 560px; margin: 0 auto; }
form.contact label { display: block; margin: 16px 0 4px; font-size: 14px; }
form.contact input,
form.contact textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 2px;
  background: #fff;
  color: #000;
  font: inherit;
}
form.contact textarea { min-height: 200px; resize: vertical; }
form.contact button {
  margin-top: 20px;
  padding: 10px 28px;
  border: 0;
  border-radius: 2px;
  background: var(--bouton-survol);
  color: #fff;
  font: bold 14px Arial, sans-serif;
  cursor: pointer;
}
form.contact button:hover { background: #2a75e6; }
.piege { position: absolute; left: -9999px; }   /* champ anti-robots, invisible */
.message { max-width: 560px; margin: 40px auto; text-align: center; }

.pied { margin-top: 32px; text-align: center; font-size: 12px; color: #888; }

@media (max-width: 600px) {
  .menu a { min-width: 0; flex: 1 1 40%; }
  .hero { min-height: 320px; }
}
