body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin:0; line-height:1.55; color:#222; }

/* Navigation principale (héritée des autres pages) */
.rtc-main-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.rtc-main-nav .nav-logo img {
  width: 32px;
  height: 32px;
}

.rtc-main-nav .nav-logo:hover {
  color: #0066cc;
}

.main-nav { background:linear-gradient(to bottom,#f8f9fa,#e9ecef); border:1px solid #dee2e6; border-radius:6px; padding:0.5rem 1rem; margin-bottom:1rem; box-shadow:0 1px 3px rgba(0,0,0,0.05); }
.main-nav ul { list-style:none; margin:0; padding:0; display:flex; gap:0.5rem; flex-wrap:wrap; }
.main-nav a { display:inline-block; padding:0.5rem 1.25rem; color:#0066cc; text-decoration:none; border-radius:4px; font-weight:500; transition:all .2s ease; }
.main-nav a:hover { background:#ffffff; color:#0052a3; box-shadow:0 1px 2px rgba(0,0,0,0.1); }
.main-nav a.active { background:#0066cc; color:#fff; }

/* Contenu principal */
.categories-main {
  width: 100%;
  padding: 0;
}
.container {
  width: 100%;
  margin: 0;
  padding: 0 0 2rem;
  max-width: 1200px;
}
h1 { color:#0066cc; margin:1.5rem 0 1rem; font-size:1.9rem; line-height:1.2; }
h2 { line-height:1.2; }

/* Tableau amélioré */
.table-scroll { margin-top:0.75rem; }
.cat-table tbody tr:nth-child(even){ background:#fcfdff; }
.cat-table tbody tr.sep td { border-top:2px solid #c7d9e8; }
.cat-table thead th { font-size:0.8rem; letter-spacing:.04em; text-transform:uppercase; }
.cat-table tbody tr.subcat th,
.cat-table tbody tr.subcat td { background:#f7fbff; font-size:0.9rem; }
.cat-table tbody tr.subcat th { padding-left:1.2rem; position:relative; }
.cat-table tbody tr.subcat th::before { content:'↳'; position:absolute; left:0.4rem; color:#0066cc; font-size:0.85rem; }

/* Accent sur titre section */
.cat-section h2 { position:relative; }
.cat-section h2::after { content:''; position:absolute; left:0; bottom:-4px; width:60px; height:3px; background:#0066cc; border-radius:2px; }

/* FAQ details */
.cat-section details { margin-bottom:0.6rem; background:#fafafa; border:1px solid #e3e7eb; border-radius:6px; padding:0.6rem 0.75rem; }
.cat-section summary { font-weight:600; cursor:pointer; }
.cat-section details[open] { background:#f0f6ff; }

/* Note */
.note { background:#fff; border-left:4px solid #0066cc; padding:0.5rem 0.75rem; border-radius:4px; }

/* Footer styles */
#footer-container {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rtc-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
}

.footer-brand strong {
  display: block;
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.footer-sections {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.footer-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem;
}

.footer-nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #2563eb;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Responsive footer */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-sections {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .footer-sections {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .footer-section {
    text-align: center;
  }
}

/* Accessibilité focus */
.main-nav a:focus-visible, .cat-table a:focus-visible, .footer-links a:focus-visible { outline:2px solid #ffb300; outline-offset:2px; }


/* Mobile ajustements */
@media (max-width:600px){ h1 { font-size:1.55rem; } .cat-table { font-size:0.78rem; } }

.categories-main .intro { line-height:1.7; margin:0 0 1.25rem; color:#444; }
.cat-section { margin:2.5rem 0 2rem; }
.cat-section h2 { margin:0 0 1rem; font-size:1.35rem; color:#0066cc; }
.table-scroll { border:1px solid #e0e0e0; border-radius:8px; background:#fff; padding:0.75rem; overflow:auto; max-width: 100%; }
.cat-table { width:100%; border-collapse:collapse; font-size:0.95rem; }
.cat-table thead th { position:sticky; top:0; background:#f0f6ff; font-weight:600; padding:0.75rem; border-bottom:2px solid #d0d8e0; }
.cat-table tbody td, .cat-table tbody th { padding:0.65rem 0.75rem; border-bottom:1px solid #eceff3; text-align:left; }
.cat-table tbody tr.sep td { background:#eef6ff; font-weight:600; text-align:center; font-size:0.85rem; }
.cat-table tbody tr:hover { background:#fafafa; }
.cat-table tbody th { background:#fff; font-weight:600; }
.note { font-size:0.75rem; color:#666; margin-top:0.75rem; line-height:1.4; }
.usage-list { margin:0 0 1rem 1.2rem; line-height:1.6; }
.usage-list li { margin:0.35rem 0; }
.details-block details { margin-bottom:0.75rem; }
summary { cursor:pointer; font-weight:600; }
@media (max-width:700px){ .cat-table { font-size:0.8rem; } .cat-section h2 { font-size:1.15rem; } }

/* Centrage des valeurs dans les tableaux de minimas */
.cat-table tbody td { text-align: center; }
.cat-table thead th { text-align: center; }
