/* NovaOm — nouveau site
   Primaire : blanc / noir. Secondaire : sauge. Police : Inter (grotesque neutre, comme la référence).
   Pour changer la police ou la sauge, modifier uniquement les variables ci-dessous. */

:root {
  /* corps de texte : 3 niveaux */
  --fs-lead: clamp(18px, 1.5vw, 23px);
  --fs-body: clamp(17px, 1.25vw, 19px);
  --fs-small: 15px;
  --paper: #f5f5f3;
  --white: #ffffff;
  --ink: #0b0b0b;
  --ink-soft: #55574f;
  --line: rgba(11, 11, 11, .14);
  /* palette NovaOm (couleurs fournies par Nathan le 25 sept. 2026) ; les noms --sage* sont gardés pour ne pas toucher au reste du CSS */
  --sage: #94907b;        /* teinte intermédiaire : sélection, titres et survols du bloc Contact (contraste 6:1 sur noir) */
  --sage-deep: #524a30;   /* olive foncé : texte / détails — contraste 8:1 sur papier, 6:1 sur gris-beige */
  --sage-pale: #d7d7c7;   /* gris-beige : aplats, fonds de section, survols */

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sage); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.contact :focus-visible { outline-color: var(--white); }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }   /* sections ciblées par le menu : elles prennent le focus (pour le clavier) sans afficher de contour */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; font-size: 15px; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── En-tête ───────── */
.header {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 40px; align-items: center;   /* menu centré entre le logo et les icônes : même vide à gauche et à droite (le logo est bien plus large que les icônes) */
  padding: 44px var(--gutter) 0;
}
.brand { display: inline-block; line-height: 0; color: var(--ink); }
.brand-logo { display: block; height: clamp(40px, 3.7vw, 60px); width: auto; }   /* rétrécit avec la largeur d'écran : 60px à partir de ~1620px */   /* logo officiel (LOGO_A+ 2023), vectoriel, suit la couleur du texte */
.nav { display: flex; gap: clamp(28px, 4.2vw, 80px); justify-self: center; }
.nav a { font-size: clamp(20px, 2.2vw, 26px); font-weight: 400; position: relative; padding: 2px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.social { justify-self: end; display: flex; gap: 4px; margin: 0 -11px; }   /* -11px de chaque côté : les pictos s'alignent sur la marge et le menu se centre sur eux ; la zone tactile reste de 44px */
@media (min-width: 901px) and (max-width: 1200px) { .header { column-gap: 32px; } }
.social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: color .25s; }
.social a:hover { color: var(--sage-deep); }
.social svg { width: 22px; height: 22px; }

/* ───────── Accueil : intro + frise ───────── */
.hero {
  display: grid; grid-template-columns: minmax(280px, 30%) 1fr; column-gap: clamp(24px, 5vw, 90px);
  padding: clamp(36px, min(9vw, 7svh), 130px) 0 0 var(--gutter);
  align-items: end;
  /* unité des photos : suit la largeur, mais rétrécit sur un écran peu haut pour que les flèches restent visibles sans défiler
     (260px ≈ en-tête + marge du haut + barre des flèches + un peu d'air) */
  --u: min(1vw, calc((100svh - 260px) / 36));
}
.hero { overflow-x: clip; }
.hero > * { min-width: 0; }
.hero-intro { align-self: center; max-width: 30rem; }
.hero-kicker { margin: 18px 0 0; font-size: var(--fs-small); font-weight: 400; letter-spacing: .02em; color: var(--ink-soft); }
.hero-intro p { margin: 0; font-size: clamp(24px, 2.5vw, 38px); line-height: 1.22; letter-spacing: -.015em; }

.strip {
  display: flex; align-items: flex-end; gap: 20px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding-right: var(--gutter); cursor: grab; -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip figure { margin: 0; flex: none; scroll-snap-align: start; }
.strip img { height: 100%; width: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.strip .s1 { width: clamp(180px, calc(24 * var(--u)), 370px); height: clamp(180px, calc(24 * var(--u)), 370px); }
.strip .s2 { width: clamp(180px, calc(24 * var(--u)), 370px); height: clamp(280px, calc(36 * var(--u)), 560px); }
.strip .s3 { width: clamp(220px, calc(30 * var(--u)), 460px); height: clamp(180px, calc(24 * var(--u)), 370px); }
.strip .s4 { width: clamp(160px, calc(20 * var(--u)), 320px); height: clamp(240px, calc(31 * var(--u)), 480px); }

/* photo unique du hero : jusqu'au bord droit, hauteur calée sur l'écran */
.hero-photo { display: block; position: relative; overflow: hidden; background: #e6e6e2; }   /* toute la photo mène à la page projet */
.hero-photo img { width: 100%; height: clamp(320px, calc(100svh - 200px), 820px); object-fit: cover; transition: transform 1.2s var(--ease); }
/* nom du projet en bas à gauche, en blanc sur un dégradé pour rester lisible quelle que soit la photo */
.hero-photo .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  padding: 60px clamp(18px, 2vw, 32px) clamp(16px, 1.8vw, 28px);
  background: linear-gradient(to top, rgba(11, 11, 11, .55), rgba(11, 11, 11, 0));
  color: var(--white); font-size: clamp(36px, 5vw, 80px); font-weight: 700; letter-spacing: -.025em; line-height: 1;
}
.hero-photo .cap::after {   /* au survol, le dégradé fonce un peu (fondu, sans animer le dégradé lui-même) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(11, 11, 11, .3), rgba(11, 11, 11, 0)); opacity: 0; transition: opacity .6s var(--ease);
}
.hero-photo:hover img { transform: scale(1.035); }
.hero-photo:hover .cap::after { opacity: 1; }
.hero-photo:focus-visible { outline-offset: 4px; }

.hint { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.hint::before { content: ""; width: 34px; height: 1px; background: currentColor; }

/* ───────── Grand mot ───────── */
.bigword { position: relative; padding: clamp(70px, 10vw, 150px) var(--gutter) 0; overflow: hidden; }
.bigword .kicker { position: absolute; left: calc(var(--gutter) + clamp(8px, 1.6vw, 26px)); top: clamp(60px, 8.6vw, 128px); font-size: clamp(18px, 2.2vw, 34px); font-weight: 300; z-index: 1; }
.bigword h2, .bigword h1 {
  margin: 0; font-weight: 800; font-size: clamp(88px, 22.5vw, 380px);
  line-height: .86; letter-spacing: -.055em; margin-left: -.04em; padding-bottom: .1em;
}
/* titres de section de l'accueil (Secteurs, Projets, Réalisations) : taille moyenne, réglée ici pour les trois */
.bigword.medium h2 { font-size: clamp(44px, 5.6vw, 104px); }
.bigword.compact h1, .bigword.compact h2 { font-size: clamp(48px, 8.5vw, 160px); }
.bigword.compact .kicker { position: static; display: block; margin: 0 0 6px .2em; font-size: clamp(16px, 1.5vw, 26px); }
.next-project .bigword.compact { padding-top: clamp(28px, 3vw, 48px); padding-bottom: clamp(40px, 4vw, 64px); }
.next-project .bigword.compact .aside { bottom: calc(clamp(40px, 4vw, 64px) + 1.2vw); }
/* « Projet suivant » : la mention de droite suit le titre (plus de chevauchement quand le nom est long) */
.next-project .bigword.compact { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: clamp(24px, 3vw, 60px); }
.next-project .bigword.compact .kicker { flex-basis: 100%; }
.next-project .bigword.compact h2 { flex: 0 1 auto; min-width: 0; }
.next-project .bigword.compact .aside { position: static; margin-left: auto; padding-bottom: 1.4vw; white-space: nowrap; }
.bigword.medium .kicker { position: static; display: block; margin: 0 0 6px .2em; font-size: clamp(15px, 1.3vw, 22px); }
.bigword.medium .aside { bottom: calc(clamp(44px, 5.6vw, 104px) * .16); }   /* aligné sur le bas du titre */
.bigword .aside { position: absolute; right: var(--gutter); bottom: clamp(30px, 6vw, 96px); font-size: clamp(17px, 1.5vw, 22px); font-weight: 400; display: inline-flex; gap: 10px; align-items: center; }
.arrow-link { display: inline-flex; gap: 10px; align-items: center; }
.arrow-link .arr { display: inline-block; transition: transform .35s var(--ease); }
.arrow-link:hover .arr { transform: translateX(6px); }

/* ───────── Projets à la une ───────── */
.section { padding: 0 var(--gutter); }
.feature-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 2.4vw, 40px); margin-top: clamp(30px, 4vw, 60px); align-items: start; }
.feature { display: block; }
.feature .frame { overflow: hidden; background: #e6e6e2; }
.feature img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:nth-child(2) { margin-top: clamp(40px, 8vw, 140px); }
.feature:nth-child(2) img { aspect-ratio: 4 / 5; }
.feature:hover img { transform: scale(1.035); }
.feature .meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; align-items: baseline; }
.feature h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.015em; }
.feature .sub { color: var(--ink-soft); font-size: var(--fs-small); text-align: right; }

/* ───────── Secteurs ───────── */
.sectors { margin-top: clamp(24px, 3vw, 44px); padding: 0 var(--gutter); }   /* juste sous son grand titre « Secteurs » */
.sectors .label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; margin: 0 0 clamp(24px, 3vw, 40px); }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); }
.sector .frame { margin: 0 0 clamp(18px, 1.8vw, 26px); overflow: hidden; background: #e6e6e2; }
.sector .frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sector:nth-child(1) .frame img { object-position: center 35%; }
.sector:nth-child(2) .frame img { object-position: center 60%; }
.sector:nth-child(3) .frame img { object-position: center 62%; }
.sector .n { display: block; border-top: 1px solid var(--ink); padding-top: 14px; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sector h3 { margin: clamp(14px, 1.6vw, 24px) 0 0; font-size: clamp(28px, 2.9vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.sector .pitch { margin: 14px 0 0; font-size: var(--fs-lead); color: var(--sage-deep); letter-spacing: -.01em; }
.sector p { margin: 18px 0 0; font-size: var(--fs-body); color: var(--ink-soft); max-width: 30rem; }
.sector .pitch + p { margin-top: 12px; }
.refs { list-style: none; margin: 24px 0 0; padding: 0; font-size: var(--fs-small); }
.refs li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.refs li:last-child { border-bottom: 0; }   /* pas de filet sous le dernier élément de chaque colonne */
.refs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.refs a:hover { color: var(--sage-deep); }

/* ───────── Index des réalisations ───────── */
.index { margin-top: clamp(24px, 3vw, 44px); border-top: 1px solid var(--ink); }   /* juste sous son grand titre « Réalisations » */
.index-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 14px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 56px 1.6fr 1fr 1fr 72px; gap: 20px; align-items: baseline;
  padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease), background .3s;
}
.row .n { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.row .t { font-size: clamp(26px, 3.6vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.row .c, .row .y { font-size: var(--fs-small); color: var(--ink-soft); }
.row .y { text-align: right; }
a.row:hover { padding-left: 14px; background: var(--sage-pale); }
a.row:hover .t { color: var(--ink); }
.row.static .t { color: var(--ink); }
.more { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: minmax(200px, 30%) 1fr; gap: 20px var(--gutter); }
.more h3 { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.more ul { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 40px; font-size: 18px; }
.more li { padding: 6px 0; break-inside: avoid; border-bottom: 1px solid var(--line); }

/* aperçu au survol */

/* ───────── Agence ───────── */
.agency { margin-top: clamp(90px, 12vw, 190px); background: var(--sage-pale); padding: clamp(60px, 8vw, 130px) var(--gutter); }
.agency .label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; margin: 0 0 clamp(28px, 4vw, 60px); }
.statement { margin: 0; max-width: 24ch; font-size: clamp(34px, 5.6vw, 92px); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.statement em { font-style: normal; color: var(--sage-deep); }
.agency-cols { margin-top: clamp(50px, 8vw, 120px); }
.agency-cols > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 56px); }
.agency-cols p { margin: 0; font-size: var(--fs-body); }
.team { list-style: none; margin: 0; padding: 0; }
.team li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(11,11,11,.22); }
.team li span:last-child { color: var(--ink-soft); text-align: right; }
.team li:first-child { border-top: 1px solid var(--ink); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(60px, 8vw, 120px); }
.pair figure { margin: 0; position: relative; }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pair figcaption { position: absolute; left: 14px; top: 14px; background: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; }
.pair-note { margin: 14px 0 0; font-size: var(--fs-small); color: var(--ink-soft); }

/* ───────── Contact ───────── */
.contact { background: var(--sage-deep); color: var(--white);   /* olive foncé de la palette */ padding: clamp(70px, 9vw, 140px) var(--gutter) 40px; }
.contact h2 { margin: 0; font-weight: 800; font-size: clamp(56px, 8.5vw, 160px); line-height: .86; letter-spacing: -.055em; margin-left: -.04em; }
.contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: clamp(40px, 6vw, 90px); }
.contact h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-pale); }   /* gris-beige : 6:1 sur olive (la teinte intermédiaire ne ressort pas assez) */
.contact p, .contact address { margin: 0; font-style: normal; font-size: var(--fs-lead); line-height: 1.3; }
.contact a:hover { color: var(--sage-pale); }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(60px, 8vw, 120px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); font-size: 14px; color: rgba(255,255,255,.75); }   /* .75 : lisible sur olive (5,6:1) */

/* ───────── Pages projet ───────── */
.project-head { padding: clamp(50px, 7vw, 100px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px clamp(32px, 6vw, 110px); align-items: start; }   /* texte plus large, fiche calée sur le haut du texte */
.project-head .facts { list-style: none; margin: .45em 0 0; padding: 0; font-size: var(--fs-small); }   /* filet du haut au niveau de la 1re ligne du texte */
.project-head .facts li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.project-head .facts li:first-child { border-top: 1px solid var(--ink); }
.project-head .facts span:first-child { color: var(--ink-soft); }
.project-head .facts span:last-child { text-align: right; }
.project-intro { max-width: 38rem; margin: 0 0 28px; font-size: var(--fs-lead); line-height: 1.4; text-wrap: pretty; }
.cover { margin: clamp(36px, 5vw, 70px) var(--gutter) 0; }
.cover img { width: 100%; max-height: 82vh; object-fit: cover; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: clamp(40px, 6vw, 80px) var(--gutter) 22px; position: sticky; top: 0; z-index: 10; background: linear-gradient(var(--paper) 78%, transparent); }
.filters button {
  font: inherit; font-size: 15px; cursor: pointer; padding: 9px 18px; border-radius: 99px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background .25s, color .25s;
}
.filters button:hover { background: var(--sage-pale); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filters .count { color: var(--ink-soft); margin-left: 6px; font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] .count { color: rgba(255,255,255,.78); }
.gallery-total { font-size: 15px; color: var(--ink-soft); padding: 9px 0; }   /* page sans filtres : simple nombre de photos */

.gallery { columns: 3 320px; column-gap: 16px; padding: 0 var(--gutter); }
.gallery a { display: block; margin: 0 0 16px; break-inside: avoid; background: #e6e6e2; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .9s var(--ease), opacity .6s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a[hidden] { display: none; }

.next-project { display: block; margin-top: clamp(80px, 10vw, 150px); }
.next-project .bigword { padding-top: 0; }
.next-project .bigword { transition: background .45s var(--ease); }
.next-project h2 { transition: transform .5s var(--ease), color .3s; }
.next-project .aside .arr { transition: transform .5s var(--ease); }
.next-project:hover .bigword, .next-project:focus-visible .bigword { background: var(--sage-pale); }
.next-project:hover h2, .next-project:focus-visible h2 { transform: translateX(clamp(10px, 1.4vw, 24px)); color: var(--sage-deep); }
.next-project:hover .aside .arr, .next-project:focus-visible .aside .arr { transform: translateX(10px); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(245,245,243,.97); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: min(92vw, 1500px); max-height: 86vh; object-fit: contain; cursor: pointer; }
.lb button { position: absolute; font: inherit; background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 16px; padding: 18px 22px; }
.lb .x { top: 8px; right: 8px; }
.lb .k { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lb button:hover { color: var(--sage-deep); }

/* apparition */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ───────── Mobile ───────── */
@media (max-width: 900px) {
  .sector-grid { grid-template-columns: 1fr; row-gap: 48px; }
  :root { --fs-body: 16px; }
  .header { grid-template-columns: 1fr auto; row-gap: 22px; padding-top: 26px; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 24px; overflow-x: auto; scrollbar-width: none; justify-self: stretch; }   /* mobile : menu calé à gauche, défilable */
  .nav a { font-size: 17px; }
  .brand-logo { height: auto; width: min(242px, calc(100vw - 2 * var(--gutter) - 96px)); }   /* laisse la place aux 2 icônes, même sur iPhone SE */
  .hero { grid-template-columns: 1fr; padding-left: var(--gutter); padding-top: 44px; row-gap: 40px; }
  .hero-intro { padding-top: 0; padding-bottom: 0; }
  .strip { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .bigword .kicker { position: static; margin: 0 0 6px; }
  .bigword { padding-top: 60px; }
  .bigword .aside { position: static; margin-top: 8px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(2) { margin-top: 0; }
  .row { grid-template-columns: 34px 1fr auto; row-gap: 4px; }
  .row .c { grid-column: 2; grid-row: 2; } .row .y { grid-column: 3; grid-row: 1; }
  .row .n { grid-row: 1; }
  .more { grid-template-columns: 1fr; }
  .agency-cols > div, .pair, .contact-cols, .project-head { grid-template-columns: 1fr; }
  .agency-cols > div { row-gap: 1.1em; }
  .gallery { columns: 2 150px; column-gap: 10px; }
  .gallery a { margin-bottom: 10px; }
}


/* ───────── Mobile : retouches (≤ 900px) ───────── */
.gallery-more { display: flex; justify-content: center; padding: 10px var(--gutter) 0; }
.more-btn { font: inherit; font-size: 16px; cursor: pointer; padding: 14px 28px; border-radius: 99px; border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background .25s, color .25s; }
.more-btn:hover { background: var(--ink); color: var(--white); }
.more-btn[hidden] { display: none; }

@media (max-width: 900px) {
  /* accueil : les images d'abord, plus grandes */
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 28px; row-gap: 0; }
  .hero > div:last-child { order: -1; }
  .hero-intro { margin-top: 34px; padding-right: var(--gutter); }
  .strip { gap: 12px; }
  .hero-photo { margin-right: calc(var(--gutter) * -1); }
  .hero-photo img { height: 78vw; }
  .hero-photo .cap { font-size: clamp(30px, 9.2vw, 64px); }   /* le titre suit la largeur de l'écran : une ligne, sans toucher le bord */
  .strip .s1 { width: 70vw; height: 70vw; }
  .strip .s2 { width: 70vw; height: 96vw; }
  .strip .s3 { width: 84vw; height: 62vw; }
  .strip .s4 { width: 62vw; height: 88vw; }
  .hint { margin-top: 14px; }

  /* grands mots */
  .bigword { padding-top: 64px; }
  .bigword h2 { font-size: clamp(92px, 27vw, 200px); }
  .statement { font-size: 38px; }

  /* projets à la une + liste */
  .feature .meta { flex-direction: column; gap: 2px; }
  .feature .sub { text-align: left; }
  .row .arr { display: none; }
  .row .y { display: none; }   /* pas d'années sur mobile */
  .row .t { grid-column: 2 / -1; }
  .row .t { font-size: clamp(26px, 8vw, 40px); }
  .more ul { columns: 2 140px; column-gap: 20px; font-size: 15px; }
  .more li { padding: 5px 0; }

  /* agence */
  .team li { flex-direction: column; gap: 2px; }
  .team li span:last-child { text-align: left; }

  /* zones tactiles confortables */
  .nav { gap: 6px 26px; }
  .nav a { padding: 10px 0; }

  /* pages projet */
  .cover { margin-left: 0; margin-right: 0; }
  .cover img { aspect-ratio: 4 / 5; max-height: none; object-fit: cover; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-top: 34px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .project-head { row-gap: 22px; }
    .lb img { max-width: 100vw; max-height: 78vh; }
}


/* ───────── Audit UX : accessibilité & interactions ───────── */
.brand { padding: 6px 0; }
.arrow-link { padding: 12px 0; }
.contact p a, .contact address a { display: inline-block; padding: 12px 0; }
.filters button { min-height: 44px; }
.filters button:active, .more-btn:active, .sb:active { transform: scale(.97); }
.skip { min-height: 44px; display: inline-flex; align-items: center; }

.strip:focus-visible { outline-offset: -2px; }
.strip-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-right: var(--gutter); }
.strip-tools .hint { margin: 0; }
.strip-btns { display: flex; gap: 8px; }
.sb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; transition: background .25s, color .25s, transform .15s; }
.sb:hover { background: var(--ink); color: var(--white); }
.sb:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }
/* réalisations : 5 par page, flèches sous la liste */
.rows-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.rows-nav[hidden] { display: none; }
.rows-count { font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; font-variant-numeric: tabular-nums; }


/* ───────── Pop-up portfolio ───────── */
.pf {
  padding: 0; border: 0; max-width: min(860px, calc(100vw - 32px)); width: 100%;
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: 5fr 6fr;
  box-shadow: 0 30px 80px rgba(11, 11, 11, .22);
}
.pf:not([open]) { display: none; }
.pf[open] { animation: pf-in .5s var(--ease); }
.pf::backdrop { background: rgba(11, 11, 11, .38); animation: pf-fade .5s var(--ease); }
@keyframes pf-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes pf-fade { from { opacity: 0; } }
.pf-img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.pf-body { position: relative; padding: clamp(36px, 4vw, 56px) clamp(28px, 3.5vw, 48px); display: flex; align-items: center; }
.pf-x { position: absolute; top: 6px; right: 6px; font: inherit; font-size: 16px; background: none; border: 0; color: var(--ink); cursor: pointer; min-width: 44px; min-height: 44px; }
.pf-x:hover { color: var(--sage-deep); }
.pf-kicker { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.pf h2 { margin: 0 0 14px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.pf-text { margin: 0 0 26px; color: var(--ink-soft); font-size: var(--fs-small); }
.pf-text a { text-decoration: underline; text-underline-offset: 3px; }
.pf-form { display: flex; flex-wrap: wrap; gap: 0; }
.pf-form input {
  flex: 1 1 200px; min-width: 0; min-height: 50px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-right: 0; border-radius: 0;
}
.pf-form input:focus { outline: none; border-color: var(--ink); }
.pf-form input[aria-invalid="true"] { border-color: #a33a2b; }
.pf-form button, .pf-dl {
  min-height: 50px; padding: 0 22px; font: inherit; font-size: 16px; font-weight: 600;
  background: var(--ink); color: var(--white); border: 0; border-radius: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; transition: background .25s var(--ease);
}
.pf-form button:hover, .pf-dl:hover { background: var(--sage-deep); }
.pf-dls { display: flex; flex-direction: column; gap: 10px; }
.pf-dl { justify-content: space-between; }
.pf-dl .pf-size { margin-left: auto; font-weight: 400; font-size: 13px; opacity: .7; }
.pf-dl.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pf-dl.alt:hover { background: var(--ink); color: var(--white); }
.pf-err { flex-basis: 100%; margin: 8px 0 0; min-height: 1.2em; font-size: 14px; color: #a33a2b; }
.pf-legal { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 900px) {
  .pf { grid-template-columns: 1fr; margin: auto auto 0; max-width: 100vw; max-height: 92vh; overflow: auto; }
  .pf-img { min-height: 0; height: 160px; }
  .pf-body { padding: 28px 20px 24px; }
  .pf-form input { flex-basis: 100%; border-right: 1px solid var(--line); }
  .pf-form button { flex: 1; justify-content: center; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pf[open], .pf::backdrop { animation: none; } }
.pf:focus { outline: none; }

/* réalisations : titre + 5 lignes + flèches tiennent dans un écran (ordinateur) — tailles bornées par la hauteur de fenêtre */
@media (min-width: 901px) {
  #index { padding-top: clamp(28px, 6vh, 90px); }
  #index h2 { font-size: clamp(44px, min(5.6vw, 10vh), 104px); }
  #index .aside { bottom: calc(clamp(44px, min(5.6vw, 10vh), 104px) * .16); }
  #index + .section .index { margin-top: clamp(14px, 2.5vh, 44px); }
  /* même hauteur pour toutes les lignes, textes centrés verticalement (titre sur 1 ou 2 lignes) */
  .index .row { height: clamp(78px, 13vh, 150px); padding-top: 0; padding-bottom: 0; align-items: center; }
  .index .row .t { font-size: clamp(22px, min(3.2vw, 4.6vh), 52px); line-height: 1.04; }
  .index .row .c { line-height: 1.35; }
  .index .rows-nav { margin-top: clamp(8px, 1.5vh, 18px); }
}

/* ───────── Accueil : perspective 3D / réalisation superposées, slider ─────────
   --pos = largeur visible de la 3D (100 % à l'arrivée) ; on tire vers la gauche pour découvrir la photo */
.compare { position: relative; margin: clamp(60px, 8vw, 120px) 0 0; aspect-ratio: 3 / 2; width: min(100%, calc(90vh * 1.5)); margin-inline: auto; overflow: hidden;   /* photo entière (pas de recadrage), bloc plus petit que la page */ background: #e6e6e2; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-3d { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* rendu et photo (img/compare/) sont recalés l'un sur l'autre (même taille, même cadre) : ne pas leur donner de recadrages différents */
.compare-tag { position: absolute; top: 14px; background: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; transition: opacity .3s; pointer-events: none; }
.compare-tag.is-3d { left: 14px; }
.compare-tag.is-real { right: 14px; }
.compare[data-low] .compare-tag.is-3d, .compare[data-high] .compare-tag.is-real { opacity: 0; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.25); }
.compare-handle span { position: absolute; top: 50%; left: calc(50% + var(--kx, 0px));   /* --kx : décalage pour que la pastille reste entière au bord */ width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.compare { cursor: ew-resize; }
.compare-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }   /* gardé pour le clavier ; la souris et le doigt sont gérés en JS */
.compare:has(.compare-range:focus-visible) .compare-handle span { outline: 2px solid var(--ink); outline-offset: 2px; }
.compare-hint { color: var(--ink-soft); }
.compare-hint.is-touch { display: none; }
@media (hover: none) { .compare-hint.is-mouse { display: none; } .compare-hint.is-touch { display: inline; } }
.compare + .pair-note { width: min(100%, calc(90vh * 1.5)); margin-inline: auto; }   /* légende calée sous le slider */


/* ───────── Rappels kaki (25 sept. 2026) : touches discrètes de --sage-deep, tout est ici pour être réglé ou retiré d'un bloc ───────── */
/* petits textes de repère : surtitres, étiquettes en capitales, numéros */
.bigword .kicker, .sectors .label, .agency .label, .hero-kicker { color: var(--sage-deep); }
.sector .n, .row .n { color: var(--sage-deep); }
/* filets de tête de liste (Secteurs, Réalisations, fiche projet) */
.sector .n, .index, .project-head .facts li:first-child { border-top-color: var(--sage-deep); }
/* flèches */
.arrow-link .arr, .row .arr, .bigword .aside .arr { color: var(--sage-deep); }
/* menu : soulignement au survol, et page en cours soulignée en permanence */
.nav a::after { background: var(--sage-deep); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
/* boutons : survol et filtre actif en kaki plutôt qu'en noir */
.filters button[aria-pressed="true"], .more-btn:hover, .sb:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }
.sb:disabled:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
/* contour de focus clavier */
:focus-visible { outline-color: var(--sage-deep); }
/* slider 3D / réalisation : la pastille porte la couleur */
.compare-handle span { color: var(--sage-deep); }


/* ───────── Mentions légales (4 oct. 2026) ───────── */
.legal { padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(90px, 12vw, 160px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 30px clamp(32px, 6vw, 110px); align-items: start; }
.legal-toc { position: sticky; top: 24px; display: flex; flex-direction: column; border-top: 1px solid var(--sage-deep); font-size: var(--fs-small); }
.legal-toc a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.legal-toc a:hover { color: var(--sage-deep); }
.legal section { grid-column: 2; max-width: 46rem; margin-bottom: clamp(50px, 6vw, 80px); scroll-margin-top: 24px; }
.legal section:focus { outline: none; }
.legal h2 { margin: 0 0 18px; font-size: clamp(28px, 2.8vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.legal h3 { margin: 30px 0 8px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-deep); }
.legal p, .legal li { font-size: var(--fs-body); line-height: 1.55; text-wrap: pretty; }
.legal p { margin: 0 0 14px; }
.legal ul:not(.facts) { margin: 0; padding-left: 1.1em; }
.legal li + li { margin-top: 10px; }
.legal p a, .legal li a, .legal .facts a { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.legal .facts { list-style: none; margin: 18px 0 0; padding: 0; font-size: var(--fs-small); }
.legal .facts li { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.legal .facts li:first-child { border-top: 1px solid var(--sage-deep); }
.legal .facts span:first-child { color: var(--ink-soft); }
.legal .facts span:last-child { text-align: right; }
.legal-date { color: var(--ink-soft); font-size: var(--fs-small) !important; }
.footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.footer a:hover { color: var(--sage-pale); }
.pf-legal a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .legal section { grid-column: 1; }
  .legal .facts li { flex-direction: column; gap: 2px; }
  .legal .facts span:last-child { text-align: left; }
}

/* pop-up : mail sur toute la ligne, téléphone + bouton dessous, case de consentement (4 oct. 2026) */
.pf-form .pf-mail { flex-basis: 100%; border-right: 1px solid var(--line); margin-bottom: 8px; }
.pf-check { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.pf-form .pf-check input { flex: none; width: 18px; min-height: 0; height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--sage-deep); cursor: pointer; }
.pf-form button:disabled { background: var(--sage); cursor: not-allowed; }
.pf-form .pf-hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }   /* piège à robots du formulaire */
