/* ============================================
   PMCHS — Styles spécifiques : comorbidites
   ============================================ */

:root {
    --navy: #0d1b2e;
    --navy-mid: #1a3a5c;
    --navy-light: #2e5f8a;
    --accent: #4a9eca;
    --accent-soft: #7dbfe0;
    --gold: #c8a96e;
    --white: #f8fafc;
    --text: #e8edf4;
    --text-muted: #8faabf;
    --card-bg: rgba(26, 58, 92, 0.4);
    --border: rgba(74, 158, 202, 0.2);
  }

/* NAV */

  /* LANG TOGGLE */

  /* HERO */
  .hero {
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
  }

.hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(74,158,202,0.12) 0%, transparent 70%);
    pointer-events: none;
  }

.hero-tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(200,169,110,0.3);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
  }

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
  }

.hero h1 em { color: var(--accent); font-style: italic; }

.hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 32px;
    font-weight: 300;
    line-height: 1.7;
  }

/* LEGEND */
  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto 48px;
  }

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
  }

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }

.dot-strong { background: #4a9eca; }

.dot-probable { background: #c8a96e; }

.dot-associated { background: #7a9e7e; }

/* DIVIDER */
  .divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    max-width: 900px;
    margin: 0 auto 56px;
  }

/* CONTAINER */
  .container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px 80px;
  }

/* INTRO NOTE */
  .intro-note {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 20px 28px;
    margin-bottom: 52px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

.intro-note strong { color: var(--accent-soft); }

/* SYSTEM SECTION */
  .system-section {
    margin-bottom: 52px;
  }

.system-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
  }

.system-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
  }

.system-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
  }

.system-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 2px;
  }

/* COMORBIDITY CARDS GRID */
  .comorbidity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }

.comorbidity-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s, transform 0.2s;
  }

.comorbidity-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
  }

.comorbidity-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

.comorbidity-name .dot {
    margin-top: 5px;
    flex-shrink: 0;
  }

.comorbidity-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
    padding-left: 18px;
  }

/* SYSTEM COLORS */
  .icon-neuro { background: rgba(74,158,202,0.15); }

.icon-cardio { background: rgba(202,74,100,0.15); }

.icon-skin { background: rgba(200,169,110,0.15); }

.icon-gyneco { background: rgba(180,100,180,0.15); }

.icon-digestif { background: rgba(100,180,120,0.15); }

.icon-osteo { background: rgba(180,160,100,0.15); }

.icon-immuno { background: rgba(74,158,202,0.1); }

.icon-metabolique { background: rgba(100,200,170,0.15); }

.icon-pulmo { background: rgba(140,180,220,0.15); }

/* FOOTER NOTE */
  .footer-note {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 24px 28px;
    background: rgba(200,169,110,0.06);
    border: 1px solid rgba(200,169,110,0.2);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
    text-align: center;
  }

.footer-note a { color: var(--accent); text-decoration: none; }

.footer-note a:hover { text-decoration: underline; }

/* FOOTER */
  .footer {
    text-align: center;
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    font-size: 13px;
    color: var(--text-muted);
  }

.footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 600px) {
    .comorbidity-grid { grid-template-columns: 1fr; }
    .hero { padding: 90px 16px 50px; }
  }

/* TOPBAR */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 56px;
    background: rgba(13, 27, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 158, 202, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
  }

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
  }

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    flex-shrink: 0;
  }

.nav-links {
    display: flex;
    gap: 16px;
  }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

.lang-toggle {
    display: flex;
    gap: 6px;
  }

.lang-btn {
    padding: 5px 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s;
  }

.lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
  }

.lang-btn:hover:not(.active) {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
  }

/* HAMBURGER */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: all 0.3s;
  }

/* MOBILE MENU */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 199;
    background: rgba(13, 27, 46, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    flex-direction: column;
    gap: 4px;
  }

/* PAGE TOP PADDING */
  .hero { padding-top: 116px !important; }

body > .container:first-of-type { padding-top: 72px; }

@media (max-width: 700px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
  }
/* ── TABLEAU MÉDICAMENTS À RISQUE ── */
.risk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.risk-table th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(74, 158, 202, 0.08);
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
}

.risk-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(74, 158, 202, 0.08);
  color: var(--text-muted);
  vertical-align: top;
}

.risk-table tr:last-child td { border-bottom: none; }

.risk-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.risk-high { background: rgba(214, 90, 90, 0.15); color: #e08a8a; }
.risk-moderate { background: rgba(200, 169, 110, 0.15); color: var(--gold); }
.risk-variable { background: rgba(122, 158, 126, 0.15); color: #9fc2a3; }

.risk-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  background: rgba(74, 158, 202, 0.1);
  border: 1px solid rgba(74, 158, 202, 0.3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
  text-decoration: none;
  transition: all 0.2s;
}

.risk-download:hover {
  background: rgba(74, 158, 202, 0.2);
  color: var(--white);
}

@media (max-width: 700px) {
  .risk-table { font-size: 12px; }
  .risk-table th, .risk-table td { padding: 10px 10px; }
}
