/* ============================================
   IAS — International Assistance Services
   Design system aligned with the production site
   (Inter / #0C0950 / #E7D4AE / white cards / pill buttons)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --brand: #0C0950;          /* deep navy blue */
  --brand-hover: #15106e;    /* hover deeper */
  --brand-soft: #1a1575;     /* alt hover */
  --gold: #E7D4AE;           /* warm gold */
  --gold-deep: #C8B488;      /* darker gold for text on white */

  /* Neutrals */
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --ink: #0E1220;
  --ink-soft: #3B4256;
  --muted: #6F788B;
  --rule: #E6EAF0;
  --rule-dark: #1F2D43;

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Inter', sans-serif; /* kept for back-compat — site uses Inter everywhere */

  /* Layout */
  --max: 1280px;
  --reading: 720px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow: 0 6px 16px rgba(12, 9, 80, .12);

  /* Backward-compat aliases — map old token names to new brand system */
  --navy: var(--brand);
  --navy-soft: #1f1a6e;
  --navy-deep: #06043a;
  --gold-soft: #F1E3C4;
  --cream: var(--bg);
  --cream-warm: var(--bg-alt);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.35;
}
.brand-mark span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  max-width: 260px;
}
.brand-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--brand);
  white-space: nowrap;
}
.brand-text small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav a:hover { color: var(--brand-hover); }
.nav a.active { color: var(--brand); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}
.lang strong { color: var(--ink); font-weight: 600; }

/* Pill buttons — matching the production site */
.cta {
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--brand);
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta:hover {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.cta-ghost {
  background: transparent;
  color: var(--brand);
}
.cta-ghost:hover {
  background: var(--brand);
  color: #fff;
}
.cta-gold {
  background: var(--gold);
  color: var(--brand);
  border-color: var(--gold);
}
.cta-gold:hover {
  background: var(--brand);
  color: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .site-header-inner { padding: 12px 20px; }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.crumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--rule); margin: 0 10px; }
.crumbs strong { color: var(--brand); font-weight: 600; }

/* ============================================
   TYPOGRAPHY (Inter everywhere)
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--brand);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 17px; font-weight: 600; line-height: 1.3; }

/* Eyebrow / surtitre */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* Lede */
.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 70px 32px 28px;
  margin-top: 100px;
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: var(--gold); }
.site-footer-block h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 18px;
}
.site-footer-block p,
.site-footer-block a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0 0 8px;
  display: block;
  transition: color .2s;
}
.site-footer-block a:hover { color: var(--gold); }
.site-footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 800px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============================================
   GENERIC LAYOUTS
   ============================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.reading {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 0 32px;
}

.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 24px 0;
}

/* ============================================
   CTA BLOCK (re-used across pages)
   ============================================ */
.cta-block {
  background: var(--brand);
  color: #fff;
  padding: 70px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 80px 0 0;
  border-radius: var(--radius-lg);
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(231, 212, 174, 0.3);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
.cta-block .eyebrow { color: var(--gold); }
.cta-block .eyebrow::before { background: var(--gold); }
.cta-block h2 {
  color: #fff;
  max-width: 720px;
  margin: 18px auto 12px;
}
.cta-block p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
}
.cta-block .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-block .cta {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brand);
}
.cta-block .cta:hover {
  background: #fff;
  border-color: #fff;
}
.cta-block .cta-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.cta-block .cta-ghost:hover {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

@media (max-width: 700px) {
  .cta-block { padding: 48px 24px; }
}

/* ============================================
   IAS ACTUALITES — variables & shared components
   (loaded in base.html and each actualites template)
   ============================================ */

:root {
  --ias-navy: #0d1b4b;
  --ias-navy-soft: #162260;
  --ias-cream: #fbf8f2;
  --ias-cream-warm: #f5f0e8;
  --ias-gold: #b8965a;
  --ias-gold-soft: #d4b07a;
  --ias-gold-deep: #8a6a30;
  --ias-muted: #7a7a7a;
  --ias-rule: #e2ddd5;
  --ias-max: 1280px;
  --ias-serif: Georgia, 'Times New Roman', serif;
}

/* CTA block — dark navy (overrides actualites.css cream variant) */
.act-cta-wrap {
  max-width: var(--ias-max);
  margin: 120px auto 80px;
  padding: 0 32px;
}
.act-cta-block {
  background: var(--ias-navy);
  border: none;
  padding: 80px 60px;
  text-align: center;
}
.act-cta-block .act-eyebrow {
  color: var(--ias-gold-soft);
}
.act-cta-block .act-eyebrow::before {
  background: var(--ias-gold-soft);
}
.act-cta-block h2 {
  font-family: var(--ias-serif);
  font-size: clamp(28px, 3vw, 42px);
  color: var(--ias-cream);
  margin: 18px 0 20px;
}
.act-cta-block p {
  color: rgba(251, 248, 242, 0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 17px;
  line-height: 1.7;
}
.act-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons for dark CTA */
.act-cta-block .act-btn {
  padding: 14px 32px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.act-cta-block .act-btn-solid {
  background: var(--ias-gold);
  color: var(--ias-navy);
  border: 1px solid var(--ias-gold);
}
.act-cta-block .act-btn-solid:hover {
  background: var(--ias-gold-soft);
  border-color: var(--ias-gold-soft);
}
.act-cta-block .act-btn-ghost {
  background: transparent;
  color: var(--ias-cream);
  border: 1px solid rgba(251, 248, 242, 0.45);
}
.act-cta-block .act-btn-ghost:hover {
  background: rgba(251, 248, 242, 0.1);
  border-color: var(--ias-cream);
}

/* FAQ summary marker — all browsers */
.article-faq summary::marker { display: none; }
.article-faq summary::-webkit-details-marker { display: none; }

/* Responsive IAS shared */
@media (max-width: 900px) {
  .act-cta-wrap { padding: 0 24px; }
  .act-cta-block { padding: 60px 32px; }
}
@media (max-width: 600px) {
  .act-cta-wrap { padding: 0 16px; margin: 80px auto 60px; }
  .act-cta-block { padding: 48px 20px; }
  .act-cta-block h2 { font-size: clamp(22px, 6vw, 30px); }
}
