/* ==========================================================================
   Polices auto-hébergées. Familjen Grotesk est variable : un seul fichier
   couvre les graisses 400 à 700 par plage Unicode. 34 Ko au total.
   ========================================================================== */
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/familjen-grotesk-latin.woff2?v=5c2a8221') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/familjen-grotesk-latin-ext.woff2?v=0570caf1') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Repli calibré sur les métriques réelles de Familjen Grotesk, mesurées dans
   le navigateur : même largeur d'avance et mêmes hauteurs, donc aucun saut de
   mise en page pendant le chargement (font-display: swap). */
@font-face {
  font-family: 'Familjen Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 93.17%;
  ascent-override: 109.5%;
  descent-override: 24.7%;
  line-gap-override: 0%;
}

/* ==========================================================================
   Claudie v3 — feuille de style unique
   Tokens, layout, composants. Aucun arrondi, aucune ombre hors survol image.
   ========================================================================== */

:root {
  --ink: #16181A;
  --paper: #FBFBFA;
  --ph-light: #ECECEA;
  --ph-mid: #E2E2DF;
  --line: rgba(22, 24, 26, 0.16);
  --line-strong: rgba(22, 24, 26, 0.30);
  /* Accent clair : le texte posé dessus est encre (6,5:1). L'accent lui-même
     ne peut pas servir de couleur de texte sur papier (2,6:1), --accent-text
     est sa déclinaison foncée, lisible en corps de texte (4,6:1). */
  --accent: #15B097;
  --on-accent: #16181A;
  --on-accent-line: rgba(22, 24, 26, 0.35);
  --accent-text: #108270;

  --pad: 20px;
  --gap: 12px;
  --nav-h: 60px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --d-micro: 200ms;
  --d-hover: 450ms;
  --d-entrance: 800ms;

  --font: "Familjen Grotesk", "Familjen Fallback", Helvetica, Arial, sans-serif;
}

@media (min-width: 1000px) {
  :root { --pad: 48px; --gap: 20px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  /* clip, jamais hidden : hidden ferait du body un conteneur de défilement
     et casserait le position:sticky de la navigation. */
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* --- Focus ------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.on-ink :focus-visible { outline-color: var(--paper); }
.on-accent :focus-visible { outline-color: var(--on-accent); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* --- Typographie -------------------------------------------------------- */
.t-display {
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.04em;
}
.t-h1 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.04em;
}
.t-h2 {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
}
.t-row {
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
}
.t-price-lg {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700; line-height: 1; letter-spacing: -0.04em;
}
.t-price-row {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
}
.t-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 46ch;
}
.t-small { font-size: 15px; line-height: 1.4; }
.t-caption { font-size: 14px; line-height: 1.4; opacity: 0.75; }
.t-body { max-width: 48ch; }

/* --- Grilles de page (mobile first, le desktop ouvre) ------------------- */
.hero-grid, .detail-grid, .cols-2, .cols-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 720px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pad { padding-left: 20px; padding-right: 20px; }
@media (min-width: 1000px) { .pad { padding-left: 48px; padding-right: 48px; } }

/* Rythme vertical : chaque section a sa propre respiration. */
.s-hero    { padding-top: 48px; padding-bottom: 40px; }
.s-strip   { padding: 8px 0 40px; overflow: hidden; }
.s-select  { padding-top: 56px; padding-bottom: 16px; }
.s-accent  { margin-top: 56px; padding-top: 48px; padding-bottom: 48px; background: var(--accent); color: var(--on-accent); }
.s-big     { padding-top: 72px; padding-bottom: 80px; text-align: center; }
.s-head    { padding-top: 48px; padding-bottom: 32px; }
.s-tail    { padding-top: 48px; padding-bottom: 48px; }
.s-detail  { padding-top: 28px; padding-bottom: 56px; }
.s-related { padding-top: 40px; padding-bottom: 56px; }
.s-ink     { background: var(--ink); color: var(--paper); padding-top: 72px; padding-bottom: 80px; }
.s-contact { padding-top: 48px; padding-bottom: 72px; }
.s-gallery { padding-top: 40px; padding-bottom: 64px; }
.s-bento   { padding-top: 0; padding-bottom: 64px; }
.s-legal   { padding-top: 48px; padding-bottom: 64px; }

/* --- Typographie -------------------------------------------------------- */
.t-display { font-size: clamp(40px, 7vw, 92px); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; }
.t-h1      { font-size: clamp(40px, 6vw, 88px); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; }
.t-h2      { font-size: clamp(30px, 4vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.t-row     { font-size: clamp(28px, 3.2vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.t-door    { font-size: clamp(26px, 3.6vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.t-price-lg{ font-size: clamp(40px, 5vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.t-price   { font-size: clamp(24px, 3vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.t-lead    { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.t-small   { font-size: 15px; line-height: 1.4; }
.t-caption { font-size: 14px; line-height: 1.4; opacity: 0.75; }
.t-sub     { font-size: 17px; opacity: 0.85; }

.w-34 { max-width: 34ch; } .w-38 { max-width: 38ch; } .w-40 { max-width: 40ch; }
.w-44 { max-width: 44ch; } .w-46 { max-width: 46ch; } .w-48 { max-width: 48ch; }
.w-16 { max-width: 16ch; } .w-24 { max-width: 24ch; } .w-14 { max-width: 14ch; }

/* --- Navigation --------------------------------------------------------- */
/* C'est le header qui colle : un sticky ne peut pas dépasser son bloc
   conteneur, et le header ne fait que la hauteur de la nav. */
.site-header { position: sticky; top: 0; z-index: 50; }

.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 14px; padding-bottom: 14px;
  min-height: 60px;
  background: var(--paper);
}
.nav__logo {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  text-decoration: none;
}
.nav__links { display: none; align-items: center; gap: 28px; }
@media (min-width: 720px) { .nav__links { display: flex; } }
/* La maquette met 10px de padding, ce qui donne 41px : on porte la cible
   à 44px sans déplacer le soulignement de plus de 3px. */
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 16px; font-weight: 500; text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}
.nav__link:hover { border-bottom-color: var(--ink); }
.nav__link[aria-current="page"] { border-bottom-color: var(--ink); }
.nav__cta {
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; font-size: 16px; font-weight: 600;
  text-decoration: none;
  transition: background var(--d-micro) var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px;
  background: none; border: 0;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
@media (min-width: 720px) { .nav__toggle { display: none; } }
.nav__bars {
  display: inline-block; width: 22px; height: 2px;
  background: var(--ink); box-shadow: 0 6px 0 var(--ink);
}
[aria-expanded="true"] .nav__bars { box-shadow: 0 0 0 var(--ink); }

.menu {
  position: fixed; inset: 60px 0 0 0; z-index: 49;
  background: var(--accent); color: var(--on-accent);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px 20px;
  overflow-y: auto;
  animation: pageIn 350ms var(--ease) both;
}
.menu[hidden] { display: none; }
.menu__list { display: flex; flex-direction: column; gap: 4px; }
.menu__link {
  font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  padding: 12px 0;
  border-bottom: 1px solid var(--on-accent-line);
  text-decoration: none;
}
.menu__cta {
  background: var(--on-accent); color: var(--accent);
  padding: 18px 24px; font-size: 18px; font-weight: 600;
  text-align: center; text-decoration: none;
  margin-top: 24px;
}

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px;
  padding: 16px 24px;
  font-size: 17px; font-weight: 600;
  text-align: center; text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); color: var(--on-accent); }
.btn--accent { background: var(--accent); color: var(--on-accent); padding: 18px 24px; }
.btn--accent:hover { background: var(--ink); color: var(--paper); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.on-ink .btn--secondary { color: var(--paper); border-color: var(--paper); }
.on-ink .btn--secondary:hover { background: var(--paper); color: var(--ink); }
.on-accent .btn--secondary { color: var(--on-accent); border-color: var(--on-accent); }
.on-accent .btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn--grow { flex: 1 1 auto; }
.btn__arrow { transition: transform 250ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Lien souligné : la troisième marche de la hiérarchie. */
/* Fonctionne aussi bien sur <a> que sur <button> : sans ces réinitialisations,
   un bouton garde le fond gris et la bordure du navigateur. */
.link-underline {
  display: inline-block;
  min-height: 44px; padding: 10px 0;
  background: none;
  border: 0; border-bottom: 1px solid var(--ink);
  font: inherit; color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.on-ink .link-underline { border-bottom-color: var(--paper); }
.link-underline:hover { opacity: 0.75; }

/* Commande discrète (pause) : ni CTA, ni bouton plein. */
.control {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0;
  background: none; border: 0;
  font-size: 15px; opacity: 0.75;
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
}
.control:hover { opacity: 1; }

/* --- Hero --------------------------------------------------------------- */
.hero__word { display: inline-block; color: var(--accent-text); animation: wordIn 500ms var(--ease) both; }

.hero__visual { position: relative; height: clamp(300px, 60vw, 520px); }
.hero__img {
  position: absolute;
  overflow: hidden;
  transition: transform var(--d-hover) var(--ease), box-shadow var(--d-hover) var(--ease);
}
.hero__img:hover {
  transform: rotate(0deg) scale(1.06) !important;
  box-shadow: 0 24px 60px rgba(22, 24, 26, 0.18);
  z-index: 5;
}
.hero__img--1 { left: 0;     top: 6%;    width: 62%; aspect-ratio: 4 / 3;  background: var(--ph-light); animation: tilt1 1s var(--ease) 100ms both; }
.hero__img--2 { right: 4%;   top: 0;     width: 30%; aspect-ratio: 9 / 16; background: var(--ph-mid);   animation: tilt2 1s var(--ease) 300ms both; }
.hero__img--3 { left: 34%;   bottom: 0;  width: 46%; aspect-ratio: 1 / 1;  background: var(--accent);   animation: tilt3 1s var(--ease) 500ms both; }

@keyframes wordIn { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
@keyframes tilt1 { from { opacity: 0; transform: translate(40px, 60px) rotate(8deg); }  to { opacity: 1; transform: rotate(-4deg); } }
@keyframes tilt2 { from { opacity: 0; transform: translate(0, 80px) rotate(-6deg); }    to { opacity: 1; transform: rotate(3deg); } }
@keyframes tilt3 { from { opacity: 0; transform: translate(-40px, 60px) rotate(6deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* --- Bande défilante ---------------------------------------------------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee[data-paused="true"] .marquee__track { animation-play-state: paused; }
.marquee__item { width: clamp(180px, 22vw, 300px); flex: none; background: var(--ph-light); }
.marquee__item:nth-child(even) { background: var(--ph-mid); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Trois portes ------------------------------------------------------- */
.doors { border-top: 1px solid var(--line); }
.door {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 28px; padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}
.door:hover { background: var(--accent); color: var(--on-accent); }
.door__thumb {
  width: clamp(72px, 10vw, 140px); aspect-ratio: 1 / 1;
  background: var(--ph-light); flex: none;
  transition: transform 400ms var(--ease);
}
.door:hover .door__thumb { transform: rotate(-4deg) scale(1.05); }
.door__body { flex: 1; min-width: 0; }
.door__price { font-weight: 600; font-size: 20px; margin-top: 12px; }
.door__arrow { font-size: 32px; line-height: 1; flex: none; transition: transform 250ms var(--ease); }
.door:hover .door__arrow { transform: translateX(6px); }

/* --- Lignes services ---------------------------------------------------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: flex; align-items: flex-start; gap: 20px;
  padding-top: 28px; padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}
.row:hover { background: var(--accent); color: var(--on-accent); }
.row__thumb { display: none; width: 120px; aspect-ratio: 4 / 3; background: var(--ph-light); flex: none; }
@media (min-width: 720px) { .row__thumb { display: block; } }
.row__body { flex: 1; min-width: 0; }
.row__price { text-align: right; flex: none; }
.row__note { font-size: 14px; margin-top: 6px; opacity: 0.75; }

/* --- Sélection accueil -------------------------------------------------- */
.select-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 24px;
}
.select-grid { gap: 24px 20px; }
.work-card { text-decoration: none; display: block; }
.work-card__visual { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ph-light); }
.work-card__inner { display: block; width: 100%; height: 100%; transition: transform 600ms var(--ease); }
.work-card:hover .work-card__inner { transform: scale(1.04); }
.work-card__meta {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 10px; font-size: 16px;
}
.work-card__client { font-weight: 600; }
.work-card__type { opacity: 0.7; }

/* --- Engagements -------------------------------------------------------- */
.promises { gap: 32px 48px; }
.promise { border-top: 1px solid var(--on-accent-line); padding-top: 16px; }
.promise__title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.promise__body { margin-top: 10px; opacity: 0.9; }

/* --- Grandes lettres ---------------------------------------------------- */
.bigtext {
  font-size: clamp(40px, 9vw, 150px); font-weight: 700;
  line-height: 0.95; letter-spacing: -0.12em; word-spacing: 0.12em;
}
.bigtext__word { display: inline-block; white-space: nowrap; margin-right: 0.22em; }
.bigtext__letter {
  display: inline-block; margin: 0 -0.02em;
  animation: colorCycle 3.2s linear infinite;
  transition: transform 350ms var(--ease);
}
.bigtext__letter:hover { transform: translateY(-0.18em) rotate(-8deg) scale(1.15); transition-duration: 150ms; }
@keyframes colorCycle {
  /* Teintes de la maquette, foncées jusqu'à 3:1 minimum sur papier :
     les versions claires descendaient à 1,4:1 et rendaient le titre illisible. */
  0%, 100% { color: var(--accent-text); } 16% { color: #1F6B45; } 33% { color: #2AA152; }
  50% { color: #3E99A1; }      66% { color: #0096CA; } 83% { color: #0D8EFC; }
}
/* Sur fond encre les teintes claires passent le contraste : le cycle
   d'origine de la maquette est conservé. */
.s-ink .bigtext__letter { animation-name: colorCycleDark; }
@keyframes colorCycleDark {
  0%, 100% { color: #15B097; } 16% { color: #A7E8BD; } 33% { color: #B3DEE2; }
  50% { color: #00A7E1; }      66% { color: #1E96FC; } 83% { color: #FBFBFA; }
}
.bigtext-cta { margin-top: 28px; font-size: 18px; font-weight: 500; }

/* --- Page service ------------------------------------------------------- */
.crumb { padding-top: 20px; font-size: 16px; }
.svc__price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.svc__price { color: var(--accent-text); }
.svc__items { margin-top: 32px; border-top: 1px solid var(--line); }
.svc__item {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  animation: slideRight 500ms var(--ease) both;
}
.svc__included { color: var(--accent-text); font-weight: 600; }
.svc__facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 24px; }
.svc__facts dt { font-size: 15px; opacity: 0.65; }
.svc__facts dd { margin: 0; font-weight: 600; }

.svc__visual { position: relative; min-height: clamp(320px, 50vw, 620px); }
.svc__img--1 {
  position: absolute; left: 0; top: 0; width: 78%; aspect-ratio: 4 / 3;
  background: var(--ph-light); overflow: hidden;
  animation: tilt1 900ms var(--ease) 150ms both;
}
.svc__img--2 {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1 / 1;
  background: var(--ph-mid); overflow: hidden;
  animation: tilt2 900ms var(--ease) 400ms both;
}
.svc__badge {
  position: absolute; left: 4%; bottom: 6%;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.03em;
  padding: 12px 18px;
  transform: rotate(-4deg);
  animation: pop 600ms var(--ease) 900ms both;
}
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link {
  border: 1px solid var(--ink);
  padding: 12px 18px; font-size: 16px; font-weight: 500;
  text-decoration: none;
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}
.chip-link:hover { background: var(--ink); color: var(--paper); }

/* --- Réalisations ------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter {
  min-height: 44px; padding: 10px 16px;
  font-size: 16px; font-weight: 500;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(160px, auto);
  grid-auto-flow: dense;
  gap: 12px;
}
.bento__cell--wide { grid-column: span 2; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; }
  .bento__cell--tall { grid-row: span 2; }
  .bento__cell--big { grid-column: span 2; grid-row: span 2; }
}
.bento__btn {
  position: relative; overflow: hidden;
  width: 100%; height: 100%; min-height: 160px;
  background: var(--ph-light);
  border: 0; padding: 0;
  display: block; text-align: left;
  cursor: pointer;
  animation: floatIn 600ms var(--ease) both;
}
.bento__cell:nth-child(even) .bento__btn { background: var(--ph-mid); }
.bento__inner { position: absolute; inset: 0; transition: transform 700ms var(--ease); }
.bento__btn:hover .bento__inner { transform: scale(1.05); }
.bento__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: linear-gradient(180deg, rgba(251, 251, 250, 0) 0%, rgba(251, 251, 250, 0.92) 40%);
  pointer-events: none;
}
.bento__client { font-weight: 700; font-size: clamp(18px, 1.8vw, 26px); line-height: 1; letter-spacing: -0.03em; }
.bento__type { font-size: 14px; opacity: 0.75; white-space: nowrap; }

.work-detail {
  gap: 32px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--line);
  animation: floatIn 500ms var(--ease) both;
}
.work-detail[hidden] { display: none; }

.ink-cta { gap: 32px; align-items: end; }
.ink-cta__title { font-size: clamp(36px, 5.5vw, 84px); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em; }
.ink-cta__side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* --- À propos ----------------------------------------------------------- */
.portrait {
  background: var(--accent);
  aspect-ratio: 4 / 5; width: 100%; max-width: 560px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  animation: rise 800ms var(--ease) both;
}
.portrait img { width: 118%; max-width: none; object-fit: contain; object-position: bottom; margin-bottom: -4%; }
.gallery-tile { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ph-light); }
.gallery-tile:nth-child(even) { background: var(--ph-mid); }

/* --- Contact ------------------------------------------------------------ */
.contact-grid { gap: 48px; }
.mail-link {
  display: inline-block; margin-top: 36px;
  font-weight: 700; font-size: clamp(24px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.03em;
  color: var(--accent-text);
  border-bottom: 2px solid var(--ink); padding-bottom: 6px;
  word-break: break-all; text-decoration: none;
  animation: floatIn 600ms var(--ease) 300ms both;
  transition: transform 300ms var(--ease);
}
.mail-link:hover { transform: translateX(8px); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.contact-links a {
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0; min-height: 44px; display: inline-block;
  text-decoration: none;
}

.ticker-block { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; }
.ticker { display: flex; flex-direction: column; gap: 6px; }
.ticker li {
  font-weight: 700; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.04em;
  /* La maquette descend à 0.22, soit 1,6:1 : illisible. 0.7 tient 6,5:1 et
     respecte le plancher d'opacité du projet. La ligne courante se distingue
     par sa couleur et son décalage, pas en écrasant les autres. */
  opacity: 0.7;
  transition: color 500ms var(--ease), opacity 500ms var(--ease), transform 600ms var(--ease);
}
.ticker li[data-current="true"] { opacity: 1; color: var(--accent-text); transform: translateX(16px); }

.form { display: flex; flex-direction: column; gap: 20px; animation: rise 800ms var(--ease) 200ms both; }
.form__legend { font-size: 16px; opacity: 0.7; padding: 0; }
.form__fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 12px 16px;
  border: 1px solid var(--ink); font-size: 16px;
  transition: background var(--d-micro) var(--ease), color var(--d-micro) var(--ease), transform var(--d-micro) var(--ease);
}
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Champs à filet : le libellé reste visible, la maquette n'a que le trait. */
.field__label { display: block; font-size: 15px; opacity: 0.7; }
.form__input, .form__textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 0;
  font-size: 18px;
  min-height: 52px;
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__input:focus-visible, .form__textarea:focus-visible { outline-offset: 2px; }
.form__hint { font-size: 14px; opacity: 0.75; margin-top: 6px; }
.form__error { font-size: 15px; font-weight: 600; margin-top: 8px; }
/* Le préfixe et la marge n'existent que lorsqu'il y a vraiment une erreur. */
.form__error:empty { margin: 0; }
.form__error:not(:empty)::before { content: "Erreur : "; }
[aria-invalid="true"] { border-bottom-width: 2px; }

.form__consent { display: flex; gap: 12px; align-items: flex-start; }
.form__consent input { width: 24px; height: 24px; margin: 0; flex: none; }
.form__summary { border: 2px solid var(--ink); padding: 16px; font-weight: 600; }
.form__summary[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }
.status { font-weight: 600; }
.contact-photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph-light); margin-top: 12px; }

/* --- CTA sticky mobile --------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.sticky-cta[hidden] { display: none; }
@media (min-width: 720px) { .sticky-cta { display: none; } }

/* --- Pied de page -------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px 32px;
  font-size: 15px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a { padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { opacity: 0.7; padding: 10px 0; }

/* --- Listes de contenu --------------------------------------------------- */
.checklist li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.dd { margin: 12px 0 0; }

/* --- Utilitaires --------------------------------------------------------- */
.mt-6 { margin-top: 6px; }  .mt-8 { margin-top: 8px; }   .mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.block { display: block; }
.stack-lg > * + * { margin-top: 40px; }

/* Décalage de la boucle de couleur, lettre par lettre */
.bigtext__letter:nth-child(1) { animation-delay: 0ms; }
.bigtext__letter:nth-child(2) { animation-delay: -160ms; }
.bigtext__letter:nth-child(3) { animation-delay: -320ms; }
.bigtext__letter:nth-child(4) { animation-delay: -480ms; }
.bigtext__letter:nth-child(5) { animation-delay: -640ms; }
.bigtext__letter:nth-child(6) { animation-delay: -800ms; }
.bigtext__letter:nth-child(7) { animation-delay: -960ms; }
.bigtext__letter:nth-child(8) { animation-delay: -1120ms; }
.bigtext__letter:nth-child(9) { animation-delay: -1280ms; }
.bigtext__letter:nth-child(10) { animation-delay: -1440ms; }
.bigtext__letter:nth-child(n+11) { animation-delay: -1600ms; }

/* --- Entrée de page et mouvement réduit ---------------------------------- */
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
main > * { animation: pageIn 600ms var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
  .bigtext__letter { animation: none; color: var(--ink); }
  .s-ink .bigtext__letter { animation: none; color: var(--paper); }
  .hero__img--1 { transform: rotate(-4deg); }
  .hero__img--2 { transform: rotate(3deg); }
  .hero__img--3 { transform: rotate(-2deg); }
}

/* Ratios de la bande, dans l'ordre de la maquette (cycle de 6). */
.marquee__item:nth-child(6n+1) { aspect-ratio: 4 / 3; }
.marquee__item:nth-child(6n+2) { aspect-ratio: 3 / 4; }
.marquee__item:nth-child(6n+3) { aspect-ratio: 1 / 1; }
.marquee__item:nth-child(6n+4) { aspect-ratio: 4 / 3; }
.marquee__item:nth-child(6n+5) { aspect-ratio: 3 / 4; }
.marquee__item:nth-child(6n)   { aspect-ratio: 1 / 1; }

/* Entrée en cascade des lignes « compris ». */
.svc__item:nth-child(1) { animation-delay: 150ms; }
.svc__item:nth-child(2) { animation-delay: 220ms; }
.svc__item:nth-child(3) { animation-delay: 290ms; }
.svc__item:nth-child(4) { animation-delay: 360ms; }
.svc__item:nth-child(5) { animation-delay: 430ms; }
.svc__item:nth-child(6) { animation-delay: 500ms; }

/* Entrée en cascade des tuiles du bento. */
.bento__cell:nth-child(1) .bento__btn { animation-delay: 0ms; }
.bento__cell:nth-child(2) .bento__btn { animation-delay: 70ms; }
.bento__cell:nth-child(3) .bento__btn { animation-delay: 140ms; }
.bento__cell:nth-child(4) .bento__btn { animation-delay: 210ms; }
.bento__cell:nth-child(5) .bento__btn { animation-delay: 280ms; }
.bento__cell:nth-child(6) .bento__btn { animation-delay: 350ms; }
.bento__cell:nth-child(n+7) .bento__btn { animation-delay: 420ms; }

/* Entrée en cascade des besoins cochables. */
.chip:nth-child(1) span { animation: pop 500ms var(--ease) 200ms both; }
.chip:nth-child(2) span { animation: pop 500ms var(--ease) 250ms both; }
.chip:nth-child(3) span { animation: pop 500ms var(--ease) 300ms both; }
.chip:nth-child(4) span { animation: pop 500ms var(--ease) 350ms both; }
.chip:nth-child(5) span { animation: pop 500ms var(--ease) 400ms both; }
.chip:nth-child(6) span { animation: pop 500ms var(--ease) 450ms both; }
.chip:nth-child(n+7) span { animation: pop 500ms var(--ease) 500ms both; }

/* --- Notes mesurées d'une réalisation ------------------------------------ */
.scores { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.score dt { font-size: 15px; opacity: 0.7; }
.score dd {
  margin: 4px 0 0;
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 700;
  line-height: 1; letter-spacing: -0.03em;
  color: var(--accent-text);
}
.score__sur { font-size: 0.45em; font-weight: 500; opacity: 0.65; color: var(--ink); }
