:root {
  --paper: #faf9f7;
  --paper-w: #f4f1ec;
  --white: #fff;
  --ink: #1a1a1a;
  --ink-s: #3d3d3d;
  --ink-m: #6b6b6b;
  --ink-f: #9a9a9a;
  --ink-ff: #c5c0b8;
  --rule: #e0ddd8;
  --rule-l: #eeebe6;
  --red: #b8390e;
  --red-s: rgba(184,57,14,.06);
  --academy: #0e7490;
  --academy-s: #ecfeff;
  --academy-m: #06b6d4;
  --advisory: #5b21b6;
  --advisory-s: #f3f0ff;
  --inceptum: #b45309;
  --inceptum-s: #fef7ed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Geist', sans-serif;
  background: #e8e5e0;
  color: var(--ink-s);
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE SYSTEM ── */
.page {
  width: 210mm;
  min-height: 297mm;
  background: var(--paper);
  margin: 16px auto;
  padding: 44px 52px 56px;
  box-shadow: 0 2px 40px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
}

.page-cover {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media print {
  body { background: white; }
  .page { margin: 0; box-shadow: none; page-break-after: always; }
}

/* ── HEADER ── */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.page-cover .page-head {
  border-bottom-color: rgba(255,255,255,.15);
}

.ph-logo {
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.page-cover .ph-logo { color: var(--paper); }
.ph-logo .dot { color: var(--red); }
.ph-logo .branch { color: var(--academy); }
.page-cover .ph-logo .branch { color: var(--academy-m); }

.ph-right {
  font-family: 'Geist Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-f);
}
.page-cover .ph-right { color: rgba(255,255,255,.35); }

/* ── SECTION LABEL ── */
.sl {
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

/* ── HEADINGS ── */
h1 { font-family: 'Newsreader', serif; font-weight: 700; font-size: 38px; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-family: 'Newsreader', serif; font-weight: 600; font-size: 22px; color: var(--ink); line-height: 1.15; margin-bottom: 6px; }
h3 { font-family: 'Newsreader', serif; font-weight: 600; font-size: 14px; color: var(--ink); margin: 18px 0 5px; }
h4 { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 9.5px; color: var(--ink); margin: 8px 0 3px; letter-spacing: .02em; }

p, .body { font-size: 9.5px; line-height: 1.65; color: var(--ink-s); }
.small { font-size: 8.5px; color: var(--ink-m); line-height: 1.6; }
.caption { font-family: 'Geist Mono', monospace; font-size: 6.5px; color: var(--ink-f); letter-spacing: .06em; }
.mono { font-family: 'Geist Mono', monospace; }

/* ── DIVIDERS ── */
.div { border-top: 1px solid var(--rule); margin: 20px 0; }
.div-s { border-top: 1px solid var(--rule-l); margin: 12px 0; }
.div-dark { border-top: 1px solid rgba(255,255,255,.12); margin: 20px 0; }

/* ── LAYOUT ── */
.cols { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-23 { grid-template-columns: 2fr 3fr; }
.cols-32 { grid-template-columns: 3fr 2fr; }
.cols-13 { grid-template-columns: 1fr 3fr; }

/* ── BOXES ── */
.rbox {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 6px 0;
}

.rbox-accent {
  border-top: 3px solid var(--academy);
}

.rbox-red {
  border-top: 3px solid var(--red);
}

.rbox-h {
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}

.rbox-h-blue {
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--academy);
  margin-bottom: 5px;
}

/* ── MODULE CARD ── */
.module-card {
  border-radius: 10px;
  border: 1px solid var(--rule);
  padding: 16px 18px;
  background: var(--white);
  margin: 6px 0;
}

.module-card.m1 { border-top: 3px solid var(--academy); }
.module-card.m2 { border-top: 3px solid var(--advisory); }
.module-card.m3 { border-top: 3px solid var(--red); }

.module-num {
  font-family: 'Geist Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}
.m1 .module-num { color: var(--academy); }
.m2 .module-num { color: var(--advisory); }
.m3 .module-num { color: var(--red); }

/* ── TAG ── */
.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'Geist', sans-serif;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .03em;
}
.tag-academy { background: var(--academy-s); color: var(--academy); }
.tag-reg { background: var(--advisory-s); color: var(--advisory); }
.tag-risk { background: var(--inceptum-s); color: var(--inceptum); }
.tag-red { background: var(--red-s); color: var(--red); }

/* ── PILL DURATION ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  color: var(--ink-m);
  background: var(--paper-w);
}

/* ── CHECKLIST ── */
.checklist { list-style: none; margin: 6px 0; }
.checklist li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 8.5px;
  color: var(--ink-s);
  line-height: 1.55;
  padding: 2.5px 0;
  border-bottom: 1px solid var(--rule-l);
}
.checklist li:last-child { border-bottom: none; }
.check-icon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--academy-s);
  border: 1px solid var(--academy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 7px;
  color: var(--academy);
}

/* ── TABLE ── */
.tb {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
  margin: 8px 0;
}
.tb thead th {
  background: var(--paper-w);
  font-family: 'Geist Mono', monospace;
  font-size: 6.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--academy);
  padding: 7px 6px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.tb tbody td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--rule-l);
  color: var(--ink-s);
  vertical-align: top;
  line-height: 1.5;
}
.tb tbody td:first-child { font-weight: 600; color: var(--ink); }
.tb tbody tr:last-child td { border-bottom: none; }

/* ── PROGRESS BAR ── */
.progress-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.progress-label { font-size: 8px; color: var(--ink-s); width: 110px; flex-shrink: 0; }
.progress-bar { flex: 1; height: 4px; background: var(--rule); border-radius: 2px; }
.progress-fill { height: 100%; border-radius: 2px; background: var(--academy); }
.progress-pct { font-family: 'Geist Mono', monospace; font-size: 7px; color: var(--ink-m); width: 24px; text-align: right; }

/* ── FOOTER ── */
.pf {
  position: absolute;
  bottom: 24px;
  left: 52px;
  right: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 6.5px;
  color: var(--ink-ff);
  letter-spacing: .08em;
}

.pf-dark {
  color: rgba(255,255,255,.2);
}

/* ── COVER DECORATIVE ── */
.cover-bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.cover-accent-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}

/* ── STAT BOX ── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.stat-box {
  background: var(--paper-w);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}
.stat-num {
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 3px;
}
.stat-num .unit { font-size: 14px; color: var(--ink-m); }
.stat-label { font-family: 'Geist Mono', monospace; font-size: 6.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-m); }

/* ── REGLEMENTAIRE BADGE ── */
.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--advisory-s);
  border: 1px solid rgba(91,33,182,.12);
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  color: var(--advisory);
  font-weight: 500;
  margin: 2px 2px 2px 0;
}

/* ── AUDIENCE TAG ── */
.audience-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0;
}
.aud-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 7.5px;
  font-weight: 500;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink-s);
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 16px; margin: 8px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--rule);
}
.tl-item { position: relative; padding-bottom: 10px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -14px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--academy);
}
.tl-dot.active { background: var(--academy); }
.tl-title { font-size: 8.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.tl-desc { font-size: 8px; color: var(--ink-m); line-height: 1.5; }

/* ── QUOTE BOX ── */
.quote-box {
  border-left: 3px solid var(--red);
  padding: 10px 14px;
  background: var(--paper-w);
  margin: 10px 0;
  border-radius: 0 6px 6px 0;
}
.quote-text {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 4px;
}
.quote-attr {
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  color: var(--ink-m);
  letter-spacing: .06em;
}

/* ── ICON CIRCLE ── */
.icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--academy-s);
  border: 1px solid rgba(14,116,144,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ── NIVEAU BADGE ── */
.niveau {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: 'Geist', sans-serif;
  font-size: 7px;
  font-weight: 600;
}
.niveau-1 { background: #ecfdf5; color: #047857; }
.niveau-2 { background: var(--inceptum-s); color: var(--inceptum); }
.niveau-3 { background: var(--advisory-s); color: var(--advisory); }

/* ── OBJECTIF BOX ── */
.obj-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  background: var(--paper-w);
  border-radius: 6px;
  border: 1px solid var(--rule-l);
  margin: 4px 0;
}
.obj-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--academy);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 1px;
}
.obj-text { font-size: 8.5px; color: var(--ink-s); line-height: 1.5; }

/* ── COVER CONTENT ── */
.cover-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(14,116,144,.15);
  border: 1px solid rgba(14,116,144,.3);
  font-family: 'Geist Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--academy-m);
  margin-bottom: 20px;
}

.cover-title-label {
  font-family: 'Geist Mono', monospace;
  font-size: 7px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}

/* ── CATALOG PAGE ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 12px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav-left { display: flex; align-items: center; gap: 32px; }
.site-nav .logo {
  font-family: 'Newsreader', serif; font-weight: 700; font-size: 18px;
  color: var(--ink); text-decoration: none;
}
.site-nav .logo .dot { color: var(--red); }
.site-nav .logo .acad-nav { color: var(--academy); }
.site-nav-links { display: flex; gap: 24px; align-items: center; }
.site-nav a {
  font-family: 'Geist', sans-serif; font-size: 12px; font-weight: 500;
  text-decoration: none; color: var(--ink-m);
  transition: color .2s; border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--academy); border-bottom-color: var(--academy); font-weight: 600; }

.btn-nav {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-size: 13px;
  font-weight: 500; text-decoration: none; transition: all .2s;
  font-family: 'Geist', sans-serif; letter-spacing: .02em; cursor: pointer; border: none;
  background: var(--academy); color: white;
}
.btn-nav:hover { background: #0c6578; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  font-family: 'Geist', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--ink-m); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0 0 2px;
  border-bottom: 2px solid transparent; transition: color .2s;
}
.dropdown-toggle:hover { color: var(--ink); }
.dropdown-toggle svg { width: 10px; height: 10px; transition: transform .2s; }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -12px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 10px;
  padding: 8px 0; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all .2s ease; z-index: 200;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 12px; font-weight: 500;
  color: var(--ink-s); text-decoration: none;
  border-bottom: none !important; transition: background .15s;
}
.dropdown-menu a:hover { background: var(--paper-w); }
.dropdown-menu .branch-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dropdown-menu .branch-name { font-weight: 600; }
.dropdown-menu .branch-desc { font-size: 10px; color: var(--ink-f); margin-left: auto; }

/* Catalog layout */
.catalog-body {
  background: var(--paper);
  min-height: 100vh;
  font-family: 'Geist', sans-serif;
}

.catalog-hero {
  max-width: 960px; margin: 0 auto;
  padding: 64px 40px 48px;
}

.catalog-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--academy-s); color: var(--academy);
  padding: 5px 12px; border-radius: 20px;
  font-family: 'Geist Mono', monospace; font-size: 9px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px;
}
.catalog-badge .bdot { width: 6px; height: 6px; background: var(--academy); border-radius: 50%; }

.catalog-title {
  font-family: 'Newsreader', serif; font-weight: 700; font-size: 40px;
  color: var(--ink); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 12px;
}
.catalog-title .rdot { color: var(--red); }
.catalog-title .acad { color: var(--academy); }

.catalog-subtitle {
  font-size: 15px; line-height: 1.65; color: var(--ink-m); max-width: 560px;
}

/* Course cards grid */
.courses-section {
  max-width: 960px; margin: 0 auto; padding: 0 40px 64px;
}

.courses-section-label {
  font-family: 'Geist Mono', monospace; font-size: 8px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}

.courses-section-title {
  font-family: 'Newsreader', serif; font-weight: 600; font-size: 24px;
  color: var(--ink); margin-bottom: 20px;
}

.courses-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

.course-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  padding: 28px 24px; transition: box-shadow .2s, border-color .2s;
  text-decoration: none; color: inherit; display: block;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--academy);
}
.course-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  border-color: var(--academy);
}
.course-card.coming-soon { opacity: .55; pointer-events: none; }
.course-card.coming-soon::before { background: var(--rule); }

.cc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.cc-tag {
  font-family: 'Geist Mono', monospace; font-size: 7px; font-weight: 600;
  padding: 2px 7px; border-radius: 3px; letter-spacing: .04em;
}

.cc-title {
  font-family: 'Newsreader', serif; font-weight: 600; font-size: 18px;
  color: var(--ink); line-height: 1.2; margin-bottom: 8px;
}

.cc-desc {
  font-size: 12px; line-height: 1.6; color: var(--ink-m); margin-bottom: 14px;
}

.cc-meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.cc-meta-item {
  font-family: 'Geist Mono', monospace; font-size: 8px; color: var(--ink-f);
  letter-spacing: .04em;
}

.cc-regs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }

.cc-cta {
  font-family: 'Geist', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--academy); display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.course-card:hover .cc-cta { gap: 8px; }

.cc-coming {
  font-family: 'Geist Mono', monospace; font-size: 9px; color: var(--ink-f);
  letter-spacing: .1em; text-transform: uppercase;
}

/* CTA section */
.catalog-cta {
  max-width: 960px; margin: 0 auto; padding: 0 40px 64px;
}

.catalog-cta-box {
  background: var(--ink); border-radius: 16px; padding: 40px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}

.catalog-cta-text h3 {
  font-family: 'Newsreader', serif; font-weight: 600; font-size: 22px;
  color: var(--paper); margin-bottom: 8px;
}
.catalog-cta-text p {
  font-size: 13px; color: var(--ink-f); line-height: 1.6;
}
.catalog-cta-text .rdot { color: var(--red); }

.btn-cta-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-size: 13px;
  font-weight: 500; text-decoration: none;
  background: var(--academy); color: white; white-space: nowrap;
  transition: background .2s;
}
.btn-cta-light:hover { background: var(--academy-m); }

/* Footer */
.site-footer {
  background: var(--ink); padding: 32px 40px;
}
.site-footer-content {
  max-width: 960px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.site-footer-logo {
  font-family: 'Newsreader', serif; font-weight: 700; font-size: 18px; color: var(--paper);
}
.site-footer-logo .dot { color: var(--red); }
.site-footer p { font-size: 10px; color: var(--ink-f); margin: 0; }

/* Responsive */
@media (max-width: 768px) {
  .site-nav { padding: 10px 16px; flex-wrap: wrap; }
  .catalog-hero { padding: 40px 20px 32px; }
  .catalog-title { font-size: 30px; }
  .courses-section { padding: 0 20px 48px; }
  .courses-grid { grid-template-columns: 1fr; }
  .catalog-cta { padding: 0 20px 48px; }
  .catalog-cta-box { flex-direction: column; text-align: center; padding: 32px 24px; }
}
