/* ==========================================================================
   OXALIFT — design system
   1 Polices · 2 Jetons · 3 Base · 4 Mise en page · 5 Typographie · 6 Composants
   7 En-tête & menu · 8 Pied de page · 9 Mouvement · 10 Pages · 11 Chatbot · 12 Adaptations
   ========================================================================== */

/* 1 — POLICES (auto-hébergées : aucune requête tierce, conforme RGPD) ------ */

/* 2 — JETONS ---------------------------------------------------------------- */
:root {
  --bg: #fff;
  --white: var(--bg);
  --paper: #fbfbfd;
  --soft: #f5f5f7;
  --soft-2: #e8e8ed;
  --line: rgb(0 0 0 / .1);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --mute: #6e6e73;
  --black: #000;
  --d-surface: #161618;
  --d-surface-2: #1d1d1f;
  --accent: #4da8be;          /* turquoise du logo — décoratif */
  --accent-ink: #1b6579;      /* turquoise lisible comme texte (contraste AA) */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: var(--font);

  --header-h: 52px;
  --gutter: max(20px, env(safe-area-inset-left), 4.5vw);
  --wrap: 1180px;
  --wrap-narrow: 820px;
  --r-s: 12px; --r-m: 20px; --r-l: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --band-y: clamp(88px, 12vw, 176px);

  /* — thème : valeurs du mode CLAIR (jour) — */
  color-scheme: light dark;
  --feature-bg: var(--soft);            /* bandes « mises en avant » : gris très clair le jour, noir la nuit */
  --btn-hover: #000;
  --ghost-hover: rgb(0 0 0 / .05);
  --field-bg: #fff; --field-line: #c9c9ce; --field-line-hover: #8e8e93; --drop-hover: #f2f9fb;
  --glass: rgb(255 255 255 / .8); --glass-solid: rgb(255 255 255 / .96); --header-line: rgb(0 0 0 / .08);
  --logo-mark: #17294d; --logo-label: #6e6e73; --logo-sep: rgb(0 0 0 / .2);
  --hero-mark: #ececef; --glow: rgb(77 168 190 / .18); --glow-soft: rgb(77 168 190 / .05); --code: #eeeef1;
  --word-dim: #8a8a8f;
  --tile-a: var(--soft); --tile-b: #1d1d1f;
  --app-bg: #0f0f11; --app-row: #1c1c1f;
  --mock-bg: #fff; --mock-bar: #ececef; --mock-dot: #c7c7cc; --mock-url: #fff; --mock-title: #1d1d1f; --mock-line: #e5e5ea; --mock-card: #f0f0f3;
  --panel: rgb(255 255 255 / .94); --panel-2: rgb(255 255 255 / .8); --panel-ring: rgb(0 0 0 / .08); --bubble: #f5f5f7;
  --notice-bg: #fdecea; --notice-ink: #7a1c14; --error: #b3261e; --error-on: #fff;
}

/* Thème automatique : suit le réglage du navigateur / du système (clair le jour, sombre la nuit).
   [data-theme] permet de forcer un thème plus tard (bouton) sans rien réécrire. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000;
    --paper: #0a0a0b;
    --soft: #161618;
    --soft-2: #232326;
    --line: rgb(255 255 255 / .13);
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --mute: #a1a1a6;
    --accent-ink: #4da8be;
    --feature-bg: #000;
    --btn-hover: #e8e8ed;
    --ghost-hover: rgb(255 255 255 / .08);
    --field-bg: #1c1c1e; --field-line: #48484a; --field-line-hover: #6e6e73; --drop-hover: #10242a;
    --glass: rgb(0 0 0 / .72); --glass-solid: rgb(0 0 0 / .94); --header-line: rgb(255 255 255 / .1);
    --logo-mark: #8fa8d9; --logo-label: #86868b; --logo-sep: rgb(255 255 255 / .22);
    --hero-mark: #1f1f22; --glow: rgb(77 168 190 / .22); --glow-soft: rgb(77 168 190 / .06); --code: #1b1b1e;
    --word-dim: #636366;
    --tile-a: #1d1d1f; --tile-b: #101012;
    --app-bg: #1b1b1e; --app-row: #2a2a2d;
    --mock-bg: #1c1c1e; --mock-bar: #2c2c2e; --mock-dot: #48484a; --mock-url: #1c1c1e; --mock-title: #f5f5f7; --mock-line: #3a3a3c; --mock-card: #2c2c2e;
    --panel: rgb(28 28 30 / .94); --panel-2: rgb(28 28 30 / .85); --panel-ring: rgb(255 255 255 / .1); --bubble: #2c2c2e;
    --notice-bg: #3b1612; --notice-ink: #ffb4ab; --error: #ff8a80; --error-on: #000;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --paper: #0a0a0b;
  --soft: #161618;
  --soft-2: #232326;
  --line: rgb(255 255 255 / .13);
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --mute: #a1a1a6;
  --accent-ink: #4da8be;
  --feature-bg: #000;
  --btn-hover: #e8e8ed;
  --ghost-hover: rgb(255 255 255 / .08);
  --field-bg: #1c1c1e; --field-line: #48484a; --field-line-hover: #6e6e73; --drop-hover: #10242a;
  --glass: rgb(0 0 0 / .72); --glass-solid: rgb(0 0 0 / .94); --header-line: rgb(255 255 255 / .1);
  --logo-mark: #8fa8d9; --logo-label: #86868b; --logo-sep: rgb(255 255 255 / .22);
  --hero-mark: #1f1f22; --glow: rgb(77 168 190 / .22); --glow-soft: rgb(77 168 190 / .06); --code: #1b1b1e;
  --word-dim: #636366;
  --tile-a: #1d1d1f; --tile-b: #101012;
  --app-bg: #1b1b1e; --app-row: #2a2a2d;
  --mock-bg: #1c1c1e; --mock-bar: #2c2c2e; --mock-dot: #48484a; --mock-url: #1c1c1e; --mock-title: #f5f5f7; --mock-line: #3a3a3c; --mock-card: #2c2c2e;
  --panel: rgb(28 28 30 / .94); --panel-2: rgb(28 28 30 / .85); --panel-ring: rgb(255 255 255 / .1); --bubble: #2c2c2e;
  --notice-bg: #3b1612; --notice-ink: #ffb4ab; --error: #ff8a80; --error-on: #000;
}
:root[data-theme="light"] { color-scheme: light; }

/* Surfaces toujours sombres (tuile, cartes colorées des projets) : elles ré-déclarent leurs jetons
   pour que leurs textes restent lisibles dans les deux thèmes. */
.tile--dark, .card--dark {
  --ink: #f5f5f7; --ink-2: #d2d2d7; --mute: #a1a1a6; --line: rgb(255 255 255 / .14); --soft: rgb(255 255 255 / .1);
  --accent-ink: #4da8be; --btn-hover: #e8e8ed; color-scheme: dark;
}
.tile--dark { --bg: var(--tile-b); }
.card--dark { --bg: #1d1d1f; }
.proj, .case-hero, .app-slide, .pj__item { --bg: var(--tint, var(--soft)); }


/* 3 — BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; }
/* Ne PAS poser overflow-x / touch-action / overscroll-behavior sur html : Safari bascule alors le défilement hors du mode fluide et les scènes animées tremblent. */
#nos-sites { overflow-x: clip; }                   /* la base du MacBook du sélecteur dépassait de quelques pixels sur téléphone */
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss03"; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--black); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--white); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.ico { flex: none; }

/* Utilitaires (aucun style en ligne : la politique CSP l'interdit) */
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: clamp(20px, 2.4vw, 30px); } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: clamp(36px, 5vw, 64px); }
.mb-hero { margin-bottom: clamp(10px, min(2.4vw, 3svh), 30px); } .mb-xl { margin-bottom: clamp(36px, 5vw, 72px); }
.mw-14 { max-width: 14em; } .mw-15 { max-width: 15em; } .mw-18 { max-width: 18em; }
.band--flush-top { padding-top: 0; }
.stack--lg { --stack: clamp(28px, 4vw, 48px); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.tile--dark .eyebrow { color: var(--mute); }
/* Couleurs de fond des cartes de réalisations */
[data-proj="aquacreneaux"] { --c: #0c2f48; --tint: var(--tint-aquacreneaux); } [data-proj="cultios"] { --c: #10281a; --tint: var(--tint-cultios); }
[data-proj="latelier-agathe-blanche"] { --c: #2b2822; --tint: var(--tint-latelier); } [data-proj="cph-wines"] { --c: #2e1519; --tint: var(--tint-cph); }

/* 4 — MISE EN PAGE ---------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }
.wrap--wide { max-width: calc(1360px + var(--gutter) * 2); }
.band { padding-block: var(--band-y); position: relative; }
.band--soft { background: var(--soft); }
.band--paper { background: var(--paper); }
.band--dark { background: var(--feature-bg); color: var(--ink); }
.band--tight { padding-block: calc(var(--band-y) * .55); }
.t-center { text-align: center; }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.cq { container-type: inline-size; }

/* 5 — TYPOGRAPHIE ----------------------------------------------------------- */
.t-display-xl, .t-display-l, .t-display-m, .t-title { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.t-display-xl { font-size: clamp(2.75rem, 1rem + 5.6vw, 6.25rem); line-height: .98; letter-spacing: -.045em; }
.t-display-l  { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5rem); }
.t-display-m  { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); letter-spacing: -.03em; }
.t-title      { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -.022em; line-height: 1.12; }
.t-card       { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.lead { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.35; letter-spacing: -.012em; color: var(--mute); text-wrap: pretty; max-width: 38em; }
.band--dark .lead, .on-dark .lead { color: var(--mute); }
.t-center .lead { margin-inline: auto; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.band--dark .eyebrow, .on-dark .eyebrow { color: var(--mute); }
.eyebrow--accent { color: var(--accent-ink); }
.band--dark .eyebrow--accent { color: var(--accent-ink); }
/* mot d'accent en italique serif : la signature typographique du site */
em.serif, .t-display-xl em, .t-display-l em, .t-display-m em, .t-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.t-display-xl em, .t-display-l em { font-size: 1.06em; }
.muted { color: var(--mute); }
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 2.4em; }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); text-wrap: pretty; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Héros sombre des pages intérieures : mêmes règles que les bandes sombres */
.hero .eyebrow { color: var(--mute); }
.page-hero--dark .lead { color: var(--mute); }
.page-hero--dark .eyebrow { color: var(--mute); }
.page-hero--dark .eyebrow--accent { color: var(--accent-ink); }
.page-hero--dark .link-arrow { color: var(--accent-ink); }

/* 6 — COMPOSANTS ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: 0 1.5em; font-weight: 500; font-size: 1rem; line-height: 1;
  border-radius: 999px; border: 1px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); white-space: nowrap; }
.btn--lg { min-height: 54px; padding: 0 1.9em; font-size: 1.0625rem; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--btn-hover); }
/* « clair » et « sombre » sont désormais le même bouton principal : encre sur fond, s'inverse avec le thème */
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: var(--btn-hover); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { background: var(--ghost-hover); }
.btn:active { transform: scale(.97); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 2rem; }
.t-center .btn-row { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--accent-ink); font-weight: 500; }
.link-arrow .ico { transition: transform .3s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow--light, .band--dark .link-arrow { color: var(--accent-ink); }
.chip { display: inline-flex; align-items: center; padding: .38em .9em; font-size: .8125rem; font-weight: 500; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.on-dark .chip { background: rgb(255 255 255 / .1); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cartes */
.card { background: var(--soft); border-radius: var(--r-l); padding: clamp(24px, 3vw, 40px); }
.card--white { background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.card--dark { background: #1d1d1f; color: var(--ink); }
.feature { display: flex; flex-direction: column; gap: .7rem; }
.feature .ico { width: 30px; height: 30px; color: var(--accent-ink); }
.band--dark .feature .ico, .card--dark .feature .ico { color: var(--accent-ink); }
.feature h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
.feature p { color: var(--mute); font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.band--dark .feature p { color: var(--mute); }
.features { display: grid; gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 44px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* Liste à coches */
.checks li { display: flex; gap: .8em; align-items: flex-start; padding-block: .55em; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks .ico { margin-top: .2em; color: var(--accent-ink); width: 20px; height: 20px; }
.band--dark .checks li { border-color: var(--line); }
.band--dark .checks .ico { color: var(--accent-ink); }

/* Maquettes d'appareils (CSS pur, décoratives) */
.device { position: relative; border-radius: 18px; background: #0b0b0c; padding: 8px; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 80px -20px rgb(0 0 0 / .45); }
.device img { border-radius: 12px; width: 100%; height: auto; background: var(--soft); }
.device--phone { border-radius: 38px; padding: 9px; width: min(100%, 250px); }
.device--phone img { border-radius: 30px; }
.browser { border-radius: 14px; overflow: hidden; background: var(--mock-bg); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgb(0 0 0 / .3); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--mock-bar); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mock-dot); }
.browser__bar span { margin-left: 12px; flex: 1; max-width: 260px; height: 20px; border-radius: 6px; background: var(--mock-url); color: var(--mute); font-size: .6875rem; line-height: 20px; padding-inline: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; height: auto; }

/* Visuel avec mention légale en bandeau (loi Evin : alcool) */
.shot { position: relative; line-height: 0; }
.legal-band { position: absolute; left: 0; right: 0; bottom: 0; padding: .55em .9em; background: rgb(196 184 170 / .94); color: #26231f; font-size: clamp(.6875rem, .55rem + .35vw, .875rem); font-weight: 500; line-height: 1.3; text-align: center; letter-spacing: .005em; text-wrap: balance; }
.proj__shot .legal-band { left: 30px; right: 30px; }
.device .legal-band { left: 8px; right: 8px; bottom: 0; }

/* Téléphone superposé à la capture d'une PWA */
.shot--phone .shot__phone { position: absolute; right: 4%; bottom: 7%; width: 21%; border-radius: clamp(10px, 1.8vw, 22px); overflow: hidden; line-height: 0; box-shadow: 0 24px 50px -10px rgb(0 0 0 / .55), 0 0 0 clamp(2px, .4vw, 4px) #0b0b0c, 0 0 0 clamp(3px, .5vw, 5px) rgb(255 255 255 / .14); }
.shot__phone img { width: 100%; height: auto; }
/* Couverture typographique (visuel à venir) */
.shot--type { aspect-ratio: 16 / 10; display: grid; place-content: center; gap: .6rem; text-align: center; border-radius: 14px 14px 0 0; background: radial-gradient(120% 120% at 20% 0%, rgb(255 255 255 / .14), transparent 60%), var(--c, #222); color: #fff; line-height: 1.1; }
.shot__brand { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.shot__kind { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }

/* Grille de réalisations par type (page Réalisations, études de cas) */
.parts { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.part-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--soft); isolation: isolate; }
.part-card__media { background: var(--tint, var(--soft-2)); padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) 0; }
.part-card__media .shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; display: block; }
.part-card__media .shot--type { border-radius: 12px 12px 0 0; }
.part-card__body { display: flex; flex-direction: column; gap: .65rem; flex: 1; padding: clamp(22px, 2.6vw, 32px); }
.part-card__kind { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.part-card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.part-card__text { color: var(--ink-2); text-wrap: pretty; }
.part-card .chips { margin-top: .3rem; }
.part-card .chip { background: var(--soft-2); }
.part-card .link-arrow { margin-top: auto; padding-top: .8rem; }
.part-card a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; }
a.chip { transition: background .2s; } a.chip:hover { background: var(--soft-2); }
.section-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.section-nav a { display: inline-flex; align-items: center; gap: .6em; min-height: 44px; padding: 0 1.2em; border-radius: 999px; background: var(--soft); font-weight: 500; transition: background .2s; }
.section-nav a:hover { background: var(--soft-2); }
.section-nav small { color: var(--mute); font-weight: 600; }
.software .work-item .checks { margin-top: 1.2rem; font-size: .9375rem; }
.software .work-item .checks li { padding-block: .4em; }

/* Formulaires */
.field { display: grid; gap: 8px; }
.field > label, .legend { font-size: .9375rem; font-weight: 500; color: var(--ink); }
.field .hint { font-size: .8125rem; color: var(--mute); font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 14px 16px; background: var(--field-bg); border: 1px solid var(--field-line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; font-size: 1rem; }
.textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--field-line-hover); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgb(77 168 190 / .25); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.error { color: var(--error); font-size: .875rem; font-weight: 500; display: flex; gap: .45em; align-items: flex-start; }
.error::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: var(--error-on); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.notice { padding: 16px 18px; border-radius: var(--r-s); background: var(--notice-bg); color: var(--notice-ink); font-size: .9375rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span { display: flex; align-items: center; min-height: 52px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--field-line); background: var(--field-bg); font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.choice input:hover + span { border-color: var(--field-line-hover); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 7 — EN-TÊTE & MENU -------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; view-transition-name: site-header; background: var(--bg); }
.site-header::before { content: ""; position: absolute; inset: 0; background: var(--bg); border-bottom: 1px solid var(--header-line); z-index: -1; }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; max-width: calc(1400px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.site-header__logo { margin-right: auto; display: flex; align-items: center; min-height: 44px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); line-height: 1; }
.logo__mark { width: 32px; height: 32px; color: var(--logo-mark); flex: none; transition: color .3s var(--ease); }
a:hover > .logo .logo__mark { color: var(--accent-ink); }
.logo__text { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.logo__name { font-weight: 700; font-size: .9375rem; letter-spacing: .2em; margin-right: -.2em; line-height: 1; }
/* libellé de la page, centré sous « OXALIFT » */
.logo__label { font-size: .6875rem; font-weight: 400; letter-spacing: .1em; color: var(--logo-label); white-space: nowrap; line-height: 1; view-transition-name: logo-label; }
.site-nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a { position: relative; font-size: .875rem; color: var(--ink-2); padding-block: 10px; transition: color .2s; letter-spacing: .005em; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.site-nav a[aria-current]::after, .site-nav a:hover::after { transform: scaleX(1); }
.site-header__cta { min-height: 34px; padding: 0 1.1em; font-size: .8125rem; font-weight: 500; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; }
.burger__lines { position: relative; width: 20px; height: 10px; }
.burger__lines i { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger__lines i:first-child { top: 0; } .burger__lines i:last-child { top: 8.5px; }
.burger[aria-expanded="true"] .burger__lines i:first-child { top: 4px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:last-child { top: 4px; transform: rotate(-45deg); }

.menu-mobile { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s linear .45s; visibility: hidden; }
.menu-mobile.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu-mobile a:not(.btn) { display: block; padding: 14px 0; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); border-bottom: 1px solid var(--line); }
.menu-mobile a[aria-current] { color: var(--accent-ink); }
.menu-mobile li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.menu-mobile.is-open li { opacity: 1; transform: none; }
.menu-mobile.is-open li:nth-child(1) { transition-delay: .06s } .menu-mobile.is-open li:nth-child(2) { transition-delay: .1s }
.menu-mobile.is-open li:nth-child(3) { transition-delay: .14s } .menu-mobile.is-open li:nth-child(4) { transition-delay: .18s } .menu-mobile.is-open li:nth-child(5) { transition-delay: .22s }
.menu-mobile__cta { margin-top: 28px; width: 100%; min-height: 54px; }
body.menu-open { overflow: hidden; }
body.menu-open .oxa-chat { visibility: hidden; }

/* 8 — PIED DE PAGE ---------------------------------------------------------- */
.site-footer { background: var(--soft); color: var(--mute); font-size: .875rem; padding-block: clamp(48px, 7vw, 88px) calc(28px + env(safe-area-inset-bottom)); }
.site-footer__top { display: grid; gap: 48px; grid-template-columns: 1.1fr 1.6fr; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.site-footer__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; letter-spacing: .2em; margin-bottom: 18px; }
.site-footer__mark { width: 34px; height: 34px; color: var(--logo-mark); }
.site-footer__brand p { max-width: 26em; margin-bottom: 14px; line-height: 1.5; text-wrap: pretty; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.site-footer li + li { margin-top: 10px; }
.site-footer__cols a { transition: color .2s; }
.site-footer__cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-top: 24px; font-size: .8125rem; }

/* 9 — MOUVEMENT ------------------------------------------------------------- */
/* Transitions entre pages (navigateurs compatibles) : un fondu discret, en-tête stable. */
@view-transition { navigation: auto; }
::view-transition-group(site-header) { animation-duration: 0s; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
::view-transition-old(logo-label) { animation: label-out .25s var(--ease) both; }
::view-transition-new(logo-label) { animation: label-in .4s var(--ease-out) .05s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes label-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes label-in { from { opacity: 0; transform: translateY(6px); } }

/* Apparitions : actives seulement si JavaScript est présent (sinon tout reste visible) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
/* Titres : apparition ligne par ligne (masque) */
.js .split .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.js .split .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--l, 0) * 90ms + var(--d, 0s)); }
.js .split.is-in .line > span { transform: none; }
/* Au-dessus de la ligne de flottaison : animation en CSS pur, sans attendre le JavaScript (meilleur LCP) */
.js :is(.hero, .page-hero, .case-hero) [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise-in .95s var(--ease-out) both; animation-delay: var(--d, 0s); }
.js :is(.hero, .page-hero, .case-hero) .split .line > span { transform: none; transition: none; animation: line-in 1.1s var(--ease-out) both; animation-delay: calc(var(--l, 0) * 90ms); }
.split .line:nth-child(1) { --l: 0; } .split .line:nth-child(2) { --l: 1; } .split .line:nth-child(3) { --l: 2; } .split .line:nth-child(4) { --l: 3; }
[data-d="0.1"] { --d: .1s; } [data-d="0.2"] { --d: .15s; } [data-d="0.35"] { --d: .2s; } [data-d="0.5"] { --d: .3s; } [data-d="0.65"] { --d: .4s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes line-in { from { transform: translateY(105%); } }
/* Texte « révélé » au défilement */
.reveal-words .w { transition: color .35s linear; }
.js .reveal-words .w { color: var(--word-dim); }
.js .reveal-words .w.on { color: var(--ink); }
.band--dark.reveal-words .w { }
/* Cartes : légère réaction au pointeur (écrans à souris uniquement) */
@media (hover: hover) and (pointer: fine) {
  .lift { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
  .lift:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgb(0 0 0 / .35); }
}
/* Appareils peu puissants / économie de données : on retire parallaxe et flou coûteux */
.lite [data-parallax] { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .split .line > span { opacity: 1 !important; transform: none !important; }
  .js .reveal-words .w { color: var(--ink) !important; }
  [data-parallax] { transform: none !important; }
  @view-transition { navigation: none; }
}

/* 10 — PAGES ---------------------------------------------------------------- */
/* Accueil — hero */
.hero { position: relative; isolation: isolate; background: var(--bg); color: var(--ink); min-height: calc(100svh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); display: flex; align-items: flex-end; overflow: hidden; padding-block: clamp(20px, 5svh, 88px) clamp(52px, 8svh, 80px); }
.hero__glow { position: absolute; z-index: -2; inset: -20% -10% auto auto; width: 90vmin; height: 90vmin; background: radial-gradient(closest-side, var(--glow), var(--glow-soft) 45%, transparent 70%); filter: blur(10px); }
.hero__mark, .page-hero__mark { --mark: min(34vw, 60svh, 480px); }   /* UNE seule taille pour le grand logo, sur toutes les pages (liée à la fenêtre, pas au contenu de la page) */
.hero__mark { position: absolute; z-index: -1; right: clamp(16px, 4vw, 72px); top: 0; bottom: 0; width: var(--mark); height: var(--mark); margin-block: auto; color: var(--hero-mark); }
.hero__mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 60px rgb(77 168 190 / .12)); }
.hero__inner { width: 100%; }
.hero h1 { max-width: 12.5em; font-size: clamp(2.4rem, min(1rem + 5.6vw, 10svh), 6.25rem); }   /* limité par la hauteur de la fenêtre : le bloc entier reste visible sans défiler */
.hero__sub { margin-top: clamp(12px, 2.4svh, 32px); max-width: 30em; font-size: clamp(1.05rem, min(1rem + .7vw, 2.9svh), 1.55rem); line-height: 1.32; letter-spacing: -.012em; color: var(--mute); }
.hero .btn-row { margin-top: clamp(16px, 3svh, 32px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: clamp(18px, 4svh, 56px); padding-top: clamp(12px, 2.4svh, 22px); border-top: 1px solid var(--line); font-size: .875rem; color: var(--mute); max-width: 52rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: .55em; }
.hero__meta .ico { color: var(--accent-ink); width: 18px; height: 18px; }
/* indicateur « faire défiler » : une souris dont la molette descend */
.hero__cue { position: absolute; left: 50%; bottom: 14px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid var(--mute); border-radius: 13px; display: none; opacity: .7; }
.hero__cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--mute); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__cue::after { animation: none; } }

/* Hero des pages intérieures */
.page-hero, .case-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero__mark { position: absolute; z-index: -1; right: clamp(16px, 4vw, 72px); top: 0; bottom: 0; width: var(--mark); height: var(--mark); margin-block: auto; color: var(--hero-mark); pointer-events: none; }
.page-hero__mark svg { width: 100%; height: 100%; }
.case-hero .page-hero__mark { color: var(--ink); opacity: .06; top: 28px; bottom: auto; margin-block: 0; }   /* transparence sur l'ensemble du logo (et non sur sa couleur) : l'orbite, dessinée en deux passes, ne s'assombrit plus aux croisements */
@media (max-width: 720px) { .hero__mark, .page-hero__mark { --mark: min(78vw, 300px); } .page-hero__mark { right: auto; left: 50%; transform: translateX(-50%); opacity: .7; } }
.page-hero { padding-block: clamp(32px, min(11vw, 12svh), 150px) clamp(32px, min(7vw, 8svh), 96px); background: var(--paper); }
.page-hero--dark { background: var(--feature-bg); color: var(--ink); }
.page-hero h1 { max-width: 14em; }
@media (min-width: 900px) and (max-height: 700px) { .page-hero .t-display-l { font-size: clamp(2.2rem, 8svh, 5rem); } .page-hero .lead { font-size: clamp(1rem, 2.8svh, 1.5rem); } .page-hero .crumbs { margin-bottom: 14px; } }
.page-hero .lead { margin-top: clamp(18px, 2vw, 28px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8125rem; color: var(--mute); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero--dark .crumbs { color: var(--mute); } .page-hero--dark .crumbs a:hover { color: var(--ink); }

/* Section « énoncé » */
.statement { font-size: clamp(1.7rem, 1rem + 3.4vw, 3.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.14; text-wrap: balance; max-width: 22em; }
.statement + .statement-sub { margin-top: 2rem; }

/* Services (deux tuiles) */
.duo { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-l); min-height: clamp(520px, 62vw, 700px); padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 52px) 0; isolation: isolate; }
.tile--light { background: var(--tile-a); color: var(--ink); }
.tile--dark { background: var(--tile-b); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.tile h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; margin-top: .6rem; text-wrap: balance; }
.tile p { margin-top: .9rem; font-size: 1.0625rem; max-width: 26em; color: var(--mute); text-wrap: pretty; }
.tile--dark p { color: var(--mute); }
.tile .btn-row { margin-top: 1.5rem; gap: 12px 24px; }
.tile__art { margin-top: auto; padding-top: 36px; }
.tile__art .browser, .tile__art .appmock { transform: translateY(8%) ; margin-inline: auto; width: min(100%, 520px); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
/* maquette d'appli (décorative) */
.appmock { border-radius: 16px 16px 0 0; background: var(--app-bg); box-shadow: 0 0 0 1px rgb(255 255 255 / .09), 0 30px 70px -20px rgb(0 0 0 / .6); padding: 16px; display: grid; grid-template-columns: 54px 1fr; gap: 14px; min-height: 280px; }
.appmock__side { display: grid; align-content: start; gap: 10px; }
.appmock__side i { height: 34px; border-radius: 10px; background: var(--app-row); } .appmock__side i:first-child { background: var(--accent); opacity: .85; }
.appmock__main { display: grid; gap: 12px; align-content: start; }
.appmock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.appmock__row b { display: block; height: 62px; border-radius: 12px; background: var(--app-row); position: relative; }
.appmock__row b::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 40%; height: 6px; border-radius: 3px; background: #3a3a3f; }
.appmock__chart { height: 120px; border-radius: 12px; background: var(--app-row); position: relative; overflow: hidden; }
.appmock__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-hero { padding: 26px 22px 0; display: grid; gap: 10px; }
.mock-hero i { display: block; height: 12px; border-radius: 6px; background: var(--mock-line); } .mock-hero i:nth-child(1) { width: 62%; height: 20px; background: var(--mock-title); } .mock-hero i:nth-child(2) { width: 80%; } .mock-hero i:nth-child(3) { width: 48%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px 22px 26px; }
.mock-cards b { height: 78px; border-radius: 10px; background: var(--mock-card); }
.mock-cards b:first-child { background: linear-gradient(135deg, #4da8be, #1b6579); }

/* Vitrine défilante des réalisations */
.showcase { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding: 8px var(--edge) 28px; scroll-padding-inline: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.showcase::-webkit-scrollbar { display: none; }
.proj { position: relative; flex: 0 0 min(86vw, 440px); scroll-snap-align: start; border-radius: var(--r-l); overflow: hidden; background: var(--tint, var(--soft)); color: var(--ink); min-height: 0; display: flex; flex-direction: column; isolation: isolate; }
.proj__body { padding: 32px 30px 0; position: relative; z-index: 2; }
.proj__kind { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.proj h3 { font-size: 1.85rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin-top: .55rem; }
.proj p { margin-top: .7rem; opacity: .82; font-size: 1rem; line-height: 1.42; max-width: 22em; }
.proj__shot { margin-top: auto; padding: 14px 22px 26px; }
.proj__shot img { border-radius: 14px 14px 0 0; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; box-shadow: 0 -10px 50px -10px rgb(0 0 0 / .5); transition: transform .8s var(--ease-out); }
.proj:hover .proj__shot img { transform: translateY(-8px) scale(1.02); }
.proj__more { position: absolute; z-index: 3; right: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 9%, transparent); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease-out); }
.proj:hover .proj__more { background: color-mix(in srgb, var(--ink) 18%, transparent); transform: rotate(45deg); }
.proj a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.showcase-nav { display: flex; gap: 10px; justify-content: flex-end; }
.circle-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; transition: background .25s, opacity .25s; }
.circle-btn:hover { background: var(--soft-2); } .circle-btn[disabled] { opacity: .35; cursor: default; }
.circle-btn .ico { width: 20px; height: 20px; }
.circle-btn--prev .ico { transform: scaleX(-1); }

/* Méthode (étapes) */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 8px 24px; padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--accent-ink); }
.step h3 { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.step p { margin-top: .6rem; color: var(--mute); max-width: 36em; text-wrap: pretty; }
.split-2 { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: 5fr 7fr; align-items: start; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 40px); }

/* Pages de service */
.cols-2 { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: 1fr 1fr; align-items: center; }
.panel { border-radius: var(--r-l); background: var(--soft); padding: clamp(28px, 4vw, 56px); }
.offer { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.offer .card { display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.offer .card .ico { width: 32px; height: 32px; color: var(--accent-ink); }
.offer .card h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.offer .card p { color: var(--mute); font-size: 1rem; text-wrap: pretty; }
.link-list { display: grid; gap: 0; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 1.1875rem; font-weight: 500; letter-spacing: -.012em; transition: padding .35s var(--ease-out), color .2s; }
.link-list a:last-child { border-bottom: 1px solid var(--line); }
.link-list a:hover { padding-left: 10px; color: var(--accent-ink); }
.link-list small { display: block; font-size: .9375rem; color: var(--mute); font-weight: 400; margin-top: 2px; }

/* Portfolio : liste + détail */
.work { display: grid; gap: clamp(14px, 2vw, 24px); }
.work-item { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 56px); border-radius: var(--r-l); background: var(--c, var(--d-surface-2)); color: #fff; overflow: hidden; padding: clamp(28px, 4vw, 56px); align-items: center; isolation: isolate; }
.work-item:nth-child(even) { grid-template-columns: 7fr 5fr; } .work-item:nth-child(even) .work-item__shot { order: -1; }
.work-item h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin-top: .5rem; }
.work-item p { margin-top: 1rem; opacity: .82; max-width: 28em; text-wrap: pretty; }
.work-item .chips { margin-top: 1.4rem; }
.work-item .link-arrow { color: #fff; margin-top: 1.6rem; }
.work-item__shot img { border-radius: 14px; width: 100%; height: auto; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); transition: transform .8s var(--ease-out); }
.work-item:hover .work-item__shot img { transform: scale(1.025) translateY(-4px); }
.work-item a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; }

.case-hero { background: var(--tint, var(--soft)); color: var(--ink); padding-block: clamp(64px, 9vw, 120px) 0; overflow: hidden; }
.case-hero .crumbs { color: var(--mute); } .case-hero .crumbs a:hover { color: var(--ink); }
.case-hero h1 { font-size: clamp(2.6rem, 1rem + 6.4vw, 6rem); font-weight: 600; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.case-hero__lead { margin-top: 22px; max-width: 30em; font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); line-height: 1.32; opacity: .85; letter-spacing: -.012em; }
.case-hero__stage { margin: clamp(32px, 5vw, 64px) auto 0; max-width: 980px; }
.case-hero__stage .stage { aspect-ratio: 16 / 9.4; }
.facts { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-block: 36px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
.facts > div { min-width: 0; }
.case-block { display: grid; gap: clamp(20px, 5vw, 80px); grid-template-columns: 4fr 8fr; padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.case-block:last-of-type { border-bottom: 0; }
.case-block h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: .5rem; }
.case-block__body { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.4; letter-spacing: -.012em; text-wrap: pretty; }
.case-block__body .checks { font-size: 1.0625rem; letter-spacing: 0; }
.case-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-pager a { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-l); background: var(--soft); transition: background .3s; }
.case-pager a:hover { background: var(--soft-2); }
.case-pager a:last-child { text-align: right; align-items: flex-end; }
.case-pager small { color: var(--mute); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.case-pager strong { font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); letter-spacing: -.025em; font-weight: 600; }

/* À propos */
.values { display: grid; gap: 0; }
.value { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.value:last-child { border-bottom: 1px solid var(--line); }
.value h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.02em; }
.value p { color: var(--mute); text-wrap: pretty; }
.portrait-ph { aspect-ratio: 4 / 5; border-radius: var(--r-l); background: var(--soft); display: grid; place-items: center; color: #8e8e93; font-size: .875rem; text-align: center; padding: 24px; }

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: 4fr 7fr; align-items: start; }
.form { display: grid; gap: 28px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.form .row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form__submit { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.file-drop { border: 1.5px dashed var(--field-line); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px; background: var(--paper); transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--accent-ink); background: var(--drop-hover); }
.file-drop input { font-size: .9375rem; width: 100%; color: var(--mute); }
.file-drop input::file-selector-button { margin-right: 14px; min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 500; cursor: pointer; transition: background .2s; }
.file-drop input::file-selector-button:hover { background: var(--btn-hover); }
.file-list { font-size: .875rem; color: var(--mute); }
.success { text-align: center; padding-block: clamp(32px, 6vw, 80px); }
.success__check { width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.success__check .ico { width: 38px; height: 38px; stroke-width: 1.8; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s var(--ease-out) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.aside-list li { padding-block: 14px; border-top: 1px solid var(--line); } .aside-list li:last-child { border-bottom: 1px solid var(--line); }
.aside-list strong { display: block; font-weight: 600; } .aside-list span { color: var(--mute); font-size: .9375rem; }

/* Pages d'erreur / maintenance */
.errorpage { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; background: var(--bg); color: var(--ink); padding: 80px var(--gutter); position: relative; overflow: hidden; isolation: isolate; }
.errorpage .code { font-size: clamp(6rem, 3rem + 18vw, 16rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; color: var(--code); }
.errorpage .code em { font-family: var(--serif); font-weight: 400; }
.errorpage h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); font-weight: 600; letter-spacing: -.03em; margin-top: -.4em; }
.errorpage p { color: var(--mute); margin-top: 14px; }

/* 11 — CHATBOT -------------------------------------------------------------- */
.oxa-chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--chat-lift, 0px)); z-index: 90; }   /* --chat-lift : posé par app.js en bas de page, pour que la bulle passe au-dessus de « Conçu et développé par » sans le recouvrir */
.oxa-chat__launcher { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9375rem; font-weight: 500; box-shadow: 0 10px 30px -8px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .12); transition: transform .35s var(--ease-out), opacity .25s, background .25s; }
.oxa-chat__launcher:hover { background: var(--btn-hover); transform: translateY(-2px); }
.oxa-chat.is-open .oxa-chat__launcher { opacity: 0; pointer-events: none; transform: scale(.9); }
.oxa-chat__panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - var(--header-h) - 32px)); display: flex; flex-direction: column; background: var(--panel); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-radius: 26px; box-shadow: 0 30px 90px -20px rgb(0 0 0 / .45), 0 0 0 1px var(--panel-ring); overflow: hidden; transform-origin: bottom right; opacity: 0; transform: translateY(16px) scale(.94); transition: opacity .3s var(--ease), transform .45s var(--ease-out); }
.oxa-chat__panel.is-open { opacity: 1; transform: none; }
.cb-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--black); color: #fff; }
.cb-head__mark { width: 30px; height: 30px; color: #a1a1a6; flex: none; }
.cb-head strong { display: block; font-size: .9375rem; font-weight: 600; letter-spacing: .01em; }
.cb-head small { display: block; font-size: .75rem; color: #a1a1a6; }
.cb-head button { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #d2d2d7; transition: background .2s; }
.cb-head button:hover { background: rgb(255 255 255 / .12); }
.cb-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.cb-msg { max-width: 86%; padding: 11px 15px; border-radius: 20px; font-size: .9375rem; line-height: 1.45; animation: cb-in .35s var(--ease-out) both; text-wrap: pretty; }
.cb-msg p + p { margin-top: .55em; }
.cb-msg a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.cb-msg--bot { align-self: flex-start; background: var(--bubble); border-bottom-left-radius: 6px; }
.cb-msg--me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
@keyframes cb-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.cb-typing { align-self: flex-start; background: var(--bubble); border-radius: 20px; border-bottom-left-radius: 6px; padding: 14px 16px; display: flex; gap: 5px; }
.cb-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8e8e93; animation: cb-dot 1.1s infinite ease-in-out; } .cb-typing i:nth-child(2) { animation-delay: .15s; } .cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cb-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 12px; }
.cb-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--field-line); background: var(--field-bg); font-size: .875rem; font-weight: 500; transition: background .2s, border-color .2s, transform .2s; animation: cb-in .4s var(--ease-out) both; }
.cb-chip:hover { background: var(--bubble); border-color: var(--field-line-hover); } .cb-chip:active { transform: scale(.96); }
.cb-chip--cta { background: var(--ink); color: var(--bg); border-color: var(--ink); } .cb-chip--cta:hover { background: var(--btn-hover); }
.cb-form { display: flex; gap: 8px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel-2); }
.cb-form input { flex: 1; min-height: 46px; border-radius: 999px; border: 1px solid var(--field-line); padding: 0 18px; background: var(--field-bg); font-size: 1rem; }
.cb-form input:focus-visible { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgb(77 168 190 / .22); }
.cb-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; transition: background .2s, transform .2s; }
.cb-form button:hover { background: var(--btn-hover); } .cb-form button:active { transform: scale(.93); }
.cb-note { font-size: .6875rem; color: var(--mute); text-align: center; padding: 0 16px 10px; }

/* 11b — APPAREIL QUI SE TRANSFORME (ordinateur → tablette → mobile) -------------
   Un seul cadre, trois formats : il se redimensionne au défilement et affiche la vraie capture de chaque format.
   Sans mouvement (préférence système, appareil modeste, pas de JS) : sélecteur à trois boutons. */
@property --s1 { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --s2 { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --s3 { syntax: '<number>'; inherits: true; initial-value: 0; }
.scene { position: relative; }
.scenes-on .scene { height: var(--scene-h, 360vh); }
.scenes-on .scene__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); overflow: hidden; }
.morph { --screen-bg: #ede5d0; --status-bg: #ede5d0; }

/* — Chapitres : texte à gauche qui se relaie, appareil à droite — */
.chapter { position: relative; background: var(--bg); color: var(--ink); overflow-x: clip; }
.chapter--soft { background: var(--soft); }
.chapter--dark { --bg: #000; --soft: #161618; --ink: #f5f5f7; --ink-2: #d2d2d7; --mute: #a1a1a6; --line: rgb(255 255 255 / .14); background: #000; color-scheme: dark; }
.ch__grid { display: grid; gap: clamp(20px, 3vh, 40px); }
.ch__titles { display: grid; margin-top: 12px; }
.ch__t, .ch__h { font-size: clamp(1.75rem, 1rem + 2.2vw, 3rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.ch__h { margin-top: 12px; } .ch__h em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.ch__t { grid-area: 1 / 1; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.ch__lede { margin-top: 18px; max-width: 34em; color: var(--mute); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.45; text-wrap: pretty; }
.ch__credit { margin-top: 18px; max-width: 34em; font-size: .8125rem; line-height: 1.5; color: var(--mute); text-wrap: pretty; }
.legal-note { margin-top: .7rem; max-width: 36em; font-size: .8125rem; line-height: 1.45; color: var(--mute); text-wrap: pretty; }   /* mention légale alcool (CPH Wines) : jamais masquée */
.legal-note--gallery { margin-top: clamp(10px, 1.6vw, 18px); }
.proj .legal-note, .part-card .legal-note, .app-slide .legal-note { color: var(--ink-2); }   /* surfaces teintées : texte plus foncé pour le contraste */
.ch__credit a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.ch__device { height: min(80svh, 760px); min-height: 0; }
.ch__after { display: flex; justify-content: center; padding-block: 8px var(--band-y); }
/* sans mouvement : les titres se suivent, rien n'est caché */
html:not(.scenes-on) .chapter { padding-block: var(--band-y); }
html:not(.scenes-on) .ch__titles { display: block; }
html:not(.scenes-on) .ch__t + .ch__t { margin-top: 10px; color: var(--mute); font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); letter-spacing: -.02em; font-weight: 500; }
/* avec mouvement : les titres se relaient (data-step posé par le script) */
.scenes-on .ch__grid { height: 100%; padding-block: clamp(12px, 2.4vh, 28px); grid-template-rows: auto minmax(0, 1fr); }
.scenes-on .ch__t { opacity: 0; transform: translateY(24px); }
.scenes-on .chapter[data-step='0'] .ch__t--0, .scenes-on .chapter[data-step='1'] .ch__t--1, .scenes-on .chapter[data-step='2'] .ch__t--2 { opacity: 1; transform: none; }
.scenes-on .chapter[data-step='1'] .ch__t--0, .scenes-on .chapter[data-step='2'] .ch__t--0, .scenes-on .chapter[data-step='2'] .ch__t--1, .scenes-on .chapter[data-step='3'] .ch__t--0, .scenes-on .chapter[data-step='3'] .ch__t--1, .scenes-on .chapter[data-step='3'] .ch__t--2 { transform: translateY(-24px); }
.scenes-on .chapter[data-step='3'] .ch__t--3 { opacity: 1; transform: none; }
.sites { --scene-h: 460vh; }
.scenes-on .ch__device { height: 100%; }
@media (min-width: 1100px) {
  .ch__grid { grid-template-columns: minmax(300px, .72fr) minmax(0, 1.6fr); align-items: center; gap: clamp(32px, 4vw, 72px); }
  .scenes-on .ch__grid { grid-template-rows: minmax(0, 1fr); }
}
@media (max-width: 1099px) and (max-height: 760px) { .scenes-on .ch__lede, .scenes-on .ch__credit { display: none; } }

/* — Appareils dessinés en CSS (dimensions en cqw : ils s'adaptent à leur conteneur) — */
.dmac { container-type: inline-size; width: 100%; margin: 0; }
.dmac__lid { padding: 1.4cqw; border-radius: 2.2cqw 2.2cqw .6cqw .6cqw; background: #0b0b0d; box-shadow: 0 0 0 .25cqw #55565b, 0 0 0 .5cqw #2a2a2d; }
.dmac__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .9cqw; clip-path: inset(0 round .9cqw); background: #fff; }
.dmac__screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dmac__base { position: relative; width: 112%; margin: 0 -6%; height: 1.5cqw; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #e2e4e8 0%, #c9ccd2 40%, #9fa2a8 100%); }
.dmac__base span { position: absolute; left: 50%; top: 0; width: 12%; height: 45%; transform: translateX(-50%); border-radius: 0 0 40% 40%; background: linear-gradient(180deg, #a3a6ac, #c7cacf); }
.dphone { container-type: inline-size; width: 100%; margin: 0; }
.dphone__body { padding: 3.3cqw; border-radius: 16.5cqw; background: #0e0e10; box-shadow: inset 0 0 0 .55cqw #2c2c30, inset 0 0 0 .9cqw #0a0a0b, 0 0 0 .3cqw #5a5b60, 0 4cqw 12cqw -3cqw rgb(0 0 0 / .4); }
.dphone__screen { position: relative; aspect-ratio: 560 / 1204; overflow: hidden; border-radius: 13.4cqw; clip-path: inset(0 round 13.4cqw); background: #f8f8f9; isolation: isolate; }
/* barre d'état (heure, réseau, Wi-Fi, batterie) autour de la Dynamic Island ; l'application commence en dessous */
.dphone__status { background: #f8f8f9; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 13.7cqw; display: flex; align-items: center; justify-content: space-between; padding: .6cqw 7.6cqw 0 9.2cqw; color: #000; pointer-events: none; }
.dphone__time { font-size: 4.3cqw; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.dphone__icons { display: flex; align-items: center; gap: 1.4cqw; }
.dphone__icons svg { height: 3cqw; width: auto; display: block; }
.dphone__screen img { position: absolute; left: 0; right: 0; top: 13.7cqw; bottom: 0; width: 100%; height: calc(100% - 13.7cqw); object-fit: cover; object-position: top; }
.dphone__island { position: absolute; z-index: 3; left: 50%; top: 2.9cqw; width: 31.8cqw; height: 9.3cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.dphone__home { position: absolute; z-index: 3; left: 50%; bottom: 2.2cqw; width: 35cqw; height: 1.35cqw; transform: translateX(-50%); border-radius: 1cqw; background: rgb(0 0 0 / .82); }

.dpad { container-type: inline-size; width: 100%; margin: 0; }
.dpad__body { padding: 2.3cqw; border-radius: 3.8cqw; background: #0e0e10; box-shadow: inset 0 0 0 .4cqw #2c2c30, 0 0 0 .25cqw #5a5b60, 0 3cqw 7cqw -2.5cqw rgb(0 0 0 / .45); }
.dpad__screen { position: relative; aspect-ratio: 1194 / 834; overflow: hidden; border-radius: 1.7cqw; clip-path: inset(0 round 1.7cqw); background: #f8f8f9; }
.dpad__screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dmac__screen .legal-band, .dpad__screen .legal-band { left: 0; right: 0; font-size: 1.5cqw; padding: .5em 1em; line-height: 1.3; }

/* — iMac dessiné en CSS (écran 16:9 ; le site du projet défile dedans) — */
.dimac { container-type: inline-size; width: 100%; margin: 0; }
.dimac__body { padding: 2cqw 2cqw 0; border-radius: 2.4cqw 2.4cqw 0 0; background: linear-gradient(180deg, #f3f4f6, #e7e9ed); box-shadow: inset 0 0 0 .25cqw rgb(0 0 0 / .08), 0 2.5cqw 6cqw -2cqw rgb(0 0 0 / .35); }
.dimac__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .7cqw; background: #fff; box-shadow: 0 0 0 .25cqw rgb(0 0 0 / .9); }
.dimac__screen img { display: block; width: 100%; height: auto; }
.dimac__chin { height: 8cqw; display: grid; place-items: center; }
.dimac__chin svg { width: 3.4cqw; height: 3.4cqw; color: rgb(0 0 0 / .2); overflow: visible; }
.dimac__neck { width: 15cqw; height: 9cqw; margin: 0 auto; background: linear-gradient(90deg, #d4d6db, #eef0f3 50%, #cfd2d7); clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%); }
.dimac__foot { width: 32cqw; height: 1.7cqw; margin: 0 auto; border-radius: .4cqw .4cqw 1cqw 1cqw; background: linear-gradient(180deg, #eef0f3, #c9ccd2); box-shadow: 0 1.2cqw 2cqw -.6cqw rgb(0 0 0 / .35); }
.dimac__screen .mlong { --dist: calc(var(--r) * 96cqw - 54cqw); }
.dimac__screen .legal-band { left: 0; right: 0; font-size: 1.4cqw; padding: .5em 1em; line-height: 1.3; }

/* — Mise en scène d'un projet : site sur MacBook, application / outil sur iPad, iPhone si une capture existe — */
.stage { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 16 / 10; }
.stage > div { position: absolute; }
.stage__mac, .stage__tablet, .stage__phone { z-index: 1; }
.stage.has-mac .stage__mac { left: 3%; top: 3%; width: 68%; }
.stage.has-mac.has-tablet .stage__tablet { right: 0; bottom: 4%; width: 44%; z-index: 2; }
.stage.has-mac.has-phone .stage__phone { right: 2%; bottom: 0; width: 13%; z-index: 3; }
.stage.has-mac.has-tablet.has-phone .stage__phone { right: 1%; }
.stage.has-mac:not(.has-tablet):not(.has-phone) .stage__mac { left: 3%; width: 94%; top: 6%; }
.stage.has-mac:not(.has-tablet).has-phone .stage__mac { width: 78%; }
.stage.has-mac:not(.has-tablet).has-phone .stage__phone { width: 17%; right: 4%; }
.stage:not(.has-mac).has-tablet .stage__tablet { left: 3%; top: 3%; width: 82%; }
.stage:not(.has-mac).has-tablet.has-phone .stage__tablet { width: 76%; top: 8%; }
.stage:not(.has-mac).has-tablet.has-phone .stage__phone { right: 3%; bottom: 0; width: 16%; z-index: 3; }
.stage:not(.has-mac):not(.has-tablet).has-phone .stage__phone { left: 50%; width: 30%; transform: translateX(-50%); top: 0; }
.stage--part { aspect-ratio: 16 / 10.4; }
.stage--phones { aspect-ratio: 16 / 11.6; }
.stage.stage--phones.has-phone:not(.has-mac) .stage__phone { position: absolute; top: 4%; width: 27%; left: 50%; transform: translateX(-50%); }
.stage.stage--phones.has-two.has-phone:not(.has-mac) .stage__phone:nth-child(1) { left: 24%; transform: none; }
.stage.stage--phones.has-two.has-phone:not(.has-mac) .stage__phone:nth-child(2) { left: 49%; transform: none; top: 12%; }

.stage--site { aspect-ratio: 16 / 10.8; }
.work-item__shot .stage img, .proj__shot .stage img, .part-card__media .stage img { border-radius: 0; box-shadow: none; transform: none; aspect-ratio: auto; height: 100%; }
.work-item:hover .work-item__shot .stage img { transform: none; }
.proj-row .checks { margin-top: 1.2rem; } .proj-row .checks li { border-color: rgb(255 255 255 / .16); } .proj-row .checks .ico { color: #30d158; }
.stage .dphone__body, .stage .dpad__body { box-shadow: inset 0 0 0 .5cqw #2c2c30, 0 0 0 .3cqw #5a5b60, 0 4cqw 9cqw -3cqw rgb(0 0 0 / .5); }

/* — Réalisations : un projet = une grande carte (site + application sur leurs appareils) — */
.proj-rows { display: grid; gap: clamp(20px, 3vw, 36px); }
.proj-row { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-l); background: var(--c, #111); color: #fff; overflow: hidden; isolation: isolate; }
.proj-row:nth-child(even) { grid-template-columns: 7fr 5fr; } .proj-row:nth-child(even) .proj-row__stage { order: -1; }
.proj-row { --ink: #f5f5f7; --mute: #a1a1a6; --line: rgb(255 255 255 / .16); --accent-ink: #8aa9ff; }
.proj-row h3, .proj-row h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin-top: .5rem; }
.proj-row p { margin-top: 1rem; opacity: .85; max-width: 28em; text-wrap: pretty; }
.proj-row .chips { margin-top: 1.2rem; } .proj-row .chip { background: rgb(255 255 255 / .12); color: #fff; }
.proj-row .link-arrow { color: #fff; margin-top: 1.4rem; }
.proj-row a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.proj-row__stage { transition: transform .8s var(--ease-out); } .proj-row:hover .proj-row__stage { transform: translateY(-4px) scale(1.01); }
@media (max-width: 1023px) { .proj-row, .proj-row:nth-child(even) { grid-template-columns: 1fr; } .proj-row:nth-child(even) .proj-row__stage { order: 0; } }

/* — Page projet : le site et l'application, ensemble — */
.together { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; margin-top: clamp(28px, 4vw, 56px); }
.together__col h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; margin-top: 1.2rem; }
.together__col p { margin-top: .5rem; color: var(--mute); text-wrap: pretty; }
.together__kind { font-size: .875rem; font-weight: 600; color: var(--c-blue); } .together__col--app .together__kind { color: var(--c-green); }
.together__link { align-self: center; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--mute); margin-top: 12%; }
.together__link .ico { width: 24px; height: 24px; }
@media (max-width: 899px) { .together { grid-template-columns: 1fr; } .together__link { margin: 0 auto; transform: rotate(90deg); } }

/* — Chapitre logiciel : l'ordinateur se décale, le téléphone arrive — */
.apps__stage { position: relative; display: grid; place-items: center; min-height: 0; height: 100%; }
.apps__tablet { width: min(100%, calc((100svh - var(--header-h) - 150px) * 1.5), 860px); transition: transform .9s var(--ease-out); }
.apps__phone { position: absolute; right: 2%; bottom: 4%; width: min(24%, 34svh * .47 + 40px, 200px); opacity: 0; transform: translate3d(30%, 6%, 0); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
html:not(.scenes-on) .apps__phone { opacity: 1; transform: none; position: absolute; }
.scenes-on .apps[data-step='2'] .apps__phone { opacity: 1; transform: none; }
.scenes-on .apps[data-step='2'] .apps__tablet { transform: translate3d(-9%, 0, 0) scale(.9); }
.scenes-on .apps { --pp: clamp(0, var(--p), 1); }
.scenes-on .apps .apps__stage { transform: translate3d(0, calc((1 - clamp(0, var(--p) / .12, 1)) * 40px), 0); opacity: clamp(0, var(--p) / .08 + .2, 1); }

/* — Chapitre téléphones : trois applications se relaient dans le même appareil — */
.phones__stage { display: grid; place-items: center; height: 100%; }
.phones__device { width: min(300px, 38svh * .47 + 120px, 80%); height: auto; }
.scenes-on .phones__device { transform: translate3d(0, calc((.5 - var(--p, 0)) * 36px), 0); }
.phones__scr, .phones__sb { opacity: 0; transition: opacity .8s var(--ease-out); }
.phones__scr--0, .phones__sb--0 { opacity: 1; }
.scenes-on .phones[data-step='1'] .phones__scr--0, .scenes-on .phones[data-step='2'] .phones__scr--0, .scenes-on .phones[data-step='1'] .phones__sb--0, .scenes-on .phones[data-step='2'] .phones__sb--0 { opacity: 0; }
.scenes-on .phones[data-step='1'] .phones__scr--1, .scenes-on .phones[data-step='1'] .phones__sb--1 { opacity: 1; }
.scenes-on .phones[data-step='2'] .phones__scr--2, .scenes-on .phones[data-step='2'] .phones__sb--2 { opacity: 1; }
.phones__list { margin-top: clamp(20px, 3vh, 36px); display: grid; gap: 4px; max-width: 30em; }
.phones__item { padding: 14px 0 14px 18px; border-left: 2px solid var(--line); transition: border-color .5s, opacity .5s; }
.phones__item h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.phones__item h3 a { color: inherit; } .phones__item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.phones__item p { margin-top: 4px; color: var(--mute); font-size: .9688rem; line-height: 1.45; text-wrap: pretty; }
.scenes-on .phones__item h3 { color: var(--mute); }
.scenes-on .phones[data-step='0'] .phones__item[data-i='0'], .scenes-on .phones[data-step='1'] .phones__item[data-i='1'], .scenes-on .phones[data-step='2'] .phones__item[data-i='2'] { border-color: var(--ink); }
.scenes-on .phones[data-step='0'] .phones__item[data-i='0'] h3, .scenes-on .phones[data-step='1'] .phones__item[data-i='1'] h3, .scenes-on .phones[data-step='2'] .phones__item[data-i='2'] h3 { color: var(--ink); }
@media (max-width: 1099px) {
  .scenes-on .ch__credit { display: none; }
  .scenes-on .phones__item { padding-block: 8px; } .scenes-on .phones__item p { display: none; }
  .scenes-on .phones[data-step='0'] .phones__item[data-i='0'] p, .scenes-on .phones[data-step='1'] .phones__item[data-i='1'] p, .scenes-on .phones[data-step='2'] .phones__item[data-i='2'] p { display: block; }
}
@media (max-width: 1099px) { .apps__tablet { width: 100%; } .apps__phone { width: 26%; } .phones__device { width: min(220px, 32svh * .47 + 80px); } }

/* — Sortie de l'accueil : le contenu s'efface doucement quand on défile — */
.scenes-on .hero__inner { transform: translate3d(0, calc(var(--x, 0) * -56px), 0); opacity: calc(1 - var(--x, 0) * 1.25); }
.scenes-on .hero__glow { opacity: calc(1 - var(--x, 0) * 1.4); }

  .morph {
    --s1: 0;
    --s2: 0;
    --s3: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(14px, 2.4vh, 28px);
    height: 100%;
  }
  .morph[data-state='tablet'] {
    --s1: 1;
    --s2: 0;
  }
  .morph[data-state='mobile'] {
    --s1: 1;
    --s2: 1;
  }
  .morph[data-state='fold'] {
    --s1: 1;
    --s2: 1;
    --s3: 1;
  }
  .morph[data-mode='tabs'] {
    transition:
      --s1 1.1s cubic-bezier(.65,0,.35,1),
      --s2 1.1s cubic-bezier(.65,0,.35,1),
      --s3 1.1s cubic-bezier(.65,0,.35,1);
  }
  /* Piloté par le défilement : deux segments lissés (smoothstep). */
  .scenes-on .morph[data-mode='scroll'] {
    --t1: clamp(0, (var(--p) - 0.13) / 0.12, 1);
    --t2: clamp(0, (var(--p) - 0.38) / 0.12, 1);
    --t3: clamp(0, (var(--p) - 0.63) / 0.12, 1);
    --s1: calc(var(--t1) * var(--t1) * (3 - 2 * var(--t1)));
    --s2: calc(var(--t2) * var(--t2) * (3 - 2 * var(--t2)));
    --s3: calc(var(--t3) * var(--t3) * (3 - 2 * var(--t3)));
  }

  .morph__box {
    position: relative;
    container-type: size;
    min-height: 0;
  }
  /* Géométrie des trois appareils, interpolée par --s1 et --s2. */
  .morph__box > * {
    --dW: min(100cqw, 84cqh * 1.5397);
    --dH: calc(var(--dW) * 0.64947);
    --tH: min(94cqh, 100cqw * 1.439);
    --tW: calc(var(--tH) * 0.69492);
    --mH: min(94cqh, 90cqw * 2.1679);
    --mW: calc(var(--mH) * 0.46127);
    --kH: min(94cqh, 100cqw * 1.25);
    --kW: calc(var(--kH) * 0.8);
    --w: calc(var(--dW) + (var(--tW) - var(--dW)) * var(--s1) + (var(--mW) - var(--tW)) * var(--s2) + (var(--kW) - var(--mW)) * var(--s3));
    --h: calc(var(--dH) + (var(--tH) - var(--dH)) * var(--s1) + (var(--mH) - var(--tH)) * var(--s2) + (var(--kH) - var(--mH)) * var(--s3));
    --r: calc(var(--w) * (0.01 + 0.018 * var(--s1) + 0.112 * var(--s2) - 0.072 * var(--s3)));
    --b: calc(var(--w) * (0.015 + 0.021 * var(--s1)));
    --x: calc((100cqw - var(--w)) / 2);
    --y: calc((100cqh - var(--h)) / 2);
    --f1: clamp(0, (var(--s1) - 0.55) / 0.3, 1);
    --f2: clamp(0, (var(--s2) - 0.55) / 0.3, 1);
    --f3: clamp(0, (var(--s3) - 0.55) / 0.3, 1);
    position: absolute;
    inset: 0;
  }

  .morph__edge {
    background: linear-gradient(160deg, #c4c7cd, #6c6f75 55%, #3a3b40);
    clip-path: inset(
      calc(var(--y) - var(--b) - 0.25cqh) calc(var(--x) - var(--b) - 0.25cqh)
        round calc(var(--r) + var(--b) + 0.25cqh)
    );
  }
  .morph__bezel {
    background: #0b0b0d;
    clip-path: inset(calc(var(--y) - var(--b)) calc(var(--x) - var(--b)) round calc(var(--r) + var(--b)));
  }
  .morph__screen {
    background: var(--screen-bg);
    clip-path: inset(var(--y) var(--x) round var(--r));
  }
  .morph__box > .morph__shadow {
    inset: auto;
    left: 50%;
    top: calc(50cqh + var(--h) / 2);
    width: calc(var(--w) * 1.2);
    height: calc(var(--w) * 0.1 + 2cqh);
    transform: translate(-50%, -35%);
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0.24), transparent);
  }
  .morph__box > .morph__base {
    inset: auto;
    left: calc(50cqw - var(--dW) * 0.56);
    top: calc(50cqh + var(--dH) / 2 + var(--dW) * 0.018);
    width: calc(var(--dW) * 1.12);
    height: calc(var(--dW) * 0.02);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: linear-gradient(180deg, #e2e4e8 0%, #c9ccd2 38%, #a2a5ab 100%);
    opacity: calc(1 - var(--s1) * 3);
    transform: scaleX(calc(1 - var(--s1) * 0.25));
  }
  .morph__base span {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12%;
    height: 42%;
    transform: translateX(-50%);
    border-radius: 0 0 40% 40%;
    background: linear-gradient(180deg, #a3a6ac, #c7cacf);
  }

  /* ---------- Calques de contenu ---------- */
  .morph__layer {
    position: absolute;
    overflow: hidden;
    container-type: inline-size;
  }
  .morph__layer img {
    width: 100%;
    height: auto;
  }
  .morph__layer--desktop {
    left: calc((100cqw - var(--dW)) / 2);
    top: calc((100cqh - var(--dH)) / 2);
    width: var(--dW);
    height: var(--dH);
    opacity: calc(1 - var(--f1));
  }
  .morph__layer--tablet {
    left: calc((100cqw - var(--tW)) / 2);
    top: calc((100cqh - var(--tH)) / 2);
    width: var(--tW);
    height: var(--tH);
    opacity: calc(var(--f1) - var(--f2));
  }
  .morph__layer--mobile {
    left: calc((100cqw - var(--mW)) / 2);
    top: calc((100cqh - var(--mH)) / 2);
    width: var(--mW);
    height: var(--mH);
    opacity: calc(var(--f2) - var(--f3));
    background: var(--status-bg);
  }
  .morph__layer--fold {
    left: calc((100cqw - var(--kW)) / 2);
    top: calc((100cqh - var(--kH)) / 2);
    width: var(--kW);
    height: var(--kH);
    opacity: var(--f3);
    background: var(--screen-bg);
  }
  /* pli central de l'écran pliable */
  .morph__crease { position: absolute; top: 0; bottom: 0; left: 50%; width: 3.2cqw; transform: translateX(-50%); pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / 0), rgb(0 0 0 / .13) 46%, rgb(255 255 255 / .22) 54%, rgb(255 255 255 / 0)); }

  .morph__menubar {
    position: relative;
    height: 2.116cqw;
    background: #000;
  }
  .morph__menubar span {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12.4cqw;
    height: 2.3cqw;
    transform: translateX(-50%);
    border-radius: 0 0 0.9cqw 0.9cqw;
    background: #000;
  }
  .morph__toolbar {
    position: relative;
    display: flex;
    align-items: center;
    height: 3.439cqw;
    padding-inline: 1.3cqw;
    background: #f5f5f6;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  }
  .morph__lights {
    display: flex;
    gap: 0.55cqw;
  }
  .morph__lights i {
    width: 0.8cqw;
    height: 0.8cqw;
    border-radius: 50%;
    background: #ff5f57;
  }
  .morph__lights i:nth-child(2) {
    background: #febc2e;
  }
  .morph__lights i:nth-child(3) {
    background: #28c840;
  }
  .morph__url {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 32cqw;
    height: 2.2cqw;
    transform: translate(-50%, -50%);
    border-radius: 0.65cqw;
    background: #e8e8eb;
    color: #3c3c43;
    font-size: 1.02cqw;
    font-weight: 500;
  }
  .morph__page {
    height: 59.392cqw;
    overflow: hidden;
  }
  .morph__page--mobile {
    height: 203.05cqw;
  }
  .morph__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 13.74cqw;
    padding: 0.6cqw 8cqw 0 9.4cqw;
    color: #000;
    font-size: 4.3cqw;
    font-weight: 600;
  }
  .morph.is-light .morph__status {
    color: #fff;
  }
  .morph__icons {
    display: flex;
    gap: 1.3cqw;
    align-items: center;
  }
  .morph__icons svg {
    height: 3cqw;
    width: auto;
    display: block;
  }
  .morph__island {
    position: absolute;
    left: 50%;
    top: 2.9cqw;
    width: 31.8cqw;
    height: 9.3cqw;
    transform: translateX(-50%);
    border-radius: 99px;
    background: #000;
  }
  .morph__safari {
    position: absolute;
    left: 4.2cqw;
    right: 4.2cqw;
    bottom: 7.4cqw;
    display: grid;
    place-items: center;
    height: 11.6cqw;
    border-radius: 99px;
    background: rgba(250, 250, 252, 0.8);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 0.6cqw 3cqw rgba(0, 0, 0, 0.12);
    color: #111;
    font-size: 3.9cqw;
    font-weight: 500;
  }
  .morph__home {
    position: absolute;
    left: 50%;
    bottom: 2.2cqw;
    width: 35cqw;
    height: 1.35cqw;
    transform: translateX(-50%);
    border-radius: 1cqw;
    background: rgba(0, 0, 0, 0.88);
  }

  /* ---------- Sélecteur d'écran ---------- */
  .morph__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .morph__tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px;
    border-radius: 999px;
    background: var(--soft);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .morph__tabs button {
    position: relative;
    z-index: 1;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mute);
    transition: color 0.3s var(--ease);
  }
  .morph__tabs button[aria-pressed='true'] {
    color: #1d1d1f;
  }
  .morph__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 8px) / 4);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / .2);
    transition: translate 0.6s var(--ease-out);
  }
  .morph[data-state='tablet'] .morph__thumb {
    translate: 100% 0;
  }
  .morph[data-state='mobile'] .morph__thumb {
    translate: 200% 0;
  }
  .morph[data-state='fold'] .morph__thumb {
    translate: 300% 0;
  }
  .morph__size {
    display: grid;
    font-size: 0.75rem; font-variant-numeric: tabular-nums;
    color: var(--mute);
    letter-spacing: 0;
  }
  .morph__size span {
    grid-area: 1 / 1;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }
  .morph[data-state='desktop'] [data-size='desktop'],
  .morph[data-state='tablet'] [data-size='tablet'],
  .morph[data-state='mobile'] [data-size='mobile'],
  .morph[data-state='fold'] [data-size='fold'] {
    opacity: 1;
  }

/* Le logo ne doit jamais être rogné : la petite planète touche (et, animée, dépasse) le bord du dessin. */
.logo__mark, .site-footer__mark, .hero__mark svg, .page-hero__mark svg, .cb-head__mark { overflow: visible; }
/* Logo animé (en-tête seulement) : la petite planète fait le tour du « O », comme sur le logo d'origine. */
.oxa-orbit { transform-origin: 38px 38px; animation: oxa-spin 9s linear infinite; }
.oxa-planet { transform-origin: 73px 38px; animation: oxa-pop .3s cubic-bezier(.34, 1.56, .64, 1) .5s both; }
@keyframes oxa-spin { to { transform: rotate(360deg); } }
@keyframes oxa-pop { from { opacity: 0; transform: scale(0); } to { opacity: .8; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .oxa-orbit, .oxa-planet { animation: none; } }


/* Teintes douces des projets : fond des cartes (clair : pastel ; sombre : profond mais discret) */
:root { --tint-aquacreneaux: #dbe9f5; --tint-cultios: #e0edd9; --tint-latelier: #ece3d2; --tint-cph: #efdcdf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tint-aquacreneaux: #0f1f2d; --tint-cultios: #111f15; --tint-latelier: #211d16; --tint-cph: #26161a; } }
:root[data-theme="dark"] { --tint-aquacreneaux: #0f1f2d; --tint-cultios: #111f15; --tint-latelier: #211d16; --tint-cph: #26161a; }

/* 11c — PAGES AVEC LEUR PROPRE EFFET --------------------------------------------------
   Chaque onglet a sa mise en scène : Sites = un MacBook qui s'ouvre puis un sélecteur de sites ; Réalisations = une scène où le projet
   change au défilement ; Applications = un carrousel horizontal d'iPad et d'iPhone. */

/* — Page qui défile dans un MacBook (image haute dans l'écran) — */
.mlong, .dmac__screen img.mlong { display: block; width: 100%; height: auto; object-fit: initial; will-change: transform; }
.mlong--agathe { --r: 3.75; } .mlong--aqua { --r: 4.1667; } .mlong--cultios { --r: 4.7708; } .mlong--cph { --r: 1.62; }
.dmac__screen .mlong { --dist: calc(var(--r) * 97.2cqw - 60.75cqw); }

/* — « Ordinateur qui s'allume » : MacBook 3D piloté par le défilement.
     Toile de 1920 × 1080 mise à l'échelle par app.js (--k) ; --lid, --rx, --s, --cy, --bl, --wall, --glow et --sc suivent la progression.
     Valeurs par défaut = plan final (mouvement réduit, ou script absent). — */
.macopen { --scene-h: 560vh; --om-bg: oklch(0.1 0.003 250); --lid: 8deg; --rx: -8deg; --s: 1.52; --cy: 470px; --bl: 1; --wall: 1; --glow: 1; --sc: 0; background: var(--om-bg); }
.macopen .scene__sticky { background: var(--om-bg); }
html:not(.scenes-on) .macopen .scene__sticky { position: relative; height: auto; padding: 40px 0 24px; }
html:not(.scenes-on) .macopen .macopen__top { position: relative; }
html:not(.scenes-on) .macopen .om__view { position: relative; inset: auto; height: clamp(340px, 60svh, 620px); margin-top: 24px; }
html:not(.scenes-on) .macopen .macopen__caption { position: static; transform: none; margin: 16px auto 0; }
.om__view { position: absolute; inset: clamp(72px, 12svh, 96px) 0 0; overflow: hidden; }
.om { pointer-events: none; position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; margin: -540px 0 0 -960px; transform: translateX(var(--ox, 0px)) scale(var(--k, .4)); transform-origin: 50% 50%; }
.om__persp { position: absolute; inset: 0; perspective: 2000px; perspective-origin: 960px 540px; }
.om__world { position: absolute; left: 960px; top: 540px; width: 0; height: 0; transform-style: preserve-3d; transform: translateY(var(--cy)) scale(var(--s)) rotateX(var(--rx)); }
/* Sol : seulement l'ombre. Image pré-floutée (au lieu d'un filtre blur calculé à chaque image) sur un plan réduit (1360 x 1020 au lieu de 3600 x 2800), bien plus léger pour un téléphone. */
.om__floor { position: absolute; left: -680px; top: -510px; width: 1360px; height: 1020px; transform: rotateX(90deg); }
.om__shadow { position: absolute; left: 0; top: 10px; width: 1360px; height: 1020px; background: url('/assets/img/om-shadow.webp') 0 0 / 100% 100% no-repeat; }
.om__deck { position: absolute; left: -450px; top: -300px; width: 900px; height: 600px; border-radius: 22px; transform-style: preserve-3d; transform: translateY(-14px) rotateX(90deg); background: linear-gradient(160deg, oklch(0.86 0.005 250), oklch(0.74 0.006 250)); }
.om__keys { position: absolute; left: 70px; top: 56px; width: 760px; height: 300px; border-radius: 10px; background: oklch(0.58 0.006 250); padding: 8px; box-sizing: border-box; display: grid; grid-template-columns: repeat(14, 1fr); gap: 7px; }
.om__keys i { border-radius: 6px; background: oklch(0.16 0.004 250); box-shadow: 0 0 calc(10px * var(--glow)) oklch(0.85 0.05 260 / calc(.25 * var(--glow))); }
.om__pad { position: absolute; left: 290px; top: 380px; width: 320px; height: 190px; border-radius: 14px; background: oklch(0.8 0.005 250); box-shadow: inset 0 0 0 1.5px oklch(0.68 0.006 250); }
.om__glow { position: absolute; inset: 0; border-radius: 22px; opacity: var(--glow); background: radial-gradient(70% 60% at 50% 0%, oklch(0.75 0.08 280 / .35), transparent 70%); }
.om__front { position: absolute; left: -450px; top: -14px; width: 900px; height: 14px; border-radius: 0 0 8px 8px; background: linear-gradient(oklch(0.7 0.006 250), oklch(0.56 0.006 250)); transform: translateZ(300px); }
.om__lid { position: absolute; left: -450px; top: -616px; width: 900px; height: 600px; transform-style: preserve-3d; transform-origin: 50% 100%; transform: translateZ(-300px) rotateX(var(--lid)); }
.om__screen { position: absolute; inset: 0; border-radius: 20px; background: oklch(0.13 0.005 250); transform: translateZ(1px); backface-visibility: hidden; padding: 22px; box-sizing: border-box; }
.om__glass { position: relative; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: oklch(0.08 0.005 250); }
.om__backlight { position: absolute; inset: 0; background: oklch(0.2 0.01 260); opacity: var(--bl); }
.om__wall { position: absolute; inset: 0; overflow: hidden; background: #f6f2ea; opacity: var(--wall); transform: scale(calc(1.04 - .04 * var(--wall))); }
.om__site { display: block; width: 100%; height: auto; will-change: transform; }
.om__sheen { position: absolute; inset: 0; background: linear-gradient(115deg, oklch(1 0 0 / .07) 0%, transparent 35%, transparent 60%, oklch(1 0 0 / .04) 75%, transparent 85%); }
.om__back { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(160deg, oklch(0.86 0.005 250), oklch(0.74 0.006 250)); transform: rotateY(180deg) translateZ(6px); display: none; }
.om__edge { position: absolute; left: 0; top: 0; width: 900px; height: 6px; transform-origin: 50% 0; background: oklch(0.66 0.006 250); transform: rotateX(-90deg); }
.om--closed .om__screen { display: none; }
.om--closed .om__back { display: grid; place-items: center; }
.om__back svg { width: 150px; height: 150px; color: rgb(0 0 0 / .24); overflow: visible; }
.macopen__top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none; }
.macopen .ch__titles { justify-items: center; text-align: center; margin: clamp(8px, 2svh, 24px) 0 0; }
.macopen .ch__t { font-size: clamp(1.5rem, .7rem + 1.8vw, 2.5rem); }
.macopen__caption { position: absolute; right: clamp(20px, 4vw, 56px); top: calc(clamp(8px, 2svh, 24px) + clamp(1.5rem, .7rem + 1.8vw, 2.5rem) * 1.08 + 8px); z-index: 2; margin: 0; white-space: nowrap; text-align: right; font-size: .78rem; line-height: 1.35; color: var(--mute); }
.macopen__caption a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.macopen__caption a:hover { color: #f5f5f7; }
@media (max-width: 900px) { .macopen__caption { left: 16px; right: 16px; top: auto; bottom: 76px; white-space: normal; text-align: center; } }
/* Écran large : après le zoom, les phrases de détail passent à gauche, à côté de l'ordinateur (décalage et échelle posés par app.js) */
.scenes-on .macopen--narrow .macopen__top { top: auto; bottom: calc(100% - var(--om-lt, 40%) + 30px); }   /* mobile : le titre se pose juste au-dessus de l'ordinateur */
.scenes-on .macopen--narrow .ch__titles { align-items: end; margin: 0; }
.scenes-on .macopen--side .macopen__top { bottom: 0; }
.scenes-on .macopen--side .ch__titles { position: absolute; inset: 0; display: block; margin: 0; }
.scenes-on .macopen--side .ch__t { position: absolute; margin: 0; }
.scenes-on .macopen--side .ch__t--0 { left: 0; right: 0; top: clamp(8px, 2svh, 24px); text-align: center; }
.scenes-on .macopen--side .ch__t--1, .scenes-on .macopen--side .ch__t--2 { left: clamp(20px, 4vw, 56px); width: var(--om-col, 280px); top: 0; bottom: 0; height: fit-content; margin-block: auto; text-align: left; font-size: clamp(1rem, calc(var(--om-col, 200px) / 8.6), 2rem); }

/* — Sélecteur de sites : un seul MacBook, quatre sites — */
.switcher { display: grid; gap: clamp(20px, 3vw, 40px); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft-2); justify-self: center; }
.seg button { min-height: 40px; padding: 0 1.1em; border-radius: 10px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.switcher__body { display: grid; gap: clamp(20px, 4vw, 56px); grid-template-columns: 7fr 4fr; align-items: center; }
.switcher__mac .dmac__screen { background: #fff; }
.switcher__mac .mlong { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .6s var(--ease-out); }
.switcher__mac .mlong.is-on { opacity: 1; --sw: max(4s, calc((var(--r) * 97.2 - 60.75) * .05s)); animation: msweep var(--sw) ease-in-out .25s infinite alternate; }
@keyframes msweep { 0%, 3% { transform: translate3d(0, 0, 0); } 97%, 100% { transform: translate3d(0, calc(var(--dist) * -1), 0); } }
.switcher__info > div { display: none; } .switcher__info > div.is-on { display: block; animation: info-in .55s var(--ease-out) both; }
@keyframes info-in { from { opacity: 0; transform: translateY(10px); } }
.switcher__info h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.switcher__info p { margin-top: .8rem; color: var(--mute); text-wrap: pretty; max-width: 28em; }
.switcher__info .checks { margin-top: 1.2rem; }
.switcher__info .checks .ico { color: var(--c-green); }
@media (max-width: 899px) { .switcher__body { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .switcher__mac .mlong.is-on { animation: none; } }
html.lite .switcher__mac .mlong.is-on { animation: none; }

/* — Galerie de détails : pages entières, sans rognage. Chaque rangée réunit deux images ; leur largeur est proportionnelle à leur rapport
     largeur/hauteur, donc elles ont la même hauteur et remplissent la rangée exactement. — */
.bento { display: grid; gap: clamp(10px, 1.6vw, 18px); }
.bento__row { display: flex; gap: clamp(10px, 1.6vw, 18px); align-items: stretch; }
.bento figure { position: relative; margin: 0; min-width: 0; border-radius: var(--r-l); overflow: hidden; background: var(--soft); isolation: isolate; box-shadow: 0 0 0 1px var(--line); }
.bento img { display: block; width: 100%; height: auto; }
.bento .legal-band ~ figcaption { bottom: auto; top: 12px; }
.bento figcaption { position: absolute; left: 12px; bottom: 12px; padding: .4em .85em; border-radius: 999px; background: rgb(0 0 0 / .62); color: #fff; font-size: .8125rem; font-weight: 500; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bento .r-detail-agathe-collection { flex: 1.148 1 0; }
.bento .r-detail-cultios-modules { flex: 1.246 1 0; }
.bento .r-detail-aqua-pole { flex: 1.212 1 0; }
.bento .r-detail-aqua-apercu { flex: 1.575 1 0; }
.bento .r-detail-agathe-atelier { flex: 2.075 1 0; }
.bento .r-detail-cph-selection { flex: 2.802 1 0; }
@media (max-width: 760px) { .bento__row { flex-direction: column; } .bento .bento__row figure { flex: none; } }

/* — Réalisations : un iMac ; le site du projet défile à l'écran, l'application est sur un iPhone — */
.pj { --scene-h: 460vh; }
.pj .wrap { height: 100%; } html:not(.scenes-on) .pj .wrap { height: auto; }
.pj .scene__sticky { background: var(--tint-aquacreneaux); transition: background-color .9s var(--ease-out); }
.scenes-on .pj[data-step='1'] .scene__sticky { background: var(--tint-cultios); }
.scenes-on .pj[data-step='2'] .scene__sticky { background: var(--tint-latelier); }
.scenes-on .pj[data-step='3'] .scene__sticky { background: var(--tint-cph); }
.pj__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: clamp(10px, 2svh, 22px); margin-bottom: clamp(6px, 1.5svh, 18px); }
.pj__dots { display: flex; gap: 8px; }
.pj__dots button { height: 8px; width: 8px; padding: 0; border-radius: 99px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: width .4s var(--ease-out), background .3s; }
.scenes-on .pj[data-step='0'] .pj__dots [data-i='0'], .scenes-on .pj[data-step='1'] .pj__dots [data-i='1'], .scenes-on .pj[data-step='2'] .pj__dots [data-i='2'], .scenes-on .pj[data-step='3'] .pj__dots [data-i='3'] { width: 28px; background: var(--ink); }
html:not(.scenes-on) .pj { padding-block: var(--band-y); } html:not(.scenes-on) .pj__dots { display: none; }
.pj__stack { display: grid; gap: clamp(20px, 3vw, 36px); }
.scenes-on .pj__stack { gap: 0; height: calc(100% - 52px); align-items: center; }
.pj__item { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: var(--r-l); overflow: hidden; isolation: isolate; }
.scenes-on .pj__item { background: transparent; padding: 0; overflow: visible; grid-area: 1 / 1; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.scenes-on .pj[data-step='0'] .pj__item[data-i='0'], .scenes-on .pj[data-step='1'] .pj__item[data-i='1'], .scenes-on .pj[data-step='2'] .pj__item[data-i='2'], .scenes-on .pj[data-step='3'] .pj__item[data-i='3'] { opacity: 1; transform: none; pointer-events: auto; }
.pj__item h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; margin-top: .5rem; }
.pj__item p { margin-top: 1rem; color: var(--ink-2); max-width: 26em; text-wrap: pretty; }
.pj__item .proj__kind { color: var(--mute); opacity: 1; margin-top: 0; }
.pj__item .chips { margin-top: 1.2rem; } .pj__item .chip { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }

.pj__item a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.pj__device { position: relative; width: min(100%, calc((100svh - var(--header-h) - 190px) * 1.5)); margin-inline: auto; }
.pj__device .dimac { width: 88%; }
.pj__phone { position: absolute; right: 0; bottom: -1%; width: 17%; z-index: 2; }
.pj__phone .dphone__body { box-shadow: inset 0 0 0 .5cqw #2c2c30, 0 0 0 .3cqw #5a5b60, 0 4cqw 9cqw -3cqw rgb(0 0 0 / .5); }
.pj .mlong { animation: msweep 24s ease-in-out 1s infinite alternate; }
.scenes-on .pj .mlong { animation: none; }
.scenes-on .pj[data-step='0'] .pj__item[data-i='0'] .mlong, .scenes-on .pj[data-step='1'] .pj__item[data-i='1'] .mlong, .scenes-on .pj[data-step='2'] .pj__item[data-i='2'] .mlong, .scenes-on .pj[data-step='3'] .pj__item[data-i='3'] .mlong { animation: msweep 24s ease-in-out .6s infinite alternate; }
@media (prefers-reduced-motion: reduce) { .pj .mlong, .scenes-on .pj .pj__item .mlong { animation: none !important; } }
@media (max-width: 1023px) { .pj__item, .pj__item:nth-child(even) { grid-template-columns: 1fr; } .scenes-on .pj__item { gap: 12px; } .scenes-on .pj__item .chips { display: none; } .scenes-on .pj__item p { margin-top: .5rem; } .scenes-on .pj__device { width: min(100%, 50svh); } .pj__item h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); } }

/* — Applications : carrousel horizontal d'iPad et d'iPhone — */
.app-slide { position: relative; flex: 0 0 min(90vw, 720px); scroll-snap-align: start; border-radius: var(--r-l); overflow: hidden; background: var(--tint, var(--soft)); color: var(--ink); display: flex; flex-direction: column; isolation: isolate; }
.app-slide__stage { padding: clamp(18px, 3vw, 32px) clamp(20px, 4vw, 52px) 0; }
.app-slide__body { padding: clamp(14px, 2.4vw, 26px) clamp(24px, 4vw, 52px) clamp(26px, 4vw, 44px); }
.app-slide h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; margin-top: .45rem; }
.app-slide p { margin-top: .7rem; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.app-slide .proj__kind { color: var(--mute); opacity: 1; }
.app-slide .checks { margin-top: 1rem; } .app-slide .checks .ico { color: var(--c-green); }
.app-slide .link-arrow, .pj__item .link-arrow { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; margin-top: 1.3rem; } .app-slide a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.app-slide .stage--part { aspect-ratio: 16 / 11.6; }

/* 12 — ADAPTATIONS ---------------------------------------------------------- */
@media (min-width: 900px) { .hero__cue { display: block; } }
@media (max-width: 1023px) {
  .site-nav, .site-header__cta { display: none; }
  .burger { display: inline-flex; }
  .duo, .split-2, .cols-2, .contact-grid, .site-footer__top { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .work-item, .work-item:nth-child(even) { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-item__shot { order: 0; }
  .case-block { grid-template-columns: 1fr; gap: 14px; }
  .value { grid-template-columns: 1fr; gap: 8px; }
  .tile { min-height: 540px; }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  body { font-size: 1rem; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__cols > :first-child { grid-column: 1 / -1; }
  .step { grid-template-columns: 48px 1fr; gap: 6px 14px; }
  .case-pager { grid-template-columns: 1fr; } .case-pager a:last-child { text-align: left; align-items: flex-start; }
  .btn-row .btn { width: 100%; } .t-center .btn-row { flex-direction: column; align-items: stretch; }
  .hero__mark { right: 50%; margin-right: calc(var(--mark) / -2); opacity: .8; }
  .oxa-chat__launcher span { display: none; } .oxa-chat__launcher { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .oxa-chat__panel { width: calc(100vw - 20px); right: -6px; height: min(78dvh, 680px); }
}
/* Écrans très étroits : couverture des Galaxy Z Fold / Flip repliés (~280–360 px) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .logo { gap: 8px; } .logo__mark { width: 24px; height: 24px; } .logo__name { font-size: .8125rem; letter-spacing: .16em; } .logo__label { font-size: .625rem; letter-spacing: .08em; }
  .t-display-xl { font-size: 2.55rem; } .t-display-l { font-size: 2.15rem; }
  .proj { flex-basis: 88vw; min-height: 500px; }
}
/* Pliable déplié (~700–1000 px, format presque carré) : on garde des colonnes confortables */
@media (min-width: 640px) and (max-width: 1023px) and (max-aspect-ratio: 5/4) {
  .features, .offer { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { max-width: 10em; }
}
/* Écrans doubles / pliables avec charnière verticale : on évite de couper le texte sur le pli */
@media (horizontal-viewport-segments: 2) {
  .wrap { padding-inline: calc(env(viewport-segment-width 0 0) * .06); }
  .hero__inner, .page-hero .wrap { max-width: calc(env(viewport-segment-width 0 0) - 24px); margin-inline: 0 auto; }
}
/* Flip en mode « Flex » (charnière horizontale) : le chatbot reste dans l'écran du bas */
@media (vertical-viewport-segments: 2) {
  .oxa-chat { bottom: max(16px, calc(100vh - env(viewport-segment-top 0 1) + 16px)); }
}
/* Paysage bas (téléphones) */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; padding-block: 48px; align-items: center; }
  .oxa-chat__panel { height: calc(100dvh - 24px); }
}
@media (min-width: 1600px) { :root { --wrap: 1280px; } html { font-size: 106%; } }
/* 13 — DIRECTION COULEUR (modèle Apple) ----------------------------------------
   Base : blanc, gris, noir. Couleur : une gamme de teintes « système » (bleu, vert, orange, rose, violet, indigo, turquoise)
   utilisée en aplats, par petites touches : icônes, intitulés, numéros, coches, étiquettes de type.
   Chaque teinte a une version texte lisible (contraste AA) en clair et une version lumineuse en sombre.
   Aucun dégradé, aucun halo, aucun mot en italique décoratif. Police : celle du système (SF Pro sur Apple). */
:root {
  --paper: #fbfbfd; --soft: #f5f5f7; --soft-2: #e8e8ed;
  --ink: #1d1d1f; --ink-2: #424245; --mute: #6e6e73;
  --line: rgb(0 0 0 / .1);
  --signal: #0071e3; --signal-hover: #0077ed; --signal-press: #006edb; --accent-ink: #0066cc;
  --c-blue: #0066cc; --c-green: #1a7f37; --c-orange: #b64400; --c-pink: #c8104e; --c-purple: #8944ab; --c-indigo: #4b49c8; --c-teal: #0a7387;
  --r-s: 12px; --r-m: 20px; --r-l: 32px;
  --hero-mark: #ececef;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0a0b; --soft: #161618; --soft-2: #232326; --ink: #f5f5f7; --ink-2: #d2d2d7; --mute: #a1a1a6; --line: rgb(255 255 255 / .13); --accent-ink: #2997ff; --hero-mark: #1f1f22;
    --c-blue: #2997ff; --c-green: #30d158; --c-orange: #ff9f0a; --c-pink: #ff375f; --c-purple: #bf5af2; --c-indigo: #7d7aff; --c-teal: #64d2ff;
  }
}
:root[data-theme="dark"] {
  --paper: #0a0a0b; --soft: #161618; --soft-2: #232326; --ink: #f5f5f7; --ink-2: #d2d2d7; --mute: #a1a1a6; --line: rgb(255 255 255 / .13); --accent-ink: #2997ff; --hero-mark: #1f1f22;
  --c-blue: #2997ff; --c-green: #30d158; --c-orange: #ff9f0a; --c-pink: #ff375f; --c-purple: #bf5af2; --c-indigo: #7d7aff; --c-teal: #64d2ff;
}
/* surfaces toujours sombres : teintes lumineuses */
.tile--dark, .card--dark, .chapter--dark, .cta.band--dark {
  --accent-ink: #2997ff; --c-blue: #2997ff; --c-green: #30d158; --c-orange: #ff9f0a; --c-pink: #ff375f; --c-purple: #bf5af2; --c-indigo: #7d7aff; --c-teal: #64d2ff;
}

/* Typographie : titres en demi-gras serré, comme Apple ; les mots-clés ne changent ni de police ni de couleur */
.t-display-xl, .t-display-l, .t-display-m, .t-title, .statement, .ch__t, .ch__h { font-weight: 600; }
.t-display-xl { letter-spacing: -.035em; } .t-display-l { letter-spacing: -.03em; } .t-display-m, .ch__t, .ch__h, .statement { letter-spacing: -.025em; }
em, .t-display-xl em, .t-display-l em, .t-display-m em, .t-title em, .ch__h em, h1 em, h2 em, .errorpage .code em {
  font-family: var(--font); font-style: normal; font-weight: inherit; letter-spacing: inherit; font-size: 1em;
  color: inherit; background: none; -webkit-text-fill-color: currentColor;
}
.shot__brand { font-family: var(--font); font-style: normal; font-weight: 600; }

/* Intitulés de section : petits, en couleur (comme les « Nouveau » d'Apple) */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--c-orange); }
.eyebrow--accent { color: var(--c-orange); }
.case-hero .eyebrow, .proj__kind { letter-spacing: .02em; }
main > section:nth-of-type(6n+1) .eyebrow { color: var(--c-orange); }
main > section:nth-of-type(6n+2) .eyebrow { color: var(--c-blue); }
main > section:nth-of-type(6n+3) .eyebrow { color: var(--c-purple); }
main > section:nth-of-type(6n+4) .eyebrow { color: var(--c-green); }
main > section:nth-of-type(6n+5) .eyebrow { color: var(--c-pink); }
main > section:nth-of-type(6n) .eyebrow { color: var(--c-teal); }
main > .sites .eyebrow, main > #sites .eyebrow { color: var(--c-blue); }
main > .apps .eyebrow, main > #outils .eyebrow { color: var(--c-orange); }
main > .phones .eyebrow, main > #applications .eyebrow { color: var(--c-green); }

/* Icônes et numéros : une teinte par élément, en alternance */
.offer > :nth-child(7n+1), .features > :nth-child(7n+1), .steps > :nth-child(7n+1), .values > :nth-child(7n+1), .hero__meta > :nth-child(3n+1) { --k: var(--c-blue); }
.offer > :nth-child(7n+2), .features > :nth-child(7n+2), .steps > :nth-child(7n+2), .values > :nth-child(7n+2), .hero__meta > :nth-child(3n+2) { --k: var(--c-green); }
.offer > :nth-child(7n+3), .features > :nth-child(7n+3), .steps > :nth-child(7n+3), .values > :nth-child(7n+3), .hero__meta > :nth-child(3n) { --k: var(--c-orange); }
.offer > :nth-child(7n+4), .features > :nth-child(7n+4), .steps > :nth-child(7n+4), .values > :nth-child(7n+4) { --k: var(--c-purple); }
.offer > :nth-child(7n+5), .features > :nth-child(7n+5), .steps > :nth-child(7n+5), .values > :nth-child(7n+5) { --k: var(--c-pink); }
.offer > :nth-child(7n+6), .features > :nth-child(7n+6), .steps > :nth-child(7n+6), .values > :nth-child(7n+6) { --k: var(--c-teal); }
.offer > :nth-child(7n), .features > :nth-child(7n), .steps > :nth-child(7n), .values > :nth-child(7n) { --k: var(--c-indigo); }
.feature > .ico, .offer .card > .ico, .hero__meta .ico { color: var(--k, var(--c-blue)); }
.feature > .ico, .offer .card > .ico { width: 36px; height: 36px; }
.value h3 { color: var(--k, var(--ink)); }
.step__n { font-family: var(--font); font-style: normal; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--k, var(--c-blue)); -webkit-text-fill-color: currentColor; background: none; }
.step__n::before { content: "0"; }
/* coches : vert, comme les listes de caractéristiques d'Apple */
.checks .ico, .band--dark .checks .ico { color: var(--c-green); }

/* Réalisations : chaque type a sa teinte (site = bleu, application installable = vert, outil = orange) */
.part-card[data-type="site"] .part-card__kind { color: var(--c-blue); }
.part-card[data-type="pwa"] .part-card__kind { color: var(--c-green); }
.part-card[data-type="outil"] .part-card__kind { color: var(--c-orange); }
.section-nav a[href="#sites"] small { color: var(--c-blue); }
.section-nav a[href="#applications"] small { color: var(--c-green); }
.section-nav a[href="#outils"] small { color: var(--c-orange); }

/* Boutons : bleu Apple en aplat */
.btn--dark, .btn--light { background: var(--signal); color: #fff; }
.btn--dark:hover, .btn--light:hover { background: var(--signal-hover); }
.btn--dark:active, .btn--light:active { background: var(--signal-press); }
.cb-chip--cta { background: var(--signal); border-color: var(--signal); color: #fff; }

/* Pas d'effets lumineux */
.hero__glow { display: none; }
.hero__mark svg { filter: none; }

/* Chapitres sombres : noir uni */
.chapter--dark { background: #000; }

/* Bandeau final : anthracite, texte clair, bouton bleu */
.cta.band--dark { background: #1d1d1f; --ink: #f5f5f7; --ink-2: #d2d2d7; --mute: #c7c7cc; --line: rgb(255 255 255 / .18); --bg: #1d1d1f; color: #f5f5f7; }
.cta.band--dark .btn--light { background: var(--signal); color: #fff; }
.cta.band--dark .btn--light:hover { background: var(--signal-hover); }
.cta.band--dark .link-arrow--light { color: #2997ff; }

/* Détails */
::selection { background: rgb(0 113 227 / .22); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible, .cb-form input:focus-visible { box-shadow: 0 0 0 4px rgb(0 113 227 / .25); border-color: var(--accent-ink); }

@media print { .site-header, .oxa-chat, .menu-mobile, .skip-link { display: none !important; } body { color: #000; } }

/* Surfaces « projet » en teinte douce : texte secondaire plus foncé (contraste AA sur pastel) */
.proj, .app-slide, .pj__item, .case-hero { --mute: #55555a; --ink-2: #3a3a3e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .proj, :root:not([data-theme="light"]) .app-slide, :root:not([data-theme="light"]) .pj__item, :root:not([data-theme="light"]) .case-hero { --mute: #b3b3b8; --ink-2: #d6d6db; } }
:root[data-theme="dark"] .proj, :root[data-theme="dark"] .app-slide, :root[data-theme="dark"] .pj__item, :root[data-theme="dark"] .case-hero { --mute: #b3b3b8; --ink-2: #d6d6db; }
.case-hero .crumbs a { color: var(--mute); }

/* >>> barres d'état iPhone (généré) : fond = couleur du haut de la capture, texte blanc ou noir selon le contraste */
.sb-agathe-app-mobile { background: #9c9890; color: #000; }
.sb-agathe-iphone { background: #f5f2ea; color: #000; }
.sb-aquacreneaux-mobile { background: #ffffff; color: #000; }
.sb-aquacreneaux-mobile-alerte { background: #b8cde0; color: #000; }
.sb-aquacreneaux-mobile-reservation { background: #b7d6ee; color: #000; }
.sb-cph-iphone-livre { background: #faf7ef; color: #000; }
.sb-cph-wines-mobile { background: #ede6cf; color: #000; }
.sb-cultios-app-mobile { background: #f3f1eb; color: #000; }
.sb-cultios-iphone { background: #ffffff; color: #000; }
.sb-cultios-iphone-carte { background: #ffffff; color: #000; }
.sb-cultios-iphone-dark { background: #211e16; color: #fff; }
/* <<< barres d'état iPhone */

/* Premier bloc de chaque page : il remplit tout l'écran (le bloc suivant n'apparaît qu'en descendant), contenu centré verticalement */
.page-hero--full { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.page-hero--full > .wrap { width: 100%; }
.case-hero { min-height: calc(100svh - var(--header-h)); }
/* Mobile : le texte des bandeaux d'ouverture démarre juste sous l'en-tête (au lieu d'être centré / posé en bas d'un écran entier) */
@media (max-width: 720px) {
  .page-hero--full { min-height: 0; align-items: flex-start; padding-block: 40px 48px; }
  .hero { min-height: 0; align-items: flex-start; padding-block: 40px 48px; }
}

/* En-tête adaptatif : il prend la couleur du bloc qui passe dessous (classes et couleur posées par app.js) */
.site-header, .site-header::before { transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.site-header.is-tinted { --bg: var(--hb); --header-line: color-mix(in srgb, var(--hb) 80%, #000); }
.site-header.is-dark { --ink: #f5f5f7; --ink-2: #d2d2d7; --mute: #a1a1a6; --line: rgb(255 255 255 / .14); --header-line: rgb(255 255 255 / .12); --logo-mark: #8fa8d9; --logo-label: #a1a1a6; --btn-hover: #0077ed; color: #f5f5f7; color-scheme: dark; }
.site-header.is-dark .site-nav a { color: #d2d2d7; } .site-header.is-dark .site-nav a:hover, .site-header.is-dark .site-nav a[aria-current] { color: #fff; }
.site-header.is-tinted:not(.is-dark) { --ink: #1d1d1f; --ink-2: #3a3a3e; --mute: #55555a; --logo-label: #55555a; }
