/* ============================================================
   Cabinet Serevia — Fiduciaire & Conseil PME · Luxembourg
   GridCore demo · Standard Premium · light institutionnel
   ------------------------------------------------------------
   Palette : ivoire chaud + navy profond + champagne AA-safe
   Typo    : Source Serif 4 (titres) + IBM Plex Sans (corps)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces claires */
  --bg:          #F7F5EF;   /* ivoire chaud, papier */
  --bg-2:        #EFECE3;   /* section alternée */
  --surface:     #FFFFFF;   /* cartes */
  --surface-2:   #FBF9F4;   /* carte douce */

  /* surfaces navy */
  --navy:        #14233A;   /* sections sombres + dashboard */
  --navy-2:      #1B2D47;   /* surface élevée sur navy */
  --navy-3:      #233755;   /* lignes / pastilles sur navy */

  /* encre */
  --ink:         #232E3C;   /* texte courant */
  --ink-soft:    #56616F;   /* secondaire (≥4.5:1) */
  --ink-faint:   #828C99;   /* tertiaire (≥3:1) */
  --line:        rgba(20, 35, 58, .12);
  --line-strong: rgba(20, 35, 58, .20);

  /* accent champagne */
  --accent:      #B5935C;   /* décoratif : titres, filets, icônes, chiffres */
  --accent-ink:  #876534;   /* petit texte / eyebrows / liens (≥4.5:1) */
  --accent-soft: #D8BD8A;   /* texte sur navy */
  --accent-wash: rgba(181, 147, 92, .12);

  /* sur navy */
  --on-navy:        #E7EBF1;
  --on-navy-soft:   rgba(231, 235, 241, .72);
  --on-navy-faint:  rgba(231, 235, 241, .50);
  --navy-line:      rgba(231, 235, 241, .14);
  --navy-line-2:    rgba(231, 235, 241, .22);

  /* états documents */
  --st-recu:     #2F7D62;   --st-recu-bg:     rgba(47, 125, 98, .14);
  --st-manquant: #B25444;   --st-manquant-bg: rgba(178, 84, 68, .14);
  --st-verifier: #9A7430;   --st-verifier-bg: rgba(154, 116, 48, .15);
  --st-encours:  #3C6E8F;   --st-encours-bg:  rgba(60, 110, 143, .14);

  /* type & layout */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow:    0 24px 60px -34px rgba(20, 35, 58, .28);
  --shadow-sm: 0 12px 30px -18px rgba(20, 35, 58, .26);
  --shadow-navy: 0 40px 90px -44px rgba(0, 0, 0, .55);
  --demobar-h: 40px;
  color-scheme: light;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

:focus-visible {
  outline: 2.5px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink);
  overflow-wrap: break-word;
}
/* coupure des mots longs (allemand surtout) — n'agit que si un mot dépasse */
p, li, a, span, .cs-chip, .cs-btn { overflow-wrap: break-word; }
/* allemand : mots composés très longs → césure + coupure intrinsèque (réduit le min-content,
   donc plus de débordement des cartes/grilles). Limité à :lang(de), FR/EN/PT intacts. */
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) h4 { hyphens: auto; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) h4,
:lang(de) p, :lang(de) li, :lang(de) span, :lang(de) a:not(.cs-btn) { overflow-wrap: anywhere; }

::selection { background: var(--accent-wash); color: var(--ink); }

/* ---------- 3. Primitives ---------- */
.cs-wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

.cs-section {
  padding-block: clamp(64px, 9vw, 116px);
  position: relative;
}
[id] { scroll-margin-top: calc(var(--demobar-h) + 76px); }
.cs-section--tight { padding-block: clamp(48px, 6vw, 80px); }
.cs-section--alt { background: var(--bg-2); }

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.cs-eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.cs-eyebrow--center { justify-content: center; }

.cs-head {
  max-width: 52ch;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}
.cs-head--center { margin-inline: auto; text-align: center; }
.cs-head h2 {
  font-size: clamp(29px, 4.2vw, 47px);
  margin-top: 18px;
}
.cs-head p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 56ch;
}
.cs-head--center p { margin-inline: auto; }

/* saut de ligne forcé (desktop) — masqué en mobile, le titre revient au flux naturel */
.brk { display: none; }
@media (min-width: 760px) { .brk { display: inline; } }
/* le titre services tient en 2 lignes : le bloc .cs-head (52ch ≈ 442px) est trop étroit pour le H2 */
#services .cs-head { max-width: 780px; }
#services .cs-head p { max-width: 56ch; }

/* ---------- 4. Buttons ---------- */
.cs-btn {
  --btn-fg: var(--on-navy);
  --btn-bg: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.cs-btn svg { width: 18px; height: 18px; flex: none; }
.cs-btn--primary { box-shadow: 0 14px 28px -16px rgba(20, 35, 58, .6); }
.cs-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(20, 35, 58, .7); }
.cs-btn--primary:active { transform: translateY(0); }

.cs-btn--accent {
  --btn-bg: linear-gradient(135deg, #C5A468, var(--accent));
  --btn-fg: #2A1F0C;
  box-shadow: 0 14px 28px -16px rgba(181, 147, 92, .7);
}
.cs-btn--accent:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(181, 147, 92, .8); }

.cs-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.cs-btn--ghost:hover { border-color: var(--navy); background: var(--surface); transform: translateY(-2px); }

.cs-btn--lg { min-height: 56px; padding: 0 30px; font-size: 16.5px; }

/* sur fond navy : ghost clair */
.cs-on-navy .cs-btn--ghost { --btn-fg: var(--on-navy); border-color: var(--navy-line-2); }
.cs-on-navy .cs-btn--ghost:hover { background: var(--navy-2); border-color: var(--accent-soft); }

.cs-textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-ink);
  transition: gap .2s var(--ease);
}
.cs-textlink svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.cs-textlink:hover { gap: 11px; }

/* ---------- 5. Demo bar ---------- */
.gc-demobar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  height: var(--demobar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  padding: 0 16px;
  background: linear-gradient(90deg, #0F1B2E 0%, #1B2D47 50%, #0F1B2E 100%);
  border-bottom: 1px solid rgba(181, 147, 92, .35);
  font-size: 12.5px;
  color: var(--on-navy-soft);
  white-space: nowrap;
  overflow: hidden;
}
.gc-demobar__txt { overflow: hidden; text-overflow: ellipsis; }
.gc-demobar__txt strong { color: var(--accent-soft); font-weight: 600; }
.gc-demobar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #C5A468, var(--accent));
  color: #2A1F0C;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.gc-demobar__cta svg { width: 13px; height: 13px; }
.gc-demobar__cta:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(181, 147, 92, .5); }
@media (max-width: 560px) { .gc-demobar__txt { font-size: 11.5px; } }
@media (max-width: 430px) { .gc-demobar__txt { white-space: normal; line-height: 1.25; font-size: 11px; } }

/* ---------- 6. Header ---------- */
.cs-header {
  position: fixed;
  inset: var(--demobar-h) 0 auto 0;
  z-index: 200;
  padding: 16px 0;
  transition: padding .35s var(--ease), background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.cs-header.is-stuck {
  background: rgba(247, 245, 239, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(20, 35, 58, .4);
  padding: 10px 0;
}
.cs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cs-logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cs-logo__mark { width: 38px; height: 38px; flex: none; }
.cs-logo__txt b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .005em;
  color: var(--ink);
  line-height: 1.05;
}
.cs-logo__txt span {
  display: block;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

.cs-navlinks {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(16px, 1.7vw, 26px);
  list-style: none;
  white-space: nowrap;
}
.cs-navlinks a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .2s;
}
.cs-navlinks a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.cs-navlinks a:hover { color: var(--ink); }
.cs-navlinks a:hover::after { width: 100%; }

.cs-nav-end { display: flex; align-items: center; gap: 14px; }

/* sélecteur de langue */
.cs-lang { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-2); border-radius: 100px; }
.cs-lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 30px; padding: 0 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-faint); border-radius: 100px; transition: color .2s, background .2s;
}
.cs-lang a:hover { color: var(--ink); }
.cs-lang a[aria-current="page"] { background: var(--navy); color: var(--on-navy); }

.cs-burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.cs-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.cs-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cs-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cs-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* drawer mobile */
.cs-scrim {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(20, 35, 58, .45);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.cs-scrim.is-open { opacity: 1; visibility: visible; }
.cs-mobile {
  position: fixed; inset: 0 0 0 auto; z-index: 160;
  width: min(86vw, 360px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -40px rgba(20, 35, 58, .5);
  transform: translateX(100%);
  transition: transform .42s var(--ease);
  padding: calc(var(--demobar-h) + 78px) 28px 36px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.cs-mobile.is-open { transform: translateX(0); }
.cs-mobile a:not(.cs-btn) {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.cs-mobile .cs-btn { margin-top: 20px; }
.cs-mobile__lang { display: flex; gap: 6px; margin-bottom: 18px; }
.cs-mobile__lang a {
  flex: 1; text-align: center; font-family: var(--sans);
  font-size: 13px; font-weight: 600; letter-spacing: .05em;
  padding: 10px 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft);
}
.cs-mobile__lang a[aria-current="page"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }

/* ---------- 7. Hero ---------- */
.cs-hero {
  position: relative;
  padding-top: calc(var(--demobar-h) + clamp(88px, 12.5vw, 134px));
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.cs-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 50% at 88% 8%, var(--accent-wash), transparent 70%),
    radial-gradient(46% 42% at 4% 92%, rgba(60, 110, 143, .10), transparent 70%);
}
.cs-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 4.6vw, 64px);
  align-items: center;
}
.cs-hero h1 {
  font-size: clamp(35px, 5.45vw, 59px);
  line-height: 1.07;
  margin-top: 20px;
  max-width: 16ch;
}
.cs-hero h1 em { font-style: italic; font-weight: 500; color: var(--accent-ink); white-space: nowrap; }
.cs-hero__lead {
  margin-top: 20px;
  font-size: clamp(16.5px, 1.7vw, 19px);
  color: var(--ink-soft);
  max-width: 50ch;
}
.cs-hero__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; }
.cs-hero__chips {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 11px 10px;
}
.cs-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 16px 9px 13px;
}
.cs-chip svg { width: 16px; height: 16px; color: var(--accent-ink); flex: none; }

/* visuel hero */
.cs-hero__visual { position: relative; }
.cs-hero__card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  box-shadow: 0 32px 74px -32px rgba(20, 35, 58, .42);
}
.cs-hero__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.045) saturate(1.03); }
.cs-hero__card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 35, 58, .42), transparent 46%),
              linear-gradient(150deg, rgba(181, 147, 92, .14), transparent 38%);
}
.cs-hero__float {
  position: absolute;
  left: -18px; bottom: 26px;
  z-index: 2;
  background: rgba(247, 245, 239, .94);
  backdrop-filter: blur(9px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -22px rgba(20, 35, 58, .5);
  padding: 15px 19px;
  display: flex; align-items: center; gap: 14px;
  max-width: 78%;
}
.cs-hero__float-ic {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.cs-hero__float-ic svg { width: 22px; height: 22px; }
.cs-hero__float b { display: block; font-family: var(--serif); font-size: 16.5px; color: var(--ink); line-height: 1.15; }
.cs-hero__float span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- 8. Trust band ---------- */
.cs-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.cs-trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 28px) clamp(18px, 2vw, 24px);
  display: flex; flex-direction: column; gap: 13px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.cs-trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.cs-trust-card__ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent-ink);
  background: var(--accent-wash);
}
.cs-trust-card__ic svg { width: 23px; height: 23px; }
.cs-trust-card h3 { font-size: 17.5px; font-weight: 600; }
.cs-trust-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- 9. Services ---------- */
.cs-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}
.cs-service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 2.9vw, 38px);
  overflow: hidden;
  box-shadow: 0 14px 30px -26px rgba(20, 35, 58, .22);
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
}
.cs-service::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width .35s var(--ease);
}
.cs-service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.cs-service:hover::before { width: 100%; }
.cs-service__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cs-service__ic {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--accent-soft);
}
.cs-service__ic svg { width: 27px; height: 27px; }
.cs-service__num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.cs-service h3 { font-size: 22px; margin-bottom: 10px; }
.cs-service p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- 10. Audience (Pour qui ?) ---------- */
.cs-aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 1.6vw, 18px);
}
.cs-aud-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 30px);
  min-height: 192px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 10px 26px -24px rgba(20, 35, 58, .2);
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.cs-aud-card:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); }
.cs-aud-card__ic {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.cs-aud-card__ic svg { width: 24px; height: 24px; }
.cs-aud-card h3 { font-size: 19px; font-weight: 600; line-height: 1.22; }
.cs-aud-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.cs-aud-note {
  margin-top: clamp(28px, 3vw, 40px);
  text-align: center;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  max-width: 60ch; margin-inline: auto;
}

/* ---------- 11. Process ---------- */
.cs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
  counter-reset: step;
}
.cs-step {
  position: relative;
  padding-top: 28px;
}
.cs-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 600;
  color: var(--accent);
  opacity: .9;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.cs-step::after {
  content: "";
  position: absolute; top: 36px; left: 0; width: 46px; height: 2px;
  background: var(--line-strong);
}
.cs-step h3 { font-size: 20px; margin-bottom: 9px; }
.cs-step p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- 12. Espace documents (dashboard) — élément distinctif ---------- */
.cs-espace { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.cs-espace::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 50% at 92% 0%, rgba(181, 147, 92, .14), transparent 70%),
    radial-gradient(40% 44% at 0% 100%, rgba(60, 110, 143, .16), transparent 70%);
}
.cs-espace .cs-wrap { position: relative; z-index: 1; }
.cs-espace .cs-eyebrow { color: var(--accent-soft); }
.cs-espace .cs-eyebrow::before { background: var(--accent-soft); }
.cs-espace h2 { color: var(--on-navy); }
.cs-espace__intro { max-width: 56ch; margin-bottom: clamp(34px, 4vw, 52px); }
.cs-espace__intro p { color: var(--on-navy-soft); margin-top: 18px; font-size: clamp(16px, 1.5vw, 18px); }

.cs-panel {
  background: linear-gradient(180deg, var(--navy-2), #16263E);
  border: 1px solid var(--navy-line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-navy);
  overflow: hidden;
}
.cs-panel__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, .02);
}
.cs-panel__dots { display: flex; gap: 7px; }
.cs-panel__dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--navy-3); }
.cs-panel__title {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: .03em; color: var(--on-navy-soft);
  display: inline-flex; align-items: center; gap: 9px;
}
.cs-panel__title svg { width: 16px; height: 16px; color: var(--accent-soft); }
.cs-panel__tag {
  margin-left: auto;
  font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
  color: var(--accent-soft);
  border: 1px solid var(--navy-line-2);
  border-radius: 100px; padding: 4px 11px;
  font-variant-numeric: tabular-nums;
}
.cs-panel__body {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0;
}
.cs-doclist { padding: 10px 0; border-right: 1px solid var(--navy-line); }
.cs-doclist__head {
  display: grid; grid-template-columns: 1fr auto;
  padding: 10px 22px; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-navy-faint);
}
.cs-docrow {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 14px;
  padding: 13px 22px;
  border-top: 1px solid var(--navy-line);
  transition: background .2s;
}
.cs-docrow:hover { background: rgba(255, 255, 255, .025); }
.cs-docrow__name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cs-docrow__name svg { width: 18px; height: 18px; color: var(--on-navy-faint); flex: none; }
.cs-docrow__name b { font-weight: 500; font-size: 14.5px; color: var(--on-navy); }
.cs-docrow__name small { display: block; font-size: 12.5px; color: var(--on-navy-faint); font-variant-numeric: tabular-nums; }

.cs-state {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px 5px 9px; border-radius: 100px;
  white-space: nowrap;
}
.cs-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cs-state--recu     { color: #7BD3B4; background: var(--st-recu-bg); }
.cs-state--manquant { color: #E59A8E; background: var(--st-manquant-bg); }
.cs-state--verifier { color: #DEBE7C; background: var(--st-verifier-bg); }
.cs-state--encours  { color: #8FC0DC; background: var(--st-encours-bg); }

.cs-echeances { padding: 18px 22px; }
.cs-echeances__t {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-navy-faint); margin-bottom: 16px;
}
.cs-eline {
  display: flex; align-items: flex-start; gap: 13px;
  padding-bottom: 18px; position: relative;
}
.cs-eline:not(:last-child)::before {
  content: ""; position: absolute; left: 6px; top: 18px; bottom: -2px; width: 1.5px;
  background: var(--navy-line-2);
}
.cs-eline__dot {
  width: 13px; height: 13px; border-radius: 50%; flex: none; margin-top: 3px;
  border: 2px solid var(--navy-2);
}
.cs-eline__dot--a { background: var(--st-verifier); }
.cs-eline__dot--b { background: var(--st-encours); }
.cs-eline__dot--c { background: var(--navy-3); }
.cs-eline > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cs-eline__d { display: block; font-size: 12.5px; color: var(--accent-soft); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .03em; }
.cs-eline__l { display: block; font-size: 14px; color: var(--on-navy); margin-top: 2px; }
.cs-eline__s { display: block; font-size: 12.5px; color: var(--on-navy-faint); margin-top: 1px; }

.cs-espace__legend {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 26px;
}
.cs-espace__legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--on-navy-soft); }
.cs-espace__legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- 13. Documents à préparer ---------- */
.cs-docprep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 30px);
}
.cs-docprep {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 2.8vw, 38px);
}
.cs-docprep__h {
  display: flex; align-items: center; gap: 13px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.cs-docprep__h-ic {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--accent-wash); color: var(--accent-ink);
}
.cs-docprep__h-ic svg { width: 23px; height: 23px; }
.cs-docprep__h h3 { font-size: 20px; }
.cs-docprep__h span { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.cs-docprep ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cs-docprep li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink); line-height: 1.5; }
.cs-docprep li svg { width: 19px; height: 19px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.cs-docprep li span { color: var(--ink-soft); }
.cs-docprep-note {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 11px;
  margin-top: 4px;
  font-size: 14px; color: var(--ink-soft);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 20px;
}
.cs-docprep-note svg { width: 19px; height: 19px; color: var(--accent-ink); flex: none; }

/* ---------- 14. Rendez-vous ---------- */
.cs-rdv-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.cs-rdv__aside h2 { font-size: clamp(28px, 3.6vw, 42px); margin-top: 18px; }
.cs-rdv__aside p { margin-top: 18px; color: var(--ink-soft); font-size: 16.5px; max-width: 42ch; }
.cs-rdv__points { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 15px; }
.cs-rdv__points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.cs-rdv__points svg { width: 22px; height: 22px; color: var(--accent-ink); flex: none; }

.cs-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 40px);
}
.cs-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cs-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cs-field label .req { color: var(--st-manquant); }
.cs-field input, .cs-field select, .cs-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cs-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.cs-field input::placeholder, .cs-field textarea::placeholder { color: var(--ink-faint); }
.cs-field input:focus, .cs-field select:focus, .cs-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.cs-field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356616F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}

/* champ upload fictif */
.cs-upload {
  display: flex; align-items: center; gap: 13px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.cs-upload:hover { border-color: var(--accent); background: var(--accent-wash); }
.cs-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cs-upload__ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--bg-2); color: var(--accent-ink); }
.cs-upload__ic svg { width: 20px; height: 20px; }
.cs-upload__txt b { display: block; font-size: 14.5px; font-weight: 600; }
.cs-upload__txt span { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }

.cs-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.cs-form__foot .cs-btn { flex: none; }
.cs-form__micro { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.cs-form__micro svg { width: 16px; height: 16px; color: var(--accent-ink); flex: none; }

.cs-form__done {
  display: none;
  flex-direction: column; align-items: center; text-align: center;
  padding: clamp(20px, 4vw, 48px) 8px;
}
.cs-form__done.is-shown { display: flex; }
.cs-form__done-ic {
  width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 50%; background: var(--st-recu-bg); color: var(--st-recu);
  margin-bottom: 20px;
}
.cs-form__done-ic svg { width: 32px; height: 32px; }
.cs-form__done h3 { font-size: 24px; margin-bottom: 10px; }
.cs-form__done p { color: var(--ink-soft); font-size: 15.5px; max-width: 40ch; }
.cs-form__done-tag {
  margin-top: 18px; font-size: 12.5px; color: var(--ink-faint);
  background: var(--bg-2); border-radius: 100px; padding: 7px 16px;
}

/* ---------- 15. FAQ ---------- */
.cs-faq-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cs-faq__list { border-top: 1px solid var(--line); }
.cs-faq__item { border-bottom: 1px solid var(--line); transition: background .25s var(--ease), box-shadow .25s; }
.cs-faq__item.is-open {
  background: var(--surface-2);
  border-bottom-color: transparent;
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--accent);
}
.cs-faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  text-align: left;
  padding: 24px 14px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}
.cs-faq__q:hover { color: var(--accent-ink); }
.cs-faq__q-ic {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  position: relative; transition: background .25s, border-color .25s;
}
.cs-faq__q-ic::before, .cs-faq__q-ic::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .3s var(--ease), background .25s;
}
.cs-faq__q-ic::before { width: 12px; height: 2px; }
.cs-faq__q-ic::after { width: 2px; height: 12px; }
.cs-faq__item.is-open .cs-faq__q-ic { background: var(--navy); border-color: var(--navy); }
.cs-faq__item.is-open .cs-faq__q-ic::before,
.cs-faq__item.is-open .cs-faq__q-ic::after { background: var(--on-navy); }
.cs-faq__item.is-open .cs-faq__q-ic::after { transform: rotate(90deg); }
.cs-faq__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.cs-faq__a p { padding: 0 14px 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.62; max-width: 64ch; }

/* ---------- 16. CTA final ---------- */
.cs-cta { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.cs-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 85% 10%, rgba(181, 147, 92, .18), transparent 70%),
    radial-gradient(36% 50% at 8% 95%, rgba(60, 110, 143, .16), transparent 70%);
}
.cs-cta .cs-wrap { position: relative; z-index: 1; text-align: center; }
.cs-cta .cs-eyebrow { color: var(--accent-soft); justify-content: center; }
.cs-cta .cs-eyebrow::before { background: var(--accent-soft); }
.cs-cta h2 { color: var(--on-navy); font-size: clamp(28px, 4vw, 46px); margin-top: 18px; max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.cs-cta p { color: var(--on-navy-soft); margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; margin-inline: auto; }
.cs-cta__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 17. Footer ---------- */
.cs-footer { background: #101D31; color: var(--on-navy); padding-top: clamp(56px, 7vw, 84px); }
.cs-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.cs-footer__about .cs-logo__txt b { color: var(--on-navy); }
.cs-footer__about .cs-logo__txt span { color: var(--on-navy-faint); }
.cs-footer__about p { color: var(--on-navy-soft); font-size: 14.5px; margin: 18px 0 22px; max-width: 36ch; line-height: 1.6; }
.cs-footer__contact { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cs-footer__contact li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--on-navy-soft); }
.cs-footer__contact svg { width: 17px; height: 17px; color: var(--accent-soft); flex: none; }
.cs-footer__contact a:hover { color: var(--on-navy); }
.cs-footer__col h4 {
  font-family: var(--sans);
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 18px;
}
.cs-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cs-footer__col a { font-size: 14.5px; color: var(--on-navy-soft); transition: color .2s; }
.cs-footer__col a:hover { color: var(--on-navy); }

.gc-footer__sign {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  justify-content: space-between; align-items: center;
  padding: 22px 0 30px;
  margin-top: 8px;
  border-top: 1px solid var(--navy-line);
  font-size: 12.5px;
  color: var(--on-navy-faint);
  letter-spacing: .01em;
}
.gc-footer__sign a { color: var(--accent-soft); }
.gc-footer__sign a:hover { color: var(--on-navy); }

/* ---------- 18. Reveal ---------- */
.gc-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.gc-reveal.is-in { opacity: 1; transform: none; }
.gc-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.gc-stagger.is-in > * { opacity: 1; transform: none; }
.gc-stagger.is-in > *:nth-child(2) { transition-delay: .07s; }
.gc-stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
.gc-stagger.is-in > *:nth-child(4) { transition-delay: .21s; }
.gc-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.gc-stagger.is-in > *:nth-child(6) { transition-delay: .35s; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1024px) {
  .cs-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .cs-hero__visual { max-width: 460px; }
  .cs-hero__card { aspect-ratio: 16 / 12; }
  .cs-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-rdv-grid { grid-template-columns: 1fr; gap: 36px; }
  .cs-faq-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 1100px) {
  .cs-navlinks, .cs-nav-end .cs-lang, .cs-nav-end .cs-btn { display: none; }
  .cs-burger { display: flex; }
}
@media (max-width: 920px) {
  .cs-panel__body { grid-template-columns: 1fr; }
  .cs-doclist { border-right: none; border-bottom: 1px solid var(--navy-line); }
}
/* footer en 2 colonnes dès la tablette (colonnes trop étroites en 4 cols pour l'allemand) */
@media (max-width: 860px) {
  .cs-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .cs-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cs-steps { grid-template-columns: 1fr; gap: 8px; }
  .cs-step { padding-top: 22px; }
  .cs-step::after { display: none; }
  .cs-docprep-grid { grid-template-columns: 1fr; }
  .cs-docprep__h > div { min-width: 0; }
  .cs-form__row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .cs-trust-grid { grid-template-columns: 1fr; }
  .cs-hero__float { left: 0; max-width: 84%; }
  .gc-footer__sign { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
  .cs-footer__grid { grid-template-columns: 1fr; }
  .cs-docrow { grid-template-columns: 1fr; gap: 8px; }
  .cs-docrow__state { justify-self: start; }
}

/* ---------- 20. Capture mode (Method A) ---------- */
body.capture-mode * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
body.capture-mode { overflow-x: hidden !important; }
body.capture-mode .gc-reveal,
body.capture-mode .gc-stagger > * { opacity: 1 !important; transform: none !important; }
body.capture-mode .cs-header { position: absolute !important; }
body.capture-mode .cs-faq__a { max-height: none !important; }
body.capture-mode .cs-faq__a p { padding-bottom: 24px; }

body.clean-mode .gc-demobar,
body.clean-mode .cs-mobile,
body.clean-mode .cs-scrim,
body.clean-mode .cs-upload { display: none !important; }
body.clean-mode .cs-header { display: none !important; }
body.clean-mode .cs-hero { padding-top: clamp(48px, 6vw, 80px); }

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .gc-reveal, .gc-stagger > * { opacity: 1 !important; transform: none !important; }
}
