/* ============================================================
   RH-Crédit — édition financière
   Encre marine + vert « croissance » (repris des feuilles du logo)
   sur papier chaud. Filets fins, angles nets, chiffres tabulaires.
   Type : Source Serif 4 (titres, style presse financière)
          · Public Sans (texte) · IBM Plex Mono (chiffres, étiquettes)
   ============================================================ */

:root {
  --ink: #0a1a2b;
  --navy: #0d2640;
  --navy-2: #123356;
  --brand: #015689;
  --brand-2: #0a6aa6;
  --green: #1d7a4c;
  --green-2: #4fb37d;         /* sur fond sombre */
  --green-soft: #e5f1ea;
  --paper: #ffffff;
  --cream: #f7f5ef;
  --ice: #f7f5ef;             /* alias historique (admin) */
  --line: #e2ded3;
  --line-dark: rgba(255, 255, 255, 0.14);
  --slate: #37475a;
  --slate-2: #677586;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 43, 0.05), 0 2px 8px rgba(10, 26, 43, 0.05);
  --shadow-lg: 0 1px 3px rgba(10, 26, 43, 0.08), 0 18px 40px -16px rgba(10, 26, 43, 0.22);
  --font-display: "Source Serif 4", "Georgia", serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --pad-x: clamp(20px, 4vw, 40px);
  --grid-lines: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }

::selection { background: var(--navy); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.container--narrow { max-width: 820px; }

/* ---------- typographie ---------- */

.h-display, .h-section, .h-card {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: balance;
  font-optical-sizing: auto;
}

.h-display { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.05; font-weight: 500; }
.h-section { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
.h-card { font-size: 1.45rem; line-height: 1.2; }

@media (max-width: 560px) {
  .h-display { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .h-section { font-size: clamp(1.7rem, 7.4vw, 2.1rem); }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow__n { color: var(--slate-2); font-weight: 500; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--slate-2); }

/* mot souligné dans un titre : italique éditorial */
.mark-gold { font-style: italic; color: inherit; }
.hero .mark-gold, .band .mark-gold { color: var(--green-2); }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 16px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn .btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.6; cursor: default; }

.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--navy); }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(10, 26, 43, 0.28); }
.btn--ghost:hover { border-color: var(--ink); background: var(--cream); }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--green-soft); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }

.btn--sm { padding: 11px 18px; font-size: 0.88rem; }

/* ---------- barre utilitaire ---------- */

.utility { background: var(--ink); color: rgba(255, 255, 255, 0.66); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.utility__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility a { color: rgba(255, 255, 255, 0.85); }
.utility a:hover { color: #fff; }
.utility__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green-2); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 720px) { .utility__tag { display: none; } .utility__in { justify-content: center; } }

/* ---------- barre de navigation ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.topbar.is-scrolled { box-shadow: 0 8px 24px -16px rgba(10, 26, 43, 0.3); }

.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.topbar__logo img { width: 158px; height: auto; transition: width 0.3s ease; }
.topbar.is-scrolled .topbar__logo img { width: 140px; }

.topbar__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }

.topbar__nav > a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
}
.topbar__nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.topbar__nav > a:not(.btn):hover { color: var(--ink); }
.topbar__nav > a:not(.btn):hover::after,
.topbar__nav > a[aria-current="page"]::after { transform: scaleX(1); }
.topbar__nav > a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.topbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.topbar__burger span { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
.topbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .topbar__burger { display: flex; }
  .topbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -20px rgba(10, 26, 43, 0.25);
    padding: 8px var(--pad-x) 22px;
    display: none;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav > a:not(.btn) { padding: 14px 2px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .topbar__nav > a:not(.btn)::after { display: none; }
  .topbar__cta { justify-content: center; margin-top: 16px; }
}

/* ---------- héros ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(60vh, 600px);
  color: #fff;
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}
/* quadrillage « papier millimétré » */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grid-lines);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  pointer-events: none;
}
.hero--tall { min-height: min(84vh, 820px); }

.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 26, 43, 0.96) 0%, rgba(10, 26, 43, 0.86) 42%, rgba(13, 38, 64, 0.55) 100%);
}

.hero--band { background: linear-gradient(120deg, var(--ink) 0%, var(--navy-2) 100%); min-height: 0; }
.hero--band .hero__in { padding-top: clamp(72px, 10vw, 120px); }

.hero__in { width: 100%; padding-top: 130px; padding-bottom: clamp(52px, 8vh, 92px); }

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-2);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero__kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.hero__title { color: #fff; max-width: 21ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.2s; }

@keyframes rise { to { transform: translateY(0); } }

.hero__sub {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  animation: fade-up 0.9s ease 0.4s forwards;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; opacity: 0; animation: fade-up 0.9s ease 0.55s forwards; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll { display: none; }

/* accueil : texte + relevé */
.hero--home { align-items: center; }
.hero--home .hero__in { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(36px, 6vw, 80px); align-items: center; padding-top: clamp(72px, 10vw, 120px); }
.hero--home .hero__title { font-size: clamp(2.3rem, 4.3vw, 3.7rem); max-width: none; }
@media (max-width: 960px) { .hero--home .hero__in { grid-template-columns: 1fr; } }

/* ---------- relevé de performance (carte héros) ---------- */

.statement {
  background: rgba(255, 255, 255, 0.97);
  color: var(--slate);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 0;
  animation: fade-up 0.9s ease 0.5s forwards;
}
.statement__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.statement__head strong { color: var(--ink); font-weight: 600; }
.statement__rows { padding: 6px 24px; }
.statement__row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.statement__row:last-child { border-bottom: 0; }
.statement__row dt { font-size: 0.9rem; line-height: 1.4; color: var(--slate); }
.statement__row dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.55rem; line-height: 1; color: var(--ink); white-space: nowrap; }
.statement__row dd small { font-size: 0.78rem; font-weight: 500; color: var(--slate-2); margin-left: 4px; letter-spacing: 0.04em; }
.statement__row dd .up { color: var(--green); font-size: 0.8rem; margin-right: 6px; vertical-align: 3px; }
.statement__foot { background: var(--cream); border-top: 1px solid var(--line); padding: 14px 24px; font-size: 0.8rem; color: var(--slate-2); display: flex; align-items: center; gap: 8px; }
.statement__foot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex: none; }

/* ---------- bandeau défilant (style téléscripteur boursier) ---------- */

.ticker { background: var(--ink); color: rgba(255, 255, 255, 0.82); border-top: 1px solid var(--line-dark); overflow: hidden; display: flex; align-items: stretch; }
.ticker__label { flex: none; display: flex; align-items: center; padding: 0 20px; background: var(--green); color: #fff; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; position: relative; z-index: 1; }
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker__track { display: flex; width: max-content; animation: scroll-x 48s linear infinite; }
.ticker__item { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 13px 26px; white-space: nowrap; border-right: 1px solid var(--line-dark); }
.ticker__item::before { content: "▲"; color: var(--green-2); font-size: 0.62rem; margin-right: 10px; vertical-align: 1px; }
.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- bande « en chiffres » ---------- */

.ledger { background: var(--navy); color: #fff; position: relative; isolation: isolate; }
.ledger::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grid-lines); background-size: 56px 56px; }

.ledger__in { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); }
.ledger__title { color: #fff; margin-bottom: clamp(36px, 5vw, 56px); }

.ledger__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }

.ledger__cell { padding: 28px 28px 8px 0; border-right: 1px solid var(--line-dark); }
.ledger__cell + .ledger__cell { padding-left: 28px; }
.ledger__cell:last-child { border-right: 0; }

.ledger__icon { width: 26px; height: 26px; object-fit: contain; margin-bottom: 22px; filter: brightness(0) invert(1); opacity: 0.55; }

.ledger__figure {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ledger__unit { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-2); }

.ledger__caption { margin-top: 12px; color: rgba(255, 255, 255, 0.66); font-size: 0.95rem; max-width: 32ch; }

@media (max-width: 820px) {
  .ledger__grid { grid-template-columns: 1fr; }
  .ledger__cell, .ledger__cell + .ledger__cell { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
}

/* ---------- sections génériques ---------- */

.section { padding-top: clamp(68px, 9vw, 116px); padding-bottom: clamp(68px, 9vw, 116px); }
.section--ice { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head .lead { margin-top: 16px; }

/* ---------- split (texte + image) ---------- */

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--flip > .split__media { order: -1; }

.split__body .h-section { margin-bottom: 24px; }
.split__body p + p { margin-top: 16px; }

.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.split__media { position: relative; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.frame:hover img { transform: scale(1.03); }
/* cadre décalé façon repère de mise en page */
.split__media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  z-index: -1;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > .split__media { order: 0; }
  .split__media::after { inset: 12px -10px -10px 12px; }
}

/* ---------- points clés (liste chiffrée) ---------- */

.keys { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.keys li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.keys li::before { content: counter(k, decimal-leading-zero); counter-increment: k; font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); padding-top: 3px; }
.keys { counter-reset: k; }

/* ---------- portefeuille clients (logos) ---------- */

.logos { padding-top: clamp(68px, 9vw, 110px); padding-bottom: clamp(68px, 9vw, 110px); background: var(--cream); border-top: 1px solid var(--line); }

.logogrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}
.logogrid__cell {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: clamp(14px, 2.2vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logogrid__cell img {
  width: 100%;
  max-width: 170px;
  height: 72px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logogrid__cell:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .logogrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .logogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logogrid__cell img { height: 46px; } }

/* ---------- cartes « pourquoi » ---------- */

.whygrid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }

.why {
  padding: clamp(28px, 4vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s ease;
}
.why::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  height: 2px;
  width: calc(100% + 1px);
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.why:hover { background: #fcfbf8; }
.why:hover::before { transform: scaleX(1); }

.why__icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.why__icon img { width: 24px; height: 24px; object-fit: contain; }

.why .h-card { margin-bottom: 12px; }
.why p { font-size: 0.98rem; }

@media (max-width: 720px) { .whygrid { grid-template-columns: 1fr; } }

/* ---------- bande CTA ---------- */

.band {
  position: relative;
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grid-lines); background-size: 56px 56px; pointer-events: none; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 38, 64, 0.9), rgba(10, 26, 43, 0.95)); }
.band--plain { background: linear-gradient(120deg, var(--ink) 0%, var(--navy-2) 100%); }

.band__in { padding-top: clamp(68px, 9vw, 108px); padding-bottom: clamp(68px, 9vw, 108px); }
.band__in .h-section { color: #fff; margin-bottom: 14px; }
.band__in .lead { color: rgba(255, 255, 255, 0.74); max-width: 52ch; margin: 0 auto; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---------- témoignages (carrousel) ---------- */

.tsection { background: var(--cream); border-top: 1px solid var(--line); }

.tcarousel { position: relative; margin-top: clamp(32px, 5vw, 48px); }

.tcarousel__track {
  display: flex;
  gap: clamp(16px, 2.4vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 24px;
}
.tcarousel__track::-webkit-scrollbar { display: none; }

.tcarousel .tcard { flex: 0 0 min(480px, 86%); scroll-snap-align: start; }

.tcarousel__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.tcarousel__btn {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  border: 1px solid rgba(10, 26, 43, 0.22);
  background: #fff;
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tcarousel__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- carte témoignage ---------- */

.tcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 34px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.tcard:hover { box-shadow: var(--shadow-lg); border-color: #d6d1c3; }

.tcard__quote-mark {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-style: italic;
  line-height: 0.6;
  color: var(--green);
  height: 0.55em;
}

.tcard__text { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
.tcard__text p + p { margin-top: 12px; }

.tcard__who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.tcard__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(0.2); }
.tcard__name { font-family: var(--font-mono); font-weight: 600; font-size: 0.82rem; color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; }
.tcard__role { font-size: 0.85rem; color: var(--slate-2); line-height: 1.45; }

/* ---------- mosaïque love page ---------- */

.masonry { columns: 3 320px; column-gap: 22px; margin-top: clamp(32px, 5vw, 48px); }
.masonry .tcard { break-inside: avoid; margin-bottom: 22px; }

/* ---------- articles de blogue ---------- */

.bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 28px); }

.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.post:hover { box-shadow: var(--shadow-lg); border-color: #d6d1c3; }

.post__tag { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.post__title { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.25; color: var(--ink); }
.post a { color: inherit; }
.post__title a:hover { color: var(--brand); }
.post__more { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.88rem; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; }
.post__more .btn__arrow { transition: transform 0.2s ease; }
.post:hover .post__more .btn__arrow { transform: translateX(4px); }

.post__cover { display: block; margin: calc(-1 * clamp(24px, 3vw, 30px)) calc(-1 * clamp(24px, 3vw, 30px)) 6px; border-bottom: 1px solid var(--line); }
.post__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease; }
.post:hover .post__cover img { transform: scale(1.03); }

@media (max-width: 960px) { .bloggrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bloggrid { grid-template-columns: 1fr; } }

/* article seul */
.article__cover { width: 100%; border-radius: var(--radius); margin-bottom: clamp(28px, 4vw, 44px); }
.article__back { margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.prose { color: var(--slate); font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.2; margin-top: 1.8em; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.prose h3 { font-size: 1.4rem; }
.prose a { text-decoration: underline; text-decoration-color: rgba(1, 86, 137, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose img { border-radius: var(--radius); height: auto; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border-left: 2px solid var(--green); padding-left: 1.1em; font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--ink); }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose th { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { margin-top: 30px; border-top: 1px solid var(--line); }

.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-card__icon { width: 40px; height: 40px; flex: none; border-radius: 4px; background: var(--green-soft); display: grid; place-items: center; color: var(--green); }
.info-card__label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-2); }
.info-card__value { font-weight: 600; color: var(--ink); line-height: 1.5; }
.info-card__value a { color: var(--brand); }
.info-card__value a:hover { text-decoration: underline; }
.info-card__value small { display: block; font-weight: 400; color: var(--slate-2); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow-lg);
}
.form-card .h-card { margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #cfcabd;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1, 86, 137, 0.14); }
.field textarea { min-height: 140px; resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.84rem; color: var(--slate-2); margin-top: 14px; }

/* ---------- postes ouverts ---------- */

.jobsframe {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin-top: clamp(28px, 4vw, 44px);
}
.jobsframe iframe { display: block; width: 100%; border: 0; }

.newsletter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.newsletter input {
  flex: 1 1 300px;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 15px 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter input:focus { border-color: #fff; background: rgba(255, 255, 255, 0.14); }

/* ---------- pied de page ---------- */

.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); position: relative; border-top: 3px solid var(--green); }

.footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 36px;
}

.footer__logo img { width: 150px; height: auto; }

.footer__nav { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 34px); }
.footer__nav a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; font-weight: 500; transition: color 0.2s ease; }
.footer__nav a:hover { color: #fff; }

.footer__social {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer__social:hover { background: var(--green); border-color: var(--green); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }

.footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  padding-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.46);
}
.footer__base a { color: rgba(255, 255, 255, 0.7); }
.footer__base a:hover { color: #fff; }

/* ---------- révélations au défilement ---------- */

[data-rv] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-rv].in { opacity: 1; transform: none; }

/* ---------- accessibilité / mouvement réduit ---------- */

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__title .line > span { transform: none; animation: none; }
  .hero__sub, .hero__actions, .statement { opacity: 1; animation: none; }
  [data-rv] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}
