/* ============================================================
   CDNIS Vitrine — style.css
   ============================================================ */

:root {
  --navy:      #2c2416;
  --navy-mid:  #3d3220;
  --navy-light:#4e4232;
  --gold:      #c9a84c;
  --gold-light:#e0c070;
  --warm-bg:   #faf5ec;
  --white:     #ffffff;
  --text:      #1a1510;
  --text-muted:#6b5e50;
  --radius:    0.75rem;
  --shadow:    0 4px 24px rgba(44,36,22,.10);
  --shadow-lg: 0 12px 48px rgba(44,36,22,.18);
}

/* ----- RGAA / Accessibilité ----- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden; z-index: 9999;
}
.skip-link:focus {
  position: fixed; top: 0; left: 0; width: auto; height: auto; overflow: visible;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: .6rem 1.2rem; border-radius: 0 0 .5rem 0;
  text-decoration: none; font-size: .95rem; z-index: 9999;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hero-section .badge-hero { color: var(--navy); }

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Inter', sans-serif; font-weight: 700; }
p { line-height: 1.75; }
a { text-decoration: none; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.py-7 { padding-top: 7rem; padding-bottom: 7rem; }

/* ----- Colours ----- */
.text-gold { color: var(--gold) !important; }
.bg-navy   { background: var(--navy) !important; }
.bg-warm   { background: var(--warm-bg) !important; }

/* ----- Buttons — specificity .btn.btn-* (0,2,0) > Bootstrap .btn (0,1,0) ----- */
.btn.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: .6rem 1.6rem;
  transition: all .25s;
}
.btn.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}
.btn.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  border-radius: 50px;
  padding: .6rem 1.6rem;
  transition: all .25s;
  background: transparent;
}
.btn.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  border-radius: 50px;
  padding: .6rem 1.6rem;
  background: transparent;
  transition: all .25s;
}
.btn.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ----- NAVBAR ----- */
#mainNav {
  background: rgba(44,36,22,.97) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  padding: .85rem 0;
  transition: box-shadow .3s;
  z-index: 1050;
}
#mainNav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.35); }
.brand-cdnis {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .5px;
}
.brand-tagline {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin-left: .5rem;
  font-weight: 300;
  letter-spacing: .5px;
  text-transform: uppercase;
}
#mainNav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .55rem;
  transition: color .2s;
  white-space: nowrap;
}
#mainNav .nav-link:hover { color: var(--gold) !important; }
.navbar-brand { display: flex; align-items: baseline; gap: 0; }

/* ----- HERO ----- */
.hero-section {
  position: relative;
  background: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(201,168,76,.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 5% 80%, rgba(44,36,22,.05) 0%, transparent 55%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44,36,22,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,36,22,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.badge-hero {
  display: inline-block;
  background: rgba(44,36,22,.07);
  color: var(--navy);
  border: 1px solid rgba(44,36,22,.2);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: .25rem;
}

/* ----- HERO MOCKUP ----- */
.hero-mockup {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
.mockup-screen {
  width: 460px;
  background: var(--white);
  border: 1px solid rgba(44,36,22,.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(44,36,22,.12), 0 0 0 1px rgba(44,36,22,.06);
}
.mockup-header {
  background: #1e1a0e;
  padding: 0 0 0 12px;
  height: 32px;
  display: flex;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid rgba(201,168,76,.12);
}
.mockup-btn-win {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 32px; font-size: .65rem; cursor: default;
  color: rgba(255,255,255,.65);
  border-radius: 0;
  transition: background .1s;
}
.mockup-btn-win:hover { background: rgba(255,255,255,.1); color: rgba(255,255,255,.95); }
.mockup-btn-close:hover { background: #c42b1c; color: white; }
.mockup-body {
  display: flex;
  min-height: 260px;
}
.mockup-sidebar {
  width: 64px;
  background: rgba(44,36,22,.6);
  border-right: 1px solid rgba(201,168,76,.08);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem .5rem;
}
.mockup-sidebar::before,
.mockup-sidebar::after {
  content: '';
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(201,168,76,.25);
}
.mockup-content {
  flex: 1;
  padding: 1.25rem;
}
.mockup-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(44,36,22,.1);
}
.mockup-line.w-75 { width: 75%; }
.mockup-line.w-50 { width: 50%; }
.mockup-card {
  height: 52px;
  border-radius: 8px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.15);
}
.mockup-badge {
  display: inline-block;
  background: rgba(34,197,94,.2);
  color: #4ade80;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border: 1px solid rgba(74,222,128,.3);
}

/* ----- SECTION HEADERS ----- */
.section-badge {
  display: inline-block;
  background: rgba(201,168,76,.12);
  color: #5c4508;
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
/* Badge sur fond sombre : or clair (contraste suffisant) */
.bg-navy .section-badge, .cta-section .section-badge { color: var(--gold-light); }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--navy);
  margin-bottom: .75rem;
}
.section-title-light { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-subtitle-light { color: rgba(255,255,255,.65); }

/* ----- FEATURE CARDS ----- */
.feature-card {
  background: var(--white);
  border: 1px solid #e8dcc8;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  border-color: rgba(201,168,76,.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(201,168,76,.1);
  border-radius: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  transition: background .3s;
}
.feature-card:hover .feature-icon {
  background: rgba(201,168,76,.2);
}
.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--navy);
}
.feature-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ----- HOW IT WORKS ----- */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.step-number {
  width: 64px; height: 64px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
}
.step-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .6rem;
}
.step-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}
.step-connector {
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 2px;
  border-top: 2px dashed rgba(201,168,76,.3);
  z-index: 0;
}

/* ----- SECURITY ----- */
.security-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--warm-bg);
  border: 1px solid #e8dcc8;
  border-radius: var(--radius);
  transition: background .25s;
}
.security-item:hover { background: rgba(201,168,76,.07); }
.security-icon {
  width: 44px; height: 44px;
  background: rgba(44,36,22,.08);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--navy);
  flex-shrink: 0;
}
.security-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .2rem;
}
.security-item p {
  font-size: .84rem;
  color: var(--text-muted);
  margin: 0;
}

/* ----- PRICING ----- */
.pricing-card {
  background: var(--white);
  border: 1.5px solid #e8dcc8;
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  height: 100%;
  transition: all .3s;
  position: relative;
}
.pricing-card:hover {
  border-color: rgba(201,168,76,.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.pricing-card.featured {
  background: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 8px 40px rgba(201,168,76,.2);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  padding: .25rem .9rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: .5rem;
}
.pricing-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.pricing-card:not(.featured) .pricing-title { color: var(--navy); }
.pricing-card:not(.featured) .pricing-tier { color: #7a600a; }
.pricing-card.featured .pricing-title { color: var(--white); }
.pricing-price {
  margin: 1.25rem 0;
}
.pricing-price .amount {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
/* Contraste WCAG AA large text sur fond clair */
.pricing-card:not(.featured) .amount { color: #a07828; }
.pricing-price .period {
  font-size: .85rem;
  color: var(--text-muted);
  margin-left: .25rem;
}
.pricing-card.featured .pricing-price .period { color: rgba(255,255,255,.5); }
.pricing-price .ht { font-size: .78rem; color: var(--text-muted); }
.pricing-card.featured .pricing-price .ht { color: rgba(255,255,255,.72); }
.pricing-desc {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  min-height: 2.85rem; /* aligne le début des features sur la même ligne */
}
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,.6); }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.pricing-features li {
  font-size: .88rem;
  padding: .4rem 0;
  border-bottom: 1px solid #e5d8c4;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
}
.pricing-card.featured .pricing-features li {
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
}
.pricing-features li i {
  color: var(--gold);
  font-size: .85rem;
  flex-shrink: 0;
}
.pricing-features li.off { opacity: .4; }
.pricing-features li.off i { color: var(--text-muted); }

/* ----- CONSEIL — note sur devis ----- */
.conseil-devis-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  padding: .85rem 1.5rem;
  font-size: .9rem;
  color: var(--text);
}
.conseil-devis-note i {
  color: #a07828;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ----- MAINTENANCE BANNER ----- */
.maintenance-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.maintenance-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: .75rem;
}
.maintenance-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .35rem;
}
.maintenance-item p {
  font-size: .84rem;
  color: var(--text-muted);
  margin: 0;
}
.divider-gold {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .35;
  margin: 0;
}

/* ----- CTA SECTION ----- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 80% 50%, rgba(201,168,76,.08) 0%, transparent 60%);
}

/* ----- FOOTER ----- */
footer {
  background: #100e08;
  color: rgba(255,255,255,.6);
}
footer .footer-brand {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: .5rem;
}
.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.60);
  margin-bottom: 1rem;
}
footer a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color .2s;
  display: block;
  margin-bottom: .4rem;
}
footer a:hover { color: var(--gold); }
footer .footer-divider {
  border-color: rgba(255,255,255,.07);
}
footer .copyright {
  font-size: .8rem;
  color: rgba(255,255,255,.50);
}

/* ----- ANIMATIONS ----- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}


/* ----- MOCKUP ----- */
.mockup-label { color: rgba(201,168,76,.7); font-size: .7rem; font-family: monospace; flex: 1; }

/* ----- SECURITY SECTION INTRO ----- */
.section-intro-p { color: var(--text-muted); line-height: 1.8; margin-top: 1rem; }

/* ----- OBSERVATOIRE : security-item on dark bg ----- */
.bg-navy .security-item { background: rgba(255,255,255,.04); border-color: rgba(201,168,76,.15); }
.bg-navy .security-item h3 { color: var(--white); }
.bg-navy .security-item p  { color: rgba(255,255,255,.55); }
.bg-navy .security-icon { background: rgba(201,168,76,.2) !important; color: #c9a84c !important; }

/* ----- CALLOUT GOLD BOX ----- */
.callout-gold { background: rgba(201,168,76,.07); border: 1px solid rgba(201,168,76,.2); border-radius: 1rem; }
.callout-gold p { font-size: .9rem; }

/* ----- PRICING ----- */
.pricing-card-warm  { background: var(--warm-bg); }
.amount-custom      { font-size: 2rem; }
.pricing-note       { font-size: .85rem; }
.pricing-hjf {
  font-size: .7rem;
  font-weight: 700;
  color: #a07828;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 3px;
  padding: 1px 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.pricing-hjf-note   { font-size: .8rem; color: var(--text-muted); display: block; margin-top: .35rem; }

/* ----- FOOTER ----- */
.footer-desc        { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.7; max-width: 300px; }
.footer-credit      { font-size: .8rem; color: rgba(255,255,255,.65); }
.footer-credit strong { color: rgba(255,255,255,.65); }
.footer-contact-info { font-size: .82rem; color: rgba(255,255,255,.65); margin-top: 1rem; line-height: 1.6; }
.footer-host-link   { color: rgba(255,255,255,.7); }

/* ----- RESPONSIVE ----- */
@media (max-width: 991px) {
  .hero-section { min-height: auto; padding: 1rem 0 2rem; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { max-width: 100%; }
  .step-connector { display: none; }
}
@media (max-width: 767px) {
  .hero-stats { gap: 1.5rem; }
  .pricing-card { margin-bottom: 1.5rem; }
}

/* ── Carrousel kiosque ───────────────────────────────────────────────────── */
.kiosk-frame {
    background: #141428;
    border-radius: 20px;
    padding: 16px 16px 22px;
    box-shadow: 0 32px 96px rgba(0,0,0,.42), 0 4px 20px rgba(0,0,0,.22);
    max-width: 880px;
    margin: 0 auto;
}
.kiosk-screen {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #2c2416;
}
.kiosk-screen .carousel,
.kiosk-screen .carousel-inner,
.kiosk-screen .carousel-item {
    height: 100%;
}
.kiosk-screen .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kiosk-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 56px 28px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    pointer-events: none;
}
.kiosk-caption-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.3;
}
.kiosk-caption-desc {
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    margin: 0;
}
.kiosk-frame .carousel-control-prev,
.kiosk-frame .carousel-control-next {
    width: 10%;
    opacity: .55;
    transition: opacity .2s;
}
.kiosk-frame .carousel-control-prev:hover,
.kiosk-frame .carousel-control-next:hover { opacity: 1; }
.kiosk-frame .carousel-indicators { margin-bottom: .55rem; }
.kiosk-frame .carousel-indicators [data-bs-target] {
    width: 7px; height: 7px;
    border-radius: 50%;
    border-top: none; border-bottom: none;
    background: rgba(255,255,255,.35);
    transition: background .25s;
}
.kiosk-frame .carousel-indicators .active {
    background: var(--cdnis-gold, #c9a227);
}

/* ----- Section Bêta testeurs ----- */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.beta-section {
  background: linear-gradient(135deg, #f5ece0 0%, var(--warm-bg) 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.beta-pill {
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 20px;
}
.beta-counter {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: .55rem 1.4rem;
}
.beta-spots {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}
.beta-label { color: var(--text-muted); }

/* ----- Kiosk HTML Mockup ----- */
.km-root{position:absolute;inset:0;display:flex;flex-direction:column;font-family:'Inter',system-ui,sans-serif;font-size:clamp(6.5px,1.3vw,11.5px);overflow:hidden;user-select:none}
.km-header{display:flex;align-items:center;background:#2c2416;color:#fff;padding:0 2.5%;height:13%;flex-shrink:0;gap:1.5%}
.km-institution{display:flex;align-items:center;gap:.5em;font-weight:700;white-space:nowrap}
.km-inst-dot{width:.65em;height:.65em;background:#c9a227;border-radius:50%;flex-shrink:0}
.km-pagetitle{flex:1;text-align:center;font-size:1.1em;font-weight:600;color:rgba(255,255,255,.9);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.km-langs{display:flex;gap:.3em}
.km-lang{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.6);border-radius:3px;padding:.1em .45em;font-size:.85em;font-weight:700}
.km-lang.on{background:#c9a227;border-color:#c9a227;color:#2c2416}
.km-body{display:flex;flex:1;overflow:hidden}
.km-sidebar{background:#12100a;width:20%;flex-shrink:0;display:flex;flex-direction:column;padding-top:2%}
.km-nav{display:flex;align-items:center;gap:.6em;padding:4% 9%;color:rgba(255,255,255,.42);font-size:.88em;font-weight:500;border-left:2px solid transparent}
.km-nav.on{color:#c9a227;background:rgba(201,162,39,.1);border-left-color:#c9a227}
.km-content{flex:1;overflow:hidden;display:flex;background:#fff}
.km-text-panel{flex:1;padding:5% 6%;display:flex;flex-direction:column;justify-content:center}
.km-img-panel{flex-shrink:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.5em}
.km-tag{display:inline-block;background:rgba(201,162,39,.13);color:#7a620e;font-size:.75em;font-weight:700;padding:.12em .55em;border-radius:3px;margin-bottom:.5em}
.km-h1{margin:0 0 .25em;font-size:1.5em;font-weight:800;color:#2c2416;line-height:1.2}
.km-sub{margin:0 0 .7em;font-size:.88em;color:#c9a227;font-weight:600}
.km-p{margin:0 0 .7em;font-size:.82em;color:#3a3a4a;line-height:1.55}
.km-chips{display:flex;gap:.4em;flex-wrap:wrap}
.km-chip{background:#f2f5fa;border-radius:3px;padding:.1em .45em;font-size:.72em;color:#5a6070}
.km-video{width:100%;height:100%;background:#111828;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.8em;position:relative}
.km-play-btn{width:2.8em;height:2.8em;background:rgba(201,162,39,.9);border-radius:50%;display:flex;align-items:center;justify-content:center}
.km-timeline{width:100%;display:flex;align-items:flex-start;position:relative;padding-top:1.5em}
.km-titem{flex:1;display:flex;flex-direction:column;align-items:center;position:relative}
.km-tdot{width:1em;height:1em;border-radius:50%;background:#c9a227;border:2px solid #fff;box-shadow:0 0 0 2px #c9a227;z-index:1;margin-bottom:.35em;position:relative}
.km-tyear{font-size:.82em;font-weight:700;color:#2c2416;margin-bottom:.2em;text-align:center}
.km-tlabel{font-size:.68em;color:#5a6a80;text-align:center;line-height:1.3;max-width:90%;padding:0 5%}
.km-quiz{width:100%;height:100%;display:flex;flex-direction:column;padding:5% 8%;background:#f8f9fc}
.km-question{font-size:1.1em;font-weight:700;color:#2c2416;margin-bottom:5%;line-height:1.4}
.km-options{display:grid;grid-template-columns:1fr 1fr;gap:3%;flex:1;align-content:start}
.km-option{background:#fff;border:1.5px solid #dde3ed;border-radius:6px;display:flex;align-items:center;gap:.7em;padding:4% 5%;font-size:.88em;color:#2a3040}
.km-opt-letter{width:1.6em;height:1.6em;background:#2c2416;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85em;flex-shrink:0}

/* ----- RGAA 13.8 — prefers-reduced-motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-mockup { animation: none; }
}
