/* ═══════════════════════════════════════════
   DEVENIR AGENT SPORTIF — CSS COMMUN
   ═══════════════════════════════════════════ */

/* ═══ RESET ═══ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f2f4f8; color: #222; line-height: 1.7; }

/* ═══ NAV — BASE ═══ */
nav {
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  position: relative;
}

/* Nav variante sombre (cours, legal, examen, chat, etc.) */
.nav-dark {
  background: #0A1A44;
}
.nav-dark a { color: white; margin: 0 9px; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-dark a:hover { color: #ff9955; }
.nav-dark .nav-links { flex-wrap: wrap; align-items: center; gap: 2px; }
.nav-dark .nav-links a { color: white; margin: 0 6px; text-decoration: none; font-weight: 600; font-size: 13px; }
.nav-dark .nav-links a:hover { color: #ff9955; }

/* Nav variante claire (index, blog, blog articles) */
.nav-light {
  background: #fff;
  border-bottom: 2px solid #0a1a44;
}
.nav-light a { margin: 0 10px; color: #0a1a44; text-decoration: none; font-weight: bold; font-size: 14px; }
.nav-light a:hover { color: #ff6600; }

/* ═══ HAMBURGER MENU — SOMBRE (blanc sur fond sombre) ═══ */
.nav-hamburger { display: block; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; }
.nav-hamburger span { display: block; width: 26px; height: 3px; background: white; margin: 5px 0; border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hamburger variante claire (sombre sur fond blanc) */
.nav-light .nav-hamburger span { background: #0a1a44; }

/* ═══ NAV LINKS — DROPDOWN SOMBRE ═══ */
.nav-links { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: #0a1a44; z-index: 999; padding: 8px 0; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.nav-links.open { display: flex; }
.nav-links a { margin: 0 !important; padding: 13px 22px !important; font-size: 15px !important; border-bottom: 1px solid rgba(255,255,255,0.1); display: block !important; }
.nav-links a:last-child { border-bottom: none; }

/* Nav menu variante claire (index, blog) */
.nav-menu { display: none; align-items: center; }
.nav-menu.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: white; border-top: 2px solid #0a1a44; padding: 10px 0; box-shadow: 0 6px 20px rgba(0,0,0,0.12); z-index: 999; }
.nav-menu a { color: #0a1a44 !important; padding: 12px 24px; font-size: 15px; border-bottom: 1px solid #f0f0f0; display: block; margin: 0; }
.nav-menu a:last-child { border-bottom: none; }
.nav-menu .nav-cta { background: #ff6600; color: white !important; margin: 10px 16px; border-radius: 6px; text-align: center; padding: 12px; }

/* ═══ NAV CTA BUTTON ═══ */
.nav-cta {
  background: #ff6600;
  color: white !important;
  padding: 7px 16px;
  border-radius: 5px;
}
.nav-cta:hover { background: #cc5200 !important; }

/* ═══ TABLE SCROLL (mobile) ═══ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.table-scroll table { margin: 0; min-width: 480px; }

/* ═══ HERO COMMUN ═══ */
.hero {
  background: linear-gradient(135deg, #0a1a44 0%, #142b6f 60%, #1a3a8a 100%);
  color: white;
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,102,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,102,0,0.2);
  border: 1px solid rgba(255,102,0,0.5);
  color: #ffaa66;
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero h1 { font-size: 38px; margin-bottom: 14px; line-height: 1.2; }
.hero h1 span { color: #ff9955; }

/* ═══ HEAD — PAGES LÉGALES ═══ */
.head { background: linear-gradient(135deg, #0a1a44, #142b6f); color: white; padding: 40px 20px; text-align: center; }
.head h1 { font-size: 28px; margin-bottom: 8px; }
.head p { opacity: 0.85; font-size: 14px; max-width: 620px; margin: 0 auto; }

/* ═══ WRAP/CARD — PAGES LÉGALES ═══ */
.wrap { max-width: 820px; margin: 30px auto 50px; padding: 0 20px; }
.card { background: white; border-radius: 12px; padding: 28px 32px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }

/* ═══ TYPOGRAPHIE PAGES LÉGALES ═══ */
.legal-page h2 { color: #0a1a44; font-size: 19px; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #ff6600; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p, .legal-page li { font-size: 14.5px; margin-bottom: 10px; }
.legal-page ul, .legal-page ol { margin: 0 0 12px 22px; }
.legal-page li { margin-bottom: 6px; }
a { color: #0a1a44; }
.a-completer { background: #fff3e0; border: 1px dashed #ff6600; border-radius: 6px; padding: 2px 8px; color: #c04a00; font-weight: 600; font-size: 13px; }
.note { background: #f0f4ff; border-left: 4px solid #2c4aac; border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: 13.5px; margin: 14px 0; }

/* ═══ TABLES COMMUNES ═══ */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th { background: #0a1a44; color: white; padding: 10px; text-align: left; }
td { padding: 9px 10px; border-bottom: 1px solid #eee; }
tr:nth-child(even) td { background: #f8f9ff; }

/* ═══ CALLOUTS COMMUNS ═══ */
.retenir { background: #e8f5e9; border-left: 4px solid #27ae60; border-radius: 0 8px 8px 0; padding: 15px 18px; margin: 18px 0; font-size: 14px; }
.retenir strong:first-child { color: #1a7a2e; }
.piege { background: #fff3e0; border-left: 4px solid #ff6600; border-radius: 0 8px 8px 0; padding: 15px 18px; margin: 18px 0; font-size: 14px; }
.piege strong:first-child { color: #c04a00; }
.article-ref { background: #f0f4ff; border-left: 4px solid #2c4aac; border-radius: 0 8px 8px 0; padding: 13px 18px; margin: 15px 0; font-size: 13.5px; font-style: italic; color: #333; }
.article-ref strong { font-style: normal; color: #2c4aac; }
.encadre { background: #f8f9ff; border-left: 4px solid #142b6f; border-radius: 6px; padding: 14px 18px; margin: 16px 0; }
.encadre strong { color: #142b6f; }
.alerte { background: #fff8e1; border-left: 4px solid #f39c12; border-radius: 6px; padding: 14px 18px; margin: 16px 0; }
.alerte strong { color: #7d4e00; }

/* ═══ FOOTER COMMUN SOMBRE ═══ */
footer { background: #0a1a44; color: white; padding: 22px 20px; text-align: center; font-size: 12px; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 16px; padding-top: 12px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); }

/* ═══ RESPONSIVE COMMUN ═══ */
@media (max-width: 768px) {
  .nav-logo { height: 44px !important; max-width: 160px; }
  .hero h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  nav { padding: 8px 14px; }
}

@media (max-width: 380px) {
  .nav-logo { height: 38px !important; max-width: 150px !importan