/* ============================================================
   SAINTÉ OF COURSE — FEUILLE DE STYLE COMMUNE
   Les couleurs et polices viennent de config.js (injectées au
   chargement via style.js). Ne codez pas de couleurs en dur ici :
   utilisez les variables CSS --soc-* définies dynamiquement.
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--soc-font-corps);
  background: var(--soc-noir);
  color: var(--soc-texte);
  min-height: 100%;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(var(--soc-panneau-rgb), 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--soc-bordure);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--soc-font-display);
  font-size: 1.35rem; letter-spacing: .05em;
  color: var(--soc-texte); text-decoration: none;
}
.nav-logo .nav-emoji { font-size: 1.5rem; }
.nav-logo-img { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: .3rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--soc-texte-muted); text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; transition: color .2s;
  padding-bottom: 3px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--soc-texte); }
.nav-links a.active { border-bottom: 2px solid var(--soc-rouge); }

/* ── BOUTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--soc-font-corps);
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; border-radius: 4px;
  transition: background .18s, border-color .18s, color .18s;
}
.btn-primary {
  background: var(--soc-rouge); color: #fff;
  padding: .85rem 2.5rem; font-size: .9rem;
}
.btn-primary:hover { background: var(--soc-rouge-fonce); }

.btn-outline {
  background: transparent; color: var(--soc-texte-muted);
  border: 1px solid var(--soc-bordure);
  padding: .38rem .9rem; font-size: .76rem;
}
.btn-outline:hover { border-color: var(--soc-rouge); color: var(--soc-rouge); }
.btn-outline.active { background: var(--soc-rouge); border-color: var(--soc-rouge); color: #fff; }

.btn-sm {
  background: rgba(255,255,255,.07); border: 1px solid var(--soc-bordure);
  color: var(--soc-texte); border-radius: 4px;
  padding: .35rem .85rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; cursor: pointer; transition: all .15s;
  font-family: var(--soc-font-corps);
}
.btn-sm:hover { background: rgba(255,255,255,.12); }
.btn-sm.rouge { background: var(--soc-rouge); border-color: var(--soc-rouge); color: #fff; }
.btn-sm.rouge:hover { background: var(--soc-rouge-fonce); }

/* ── SECTIONS (page accueil) ──────────────────────────────── */
.section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section + .section { border-top: 1px solid var(--soc-bordure); }

.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--soc-rouge); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--soc-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1; margin-bottom: 1.5rem;
}
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--soc-rouge) 0%, transparent 100%);
  margin-bottom: 3rem;
}

/* ── CARTES INFO ──────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.info-card {
  background: var(--soc-carte);
  border: 1px solid var(--soc-bordure);
  border-radius: 6px; padding: 2rem;
  transition: border-color .2s;
}
.info-card:hover { border-color: var(--soc-rouge); }
.info-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.info-card h3 {
  font-family: var(--soc-font-display);
  font-size: 1.4rem; letter-spacing: .05em;
  margin-bottom: .5rem;
}
.info-card p { color: var(--soc-texte-muted); font-size: .9rem; line-height: 1.6; }

/* ── AGENDA ───────────────────────────────────────────────── */
.event-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--soc-carte); border: 1px solid var(--soc-bordure);
  border-radius: 6px; padding: 1.5rem; transition: border-color .2s;
}
.event-item:hover { border-color: var(--soc-rouge); }
.event-date {
  min-width: 60px; text-align: center;
  background: var(--soc-rouge); border-radius: 4px; padding: .5rem;
}
.event-date .jour {
  font-family: var(--soc-font-display); font-size: 2rem; line-height: 1;
}
.event-date .mois {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .85;
}
.event-info h4 { font-weight: 700; margin-bottom: .3rem; }
.event-info p { color: var(--soc-texte-muted); font-size: .88rem; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--soc-panneau);
  border-top: 1px solid var(--soc-bordure);
  text-align: center; padding: 2rem;
  color: var(--soc-texte-muted); font-size: .82rem;
}
.footer strong { color: var(--soc-rouge); }
.footer a { color: var(--soc-rouge); text-decoration: none; }

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--soc-panneau); border: 1px solid var(--soc-bordure);
  color: var(--soc-texte); padding: .6rem 1.2rem; border-radius: 5px;
  font-size: .82rem; font-weight: 600; z-index: 500;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { padding: 0 1rem; }
  .section { padding: 3rem 1rem; }
}
