/* ============================================================
   LINKS Group — design system
   Palette : encre profonde / ivoire / bronze champagne
   Typo    : Fraunces (display) + Inter (texte)
   ============================================================ */

:root {
  --bg: #f5f3ee;
  --surface: #fffefb;
  --ink: #15171b;
  --ink-soft: #3c4148;
  --muted: #6d727a;
  --line: #e3dfd4;
  --line-strong: #d2ccbd;
  --accent: #a2803f;
  --accent-deep: #84662e;
  --accent-soft: rgba(162, 128, 63, 0.1);
  --dark: #101216;
  --dark-2: #16181d;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-text: rgba(255, 255, 255, 0.68);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Fraunces", "Iowan Old Style", "Baskerville", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-body: "Inter", "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button,
select {
  font: inherit;
}

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

/* ---------- Typographie ---------- */

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6.4vw, 84px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

.accent-i {
  color: var(--accent);
  font-style: italic;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 92px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.15);
}

.brand-text strong,
.brand-text span {
  display: block;
  line-height: 1.25;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-soft);
}

.main-nav > a {
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transition: right 260ms var(--ease);
}

.main-nav > a:hover,
.main-nav > a.is-active {
  color: var(--ink);
}

.main-nav > a:hover::after,
.main-nav > a.is-active::after {
  right: 0;
}

.nav-dropdown-trigger {
  color: var(--ink-soft);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown.is-active .nav-dropdown-trigger {
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.nav-dropdown-trigger::after {
  content: "▾";
  color: var(--accent);
  font-size: 0.72em;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 254, 251, 0.98);
  box-shadow: 0 18px 40px rgba(16, 18, 22, 0.12);
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms var(--ease);
  z-index: 30;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 560;
  transition: color 160ms ease, background 160ms ease;
}

.nav-dropdown-menu a:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.language-switch {
  display: flex;
  gap: 2px;
  margin-left: 8px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}

.language-switch a {
  display: inline-flex;
  min-width: 34px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  transition: color 160ms ease, background 160ms ease;
}

.language-switch a:hover {
  color: var(--ink);
}

.language-switch a.is-active {
  color: #fff;
  background: var(--ink);
}

/* ---------- Hero (accueil) ---------- */

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 72px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.6) contrast(1.05);
  transform: scale(1.04);
  animation: hero-drift 22s var(--ease) both;
}

@keyframes hero-drift {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.04);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(162, 128, 63, 0.22), transparent 52%),
    linear-gradient(180deg, rgba(16, 18, 22, 0.42) 0%, rgba(16, 18, 22, 0.24) 42%, rgba(16, 18, 22, 0.92) 100%),
    linear-gradient(90deg, rgba(16, 18, 22, 0.72), rgba(16, 18, 22, 0.16) 64%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(80px, 12vh, 150px) 0 clamp(56px, 8vh, 92px);
}

.hero-content h1 {
  max-width: 15ch;
  margin-bottom: 26px;
  font-size: clamp(46px, 6.8vw, 96px);
  line-height: 1.02;
}

.hero-content .eyebrow {
  color: #cfa961;
}

.hero-content .eyebrow::before {
  background: #cfa961;
}

.hero-content p:not(.eyebrow) {
  max-width: 56ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Boutons ---------- */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 200ms var(--ease), background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #101216;
  background: #fff;
}

.button.primary:hover {
  background: #ece6d8;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: transparent;
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.72);
}

/* Boutons sur fond clair */
main .section .button.primary,
.filter-panel .button.primary {
  color: #fff;
  background: var(--ink);
}

main .section .button.primary:hover,
.filter-panel .button.primary:hover {
  background: #000;
}

.button.secondary.dark {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.button.secondary.dark:hover {
  border-color: var(--ink);
}

.button.full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.text-link::after {
  content: "→";
  color: var(--accent);
  transition: transform 200ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Bandeau logos (marquee) ---------- */

.partner-ticker {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.partner-ticker-label {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 20px;
}

.partner-ticker-label .eyebrow {
  margin-bottom: 0;
}

.partner-ticker-label strong {
  display: none;
}

.partner-ticker-track {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partner-ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: clamp(36px, 4.5vw, 72px);
  min-width: max-content;
  padding: 6px 0;
  animation: partner-marquee 120s linear infinite;
}

.partner-ticker:hover .partner-ticker-inner {
  animation-play-state: paused;
}

@keyframes partner-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partner-ticker-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.partner-ticker-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 72px;
  max-width: 150px;
}

.partner-ticker-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
  mix-blend-mode: multiply;
  transition: filter 220ms ease, opacity 220ms ease;
}

.partner-ticker-link:hover .partner-ticker-logo img {
  filter: grayscale(0);
  opacity: 1;
}

.partner-ticker-fallback {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 560;
  letter-spacing: 0.02em;
  transition: color 200ms ease;
}

.partner-ticker-link:hover .partner-ticker-fallback {
  color: var(--ink);
}

.partner-ticker-name {
  display: none;
}

/* ---------- Chiffres clés ---------- */

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0 0;
}

.metric-strip > div {
  padding: 8px 32px 26px 0;
  border-right: 1px solid var(--line);
}

.metric-strip > div:last-child {
  border-right: 0;
}

.metric-strip > div:nth-child(n + 2) {
  padding-left: 32px;
}

.metric-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 480;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-strip strong sup {
  color: var(--accent);
  font-size: 0.55em;
  vertical-align: 0.5em;
}

.metric-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Sections ---------- */

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head h2 {
  margin-bottom: 0;
  max-width: 22ch;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.split h2 {
  max-width: 18ch;
}

.lead-copy p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
}

.lead-copy p:first-child {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 480;
  line-height: 1.5;
  color: var(--ink);
}

.section-head p,
.page-hero p,
.card p,
.case-row p,
.region-profile-head p {
  color: var(--muted);
}

/* ---------- Piliers commerciaux ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pillar {
  position: relative;
  padding: 30px 28px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 260ms var(--ease), border-color 260ms ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.pillar-index {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
}

.pillar h3 {
  max-width: 18ch;
  margin-bottom: 12px;
  font-size: 23px;
}

.pillar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Cartes catégories / régions ---------- */

.path-grid,
.region-preview {
  display: grid;
  gap: 14px;
}

.path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.region-preview {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.path-card,
.region-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: transform 240ms var(--ease), border-color 240ms ease, background 240ms ease;
}

.path-card::after,
.region-card::after {
  content: "→";
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-size: 17px;
  transition: transform 240ms var(--ease);
}

.path-card:hover,
.region-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.path-card:hover::after,
.region-card:hover::after {
  transform: translateX(5px);
}

.path-card h3,
.region-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.region-card-minimal {
  min-height: 128px;
  padding: 22px 20px;
  justify-content: center;
  background: linear-gradient(180deg, #fffefb 0%, #f9f6ef 100%);
}

.region-card-minimal h3 {
  margin: 0;
  font-size: 18px;
}

.path-card p,
.region-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---------- Méthode (process) ---------- */

.process-band {
  border-top: 1px solid var(--dark-line);
  background: var(--dark);
  color: #fff;
}

.process-band .section-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
}

.process-band .eyebrow {
  color: #cfa961;
}

.process-band .eyebrow::before {
  background: #cfa961;
}

.process-band h2 {
  max-width: 20ch;
  color: #fff;
}

.process-intro {
  max-width: 58ch;
  margin-bottom: clamp(36px, 5vw, 60px);
  color: var(--dark-text);
  font-size: 17px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--dark-line);
}

.process-step {
  padding: 30px 28px 8px 0;
  border-right: 1px solid var(--dark-line);
}

.process-step:nth-child(n + 2) {
  padding-left: 28px;
}

.process-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.process-step-num {
  display: block;
  margin-bottom: 20px;
  color: #cfa961;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
}

.process-step h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 20px;
}

.process-step p {
  color: var(--dark-text);
  font-size: 14.5px;
}

/* ---------- Engagements ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.trust-item-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
}

.trust-item h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.trust-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- CTA final ---------- */

.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 50% 115%, rgba(162, 128, 63, 0.14), transparent 60%),
    var(--surface);
}

.cta-band .section-inner {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
}

.cta-band .eyebrow {
  justify-content: center;
}

.cta-band .eyebrow::before {
  display: none;
}

.cta-band h2 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 58px);
}

.cta-band p {
  max-width: 52ch;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 17px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cta-contact-line {
  margin-top: 30px;
  color: var(--muted);
  font-size: 14.5px;
}

.cta-contact-line a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

/* ---------- Page hero (pages intérieures) ---------- */

.page-hero {
  position: relative;
  padding: clamp(64px, 9vw, 110px) max(24px, calc((100vw - 1240px) / 2)) clamp(52px, 7vw, 88px);
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 130% at 88% -10%, rgba(162, 128, 63, 0.2), transparent 55%),
    radial-gradient(60% 90% at 0% 110%, rgba(162, 128, 63, 0.08), transparent 60%);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
}

.page-hero .eyebrow {
  color: #cfa961;
}

.page-hero .eyebrow::before {
  background: #cfa961;
}

.page-hero h1 {
  max-width: 20ch;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 66px);
}

.page-hero p:not(.eyebrow) {
  max-width: 64ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

/* ---------- Annuaire partenaires ---------- */

.directory-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 96px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-panel h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.filter-panel label {
  display: block;
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 160ms ease;
}

.filter-panel select:hover,
.filter-panel select:focus {
  border-color: var(--accent);
  outline: none;
}

.filter-panel .button {
  margin-top: 24px;
}

.result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.result-head h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.6vw, 34px);
}

#supplierCount {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- Cartes profils ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 260ms var(--ease), border-color 260ms ease, box-shadow 260ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 44px -28px rgba(21, 23, 27, 0.25);
}

.card-media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e9e6de;
  border-bottom: 1px solid var(--line);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.03);
}

/* Logos : traitement uniforme pour tous les partenaires */
.card-media.logo-media {
  background: #fcfbf8;
  padding: 0;
}

.card-media.logo-media img {
  width: auto;
  height: auto;
  max-width: 58%;
  max-height: 52%;
  object-fit: contain;
  object-position: center;
  transition: none;
}

.card:hover .card-media.logo-media img {
  transform: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.card-body .eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.card-body .eyebrow::before {
  display: none;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14.5px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.supplier-title-button,
.partner-title-button,
.case-title-button,
.service-title-button {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.22;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: color 160ms ease;
}

.case-title-button {
  font-size: 26px;
}

.supplier-title-button:hover,
.partner-title-button:hover,
.case-title-button:hover,
.service-title-button:hover {
  color: var(--accent-deep);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(162, 128, 63, 0.35);
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill.neutral {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: transparent;
}

.contact-block {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.card-body .contact-block {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-block strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-block a {
  color: var(--ink-soft);
  font-weight: 550;
  transition: color 150ms ease;
}

.contact-block a:hover {
  color: var(--accent-deep);
}

.contact-block.large {
  max-width: 400px;
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
}

/* ---------- Régions ---------- */

.region-band {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  padding-right: max(24px, calc((100vw - 1240px) / 2));
}

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.region-tabs button,
.content-tabs button {
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 570;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.region-tabs button:hover,
.content-tabs button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.region-tabs button.is-active,
.content-tabs button.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.region-profile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.region-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(26px, 3.4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.region-profile-head h2 {
  margin-bottom: 10px;
}

.region-profile-head p {
  max-width: 72ch;
  margin-bottom: 0;
}

.content-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px clamp(26px, 3.4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.panel-grid {
  padding: clamp(20px, 3vw, 32px);
}

/* ---------- Références (cases) ---------- */

.case-list {
  display: grid;
  gap: 16px;
}

.case-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 260ms var(--ease), box-shadow 260ms ease;
}

.case-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -30px rgba(21, 23, 27, 0.28);
}

.case-row img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  background: #e9e6de;
  border-right: 1px solid var(--line);
}

.case-row img.logo-case-image {
  padding: 36px;
  object-fit: contain;
  background: #fcfbf8;
}

.case-row-content {
  padding: clamp(24px, 3vw, 36px);
}

/* ---------- À propos ---------- */

.about-hero #aboutHeroIntro {
  display: none;
}

.about-story {
  display: grid;
  gap: 0;
}

.about-story article {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 72px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.about-story-head .eyebrow {
  margin-bottom: 18px;
}

.about-story article:last-child {
  border-bottom: 0;
}

.about-story h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.about-story p {
  max-width: 66ch;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.75;
}

.about-story p:last-child {
  margin-bottom: 0;
}

.visual-panel {
  align-items: center;
}

.visual-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

#contact.visual-panel img {
  width: min(240px, 100%);
  aspect-ratio: auto;
  align-self: start;
  justify-self: start;
  object-fit: contain;
  border: 0;
  background: transparent;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.12);
}

/* ---------- Modal ---------- */

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 22, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.detail-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 32px));
  max-height: min(88vh, 940px);
  margin: 5vh auto;
  padding: clamp(28px, 4vw, 44px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.34);
  animation: modal-in 320ms var(--ease) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.detail-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.detail-modal-close:hover {
  color: #fff;
  background: var(--ink);
}

.detail-modal-dialog h3 {
  max-width: 24ch;
  font-size: clamp(26px, 3.4vw, 36px);
}

.detail-modal-body {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.75;
}

.detail-modal-body p:last-child {
  margin-bottom: 0;
}

.partner-profile-detail {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.partner-profile-section h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
}

.partner-profile-section p {
  margin: 0;
}

.document-pages {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.document-page {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.document-page-label {
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.document-page h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.document-page p {
  font-size: 15px;
  color: var(--muted);
}

details.service-gallery {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}

details.service-gallery > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
}

details.service-gallery > summary::-webkit-details-marker {
  display: none;
}

details.service-gallery > summary::after {
  content: "›";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  transition: transform 200ms var(--ease);
}

details.service-gallery[open] > summary::after {
  transform: rotate(90deg);
}

.service-gallery-count {
  flex: 0 0 auto;
  padding: 3px 12px;
  border: 1px solid rgba(162, 128, 63, 0.35);
  border-radius: 999px;
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.service-gallery-pages {
  padding: 0 22px 22px;
  display: grid;
  gap: 16px;
}

.service-gallery-page {
  margin: 0;
}

.service-gallery-page img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.service-gallery-page figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

body.has-modal-open {
  overflow: hidden;
}

/* ---------- Divers hérités ---------- */

.service-hint {
  margin-bottom: 0;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card-body {
  display: grid;
  gap: 16px;
  padding: 30px;
}

.contact-card-lines span {
  display: block;
}

.contact-card-spread {
  max-width: 720px;
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 72px);
  color: var(--dark-text);
  background: var(--dark);
  font-size: 14.5px;
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 560;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 150ms ease;
}

.site-footer a:hover {
  color: #cfa961;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 12px 26px;
  padding-top: 8px;
}

/* ---------- Apparition au scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero > img,
  .partner-ticker-inner {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .pillar-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-grid,
  .region-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
    padding: 26px 0 22px;
  }

  .process-step:nth-child(n + 2) {
    padding-left: 0;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .metric-strip > div:nth-child(n + 2) {
    padding-left: 0;
  }

  .metric-strip > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .split,
  .directory-layout,
  .case-row,
  .site-footer,
  .about-story article,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .case-row img {
    min-height: 200px;
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-panel {
    position: static;
  }

  .section-head,
  .region-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 0;
    padding: 10px 18px 8px;
  }

  .brand-logo {
    width: 72px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .main-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px 14px;
    font-size: 13.5px;
  }

  .language-switch {
    margin-left: 0;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-meta {
    gap: 8px 18px;
    font-size: 12px;
  }

  .metric-strip,
  .path-grid,
  .region-preview,
  .card-grid,
  .pillar-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .metric-strip > div:last-child {
    border-bottom: 0;
  }

  .region-tabs,
  .content-tabs {
    gap: 6px;
  }

  .region-tabs button,
  .content-tabs button {
    min-height: 40px;
    padding: 7px 15px;
    font-size: 13px;
  }
}
