/* ============================================================
   Famille Saïzonou — Feuille de style commune
   Palette : vert profond + or, hommage aux couleurs familiales
   ============================================================ */

:root {
  --vert-900: #0e2a1d;
  --vert-800: #143726;
  --vert-700: #1c4a32;
  --vert-600: #25603f;
  --vert-100: #e6efe9;
  --vert-50: #f4f8f5;
  --or: #c9a227;
  --or-clair: #e3c56b;
  --or-fonce: #a8841c;
  --texte: #23302a;
  --texte-doux: #5c6b64;
  --blanc: #ffffff;
  --erreur: #b3261e;
  --succes: #1e7d4f;
  --bordure: #dde5df;
  --ombre: 0 4px 14px rgba(18, 42, 29, 0.10);
  --ombre-forte: 0 10px 30px rgba(18, 42, 29, 0.18);
  --rayon: 10px;
  --transition: 0.25s ease;
  --max-largueur: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--texte);
  background: var(--vert-50);
  line-height: 1.65;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.25; }

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--vert-800); }
h3 { font-size: 1.15rem; color: var(--vert-700); }

p { margin-bottom: 0.9rem; }

a { color: var(--vert-600); transition: color var(--transition); }
a:hover { color: var(--or-fonce); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }
.section-alt { background: var(--blanc); }

.lead {
  font-size: 1.12rem;
  color: var(--texte-doux);
  max-width: 70ch;
  margin-bottom: 1.5rem;
}

/* ---------- En-tête / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vert-800);
  color: var(--blanc);
  box-shadow: var(--ombre);
}

.site-header .container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--blanc); }

.brand img { width: 42px; height: 42px; }

.brand-name { font-size: 1.1rem; font-weight: bold; letter-spacing: 0.02em; }
.brand-tagline { font-size: 0.72rem; color: var(--or-clair); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--blanc);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.1rem; }

.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--vert-100);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
}

.site-nav a:hover { background: var(--vert-700); color: var(--or-clair); }
.site-nav a.active { color: var(--or-clair); font-weight: bold; }

.nav-membre {
  border: 1px solid var(--or);
  color: var(--or-clair) !important;
  margin-left: 0.6rem;
}
.nav-membre:hover { background: var(--vert-700); }

/* ---------- Bandeau héro ---------- */

.hero {
  position: relative;
  color: var(--blanc);
  text-align: center;
  padding: 5.5rem 1.25rem 4.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(160deg, var(--vert-800) 0%, var(--vert-700) 55%, var(--vert-600) 100%);
}

.hero-crest { width: 84px; height: 84px; margin: 0 auto 1.2rem; }

.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0.4rem; }

.hero .soustitre {
  color: var(--or-clair);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}

.hero p { max-width: 640px; margin: 0 auto 1.6rem; color: var(--vert-100); }

.hero-mot {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or-clair);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--or);
  color: #241d02;
  font-weight: bold;
}

.btn:hover { background: var(--or-clair); color: var(--vert-800); transform: translateY(-1px); }

.btn-secondaire { background: transparent; border-color: var(--or); color: var(--or-clair); }
.btn-secondaire:hover { background: rgba(201, 162, 39, 0.12); }

.btn-vert { background: var(--vert-700); color: var(--blanc); }
.btn-vert:hover { background: var(--vert-600); color: var(--blanc); }

.btn-gris { background: var(--bordure); color: var(--texte); }

.btn-danger { background: var(--erreur); color: var(--blanc); }
.btn-danger:hover { background: #8f1d16; color: var(--blanc); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Cartes ---------- */

.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.carte {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.4rem;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.carte h3 { margin-bottom: 0.3rem; }
.carte .etiquette { align-self: flex-start; margin-bottom: 0.4rem; }
.carte .btn { margin-top: auto; align-self: flex-start; }

.carte-icone { font-size: 1.6rem; color: var(--or-fonce); }

/* ---------- Timeline (Notre Histoire) ---------- */

.timeline { list-style: none; position: relative; margin: 2rem 0 0 0.6rem; padding-left: 1.8rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--or), var(--vert-600));
}

.timeline li { position: relative; margin-bottom: 1.8rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.73rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--or);
  border: 2px solid var(--vert-800);
}

.timeline .annee {
  font-weight: bold;
  color: var(--or-fonce);
  letter-spacing: 0.05em;
}

/* ---------- Formulaires ---------- */

.formulaire { max-width: 640px; }

.champ { margin-bottom: 1.1rem; }

.champ label { display: block; font-weight: bold; margin-bottom: 0.35rem; color: var(--vert-800); }
.champ label .obligatoire { color: var(--erreur); font-weight: normal; }
.champ .aide { font-size: 0.83rem; color: var(--texte-doux); margin-top: 0.25rem; }

.champ input,
.champ textarea,
.champ select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--blanc);
  color: var(--texte);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.champ input:focus,
.champ textarea:focus,
.champ select:focus {
  outline: none;
  border-color: var(--vert-600);
  box-shadow: 0 0 0 3px rgba(37, 96, 63, 0.15);
}

textarea { min-height: 110px; resize: vertical; }

.double { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .double { grid-template-columns: 1fr; } }

/* ---------- Alertes ---------- */

.alerte {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.95rem;
  border: 1px solid;
}

.alerte-succes { background: #e6f4ec; border-color: var(--succes); color: var(--succes); }
.alerte-erreur { background: #fdecea; border-color: var(--erreur); color: var(--erreur); }
.alerte-info { background: #eef2f0; border-color: var(--bordure); color: var(--texte-doux); }

.alerte.hidden { display: none; }

/* ---------- Tableaux (admin) ---------- */

.tableau {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  font-size: 0.95rem;
}

.tableau th, .tableau td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.tableau th { background: var(--vert-800); color: var(--blanc); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tr:hover td { background: var(--vert-50); }

.badge {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.badge-pending { background: #fff3d6; color: #8a6d1d; }
.badge-approved { background: #e6f4ec; color: var(--succes); }
.badge-rejected { background: #fdecea; color: var(--erreur); }
.badge-membre { background: #e6f0fa; color: #21587e; }
.badge-private { background: var(--vert-800); color: var(--or-clair); }

/* ---------- Galerie / lightbox ---------- */

.grille-medias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.media { position: relative; border-radius: var(--rayon); overflow: hidden; cursor: pointer; box-shadow: var(--ombre); background: var(--vert-100); }
.media img { width: 100%; height: 170px; object-fit: cover; transition: transform 0.4s ease; }
.media:hover img { transform: scale(1.06); }
.media .legende {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(18, 42, 29, 0.85));
  color: var(--blanc); font-size: 0.85rem; padding: 1.6rem 0.8rem 0.55rem;
}

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 20, 15, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lightbox.ouvert { display: flex; }
.lightbox img { max-height: 82vh; border-radius: 6px; box-shadow: var(--ombre-forte); }
.lightbox .fermer {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: 0; color: var(--blanc); font-size: 2rem; cursor: pointer;
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--vert-900, var(--vert-800));
  color: var(--vert-100);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3.5rem;
  font-size: 0.95rem;
}

.site-footer .grille-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.site-footer h4 { color: var(--or-clair); margin-bottom: 0.7rem; font-size: 1rem; }
.site-footer a { color: var(--vert-100); }
.site-footer a:hover { color: var(--or-clair); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer .bas-page {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.82rem;
  color: var(--texte-doux, #9db3a6);
  color: #a9bbae;
}

/* ---------- Autres éléments ---------- */

.entete-page {
  text-align: center;
  padding: 3.2rem 1.25rem 2.4rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.14), transparent 60%),
    linear-gradient(160deg, var(--vert-800), var(--vert-700));
  color: var(--blanc);
  margin-bottom: 2rem;
}

.entete h1 { margin-bottom: 0.5rem; }
.entete p { color: var(--vert-100); max-width: 640px; margin: 0 auto; }

.separateur {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  margin: 1.4rem auto; color: var(--or-fonce);
}
.separateur::before, .separateur::after {
  content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--or));
}
.separateur::after { background: linear-gradient(90deg, var(--or), transparent); }

.carte-membre {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.2rem;
  box-shadow: var(--ombre);
}
.carte-membre .nom { font-weight: bold; color: var(--vert-800); }
.carte-membre .infos { color: var(--texte-doux); font-size: 0.9rem; }

.contenu-prive {
  border: 1px dashed var(--or);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), transparent);
  border-radius: var(--rayon);
  padding: 1.4rem;
  margin-top: 1.6rem;
}

.centre { text-align: center; }

.suite { color: var(--texte-doux); font-style: italic; }