/* ==========================================================================
   Transdoc — Shared stylesheet for resource pages
   Design system aligned with index.html
   ========================================================================== */

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

:root {
  --navy: #0A1628;
  --navy-light: #142240;
  --blue: #1A4DC8;
  --blue-light: #2563EB;
  --blue-50: #EFF4FF;
  --gold: #C9922A;
  --gold-light: #F0B429;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --green: #16A34A;
  --green-light: #DCFCE7;
  --red: #DC2626;
  --red-light: #FEF2F2;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-800); background: var(--white); overflow-x: hidden; line-height: 1.6; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.header-left { display: flex; align-items: center; gap: 32px; }
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; }
.logo-text { line-height: 1.15; }
.logo-name { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; }
.logo-sub { font-size: 11px; color: var(--gray-400); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 14px; font-weight: 500; color: var(--gray-600); padding: 8px 14px;
  border-radius: 8px; text-decoration: none; transition: .2s;
}
nav a:hover { color: var(--blue); background: var(--gray-100); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.phone-link { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 6px; margin-right: 8px; }
.phone-link:hover { color: var(--blue); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; text-decoration: none; border: none; }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 4px 14px rgba(26,77,200,.35); }
.btn-primary:hover { background: #1540A0; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,77,200,.45); }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-200); color: var(--gray-800); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: rgba(26,77,200,.04); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 10px; }
.btn-white { background: white; color: var(--navy); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(0,0,0,.28); }

/* ── NAV DROPDOWN (Ressources) ── */
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-trigger .caret { transition: transform .2s; opacity: .6; }
.nav-item:hover .nav-trigger { color: var(--blue); background: var(--gray-100); }
.nav-item:hover .nav-trigger .caret { transform: rotate(180deg); opacity: 1; }
.dropdown-menu {
  position: absolute; top: 100%; left: -180px;
  margin-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s, transform .22s, visibility .22s;
  pointer-events: none;
  background: white; border: 1px solid var(--gray-200);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(10,22,40,.18);
  padding: 28px; width: 760px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  z-index: 110;
}
/* Invisible bridge to maintain hover between trigger and menu */
.dropdown-menu::after {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown-menu::before {
  content: ""; position: absolute; top: -6px; left: 200px;
  width: 12px; height: 12px; background: white;
  border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200);
  transform: rotate(45deg);
}
.dropdown-col-title {
  font-size: 10.5px; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 0 10px 10px; border-bottom: 1px solid var(--gray-100); margin-bottom: 6px;
  display: flex; align-items: center; gap: 7px;
}
.dropdown-menu a {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; padding: 8px 10px; border-radius: 8px;
  color: var(--gray-800); font-weight: 500; line-height: 1.4;
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--blue); }
.dd-ico {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--blue);
  margin-top: 1px;
}
.dd-label { flex: 1; }
.dd-sub { font-size: 11px; color: var(--gray-400); font-weight: 400; margin-top: 1px; }
.dropdown-footer {
  grid-column: 1 / -1; margin-top: 6px; padding-top: 18px;
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dropdown-footer-text { font-size: 13px; color: var(--gray-600); }
.dropdown-footer-text strong { color: var(--navy); }
.dropdown-footer a.btn { padding: 9px 18px; font-size: 13px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
  padding: 14px 0; font-size: 13px;
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 8px; color: var(--gray-500); flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb-current { color: var(--navy); font-weight: 600; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0F1F3D 50%, #142240 100%);
  color: white; padding: 64px 0 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(26,77,200,.28) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(201,146,42,.15) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: 6px 14px; border-radius: 24px; font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,.9); margin-bottom: 18px;
}
.page-hero-tag.gold { background: rgba(240,180,41,.12); border-color: rgba(240,180,41,.35); color: var(--gold-light); }
.page-hero h1 {
  font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -1px;
  color: white; margin-bottom: 18px;
}
.page-hero h1 .accent { color: var(--gold-light); }
.page-hero-sub { font-size: 17px; color: #CBD5E1; max-width: 620px; margin-bottom: 28px; }
.page-hero-features { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 28px; }
.page-hero-feat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.9); font-weight: 500; }
.page-hero-feat svg { color: var(--gold-light); }
.page-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual card (right side) */
.hero-visual-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 28px; backdrop-filter: blur(8px);
}
.hvc-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.hvc-title svg { color: var(--gold-light); }
.hvc-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.hvc-row:last-child { border-bottom: none; }
.hvc-label { color: #94A3B8; }
.hvc-value { color: white; font-weight: 600; }
.hvc-value.gold { color: var(--gold-light); }
.hvc-value.green { color: #4ADE80; }

/* ── SECTION ── */
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: var(--navy); color: white; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(26,77,200,.08); color: var(--blue);
  padding: 6px 14px; border-radius: 24px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px;
  border: 1px solid rgba(26,77,200,.15);
}
.section-title { font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1.18; letter-spacing: -.6px; margin-bottom: 14px; }
.section-navy .section-title { color: white; }
.section-navy .section-tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.15); }
.section-sub { font-size: 17px; color: var(--gray-500); max-width: 680px; margin: 0 auto; line-height: 1.6; }
.section-navy .section-sub { color: #94A3B8; }

/* ── RICH CONTENT ── */
.rich-content { font-size: 16.5px; line-height: 1.75; color: var(--gray-700); }
.rich-content h2 {
  font-size: 30px; font-weight: 800; color: var(--navy); margin: 48px 0 18px;
  letter-spacing: -.4px; line-height: 1.22;
}
.rich-content h2:first-child { margin-top: 0; }
.rich-content h3 {
  font-size: 21px; font-weight: 700; color: var(--navy); margin: 34px 0 14px;
  line-height: 1.3;
}
.rich-content h4 {
  font-size: 17px; font-weight: 700; color: var(--navy); margin: 24px 0 10px;
}
.rich-content p { margin-bottom: 16px; }
.rich-content ul, .rich-content ol { margin: 0 0 20px 0; padding-left: 0; list-style: none; }
.rich-content li {
  position: relative; padding-left: 32px; margin-bottom: 10px;
}
.rich-content ul li::before {
  content: ""; position: absolute; left: 8px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
}
.rich-content ol { counter-reset: olcount; }
.rich-content ol li { counter-increment: olcount; }
.rich-content ol li::before {
  content: counter(olcount); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: white; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rich-content strong { color: var(--navy); font-weight: 700; }
.rich-content a { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(26,77,200,.2); transition: .2s; }
.rich-content a:hover { border-bottom-color: var(--blue); background: rgba(26,77,200,.04); }

/* Callouts */
.callout {
  display: flex; gap: 14px; padding: 20px 22px; border-radius: 12px;
  margin: 24px 0; font-size: 15px; line-height: 1.6;
}
.callout-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.callout-info { background: var(--blue-50); border: 1px solid rgba(26,77,200,.2); color: var(--gray-700); }
.callout-info .callout-icon { color: var(--blue); }
.callout-info strong { color: var(--navy); }
.callout-warn { background: var(--amber-light); border: 1px solid rgba(217,119,6,.3); color: var(--gray-700); }
.callout-warn .callout-icon { color: var(--amber); }
.callout-warn strong { color: #92400E; }
.callout-success { background: var(--green-light); border: 1px solid rgba(22,163,74,.25); color: var(--gray-700); }
.callout-success .callout-icon { color: var(--green); }
.callout-success strong { color: #14532D; }
.callout-tip { background: var(--gray-50); border-left: 4px solid var(--blue); color: var(--gray-700); border-radius: 0 12px 12px 0; }

/* Table of contents */
.toc {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 22px 24px; margin-bottom: 40px;
}
.toc-title {
  font-size: 12px; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.toc ol { counter-reset: tc; margin: 0; padding: 0; list-style: none; }
.toc li { counter-increment: tc; padding: 6px 0 6px 28px; position: relative; }
.toc li::before {
  content: counter(tc); position: absolute; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: white; border: 1.5px solid var(--gray-200);
  color: var(--blue); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.toc a { color: var(--gray-700); text-decoration: none; font-size: 14.5px; font-weight: 500; border: none; }
.toc a:hover { color: var(--blue); background: transparent; }

/* ── KEY FACTS / STAT CARDS ── */
.kf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.kf-card {
  background: white; border: 1px solid var(--gray-200); border-radius: 14px;
  padding: 22px 20px; text-align: center; transition: .2s;
}
.kf-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kf-icon {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white; display: flex; align-items: center; justify-content: center;
}
.kf-value { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; line-height: 1; margin-bottom: 4px; }
.kf-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }

/* ── PRICE TABLE ── */
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: white; border: 1px solid var(--gray-200); border-radius: 14px;
  overflow: hidden; margin: 24px 0 32px;
  font-size: 14.5px;
}
.price-table th, .price-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-100);
}
.price-table th {
  background: var(--gray-50); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--gray-600);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td strong { color: var(--navy); }
.price-table .price-badge {
  display: inline-block; background: rgba(22,163,74,.1); color: var(--green);
  padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700;
}

/* ── FEATURE GRID ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0; }
.feat-card {
  background: white; border: 1px solid var(--gray-200); border-radius: 14px;
  padding: 26px 24px; transition: .25s;
}
.feat-card:hover { border-color: rgba(26,77,200,.3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(26,77,200,.30);
}
.feat-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feat-text { font-size: 14.5px; color: var(--gray-600); line-height: 1.6; }

/* ── STEPS (numbered process) ── */
.steps-vertical { display: grid; gap: 18px; margin: 32px 0; }
.step-v {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: white; border: 1px solid var(--gray-200); border-radius: 14px; padding: 22px;
}
.step-v-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: white; font-size: 19px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(26,77,200,.30);
}
.step-v-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step-v-text { font-size: 14.5px; color: var(--gray-600); line-height: 1.65; }

/* ── RELATED PAGES ── */
.related { background: var(--gray-50); padding: 64px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.related-card {
  background: white; border: 1px solid var(--gray-200); border-radius: 14px;
  padding: 22px; text-decoration: none; transition: .25s; display: block;
}
.related-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(26,77,200,.08); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.related-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.related-text { font-size: 13.5px; color: var(--gray-500); line-height: 1.55; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 12px; margin-top: 32px; }
.faq-item {
  background: white; border: 1px solid var(--gray-200); border-radius: 12px;
  overflow: hidden; transition: .2s;
}
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 22px; font-size: 15.5px; font-weight: 600; color: var(--navy);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400); transform: rotate(45deg); transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--blue); }
.faq-answer {
  padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: var(--gray-600);
}
.faq-answer p + p { margin-top: 12px; }
.faq-answer strong { color: var(--navy); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #14306E 100%);
  padding: 64px 0; color: white; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(26,77,200,.45) 0%, transparent 60%);
}
.cta-band-inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.cta-band h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; line-height: 1.18; }
.cta-band p { font-size: 17px; color: #CBD5E1; margin-bottom: 28px; }
.cta-band .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: #94A3B8; padding: 60px 0 28px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand { }
.footer-brand .logo-name { color: white; }
.footer-brand .logo-sub { color: #64748B; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin-top: 16px; max-width: 320px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94A3B8; font-size: 14px; text-decoration: none; transition: .2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 13px; color: #64748B;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero h1 { font-size: 36px; }
  .kf-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .header-inner nav { display: none; }
  .page-hero { padding: 48px 0 56px; }
  .page-hero h1 { font-size: 28px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .rich-content h2 { font-size: 24px; }
  .kf-grid, .feat-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band h2 { font-size: 26px; }
  .phone-link { display: none; }
}
