/* ==========================================================================
   THE CORE group — one page
   Charte : bleu #0000FF · noir #000000 · Inter
   Registre : noir & blanc, blocs pleine page inversés, typographie éditoriale.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --blue: #0000ff;
  --ink: #000000;
  --paper: #ffffff;

  --ink-60: rgba(0, 0, 0, 0.6);
  --ink-45: rgba(0, 0, 0, 0.56);
  --rule: rgba(0, 0, 0, 0.16);
  --rule-soft: rgba(0, 0, 0, 0.09);

  --paper-70: rgba(255, 255, 255, 0.7);
  --paper-45: rgba(255, 255, 255, 0.52);
  --rule-inv: rgba(255, 255, 255, 0.2);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --bar: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

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

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.inverse :focus-visible { outline-color: #fff; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  left: 0; top: 0;
  z-index: 200;
  transform: translateY(-120%);
  background: var(--blue);
  color: #fff;
  padding: 14px 22px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { transform: none; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Typographie -------------------------------------------------------- */
.display {
  overflow-wrap: break-word;
  font-size: clamp(2.9rem, 8.6vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}

.h2 {
  overflow-wrap: break-word;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.5;
  max-width: 58ch;
  color: var(--ink-60);
}
.inverse .lead { color: var(--paper-70); }

.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.inverse .label { color: var(--paper-45); }

.blue { color: var(--blue); }

/* --- Header ------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--bar);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--bar);
}
.brand img { height: 26px; width: auto; }

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

.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.header__cta:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.header__cta .is-short { display: none; }

/* Burger */
.burger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.burger__bars { display: grid; gap: 5px; width: 26px; }
.burger__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.burger[aria-expanded="true"] .burger__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* --- Menu plein écran ---------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding-top: var(--bar);
  display: flex;
  align-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
  visibility: hidden;
  pointer-events: none;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  pointer-events: auto;
  transition: clip-path 0.7s var(--ease), visibility 0s;
}

.menu__list { counter-reset: menu; display: grid; gap: clamp(2px, 0.6vw, 8px); }
.menu__list li { counter-increment: menu; }
.menu__list a {
  display: inline-block;
  font-size: clamp(1.9rem, 5.6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s var(--ease), transform 0.5s var(--ease);
}
.menu__list a::before {
  content: "0" counter(menu);
  display: inline-block;
  width: 2.6em;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  vertical-align: middle;
  color: var(--paper-45);
}
.menu__list a:hover { color: var(--blue); transform: translateX(14px); }

.menu__foot {
  position: absolute;
  left: 0; right: 0; bottom: clamp(24px, 4vw, 48px);
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}
.menu__foot a { text-decoration: none; }
.menu__foot a:hover { color: var(--blue); }

/* --- Sections ------------------------------------------------------------ */
.section { padding-block: clamp(80px, 11vw, 176px); }
.inverse { background: var(--ink); color: #fff; }
.inverse--blue { background: var(--blue); color: #fff; }

.section__head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 92px);
}
.section__head > * { min-width: 0; }
@media (min-width: 960px) {
  .section__head { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; }
}

/* --- Bouton d'action ------------------------------------------------------ */
.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 19px 30px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn:focus-visible { outline-offset: 3px; }

.btn__note {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-60);
  max-width: 38ch;
}

/* Le bouton s'inverse sur les fonds pleins. L'ordre compte : la section contact
   porte les deux classes, et la règle bleue doit rester la dernière servie. */
.inverse .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.inverse .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.inverse .btn__note { color: var(--paper-70); }

.inverse--blue .btn { background: var(--paper); border-color: var(--paper); color: var(--blue); }
.inverse--blue .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.inverse--blue .btn__note { color: rgba(255, 255, 255, 0.9); }
.inverse--blue .btn:focus-visible { outline-color: var(--ink); }

@media (max-width: 559px) {
  .btn { width: 100%; justify-content: space-between; padding: 18px 24px; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--bar) + clamp(40px, 8vh, 92px));
  padding-bottom: clamp(32px, 5vh, 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.hero__title {
  margin-top: clamp(28px, 5vh, 60px);
  max-width: 14ch;
  position: relative;
  z-index: 1;
}
.hero__title em { font-style: normal; color: var(--blue); }

.hero__bottom {
  display: grid;
  gap: 32px;
  margin-top: clamp(40px, 7vh, 88px);
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .hero__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 64px;
  }
}

.hero__cta { justify-self: start; }
@media (min-width: 960px) { .hero__cta { max-width: 34ch; } }

.hero__diagram {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) * -1);
  width: min(74vh, 44vw);
  translate: 0 -44%;
  pointer-events: none;
}
@media (max-width: 959px) {
  .hero__diagram { width: 96vw; right: -30vw; opacity: 0.45; }
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.scroll-cue i {
  display: block;
  width: 1px; height: 34px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px; height: 12px;
  background: var(--blue);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-14px); }
  100% { transform: translateY(36px); }
}

/* --- Bandeau défilant ----------------------------------------------------- */
.marquee {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(16px, 2vw, 26px);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 40s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* --- Piliers -------------------------------------------------------------- */
.pillars { display: grid; gap: 1px; background: var(--rule-soft); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pillar { background: var(--paper); padding: clamp(30px, 3vw, 52px) 0; }
@media (min-width: 900px) {
  .pillar { padding-inline: clamp(20px, 2.6vw, 40px); }
  .pillar:first-child { padding-left: 0; }
}
.pillar .pillar__num { color: var(--blue); }
.pillar h3 { margin: 20px 0 14px; }
.pillar p { color: var(--ink-60); }

/* --- Manifeste (noir) ------------------------------------------------------ */
.manifesto__quote {
  font-size: clamp(1.85rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 19ch;
  margin-top: clamp(28px, 4vw, 52px);
}
.manifesto__foot {
  display: grid;
  gap: 28px;
  margin-top: clamp(48px, 6vw, 84px);
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--rule-inv);
}
@media (min-width: 960px) { .manifesto__foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* --- Studios (accordéon) ---------------------------------------------------- */
.studios { border-top: 1px solid var(--rule); }
.studio { border-bottom: 1px solid var(--rule-soft); }

.studio__head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding-block: clamp(22px, 2.6vw, 34px);
  transition: padding-left 0.4s var(--ease), color 0.3s var(--ease);
}
@media (min-width: 700px) { .studio__head { grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 24px; } }
.studio__head:hover { padding-left: 12px; color: var(--blue); }

.studio__num { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; color: var(--blue); }
.studio__name {
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.studio__plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.studio__plus::before,
.studio__plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.studio__plus::after { transform: rotate(90deg); }
.studio__head[aria-expanded="true"] { color: var(--blue); }
.studio__head[aria-expanded="true"] .studio__plus::after { transform: rotate(0deg); }

.studio__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.studio__panel > div { overflow: hidden; }
.studio.is-open .studio__panel { grid-template-rows: 1fr; }
.studio__body {
  padding: 0 0 clamp(26px, 3vw, 40px);
  color: var(--ink-60);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 62ch;
}
@media (min-width: 700px) { .studio__body { margin-left: 120px; } }

/* --- Chiffres --------------------------------------------------------------- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule-inv);
}

.figure { background: var(--ink); padding: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 32px); }
@media (min-width: 420px) { .figure:nth-child(2n+1) { padding-left: 0; } }
@media (min-width: 1040px) { .figure:nth-child(2n+1) { padding-left: clamp(20px, 2vw, 32px); } .figure:first-child { padding-left: 0; } }
.figure .figure__n {
  display: block;
  font-size: clamp(3.2rem, 6.4vw, 6rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
  font-weight: 700;
}
.figure .label { display: block; margin-top: 22px; }
.figure p { margin-top: 12px; font-size: 0.92rem; color: var(--paper-70); max-width: 26ch; }

/* --- Références clients ------------------------------------------------------ */
.clients {
  margin-top: clamp(44px, 5vw, 72px);
  border-top: 1px solid var(--rule-inv);
  padding-top: clamp(26px, 3vw, 38px);
}
.clients__intro {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--paper-70);
  max-width: 46ch;
}
.clients__list {
  list-style: none;
  margin: clamp(26px, 3.4vw, 42px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 3vw, 40px) clamp(28px, 3.4vw, 52px);
}
.clients__list li {
  flex: 0 0 auto;
  width: clamp(92px, 13vw, 146px);
  height: clamp(38px, 4.4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.clients__list img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
}
.clients__list li:hover img { opacity: 1; }

/* Banijay est fourni en rose : on le ramène au blanc du reste de la bande. */
.client--couleur img { filter: brightness(0) invert(1); }

/* --- Agences ---------------------------------------------------------------- */
.agencies { border-top: 1px solid var(--rule); }

.agency {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-block: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.4s var(--ease), padding-inline 0.4s var(--ease), color 0.3s var(--ease);
}
@media (min-width: 900px) {
  .agency {
    grid-template-columns: 280px minmax(0, 1fr) 210px;
    gap: 40px;
    align-items: baseline;
  }
  .agency:hover { background: var(--blue); color: #fff; padding-inline: 24px; }
  .agency:hover .agency__desc,
  .agency:hover .agency__meta { color: rgba(255, 255, 255, 0.86); }
}

.agency__name {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.agency__desc { color: var(--ink-60); max-width: 52ch; transition: color 0.3s var(--ease); }
.agency__meta { font-size: 0.9rem; color: var(--ink-45); transition: color 0.3s var(--ease); }

/* --- Valeurs ----------------------------------------------------------------- */
.values { display: grid; gap: 0 clamp(32px, 5vw, 88px); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* La mise en page est portée par le résumé, pas par le conteneur */
.value {
  padding-block: clamp(22px, 2.4vw, 32px);
  border-bottom: 1px solid var(--rule-soft);
}
.value .value__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--blue);
}
.value h3 { font-size: clamp(1.12rem, 1.7vw, 1.38rem); letter-spacing: -0.025em; font-weight: 600; }
.value p { margin-top: 8px; font-size: 0.95rem; color: var(--ink-60); }

/* --- Contact (bleu) ------------------------------------------------------------ */
.contact { position: relative; overflow: hidden; }
.contact__mark {
  position: absolute;
  right: -10vw; bottom: -34%;
  width: min(52vw, 600px);
  color: #fff;
  opacity: 0.09;
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; gap: clamp(40px, 5vw, 76px); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

.contact__act { margin-top: clamp(30px, 3.4vw, 46px); }
.contact__alt { margin-top: 26px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }

.contact__mail {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.contact__mail:hover { border-bottom-color: #fff; }

.contact__meta { display: grid; gap: 30px; align-content: start; }
.contact__meta dt { margin-bottom: 8px; }
.contact__meta dd { color: rgba(255, 255, 255, 0.9); }

/* --- Footer ---------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--paper-45); padding-block: clamp(40px, 5vw, 64px); }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule-inv);
}
.footer__top img { height: 30px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { text-decoration: none; font-size: 0.86rem; transition: color 0.25s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

/* --- Apparition ------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* --- Diagramme ---------------------------------------------------------------------- */
.diagram__spin { transform-origin: 300px 300px; animation: spin 120s linear infinite; }
.diagram__node { transform-origin: 300px 300px; animation: spin 120s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Réduction de mouvement ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Petits écrans ------------------------------------------------------------------------ */
@media (max-width: 760px) {
  .burger__text { display: none; }
  .brand img { height: 22px; }
  .header__cta { font-size: 0.68rem; letter-spacing: 0.08em; padding: 10px 14px; }
}

/* En dessous de 400 px, l'intitulé complet ne tient plus entre le logo et le menu. */
@media (max-width: 399px) {
  .header__cta .is-long { display: none; }
  .header__cta .is-short { display: inline; }
}

/* --- Pages légales ---------------------------------------------------------------- */

.legal {
  padding-top: calc(var(--bar) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(64px, 9vw, 140px);
}

.legal__head { margin-bottom: clamp(40px, 5vw, 72px); }
.legal__head .h2 { margin-top: 20px; }
.legal__updated { margin-top: 20px; }

.legal__body { max-width: 76ch; }
.legal__body > * + * { margin-top: 20px; }

.legal__body h2 {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--rule-soft);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.legal__body h3 {
  margin-top: 34px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.legal__body p,
.legal__body li { color: var(--ink-60); }

.legal__body ul {
  list-style: disc;
  padding-left: 1.3em;
  display: grid;
  gap: 10px;
}

.legal__body a { color: var(--blue); text-underline-offset: 3px; }
.legal__body a:hover { text-decoration: none; }

.legal__dl { display: grid; gap: 18px; }
.legal__dl div {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 700px) {
  .legal__dl div { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: baseline; }
}
.legal__dl dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.legal__dl dd { margin: 0; color: var(--ink-60); }

/* Champs restant à compléter avant mise en ligne */
.todo {
  background: #fff2b8;
  box-shadow: 0 0 0 2px #fff2b8;
  color: var(--ink);
  font-weight: 600;
}

/* --- Raison d'être ------------------------------------------------------------------------ */
.purpose { display: grid; gap: 28px; }
@media (min-width: 960px) { .purpose { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px); } }

.purpose__lead {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
}
.purpose__body { display: grid; gap: 20px; }
.purpose__body p { color: var(--ink-60); font-size: clamp(1rem, 1.3vw, 1.15rem); }

/* --- Associés ----------------------------------------------------------------------------- */
.partners { display: grid; gap: clamp(22px, 2.4vw, 32px); border-top: 1px solid var(--rule); padding-top: clamp(32px, 4vw, 56px); }
@media (min-width: 560px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .partners { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; } }

.partner__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.06);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.4s var(--ease);
}
.partner:hover .partner__photo { filter: grayscale(0) contrast(1); }

.partner__name { margin-top: 16px; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; }
.partner .partner__role {
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.partner__agency { margin-top: 6px; font-size: 0.86rem; color: var(--ink-60); }

/* --- Signature du manifeste ---------------------------------------------------------------- */
.signature {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 52px);
}
.signature img {
  width: 66px;
  height: 66px;
  flex: none;
  object-fit: cover;
  filter: grayscale(1);
  background: rgba(255, 255, 255, 0.12);
}
.signature__name { font-weight: 600; letter-spacing: -0.02em; }
.signature__role {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-45);
}

/* --- Agences mobilisées par un studio ------------------------------------------------------ */
.studio__mobilise {
  margin-top: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.studio__mobilise .studio__agence { color: var(--blue); }
@media (min-width: 700px) { .studio__mobilise { margin-left: 120px; } }

/* ==========================================================================
   Mobile — réduction du défilement
   ========================================================================== */

/* Marges de section resserrées : dix sections à 80 px coûtaient 1 600 px */
@media (max-width: 700px) {
  .section { padding-block: 56px; }
  .value { padding-block: 18px; }
  .agency { padding-block: 24px; }
}

/* --- Portraits : défilement horizontal sous 560 px -------------------------- */
@media (max-width: 559px) {
  .partners {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
  }
  .partner {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
  .partners:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
}

.partners__hint {
  display: none;
  margin-top: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
}
@media (max-width: 559px) { .partners__hint { display: block; } }

/* --- Valeurs repliables sur mobile ------------------------------------------ */
.value > summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  gap: 16px;
  align-items: baseline;
  list-style: none;
  cursor: default;
}
.value > summary::-webkit-details-marker { display: none; }
.value__plus { position: relative; width: 14px; height: 14px; justify-self: end; align-self: center; opacity: 0; }
.value__plus::before,
.value__plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  background: var(--blue);
  transition: transform 0.3s var(--ease);
}
.value__plus::after { transform: rotate(90deg); }
.value[open] .value__plus::after { transform: rotate(0deg); }
.value > p { margin-left: 72px; }

@media (max-width: 700px) {
  .value > summary { cursor: pointer; }
  .value__plus { opacity: 1; }
}
@media (min-width: 701px) {
  /* Au-delà, tout est déplié en permanence : le chevron ne sert plus */
  .value > summary { pointer-events: none; }
}

/* --- Studios auxquels une entreprise contribue ---------------------------------------------- */
.agency__studios {
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
  transition: color 0.3s var(--ease);
}
.agency__studios span { color: var(--blue); transition: color 0.3s var(--ease); }
@media (min-width: 900px) {
  .agency:hover .agency__studios,
  .agency:hover .agency__studios span { color: rgba(255, 255, 255, 0.86); }
}
