/* ============================================
   ADM — Anciens Étudiants du Mali
   Shared Stylesheet
   ============================================ */

:root {
  --navy:  #1F4E79;
  --blue:  #2E75B6;
  --gold:  #C9A84C;
  --light: #F4F7FB;
  --white: #FFFFFF;
  --text:  #1A1A2E;
  --muted: #5A6A80;
  --border:#D0DCE8;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(31,78,121,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.navbar-brand .brand-accent { color: var(--gold); }

.navbar-brand .brand-logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--navy); font-size: 1rem;
  flex-shrink: 0;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.navbar-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.navbar-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: rgba(201,168,76,0.18);
  color: var(--gold);
  text-decoration: none;
}

/* ── HERO ───────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.875rem; }

/* ── SECTIONS ───────────────────────────── */
section { padding: 4rem 1.5rem; }
section.alt { background: var(--light); }

.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 780px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.section-line {
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.75rem auto 2.5rem;
}

/* ── CARDS ──────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid transparent;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(31,78,121,0.14); }
.card.accent-navy { border-top-color: var(--navy); }
.card.accent-blue { border-top-color: var(--blue); }
.card.accent-gold { border-top-color: var(--gold); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card p { color: var(--muted); font-size: 0.95rem; }

/* ── NAV CARDS (homepage) ───────────────── */
.nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--blue);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.nav-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(31,78,121,0.15); text-decoration: none; }
.nav-card .icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.nav-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.nav-card p { font-size: 0.875rem; color: var(--muted); }

/* ── ACCORDION / STEPS ──────────────────── */
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 1rem 1rem 1rem 3.5rem;
  position: relative;
  border-left: 3px solid var(--border);
  margin-left: 1.25rem;
  margin-bottom: 0.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -1.25rem;
  top: 0.85rem;
  width: 2rem; height: 2rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.steps li:last-child { border-left-color: transparent; }

/* ── TABLE ──────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--light); }

/* ── BADGES ─────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-navy { background: var(--navy); color: var(--white); }
.badge-blue { background: var(--blue); color: var(--white); }
.badge-gold { background: var(--gold); color: var(--navy); }
.badge-green { background: #27ae60; color: var(--white); }

/* ── FORMS ──────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,117,182,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.msg { padding: 0.85rem 1.1rem; border-radius: var(--radius); font-size: 0.93rem; margin-top: 1rem; display: none; }
.msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.msg.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── TABS ───────────────────────────────── */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active,
.tab-btn:hover { background: var(--blue); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── MEMBER CARD ────────────────────────── */
.member-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.member-card .member-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.member-card .member-meta { font-size: 0.875rem; color: var(--muted); }
.member-card .badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.25rem; }

/* ── TESTIMONIAL ────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border-left: 5px solid var(--gold);
}
.testimonial-card .quote { font-size: 1rem; font-style: italic; color: var(--text); line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-card .author { font-weight: 700; color: var(--navy); }
.testimonial-card .author-meta { font-size: 0.875rem; color: var(--muted); }

/* ── PRICING TABLE ──────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.pricing-card.featured { border-color: var(--gold); background: #FFFBF0; }
.pricing-card .price { font-size: 2rem; font-weight: 800; color: var(--navy); }
.pricing-card .price-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.pricing-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.pricing-card p { font-size: 0.875rem; color: var(--muted); }

/* ── ALERT BOX ──────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.93rem;
  border-left: 4px solid;
}
.alert-info { background: #EBF4FF; border-color: var(--blue); color: #1a3a5c; }
.alert-warning { background: #FFF9E6; border-color: var(--gold); color: #5a3e00; }

/* ── FOOTER ─────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-brand span { color: var(--gold); }
.footer p { font-size: 0.875rem; line-height: 1.6; }

.footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ── SEARCH/FILTER BAR ──────────────────── */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-bar select,
.filter-bar input {
  flex: 1;
  min-width: 160px;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
}
.filter-bar select:focus,
.filter-bar input:focus { outline: none; border-color: var(--blue); }

/* ── SPINNER ────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── BREADCRUMB ─────────────────────────── */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 0.35rem; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .navbar-toggle { display: flex; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 0.65rem 1rem; display: block; }

  .form-row { grid-template-columns: 1fr; }
  section { padding: 2.5rem 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .tabs { flex-direction: column; }
  .tab-btn { text-align: center; }
  .filter-bar { flex-direction: column; }
  .filter-bar select, .filter-bar input { width: 100%; }
}
