/* ============================================================
   AGAP – Feuille de style
   ------------------------------------------------------------
   Pour changer les couleurs du site, modifiez les valeurs
   dans la section « COULEURS » ci-dessous.
   ============================================================ */

/* ---------- COULEURS ET RÉGLAGES ---------- */
:root {
  --bleu-nuit: #0f1b33;        /* titres, en-tête, pied de page */
  --bleu-moyen: #2b4570;       /* accents, boutons au survol */
  --bleu-pale: #eef2f8;        /* fonds de sections */
  --fond: #f9fafc;             /* fond général de la page */
  --texte: #36425a;            /* texte courant */
  --texte-doux: #6b7690;       /* texte secondaire */
  --bordure: #dde3ee;          /* fines bordures */
  --largeur-max: 1080px;       /* largeur maximale du contenu */
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
}

h1, h2, h3 {
  color: var(--bleu-nuit);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

a { color: inherit; }

/* Conteneur centré qui limite la largeur du contenu */
.container {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- EN-TÊTE ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bleu-nuit);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: #c9d3e6;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a:focus { color: #fff; }

/* ---------- PRÉSENTATION (HERO) ---------- */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bleu-pale) 0%, var(--fond) 100%);
}

.hero h1 {
  max-width: 18ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
}

.hero-text {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--texte-doux);
}

/* ---------- BOUTON ---------- */
.button {
  display: inline-block;
  padding: 0.85rem 2rem;
  color: #fff;
  background: var(--bleu-nuit);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.button:hover,
.button:focus { background: var(--bleu-moyen); }

/* ---------- SECTIONS ---------- */
.section { padding: 6rem 0; }

.section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.section-intro {
  max-width: 36rem;
  margin: 0 auto 3.5rem;
  text-align: center;
  color: var(--texte-doux);
}

/* ---------- CARTES DE L'ÉQUIPE ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  padding: 2.5rem 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: 8px;
}

/* Pastille avec les initiales (remplaçable plus tard par une photo) */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  color: #fff;
  background: var(--bleu-nuit);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }

.card-role {
  color: var(--bleu-moyen);
  font-size: 0.9rem;
  font-weight: 500;
}

.card p:last-child { margin-bottom: 0; color: var(--texte-doux); }

/* ---------- CONTACT ---------- */
.contact {
  text-align: center;
  background: var(--bleu-pale);
}

.contact .section-intro { margin-bottom: 2rem; }

.note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--texte-doux);
}

/* ---------- PIED DE PAGE ---------- */
.site-footer {
  padding: 2rem 0;
  color: #c9d3e6;
  background: var(--bleu-nuit);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p { margin: 0; }

/* ---------- TABLETTES ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 28rem; margin: 0 auto; }
  .hero { padding: 5rem 0 4rem; }
  .section { padding: 4.5rem 0; }
}

/* ---------- SMARTPHONES ---------- */
@media (max-width: 520px) {
  .nav-list { gap: 1rem; }
  .logo { font-size: 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
