/* =========================================================
   DLO Global Agency — feuille de style commune aux 5 pages
   Pour changer une couleur du site : modifier les variables ci-dessous.
   ========================================================= */
:root {
  /* Couleurs de la marque (relevées sur le logo) */
  --black: #030304;
  --ink: #120d0b;            /* fond sombre principal (noir chaud) */
  --ink-2: #1b1411;
  --brown: #3d302a;          /* marron de la marque */
  --burgundy: #4c1014;       /* bordeaux de la marque */
  --burgundy-2: #7d1f26;
  --grey: #a0a09f;           /* gris de la marque */

  /* Couleurs africaines d'accent : ocre, terracotta, sable */
  --ochre: #e0a43a;
  --ochre-2: #f2c46d;
  --terracotta: #b9532f;
  --sand: #efe4d4;
  --cream: #f8f3ec;
  --white: #ffffff;

  --text: #1d1512;
  --text-soft: #5f524c;
  --on-dark: #f6efe8;
  --on-dark-soft: #bcaea6;
  --line: #e3d6c6;
  --line-dark: rgba(255, 255, 255, .12);

  /* Typographie */
  --font-display: "Clash Display", "Arial Black", system-ui, sans-serif;
  --font-body: "General Sans", system-ui, sans-serif;
  --font-wide: "Michroma", "General Sans", sans-serif; /* rappelle « GLOBAL » du logo */

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Motif inspiré du bogolan (tissu malien) */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e0a43a' stroke-width='2'%3E%3Cpath d='M0 20h120M0 100h120'/%3E%3Cpath d='M0 60l10-10 10 10 10-10 10 10 10-10 10 10 10-10 10 10 10-10 10 10 10-10 10 10'/%3E%3Cpath d='M50 6l10 8 10-8M50 114l10-8 10 8'/%3E%3C/g%3E%3Cg fill='%23e0a43a'%3E%3Ccircle cx='20' cy='40' r='3'/%3E%3Ccircle cx='60' cy='40' r='3'/%3E%3Ccircle cx='100' cy='40' r='3'/%3E%3Ccircle cx='40' cy='80' r='3'/%3E%3Ccircle cx='80' cy='80' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Bases ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ochre); color: var(--ink); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ochre); color: var(--ink); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-wide); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--burgundy-2); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.on-dark .eyebrow, .eyebrow--light { color: var(--ochre); }

.h-xl { font-size: clamp(2.6rem, 6.6vw, 6rem); }
.h-lg { font-size: clamp(2.2rem, 4.8vw, 4rem); }
.h-md { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.accent { color: var(--ochre); }
.accent-burgundy { color: var(--burgundy-2); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-soft); max-width: 42rem; }
.on-dark .lead { color: var(--on-dark-soft); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.6rem;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ochre); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(224, 164, 58, .7); }
.btn--primary:hover { background: var(--ochre-2); }
.btn--dark { background: var(--burgundy); color: var(--white); }
.btn--dark:hover { background: var(--burgundy-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .07); }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--cream); }
.btn--sm { min-height: 44px; padding: .65rem 1.2rem; font-size: .92rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; text-decoration: none; color: var(--burgundy-2);
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--ochre); }

/* ---------- Bande kente ---------- */
.kente {
  height: 12px;
  background: repeating-linear-gradient(90deg,
    var(--ochre) 0 46px, var(--black) 46px 54px, var(--burgundy) 54px 92px,
    var(--ochre-2) 92px 98px, var(--brown) 98px 140px, var(--terracotta) 140px 164px,
    var(--black) 164px 170px, var(--cream) 170px 176px);
}

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled, .header.menu-open {
  background: rgba(18, 13, 11, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.header__logo img { width: 82px; height: auto; }
.header__actions { display: flex; align-items: center; gap: .75rem; }

.nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav__list { display: flex; gap: 1.9rem; }
.nav__link {
  position: relative; padding: .35rem 0;
  color: var(--on-dark-soft); text-decoration: none; font-weight: 500; font-size: .98rem;
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.lang { display: flex; padding: 3px; border: 1px solid var(--line-dark); border-radius: 999px; }
.lang__btn {
  min-width: 40px; min-height: 34px; border: 0; background: none; color: var(--on-dark-soft); cursor: pointer;
  font: .72rem/1 var(--font-wide); letter-spacing: .1em; padding: 0 .65rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang__btn.is-active { background: var(--white); color: var(--ink); }

.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; position: relative; color: var(--white); }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section--tight { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.on-dark { color: var(--on-dark); }
.bg-ink { background: var(--ink); }
.bg-brown { background: var(--brown); }
.bg-burgundy { background: var(--burgundy); }
.bg-sand { background: var(--sand); }
.bg-pattern { position: relative; isolation: isolate; }
.bg-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-size: 120px; opacity: .07;
}
.section__head { max-width: 50rem; margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.section__head--row > div { max-width: 46rem; }
.section__title { margin-bottom: 1.2rem; }

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5.5rem;
  color: var(--on-dark);
  background:
    radial-gradient(60% 70% at 80% 50%, rgba(125, 31, 38, .45), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(185, 83, 47, .18), transparent 70%),
    linear-gradient(160deg, #1f1612 0%, var(--ink) 55%, #0a0706 100%);
}
.hero__video {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover;
  opacity: .32; filter: saturate(.9) contrast(1.05);
}
.hero__shade { /* assure la lisibilité du texte au-dessus de la vidéo */
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 13, 11, .92) 0%, rgba(18, 13, 11, .65) 45%, rgba(18, 13, 11, .15) 100%);
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-size: 140px; opacity: .035;
}
.hero__inner { position: relative; }
.hero__content { max-width: 47rem; }
.hero__title { font-size: clamp(2.9rem, 7vw, 6.2rem); font-weight: 600; line-height: .98; margin-bottom: 1.6rem; }
.hero__title em { font-style: normal; color: var(--ochre); }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--on-dark-soft); max-width: 38rem; margin-bottom: 2.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }
.hero__trust { display: flex; align-items: center; gap: .9rem; color: var(--on-dark-soft); font-size: .95rem; margin: 0; }
.hero__trust-dots { display: flex; }
.hero__trust-dots span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -4px; }
.hero__trust-dots span:nth-child(1) { background: var(--ochre); margin-left: 0; }
.hero__trust-dots span:nth-child(2) { background: var(--terracotta); }
.hero__trust-dots span:nth-child(3) { background: var(--burgundy-2); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 20px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--ochre); border-radius: 2px; animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Apparition du titre mot par mot */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.words .w > span { display: inline-block; transform: translateY(105%); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .25s); }
@keyframes wordUp { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Hero des pages intérieures ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(4rem, 8vw, 6.5rem);
  color: var(--on-dark);
  background:
    radial-gradient(55% 80% at 90% 40%, rgba(125, 31, 38, .5), transparent 70%),
    linear-gradient(160deg, #1f1612 0%, var(--ink) 60%, #0a0706 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-size: 140px; opacity: .05;
}
.page-hero__beam { position: absolute; z-index: -1; right: -4%; top: 50%; transform: translateY(-46%); height: 130%; width: auto; aspect-ratio: 66 / 72; opacity: .7; }
.page-hero__title { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; max-width: 16ch; margin-bottom: 1.4rem; }
.page-hero__title em { font-style: normal; color: var(--ochre); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--on-dark-soft); margin-bottom: 1.6rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* Faisceau SVG réutilisable */
.beam-d { fill: rgba(255, 255, 255, .04); }
.beam-rays path { fill: url(#beamGrad); animation: ray 5s ease-in-out infinite; }
.beam-rays path:nth-child(2n) { animation-delay: -1.6s; }
.beam-rays path:nth-child(3n) { animation-delay: -3.2s; }
.beam-dot { fill: #f6e3c4; }
@keyframes ray { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Bandeau de preuves ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof__item { padding: 2.2rem 1.8rem; border-left: 1px solid var(--line); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--burgundy); margin-bottom: .6rem; }
.proof__label { color: var(--text-soft); font-size: .98rem; line-height: 1.45; }

/* ---------- Image (avec fond de secours tant que l'image n'est pas fournie) ---------- */
.media {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: var(--ratio, 3 / 2);
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(224, 164, 58, .35), transparent 70%),
    linear-gradient(140deg, var(--burgundy) 0%, var(--brown) 55%, var(--ink) 100%);
  isolation: isolate;
}
.media::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); background-size: 110px; opacity: .22; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media--zoom:hover img { transform: scale(1.04); }
.media__badge {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  padding: .55rem .9rem; border-radius: 999px; background: rgba(18, 13, 11, .78); color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: .66rem var(--font-wide); letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Bloc image + texte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media .media { --ratio: 4 / 5; }
.split__deco {
  position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; right: -6%; bottom: -6%;
  border-radius: var(--radius); background: var(--ochre); opacity: .9;
}
.split__deco::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 80px; opacity: .5; mix-blend-mode: multiply; border-radius: inherit; }
.split--reverse .split__deco { right: auto; left: -6%; background: var(--terracotta); }

.checks { display: grid; gap: .9rem; margin: 1.8rem 0 2.2rem; }
.checks li { position: relative; padding-left: 2.1rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--burgundy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c46d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.checks strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0; }
.checks span { color: var(--text-soft); }
.on-dark .checks span { color: var(--on-dark-soft); }

/* ---------- Cartes services (accueil) ---------- */
.service-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(61, 48, 42, .5); border-color: transparent; }
.service-card .media { border-radius: 0; --ratio: 4 / 3; }
.service-card__body { padding: 1.6rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.service-card__num { font: .72rem var(--font-wide); letter-spacing: .12em; color: var(--terracotta); margin-bottom: .8rem; }
.service-card h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.service-card p { color: var(--text-soft); font-size: .98rem; flex: 1; }
.service-card .link-arrow { align-self: flex-start; font-size: .95rem; }

/* ---------- Services (page détaillée) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(248, 243, 236, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav__list { display: flex; gap: .5rem; overflow-x: auto; padding: .8rem 0; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .5rem 1rem;
  border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.subnav a span { font: .66rem var(--font-wide); color: var(--terracotta); }
.subnav a:hover, .subnav a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.service-block + .service-block { margin-top: clamp(5rem, 10vw, 8rem); }
.service-block__num { font: .8rem var(--font-wide); letter-spacing: .14em; color: var(--terracotta); margin-bottom: 1rem; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1.8rem; }
.tags li { padding: .45rem .9rem; border-radius: 999px; background: var(--sand); font-size: .88rem; font-weight: 600; color: var(--brown); }
.on-dark .tags li { background: rgba(255,255,255,.08); color: var(--on-dark); }
.mini-title { font: .7rem var(--font-wide); letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: .5rem; }

/* ---------- Problème / enjeu ---------- */
.stakes { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.stakes__quote {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2;
  padding-left: 1.5rem; border-left: 4px solid var(--ochre); margin: 2rem 0;
}

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.filter {
  min-height: 44px; font: 600 .92rem var(--font-body); color: var(--on-dark-soft); cursor: pointer;
  background: transparent; border: 1px solid var(--line-dark); border-radius: 999px; padding: .6rem 1.2rem;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.filter.is-active { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.filters--light .filter { color: var(--text-soft); border-color: var(--line); background: var(--white); }
.filters--light .filter:hover { color: var(--text); border-color: var(--text); }
.filters--light .filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project {
  position: relative; display: flex; flex-direction: column; padding: 2rem 1.8rem;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.project::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--cat, var(--ochre)); transform: scaleX(.18); transform-origin: left; transition: transform .5s var(--ease); }
.project:hover { border-color: rgba(224, 164, 58, .45); transform: translateY(-4px); }
.project:hover::before { transform: scaleX(1); }
.project[data-cat="tr"] { --cat: var(--terracotta); }
.project[data-cat="dub"] { --cat: #d9737b; }
.project[data-cat="voice"] { --cat: var(--ochre-2); }
.project[hidden] { display: none; }
.project__tag { font: .64rem var(--font-wide); letter-spacing: .16em; text-transform: uppercase; color: var(--cat, var(--ochre)); margin-bottom: 1rem; }
.project__title { font-size: 1.4rem; margin-bottom: .45rem; }
.project__client { font-size: .92rem; color: var(--on-dark-soft); margin-bottom: 1.3rem; }
.project__body { margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); display: grid; gap: .25rem; }
.project__body dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); margin-top: .7rem; }
.project__body dt:first-child { margin-top: 0; }
.project__body dd { margin: 0; font-size: .96rem; color: var(--on-dark); line-height: 1.55; }

/* Version claire (accueil) */
.projects--light .project { background: var(--white); border-color: var(--line); color: var(--text); }
.projects--light .project__client { color: var(--text-soft); }
.projects--light .project__body { border-color: var(--line); }
.projects--light .project__body dd { color: var(--text); }
.projects--light .project__tag { color: var(--terracotta); }
.projects--light .project:hover { border-color: var(--ochre); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step__num {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.4rem; border-radius: 50%;
  background: var(--ink); color: var(--ochre); font: .9rem var(--font-wide);
}
.step h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.step p { color: var(--text-soft); font-size: .98rem; margin: 0; }
.on-dark .step { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.on-dark .step p { color: var(--on-dark-soft); }
.on-dark .step__num { background: var(--ochre); color: var(--ink); }

/* ---------- Atouts / valeurs ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature { padding: 2.2rem 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.feature__icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 1.5rem;
  background: var(--sand); color: var(--burgundy-2);
}
.feature__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.feature p { color: var(--text-soft); margin: 0; font-size: .98rem; }
.feature--dark { background: var(--burgundy); border-color: transparent; color: var(--on-dark); }
.feature--dark p { color: rgba(255,255,255,.75); }
.feature--dark .feature__icon { background: rgba(255,255,255,.1); color: var(--ochre); }
.feature--brown { background: var(--brown); border-color: transparent; color: var(--on-dark); }
.feature--brown p { color: rgba(255,255,255,.75); }
.feature--brown .feature__icon { background: rgba(255,255,255,.1); color: var(--ochre); }
.feature--ink { background: var(--ink); border-color: transparent; color: var(--on-dark); }
.feature--ink p { color: rgba(255,255,255,.72); }
.feature--ink .feature__icon { background: rgba(255,255,255,.1); color: var(--ochre); }

/* ---------- Puces (langues, secteurs) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05);
}
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ochre); transform: rotate(45deg); }
.chips--light li { border-color: var(--line); background: var(--white); }
.chips--light li::before { background: var(--terracotta); }

/* ---------- Mission / vision ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mv__card { padding: clamp(2rem, 4vw, 3.2rem); border-radius: var(--radius); }
.mv__card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; }
.mv__card:first-child { background: var(--ochre); color: var(--ink); }
.mv__card:last-child { background: var(--ink); color: var(--on-dark); }
.mv__card:last-child .mini-title { color: var(--ochre); }
.mv__card:first-child .mini-title { color: var(--burgundy); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--ochre); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 1.5rem; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); font: 500 1.3rem/1 var(--font-body); transition: transform .3s var(--ease), background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ochre); }
.faq details p { padding: 0 1.5rem 1.4rem; margin: 0; color: var(--text-soft); }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 0; background: var(--burgundy); color: var(--on-dark); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); background-size: 120px; opacity: .1; }
.cta-band__beam { position: absolute; z-index: -1; right: -2%; top: 50%; transform: translateY(-50%); height: 150%; width: auto; aspect-ratio: 66 / 72; opacity: .5; }
.cta-band__inner { max-width: 50rem; }
.cta-band h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-bottom: 1.2rem; }
.cta-band p { color: rgba(255,255,255,.78); font-size: 1.15rem; margin-bottom: 2.2rem; max-width: 38rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact__mail {
  display: inline-block; margin: .4rem 0 2.2rem; font: 600 clamp(1.15rem, 2.2vw, 1.5rem) var(--font-display);
  color: var(--burgundy-2); text-decoration: none; border-bottom: 2px solid var(--ochre); word-break: break-all;
}
.next-steps { display: grid; gap: 1.1rem; margin: 1.2rem 0 2.4rem; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.next-steps li::before { counter-increment: ns; content: counter(ns); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--ochre); font: .82rem var(--font-wide); }
.next-steps strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.next-steps span { color: var(--text-soft); font-size: .97rem; }

.form { padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 1.15rem; box-shadow: 0 40px 80px -50px rgba(61, 48, 42, .45); }
.form__title { font-size: 1.7rem; margin-bottom: .2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field label small { font-weight: 500; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; font: 500 1rem var(--font-body); color: var(--text);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ochre); background: var(--white); box-shadow: 0 0 0 4px rgba(224, 164, 58, .2); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.form__trap { position: absolute; left: -9999px; }
.form__note { font-size: .85rem; color: var(--text-soft); margin: 0; text-align: center; }
.form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #2e7d4f; }
.form__status.is-error { color: #b03a2e; }

/* ---------- Pied de page ---------- */
.footer { background: var(--black); color: var(--on-dark-soft); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { width: 110px; height: auto; margin-bottom: 1.4rem; }
.footer__brand p { max-width: 22rem; }
.footer h4 { font: .7rem var(--font-wide); letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); margin-bottom: 1.2rem; }
.footer ul { display: grid; gap: .65rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.footer__bottom p { margin: 0; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .service-cards, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1rem 16px 2rem;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .header.menu-open { background: var(--ink); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line-dark); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--ochre); }

  .split, .stakes, .contact, .mv { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media .media { --ratio: 4 / 3; }
  .cards-3 { grid-template-columns: 1fr; }
  .page-hero__beam { right: -30%; opacity: .35; }
  /* Sur mobile : le faisceau en haut, le texte en dessous (pas de chevauchement) */
  .hero { align-items: flex-start; padding-top: calc(clamp(300px, 42svh, 360px) - 1rem); padding-bottom: 4rem; }
  .hero__lead { margin-bottom: 1.8rem; }
  .hero__ctas { margin-bottom: 2rem; }
  .hero__canvas { bottom: auto; height: clamp(300px, 42svh, 360px); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero__shade { background: linear-gradient(180deg, rgba(18,13,11,.1) 0%, rgba(18,13,11,.8) 40%, rgba(18,13,11,.96) 100%); }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  .service-cards, .cards-4, .projects, .steps, .form__row { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof__item { padding: 1.6rem 1rem 1.6rem 0; }
  .proof__item:nth-child(even) { padding-left: 1rem; }
  .hero__ctas .btn, .cta-band__actions .btn { flex: 1 1 100%; }
  .eyebrow { letter-spacing: .16em; font-size: .64rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .split__deco { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .fade-up { opacity: 1; transform: none; }
  .words .w > span { transform: none; }
}
