/* ============================================================
   public.css — Pages publiques Club Affaires
   Typographie : Syne (display) + DM Sans (body)
   Palette : bleu marine profond + or/ambre
   ============================================================ */

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

:root {
  --navy:       #0f1f3d;
  --navy-mid:   #1a3260;
  --navy-light: #2a4a8a;
  --gold:       #c9982a;
  --gold-light: #e8be5a;
  --gold-pale:  #fdf5e4;
  --text:       #1a1a2e;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --border:     #e2e8f0;
  --bg:         #f8f9fc;
  --white:      #ffffff;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(15,31,61,.08);
  --shadow-md:  0 4px 16px rgba(15,31,61,.12);
  --shadow-lg:  0 12px 40px rgba(15,31,61,.16);
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 32px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: -.01em; }
.brand-icon { color: var(--gold); font-size: 22px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 7px 14px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 400; color: var(--text-mid); transition: color var(--transition), background var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--navy); background: #eef2ff; }
.nav-link.active { font-weight: 500; }

.btn-header { margin-left: 8px; padding: 8px 20px; border-radius: 30px; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 500; transition: background var(--transition), transform var(--transition); }
.btn-header:hover { background: var(--navy-mid); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--transition); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  color: var(--white); padding: 90px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,152,42,.15) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 640px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,152,42,.2); color: var(--gold-light); border: 1px solid rgba(201,152,42,.4); border-radius: 30px; padding: 5px 14px; font-size: 13px; font-weight: 500; letter-spacing: .04em; margin-bottom: 24px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,.75); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-gold { display: inline-block; padding: 13px 28px; border-radius: 30px; background: var(--gold); color: var(--navy); font-weight: 600; font-size: 15px; transition: background var(--transition), transform var(--transition); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline-white { display: inline-block; padding: 12px 28px; border-radius: 30px; border: 1.5px solid rgba(255,255,255,.4); color: var(--white); font-weight: 400; font-size: 15px; transition: border-color var(--transition), background var(--transition); }
.btn-outline-white:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }

/* ── Stats bar ─────────────────────────────────────── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-bar-inner { display: flex; gap: 0; }
.stat-item { flex: 1; text-align: center; padding: 28px 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ── Section ────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--navy); letter-spacing: -.02em; margin-bottom: 14px; }
.section-sub { font-size: 17px; color: var(--text-mid); font-weight: 300; max-width: 560px; }
.section-head { margin-bottom: 48px; }
.section-head-center { text-align: center; }
.section-head-center .section-sub { margin: 0 auto; }

/* ── Membres grid ───────────────────────────────────── */
.membres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }

.membre-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 20px 22px; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.membre-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.membre-card:nth-child(1) { animation-delay: 0s; }
.membre-card:nth-child(2) { animation-delay: .05s; }

.membre-photo { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; object-fit: cover; border: 3px solid var(--gold-pale); }
.membre-initials { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.membre-nom { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy); }
.membre-societe { font-size: 13px; color: var(--text-mid); margin-top: 3px; }
.membre-activite { display: inline-block; margin-top: 8px; font-size: 11.5px; padding: 3px 10px; border-radius: 20px; background: var(--bg); color: var(--text-mid); }
.membre-role-badge { display: inline-block; margin-top: 6px; font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 500; }
.role-president { background: #ede9fe; color: #4c1d95; }
.role-bureau { background: #fef3c7; color: #78350f; }
.role-membre { background: #e0f2fe; color: #0c4a6e; }

/* ── Modal membre ───────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,31,61,.55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); max-width: 480px; width: 100%; padding: 32px; position: relative; transform: translateY(20px); transition: transform var(--transition); }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 20px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-photo { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; object-fit: cover; }
.modal-initials { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.modal-nom { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-align: center; color: var(--navy); }
.modal-societe { text-align: center; color: var(--text-mid); font-size: 14px; margin-top: 4px; }
.modal-divider { height: 1px; background: var(--border); margin: 18px 0; }
.modal-field { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.modal-field-label { color: var(--text-light); }
.modal-field-value { font-weight: 500; text-align: right; }
.modal-field-value a { color: var(--navy-light); }
.modal-pres { font-size: 14px; color: var(--text-mid); line-height: 1.65; background: var(--bg); border-radius: var(--radius-md); padding: 14px; margin-top: 14px; }

/* ── Contact section ──────────────────────────────── */
.contact-section { background: var(--navy); color: var(--white); padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.contact-sub { color: rgba(255,255,255,.65); font-weight: 300; margin-bottom: 28px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.contact-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(201,152,42,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { color: var(--gold-light); }
.contact-info-label { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.contact-info-val { font-size: 15px; }
.contact-info-val a { color: var(--white); }

/* ── Footer ──────────────────────────────────────── */
.site-footer { background: #0a1628; color: rgba(255,255,255,.7); padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand-icon { font-size: 24px; color: var(--gold); }
.footer-brand strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white); }
.footer-slogan { font-size: 13.5px; margin-top: 8px; font-weight: 300; }
.footer-heading { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 14px; }
.footer-col p { font-size: 14px; margin-bottom: 7px; }
.footer-col a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { text-align: center; padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.35); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 12px 24px 20px; gap: 2px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .membres-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 54px; }
  .footer-inner { grid-template-columns: 1fr; }
}
