/*
  BRYA Studio — design du site.
  Orange vif, bleu nuit et ivoire en aplats, serif très grand, filets fins.
  Les états initiaux des animations ne s'appliquent que sous html.motion (posé dans <head>
  si le visiteur accepte le mouvement) : sans JavaScript, tout reste lisible.
*/

/* ───────────── Thèmes de section ───────────── */
[data-theme="accent"] {
  --color-bg: var(--orange);
  --color-text: var(--navy);
  --color-text-muted: rgba(20, 27, 52, .82);   /* 4,6:1 sur orange */
  --color-accent-text: var(--navy);
  --color-line: rgba(20, 27, 52, .22);
  --color-line-strong: rgba(20, 27, 52, .5);
}
[data-theme="paper"] { --color-bg: var(--paper); }

/* ───────────── Fondations ───────────── */
html { background: var(--ivory); }
body { letter-spacing: -0.006em; overflow-x: clip; }
::selection { background: var(--orange); color: var(--navy); }
[data-theme] { background: var(--color-bg); color: var(--color-text); }
h1 em, h2 em, h3 em, p em { font-style: italic; color: var(--color-accent-text); }

/* Texte qui roule au survol */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: inline-block; transition: transform .7s var(--ease); }
.roll::after {
  content: attr(data-text); content: attr(data-text) / "";
  position: absolute; left: 0; top: 100%; white-space: nowrap; transition: transform .7s var(--ease);
}
a:hover .roll > span, a:focus-visible .roll > span, button:hover .roll > span,
a:hover .roll::after, a:focus-visible .roll::after, button:hover .roll::after { transform: translateY(-100%); }

.arrow { width: 1.05em; height: 1.05em; flex: none; transition: transform .6s var(--ease); }
.arrow--up { transform: rotate(-90deg); }
a:hover > .arrow:not(.arrow--up), button:hover > .arrow { transform: translateX(.25em); }

/* Boutons « pilule » : un aplat qui monte au survol */
.pill {
  --pill-fill: var(--navy); --pill-fill-text: var(--ivory);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  padding: .85em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--step--1); font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; background: none; transition: color .5s var(--ease), border-color .5s var(--ease);
}
.pill::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--pill-fill); transform: translateY(101%); transition: transform .65s var(--ease);
}
.pill:hover::before, .pill:focus-visible::before { transform: none; }
.pill:hover, .pill:focus-visible { color: var(--pill-fill-text); }
.pill--lg { padding: 1.1em 1.7em; font-size: var(--step-0); }
.pill--accent { background: var(--orange); color: var(--navy); }
.pill--ink { background: var(--navy); color: var(--ivory); --pill-fill: var(--orange); --pill-fill-text: var(--navy); }
[data-theme="dark"] .pill--accent { --pill-fill: var(--ivory); --pill-fill-text: var(--navy); }
[data-theme="accent"] .pill--ink { --pill-fill: var(--ivory); --pill-fill-text: var(--navy); }

.text-link {
  display: inline-flex; align-items: center; gap: .5em; padding-bottom: .2em;
  font-size: var(--step--1); font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ───────────── Préchargement ───────────── */
.loader { display: none; }
.motion .loader {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: var(--navy); color: var(--ivory);
  animation: loader-failsafe 0s 6s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }
.loader__mark { width: clamp(3.25rem, 6vw, 4.5rem); color: var(--orange); }
.y-mark { width: 100%; height: auto; }
.loader__label {
  position: absolute; left: var(--gutter); bottom: 1.75rem; margin: 0;
  font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; opacity: .6;
}
.loader__count {
  position: absolute; right: var(--gutter); bottom: .5rem; margin: 0;
  font-family: var(--font-display); font-size: clamp(4.5rem, 14vw, 11rem); line-height: .85;
  font-variant-numeric: tabular-nums;
}

/* ───────────── En-tête ───────────── */
.site-header {
  --h-fg: var(--navy); --h-bg: rgba(251, 247, 240, .92);
  position: fixed; inset: 0 0 auto; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: var(--header-h); padding: 0 var(--gutter);
  color: var(--h-fg); background: transparent !important;
  transition: transform .7s var(--ease), color .4s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--h-bg);
  border-bottom: 1px solid var(--color-line); opacity: 0; transition: opacity .4s;
}
.site-header[data-theme="dark"] { --h-fg: var(--ivory); --h-bg: rgba(13, 18, 37, .92); }
.site-header[data-theme="accent"] { --h-bg: rgba(255, 106, 31, .95); }
.site-header[data-theme="accent"] .site-header__cta { background: var(--navy); color: var(--ivory); --pill-fill: var(--ivory); --pill-fill-text: var(--navy); }
.site-header[data-theme="accent"] .wordmark__y { fill: var(--ivory); }
.site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-105%); }
body[data-menu-open] .site-header { --h-fg: var(--ivory); transform: none; }
body[data-menu-open] .site-header::before { opacity: 0; }
body[data-menu-open] .site-header .wordmark__y { fill: var(--orange); }

.site-header__logo { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.wordmark { display: block; width: 100%; height: auto; overflow: visible; }
.wordmark__y { fill: var(--orange); transition: fill .4s; }
.site-header__logo .wordmark { width: 5.4rem; }
.site-header__logo .wordmark__y { transform-box: fill-box; transform-origin: 50% 90%; transition: rotate .8s var(--ease), fill .4s; }
.site-header__logo:hover .wordmark__y { rotate: -14deg; }
.site-header__studio { font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; opacity: .7; padding-top: .2rem; }

.site-header__nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.site-header__nav a { font-size: var(--step--1); text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.site-header__actions .pill { padding: .75em 1.2em; transition: color .5s var(--ease), background-color .4s; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .7em 1.15em; border: 1px solid currentColor; border-radius: 999px;
  background: none; color: inherit; font-size: var(--step--1); cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 1.1rem; height: .5rem; }
.menu-toggle__bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease); }
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1099px) { .site-header__nav { display: none; } }
/* Sur grand écran, la barre du haut suffit : le menu plein écran ne sert qu'aux écrans où les liens sont masqués. */
@media (min-width: 1100px) { .menu-toggle { display: none; } }
@media (max-width: 599px) { .site-header__actions .pill, .site-header__studio { display: none; } }

/* ───────────── Menu plein écran ───────────── */
.menu {
  position: fixed; inset: 0; z-index: 70; overflow: hidden; background: var(--navy-deep);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-io), visibility 0s 1s;
}
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path 1s var(--ease-io); }
.menu__inner {
  position: relative; z-index: 1; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: var(--space-l);
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(2rem, 5vh, 4rem);
}
.menu__link {
  display: inline-block; padding: .05em 0;
  font-family: var(--font-display); font-size: clamp(2.6rem, 1.6rem + 4.4vw, 6.25rem); line-height: 1;
  color: inherit; text-decoration: none; transition: opacity .4s;
}
.menu__word { display: inline-block; overflow: hidden; padding-bottom: .08em; }
.menu__word > span {
  display: inline-block; transform: translateY(110%);
  transition: transform .9s var(--ease) calc(var(--i, 0) * 55ms + .2s), color .4s;
}
.menu.is-open .menu__word > span { transform: none; }
.menu__link:hover .menu__word > span { font-style: italic; color: var(--orange); }
.menu__list:hover .menu__link:not(:hover) { opacity: .4; }
.menu__aside { display: grid; gap: 1rem; justify-items: start; padding-bottom: .75rem; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease); }
.menu.is-open .menu__aside { opacity: 1; transform: none; transition-delay: .55s; }
.menu__kicker { margin: 0; font-size: var(--step--1); color: var(--color-text-muted); }
.menu__mail { font-family: var(--font-display); font-size: var(--step-2); color: inherit; text-decoration: none; }
.menu__meta { margin: 0 0 1rem; color: var(--color-text-muted); font-size: var(--step--1); }
@media (max-width: 799px) {
  .menu__inner { grid-template-columns: 1fr; align-content: start; gap: 2.25rem; overflow-y: auto; padding-top: calc(var(--header-h) + 1.75rem); }
  .menu__link { font-size: clamp(2.1rem, 9.5vw, 2.9rem); }
  .menu__aside { padding-bottom: 2rem; }
}

/* ───────────── Lumière orange qui suit la souris (fonds sombres) ───────────── */
.light {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 34vw at var(--lx, 72%) var(--ly, 28%), rgba(255, 106, 31, .17), transparent 70%);
}

/* ───────────── Héros : une couleur ───────────── */
.hero { position: relative; z-index: 0; min-height: 100svh; overflow: hidden; }
.hero__mark {
  position: absolute; right: -3vw; top: 50%; width: clamp(14rem, 34vw, 38rem);
  color: var(--ivory); translate: 0 -46%; pointer-events: none;
}
.hero__mark .y-mark { transform-origin: 50% 85%; }
/* Composition Y + porte-clés 3D : trois couches superposées (hero-keychain.js). */
.hero__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__keychain { position: absolute; left: 0; top: 0; display: block; z-index: 1; background: transparent; }
.hero__mark--front { z-index: 2; }
.hero__art:not(.has-keychain) .hero__keychain, .hero__art:not(.has-keychain) .hero__mark--front { display: none; }
/* Y + porte-clés forment une seule pièce : rien n'est visible tant que le modèle n'est pas prêt,
   puis tout apparaît ensemble, d'un coup très court. */
.hero__art > * { transition: opacity .12s linear; }
.hero__art[data-kc-pending] > * { opacity: 0; }
.hero__art.is-placed .hero__mark { right: auto; bottom: auto; translate: none; }
.kc-debug i, .kc-debug b { position: absolute; z-index: 5; border-radius: 50%; }
.kc-debug i { width: 8px; height: 8px; background: #00e; }
.kc-debug b { border: 1px dashed #00e; }
.hero__inner {
  position: relative; z-index: 1; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; gap: var(--space-l);
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(1.75rem, 4vh, 3rem);
  transform-origin: 50% 0;
}
.hero__title {
  align-self: center; margin: 0;
  font-size: var(--step-5); line-height: .9; letter-spacing: -0.035em;
}
.line { display: block; overflow: hidden; padding: 0 .12em .16em .02em; margin: 0 -.12em -.16em -.02em; }
.line__inner { display: block; will-change: transform; }
.hero__title .line:nth-child(2) { padding-left: clamp(1.5rem, 9vw, 11rem); }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-l); flex-wrap: wrap; }
.hero__sub { max-width: 31rem; margin: 0; font-size: var(--step-1); line-height: 1.45; color: var(--color-text-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
@media (max-width: 799px) {
  /* Mobile : le Y se range en haut à droite, le titre respire au centre, rien ne se chevauche. */
  .hero__mark { width: 27vw; right: 6vw; top: calc(var(--header-h) + 1.25rem); bottom: auto; translate: 0 0; }
  .hero__inner { padding-bottom: calc(1.75rem + 2.25rem); }
  .hero__title { align-self: end; margin-bottom: 1rem; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero__ctas { width: 100%; justify-content: space-between; }
  /* Avec le porte-clés : une bande réservée au-dessus du titre pour la composition Y + porte-clés. */
  .hero.has-keychain .hero__inner { padding-top: calc(var(--header-h) + clamp(15rem, 70vw, 24rem)); }
}
@media (max-width: 379px), (max-width: 799px) and (max-height: 600px) {
  .hero__mark { width: 19vw; top: calc(var(--header-h) + .25rem); right: 4vw; }
  .hero__title { font-size: 12.6vw; }
}

/* ───────────── Le studio : une phrase, des images glissées dedans ───────────── */
.studio { position: relative; z-index: 2; overflow: hidden; display: grid; align-items: center; min-height: 100svh; padding: var(--space-2xl) 0; border-radius: 1.75rem 1.75rem 0 0; margin-top: -1.75rem; }
.studio .container { position: relative; z-index: 1; }
.statement {
  max-width: 24ch; margin: 0;
  font-family: var(--font-display); font-size: clamp(2.5rem, 1.2rem + 5.4vw, 7.25rem); line-height: 1.04; letter-spacing: -0.025em;
}
.statement em { color: var(--orange); }
.capsule {
  position: relative; display: inline-block; vertical-align: -0.08em;
  width: 2.1em; height: .82em; overflow: hidden;
  border-radius: 999px; background: var(--navy-soft);
  transform-origin: 50% 60%;
}
.capsule video { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center; }
.capsule--allumette video { object-position: 50% 28%; }
.capsule--cafe video { object-position: 50% 58%; }
.capsule--mark { width: 1.3em; display: inline-grid; place-items: center; background: var(--orange); color: var(--ivory); }
.capsule--mark .y-mark { width: auto; height: 70%; }
.capsule--wire { width: 1.8em; background: var(--paper); }
@media (max-width: 799px) { .studio { min-height: 0; padding: var(--space-xl) 0 calc(var(--space-xl) + 1.75rem); } }
.capsule__wire { position: absolute; inset: 18% 14%; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr 1.4fr; gap: .06em; }
.capsule__wire i { border-radius: .04em; background: rgba(20, 27, 52, .16); }
.capsule__wire i:nth-child(1) { grid-column: 1 / -1; background: rgba(20, 27, 52, .28); }
.capsule__wire i:nth-child(4) { grid-column: 1 / -1; background: rgba(255, 106, 31, .55); }

/* ───────────── Expertises ───────────── */
.expertises { position: relative; padding: var(--space-2xl) 0; }
.expertises__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); }
.expertises__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.expertises__title { font-size: var(--step-4); line-height: .95; }
.expertises__intro { max-width: 30ch; margin-top: 1.5rem; font-size: var(--step-1); color: var(--color-text-muted); }
.xp-list { border-top: 1px solid var(--color-line); }
.xp {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); align-items: baseline; gap: .5rem 1.5rem;
  padding: clamp(1rem, 2vh, 1.5rem) 0; border-bottom: 1px solid var(--color-line);
}
.xp::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.xp:hover::after { transform: scaleX(1); }
.xp__name { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.4rem); line-height: 1; transition: transform .7s var(--ease), opacity .4s, color .3s; }
.xp__text { margin: 0; font-size: var(--step--1); color: var(--color-text-muted); }
.xp:hover .xp__name { transform: translateX(.75rem); font-style: italic; color: var(--color-accent-text); }
@media (hover: hover) { .xp-list:hover .xp:not(:hover) .xp__name { opacity: .32; } }
.xp-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(16rem, 26vw, 26rem); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1rem;
  visibility: hidden; opacity: 0; box-shadow: 0 1.5rem 3rem -1rem rgba(13, 18, 37, .35);
}
.xp-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center; opacity: 0; transition: opacity .35s; }
.xp-preview img.is-active { opacity: 1; }
.xp__media { display: none; }
@media (max-width: 899px) {
  /* Mobile : pas de survol, donc chaque expertise devient une carte avec son visuel, qu'on fait glisser. */
  .expertises__grid { grid-template-columns: 1fr; gap: var(--space-l); }
  .expertises__head { position: static; }
  .xp-list {
    display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem; scroll-padding-inline: var(--gutter);
    border-top: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .xp-list::-webkit-scrollbar { display: none; }
  .xp { flex: 0 0 78vw; display: block; padding: 0; border: 0; scroll-snap-align: start; }
  .xp::after { display: none; }
  .xp__media { display: block; aspect-ratio: 4 / 3; margin: 0 0 1rem; overflow: hidden; border-radius: 1.25rem; background: #EDE6DA; }
  .xp__media img { width: 100%; height: 100%; }
  .xp__name { font-size: 1.85rem; }
  .xp__text { margin-top: .45rem; max-width: 30ch; }
  .xp:hover .xp__name { transform: none; font-style: normal; color: inherit; }
  .xp-preview { display: none; }
  .xp-dots { display: flex; gap: .35rem; margin-top: 1.25rem; }
  .xp-dots i { width: .4rem; height: .4rem; border-radius: 999px; background: var(--color-line-strong); transition: width .4s var(--ease), background-color .4s; }
  .xp-dots i.is-active { width: 1.4rem; background: var(--orange); }
}
@media (min-width: 900px) { .xp-dots { display: none; } }

/* ───────────── Méthode : des cartes qui s'empilent ───────────── */
.method { position: relative; padding: var(--space-2xl) 0; }
.method__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--space-m) var(--space-l); margin-bottom: var(--space-xl); }
.method__title { font-size: var(--step-4); line-height: .95; }
.method__intro { justify-self: end; max-width: 40ch; margin: 0; font-size: var(--step-1); color: var(--color-text-muted); }
.cards { display: grid; gap: 6vh; }
.card { position: sticky; top: calc(var(--header-h) + 1.5vh + var(--i) * 1.1rem); height: min(76svh, 44rem); }
.card__inner {
  --dim: 0;
  position: relative; height: 100%; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--space-l);
  padding: clamp(1.75rem, 4vw, 4rem); border-radius: 2rem;
  transform-origin: 50% 0; will-change: transform;
}
.card__inner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--navy-deep); opacity: var(--dim); pointer-events: none; }
.card--1 .card__inner { background: var(--navy); color: var(--ivory); }
.card--2 .card__inner { background: var(--orange); color: var(--navy); }
.card--3 .card__inner { background: var(--ivory); color: var(--navy); box-shadow: inset 0 0 0 1px rgba(20, 27, 52, .12); }
.card--4 .card__inner { background: var(--navy-deep); color: var(--ivory); }
.card__title { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6rem); line-height: .92; letter-spacing: -0.03em; }
.card__text { max-width: 30ch; margin: 1.25rem 0 0; font-size: var(--step-1); line-height: 1.5; opacity: .78; }
.card__visual { display: grid; place-items: center; height: 100%; }
.card__visual .mock { max-width: 36rem; }
.card--2 .mock__toggle { background: rgba(20, 27, 52, .14); color: var(--navy); }
.card--2 .is-active .mock__toggle span:first-child, .card--2.is-active .mock__toggle span:first-child { color: var(--navy); }
.card--2 .mock__toggle span:first-child { background: var(--navy); color: var(--ivory); }
.card--2.is-active .mock__toggle span:last-child { background: var(--navy); color: var(--ivory); }
.card--3 .mock__window, .card--3 .mock__panel { box-shadow: 0 1.5rem 3rem -1.4rem rgba(20, 27, 52, .45); }
@media (max-width: 899px) {
  .method__head { grid-template-columns: 1fr; }
  .method__intro { justify-self: start; }
  .card { height: auto; top: calc(var(--header-h) + var(--i) * .6rem); }
  .card__inner { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.75rem 1.25rem 2.5rem; border-radius: 1.5rem; }
  .card__title { font-size: clamp(2.4rem, 10vw, 3.4rem); }
}

/* Écrans d'illustration de la méthode (s'animent quand l'étape est active) */
.mock { position: relative; width: 100%; max-width: 34rem; font-family: var(--font-body); color: var(--navy); }
.mock__window { overflow: hidden; border-radius: .75rem; background: #fff; box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, .45); }
.mock__bar { display: flex; align-items: center; gap: .35rem; height: 1.9rem; padding: 0 .75rem; background: #F1ECE3; }
.mock__bar i { width: .45rem; height: .45rem; border-radius: 50%; background: rgba(20, 27, 52, .18); }
.mock__url { margin: 0 auto; padding-right: 2rem; font-size: .6875rem; color: rgba(20, 27, 52, .6); }
.mock__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.mock__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: top center; }
.mock__badge {
  position: absolute; left: .9rem; top: .9rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45em .8em; border-radius: 999px; background: var(--navy); color: var(--ivory); font-size: .75rem; font-weight: 500;
}
.mock__badge--live { background: #fff; color: var(--navy); box-shadow: 0 .4rem 1rem -.3rem rgba(13, 18, 37, .35); }
.mock__pulse { width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); animation: pulse 2s var(--ease) infinite; }
.mock__badge--live .mock__pulse { background: #1F9D6B; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 31, .55); } 60% { box-shadow: 0 0 0 .55rem rgba(255, 106, 31, 0); } }
.mock__panel {
  position: absolute; right: -1rem; bottom: -1.5rem; width: 46%; padding: 1rem 1.1rem;
  border-radius: .75rem; background: var(--ivory); box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, .45);
}
.mock__panel-title { margin: 0 0 .7rem; font-size: .75rem; font-weight: 600; }

/* 1. Cadrer : un périmètre qui se coche */
.mock__doc { width: min(100%, 25rem); margin: 0 auto; padding: 1.6rem 1.7rem; border-radius: .9rem; background: var(--ivory); box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, .5); }
.mock__doc-title { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.mock__checks { display: grid; gap: .55rem; }
.mock__checks li { display: flex; align-items: center; gap: .65rem; font-size: .875rem; }
.mock__checks li::before {
  content: ""; flex: none; width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid rgba(20, 27, 52, .3);
  background: center / .6rem no-repeat;
  transition: background-color .4s, border-color .4s; transition-delay: calc(var(--d) * .35s + .3s);
}
.is-active .mock__checks li::before {
  background-color: var(--orange); border-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23141B34' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.mock__later-title { margin: 1.1rem 0 .4rem; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(20, 27, 52, .55); }
.mock__later { display: flex; flex-wrap: wrap; gap: .4rem; }
.mock__later li { padding: .3em .7em; border: 1px dashed rgba(20, 27, 52, .3); border-radius: 999px; font-size: .75rem; color: rgba(20, 27, 52, .65); }
.mock__total {
  display: flex; justify-content: space-between; align-items: center; margin: 1.2rem 0 0; padding: .7rem .9rem;
  border-radius: .6rem; background: var(--navy); color: var(--ivory); font-size: .8125rem;
  opacity: 0; transform: translateY(.5rem); transition: opacity .6s 1.9s, transform .8s var(--ease) 1.9s;
}
.mock__total strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; }
.is-active .mock__total { opacity: 1; transform: none; }

/* 2. Dessiner : la maquette devient le design */
.mock__wire {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto auto 1fr;
  gap: .55rem; align-content: start; padding: 1rem; background: #F6F3EE;
  clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-io) 1s;
}
.is-active .mock__wire { clip-path: inset(0 0 0 100%); }
.w { display: block; border-radius: .2rem; background: rgba(20, 27, 52, .12); }
.w--nav { grid-column: 1 / -1; height: .7rem; }
.w--title { grid-column: 1 / 3; height: 1.4rem; margin-top: .6rem; }
.w--line { grid-column: 1 / 3; height: .45rem; }
.w--short { grid-column: 1 / 2; }
.w--btn { grid-column: 1 / 2; height: 1.1rem; width: 60%; border-radius: 999px; background: rgba(255, 106, 31, .45); }
.w--img { grid-column: 3; grid-row: 2 / 6; min-height: 5rem; background: rgba(20, 27, 52, .08); border: 1.5px dashed rgba(20, 27, 52, .25); }
.w--card { height: 2.6rem; margin-top: .3rem; background: rgba(20, 27, 52, .07); border: 1.5px dashed rgba(20, 27, 52, .2); }
.mock__toggle { display: flex; justify-content: center; gap: .3rem; margin: 1rem auto 0; padding: .25rem; width: fit-content; border-radius: 999px; background: rgba(251, 247, 240, .1); font-size: .75rem; color: var(--ivory); }
.mock__toggle span { padding: .4em .9em; border-radius: 999px; transition: background-color .4s 1.6s, color .4s 1.6s; }
.mock__toggle span:first-child { background: var(--ivory); color: var(--navy); }
.is-active .mock__toggle span:first-child { background: transparent; color: var(--ivory); }
.is-active .mock__toggle span:last-child { background: var(--orange); color: var(--navy); }

/* 3. Construire : la préproduction se remplit */
.mock__tasks { display: grid; gap: .5rem; }
.mock__tasks li { display: grid; gap: .25rem; font-size: .75rem; }
.mock__tasks i { position: relative; display: block; height: .3rem; border-radius: 999px; background: rgba(20, 27, 52, .1); overflow: hidden; }
.mock__tasks i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--orange);
  transform: scaleX(.08); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--d) * .3s + .4s);
}
.is-active .mock__tasks i::after { transform: scaleX(1); }
.is-active .mock__tasks li:last-child i::after { transform: scaleX(.7); }

/* 4. Lancer : en ligne, et les demandes arrivent */
.mock__chart { width: 100%; height: auto; overflow: visible; }
.mock__chart path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .6s; }
.is-active .mock__chart path { stroke-dashoffset: 0; }
.mock__keys { position: absolute; left: -1rem; bottom: -1.2rem; margin: 0; padding: .55em .95em; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: .75rem; font-weight: 500; box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, .5); }
@media (max-width: 599px) {
  .mock__panel { position: relative; right: auto; bottom: auto; width: 80%; margin: -1.5rem 0 0 auto; }
  .mock__keys { position: relative; left: auto; bottom: auto; display: inline-block; margin-top: .9rem; }
}

/* ───────────── Réalisations ───────────── */
.works { position: relative; }
.works__pin { padding: calc(var(--header-h) + 1rem) 0 1.5rem; display: flex; flex-direction: column; gap: clamp(1.25rem, 3.5vh, 2.5rem); }
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-l); }
.works__title { font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.75rem); max-width: 22ch; line-height: .98; }
.works__intro { max-width: 30ch; margin: 0; color: var(--color-text-muted); text-align: right; }
.works__viewport { position: relative; }
.works__track { display: flex; align-items: flex-start; gap: clamp(1.5rem, 4.5vw, 5.5rem); width: max-content; padding: 0 var(--gutter); }
.work { flex: none; width: clamp(18rem, min(44vw, (100svh - 28rem) * 1.6), 52rem); }
.work:nth-child(even) { margin-top: clamp(1rem, 4.5vh, 3.5rem); }
.work--phone { width: clamp(9rem, calc((100svh - 27rem) * .5), 15rem); }
.work__link { position: relative; display: block; color: inherit; text-decoration: none; }
.work__frame { overflow: hidden; border: 1px solid var(--paper); border-radius: .75rem; background: var(--paper); transition: border-color .5s, transform .8s var(--ease); }
.work__link:hover .work__frame { border-color: rgba(255, 106, 31, .7); transform: translateY(-.35rem); }
.work__bar { display: flex; align-items: center; gap: .4rem; height: 1.9rem; padding: 0 .8rem; background: var(--paper); font-size: .6875rem; color: rgba(20, 27, 52, .6); }
.work__bar i { width: .45rem; height: .45rem; border-radius: 50%; background: rgba(20, 27, 52, .2); }
.work__bar span { margin: 0 auto; padding-right: 2rem; letter-spacing: .02em; }
.work__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }
.work__media video, .work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: top center; }
.work--phone .work__frame { padding: .45rem; border-radius: 1.6rem; background: var(--paper); }
.work--phone .work__media { aspect-ratio: 880 / 1564; border-radius: 1.2rem; }
.work__meta { display: flex; align-items: baseline; gap: .9rem; margin-top: 1rem; }
.work__name { display: inline-flex; align-items: baseline; gap: .4rem; font-size: var(--step-2); line-height: 1; }
.work__name .arrow { width: .5em; height: .5em; rotate: -45deg; color: var(--orange); opacity: 0; translate: -.3em .2em; transition: opacity .4s, translate .6s var(--ease); }
.work__link:hover .work__name, .work__link:focus-visible .work__name { font-style: italic; }
.work__link:hover .work__name .arrow, .work__link:focus-visible .work__name .arrow { opacity: 1; translate: 0 0; }
.work__kind { margin-left: auto; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); white-space: nowrap; }
.work--phone .work__meta { flex-wrap: wrap; }
.work--phone .work__kind { margin-left: 0; width: 100%; }
.work__text { max-width: 46ch; margin: .45rem 0 0; font-size: var(--step--1); line-height: 1.5; color: var(--color-text-muted); }
.works__end { flex: none; align-self: center; width: clamp(16rem, 30vw, 30rem); display: grid; gap: 2rem; justify-items: start; padding-right: var(--gutter); }
.works__end-title { margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.works__end-title em { color: var(--orange); }
.works__foot { display: flex; align-items: center; }
.works__progress { position: relative; flex: 1; height: 1px; background: var(--color-line); }
.works__progress span { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }
@media (min-width: 900px) {
  .motion .works__pin { height: 100svh; justify-content: center; overflow: hidden; }
  html:not(.motion) .works__viewport { overflow-x: auto; }
}
@media (max-width: 899px) {
  .works__pin { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
  .works__head { flex-direction: column; align-items: flex-start; }
  .works__intro { text-align: left; }
  .works__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .works__viewport::-webkit-scrollbar { display: none; }
  .work { width: 82vw; scroll-snap-align: center; }
  .work:nth-child(even) { margin-top: 0; }
  .work--phone { width: 52vw; }
  .works__end { width: 75vw; scroll-snap-align: center; }
}

/* ───────────── Outils : vrais logos ───────────── */
.tools { position: relative; overflow: hidden; padding: var(--space-2xl) 0; }
.tools__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--space-m) var(--space-l); margin-bottom: var(--space-xl); }
.tools__title { font-size: var(--step-4); line-height: .95; }
.tools__intro { justify-self: end; max-width: 34ch; margin: 0; font-size: var(--step-1); color: var(--color-text-muted); }
.logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1.1rem); }
.logo-tile { position: relative; aspect-ratio: 1; }
.logo-tile__inner {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .7rem;
  border-radius: clamp(1rem, 1.6vw, 1.5rem); background: #fff;
  box-shadow: 0 .9rem 1.8rem -1.1rem rgba(20, 27, 52, .55);
  transition: box-shadow .5s var(--ease);
  will-change: transform;
}
.logo-tile img { width: 48%; height: auto; max-height: 48%; object-fit: contain; }
.logo-tile--wide img { width: 78%; }
.logo-tile__name { font-size: clamp(.625rem, .55rem + .25vw, .8125rem); font-weight: 500; color: rgba(20, 27, 52, .7); text-align: center; line-height: 1.1; padding: 0 .4rem; }
.logo-tile:hover .logo-tile__inner { box-shadow: 0 1.6rem 2.6rem -1.2rem rgba(20, 27, 52, .7); }
.tools__note { margin-top: var(--space-l); font-size: var(--step-0); color: var(--color-text-muted); }
@media (max-width: 999px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .tools__head { grid-template-columns: 1fr; }
  .tools__intro { justify-self: start; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logo-tile__name { display: none; }
  .logo-tile img { width: 52%; max-height: 52%; }
  .logo-tile--wide img { width: 80%; }
}

/* ───────────── Tarifs : trois cartes ───────────── */
.pricing { padding: var(--space-2xl) 0; }
.pricing__title { font-size: var(--step-4); line-height: .95; text-align: center; margin-bottom: var(--space-xl); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); align-items: stretch; }
.offer {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--color-line-strong); border-radius: 1.75rem; background: #fff;
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.offer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle 20rem at var(--mx) var(--my), rgba(255, 106, 31, .12), transparent 70%);
}
.offer:hover { transform: translateY(-.5rem); box-shadow: 0 2.5rem 4rem -2rem rgba(20, 27, 52, .35); }
.offer:hover::before { opacity: 1; }
.offer--featured {
  background: var(--navy); color: var(--ivory); border-color: var(--navy);
  --color-text: var(--ivory); --color-text-muted: rgba(251, 247, 240, .66); --color-line: rgba(251, 247, 240, .16); --color-line-strong: rgba(251, 247, 240, .38);
}
.offer--featured::before { background: radial-gradient(circle 20rem at var(--mx) var(--my), rgba(255, 106, 31, .25), transparent 70%); }
.offer__badge { position: absolute; top: 1.4rem; right: 1.4rem; margin: 0; padding: .45em .85em; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: .75rem; font-weight: 500; }
.offer__name { font-size: var(--step-2); padding-right: 6rem; }
.offer__tagline { margin: .6rem 0 0; color: var(--color-text-muted); font-size: var(--step--1); }
.offer__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin: 1.75rem 0; padding-bottom: 1.75rem; border-bottom: 1px solid var(--color-line); }
.offer__from { width: 100%; font-size: var(--step--1); color: var(--color-text-muted); }
.offer__amount { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 4.75rem); line-height: .9; letter-spacing: -0.02em; }
.offer__tax { color: var(--color-text-muted); }
.offer__items { flex: 1; display: grid; align-content: start; gap: .8rem; }
.offer__items li { position: relative; padding-left: 1.75rem; font-size: var(--step--1); }
.offer__items li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: rgba(255, 106, 31, .16) center / .65rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23C24A0C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.offer--featured .offer__items li::before { background-color: rgba(255, 106, 31, .22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23FF6A1F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.offer__cta { width: 100%; margin-top: 2.25rem; }   /* de l'air entre la liste et le bouton */
.offer--featured .pill--accent { --pill-fill: var(--ivory); --pill-fill-text: var(--navy); }
.offer__deposit { margin: .9rem 0 0; text-align: center; font-size: var(--step--2); color: var(--color-text-muted); }
@media (max-width: 999px) {
  .offers { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}
@media (max-width: 599px) {
  .offer__badge { position: static; align-self: flex-start; margin-bottom: 1rem; }
  .offer__name { padding-right: 0; }
}

/* ───────────── Questions ───────────── */
.faq { padding: var(--space-2xl) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); }
.faq__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.faq__title { font-size: var(--step-4); line-height: .95; }
.qa { border-top: 1px solid var(--color-line); }
.qa:last-child { border-bottom: 1px solid var(--color-line); }
.qa__q {
  display: grid; grid-template-columns: minmax(0, 1fr) 1.25rem; align-items: baseline; gap: 1rem;
  padding: 1.5rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__text { transition: transform .6s var(--ease); }
.qa__q:hover .qa__text { transform: translateX(.4rem); }
.qa__icon { position: relative; align-self: center; width: 1rem; height: 1rem; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .6s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { max-width: 60ch; margin: 0; padding: 0 2.5rem 1.75rem 0; color: var(--color-text-muted); }
@media (max-width: 899px) {
  .faq__grid { grid-template-columns: 1fr; gap: var(--space-l); }
  .faq__head { position: static; }
  .qa__a p { padding-right: 0; }
}

/* ───────────── Contact ───────────── */
.contact { position: relative; overflow: hidden; padding: var(--space-2xl) 0; }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.contact__title { font-size: var(--step-5); line-height: .88; letter-spacing: -0.035em; }
.contact__title em { color: var(--orange); }
.contact__intro { max-width: 34ch; margin-top: var(--space-m); font-size: var(--step-1); color: var(--color-text-muted); }
.contact__direct { margin: var(--space-l) 0 .5rem; font-size: var(--step--1); color: var(--color-text-muted); }
.contact__mail { font-family: var(--font-display); font-size: var(--step-2); text-decoration: none; border-bottom: 1px solid var(--color-line-strong); }
.contact__phone { margin-left: 1.5rem; }
@media (max-width: 599px) { .contact__phone { display: block; width: fit-content; margin-left: 0; margin-top: .9rem; } }
@media (max-width: 999px) { .contact__grid { grid-template-columns: 1fr; } }

/* Formulaire */
.form { display: grid; gap: 1.6rem; padding: clamp(1.5rem, 3.2vw, 3rem); background: var(--navy-deep); border: 1px solid var(--color-line); border-radius: 1.5rem; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form__legend { margin-bottom: .9rem; padding: 0; font-size: var(--step--1); color: var(--color-text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .6em 1.05em; border: 1px solid var(--color-line); border-radius: 999px; font-size: var(--step--1); transition: background .3s, color .3s, border-color .3s; }
.chip:hover span { border-color: var(--color-line-strong); }
.chip input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.form__offer { margin: -.5rem 0 0; font-size: var(--step--1); color: var(--color-text-muted); }
.form__offer strong { color: var(--orange); font-weight: 500; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { position: relative; }
.field input, .field textarea {
  display: block; width: 100%; padding: 1.55rem 0 .55rem; border: 0; border-bottom: 1px solid var(--color-line-strong); border-radius: 0;
  background: transparent; color: var(--color-text); font-size: var(--step-1); outline: none; resize: vertical;
}
.field textarea { min-height: 7.5rem; }
.field label {
  position: absolute; left: 0; top: 1.5rem; pointer-events: none; transform-origin: left top;
  font-size: var(--step-1); color: var(--color-text-muted); transition: transform .5s var(--ease), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.3rem) scale(.68); color: var(--orange); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #FF9A6B; }
.field__hint { margin: -1rem 0 0; font-size: var(--step--2); color: var(--color-text-muted); }
.consent { position: relative; display: flex; align-items: flex-start; gap: .8rem; font-size: var(--step--1); color: var(--color-text-muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1.1rem; height: 1.1rem; margin: 0; }
.consent__box { position: relative; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .2em; border: 1px solid var(--color-line-strong); border-radius: .25rem; transition: background .3s, border-color .3s; }
.consent input:checked + .consent__box { background: var(--orange); border-color: var(--orange); }
.consent input:checked + .consent__box::after { content: ""; position: absolute; left: .32rem; top: .1rem; width: .3rem; height: .6rem; border: solid var(--navy); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--orange); outline-offset: 3px; }
.consent.is-invalid .consent__box { border-color: #FF9A6B; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { margin: 0; font-size: var(--step--1); color: var(--color-text-muted); }
.form[data-sent] .form__status { color: var(--ivory); }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }

/* ───────────── Pied de page ───────────── */
.site-footer { position: relative; overflow: hidden; background: var(--navy-deep); }
.site-footer__inner { padding: var(--space-xl) var(--gutter) 1.5rem; }
.site-footer__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-bottom: var(--space-l); border-bottom: 1px solid var(--color-line); }
.site-footer__tagline { max-width: 18ch; margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.site-footer__top-link { display: inline-flex; align-items: center; gap: .5rem; flex: none; font-size: var(--step--1); text-decoration: none; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l); padding: var(--space-l) 0; }
.site-footer__title { margin-bottom: 1rem; font-size: var(--step--1); color: var(--color-text-muted); }
.site-footer__list { display: grid; gap: .45rem; font-size: var(--step--1); }
.site-footer__list a { text-decoration: none; }
.site-footer__mark { padding-top: var(--space-s); overflow: hidden; }
.site-footer__mark-inner { will-change: transform; transform: translateZ(0); }
.site-footer__mark .wordmark { color: var(--ivory); overflow: hidden; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; font-size: var(--step--2); color: var(--color-text-muted); }
@media (max-width: 699px) {
  .site-footer__top { flex-direction: column; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ───────────── Pages légales ───────────── */
.legal { padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-2xl); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl); }
.legal__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.legal__title { font-size: var(--step-4); line-height: .95; }
.legal__intro { max-width: 32ch; margin-top: 1.25rem; color: var(--color-text-muted); }
.legal__section { padding: 2rem 0; border-top: 1px solid var(--color-line); }
.legal__section h2 { margin-bottom: 1rem; font-size: var(--step-2); }
.legal__section p { max-width: 64ch; color: var(--color-text-muted); }
.legal__section em { color: var(--color-accent-text); }
@media (max-width: 899px) {
  .legal__grid { grid-template-columns: 1fr; gap: var(--space-l); }
  .legal__head { position: static; }
}

/* ───────────── CTA mobile ───────────── */
.sticky-cta { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60; translate: -50% 160%; transition: translate .7s var(--ease); }
.sticky-cta.is-visible { translate: -50% 0; }
.sticky-cta__link {
  display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.5rem; border-radius: 999px;
  background: var(--navy); color: var(--ivory); font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: 0 .75rem 2rem -.75rem rgba(13, 18, 37, .55);
}
.sticky-cta__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); }

/* ───────────── Curseur ───────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .motion .cursor {
    position: fixed; left: 0; top: 0; z-index: 110; pointer-events: none;
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
    opacity: 0; transition: opacity .3s;
  }
  .motion .cursor::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange);
    scale: .2; transition: scale .5s var(--ease), background-color .3s, border-color .3s;
  }
  .has-cursor .cursor { opacity: 1; }
  .cursor.on-accent::before { background: var(--navy); }
  .cursor.is-hover::before { scale: 1; background: rgba(255, 106, 31, .16); border: 1px solid var(--orange); }
  .cursor.on-accent.is-hover::before { background: rgba(20, 27, 52, .12); border-color: var(--navy); }
  .cursor.has-label::before { scale: 2.2; background: var(--orange); border: 0; }
  .cursor.is-down::before { scale: .14; }
  .cursor.has-label.is-down::before { scale: 1.9; }
  .cursor.is-hidden { opacity: 0 !important; }
  .cursor__label { position: relative; font-size: .8125rem; font-weight: 500; color: var(--navy); opacity: 0; transition: opacity .3s; white-space: nowrap; }
  .cursor.has-label .cursor__label { opacity: 1; transition-delay: .1s; }
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label { cursor: none; }
  .has-cursor input, .has-cursor textarea { cursor: text; }
}

/* ───────────── Grain ───────────── */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────────── États initiaux des animations (mouvement accepté uniquement) ───────────── */
.motion [data-split], .motion .hero__title { visibility: hidden; }
.motion [data-reveal] { opacity: 0; }
/* Masques des titres révélés : de la marge pour les jambages et l'italique (le « j » et le point de « projet. »). */
[data-split] > div { padding: 0 .14em .16em 0; margin: 0 -.14em -.16em 0; }
