/* =====================================================================
   WM Best Service — "Trust Corporate" Design System
   Palette: marine + bleu royal + or (logo WM). Light default + dark.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #e8edf6;
  --bg-elev: #ffffff;
  --navy: #0f2038;
  --navy-strong: #0a1626;
  --ink: #1c2840;
  --muted: #5a6779;
  --line: #e4e9f1;
  --line-strong: #d3dbe6;
  --blue: #2f5fd0;
  --blue-600: #2851b8;
  --blue-tint: #eaf0fc;
  --gold: #c8890f;
  --gold-bright: #e8a91d;
  --gold-tint: #fbf1d8;
  --shadow-sm: 0 1px 2px rgba(15,32,56,.06), 0 1px 3px rgba(15,32,56,.05);
  --shadow-md: 0 8px 24px rgba(15,32,56,.08), 0 2px 6px rgba(15,32,56,.05);
  --shadow-lg: 0 24px 60px rgba(15,32,56,.14);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 76px;
  --header-bg: #d4d5d6;
  --header-scrolled: #d4d5d6;
  --header-line: #bfc2c4;
  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html[data-theme="dark"] {
  --bg: #0a0c10;
  --bg-alt: #14171d;
  --bg-elev: #132339;
  --navy: #eef3fb;
  --navy-strong: #060e1c;
  --ink: #d6dfee;
  --muted: #93a1b8;
  --line: #213248;
  --line-strong: #2b405c;
  --blue: #6f95e8;
  --blue-600: #5b83de;
  --blue-tint: #16263f;
  --gold: #e8a91d;
  --gold-bright: #f4c141;
  --gold-tint: #22304a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.55);
  --header-bg: color-mix(in srgb, var(--bg) 82%, transparent);
  --header-scrolled: var(--bg);
  --header-line: var(--line);
}

/* Dark mode: alternate sections become bright white islands (black/white contrast) */
html[data-theme="dark"] .section--alt {
  --bg: #ffffff;
  --bg-alt: #e8edf6;
  --bg-elev: #ffffff;
  --navy: #0f2038;
  --navy-strong: #0a1626;
  --ink: #1c2840;
  --muted: #5a6779;
  --line: #e4e9f1;
  --line-strong: #d3dbe6;
  --blue: #2f5fd0;
  --blue-600: #2851b8;
  --blue-tint: #eaf0fc;
  --gold: #c8890f;
  --gold-bright: #e8a91d;
  --gold-tint: #fbf1d8;
  --shadow-sm: 0 1px 2px rgba(15,32,56,.06), 0 1px 3px rgba(15,32,56,.05);
  --shadow-md: 0 8px 24px rgba(15,32,56,.08), 0 2px 6px rgba(15,32,56,.05);
  --shadow-lg: 0 24px 60px rgba(15,32,56,.14);
  background: #ffffff;
  color: var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-strong); color: #dbe6f5; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; letter-spacing: -.01em; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p { color: var(--ink); }
.lead { font-size: 1.18rem; color: var(--muted); line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-bright); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 15px 28px; border-radius: 10px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  white-space: nowrap; flex-shrink: 0;
}
.btn .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(47,95,208,.28); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(47,95,208,.36); }
.btn-gold { background: var(--gold-bright); color: #2a1c00; box-shadow: 0 10px 24px rgba(232,169,29,.3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(232,169,29,.4); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: .95rem; }
.link-arrow .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-line);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: var(--header-scrolled); border-bottom-color: var(--header-line); box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { height: 38px; width: auto; }
.brand__mark--dark { display: none; }
html[data-theme="dark"] .brand__mark--light { display: none; }
html[data-theme="dark"] .brand__mark--dark { display: block; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.brand__name span { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--font-head); font-weight: 500; font-size: .96rem; color: var(--ink); padding: 10px 16px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--blue); background: var(--blue-tint); }
.nav a.active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--navy); cursor: pointer; transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--bg-elev); border-radius: 10px; cursor: pointer; color: var(--navy); }
.burger .ico { width: 22px; height: 22px; margin: auto; }

/* mobile drawer */
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--bg); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; padding: 28px 24px; gap: 6px; overflow-y: auto; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--navy); padding: 16px 8px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(56px,8vw,110px)) 0 clamp(56px,8vw,110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; background: var(--blue-tint); color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: 8px 15px; border-radius: 999px; margin-bottom: 26px; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); }
.hero h1 { margin: 0 0 30px; font-size: clamp(1.6rem, 4.2vw, 2.6rem); letter-spacing: -.02em; hyphens: none; overflow-wrap: normal; word-break: keep-all; }
.hero__badge { margin-bottom: 22px; }
.hero h1 em { display: block; font-style: normal; color: var(--blue); position: relative; }
.hero__copy { font-size: 1.18rem; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.hero__trust .ico { width: 17px; height: 17px; color: var(--blue); }
/* hero visual: layered standards panel */
.hero__panel { position: relative; }
.panel-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px 30px 62px; }
.panel-card__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.panel-card__top strong { font-family: var(--font-head); color: var(--navy); }
.badge-live { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: #1a8a4a; background: rgba(26,138,74,.1); padding: 5px 11px; border-radius: 999px; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #1fae5b; box-shadow: 0 0 0 0 rgba(31,174,91,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,174,91,.5); } 70% { box-shadow: 0 0 0 8px rgba(31,174,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,174,91,0); } }
.std-row .state { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--gold); font-family: var(--font-head); }
.hero__panel .float-badge { position: absolute; bottom: -40px; left: -22px; background: #2f5fd0; color: #fff; border-radius: var(--radius-sm); padding: 15px 22px; box-shadow: 0 18px 40px rgba(47,95,208,.4); display: flex; align-items: center; gap: 16px; }
.hero__panel .float-badge .num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--gold-bright); line-height: 1; white-space: nowrap; }
.hero__panel .float-badge .cap { font-size: .8rem; color: rgba(255,255,255,.92); line-height: 1.35; white-space: nowrap; }
.std-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.std-row:last-child { border-bottom: 0; }
.std-row .tick { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.std-row .tick .ico { width: 17px; height: 17px; }
.std-row .name { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .98rem; }
.std-row .meta { font-size: .82rem; color: var(--muted); }
.hero__panel .hero__panel .hero__panel 
/* ---------- Logo strip / trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 36px; padding-top: 30px; padding-bottom: 30px; }
.trustbar span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--muted); letter-spacing: .02em; opacity: .8; }
.trustbar .label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--navy); line-height: 1; }
.stat .num .suf { color: var(--gold); }
.stat .lbl { margin-top: 12px; color: var(--muted); font-size: .96rem; }
.section--navy .stat .num { color: #fff; }
.section--navy .stat .lbl { color: #a9b9d2; }

/* ---------- Values / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.pillar .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.pillar .icon .ico { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: .98rem; }

/* ---------- Services (feature grid) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--gold-bright)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .tag { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.svc-card .icon { width: 46px; height: 46px; border-radius: 11px; background: var(--navy-strong); color: var(--gold-bright); display: grid; place-items: center; margin-bottom: 18px; }
.svc-card .icon .ico { width: 24px; height: 24px; }
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.svc-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.svc-card li { display: flex; gap: 10px; font-size: .93rem; color: var(--ink); }
.svc-card li .ico { width: 17px; height: 17px; color: var(--blue); flex: none; margin-top: 3px; }

/* module header */
.module-head { display: flex; align-items: baseline; gap: 16px; margin: 64px 0 28px; }
.module-head .n { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.module-head h2 { font-size: 1.5rem; }
.module-head .rule { flex: 1; height: 1px; background: var(--line); }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--gold-bright)); opacity: .35; }
.step { text-align: center; position: relative; }
.step .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; margin: 0 auto 20px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; position: relative; z-index: 1; }
.step:last-child .dot { border-color: var(--gold-bright); color: var(--gold); }
.step h3 { font-family: var(--font-head); color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Focus topics (feature split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split__text { order: 2; }
.feat-list { display: grid; gap: 18px; margin-top: 26px; }
.feat-list .row { display: flex; gap: 16px; }
.feat-list .row .icon { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.feat-list .row .icon .ico { width: 22px; height: 22px; }
.feat-list .row h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.feat-list .row p { color: var(--muted); font-size: .94rem; }
.media-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--navy-strong); padding: 34px; color: #dbe6f5; }
.media-card .quote { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.4; color: #fff; margin-bottom: 22px; }
.media-card .quote .mk { color: var(--gold-bright); }
.media-card .attr { display: flex; align-items: center; gap: 14px; }
.media-card .attr .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--gold)); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; }
.media-card .attr .who { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: .95rem; }
.media-card .attr .role { font-size: .82rem; color: #a9b9d2; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--navy); }
.faq-q .ico { width: 22px; height: 22px; color: var(--blue); flex: none; transition: transform .3s var(--ease); }
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 4px 24px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-strong); color: #fff; border-radius: 24px; padding: clamp(40px,6vw,72px); text-align: center; }
.cta-band::after { content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(232,169,29,.22), transparent 68%); }
.cta-band::before { content: ""; position: absolute; width: 460px; height: 460px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(47,95,208,.28), transparent 68%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: #b9c7de; max-width: 560px; margin: 0 auto 32px; font-size: 1.12rem; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { border-color: #fff; color: var(--navy); background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-strong); color: #b9c7de; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name span { color: #7f92b0; }
.footer-about p { margin: 20px 0; max-width: 300px; font-size: .95rem; color: #fff; font-style: italic; }
.footer-col h2 { font-family: var(--font-head); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; color: #a9b9d2; font-size: .95rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #cdd8ea; padding: 0; }
.footer-social a:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.footer-social .ico { width: 19px; height: 19px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: .88rem; color: #7f92b0; }
.footer-bottom a { color: #a9b9d2; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: calc(var(--header-h) + 64px) 0 56px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { max-width: 680px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .btn { width: 100%; }
.contact-aside .info-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card .row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-card .row:last-child { border-bottom: 0; }
.info-card .row .icon { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.info-card .row .icon .ico { width: 21px; height: 21px; }
.info-card .row .k { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.info-card .row .v { color: var(--muted); font-size: .95rem; }
.info-card .row a.v:hover { color: var(--blue); }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 240px; background: var(--bg-alt); display: grid; place-items: center; color: var(--muted); font-size: .9rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .split__text { order: 0; }
  .hero__panel { max-width: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .pillars, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: grid; }
  .pillars, .svc-grid, .stats, .process, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trustbar .wrap { justify-content: center; text-align: center; }
  body { font-size: 16px; }
}

/* =====================================================================
   Blog / News — chamfered cards, carousel, filters, article prose
   ===================================================================== */
:root { --chamfer: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); }

/* Chamfered post card (top-left + bottom-right corners cut) */
.post-card { position: relative; height: 100%; clip-path: var(--chamfer); background: var(--line); padding: 1.5px;
  filter: drop-shadow(0 6px 16px rgba(15,32,56,.08));
  transition: transform .35s var(--ease), filter .35s var(--ease), background .35s var(--ease); }
.post-card:hover { transform: translateY(-8px); background: linear-gradient(135deg, var(--blue), var(--gold-bright));
  filter: drop-shadow(0 20px 40px rgba(47,95,208,.34)); }
.post-card__inner { clip-path: var(--chamfer); background: var(--bg-elev); padding: 26px; display: flex; flex-direction: column; height: 100%; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-head);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.post-card__meta .cat { color: var(--blue); font-weight: 600; }
.post-card__meta .date { color: var(--muted); }
.post-badge { align-self: flex-start; background: var(--navy-strong); color: #fff; font-family: var(--font-head);
  font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; margin-bottom: 16px; }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 12px; transition: color .25s var(--ease); }
.post-card:hover h3 { color: var(--blue); }
.post-card__excerpt { color: var(--muted); font-size: .95rem; margin-bottom: 20px; flex: 1; }
.post-card__foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.post-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Avatar auteur : cadre portrait 3:4 (photos 220x296) + ellipse, comme NextGen,
   pour que le visage soit bien cadre (un carre coupait la tete). */
.post-author img.av { width: 36px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center top; border: 1px solid var(--line); flex: none; }
.post-author .who { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .86rem; display: flex; align-items: center; gap: 6px; line-height: 1.2; }
.post-author .flag { width: 16px; height: 12px; border: 1px solid var(--line); border-radius: 2px; }
.post-author .role { color: var(--blue); font-size: .76rem; font-style: italic; }
.post-card__read { color: var(--muted); font-size: .76rem; font-family: var(--font-head); white-space: nowrap; }
.post-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: .92rem; margin-top: auto; }
.post-more .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.post-card:hover .post-more .ico { transform: translateX(5px); }

/* Carousel */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg-elev); color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: all .2s var(--ease); }
.carousel-nav button:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.carousel-nav .ico { width: 22px; height: 22px; }
.carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.carousel-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg-elev); color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: all .2s var(--ease); flex: none; }
.carousel-arrow:hover { border-color: var(--blue); color: var(--blue); box-shadow: 0 8px 20px rgba(47,95,208,.22); }
.carousel-arrow .ico { width: 22px; height: 22px; }
@media (max-width: 560px) { .carousel { gap: 4px; } .carousel-arrow { width: 40px; height: 40px; } }
.post-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 82vw, 360px); gap: 24px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 30px 6px 40px; }
.post-track > * { scroll-snap-align: start; }
.post-track::-webkit-scrollbar { height: 6px; }
.post-track::-webkit-scrollbar:vertical { width: 0; height: 0; display: none; }
.post-track::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 999px; }
.post-track::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
@media (min-width: 1001px) { .post-track { grid-auto-columns: calc((100% - 48px) / 3); } }

/* Blog filters + grid */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.blog-filters button { font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg-elev); color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.blog-filters button:hover { border-color: var(--blue); color: var(--blue); }
.blog-filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.blog-filters .cnt { opacity: .65; margin-left: 6px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-empty { text-align: center; color: var(--muted); padding: 40px; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .blog-grid { grid-template-columns: 1fr; } }

/* Article */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: calc(var(--header-h) + 56px) 0 44px; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 8px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.article-meta .post-author .who { color: var(--navy); }
.article-meta .sep { color: var(--muted); font-size: .9rem; }
.blog-content { font-size: 1.08rem; line-height: 1.8; color: var(--ink); padding: 48px 0 8px; }
.blog-content > *:first-child { margin-top: 0; }
.blog-content h2 { font-size: 1.65rem; margin: 46px 0 16px; }
.blog-content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.blog-content p { margin-bottom: 20px; }
.blog-content ul, .blog-content ol { margin: 0 0 22px 1.3em; }
.blog-content li { margin-bottom: 9px; }
.blog-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.blog-content strong { font-weight: 700; }
html[data-theme="dark"] .blog-content strong { color: var(--blue); }
.blog-content blockquote { border-left: 3px solid var(--gold-bright); padding: 10px 22px; margin: 26px 0; color: var(--muted); font-style: italic; background: var(--bg-alt); border-radius: 0 10px 10px 0; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .96rem; display: block; overflow-x: auto; }
.blog-content th, .blog-content td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.blog-content th { background: var(--bg-alt); font-family: var(--font-head); color: var(--navy); }
.blog-content code { background: var(--bg-alt); padding: 2px 7px; border-radius: 6px; font-size: .9em; font-family: "JetBrains Mono", monospace; }
.blog-content sup { font-size: .7em; line-height: 0; }
.blog-content sup a, .blog-content .blog-ref-num { color: var(--blue); text-decoration: none; }
.blog-content .blog-cite { color: var(--muted); font-style: italic; }
.blog-content h2#quellen ~ p, .blog-content ol.blog-refs { font-size: .92rem; color: var(--muted); }
.article-cta { margin-top: 48px; }

/* =====================================================================
   Mega-menu (Leistungen) + Service detail pages
   ===================================================================== */
:root { --chamfer-lg: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-mega-trigger { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-mega-trigger .chev { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav-item:hover .nav-mega-trigger .chev, .nav-item:focus-within .nav-mega-trigger .chev { transform: rotate(180deg); }
.mega { position: absolute; top: 100%; left: 50%; width: min(880px, 94vw); padding-top: 16px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 200; pointer-events: none; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega__inner { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; }
.mega__col { display: flex; flex-direction: column; }
.mega__head { font-family: var(--font-head); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 4px 10px 8px; }
.mega__inner a { display: flex !important; gap: 11px; align-items: flex-start; padding: 9px 10px !important; border-radius: 10px; background: none; }
.mega__inner a:hover { background: var(--blue-tint); }
.mega__ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--navy-strong); color: var(--gold-bright); display: grid; place-items: center; }
.mega__ic .ico { width: 18px; height: 18px; }
.mega__txt b { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); line-height: 1.25; }
.mega__txt small { color: var(--muted); font-size: .76rem; }
.mega__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.mega__all a { color: var(--blue) !important; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.mega__all a .ico { width: 16px; height: 16px; margin-left: 2px; }

/* mobile sub-list for services */
.mobile-sub { display: flex; flex-direction: column; padding: 2px 0 10px 16px; margin-top: -2px; border-left: 2px solid var(--line); }
.mobile-nav .mobile-sub a { font-family: var(--font-body) !important; font-weight: 500; font-size: 1rem !important; color: var(--muted); padding: 11px 8px !important; border-bottom: 0 !important; }
.mobile-nav .mobile-sub a:hover { color: var(--blue); }

/* Service detail page */
.svc-hero { position: relative; background: var(--navy-strong); color: #fff; padding: calc(var(--header-h) + 60px) 0 110px; overflow: hidden; }
.svc-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 15%, rgba(47,95,208,.30), transparent 58%), radial-gradient(circle at 10% 90%, rgba(232,169,29,.14), transparent 55%); }
.svc-hero .wrap { position: relative; z-index: 1; }
.svc-hero .breadcrumb a, .svc-hero .breadcrumb span { color: #aebdd4; }
.svc-hero .breadcrumb a:hover { color: #fff; }
.svc-hero .eyebrow { color: var(--gold-bright); }
.svc-hero h1 { color: #fff; margin: 14px 0 16px; }
.svc-hero .lead { color: #c6d3e8; max-width: 720px; }
.svc-body { padding: 0 0 84px; }
.svc-panel { position: relative; margin-top: -70px; background: var(--bg-elev); clip-path: var(--chamfer-lg);
  padding: clamp(30px, 5vw, 58px); filter: drop-shadow(0 26px 55px rgba(10,18,34,.22)); }
.svc-panel::before { content: ""; position: absolute; inset: 0; clip-path: var(--chamfer-lg); border: 1px solid var(--line); pointer-events: none; }
.svc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.svc-ic { width: 62px; height: 62px; border-radius: 15px; background: var(--navy-strong); color: var(--gold-bright); display: grid; place-items: center; flex: none; }
.svc-ic .ico { width: 30px; height: 30px; }
.svc-head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 48px; align-items: start; }
.svc-col > p { margin-bottom: 18px; }
.svc-col h3 { margin: 10px 0 14px; font-size: 1.2rem; }
.svc-col h3:first-child { margin-top: 0; }
.svc-list { list-style: none; display: grid; gap: 12px; }
.svc-list li { display: flex; gap: 11px; font-size: 1rem; color: var(--ink); }
.svc-list li .ico { width: 19px; height: 19px; color: var(--blue); flex: none; margin-top: 3px; }
.nutzen { margin-top: 0; background: var(--gold-tint); border: 1px solid var(--gold-bright); border-radius: 14px; padding: 24px 26px; }
.nutzen h3 { color: var(--gold); margin-top: 0; }
.nutzen .svc-list li .ico { color: var(--gold); }
.svc-panel .btn { margin-top: 40px; }
@media (max-width: 900px) {
  .svc-cols { grid-template-columns: 1fr; gap: 30px; }
  .svc-panel { margin-top: -50px; }
  .cell-intro { order: 1; } .cell-vorgehen { order: 2; } .cell-leistung { order: 3; } .cell-nutzen { order: 4; }
}
@media (max-width: 1000px) { .mega { display: none; } }

/* Trust card (contact) — icon left, title+text right, height = icon height */
.trust-card { display: flex; align-items: center; gap: 22px; background: var(--navy-strong); border-radius: var(--radius); padding: 18px 24px; }
.trust-card__img { width: 92px; height: 92px; flex: none; }
.trust-card__body { min-width: 0; }
.trust-card__title { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; line-height: 1.25; margin-bottom: 8px; }
.trust-card__text { color: #a9b9d2; font-size: .94rem; margin: 0; line-height: 1.55; }

/* Marquee band (standards) */
.marquee { background: #5f84e6; overflow: hidden; border: 0; }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .05em; color: #fff; padding: 17px 0; white-space: nowrap; }
.marquee__sep { color: var(--gold-bright); margin: 0 34px; font-size: .7rem; line-height: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* Ablauf page — vertical timeline */
.timeline-v { max-width: 820px; margin: 0 auto; }
.tl-step { position: relative; padding-left: 92px; padding-bottom: 44px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 30px; top: 66px; bottom: -2px; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-num { position: absolute; left: 0; top: 0; width: 62px; height: 62px; border-radius: 50%; background: var(--bg-elev); color: var(--gold-bright); border: 2px solid var(--gold-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-bright) 12%, transparent); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; z-index: 1; }
.tl-step .tag { color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.tl-step h2 { font-size: 1.5rem; margin: 4px 0 0; }
.tl-step .tl-lead { color: var(--muted); margin: 12px 0 18px; }
.tl-step .svc-list { margin-bottom: 18px; }
.tl-ergebnis { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-tint); border: 1px solid var(--gold-bright); border-radius: 12px; padding: 14px 18px; font-size: .96rem; color: var(--ink); }
.tl-ergebnis .ico { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 2px; }
.tl-ergebnis b { color: var(--gold); font-family: var(--font-head); }
@media (max-width: 620px) {
  .tl-step { padding-left: 66px; }
  .tl-num { width: 48px; height: 48px; font-size: 1.2rem; }
  .tl-step::before { left: 23px; top: 54px; }
}

/* Values grid (icon + title + punch + text, centered) */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 44px; }
.vcell { text-align: center; }
.vcell .vicon { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 16px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.vcell .vicon .ico { width: 32px; height: 32px; }
.vcell h3 { font-size: 1.18rem; margin-bottom: 10px; }
.vcell .punch { display: block; color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: .98rem; margin-bottom: 12px; }
.vcell p { color: var(--muted); font-size: .96rem; line-height: 1.6; max-width: 340px; margin: 0 auto; }
@media (max-width: 900px) { .vgrid { grid-template-columns: repeat(2, 1fr); gap: 44px 32px; } }
@media (max-width: 600px) { .vgrid { grid-template-columns: 1fr; } }

/* Leistungen split — summary card (left) + theme descriptions (right) */
.lst-split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: stretch; }
.lst-card { display: flex; flex-direction: column; }
.lst-card__eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lst-card h3 { font-size: 1.7rem; margin: 8px 0 4px; }
.lst-themes { list-style: none; display: grid; gap: 18px; margin: 26px 0; }
.lst-themes li { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.22rem; }
.lst-themes li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); flex: none; }
.lst-card .post-more { margin-top: auto; }
/* gold border on the summary card */
.lst-outer { background: var(--gold-bright); padding: 2px; }
.lst-outer:hover { background: var(--gold-bright); filter: drop-shadow(0 18px 36px rgba(232,169,29,.32)); }
.lst-desc { display: grid; gap: 26px; align-content: center; }
.lst-item h4 { font-family: var(--font-head); color: var(--navy); font-size: 1.18rem; margin-bottom: 7px; }
.lst-item h4 span { color: var(--blue); }
.lst-item p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 900px) { .lst-split { grid-template-columns: 1fr; gap: 30px; } .lst-desc { align-content: start; } }

/* Dark mode: make CTA band stand out from the near-black section */
html[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #17233d, #0e1626); border: 1px solid rgba(120,150,220,.22); }

/* Contact form file-attachment hint */
.field-hint { display: block; margin-top: 7px; color: var(--muted); font-size: .8rem; }

/* Liste de pieces jointes personnalisee (#attachments) */
.fa-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fa-wrap { display: block; }
.fa-add { display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif; font-weight: 600; font-size: .95rem;
  color: var(--text); background: var(--panel-2, rgba(255,255,255,.03));
  border: 1.5px dashed var(--header-line, rgba(120,150,220,.28)); border-radius: 12px;
  padding: 13px 20px; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.fa-add:hover:not(:disabled) { border-color: var(--gold-bright); color: var(--gold-bright); }
.fa-add:disabled { opacity: .45; cursor: not-allowed; }
.fa-add svg { width: 19px; height: 19px; }
.fa-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fa-item { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 12px;
  background: var(--panel-2, rgba(255,255,255,.03)); border: 1px solid var(--header-line, rgba(120,150,220,.16)); }
.fa-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: rgba(47,95,208,.16); color: var(--blue, #6f8fe6); }
.fa-icon svg { width: 19px; height: 19px; }
.fa-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fa-name { font-weight: 600; font-size: .93rem; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-size { font-size: .78rem; color: var(--muted); }
.fa-remove { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer;
  color: var(--muted); background: transparent; border: none; border-radius: 8px;
  transition: color .18s ease, background .18s ease; }
.fa-remove:hover { color: #ff9b9b; background: rgba(255,120,120,.12); }
.fa-remove svg { width: 17px; height: 17px; }
.fa-error { margin: 10px 0 0; color: #ff9b9b; font-size: .84rem; }

/* Sélecteur de langue circulaire (header) */
.lang-switch { position: relative; }
.lang-switch__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-elev); cursor: pointer; padding: 0; overflow: hidden; display: grid; place-items: center;
  transition: border-color .18s ease, box-shadow .18s ease; }
.lang-switch__btn:hover, .lang-switch.is-open .lang-switch__btn {
  border-color: var(--gold-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-bright) 14%, transparent); }
.lang-switch__flag { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.lang-switch__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,.45); z-index: 300; }
.lang-switch__item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: var(--navy); text-decoration: none; font-family: "Inter","Segoe UI",system-ui,sans-serif; font-size: .92rem; }
a.lang-switch__item { transition: background .16s ease; }
a.lang-switch__item:hover { background: color-mix(in srgb, var(--blue) 16%, transparent); }
.lang-switch__mflag { width: 22px; height: 16px; flex: none; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.lang-switch__name { flex: 1; }
.lang-switch__item.is-active { color: var(--gold-bright); cursor: default; font-weight: 600; }
.lang-switch__check { width: 16px; height: 16px; margin-left: auto; color: var(--gold-bright); }

/* Accessibilité : focus clavier visible (anneau doré) sur tous les éléments interactifs */
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
