/* Habeas Corpus Consulting */

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b2e47;
  --navy-deep: #07223a;
  --yellow: #ffcc00;
  /* couleur chaude réservée aux boutons d'appel à l'action */
  --accent: #c2410c;
  --accent-deep: #9a3412;
  --ink: #16242f;
  --muted: #5a6873;
  --paper: #fbfaf7;
  --tint: #f3f1ec;
  --line: #e2ded6;
  --white: #fff;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 20ch;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

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

.i {
  width: 1em;
  height: 1em;
  flex: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
}
.skip:focus {
  top: 12px;
}

/* ---------- Label : trait jaune repris du logo ---------- */

.label,
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.label::before,
.eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--yellow);
  transform: translateY(-0.3em) rotate(-20deg);
  flex: none;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 250 247 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand img {
  width: 52px;
  height: 52px;
}

.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav,
.langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav {
  gap: 28px;
}
.nav a {
  white-space: nowrap;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.25s;
}
.nav a:hover,
.nav a.is-active {
  background-size: 100% 1px;
}

.langs {
  gap: 4px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.langs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  padding: 4px 6px;
}
.langs a:hover {
  color: var(--ink);
}
.langs a[aria-current] {
  color: var(--navy);
  font-weight: 600;
}
/* drapeaux : légèrement estompés, pleine couleur pour la langue active ou au survol */
.flag {
  flex: none;
  width: 21px;
  height: 14px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.langs a:hover .flag,
.langs a[aria-current] .flag {
  opacity: 1;
}

.nav-toggle {
  display: none;
}

@media (max-width: 1100px) {
  /* backdrop-filter créerait un bloc conteneur pour le menu en position fixe */
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    background: none;
    border: 0;
    padding: 10px 0;
    font: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform 0.25s;
  }
  .nav-toggle-bars::before {
    content: '';
    position: absolute;
    top: 6px;
  }
  .nav-toggle-bars {
    transform: translateY(-3px);
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars {
    transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
    transform: translateY(-6px) rotate(-90deg);
  }

  .menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 24px var(--gutter) 40px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    overflow-y: auto;
  }
  .menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav {
    flex-direction: column;
    gap: 0;
  }
  .nav li {
    border-bottom: 1px solid var(--line);
  }
  .nav a {
    display: block;
    font-family: var(--serif);
    font-size: 1.75rem;
    padding: 14px 0;
    background: none;
  }
  .langs {
    border-left: 0;
    padding: 32px 0 0;
    gap: 8px;
  }
  .langs a {
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid var(--line);
  }
  .langs a[aria-current] {
    border-color: var(--navy);
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(80px, 12vw, 160px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
/* le coin blanc biseauté du logo */
.hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(34vw, 420px);
  aspect-ratio: 3 / 1;
  background: var(--paper);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.hero .eyebrow {
  color: rgb(255 255 255 / 0.7);
}

/* le h1 (descriptif, pour le référencement) garde l'allure d'un surtitre */
.hero h1.eyebrow {
  font-family: var(--sans);
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-wrap: pretty;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin: 0 0 36px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: rgb(255 255 255 / 0.78);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  max-width: 60ch;
  color: rgb(255 255 255 / 0.82);
  margin-bottom: 40px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 72px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn .i {
  transition: transform 0.2s;
}
.btn:hover .i {
  transform: translateX(3px);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover {
  background: var(--yellow);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-deep);
}
.btn-ghost {
  color: var(--white);
  border-color: rgb(255 255 255 / 0.35);
}
.btn-ghost:hover {
  border-color: var(--white);
}

.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.6);
  position: relative;
  z-index: 1;
}

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

.section {
  padding: var(--section) 0;
}
.section-tint {
  background: var(--tint);
}
.section h2 {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px 80px;
  align-items: start;
}
.split h2 {
  margin-bottom: 0;
}
.split + .partners {
  margin-top: clamp(40px, 5vw, 64px);
}

.prose p {
  font-size: 1.125rem;
  line-height: 1.7;
}
.prose p:first-child {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.5;
}

.intro {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0;
  padding-top: 44px;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .intro {
    padding-top: 0;
  }
}

/* ---------- Chiffres ---------- */

.facts {
  margin: clamp(56px, 7vw, 88px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.facts div {
  padding: 28px 28px 0 0;
}
.facts div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.facts dt {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  color: var(--navy);
}
.facts dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .facts div,
  .facts div + div {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Expertises ---------- */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.expertise {
  padding: 40px 48px 24px 0;
}
.expertise:nth-child(even) {
  padding: 40px 0 24px 48px;
  border-left: 1px solid var(--line);
}
.expertise:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}
.expertise .note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.expertise .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.expertise h3 {
  font-size: 1.85rem;
  margin-bottom: 14px;
}
.expertise .lead {
  font-weight: 500;
}
.expertise p {
  color: var(--ink);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2em;
  width: 10px;
  height: 1px;
  background: var(--navy);
}

.boards {
  margin-top: 56px;
  padding: 36px 40px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.boards h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.boards ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.boards li {
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.more {
  margin: 40px 0 0;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow .i {
  transition: transform 0.2s;
}
.link-arrow:hover .i {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .expertise,
  .expertise:nth-child(even) {
    padding: 32px 0 16px;
    border-left: 0;
  }
  .expertise + .expertise {
    border-top: 1px solid var(--line);
  }
  .boards {
    padding: 28px 22px;
  }
}

/* ---------- Équipe ---------- */

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px clamp(28px, 4vw, 56px);
}
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 20px;
  background: var(--tint);
}
.person h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.person .role {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.person .place {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.linkedin {
  display: inline-flex;
  color: var(--navy);
  padding: 4px;
}
.linkedin:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .people {
    grid-template-columns: repeat(2, 1fr);
  }
  /* nombre impair : le dernier portrait est centré sous les autres */
  .person:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 14px);
  }
}
@media (max-width: 420px) {
  .person h3 {
    font-size: 1.3rem;
  }
}

.extended {
  margin-top: clamp(72px, 9vw, 112px);
  display: grid;
  gap: 40px;
  padding-top: clamp(56px, 7vw, 80px);
  border-top: 1px solid var(--line);
}
.extended h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 18px;
}
.extended p {
  font-size: 1.08rem;
}
.extended .join {
  margin-top: 28px;
  color: var(--muted);
  font-size: 1rem;
}
.extended-text {
  max-width: 62ch;
}

/* Mosaïque de l'extended team : au survol, le portrait visé ressort et les autres s'estompent */
.mosaic {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mosaic li {
  overflow: hidden;
  background: var(--tint);
  transition: opacity 0.4s ease;
}
.mosaic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) {
  .mosaic:hover li {
    opacity: 0.35;
  }
  .mosaic li:hover {
    opacity: 1;
  }
  .mosaic li:hover img {
    transform: scale(1.06);
  }
}
@media (min-width: 1000px) {
  .extended {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mosaic li,
  .mosaic img {
    transition: none;
  }
}

/* ---------- Références ---------- */

.client-group + .client-group {
  margin-top: 56px;
}
.client-group h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  padding: 1px 0 0 1px;
}
.logos li {
  background: var(--white);
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
  display: flex;
}
/* la cellule (lien ou bloc) occupe toute la case : toute la surface est cliquable */
.logos .cell {
  flex: 1;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 22px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}
.logos a.cell:focus-visible {
  outline-offset: -3px;
}
.logos .mark {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logos img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  /* contraste renforcé pour que les logos clairs (SIAE, Sage…) restent lisibles */
  filter: grayscale(1) contrast(1.25);
  opacity: 0.85;
  mix-blend-mode: multiply;
  transition: filter 0.3s, opacity 0.3s;
}
.logos img.logo-lg {
  max-height: 60px;
}
.logos li:hover img {
  filter: none;
  opacity: 1;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  color: #5d6770;
}
.country {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 480px) {
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }
  .logos .cell {
    min-height: 100px;
    padding: 16px 10px;
  }
  .logos img {
    max-height: 48px;
  }
}

/* ---------- Partenaires ---------- */

.partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 72px;
}
.partners li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.partners h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.partners h3 a {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.partners h3 a .i {
  width: 0.7em;
  height: 0.7em;
  color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}
.partners h3 a:hover {
  text-decoration: underline;
}
.partners h3 a:hover .i {
  color: var(--navy);
  transform: translate(2px, -2px);
}
.partners p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

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

/* ---------- Contact ---------- */

.contact {
  background: var(--navy);
  color: var(--white);
}
.contact .label {
  color: rgb(255 255 255 / 0.7);
}
.contact h2 {
  margin-bottom: 20px;
}
.contact-lead {
  font-size: 1.15rem;
  color: rgb(255 255 255 / 0.8);
  max-width: 52ch;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 40px 48px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  padding-top: 36px;
}
.contact h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.6);
  margin-bottom: 12px;
}
.contact .h-gap {
  margin-top: 24px;
}
.contact address,
.contact p {
  font-style: normal;
  color: rgb(255 255 255 / 0.88);
  margin: 0;
}
.big-link {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}
.big-link:hover {
  color: var(--yellow);
}

@media (max-width: 1000px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgb(255 255 255 / 0.6);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: rgb(255 255 255 / 0.85);
}
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Mentions légales / 404 ---------- */

.legal {
  padding: clamp(56px, 8vw, 96px) 0 var(--section);
}
.legal h1,
.notfound h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 48px;
}
.legal section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.legal h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  max-width: none;
}
.legal p {
  color: var(--ink);
}
.legal a {
  color: var(--navy);
}

.notfound main {
  padding-top: 20vh;
}

/* ---------- Deux portes d'entrée ---------- */

.paths {
  padding: clamp(48px, 6vw, 72px) 0 0;
}
.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.path {
  display: flex;
  flex-direction: column;
  padding: 36px 40px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.path-investor {
  border-top-color: var(--yellow);
}
.path:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -18px rgb(11 46 71 / 0.35);
}
.path-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.path h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  margin-bottom: 14px;
}
.path p:not(.path-kicker) {
  color: var(--muted);
  flex: 1;
}
.path .link-arrow {
  align-self: flex-start;
  margin-top: 8px;
}
.path:hover .link-arrow .i {
  transform: translateX(3px);
}

@media (max-width: 800px) {
  .paths-grid {
    grid-template-columns: 1fr;
  }
  .path {
    padding: 28px 24px 26px;
  }
}

/* ---------- Questions de dirigeant (expertises) ---------- */

.expertise .question {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 10px;
}

/* ---------- Phrase de conviction ---------- */

.conviction {
  background: var(--navy);
  color: var(--white);
  padding: clamp(72px, 10vw, 128px) 0;
}
.conviction p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: 0;
  text-wrap: balance;
}
.conviction p::before {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--yellow);
  transform: rotate(-20deg);
  margin-bottom: 36px;
}

/* ---------- Témoignages ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--white);
  border: 1px solid var(--line);
}
.quote blockquote {
  margin: 0 0 24px;
  flex: 1;
}
.quote blockquote::before {
  content: '“';
  display: block;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.8;
  height: 0.55em;
  color: var(--navy);
  opacity: 0.25;
}
.quote blockquote p {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0;
}
.quote figcaption {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.quote figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
}
.quote figcaption span,
.quote figcaption em {
  display: block;
  color: var(--muted);
}
.quote figcaption em {
  margin-top: 6px;
  font-size: 0.82rem;
}

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

/* ---------- Apparitions au défilement ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Bandeau de logos sous l'en-tête ---------- */

.trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 20px 56px;
}
.trust-head {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.trust-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.trust-logos img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.25);
  opacity: 0.7;
  mix-blend-mode: multiply;
}
.trust-logos img.logo-lg {
  height: 36px;
}
.trust .link-arrow {
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .trust-logos {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px 28px;
  }
  .trust-logos img {
    height: 26px;
  }
}

/* ---------- Pages de texte : listes ---------- */

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.legal li + li {
  margin-top: 10px;
}

/* ---------- Lisibilité sur mobile : plus d'air entre les paragraphes ---------- */

@media (max-width: 700px) {
  body {
    line-height: 1.7;
  }
  p {
    margin-bottom: 1.35em;
  }
  .prose p {
    font-size: 1.05rem;
  }
  .prose p:first-child {
    font-size: 1.25rem;
  }
  .ticks li {
    padding: 12px 0 12px 22px;
  }
}

/* ---------- Cas client dans une expertise : replié, s'ouvre au clic ---------- */

.expertise .case {
  margin: 24px 0 16px;
  background: var(--paper);
  border-left: 3px solid var(--yellow);
}
.expertise .case summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  transition: background 0.2s;
}
.expertise .case summary::-webkit-details-marker {
  display: none;
}
.expertise .case summary:hover {
  background: var(--white);
}
.case-toggle {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.case-toggle::before,
.case-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s;
}
.case-toggle::after {
  transform: rotate(90deg);
}
.case[open] .case-toggle::after {
  transform: rotate(0deg);
}
.expertise .case p {
  font-size: 0.97rem;
  margin: 0;
  padding: 0 20px 20px;
}

/* ---------- Les quatre expertises dans l'en-tête ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero-offers {
  position: relative;
  z-index: 1;
}
.hero-offers ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}
.hero-offers li {
  border-bottom: 1px solid rgb(255 255 255 / 0.18);
}
.hero-offers a {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  column-gap: 8px;
  padding: 16px 0;
  color: var(--white);
  text-decoration: none;
}
.hero-offer-num {
  grid-row: span 2;
  font-family: var(--serif);
  color: rgb(255 255 255 / 0.5);
  padding-top: 2px;
}
.hero-offer-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
  transition: color 0.2s;
}
.hero-offer-text {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.68);
}
.hero-offers a:hover .hero-offer-title {
  color: var(--yellow);
}
@media (min-width: 1001px) {
  .hero {
    padding-top: clamp(64px, 8vw, 112px);
  }
  .hero-grid .hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
  }
  .hero-grid .actions {
    margin-bottom: 48px;
  }
}
@media (max-width: 1000px) {
  /* sur petit écran : les expertises remontent juste sous le titre, en liste compacte sur deux colonnes */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-main {
    display: contents;
  }
  .hero-grid .eyebrow { order: 1; }
  .hero-grid .hero-title { order: 2; }
  .hero-offers { order: 3; margin-bottom: 32px; }
  .hero-grid .hero-lead { order: 4; }
  .hero-grid .actions { order: 5; }
  .hero-grid .cities { order: 6; }
  .hero-offers ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
  }
  .hero-offers a {
    padding: 12px 0;
  }
  .hero-offer-title {
    font-size: 1.1rem;
  }
  .hero-offer-text {
    display: none;
  }
}
