/* ══════════════════════════════════════════════════════════════════════════
   The Calais Hunt — feuille de la landing.
   Transposition de Landing.dc.html : le design pose ses valeurs en styles
   inline sur chaque noeud ; on les regroupe ici en classes, valeurs identiques.
   Les tokens (couleurs, type, espacements) viennent de ds/tokens/*.
   ══════════════════════════════════════════════════════════════════════════ */

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

/* `hidden` doit gagner contre nos regles de classe.
   Sans ceci, `.modal { display:flex }` (specificite 0-1-0) bat la regle
   navigateur `[hidden] { display:none }` (0-1-0 mais feuille UA) et les
   modales restent affichees par-dessus la page. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-sans, 'Inter Tight', sans-serif);
  overflow-x: hidden;
}
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
img { max-width: 100%; }

/* Sans JS : on n'affiche jamais le rideau d'intro (il ne pourrait pas s'ouvrir),
   et le texte integral des bulletins reste lisible dans la page. */
.no-js #intro { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; }
.section { border-bottom: 1px solid rgba(10,10,10,.10); }
.section-pad { padding: 96px 48px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow--inverse { color: var(--text-on-inverse-muted); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px; align-items: start;
  padding-bottom: 24px; border-bottom: 1px solid var(--ink-900);
}
.h2 { margin: 0; font-size: 40px; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; color: var(--text-display); }
.section-lead { margin: 16px 0 0; max-width: 52ch; font-size: 16px; line-height: 1.5; color: var(--text-body); }

/* ── Boutons (transpose de components/core/Button.jsx) ───────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h); padding: 0 var(--pad-control-x);
  font: var(--weight-medium) var(--size-body-sm)/1 var(--font-sans);
  letter-spacing: 0; border-radius: var(--radius-1); cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: var(--transition-control), transform var(--dur-instant) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink-900); color: var(--white); border: 1px solid var(--ink-900); }
.btn--primary:hover { background: var(--ink-700); border-color: var(--ink-700); }
.btn--primary:active { background: var(--ink-950); }
.btn--secondary { background: transparent; color: var(--ink-900); border: 1px solid var(--border-strong); }
.btn--secondary:hover { background: var(--surface-hover); }
.btn--secondary:active { background: var(--surface-pressed); }
.btn--inverse { background: var(--paper); color: var(--ink-800); border: 1px solid var(--paper); }
.btn--inverse:hover { background: var(--white); border-color: var(--white); }
.btn--inverse:active { background: var(--ink-100); }

/* ── Badge (transpose de components/core/Badge.jsx) ──────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px;
  border-radius: var(--radius-1);
  font: var(--weight-regular) var(--size-micro)/1 var(--font-mono);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.badge--neutral { background: var(--white); color: var(--ink-700); border: 1px solid rgba(10,10,10,.24); }
.badge--accent  { background: var(--accent-100); color: var(--accent-700); border: 1px solid rgba(76,154,255,.4); }

/* ── Icone (transpose de components/core/Icon.jsx : masque CSS, teinte courante)
   Les SVG Lucide sont servis depuis assets/icons/ — pas depuis un CDN. */
.icon {
  display: inline-block; flex: 0 0 auto; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  vertical-align: -0.15em;
}

/* ══ EN-TETE ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 48px; background: var(--paper); border-bottom: 1px solid rgba(10,10,10,.10);
}
/* la marque est fournie en navy : on la ramene a l'encre du systeme */
.header-logo { display: flex; align-items: center; filter: brightness(0); }
.header-logo img { display: block; height: 44px; width: auto; }
.header-nav {
  display: flex; align-items: center; gap: 28px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}

/* ══ HERO ══════════════════════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(10,10,10,.10); }
.hero-montage { position: absolute; inset: 0; z-index: 0; display: block; }

/* trois voiles de flou en escalier : net a droite, lu a gauche */
.hero-blur { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-blur--1 { backdrop-filter: blur(3px);  -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0) 44%, rgba(0,0,0,1) 60%);
          mask-image: linear-gradient(to left, rgba(0,0,0,0) 44%, rgba(0,0,0,1) 60%); }
.hero-blur--2 { backdrop-filter: blur(9px);  -webkit-backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0) 52%, rgba(0,0,0,1) 74%);
          mask-image: linear-gradient(to left, rgba(0,0,0,0) 52%, rgba(0,0,0,1) 74%); }
.hero-blur--3 { backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0) 58%, rgba(0,0,0,1) 88%);
          mask-image: linear-gradient(to left, rgba(0,0,0,0) 58%, rgba(0,0,0,1) 88%); }

/* voile clair : heroVeil .8 applique a la rampe [1.05, 1, .71, .36, .21] */
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: linear-gradient(to right,
    rgba(255,255,255,.840) 0%, rgba(255,255,255,.800) 34%, rgba(255,255,255,.568) 58%,
    rgba(255,255,255,.288) 80%, rgba(255,255,255,.168) 100%);
}
.hero-sweep {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 1px;
  background: var(--accent-500); opacity: .9; animation: tch-sweep 1600ms linear infinite;
}
.hero-wrap { position: relative; z-index: 3; padding: 0 48px; }
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 48px; align-items: end; padding: 96px 0 40px;
}
.hero-title { margin: 24px 0 0; font-size: 72px; font-weight: 500; letter-spacing: -.025em; line-height: 1.0; color: var(--text-display); text-wrap: pretty; }
.hero-lead { margin: 24px 0 0; max-width: 52ch; font-size: 18px; line-height: 1.5; color: var(--text-body); }
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 24px; padding: 40px 0 24px;
  border-top: 1px solid rgba(10,10,10,.10);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
}

/* ── CTA + menu radial ───────────────────────────────────────────────────── */
.cta-wrap {
  position: relative; margin-top: 32px; min-height: 40px;
  transition: margin-top 360ms cubic-bezier(.2,0,0,1), min-height 360ms cubic-bezier(.2,0,0,1);
}
/* a l'ouverture du radial, le CTA se decale pour laisser la place a l'arc */
.cta-wrap.is-open { margin-top: 170px; min-height: 190px; }
.cta-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mandate-btn { opacity: 1; transform: none; transition: opacity 200ms linear, transform 200ms linear; }
.mandate-btn.is-hidden { opacity: 0; transform: scale(.96); pointer-events: none; }

.radial { position: absolute; left: 232px; top: 20px; width: 0; height: 0; z-index: 6; }
.radial-scrim { display: none; }
.radial-arc {
  position: absolute; left: -150px; top: -150px; width: 300px; height: 300px;
  border-radius: 50%; border: 1px dashed rgba(10,10,10,.28); pointer-events: none;
  clip-path: inset(0 0 0 50%); animation: tch-arc-in 260ms linear both;
}
.radial-close {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 28px; height: 28px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--ink-900); color: var(--paper); border: 1px solid var(--ink-900);
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1;
}
.radial-close:hover { background: var(--paper); color: var(--ink-900); }
.radial-point {
  position: absolute; transform: translate(-18px, -18px);
  display: flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  animation: tch-radial-pop 260ms cubic-bezier(.2,0,0,1) both;
}
.radial-point-icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--ink-900); color: var(--ink-900);
  transition: background 120ms linear, color 120ms linear;
}
.radial-point:hover .radial-point-icon { background: var(--ink-900); color: var(--paper); }
.radial-point-text { display: grid; gap: 2px; text-align: left; white-space: nowrap; }
.radial-point-title { font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--text-display); }
.radial-point-term { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* ── Panneau de droite ───────────────────────────────────────────────────── */
.hero-panel {
  position: relative; z-index: 1; display: grid; gap: 1px;
  background: rgba(10,10,10,.10); border: 1px solid var(--ink-900);
  transition: margin-bottom 360ms cubic-bezier(.2,0,0,1), transform 320ms cubic-bezier(.2,0,0,1);
}
.hero-panel.is-open { z-index: 5; margin-bottom: 288px; }
.panel-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(10,10,10,.10); }
.panel-cell, .panel-lead-row {
  background: rgba(255,255,255,.76); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 16px;
}
.panel-cell { min-height: 96px; }
.panel-lead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.panel-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); transition: opacity 900ms linear;
}
.panel-value {
  margin-top: 8px; font-weight: 500; letter-spacing: -.025em; color: var(--text-display);
  font-variant-numeric: tabular-nums; min-height: 34px;
  font-size: 32px; line-height: 1;
  transition: font-size 160ms linear, opacity 900ms linear;
}
.panel-value.is-detail { font-size: 22px; line-height: 1.15; }
.panel-lead { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--text-display); min-height: 44px; transition: opacity 900ms linear; }
.panel-badge-wrap { display: inline-flex; transition: opacity 900ms linear; }
.hero-panel.is-fading .panel-label,
.hero-panel.is-fading .panel-value,
.hero-panel.is-fading .panel-lead,
.hero-panel.is-fading .panel-badge-wrap { opacity: 0; }

/* ══ 01 CAPABILITY ═════════════════════════════════════════════════════════ */
.cap { margin-top: 48px; }
.cap-status-row {
  display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint);
}
.cap-status { color: var(--text-faint); }
.cap-status.is-paused { color: var(--accent-500); }
.cap-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink-900); border-right: 1px solid rgba(10,10,10,.10);
}
.cap-cell {
  position: relative; padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 10px;
  min-height: 320px; cursor: pointer; background: var(--paper); overflow: hidden;
  border-left: 1px solid rgba(10,10,10,.10); border-bottom: 1px solid rgba(10,10,10,.10);
  color: var(--ink-300); transition: color 200ms linear; text-align: left; font: inherit;
}
.cap-cell.is-on { color: var(--ink-900); }
/* barre de progression : 3 s par capacite, en pause au survol */
.cap-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink-900);
  transform-origin: left; transform: scaleX(0); opacity: 0;
}
.cap-cell.is-on .cap-bar { opacity: 1; animation: tch-cap-a 3000ms linear forwards; }
.cap.is-paused .cap-cell.is-on .cap-bar { animation-play-state: paused; }
.cap-dot { position: absolute; top: 3px; left: 24px; width: 7px; height: 7px; background: var(--ink-200); transition: background 200ms linear; }
.cap-cell.is-on .cap-dot { background: var(--ink-900); }
.cap-head { display: flex; align-items: center; justify-content: space-between; }
.cap-index { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; }
.cap-title {
  margin: 10px 0 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.05;
  font-size: 20px; color: var(--ink-300);
  transition: font-size 200ms cubic-bezier(.2,0,0,1), color 200ms linear;
}
.cap-cell.is-on .cap-title { font-size: 34px; color: var(--text-display); }
.cap-detail {
  overflow: hidden; max-height: 0; opacity: 0; transform: translateY(6px);
  transition: max-height 360ms cubic-bezier(.2,0,0,1), opacity 200ms linear, transform 200ms linear;
}
.cap-cell.is-on .cap-detail { max-height: 220px; opacity: 1; transform: translateY(0); }
.cap-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.cap-figure {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(10,10,10,.10);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-display); font-variant-numeric: tabular-nums;
}

/* ══ 02 MANDATES ═══════════════════════════════════════════════════════════ */
.mandate-grid {
  margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: rgba(10,10,10,.10); border: 1px solid var(--ink-900);
}
.mandate-card { background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 340px; }
.mandate-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink-900); }
.mandate-index { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; color: var(--text-faint); }
.mandate-title { margin: 12px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; color: var(--text-display); }
.mandate-body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.mandate-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(10,10,10,.10); }
.mandate-row { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.mandate-row + .mandate-row { padding-top: 8px; border-top: 1px solid rgba(10,10,10,.10); }
.mandate-key { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.mandate-val { font-size: 13px; line-height: 1.45; color: var(--text-display); text-align: right; }
.mandate-val--mono { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
.mandate-cta {
  margin-top: 8px; justify-self: start; padding: 0; border: 0; background: transparent; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-link);
}
.mandate-cta:hover { color: var(--text-link-hover); }

/* ══ 03 BULLETINS ══════════════════════════════════════════════════════════ */
.bulletin-sticky { position: sticky; top: 72px; padding-top: 24px; }
.bulletin {
  border: 1px solid var(--ink-900); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: rgba(10,10,10,.10);
}
.bulletin-photo { position: relative; background: var(--surface-sunken); min-height: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.bulletin-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.credit {
  position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: var(--paper);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint);
}
.bulletin-text { background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bulletin-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.bulletin-title { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; color: var(--text-display); text-wrap: pretty; }
.bulletin-body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 46ch; }
.bulletin-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid rgba(10,10,10,.10);
}
.bulletin-open {
  padding: 0; border: 0; background: transparent; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-link);
}
.bulletin-open:hover { color: var(--text-link-hover); }
.bulletin-status { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }

/* ══ 04 METHOD ═════════════════════════════════════════════════════════════ */
.step-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 24px; background: var(--paper); }
.step { background: var(--paper); padding-right: 24px; }
.step-rule { display: flex; align-items: center; gap: 8px; }
.step-square { width: 9px; height: 9px; background: var(--ink-900); }
.step-line { flex: 1; height: 1px; background: rgba(10,10,10,.18); }
.step-text { padding-top: clamp(10px, 2vh, 16px); }
.step-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.step-title { margin: 10px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; color: var(--text-display); }
.step-body { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* ══ 05 CONTACT ════════════════════════════════════════════════════════════ */
.contact { background: var(--surface-inverse); color: var(--text-on-inverse); }
.contact-grid { padding: 96px 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 48px; align-items: end; }
.contact-title { margin: 24px 0 0; font-size: 56px; font-weight: 500; letter-spacing: -.025em; line-height: 1.0; color: var(--text-on-inverse); text-wrap: pretty; }
.contact-lead { margin: 20px 0 0; max-width: 52ch; font-size: 18px; line-height: 1.5; color: var(--text-on-inverse-muted); }
.contact-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact-line { font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.7; color: var(--text-on-inverse-muted); }
.site-foot { border-top: 1px solid rgba(255,255,255,.18); }
.site-foot-row {
  padding: 24px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-on-inverse-muted);
}

/* ══ INTRO (rideau plein ecran) ════════════════════════════════════════════ */
.intro { position: fixed; inset: 0; z-index: 90; overflow: hidden; }
.intro-bg { position: absolute; inset: 0; background: var(--ink-900); }
.intro.is-revealing .intro-bg { animation: tch-intro-out 340ms 280ms linear forwards; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-slide {
  position: absolute; inset: 0; display: flex; width: 200%; height: 100%;
  transform: translateX(0); transition: transform 560ms cubic-bezier(.2,0,0,1);
}
.intro.is-hunter .intro-slide { transform: translateX(-50%); }
.intro-pane { position: relative; flex: 0 0 50%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.intro-pane--login { overflow: auto; padding: 24px 0; align-items: flex-start; }
.intro-stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 48px; width: min(560px, 84%); }

#tch-intro-mark {
  position: relative; width: 100%; display: block;
  /* logoGlow = .6 : drop-shadow(0 0 9*g) + drop-shadow(0 0 28*g) */
  filter: drop-shadow(0 0 5.4px rgba(255,255,255,.30)) drop-shadow(0 0 16.8px rgba(255,255,255,.13));
  animation: tch-glow-in 1800ms 200ms cubic-bezier(.2,0,0,1) both;
}
#tch-intro-mark img { width: 100% !important; height: auto !important; display: block; margin: 0 auto; }
.intro.is-revealing #tch-intro-mark { animation: tch-intro-out 260ms linear forwards; }

.intro-cta {
  position: relative; width: min(560px, 90vw); border: 1px solid rgba(255,255,255,.18);
  animation: tch-flicker-in 1000ms 1100ms linear both;
}
.intro.is-revealing .intro-cta { animation: tch-intro-out 260ms linear forwards; pointer-events: none; }
.intro-cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-door {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; min-height: 64px; border: 0; cursor: pointer; text-align: left; overflow: hidden;
  font-family: var(--font-display, 'Inter Tight', sans-serif); font-size: 20px; font-weight: 500;
  letter-spacing: -.02em; transition: background 120ms linear;
}
.intro-door--light { background: var(--ink-200); color: var(--text-display); }
.intro-door--light:hover { background: var(--paper); animation: tch-glitch 900ms steps(4, end) infinite; }
.intro-door--dark { background: var(--surface-inverse); color: var(--text-on-inverse); }
.intro-door--dark:hover { background: var(--surface-inverse-raised); animation: tch-glitch 900ms steps(4, end) infinite; }
.intro-door-arrow { font-size: 18px; font-weight: 400; }
.glitch-text { position: relative; z-index: 1; }
.intro-door:hover .glitch-text { animation: tch-glitch-ink 760ms steps(3, end) infinite; }
.glitch-veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; mix-blend-mode: overlay;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 1px, rgba(255,255,255,0) 1px 4px);
  animation: tch-scan 420ms steps(4, end) infinite;
}

/* ── Carte de connexion (verre depoli) ───────────────────────────────────── */
#tch-glass-card {
  position: relative; flex: 0 0 auto; margin: auto; box-sizing: border-box;
  width: min(520px, 90vw); background: rgba(255,255,255,.055);
  padding: clamp(24px, 4vh, 40px) 36px clamp(20px, 3vh, 32px); isolation: isolate;
  backdrop-filter: blur(14px) saturate(1.25) brightness(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.25) brightness(1.06);
}
/* refraction Chromium via deplacement SVG, quand elle est supportee */
@supports (backdrop-filter: url(#tch-glass)) {
  #tch-glass-card { backdrop-filter: blur(9px) saturate(1.3) brightness(1.06) url(#tch-glass); }
}
#tch-glass-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 1px 0 0 rgba(255,255,255,.12),
              inset -1px 0 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(255,255,255,.07),
              inset 0 22px 44px rgba(255,255,255,.055), 0 24px 70px rgba(0,0,0,.45);
}
.glass-hairline {
  position: absolute; left: 50%; top: -1px; width: 220px; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(76,154,255,0), var(--accent-500), rgba(76,154,255,0));
}
.glass-mark { display: flex; justify-content: center; }
.glass-mark img { display: block; height: 44px; width: auto; }
.glass-eyebrow {
  margin-top: 20px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.56);
}
.glass-title {
  margin: 12px 0 0; text-align: center; font-family: var(--font-display, 'Inter Tight', sans-serif);
  font-size: clamp(24px, 3.4vh, 32px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; color: #fff;
}
.glass-lead { margin: 10px 0 0; text-align: center; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.62); }
.glass-form { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.glass-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.glass-input {
  width: 100%; margin-top: 10px; padding: 0 0 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.26);
  background: transparent; outline: none; color: #fff; font-family: var(--font-sans, 'Inter Tight', sans-serif);
  font-size: 17px; letter-spacing: -.01em; caret-color: var(--accent-500); transition: border-color 120ms linear;
}
.glass-input:focus { border-bottom-color: #4C9AFF; }
#tch-email::placeholder { color: rgba(255,255,255,.32); }
.glass-remember { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.62); cursor: pointer; user-select: none; }
.glass-check { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: 0 0 16px; }
.glass-check input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.glass-box { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.34); background: transparent; transition: background 120ms linear, border-color 120ms linear; }
.glass-check input:checked ~ .glass-box { border-color: var(--accent-500); background: var(--accent-500); }
.glass-tick {
  position: relative; width: 8px; height: 4px; margin-top: -2px;
  border-left: 1.5px solid #0A0A0A; border-bottom: 1.5px solid #0A0A0A;
  transform: rotate(-45deg); opacity: 0; transition: opacity 120ms linear;
}
.glass-check input:checked ~ .glass-tick { opacity: 1; }
.glass-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 16px 18px; border: 0; cursor: pointer; background: #fff; color: var(--ink-900);
  font-family: var(--font-display, 'Inter Tight', sans-serif); font-size: 16px; font-weight: 500;
  letter-spacing: -.01em; transition: background 120ms linear, box-shadow 200ms linear;
}
.glass-submit:hover { background: #E6E6E6; box-shadow: 0 0 34px rgba(255,255,255,.22); }
.glass-or { display: flex; align-items: center; gap: 16px; }
.glass-rule { flex: 1; height: 1px; background: rgba(255,255,255,.14); }
.glass-or-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.46); }
.glass-providers { display: grid; gap: 1px; background: rgba(255,255,255,.14); }
.glass-provider {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; width: 100%;
  padding: 15px 16px; border: 0; cursor: pointer; text-align: left; background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.78); font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; transition: background 120ms linear, color 120ms linear;
}
.glass-provider:hover { background: rgba(255,255,255,.10); color: #fff; }
.glass-note { margin: 0; min-height: 1em; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-500); }
.glass-foot {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.glass-back { border: 0; background: transparent; cursor: pointer; padding: 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-500); }

/* ══ MODALES ═══════════════════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(10,10,10,.62); animation: tch-modal-in 200ms linear both;
}
.modal--article { z-index: 95; }
.modal-card {
  position: relative; box-sizing: border-box; overflow: hidden;
  width: min(1080px, 100%); height: min(660px, 96vh);
  background: var(--paper); border: 1px solid var(--ink-900); box-shadow: 0 24px 64px rgba(10,10,10,.34);
  animation: tch-modal-rise 200ms cubic-bezier(.2,0,0,1) both;
}
.modal-photo {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 38%, rgba(0,0,0,1) 72%);
          mask-image: linear-gradient(to right, rgba(0,0,0,0) 38%, rgba(0,0,0,1) 72%);
}
.modal-close {
  position: absolute; z-index: 4; top: 0; right: 0; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--ink-900); color: var(--paper); border: 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 14px;
}
.modal-close:hover { background: var(--ink-700); }
.modal-body {
  position: relative; z-index: 2; box-sizing: border-box; width: min(560px, 62%); height: 100%;
  overflow-y: auto; padding: clamp(20px, 4.6vh, 36px) 40px;
  display: flex; flex-direction: column; gap: clamp(10px, 2.2vh, 18px);
}
.modal-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-500); }
.modal-form { display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 20px); }
.modal-title { margin: 0; font-size: clamp(26px, 5vh, 40px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; color: var(--text-display); text-wrap: pretty; }
.modal-lead { margin: clamp(6px, 1.6vh, 12px) 0 0; max-width: 46ch; font-size: 15px; line-height: 1.45; color: var(--text-body); }
.field-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.8vh, 14px); }
.field { display: grid; gap: 6px; }
.field-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.field input {
  width: 100%; box-sizing: border-box; height: clamp(34px, 6.6vh, 40px); padding: 0 12px;
  border: 1px solid rgba(10,10,10,.18); border-radius: 0; background: var(--paper);
  font-family: var(--font-sans, 'Inter Tight'), sans-serif; font-size: 14px; color: var(--ink-900); outline: none;
}
.field input:focus { border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(76,154,255,.35); }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  padding: 0 14px; height: 34px; cursor: pointer; border-radius: 0;
  border: 1px solid rgba(10,10,10,.18); background: transparent; color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  transition: background 120ms linear, border-color 120ms linear, color 120ms linear;
}
.slot.is-on { border-color: var(--ink-900); background: rgba(10,10,10,.06); color: var(--ink-900); }
.modal-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 2px; border-top: 1px solid rgba(10,10,10,.10); }
.modal-submit-row > * { padding-top: clamp(10px, 2vh, 16px); }
.modal-note { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.receipt { display: grid; gap: 1px; background: rgba(10,10,10,.10); border: 1px solid var(--ink-900); }
.receipt-row { background: var(--paper); padding: 12px 16px; display: flex; gap: 16px; justify-content: space-between; align-items: baseline; }
.receipt-key { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.receipt-val { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-display); font-variant-numeric: tabular-nums; text-align: right; }

/* ── Modale de lecture d'un bulletin ─────────────────────────────────────── */
.article-card {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column;
  width: min(860px, 100%); height: min(820px, 94vh); background: var(--paper);
  border: 1px solid var(--ink-900); box-shadow: 0 24px 64px rgba(10,10,10,.34);
  animation: tch-modal-rise 200ms cubic-bezier(.2,0,0,1) both;
}
.article-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.article-hero { position: relative; height: 280px; background: var(--surface-sunken); overflow: hidden; border-bottom: 1px solid var(--ink-900); }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding: 12px 48px; border-bottom: 1px solid rgba(10,10,10,.10);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.article-status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-display); }
.article-doc { padding: 40px 48px 48px; display: flex; flex-direction: column; gap: 20px; }
.article-title { margin: 0; max-width: 24ch; font-size: 40px; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; color: var(--text-display); text-wrap: pretty; }
.article-standfirst { margin: 0; max-width: 60ch; font-size: 20px; line-height: 1.4; color: var(--text-body); }
.article-rule { height: 1px; background: var(--ink-900); }
.article-para { margin: 0; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--text-display); text-wrap: pretty; }
.article-record { margin-top: 8px; display: grid; gap: 1px; background: rgba(10,10,10,.10); border: 1px solid var(--ink-900); }
.article-record-head { background: var(--ink-900); color: var(--paper); padding: 10px 16px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.article-byline { margin: 8px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); line-height: 1.8; }
.article-foot {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 16px 48px; border-top: 1px solid var(--ink-900); background: var(--surface-sunken);
}
.article-foot > span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* ══ ANIMATIONS (reprises telles quelles du helmet de Landing.dc.html) ══════ */
@keyframes tch-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes tch-glow-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes tch-flicker-in {
  0% { opacity: 0 } 8% { opacity: 1 } 13% { opacity: .1 } 22% { opacity: 1 }
  29% { opacity: .25 } 38% { opacity: 1 } 47% { opacity: .6 } 56% { opacity: 1 } 100% { opacity: 1 }
}
@keyframes tch-glitch {
  0%, 100% { transform: translate(0, 0); } 18% { transform: translate(-1px, 0); }
  36% { transform: translate(1px, 0); } 54% { transform: translate(0, 1px); } 72% { transform: translate(-1px, 0); }
}
@keyframes tch-glitch-ink {
  0%, 100% { text-shadow: none; }
  22% { text-shadow: -1px 0 rgba(76,154,255,.55); }
  50% { text-shadow: 1px 0 rgba(76,154,255,.45); }
  74% { text-shadow: -1px 0 rgba(198,54,47,.35); }
}
@keyframes tch-scan { from { background-position: 0 0; } to { background-position: 0 4px; } }
@keyframes tch-modal-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes tch-modal-rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }
@keyframes tch-radial-pop { from { opacity: 0; transform: translate(-18px, -18px) scale(.82) } to { opacity: 1; transform: translate(-18px, -18px) scale(1) } }
@keyframes tch-arc-in { from { opacity: 0; clip-path: inset(0 0 0 50%) } to { opacity: 1; clip-path: inset(0 0 0 50%) } }
@keyframes tch-cap-a { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes tch-intro-out { from { opacity: 1 } to { opacity: 0 } }

/* ══ RESPONSIVE ════════════════════════════════════════════════════════════
   Le composant d'origine basculait sur mesure JS (narrow < 1000, tiny < 760).
   On tient les memes seuils en CSS : pas de reflow pilote par le script. */
@media (max-width: 1000px) {
  .hero-title { font-size: 56px; }
  .contact-title { font-size: 44px; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* texte pleine largeur : la rampe du voile s'aplatit au lieu de degager a droite */
  .hero-scrim { background-image: linear-gradient(to right,
      rgba(255,255,255,.848) 0%, rgba(255,255,255,.832) 34%, rgba(255,255,255,.800) 58%,
      rgba(255,255,255,.768) 80%, rgba(255,255,255,.752) 100%); }
  .radial { left: 86px; }
  .radial-arc { left: -118px; top: -118px; width: 236px; height: 236px; }
  .radial-scrim {
    display: block; position: absolute; left: -102px; top: -154px;
    width: min(452px, calc(100vw - 56px)); height: 308px;
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(10,10,10,.10); pointer-events: none; animation: tch-modal-in 200ms linear both;
  }
  /* sur ecran etroit l'arc se deploie au-dessus : pas de reservation de place */
  .cta-wrap.is-open { margin-top: 32px; min-height: 40px; }
  .hero-panel.is-open { margin-bottom: 0; }
  .modal-body { width: 100%; }
  .modal-photo { display: none; }
}
@media (max-width: 760px) {
  .site-header, .hero-wrap, .section-pad, .contact-grid, .site-foot-row { padding-left: 20px; padding-right: 20px; }
  .wrap[style] { padding-left: 20px !important; padding-right: 20px !important; }
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 32px; }
  .hero-title { font-size: 40px; }
  .contact-title { font-size: 34px; }
  .h2 { font-size: 30px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-pad { padding: 56px 20px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-cell { min-height: 0; }
  .header-nav { gap: 14px; font-size: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .header-logo img { height: 32px; }
  .bulletin-sticky { position: static; }
  .article-doc, .article-meta, .article-foot { padding-left: 20px; padding-right: 20px; }
  .field-duo { grid-template-columns: 1fr; }
  /* minmax(380px,…) depassait les 350 px utiles a 390 px de large : on empile. */
  .contact-grid { grid-template-columns: 1fr; padding: 56px 20px; }
  .bulletin { grid-template-columns: 1fr; }
  .mandate-grid { grid-template-columns: 1fr; }
  .intro-stack { gap: 28px; }
  .intro-cta-grid { grid-template-columns: 1fr; }
}

/* Respecte le reglage systeme : on coupe les boucles, on garde la lisibilite. */
@media (prefers-reduced-motion: reduce) {
  .hero-sweep, .glitch-veil { animation: none !important; }
  .intro-door:hover, .intro-door:hover .glitch-text { animation: none !important; }
  .cap-cell.is-on .cap-bar { animation: none !important; transform: scaleX(1); }
  * { transition-duration: 1ms !important; }
}

/* Texte integral des bulletins : visible uniquement si JavaScript est absent
   (sinon il vit dans le DOM pour l'indexation, et app.js le clone dans la modale). */
.article-full { display: none; }
.no-js .article-full { display: block; border: 1px solid var(--ink-900); border-top: 0; }
.no-js .bulletin-open { display: none; }
