/* style-juridique.css - Styles professionnels & responsive pour pages légales Yabiso Hub */
:root {
  --color-primary: #1e3a5f;      /* Bleu professionnel */
  --color-primary-dark: #152a44;
  --color-accent: #f59e0b;       /* Or/ambre pour accents */
  --color-text: #1e293b;         /* Gris foncé pour texte */
  --color-text-light: #64748b;   /* Gris moyen pour secondaire */
  --color-bg: #f8fafc;           /* Fond clair */
  --color-card: #ffffff;         /* Fond cartes */
  --color-border: #e2e8f0;       /* Bordures */
  --color-success: #22c55e;
  --color-warning: #f97316;
  --color-error: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 16px;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Monaco', monospace;
  --transition: all 0.2s ease-in-out;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 2rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span { color: var(--color-accent); }
.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--color-card);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.hero h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.hero .last-update {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-style: italic;
}

/* ===== CONTENU PRINCIPAL ===== */
.main-content {
  padding: 2rem 0;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.card h2 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}
.card h3 {
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  margin: 1.25rem 0 0.75rem;
}
.card p { margin-bottom: 1rem; color: var(--color-text); }
.card ul, .card ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--color-text);
}
.card li { margin-bottom: 0.4rem; }

/* ===== TABLEAUX ===== */
.table-responsive {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  background: white;
}
th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}
tr:hover { background: rgba(30,58,95,0.03); }
tr:last-child td { border-bottom: none; }

/* ===== LISTES À COCHER / BADGES ===== */
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* ===== ALERTES / NOTES ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border-left: 4px solid;
  font-size: 0.95rem;
}
.alert-info {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}
.alert-warning {
  background: #fff7ed;
  border-color: var(--color-accent);
  color: #9a3412;
}
.alert-success {
  background: #f0fdf4;
  border-color: var(--color-success);
  color: #15803d;
}

/* ===== LIENS & CONTACT ===== */
a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.contact-box {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  border: 1px dashed var(--color-border);
}
.contact-box strong { color: var(--color-primary); }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.footer a { color: var(--color-accent); }
.footer a:hover { color: white; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header .container { flex-direction: column; align-items: flex-start; }
  .mobile-toggle { display: block; position: absolute; right: 1rem; top: 1.25rem; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .nav-links.active { display: flex; }
  .hero h1 { font-size: 1.6rem; }
  .card { padding: 1.25rem; }
  th, td { padding: 0.75rem; font-size: 0.9rem; }
  .footer-links { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero { padding: 1.75rem 0; }
  .hero h1 { font-size: 1.4rem; }
  .card h2 { font-size: 1.25rem; }
  .btn { width: 100%; justify-content: center; }
}

/* ===== PRINT ===== */
@media print {
  .header, .footer, .mobile-toggle, .nav-links { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { text-decoration: none; color: black; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.9em; }
  .no-print { display: none !important; }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }