/*
 * Design system Respawn HR — fait main, zéro build (charte : mutualisé FTP).
 * Titres : Newsreader (emphases en italique). Texte : Instrument Sans.
 * Noir #242424 · Beige #C17F59 · CTA pilule 16/48 · easing cubic-bezier(1,0,0,1).
 */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/Newsreader-VariableFont_opsz_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/Newsreader-Italic-VariableFont_opsz_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-VariableFont_wdth_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #242424;
  --beige: #c17f59;
  --accent: var(--beige); /* couleur d'accent (CTA, lien actif du menu) */
  --beige-dark: #a3663f;
  --beige-wash: rgba(193, 127, 89, 0.12);
  --paper: #ffffff;
  --shell: #f6f0ea;
  --line: rgba(36, 36, 36, 0.1);
  --muted: #6f6862;
  --radius: 28px;
  --ease: cubic-bezier(1, 0, 0, 1);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink-soft: rgba(36, 36, 36, 0.72);
  --container: 1180px;
  --gutter: 12px;
  --header-h: 64px; /* recalé sur la hauteur réelle de la barre par site.js */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 42rem; }
.section { padding-block: 3rem; }
.muted { color: var(--muted); }

a { color: var(--beige-dark); transition: color 0.3s var(--ease); }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: inherit; color: var(--beige); }

img { max-width: 100%; height: auto; border-radius: calc(var(--radius) - 8px); }

.skip {
  position: absolute;
  inset-inline-start: -100vw;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
.skip:focus { inset-inline-start: 0.5rem; top: 0.5rem; z-index: 10; }

/* --- Transitions de page (View Transitions API, navigation multi-pages) ------
   Fondu entre chaque page, sans JS : le navigateur capture l'ancienne page,
   charge la suivante et fond l'une dans l'autre. Navigateurs sans support :
   navigation classique, rien ne casse. Coupé si prefers-reduced-motion. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.8, 0, 0, 0.8);
}
::view-transition-old(root) { animation-name: page-fade-out; }
::view-transition-new(root) { animation-name: page-fade-in-up; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in-up { from { opacity: 0; transform: translateY(24px); } }
/* L'en-tête reste en place pendant que la page change (fondu sur place). */
.header-bar { view-transition-name: site-header; }
::view-transition-group(site-header) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.8, 0, 0, 0.8);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* --- Boutons : pilules, padding 16/48 -------------------------------------- */
/* .rt-button__link = bouton CTA du richtext (article, offre…) : MÊMES pilules. */
.button,
.rt-button__link {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    color 0.4s var(--ease), transform 0.4s var(--ease);
}
.button:hover,
.rt-button__link:hover { background: var(--beige); border-color: var(--beige); color: #fff; transform: translateY(-2px); }
.button-outline,
.rt-button__link--secondary { background: transparent; color: var(--ink); }
.button-outline:hover,
.rt-button__link--secondary:hover { background: var(--beige); border-color: var(--beige); color: #fff; }
.button-accent { background: var(--beige); border-color: var(--beige); }
.button-accent:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-small { padding: 10px 24px; font-size: 0.92rem; }
.button-invert { background: #fff; border-color: #fff; color: var(--ink); }
.button-invert:hover { background: var(--beige); border-color: var(--beige); color: #fff; }

/* --- Header morphé dans le hero (congés inversés) ---------------------------
 * La coque est transparente et réserve la hauteur de la barre (min-height posé
 * par site.js) ; le hero remonte derrière elle (marge négative) et porte seul
 * le fond dégradé — le morph est continu et ne casse sur aucune page. */
.header-shell {
  position: relative;
  z-index: 5;
  margin: var(--gutter) var(--gutter) 0;
  min-height: var(--header-h);
}
/* Filet de sécurité : une vue sans hero garde une coque teintée autonome. */
body:not(.has-hero) .header-shell {
  background: var(--shell);
  border-radius: var(--radius);
}

.header-bar {
  /* Toujours ≥ 28px d'air de chaque côté : les congés (22px) passent partout. */
  max-width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
  background: var(--paper);
  border-radius: 0 0 22px 22px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.5rem;
}
/* Congés inversés : le bandeau blanc se fond dans ce qu'il surplombe. */
.header-bar::before,
.header-bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
}
.header-bar::before {
  left: -22px;
  background: radial-gradient(circle at 0 100%, transparent 21.5px, var(--paper) 22px);
}
.header-bar::after {
  right: -22px;
  background: radial-gradient(circle at 100% 100%, transparent 21.5px, var(--paper) 22px);
}
/* Barre détachée au scroll : collée au bord haut, onglet à congés inversés
 * par rapport au contenu qu'elle survole — sans ombre, le morph continue. */
body.header-stuck .header-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 80px), var(--container));
  z-index: 60;
  border-radius: 0 0 22px 22px;
  background: var(--paper);
  animation: bar-in 0.55s var(--ease);
}

@keyframes bar-in {
  from { transform: translate(-50%, -130%); }
  to { transform: translate(-50%, 0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { display: block; height: 24px; width: auto; border-radius: 0; }
.site-nav { display: flex; gap: 1.6rem; margin-inline: auto; flex-wrap: wrap; }
/* Desktop étroit : on resserre pour garder menu + Contact + langues sur une ligne. */
@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav { gap: 0.9rem; }
  .header-actions { gap: 0.7rem; }
}
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.site-nav a:hover { color: var(--beige-dark); }
.site-nav a[aria-current="page"],
.mobile-menu__nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.lang-switch { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; }
.lang-globe { width: 16px; height: 16px; color: var(--muted); flex: none; }
.lang-sep { color: rgba(36, 36, 36, 0.25); font-weight: 300; }
.lang-switch span[aria-current] { font-weight: 700; }
.lang-switch a { text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--beige-dark); }

/* --- Header mobile : logo à gauche · burger rond à droite ------------------- */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
.menu-toggle svg,
.menu-close svg { width: 20px; height: 20px; }
.menu-toggle:hover { background: var(--shell); }

@media (max-width: 900px) {
  .header-bar { justify-content: space-between; flex-wrap: nowrap; }
  .header-bar .site-nav,
  .header-bar .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* --- Menu mobile : ouverture en rideau (clip-path) -------------------------- */
.mobile-menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.mobile-menu[aria-hidden="false"],
.mobile-menu.is-closing { visibility: visible; }

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 36, 36, 0.35);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu[aria-hidden="false"] .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-closing .mobile-menu__backdrop { opacity: 0; }

.mobile-menu__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.75rem 2rem;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}
.mobile-menu[aria-hidden="false"] .mobile-menu__panel {
  animation: 0.44s cubic-bezier(1, 0.8, 0, 0) forwards menu-reveal;
}
.mobile-menu.is-closing .mobile-menu__panel {
  animation: 0.34s cubic-bezier(1, 0.8, 0, 0) forwards menu-conceal;
}

@keyframes menu-reveal {
  0% { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
  35% { clip-path: polygon(15% 0, 100% 0, 100% 100%, 22% 100%); }
  65% { clip-path: polygon(3% 0, 100% 0, 100% 100%, 6% 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@keyframes menu-conceal {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  40% { clip-path: polygon(22% 0, 100% 0, 100% 100%, 12% 100%); }
  100% { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
.menu-close:hover { background: var(--shell); }

.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__nav a {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
}
.mobile-menu__nav a:hover { color: var(--beige-dark); }

.mobile-menu__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

html.menu-open { overflow: hidden; }

/* --- Hero ------------------------------------------------------------------- */
.hero {
  background-color: var(--shell);
  background-image:
    radial-gradient(at 40% 20%, hsla(36, 28%, 86%, 0.5) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(18, 47%, 67%, 0.32) 0px, transparent 50%),
    radial-gradient(at 57% 28%, hsla(44, 83%, 68%, 0.24) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.5) 0px, transparent 50%),
    radial-gradient(at 1% 5%, hsla(250, 78%, 77%, 0.3) 0px, transparent 50%);
  margin: var(--gutter) var(--gutter) 0;
  border-radius: var(--radius);
  padding: calc(4rem + var(--header-h)) 1.25rem 5.5rem;
  text-align: left;
}
/* Le hero glisse sous la barre : une seule surface, dégradé continu. */
body.has-hero .hero { margin-top: calc(-1 * var(--header-h)); }

/* Une colonne sur mobile ; texte à gauche + carte photo à droite dès 901px. */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 3.5rem; }
  .hero { padding-top: calc(5rem + var(--header-h)); padding-bottom: 6.5rem; }
}
.hero-copy .hero-subtitle { margin: 0 0 2.25rem; max-width: 34rem; }
.hero-copy .hero-actions { justify-content: flex-start; }

.hero-mini { padding: calc(2.25rem + var(--header-h)) 1.25rem 2.75rem; text-align: center; }

/* Variante centrée du hero (pages internes) : sans photo, proof en ligne. */
.hero--centre { text-align: center; padding-bottom: 4rem; }
.hero-centre-inner { max-width: 740px; margin-inline: auto; }
.hero--centre h1 { font-size: clamp(2.6rem, 6vw, 3.6rem); }
.hero--centre .hero-subtitle { margin-inline: auto; }
.hero--centre .proof-inline { margin-bottom: 0; }
.hero-mini h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin: 0 0 0.5rem; }
.hero-mini .hero-subtitle { margin-bottom: 0.5rem; }
.hero-mini .meta { justify-content: center; }
.hero-mini .back { text-decoration: none; color: var(--muted); }
.hero-mini .back:hover { color: var(--beige-dark); }
.hero-mini .button { margin-top: 1rem; }

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 80px;
  background: transparent;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
}
/* Fond légèrement blanc uniquement dans le hero (sur le dégradé). */
.hero .eyebrow { background: rgba(255, 255, 255, 0.6); }

.hero h1 {
  font-size: clamp(3rem, 7vw, 4rem);
  margin: 0 0 1.25rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 40rem;
  margin: 0 auto 2.25rem;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* --- Carte photo du hero : encoche + congés inversés par DÉCOUPE ------------
 * Le fond derrière le badge est une photo (et le dégradé du hero) : impossible
 * de peindre les congés avec un ::before blanc. On découpe donc la photo
 * elle-même (mask additif : 3 rectangles + 3 congés + 1 coin rentrant) et le
 * badge blanc se pose dans l'encoche. --pw/--ph = taille du badge (site.js). */
.hero-media {
  position: relative;
  --pw: 300px;
  --ph: 60px;
  --pr: 22px;
}
.hero-media-frame {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  -webkit-mask:
    linear-gradient(#000 0 0) left var(--pr) top 0 / calc(100% - var(--pr)) calc(100% - var(--ph)) no-repeat,
    linear-gradient(#000 0 0) left 0 top 0 / var(--pr) calc(100% - var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) left 0 bottom var(--ph) / var(--pr) var(--pr) no-repeat,
    linear-gradient(#000 0 0) left calc(var(--pw) + var(--pr)) bottom 0 / calc(100% - var(--pw) - var(--pr)) var(--ph) no-repeat,
    linear-gradient(#000 0 0) left var(--pw) bottom var(--pr) / var(--pr) calc(var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) left var(--pw) bottom 0 / var(--pr) var(--pr) no-repeat,
    radial-gradient(circle at 0 100%, transparent calc(var(--pr) - 0.5px), #000 var(--pr)) left calc(var(--pw) - var(--pr)) bottom calc(var(--ph) - var(--pr)) / var(--pr) var(--pr) no-repeat;
  mask:
    linear-gradient(#000 0 0) left var(--pr) top 0 / calc(100% - var(--pr)) calc(100% - var(--ph)) no-repeat,
    linear-gradient(#000 0 0) left 0 top 0 / var(--pr) calc(100% - var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) left 0 bottom var(--ph) / var(--pr) var(--pr) no-repeat,
    linear-gradient(#000 0 0) left calc(var(--pw) + var(--pr)) bottom 0 / calc(100% - var(--pw) - var(--pr)) var(--ph) no-repeat,
    linear-gradient(#000 0 0) left var(--pw) bottom var(--pr) / var(--pr) calc(var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) left var(--pw) bottom 0 / var(--pr) var(--pr) no-repeat,
    radial-gradient(circle at 0 100%, transparent calc(var(--pr) - 0.5px), #000 var(--pr)) left calc(var(--pw) - var(--pr)) bottom calc(var(--ph) - var(--pr)) / var(--pr) var(--pr) no-repeat;
}
.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.hero-photo--placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #ead9c9, var(--beige) 60%, #8f5a38);
}

/* Badge preuve sociale, posé SANS FOND dans l'encoche découpée : le dégradé
 * du hero visible à travers la découpe est le fond. */
.hero-proof {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 6px 14px 6px 4px;
}
.hero-avatars { display: flex; }
.hero-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #f6f0ea;
  object-fit: cover;
}
.hero-avatars img + img { margin-left: -10px; }
.hero-proof-text { text-align: left; min-width: 0; }
.hero-stars { display: flex; gap: 0; color: var(--ink); }
.hero-stars svg { width: 12px; height: 12px; }

/* Marquee infini : piste dupliquée ×2, translation de −50 %, fondu dégradé
 * sur les bords. En reduced-motion l'animation globale est coupée (texte fixe). */
.hero-marquee {
  overflow: hidden;
  max-width: 200px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.hero-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: proof-marquee 18s linear infinite;
}
.hero-proof:hover .hero-marquee-track,
.cta-proof:hover .hero-marquee-track,
.proof-inline:hover .hero-marquee-track { animation-play-state: paused; }
.hero-marquee-track span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  padding-right: 0.4em;
}
@keyframes proof-marquee {
  to { transform: translateX(-50%); }
}

/* --- Sections --------------------------------------------------------------- */
.section-heading { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 1.75rem; }
.eyebrow-caps {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 450;
  letter-spacing: 0.08em;
}

/* --- Section Expertise ------------------------------------------------------- */
.expertise { padding-block: 5rem; }
/* Fond beige : bande arrondie ; la carte vision claire passe en blanc. */
.expertise--beige { background: var(--shell); }
.expertise--beige .vision-card { background: var(--paper); }
.expertise--inverse.expertise--beige .vision-card { background: var(--beige); }
.expertise-head { max-width: 50%; margin-bottom: 2.75rem; }
.expertise-head .eyebrow,
.method-head .eyebrow { margin: 0 0 1.1rem; }
.expertise-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0 0 1rem; }
.expertise-head p { margin: 0; max-width: 30rem; }

.expertise-grid {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 3.5rem;
}
.expertise-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}
.expertise-photo--placeholder {
  background: linear-gradient(140deg, #ead9c9, var(--beige) 60%, #8f5a38);
}

.vision-card {
  position: relative;
  background: var(--shell);
  border-radius: calc(var(--radius) - 4px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}
.vision-eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.vision-quote {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: auto;
  height: 200px;
  opacity: 0.05;
  border-radius: 0;
  pointer-events: none;
}
.vision-body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.vision-body p { margin: 0; font-weight: 400; }
.vision-body .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 13px 24px;
}
.button-icon { width: 16px; height: 16px; }

/* Variante « inverse » : carte foncée (beige plein) à gauche, image à droite. */
.expertise--inverse .expertise-grid { grid-template-columns: 35fr 65fr; }
.expertise--inverse .expertise-media { order: 2; }
.expertise--inverse .vision-card { order: 1; background: var(--beige); }
.expertise--inverse .vision-eyebrow { color: rgba(255, 255, 255, 0.85); }
.expertise--inverse .vision-body p { color: #fff; }
.expertise--inverse .vision-quote { filter: invert(1); opacity: 0.18; }
.expertise--inverse .vision-body .button {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.expertise--inverse .vision-body .button:hover {
  background: #fff;
  border-color: #fff;
  color: var(--beige-dark);
}

.expertise-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.expertise-icon { width: 22px; height: 22px; }
.expertise-item h3 { margin: 0.7rem 0 0.45rem; font-size: 1.3rem; }
.expertise-item p { margin: 0; font-size: 0.95rem; opacity: 0.8; }

/* Bande : toute section interne à fond coloré reprend la forme du hero —
 * gouttières latérales + radius (16px sur mobile via le token). */
.band {
  margin-inline: var(--gutter);
  border-radius: var(--radius);
}

/* --- Section Méthode : bande shell, cartes image numérotées ------------------ */
.method { background: var(--shell); padding-block: 5rem; }
.method-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.method-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0; max-width: 32rem; }
.method-text { margin: 1rem 0 0; max-width: 28rem; }
.method-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
/* Variante claire : fond blanc, pas de bande. */
.method--clair { background: transparent; }

.method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.method-card {
  position: relative;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}
.method-card-media { position: absolute; inset: 0; }
.method-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
/* Placeholders (cartes sans image) : dégradés dans la palette. */
.method-card:nth-child(3n + 1) .method-card-media { background: linear-gradient(150deg, #b58a68, #7a4a2e); }
.method-card:nth-child(3n + 2) .method-card-media { background: linear-gradient(155deg, #242424, #3d2f3f 55%, #74465a); }
.method-card:nth-child(3n) .method-card-media { background: linear-gradient(150deg, #a5917d, #57493c); }
/* Voile de lisibilité au-dessus de l'image. */
.method-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 17, 14, 0.82), rgba(22, 17, 14, 0.24) 55%, rgba(22, 17, 14, 0.12));
}
.method-num {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.method-ico {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: #fff;
}
.method-ico svg { width: 16px; height: 16px; }
.method-card-body { position: relative; z-index: 1; }
.method-card-body h3 { color: #fff; font-size: 1.5rem; margin: 0 0 0.5rem; }
.method-card-body p { margin: 0; font-size: 0.93rem; color: rgba(255, 255, 255, 0.92); }

/* Carte mise en avant : sombre même sans image (spécificité > placeholders nth). */
.method-cards .method-card--featured .method-card-media { background: linear-gradient(150deg, #222020, #33232a 65%, #47263a); }

/* Cartes plates (variante flat, sans image) : beiges, texte ink, sans voile. */
.method--flat .method-card { min-height: 260px; }
.method-card--flat { color: var(--ink); }
.method-cards .method-card--flat .method-card-media { background: var(--shell); }
.method-card--flat::after { content: none; }
.method-card--flat .method-num { color: var(--ink-soft); }
.method-card--flat .method-card-body h3 { color: var(--ink); }
.method-card--flat .method-card-body p { color: var(--ink-soft); }

.method-foot { display: flex; justify-content: center; margin-top: 2.75rem; }

/* --- Section Offres : en-tête factorisé (method-head) + cartes claire/sombre - */
.offers { padding-block: 5rem; }
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.offer-card {
  background: var(--shell);
  border-radius: calc(var(--radius) - 4px);
  padding: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.offer-card--featured {
  background: linear-gradient(150deg, #222020, #33232a 65%, #47263a);
  color: #fff;
}
.offer-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}
.offer-ico svg { width: 17px; height: 17px; }
.offer-card--featured .offer-ico { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.offer-label {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.offer-badge {
  background: #96e6c7;
  color: #14342a;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.offer-text { margin: auto 0 0; }
.offer-card--featured .offer-text { color: rgba(255, 255, 255, 0.92); }
.offer-card .button { margin-top: 0.4rem; padding: 13px 32px; }
/* Carte avec image de fond : photo en cover + voile sombre (même famille
   que les cartes méthode), contenu en blanc au-dessus. */
.offer-card--image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
}
.offer-card-media { position: absolute; inset: 0; z-index: -1; }
.offer-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 17, 14, 0.88), rgba(22, 17, 14, 0.55) 55%, rgba(22, 17, 14, 0.35));
}
.offer-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.offer-card--image .offer-ico { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.offer-card--image .offer-text { color: rgba(255, 255, 255, 0.92); }

@media (max-width: 900px) {
  .offers { padding-block: 3.5rem; }
  .offers-grid { grid-template-columns: 1fr; }
  .offer-card { min-height: 260px; }
}

/* --- Section Citation : carte-citation (3 tons, 2 positions) + image --------- */
.quote-section { padding-block: 5rem; }
.quote-section--beige { background: var(--shell); }
.quote-section .method-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 36rem; }
.quote-grid {
  display: grid;
  grid-template-columns: 35fr 65fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 0.5rem;
}
.quote-grid--droite { grid-template-columns: 65fr 35fr; }
.quote-grid--droite .quote-card { order: 2; }
.quote-grid--droite .quote-media { order: 1; }
.quote-card { width: 100%; }
.quote-card .vision-body p { font-weight: 400; }
.quote-author {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin: -0.5rem 0 0;
}
.quote-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 12px 28px;
}
.quote--claire { background: var(--paper); border: 1px solid var(--line); }
.quote--beige { background: var(--beige); }
.quote--sombre { background: linear-gradient(150deg, #222020, #33232a 65%, #47263a); }
.quote--beige, .quote--sombre { color: #fff; }
.quote--beige .vision-eyebrow, .quote--sombre .vision-eyebrow { color: rgba(255, 255, 255, 0.85); }
.quote--beige .vision-body p, .quote--sombre .vision-body p { color: #fff; }
.quote--beige .vision-quote, .quote--sombre .vision-quote { filter: invert(1); opacity: 0.18; }
.quote--beige .button, .quote--sombre .button { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.quote--beige .button:hover, .quote--sombre .button:hover { background: #fff; border-color: #fff; color: var(--beige-dark); }
.quote-items { margin-top: 2.75rem; }
/* Desktop : rail « swipe » à la souris UNIQUEMENT au-delà de 3 items (classe
 * posée par le gabarit) — ~2,8 cartes visibles, fondu aux bords, sans snap.
 * À 3 items ou moins : grille normale. Mobile : comportement rail existant. */
@media (min-width: 901px) {
  .quote-items--rail {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    /* Au repos : fondu à droite seulement (la 1re carte reste nette) ;
     * dès qu'on a scrollé (classe posée par site.js) : fondu des deux côtés. */
    -webkit-mask-image: linear-gradient(to right, #000 94%, transparent);
    mask-image: linear-gradient(to right, #000 94%, transparent);
  }
  .quote-items--rail.is-scrolled {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 94%, transparent);
  }
  .quote-items--rail::-webkit-scrollbar { display: none; }
  .quote-items--rail.is-dragging { cursor: grabbing; }
  .quote-items--rail .expertise-item { flex: 0 0 calc((100% - 4rem) / 2.8); }
}

@media (max-width: 900px) {
  .quote-section { padding-block: 3.5rem; }
  .quote-grid,
  .quote-grid--droite { grid-template-columns: 1fr; }
  .quote-grid--droite .quote-card { order: 0; }
  .quote-grid--droite .quote-media { order: 0; }
}

/* --- Section Services (packs) : cartes bordées + chips ----------------------- */
.services { padding-block: 5rem; }
.services--beige { background: var(--shell); }
.services--beige .service-card { border-color: transparent; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}
.service-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}
.service-ico svg { width: 16px; height: 16px; }
.service-text { margin: 0; font-size: 0.9rem; }
.service-chips {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service-chips li {
  background: var(--beige-wash);
  color: var(--beige-dark);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .services { padding-block: 3.5rem; }
  /* Même rail horizontal que les cartes méthode. */
  .services-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 min(78vw, 300px); }
}

/* --- Section À propos : bande shell, portrait + chiffres clés ---------------- */
.about { background: var(--shell); padding-block: 5rem; }
.about-grid {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 2.5rem;
  align-items: stretch;
}
.about-copy .eyebrow { margin: 0 0 1.1rem; }
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0 0 1rem; }
.about-copy > p { margin: 0; max-width: 26rem; }

.about-facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: 22rem;
}
.about-fact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.about-fact:last-child { border-bottom: 0; }
.about-fact-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--beige-wash);
  color: var(--beige-dark);
  border-radius: 10px;
}
.about-fact-icon svg { width: 16px; height: 16px; }

/* Portrait carvé (technique du hero, en double) : deux wrappers imbriqués
 * portant chacun un mask — les masks se composent, la photo est découpée en
 * bas-gauche (carte beige) ET en haut-droit (carte blanche). Les encoches
 * (--pw/--ph par élément) sont calées sur les cartes par site.js. */
.about-media { position: relative; min-height: 580px; }
.about-media-frame {
  height: 100%;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  --pw: 210px;
  --ph: 150px;
  --pr: 22px;
}
.about-media-frame-inner {
  height: 100%;
  --pw: 180px;
  --ph: 140px;
  --pr: 22px;
}
/* Encoche bas-gauche (mêmes 7 couches que le hero). */
.carve-bl {
  -webkit-mask:
    linear-gradient(#000 0 0) left var(--pr) top 0 / calc(100% - var(--pr)) calc(100% - var(--ph)) no-repeat,
    linear-gradient(#000 0 0) left 0 top 0 / var(--pr) calc(100% - var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) left 0 bottom var(--ph) / var(--pr) var(--pr) no-repeat,
    linear-gradient(#000 0 0) left calc(var(--pw) + var(--pr)) bottom 0 / calc(100% - var(--pw) - var(--pr)) var(--ph) no-repeat,
    linear-gradient(#000 0 0) left var(--pw) bottom var(--pr) / var(--pr) calc(var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) left var(--pw) bottom 0 / var(--pr) var(--pr) no-repeat,
    radial-gradient(circle at 0 100%, transparent calc(var(--pr) - 0.5px), #000 var(--pr)) left calc(var(--pw) - var(--pr)) bottom calc(var(--ph) - var(--pr)) / var(--pr) var(--pr) no-repeat;
  mask:
    linear-gradient(#000 0 0) left var(--pr) top 0 / calc(100% - var(--pr)) calc(100% - var(--ph)) no-repeat,
    linear-gradient(#000 0 0) left 0 top 0 / var(--pr) calc(100% - var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) left 0 bottom var(--ph) / var(--pr) var(--pr) no-repeat,
    linear-gradient(#000 0 0) left calc(var(--pw) + var(--pr)) bottom 0 / calc(100% - var(--pw) - var(--pr)) var(--ph) no-repeat,
    linear-gradient(#000 0 0) left var(--pw) bottom var(--pr) / var(--pr) calc(var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) left var(--pw) bottom 0 / var(--pr) var(--pr) no-repeat,
    radial-gradient(circle at 0 100%, transparent calc(var(--pr) - 0.5px), #000 var(--pr)) left calc(var(--pw) - var(--pr)) bottom calc(var(--ph) - var(--pr)) / var(--pr) var(--pr) no-repeat;
}
/* Encoche haut-droit : miroir exact (axes inversés). */
.carve-tr {
  -webkit-mask:
    linear-gradient(#000 0 0) right var(--pr) bottom 0 / calc(100% - var(--pr)) calc(100% - var(--ph)) no-repeat,
    linear-gradient(#000 0 0) right 0 bottom 0 / var(--pr) calc(100% - var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) right 0 top var(--ph) / var(--pr) var(--pr) no-repeat,
    linear-gradient(#000 0 0) right calc(var(--pw) + var(--pr)) top 0 / calc(100% - var(--pw) - var(--pr)) var(--ph) no-repeat,
    linear-gradient(#000 0 0) right var(--pw) top var(--pr) / var(--pr) calc(var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) right var(--pw) top 0 / var(--pr) var(--pr) no-repeat,
    radial-gradient(circle at 100% 0, transparent calc(var(--pr) - 0.5px), #000 var(--pr)) right calc(var(--pw) - var(--pr)) top calc(var(--ph) - var(--pr)) / var(--pr) var(--pr) no-repeat;
  mask:
    linear-gradient(#000 0 0) right var(--pr) bottom 0 / calc(100% - var(--pr)) calc(100% - var(--ph)) no-repeat,
    linear-gradient(#000 0 0) right 0 bottom 0 / var(--pr) calc(100% - var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) right 0 top var(--ph) / var(--pr) var(--pr) no-repeat,
    linear-gradient(#000 0 0) right calc(var(--pw) + var(--pr)) top 0 / calc(100% - var(--pw) - var(--pr)) var(--ph) no-repeat,
    linear-gradient(#000 0 0) right var(--pw) top var(--pr) / var(--pr) calc(var(--ph) - var(--pr)) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--pr) - 0.5px), transparent var(--pr)) right var(--pw) top 0 / var(--pr) var(--pr) no-repeat,
    radial-gradient(circle at 100% 0, transparent calc(var(--pr) - 0.5px), #000 var(--pr)) right calc(var(--pw) - var(--pr)) top calc(var(--ph) - var(--pr)) / var(--pr) var(--pr) no-repeat;
}
.about-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
/* Taupe neutre (et non beige) : les cartes blanche ET beige doivent trancher. */
.about-photo--placeholder { background: linear-gradient(150deg, #7d7168, #57493c 55%, #37312c); }

/* Cartes chiffres posées dans les encoches — SANS fond : le beige de la bande,
 * visible à travers la découpe, est le fond (même logique que le proof du hero). */
/* Chiffre à gauche, libellé sur ~2 lignes à droite, centrés verticalement. */
.stat-card {
  position: absolute;
  background: transparent;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.stat-card--top { top: 0; right: 0; }
.stat-card--bottom { bottom: 0; left: 0; }
.stat-value {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-plus { font-size: 1.35rem; font-weight: 500; }
.stat-label {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  max-width: 7.5rem;
  color: var(--ink-soft);
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

/* Variante simple (page À propos) : fond blanc, texte long, CTA plein —
 * le portrait garde la découpe carvée de la home (encoches sur fond blanc). */
.about--simple { background: var(--paper); }
.about--simple .about-copy > p { margin: 0 0 1rem; max-width: 30rem; }

@media (max-width: 900px) {
  .about { padding-block: 3.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 460px; }
}

@media (max-width: 900px) {
  .method { padding-block: 3.5rem; }
  .method-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  /* Rail horizontal sans snap ni mask : full-bleed + padding latéral pour que
   * les positions de départ et de fin collent les cartes aux bords du contenu. */
  .method-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scrollbar-width: none;
  }
  .method-cards::-webkit-scrollbar { display: none; }
  .method-card { flex: 0 0 min(78vw, 320px); min-height: 300px; }
}

@media (max-width: 900px) {
  .expertise { padding-block: 3.5rem; }
  .expertise-head { max-width: 100%; }
  /* La variante inverse a une spécificité supérieure : on la couvre aussi. */
  .expertise-grid,
  .expertise--inverse .expertise-grid { grid-template-columns: 1fr; }
  .expertise-photo { min-height: 0; }
  .vision-card { min-height: 340px; }
  /* Les 3 blocs défilent horizontalement (sans snap), fondu aux bords. */
  .expertise-items {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  }
  .expertise-items::-webkit-scrollbar { display: none; }
  .expertise-item { flex: 0 0 260px; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--shell);
  border-radius: calc(var(--radius) - 8px);
  padding: 1.6rem 1.75rem;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.feature-card p { margin: 0; color: var(--ink); }

/* Section CTA finale : même dégradé mesh que le hero, carte blanche centrée. */
.cta-section {
  background-color: var(--shell);
  background-image:
    radial-gradient(at 40% 20%, hsla(36, 28%, 86%, 0.5) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(18, 47%, 67%, 0.32) 0px, transparent 50%),
    radial-gradient(at 57% 28%, hsla(44, 83%, 68%, 0.24) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.5) 0px, transparent 50%),
    radial-gradient(at 1% 5%, hsla(250, 78%, 77%, 0.3) 0px, transparent 50%);
  padding: 5rem 1.25rem;
}
.cta-card {
  max-width: 1040px;
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 3.25rem 2rem 3rem;
  text-align: center;
}
.cta-card .eyebrow { margin: 0 0 1.1rem; }
.cta-card h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin: 0 0 1rem; }
.cta-card > p { max-width: 34rem; margin: 0 auto; }
.cta-proof,
.proof-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-block: 1.75rem;
  flex-wrap: wrap;
}
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cta-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 13px 32px;
}

/* --- Blog : grille uniforme, éditoriale ------------------------------------------ */
/* Même format d'image partout (3:2, recadrage cover), pas de fond de carte :
   l'image, une ligne de méta discrète, le titre serif, un chapô limité. */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.post-card:hover { color: var(--ink); }
.post-card-media {
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius) - 10px);
  overflow: hidden;
  background: var(--shell);
}
.post-card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.9s var(--ease);
}
.post-card:hover .post-card-photo { transform: scale(1.04); }
/* Couverture absente : dégradé de la palette + motif de la marque, même format. */
.post-card-photo--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #f6f0ea, #ecdccd 60%, #e6c9c4);
}
.post-card-photo--placeholder img { width: 56px; height: 56px; opacity: 0.85; }
.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.post-card-meta {
  margin: 0;
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.25;
  transition: color 0.3s var(--ease);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-card:hover h2 { color: var(--beige-dark); }
.post-card-excerpt {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-card-more {
  margin-top: auto; /* aligné en pied de carte sur toute la rangée */
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.post-card-more span { display: inline-block; transition: transform 0.4s var(--ease); }
.post-card:hover .post-card-more span { transform: translateX(4px); }
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.tag {
  background: var(--beige-wash);
  color: var(--beige-dark);
  border-radius: 999px;
  padding: 0.05rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.more { font-weight: 600; text-decoration: none; }

/* --- Article ----------------------------------------------------------------- */
.notice {
  background: var(--beige-wash);
  border: 1px solid var(--beige);
  border-radius: calc(var(--radius) - 12px);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

/* --- Prose (richtext) --------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose blockquote {
  border-inline-start: 3px solid var(--beige);
  margin-inline-start: 0;
  padding-inline-start: 1rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}
.prose pre {
  background: var(--shell);
  border-radius: calc(var(--radius) - 12px);
  padding: 1rem;
  overflow-x: auto;
}
/* Tableau du richtext : carte shell arrondie, en-tête encre, filets fins ;
   défile horizontalement sur mobile au lieu de casser la mise en page. */
.prose .rt-table {
  margin-block: 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 12px);
  -webkit-overflow-scrolling: touch;
}
.prose .rt-table table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}
.prose .rt-table :is(th, td) {
  padding: 0.85rem 1.1rem;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose .rt-table th {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}
.prose .rt-table tbody tr:nth-child(even) { background: var(--shell); }
.prose .rt-table tbody tr:last-child td { border-bottom: 0; }
.prose .rt-table td strong { color: var(--ink); }
/* Bouton CTA : pilules du site ; plusieurs boutons consécutifs s'alignent. */
.prose .rt-button {
  display: inline-block;
  margin: 1.25rem 0.75rem 1.25rem 0;
}
.prose .rt-button__link { text-decoration: none; }
@media (max-width: 640px) {
  .prose .rt-button { display: block; margin-inline-end: 0; }
  .prose .rt-button__link { display: block; text-align: center; padding-inline: 24px; }
}

/* --- Témoignages : habillage + rail d'avis (CPT review) ----------------------- */
.reviews-section { padding-block: 5rem; }
.reviews-section--beige { background: var(--shell); }
.reviews-rail {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, #000 94%, transparent);
  mask-image: linear-gradient(to right, #000 94%, transparent);
}
.reviews-rail.is-scrolled {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 94%, transparent);
}
.reviews-rail::-webkit-scrollbar { display: none; }
.reviews-rail.is-dragging { cursor: grabbing; }
.review-card {
  position: relative;
  flex: 0 0 min(78vw, 380px);
  background: var(--paper);
  border-radius: calc(var(--radius) - 4px);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.review-text { margin: 0; font-size: 0.95rem; }
.review-person {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.review-avatar,
.review-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.review-initial {
  display: grid;
  place-items: center;
  background: var(--beige-wash);
  color: var(--beige-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
}
.review-name { margin: 0; font-weight: 600; font-size: 0.95rem; }
.review-role { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.review-quote {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  width: auto;
  height: 54px;
  opacity: 0.06;
  border-radius: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .reviews-section { padding-block: 3.5rem; }
  .about-stats-row { grid-template-columns: 1fr 1fr; }
}

/* --- Offres d'emploi ----------------------------------------------------------- */
.jobs-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 2rem;
  align-items: start;
}
/* Listing en liste (façon Indeed) : blanc, filets fins, ligne entière cliquable. */
.jobs-list { display: flex; flex-direction: column; }
.job-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.75rem 1rem;
  margin-inline: -1rem;
  border-radius: 12px;
  transition: background-color 0.3s var(--ease);
}
.job-row + .job-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  border-top: 1px solid var(--line);
}
.job-row:hover { background: rgba(246, 240, 234, 0.55); }
.job-row-body { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
/* Toute la ligne est cliquable via le lien du titre étiré… */
.job-row-link::after { content: ""; position: absolute; inset: 0; }
.job-row h2 { margin: 0; font-size: 1.45rem; }
.job-row h2 a { color: var(--ink); text-decoration: none; }
.job-row:hover h2 a { color: var(--beige-dark); }
/* …et le CTA reste cliquable indépendamment (au-dessus du lien étiré). */
.job-more { position: relative; z-index: 1; flex-shrink: 0; }
.job-company {
  margin: 0;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.job-urgent {
  background: var(--beige);
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.job-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--beige-dark);
}
.job-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.job-meta svg { width: 14px; height: 14px; color: var(--ink-soft); }
.job-excerpt { margin: 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 46rem; }
.job-more { padding: 12px 28px; }

/* Filtres : aside desktop, rideau mobile. */
.jobs-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.jobs-filters-card { padding: 0.25rem 0 0 1rem; }
.jobs-filter-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.4rem; }
.jobs-filter-group .footer-title { color: var(--ink-soft); margin-bottom: 0.5rem; }
.jobs-filter { color: var(--ink); text-decoration: none; font-size: 0.94rem; width: fit-content; }
.jobs-filter:hover { color: var(--beige-dark); }
.jobs-filter.is-active { color: var(--beige-dark); font-weight: 600; }
.jobs-filter-reset { font-size: 0.85rem; color: var(--muted); }
.filters-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 1.25rem;
}
.jobs-drawer-filters { overflow-y: auto; }

/* Détail d'une offre : head aligné à gauche, titre contenu, un peu plus haut. */
.job-head {
  text-align: left;
  padding-top: calc(3.25rem + var(--header-h));
  padding-bottom: 3.5rem;
}
.job-head .job-company { margin-top: 0; }
.job-head h1 { margin: 0.35rem 0 0.9rem; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.job-head .job-meta { justify-content: flex-start; }
.job-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.job-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.job-apply-card {
  background: var(--shell);
  border-radius: calc(var(--radius) - 4px);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: center;
}
.job-apply-title { margin: 0; font-family: var(--serif); font-size: 1.5rem; }
.job-apply-sub { margin: -0.4rem 0 0.4rem; font-size: 0.92rem; color: var(--ink-soft); }
.job-apply-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 14px 24px;
}
.job-share-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.job-share-actions { display: flex; gap: 0.9rem; align-items: center; }
.job-share-actions a,
.job-share-actions button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  transition: color 0.3s var(--ease);
}
.job-share-actions a:hover,
.job-share-actions button:hover { color: var(--beige-dark); }
.job-share-actions svg { width: 18px; height: 18px; }
.job-share-actions .is-copied { color: var(--beige); }

/* Navigation offre précédente / suivante en pied de page. */
.job-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-block: 2.5rem 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.job-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.3s var(--ease);
}
.job-nav-item:hover { background: rgba(246, 240, 234, 0.55); }
.job-nav-item--prev { grid-column: 1; }
.job-nav-item--next { grid-column: 2; text-align: right; align-items: flex-end; }
.job-nav-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.job-nav-title { font-family: var(--serif); font-size: 1.25rem; }
.job-nav-item:hover .job-nav-title { color: var(--beige-dark); }
.job-nav-company { font-size: 0.85rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .jobs-layout { grid-template-columns: 1fr; }
  .jobs-aside { display: none; }
  .filters-toggle { display: inline-flex; }
  .job-row { flex-direction: column; align-items: flex-start; gap: 1rem; padding-block: 1.5rem; }
  .job-grid { grid-template-columns: 1fr; gap: 2rem; }
  .job-aside { position: static; }
  .job-nav { grid-template-columns: 1fr; }
  .job-nav-item--prev,
  .job-nav-item--next { grid-column: 1; text-align: left; align-items: flex-start; }
}

/* --- Contact : infos + formulaire AJAX ---------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 4rem;
  align-items: start;
}
.contact-info > p { margin: 0 0 1.25rem; max-width: 26rem; }
.contact-facts { margin-top: 0.5rem; }
.contact-facts a { color: var(--ink); text-decoration: none; }
.contact-facts a:hover { color: var(--beige-dark); }

.hp-field { position: absolute; left: -100vw; width: 1px; height: 1px; opacity: 0; }
.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f4f2ef;
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--beige);
  background: var(--paper);
}
.form-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-submit { padding: 13px 40px; }
.contact-form.is-sending .form-submit { opacity: 0.6; pointer-events: none; }
.form-status {
  margin: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  width: fit-content;
  animation: status-in 0.45s var(--ease);
}
.form-status.is-ok { background: #e6f8f0; color: #14342a; }
.form-status.is-error { background: #fdecec; color: #7f1d1d; }
@keyframes status-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- WhatsApp flottant (tout le site) ----------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(18, 78, 44, 0.28);
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-fields { grid-template-columns: 1fr; }
}

/* --- Pagination / pied de page ------------------------------------------------ */
.pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}
.pagination a { text-decoration: none; font-weight: 600; }
.pagination span { color: var(--muted); }

/* --- Footer « parallax reveal » : sticky sous le contenu, dévoilé au scroll --- */
main {
  position: relative;
  z-index: 1;
  background: var(--paper);
}
.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 7rem 0 3rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-brand img { display: block; height: 24px; width: auto; border-radius: 0; }
.footer-brand p {
  margin: 1.25rem 0 0;
  max-width: 20rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
.footer-title {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.footer-col a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--beige); }
.footer-credits { color: var(--beige); font-size: 0.88rem; }
.footer-bottom {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }

@media (max-width: 900px) {
  .site-footer { padding-top: 4.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { margin-top: 3rem; }
}

@media (max-width: 40rem) {
  :root { --radius: 16px; }
  h1, h2, h3 { line-height: 1; }
  .container { padding-inline: 1rem; }
  .article-card:has(.card-cover) { grid-template-columns: 1fr; }
  .button { padding: 14px 36px; text-align: center; }
  /* Hero mobile : tout centré (eyebrow, titre, paragraphe). */
  .hero-copy { text-align: center; }
  .hero-copy .hero-subtitle { margin-inline: auto; }
  .header-bar { gap: 0.75rem; }
  .site-nav { gap: 0.85rem; }
  .hero { padding-bottom: 3rem; }
  .hero-mini { padding-bottom: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .expertise-items,
  .method-cards,
  .services-grid { margin-inline: -1rem; padding-inline: 1rem; }
  /* Cartes chiffres compactes : les encoches du portrait rétrécissent d'autant. */
  .stat-card { padding: 0.85rem 1rem; gap: 0.5rem; }
  .stat-value { font-size: 1.9rem; }
  .stat-plus { font-size: 1.1rem; }
  .stat-label { font-size: 0.82rem; max-width: 6.5rem; }
  /* Mobile : pas de photo — le proof reste, empilé et centré. */
  .hero-media-frame { display: none; }
  .hero-proof {
    position: static;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin-inline: auto;
    width: fit-content;
  }
  .hero-proof-text { text-align: center; }
  .hero-stars { justify-content: center; }
  .hero-marquee { margin-inline: auto; max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  /* Sans animation, le rideau doit être ouvert/fermé instantanément. */
  .mobile-menu[aria-hidden="false"] .mobile-menu__panel { clip-path: none; }
  .mobile-menu[aria-hidden="false"] .mobile-menu__backdrop { opacity: 1; }
}
