/* =========================================================
   A Torra Turchina — Design tokens (style guide « gallery »)
   ========================================================= */
:root {
  --color-gallery-white: #ffffff;
  --color-studio-mist: #f5f5f7;
  --color-paper-frost: #fafafc;
  --color-hairline-silver: #d6d6d6;
  --color-control-gray: #e6e6e8;
  --color-ink: #1d1d1f;
  --color-slate: #707070;
  --color-steel: #6e6e73; /* 4.8:1 sur blanc (WCAG AA) */
  --color-apple-blue: #0066cc;
  --color-pricing-blue: #0071e3;
  --color-launch-orange: #b64400;
  /* club accent, used only inside "product" renders */
  --turchinu: #1b4d89;
  --turchinu-deep: #0f2a4a;
  --logo-blue: #1f7fd9; /* bleu du logo du club */

  --font-display: "Inter", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --font-glyph: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", "Apple Symbols", serif;

  --radius-cards: 28px;
  --radius-links: 10px;
  --radius-pills: 36px;
  --radius-images: 28px;
  --radius-inputs: 980px;
  --radius-buttons: 9999px;
  --radius-navigation: 20px;

  --shadow-subtle: rgb(230, 230, 232) 0 0 0 1px;
  --shadow-subtle-2: rgb(134, 134, 139) 0 0 0 1px;

  --section-gap: 90px;
  --card-padding: 28px;
  --element-gap: 20px;
  --gutter: max(22px, calc((100vw - 1180px) / 2));
  /* side padding for blocks already centred by a max-width (the gutter would eat their width on wide screens) */
  --pad-x: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--color-gallery-white);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.launch { color: var(--color-launch-orange); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: -0.12px; margin-right: 8px; }

/* split-text masks */
.split-line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ============ Controls ============ */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-buttons);
  font-size: 12px; line-height: 16px; letter-spacing: -0.12px; font-weight: 400;
  padding: 6px 14px; white-space: nowrap; border: 0;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pill--blue { background: var(--color-pricing-blue); color: #fff; }
.pill--blue:hover { background: #0077ed; }
.pill--outline { background: transparent; color: var(--color-ink); box-shadow: var(--shadow-subtle-2); }
.pill--outline:hover:not(:disabled) { background: var(--color-ink); color: #fff; box-shadow: none; }
.pill:disabled { opacity: .4; cursor: default; }
.pill--lg { font-size: 17px; line-height: 1.18; letter-spacing: -0.374px; padding: 12px 22px; }
.textlink { color: var(--color-apple-blue); font-size: 17px; display: inline-flex; gap: 4px; align-items: center; }
.textlink:hover { text-decoration: underline; }
.textlink span { transition: transform .3s var(--ease); }
.textlink:hover span { transform: translateX(3px); }

/* ============ Global nav ============ */
.gnav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 44px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.gnav__inner { height: 44px; max-width: 1024px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.gnav__logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gnav__logo svg { width: 20px; height: 24px; fill: var(--logo-blue); display: block; transition: transform .4s var(--ease); }
.gnav__logo:hover svg { transform: translateY(-2px); }
.gnav__word { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: -0.1px; color: var(--logo-blue); }
.gnav__links { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: space-around; max-width: 820px; margin-left: 24px; }
.gnav__links a { font-size: 12px; line-height: 1; letter-spacing: -0.12px; color: rgba(0, 0, 0, .8); padding: 8px; transition: color .2s; }
.gnav__links a:hover { color: #000; }
.gnav__burger { display: none; background: none; border: 0; width: 40px; height: 44px; position: relative; }
.gnav__burger span { position: absolute; left: 12px; width: 17px; height: 1.2px; background: var(--color-ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.gnav__burger span:first-child { top: 18px; }
.gnav__burger span:last-child { top: 25px; }
.gnav.is-open .gnav__burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.gnav.is-open .gnav__burger span:last-child { top: 21.5px; transform: rotate(-45deg); }
.gnav__mobile { position: absolute; top: 44px; left: 0; right: 0; height: calc(100vh - 44px); height: calc(100dvh - 44px); background: var(--color-paper-frost); border-top: 1px solid var(--color-control-gray); padding: 24px 40px; }
.gnav__mobile ul { list-style: none; margin: 0; padding: 0; }
.gnav__mobile a { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.6; letter-spacing: -0.4px; }

/* ============ Local nav ============ */
/* One bar at a time: the global nav (44px) sits at the top; once the visitor
   scrolls down it slides away and the page bar takes its place. */
main { padding-top: 44px; }
.lnav { position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: 52px; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--color-hairline-silver); transform: translateY(-101%); transition: transform .5s var(--ease); }
.lnav.is-visible { transform: none; }
.gnav.is-hidden { transform: translateY(-100%); }
.gnav { transition: transform .5s var(--ease); }
.lnav__inner { max-width: 1024px; height: 52px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.lnav__title { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.21; letter-spacing: 0.228px; }
.lnav__actions { display: flex; align-items: center; gap: 14px; }
.lnav__meta { font-size: 12px; color: var(--color-slate); letter-spacing: -0.12px; }

/* ============ Hero ============ */
.hero { position: relative; height: calc(100vh - 44px); height: calc(100svh - 44px); min-height: 600px; display: flex; flex-direction: column; align-items: center; overflow: hidden; background: #fff; padding-top: clamp(40px, 7vh, 80px); }
.hero__copy { text-align: center; position: relative; z-index: 3; padding: 0 22px; width: 100%; max-width: 1000px; }
.hero__kicker { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: 0.231px; margin: 0 0 14px; }
.hero__title { font-family: var(--font-display); font-size: clamp(44px, 8.4vw, 80px); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; margin: 0; }
.hero__sub { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; color: var(--color-ink); max-width: 560px; margin: 18px auto 0; letter-spacing: 0.012em; }
.hero__ctas { margin-top: 26px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

.hero__stage { position: relative; width: 100%; flex: 1; min-height: 300px; display: flex; justify-content: center; align-items: flex-end; perspective: 1400px; perspective-origin: 50% 0%; margin-top: 10px; }
.board3d { position: absolute; left: 50%; bottom: -14vh; width: min(92vw, 820px); aspect-ratio: 1; transform: translateX(-50%) rotateX(62deg) rotateZ(45deg); transform-style: preserve-3d; }
.board3d__grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(8, 1fr); border-radius: 18px; overflow: hidden; }
.board3d__grid i { display: block; background: var(--color-studio-mist); }
.board3d__grid i.d { background: #dfe6f0; }
.board3d__grid i.b { background: #c9d8ec; }

.rook { position: relative; z-index: 2; width: clamp(150px, 19vw, 240px); margin-bottom: clamp(70px, 14vh, 140px); transform-origin: 50% 100%; }
.rook__svg { width: 100%; height: auto; overflow: visible; display: block; }
.rook__line { stroke: var(--color-ink); stroke-width: 1.4; stroke-linejoin: round; }
.rook__wave { fill: none; stroke: var(--logo-blue); stroke-width: 5; stroke-linecap: round; }
.rook__shadow { position: absolute; left: 50%; bottom: -14px; width: 120%; height: 34px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(15, 42, 74, .35), rgba(15, 42, 74, 0)); filter: blur(4px); z-index: -1; }

.callout { position: absolute; z-index: 4; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; align-items: center; gap: 22px; padding: 12px 12px 12px 26px; border-radius: var(--radius-cards); background: #fff; box-shadow: var(--shadow-subtle); }
.callout__text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.29; letter-spacing: -0.224px; }
.callout__text strong { font-weight: 600; }
.callout__text span { color: var(--color-slate); font-size: 12px; }
.callout .pill { padding: 8px 16px; }

.hero__scroll { position: absolute; right: 32px; bottom: 40px; width: 1px; height: 60px; background: var(--color-control-gray); overflow: hidden; z-index: 3; }
.hero__scroll span { position: absolute; left: 0; top: -30px; width: 1px; height: 30px; background: var(--color-ink); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { to { top: 60px; } }

/* ============ Anchors ============ */
.anchors { border-top: 1px solid var(--color-hairline-silver); border-bottom: 1px solid var(--color-hairline-silver); background: #fff; position: relative; z-index: 5; }
.anchors ul { list-style: none; margin: 0 auto; padding: 0 22px; max-width: 1024px; display: flex; justify-content: center; gap: 36px; overflow-x: auto; scrollbar-width: none; }
.anchors ul::-webkit-scrollbar { display: none; }
.anchors a { display: block; padding: 28px 0; font-size: 17px; font-weight: 500; line-height: 25px; letter-spacing: -0.374px; white-space: nowrap; color: var(--color-ink); transition: color .2s; }
.anchors a:hover, .anchors a.is-active { color: var(--color-apple-blue); }

/* ============ Typography blocks ============ */
.kicker { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: 0.231px; margin: 0 0 18px; }
.display { font-family: var(--font-display); font-size: clamp(40px, 5.6vw, 64px); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 24px; }
.section-title { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; line-height: 1.07; letter-spacing: -0.012em; margin: 0; }
.body { font-size: 17px; line-height: 1.47; letter-spacing: -0.374px; color: var(--color-ink); max-width: 520px; margin: 0 0 24px; }

/* ============ Manifesto ============ */
.manifesto { padding: calc(var(--section-gap) * 1.6) var(--pad-x); max-width: 1180px; margin: 0 auto; }
.manifesto .kicker { color: var(--color-slate); }
.manifesto__text { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 56px); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; margin: 0; }
.manifesto__text .w { opacity: .14; display: inline-block; }

/* ============ Editorial ============ */
.editorial { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding: var(--section-gap) 0 calc(var(--section-gap) * 1.5) var(--gutter); }
.editorial__copy { max-width: 520px; }
.editorial__media { margin: 0; height: min(78vh, 720px); border-radius: var(--radius-images) 0 0 var(--radius-images); overflow: hidden; background: var(--color-studio-mist); }
.editorial__media img { width: 100%; height: 120%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 8px 0 28px; padding: 24px 0; border-top: 1px solid var(--color-hairline-silver); border-bottom: 1px solid var(--color-hairline-silver); }
.facts dt { font-size: 12px; color: var(--color-slate); letter-spacing: -0.12px; margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 500; }
.facts--inline { grid-template-columns: repeat(3, auto); justify-content: start; }

/* ============ Highlights ============ */
.highlights { background: var(--color-studio-mist); padding: var(--section-gap) 0; overflow: hidden; }
.highlights__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); margin-bottom: 52px; }
.highlights__viewport { overflow: visible; }
.highlights__track { display: flex; gap: var(--element-gap); padding: 0 var(--gutter); width: max-content; }
.hcard { width: clamp(300px, 34vw, 420px); height: clamp(480px, 66vh, 620px); background: #fff; border-radius: var(--radius-cards); padding: 36px var(--card-padding) 0; display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; }
.hcard__kicker { font-size: 14px; font-weight: 600; letter-spacing: -0.224px; color: var(--color-slate); margin: 0 0 10px; }
.hcard__title { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.hcard__media { flex: 1; display: flex; align-items: center; justify-content: center; margin: 24px calc(var(--card-padding) * -1) 0; padding: 0 var(--card-padding) var(--card-padding); position: relative; }
.hcard__media--img { padding: 0; align-items: stretch; }
.hcard__media--img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

.mock-eval { display: flex; gap: 16px; width: 100%; align-items: stretch; }
.mock-eval__bar { width: 14px; border-radius: 7px; background: #1d1d1f; position: relative; overflow: hidden; min-height: 220px; }
.mock-eval__bar span { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: #f5f5f7; box-shadow: inset 0 0 0 1px #d6d6d6; border-radius: 0 0 7px 7px; }
.mock-eval__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 12px; flex: 1; justify-content: center; min-width: 0; }
.mock-eval__lines li { background: var(--color-studio-mist); border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; line-height: 1.5; }
.mock-eval__lines b { color: var(--color-apple-blue); margin-right: 6px; }

.mock-elo { width: 100%; height: auto; overflow: visible; }
.mock-elo__grid line { stroke: var(--color-control-gray); stroke-width: 1; }
.mock-elo__line { fill: none; stroke: var(--color-apple-blue); stroke-width: 3; stroke-linecap: round; }
.mock-elo__dot { fill: var(--color-apple-blue); }
.mock-elo__label { position: absolute; left: var(--card-padding); bottom: var(--card-padding); margin: 0; font-size: 13px; color: var(--color-slate); }

.mock-arena { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.mock-arena li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--color-studio-mist); border-radius: 16px; font-size: 15px; font-weight: 500; }
.mock-arena em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--color-slate); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2e9e4f; box-shadow: 0 0 0 4px rgba(46, 158, 79, .15); }
.dot--off { background: var(--color-steel); box-shadow: none; }

.mock-member { width: 100%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-subtle); }
.mock-member__row { display: flex; justify-content: space-between; padding: 18px 20px; font-size: 15px; border-bottom: 1px solid var(--color-control-gray); }
.mock-member__row:last-child { border-bottom: 0; }
.mock-member__row b { font-weight: 600; }
.mock-member__row b.ok { color: #2e7d32; }
.mock-member__row b.link { color: var(--color-apple-blue); }

/* ============ Boards ============ */
.board2d { position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: repeat(8, 1fr); background: #eef2f7; }
.board2d .sq { position: relative; background: #f2f4f8; }
.board2d .sq.d { background: #c7d5e8; }
.board2d .sq.hl { background: #f6e7a8; }
.board2d .sq.d.hl { background: #e3cf7f; }
.board2d .sq.sel { box-shadow: inset 0 0 0 3px var(--color-pricing-blue); }
.board2d .sq.ok { background: #bfe3c6; }
.board2d .sq.ko { background: #f4c7c3; }
.board2d .coord { position: absolute; font-size: 10px; font-family: var(--font-mono); color: rgba(29, 29, 31, .45); pointer-events: none; }
.board2d .coord--f { right: 4px; bottom: 2px; }
.board2d .coord--r { left: 4px; top: 2px; }
.piece { position: absolute; width: 12.5%; height: 12.5%; display: flex; align-items: center; justify-content: center; font-family: var(--font-glyph); font-size: clamp(22px, 4.6vw, 52px); line-height: 1; user-select: none; pointer-events: none; will-change: transform; }
.piece.w { color: #fff; -webkit-text-stroke: 1.4px #1d1d1f; paint-order: stroke fill; }
.piece.b { color: #1d1d1f; }
.board2d--puzzle .piece { font-size: clamp(24px, 4.4vw, 50px); }
.board2d--puzzle .sq { cursor: pointer; }

/* ============ Opera ============ */
.opera { background: #fff; }
.opera__pin { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(320px, 560px); gap: 72px; align-items: center; padding: 100px var(--gutter); }
.opera__move { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 22px; }
.opera__ply { font-size: 28px; font-weight: 500; color: var(--color-ink); }
.opera__note { font-size: 14px; color: var(--color-slate); letter-spacing: -0.224px; min-height: 1.3em; }
/* replay controls */
.player { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; max-width: 520px; }
.player__btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--color-studio-mist); color: var(--color-ink); display: grid; place-items: center; transition: background-color .25s var(--ease), color .25s var(--ease); }
.player__btn svg { width: 18px; height: 18px; fill: currentColor; }
.player__btn:hover { background: var(--color-control-gray); }
.player__btn:focus-visible { outline: 2px solid var(--color-pricing-blue); outline-offset: 2px; }
.player__btn--main { width: 52px; height: 52px; background: var(--color-pricing-blue); color: #fff; }
.player__btn--main:hover { background: #0077ed; }
.player__btn--main svg { width: 22px; height: 22px; }
.player__btn .i-pause, .player__btn.is-playing .i-play { display: none; }
.player__btn.is-playing .i-pause { display: block; }
.player__seek { flex: 1 1 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; margin-top: 10px; background: linear-gradient(var(--color-apple-blue), var(--color-apple-blue)) 0 / var(--fill, 0%) 100% no-repeat, var(--color-control-gray); outline: none; cursor: pointer; }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--color-steel); }
.player__seek::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--color-steel); }
.opera__moves { list-style: none; margin: 0; padding: 6px; max-width: 520px; max-height: 168px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; font-size: 13px; background: var(--color-paper-frost); border-radius: 14px; box-shadow: var(--shadow-subtle); scrollbar-width: thin; }
.opera__moves li { display: grid; grid-template-columns: 28px 1fr 1fr; align-items: center; }
.opera__moves i { font-style: normal; color: var(--color-steel); }
.opera__moves button { font-family: inherit; font-size: inherit; text-align: left; border: 0; background: none; padding: 5px 6px; border-radius: 6px; color: var(--color-ink); }
.opera__moves button:hover { background: var(--color-control-gray); }
.opera__moves button.is-on { background: var(--color-apple-blue); color: #fff; }
.opera__progress { height: 2px; background: var(--color-control-gray); border-radius: 2px; overflow: hidden; max-width: 420px; }
.opera__progress span { display: block; height: 100%; width: 100%; background: var(--color-apple-blue); transform-origin: 0 50%; transform: scaleX(0); }
.opera__boardwrap { width: 100%; }

/* ============ Services ============ */
.services { background: var(--color-studio-mist); padding: var(--section-gap) var(--gutter) calc(var(--section-gap) * 1.3); }
.services__head { margin-bottom: 52px; }
.services__all { margin-top: 20px; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--element-gap); perspective: 1200px; }
.scard { background: #fff; border-radius: var(--radius-cards); padding: 36px var(--card-padding); position: relative; overflow: hidden; min-height: 400px; display: flex; flex-direction: column; transform-style: preserve-3d; will-change: transform; }
.scard--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 0; min-height: 460px; }
.scard--wide .scard__copy { padding: 52px 0 52px 52px; align-self: center; }
.scard--wide .scard__title { font-size: clamp(32px, 3.4vw, 40px); }
.scard__media { overflow: hidden; }
.scard__media img { width: 100%; height: 115%; object-fit: cover; }
.scard__kicker { font-size: 14px; font-weight: 600; color: var(--color-slate); margin: 0 0 10px; letter-spacing: -0.224px; }
.scard__title { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 14px; }
.scard__body { font-size: 17px; line-height: 1.24; color: var(--color-ink); margin: 0; }
.scard__glyph { margin-top: auto; align-self: flex-end; font-family: var(--font-glyph); font-size: 128px; line-height: .8; color: var(--turchinu); transform: translateZ(40px); }

/* ============ Puzzle ============ */
.puzzle { display: grid; grid-template-columns: minmax(300px, 540px) 1fr; gap: 80px; align-items: center; padding: calc(var(--section-gap) * 1.3) var(--gutter); }
.puzzle__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.puzzle__actions .pill { font-size: 14px; padding: 8px 18px; }
[data-puzzle-status].is-ok { color: #2e7d32; }
[data-puzzle-status].is-ko { color: #b3261e; }

/* ============ Gestion ============ */
.gestion { background: var(--color-studio-mist); overflow: hidden; }
.gestion__pin { min-height: 100vh; padding: 110px var(--gutter) 80px; display: flex; flex-direction: column; align-items: center; }
.gestion__head { text-align: center; max-width: 760px; }
.gestion__head .body { margin: 0 auto; max-width: 620px; }
.gestion__lead { color: var(--color-ink); }
.screen { margin-top: 52px; width: min(1100px, 100%); background: #fff; border-radius: var(--radius-cards); overflow: hidden; box-shadow: var(--shadow-subtle); transform-origin: 50% 0; }
.screen__bar { display: flex; align-items: center; gap: 7px; padding: 14px 20px; border-bottom: 1px solid var(--color-control-gray); font-size: 12px; color: var(--color-slate); }
.screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-control-gray); }
.screen__bar span { margin-left: 12px; }
.screen__bar em { color: var(--color-launch-orange); font-style: normal; font-weight: 600; }
.screen__body { display: grid; grid-template-columns: 200px 1fr; }
.screen__side { display: flex; flex-direction: column; gap: 2px; padding: 22px 14px; border-right: 1px solid var(--color-control-gray); background: var(--color-paper-frost); font-size: 13px; }
.screen__side b { font-family: var(--font-display); font-size: 15px; padding: 4px 10px 14px; }
.screen__side span { padding: 8px 10px; border-radius: var(--radius-links); color: var(--color-slate); }
.screen__side span.is-active { background: #fff; color: var(--color-ink); box-shadow: var(--shadow-subtle); font-weight: 500; }
.screen__main { padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--color-studio-mist); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi span { font-size: 12px; color: var(--color-slate); }
.kpi b { font-size: clamp(18px, 2vw, 26px); font-weight: 500; }
.kpi b.pos { color: #2e7d32; }
.chart { background: var(--color-studio-mist); border-radius: 16px; padding: 16px 18px; }
.chart p { margin: 0 0 12px; font-size: 12px; color: var(--color-slate); }
.chart__bars { height: 120px; display: flex; align-items: flex-end; gap: 8px; }
.chart__bars i { flex: 1; height: var(--h); background: var(--turchinu); border-radius: 6px 6px 2px 2px; transform-origin: 50% 100%; }
.ledger { width: 100%; border-collapse: collapse; font-size: 12px; }
.ledger th { text-align: left; font-weight: 500; color: var(--color-slate); padding: 8px 10px; border-bottom: 1px solid var(--color-control-gray); font-family: var(--font-text); }
.ledger td { padding: 9px 10px; border-bottom: 1px solid var(--color-control-gray); white-space: nowrap; }
.ledger .r { text-align: right; }

/* ============ Contact ============ */
.contact { padding: calc(var(--section-gap) * 1.3) var(--gutter); }
.contact__head { margin-bottom: 52px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--element-gap); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: var(--element-gap); }
.ccard { background: var(--color-studio-mist); border-radius: var(--radius-cards); padding: var(--card-padding); }
.ccard__label { font-size: 14px; font-weight: 600; color: var(--color-slate); margin: 0 0 10px; }
.ccard__value { display: block; font-size: 17px; line-height: 1.47; margin: 0 0 12px; }
.ccard__big { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; transition: color .2s; }
.ccard__big:hover { color: var(--color-apple-blue); }
.cform { background: var(--color-studio-mist); border-radius: var(--radius-cards); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.cform__title { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; letter-spacing: -0.224px; color: var(--color-slate); }
.cform input, .cform select, .cform textarea {
  font: inherit; font-size: 17px; color: var(--color-ink); background: #fff; border: 0; box-shadow: var(--shadow-subtle-2);
  border-radius: 14px; padding: 14px 18px; outline: none; transition: box-shadow .25s var(--ease); width: 100%;
}
.cform input, .cform select { border-radius: var(--radius-inputs); padding: 13px 22px; }
.cform select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; }
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { box-shadow: 0 0 0 2px var(--color-pricing-blue); }
.cform .is-invalid { box-shadow: 0 0 0 2px #d93025; }
.cform__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.cform__note { font-size: 12px; color: var(--color-slate); margin: 0; max-width: 300px; }

/* ============ Footer ============ */
.footer { background: var(--color-studio-mist); font-size: 12px; letter-spacing: -0.12px; color: var(--color-slate); }
.footer__inner { max-width: 1024px; margin: 0 auto; padding: 40px 22px 24px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--color-hairline-silver); }
.footer h4 { color: var(--color-ink); font-weight: 600; font-size: 12px; margin: 0 0 10px; }
.footer__cols a, .footer__cols span { display: block; margin-bottom: 8px; color: var(--color-slate); }
.footer__cols a:hover { color: var(--color-ink); text-decoration: underline; }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 16px; }
.footer__legal p { margin: 0; }

/* ============ Intro states (prevent FOUC) ============ */
.is-loading [data-hero-kicker], .is-loading [data-hero-sub], .is-loading [data-hero-ctas], .is-loading [data-callout], .is-loading .gnav { opacity: 0; }

/* ============ Responsive ============ */
@media (max-width: 1068px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .lnav__meta { display: none; }
}
@media (max-width: 860px) {
  :root { --section-gap: 64px; }
  .gnav__links { display: none; }
  .gnav__burger { display: block; }
  .editorial { grid-template-columns: 1fr; padding: var(--section-gap) var(--gutter); gap: 40px; }
  .editorial__media { height: 62vh; border-radius: var(--radius-images); }
  .opera__pin { grid-template-columns: 1fr; gap: 32px; padding: 80px var(--gutter); align-content: center; }
  .opera__boardwrap { max-width: 460px; margin: 0 auto; }
  .opera .body { display: none; }
  .opera .display { font-size: 36px; margin-bottom: 8px; }
  .puzzle { grid-template-columns: 1fr; gap: 40px; }
  .scard--wide { grid-template-columns: 1fr; }
  .scard--wide .scard__copy { padding: 36px var(--card-padding) 0; }
  .scard--wide .scard__media { height: 300px; }
  .contact__grid { grid-template-columns: 1fr; }
  .screen__body { grid-template-columns: 1fr; }
  .screen__side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .ledger { display: block; overflow-x: auto; }
  .highlights__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .highlights__viewport::-webkit-scrollbar { display: none; }
  .hcard { scroll-snap-align: center; width: 82vw; height: 520px; }
  .highlights__head { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .scard { min-height: 320px; }
  .scard__glyph { font-size: 96px; }
  .cform { padding: 28px 22px; }
  .cform__row { grid-template-columns: 1fr; }
  .lnav__title { font-size: 17px; }
  .lnav .pill--outline { display: none; }
  .callout { width: calc(100% - 32px); justify-content: space-between; padding-left: 20px; }
  .facts--inline { grid-template-columns: 1fr 1fr; }
  .anchors ul { justify-content: flex-start; gap: 26px; }
}

.footer__motion { background: none; border: 0; padding: 0; font-size: 12px; color: var(--color-apple-blue); }
.footer__motion:hover { text-decoration: underline; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }

/* nav dropdown ("Échecs") */
.gnav__dd { position: relative; }
.gnav__ddbtn { background: none; border: 0; font: inherit; font-size: 12px; line-height: 1; letter-spacing: -0.12px; color: rgba(0, 0, 0, .8); padding: 8px; cursor: pointer; }
.gnav__ddbtn span { font-size: 9px; }
.gnav__ddbtn:hover, .gnav__ddbtn[data-current] { color: #000; }
.gnav__ddmenu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, -4px); min-width: 270px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .14); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 50; }
.gnav__ddmenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.gnav__dd:hover .gnav__ddmenu, .gnav__dd:focus-within .gnav__ddmenu, .gnav__dd.is-open .gnav__ddmenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnav__ddmenu a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; }
.gnav__ddmenu a:hover, .gnav__ddmenu a[aria-current] { background: var(--color-studio-mist); }
.gnav__ddmenu b { font-size: 13px; font-weight: 600; color: var(--color-ink); }
.gnav__ddmenu span { font-size: 12px; color: var(--color-slate); line-height: 1.3; }
/* shared small controls (chips, text buttons) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: #fff; box-shadow: var(--shadow-subtle); border-radius: var(--radius-buttons); padding: 8px 15px; font: inherit; font-size: 14px; color: var(--color-ink); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.chip:hover { box-shadow: var(--shadow-subtle-2); }
.chip.is-on { background: var(--color-ink); color: #fff; box-shadow: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--color-apple-blue); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
/* ---------- accessibility ---------- */
:focus-visible { outline: 3px solid #0071e3; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: #1d1d1f; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 15px; transition: top .2s; }
.skip-link:focus { top: 10px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
/* photo credits (free-licence photos) */
.editorial__media { position: relative; }
.photo-credit { position: absolute; right: 10px; bottom: 8px; margin: 0; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 11px; line-height: 1.3; max-width: calc(100% - 20px); }

/* light / dark switch in the top bar */
.gnav__theme { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 6px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; flex: none; }
.gnav__theme:hover { background: rgba(128, 128, 128, .15); }
.gnav__theme svg { width: 18px; height: 18px; fill: currentColor; }
.gnav__theme .i-sun { display: none; }
.gnav__theme.is-dark .i-sun { display: block; } .gnav__theme.is-dark .i-moon { display: none; }