/* ═══════════════════════════════════════════════════
   FRAEB — main.css
   Palette : vert #1a4d2e · or #c9a227 · crème #f9f5eb
═══════════════════════════════════════════════════ */

:root {
  --vert:        #1a4d2e;
  --vert-fonce:  #0e2e1a;
  --vert-clair:  #2d6a42;
  --or:          #c9a227;
  --or-pale:     #e8c96a;
  --creme:       #f9f5eb;
  --sable:       #ede8d8;
  --blanc:       #ffffff;
  --texte:       #2a2a2a;
  --gris:        #666666;

  --radius:  4px;
  --shadow:  0 4px 20px rgba(0,0,0,.1);
  --trans:   .2s ease;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── TYPOGRAPHIE ─── */
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.15;
}
.section-label {
  display: block;
  color: var(--or);
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--vert);
  margin-bottom: 1.2rem;
}
.gold-line {
  width: 56px; height: 3px;
  background: var(--or);
  margin-bottom: 2.5rem;
}

/* ─── LAYOUT ─── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 5vw; }
section { padding: 6rem 5vw; }

/* ─── BOUTONS ─── */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all var(--trans);
  border: 2px solid transparent;
}
.btn-primary  { background: var(--or);   color: var(--vert-fonce); }
.btn-primary:hover  { background: var(--or-pale); transform: translateY(-2px); }
.btn-outline  { border-color: currentColor; color: var(--blanc); }
.btn-outline:hover  { border-color: var(--or); color: var(--or); }
.btn-white    { background: var(--blanc); color: var(--vert-fonce); border-color: var(--blanc); }
.btn-white:hover    { background: var(--creme); transform: translateY(-2px); }
.btn-dark     { background: var(--vert-fonce); color: var(--blanc); }
.btn-dark:hover     { background: #040d07; }
.btn-green    { background: var(--vert); color: var(--blanc); }
.btn-green:hover    { background: var(--vert-clair); }

/* ─── FORM ELEMENTS ─── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--vert); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--texte);
  background: var(--blanc);
  transition: border-color var(--trans);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ─── ALERTS ─── */
.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: .95rem;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ─── CARD ─── */
.card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }

/* ─── BADGE ─── */
.badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-fondateur    { background: var(--vert); color: var(--or-pale); }
.badge-effectif     { background: var(--or);   color: var(--vert-fonce); }
.badge-honneur      { background: #6c3d91;     color: #fff; }
.badge-sympathisant { background: #3a7bd5;     color: #fff; }

/* ─── NAV ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  background: rgba(14,46,26,.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 2px solid var(--or);
  transition: background var(--trans);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--or); flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text strong { color: var(--or); font-family: "Playfair Display", serif; font-size: 1.2rem; font-weight: 700; }
.nav-logo-text small { color: rgba(255,255,255,.65); font-size: .62rem; letter-spacing: .01em; font-weight: 500; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: color var(--trans); }
.nav-links a:hover, .nav-links a.active { color: var(--or-pale); }
.nav-cta { background: var(--or); color: var(--vert-fonce) !important; padding: .42rem 1.2rem; border-radius: var(--radius); font-weight: 700 !important; }
.nav-cta:hover { background: var(--or-pale) !important; }
.nav-burger { display: none; background: none; border: none; padding: .4rem; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--blanc); margin: 5px 0; transition: all var(--trans); }

/* ─── FOOTER ─── */
footer {
  background: #040d07;
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: .85rem;
  border-top: 2px solid var(--or);
}
footer .or { color: var(--or); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.4rem 0;
}
.footer-social a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.7);
  transition: all var(--trans);
}
.footer-social a:hover {
  border-color: var(--or);
  color: var(--or);
  transform: translateY(-3px);
}
.footer-social svg { width: 19px; height: 19px; fill: currentColor; }

/* ─── GALERIE ─── */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.galerie-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--sable);
}
.galerie-item img,
.galerie-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.galerie-item:hover img,
.galerie-item:hover video { transform: scale(1.06); }
.galerie-item .play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,46,26,.25);
}
.galerie-item .play-badge svg {
  width: 52px; height: 52px;
  fill: rgba(255,255,255,.9);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.galerie-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .6rem .8rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: .82rem;
}

/* Espace réservé tant qu'une vraie photo/vidéo n'a pas été ajoutée
   (déclenché automatiquement par onerror si le fichier est introuvable) */
.galerie-item.img-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: linear-gradient(135deg, var(--sable), var(--creme));
  cursor: default;
}
.galerie-item.img-missing .placeholder-icon { font-size: 2.4rem; opacity: .55; }
.galerie-item.img-missing .galerie-cap {
  position: static;
  background: none;
  color: var(--gris);
  text-align: center;
  font-style: italic;
}
.galerie-item.img-missing:hover img,
.galerie-item.img-missing:hover video { transform: none; }

.galerie-souscat {
  font-family: "Playfair Display", serif;
  color: var(--vert);
  font-size: 1.25rem;
  margin: 3rem 0 1.2rem;
}
.galerie-souscat:first-of-type { margin-top: 0; }

/* Titre agrandi pour une section qu'on veut rendre très visible */
.section-title.titre-xl {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
}

/* ─── PERSONNES (équipe dirigeante / membres fondateurs) ─── */
.personnes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: 2.2rem;
}
.personne-card { text-align: center; }
.personne-photo {
  position: relative;
  width: 130px; height: 130px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--or);
  background: var(--sable);
}
.personne-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.personne-photo.img-missing {
  display: flex; align-items: center; justify-content: center;
}
.personne-photo.img-missing .placeholder-icon { font-size: 2.2rem; opacity: .5; }
.personne-card h4 { font-family: "Playfair Display", serif; color: var(--vert); font-size: 1rem; margin-bottom: .15rem; }
.personne-card .role { display: block; color: var(--or); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.personne-card .nom-attente { color: var(--gris); font-style: italic; font-size: .88rem; }

/* ─── LOADER ─── */
.loader { display: flex; justify-content: center; padding: 3rem; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--sable);
  border-top-color: var(--or);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-logo-text small { display: none; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--vert-fonce); padding: 2rem; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
}
@media (max-width: 600px) {
  section { padding: 4rem 1rem; }
  .btn { padding: .7rem 1.4rem; font-size: .88rem; }
}
