/* ============================================
   PMCHS — Styles spécifiques : reflexes-archaiques
   ============================================ */

: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);
    --neuro: rgba(160, 100, 200, 0.8);
    --neuro-bg: rgba(160, 100, 200, 0.07);
    --neuro-border: rgba(160, 100, 200, 0.25);
    --warm: rgba(200, 140, 80, 0.8);
    --warm-bg: rgba(200, 140, 80, 0.07);
    --warm-border: rgba(200, 140, 80, 0.25);
    --green: rgba(100, 180, 120, 0.8);
    --green-bg: rgba(100, 180, 120, 0.07);
    --green-border: rgba(100, 180, 120, 0.25);
  }

/* 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;
  }

.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;
    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 {
    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 {
    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;
  }

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

.hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(ellipse, rgba(160, 100, 200, 0.07) 0%, transparent 70%);
    pointer-events: none;
  }

.hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--neuro);
    border: 1px solid var(--neuro-border);
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
  }

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 16px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

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

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
  }

/* DIVIDER */
  .divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neuro), transparent);
    margin: 40px auto;
  }

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

/* INNER MENU */
  .inner-menu {
    background: rgba(26, 58, 92, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 48px;
    backdrop-filter: blur(4px);
  }

.inner-menu-title {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
  }

.inner-menu-links { display: flex; flex-wrap: wrap; gap: 8px; }

.inner-menu-link {
    font-size: 12px;
    color: var(--accent-soft);
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid rgba(74, 158, 202, 0.2);
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
  }

.inner-menu-link:hover {
    background: rgba(74, 158, 202, 0.15);
    border-color: var(--accent);
    color: var(--white);
  }

.inner-menu-link.neuro {
    border-color: var(--neuro-border);
    color: var(--neuro);
  }

.inner-menu-link.neuro:hover {
    background: var(--neuro-bg);
    border-color: var(--neuro);
    color: var(--white);
  }

.inner-menu-link.green {
    border-color: var(--green-border);
    color: var(--green);
  }

.inner-menu-link.green:hover {
    background: var(--green-bg);
    border-color: var(--green);
    color: var(--white);
  }

/* SECTION TITLE */
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    scroll-margin-top: 72px;
  }

.section-title::after {
    content: '';
    flex: 1; height: 1px;
    background: var(--border);
  }

/* INTRO NOTE */
  .intro-note {
    background: var(--neuro-bg);
    border: 1px solid var(--neuro-border);
    border-left: 3px solid var(--neuro);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin-bottom: 40px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
  }

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

/* CONTENT CARD */
  .content-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
  }

.content-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
  }

.content-card p:last-child { margin-bottom: 0; }

.content-card strong { color: var(--text); }

.content-card em { color: var(--accent-soft); font-style: italic; }

/* REFLEX TABLE */
  .reflex-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
  }

.reflex-card {
    background: rgba(13, 27, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

@media (max-width: 640px) {
    .reflex-card { grid-template-columns: 1fr; }
  }

.reflex-name {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
  }

.reflex-age {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--neuro);
    text-transform: uppercase;
    margin-top: 4px;
  }

.reflex-col-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
  }

.reflex-col p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
  }

/* CASCADE BOX */
  .cascade-box {
    background: var(--neuro-bg);
    border: 1px solid var(--neuro-border);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
  }

.cascade-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neuro), transparent);
    border-radius: 12px 12px 0 0;
  }

.cascade-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
  }

.cascade-node {
    background: rgba(160, 100, 200, 0.15);
    border: 1px solid var(--neuro-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    text-align: center;
  }

.cascade-node.mast {
    background: rgba(74, 158, 202, 0.15);
    border-color: var(--border);
    color: var(--accent-soft);
  }

.cascade-arrow {
    font-size: 16px;
    color: var(--neuro);
    flex-shrink: 0;
  }

.cascade-box p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
  }

.cascade-box p:last-child { margin-bottom: 0; }

.cascade-box strong { color: var(--text); }

/* EXERCISE CARDS */
  .exercise-section {
    margin-bottom: 28px;
  }

.exercise-card {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
  }

.exercise-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--green);
    border-radius: 12px 0 0 12px;
  }

.exercise-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
  }

.exercise-icon {
    font-size: 26px;
    flex-shrink: 0;
    margin-top: 2px;
  }

.exercise-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 4px;
  }

.exercise-reflex {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green);
  }

.exercise-steps {
    list-style: none;
    margin-left: 40px;
  }

.exercise-steps li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 4px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

.step-num {
    flex-shrink: 0;
    width: 20px; height: 20px;
    background: rgba(100, 180, 120, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    margin-top: 2px;
  }

.exercise-note {
    margin-left: 40px;
    margin-top: 10px;
    font-size: 12.5px;
    color: rgba(100, 180, 120, 0.7);
    font-style: italic;
    line-height: 1.6;
  }

/* TRAUMA BOX */
  .trauma-box {
    background: var(--warm-bg);
    border: 1px solid var(--warm-border);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 28px;
  }

.trauma-box p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
  }

.trauma-box p:last-child { margin-bottom: 0; }

.trauma-box strong { color: var(--warm); }

/* TIP BOX */
  .tip-box {
    background: rgba(74, 158, 202, 0.06);
    border: 1px solid rgba(74, 158, 202, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-top: 20px;
  }

.tip-box strong { color: var(--accent); }

/* CLINICAL NOTE */
  .clinical-note {
    background: rgba(200, 169, 110, 0.06);
    border: 1px solid rgba(200, 169, 110, 0.25);
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
  }

.clinical-note strong { color: var(--gold); }

/* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
  }

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

/* LANG */
  .lang-fr, .lang-en { display: block; }

span.lang-fr, span.lang-en { display: inline; }

body.en span.lang-fr { display: none; }

body.fr span.lang-en { display: none; }

@media (max-width: 700px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .content-card { padding: 20px; }
    .cascade-box { padding: 20px; }
    .exercise-card { padding: 18px 20px; }
  }