/* ==========================================================================
   ANTOINE LÉVÊQUE · PORTFOLIO
   Bleu de tirage, papier. Les filets forment la grille : chaque contenu
   est rangé dans une cellule bornée par des lignes.
   ========================================================================== */

:root {
  --blue: #4A3ACC;
  --night: #14112F;
  --paper: #F5F4EF;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --pad: clamp(16px, 2.6vw, 40px);
  --gap: clamp(14px, 1.6vw, 24px);
  --bar-h: 58px;

  --fs-hero: clamp(64px, min(14vw, 25svh), 236px);
  --fs-display: clamp(60px, 10vw, 176px);
  --fs-h2: clamp(34px, 4vw, 64px);
  --fs-h3: clamp(26px, 2.4vw, 40px);
  --fs-lead: clamp(21px, 1.9vw, 30px);

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.76, 0, .24, 1);
  --e-soft: cubic-bezier(.33, 1, .68, 1);

  --bg: var(--paper);
  --fg: var(--blue);
  --line: rgba(74, 58, 204, .42);
  --soft: rgba(74, 58, 204, .64);
}
[data-theme="blue"]  { --bg: var(--blue);  --fg: #fff;    --line: rgba(255,255,255,.4);  --soft: rgba(255,255,255,.7); }
[data-theme="paper"] { --bg: var(--paper); --fg: var(--blue); --line: rgba(74,58,204,.42); --soft: rgba(74,58,204,.64); }
[data-theme="night"] { --bg: var(--night); --fg: #E9E7FF; --line: rgba(233,231,255,.24); --soft: rgba(233,231,255,.6); }
[data-theme] { background-color: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--blue);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
[data-theme="blue"] ::selection { background: #fff; color: var(--blue); }
:focus-visible { outline: 1px dashed currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }

.t-label { font: 500 11px/1.35 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.t-mono  { font: 400 11px/1.35 var(--mono); font-variant-numeric: tabular-nums; }
.soft { color: var(--soft); }

/* ==========================================================================
   GRILLE DE FILETS
   .grid = une rangée bornée en haut par un filet
   .cell = une case ; un filet vertical la sépare de la précédente
   ========================================================================== */
.grid {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 0 var(--pad);
}
.grid::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.7s var(--e-io);
}
.grid.is-in::before { transform: scaleX(1); }
/* croix de repère aux intersections : elles « pointent » quand le filet passe */
.cell > .x {
  position: absolute; left: 0; top: 0; width: 11px; height: 11px; z-index: 1; pointer-events: none;
  transform: translate(-50%, -50%) scale(0) rotate(-90deg);
  transition: transform .8s var(--e-out);
  transition-delay: calc(.2s + var(--cx, 0) * 1.3s);
}
.cell > .x::before, .cell > .x::after { content: ""; position: absolute; background: var(--fg); }
.cell > .x::before { left: 0; right: 0; top: 5px; height: 1px; }
.cell > .x::after { top: 0; bottom: 0; left: 5px; width: 1px; }
.grid.is-in > .cell > .x { transform: translate(-50%, -50%) scale(1) rotate(0); }
.grid--end { border-bottom: 0; }
.grid--end::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--e-io) .15s;
}
.grid--end.is-in::after { transform: scaleX(1); }
.cell { position: relative; min-width: 0; padding: 22px var(--gap) 30px; }
.cell:first-child { padding-left: 0; }
.cell:last-child { padding-right: 0; }
.cell + .cell::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--line);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.2s var(--e-io);
  transition-delay: calc(.35s + var(--cx, 0) * 1.3s);
}
.grid.is-in > .cell::before { transform: scaleY(1); }
.tbl__row:hover::after { background: var(--fg); }
.tbl__row::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--e-out); z-index: 1; }
.tbl__row:hover::before { transform: scaleX(1); }
.cell + .cell { padding-left: var(--gap); }
.s1 { grid-column: span 1; } .s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; }
.s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
.cell--end { display: flex; justify-content: flex-end; align-items: flex-start; text-align: right; }

/* contenu qui monte dans sa case */
[data-reveal] { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 1s var(--e-out), transform 1.1s var(--e-out); transition-delay: var(--d, .25s); }
.is-in[data-reveal], .is-in [data-reveal] { opacity: 1; transform: none; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.w > span { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.1s var(--e-out); transition-delay: calc(var(--i, 0) * 20ms + var(--d, .2s)); }
.is-in .w > span { transform: none; }

/* ==========================================================================
   CHARGEMENT (accueil) & TRANSITION
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 3000; background: var(--blue); color: #fff;
  display: grid; grid-template-rows: 1fr auto; padding: var(--pad);
  transition: transform 1.1s var(--e-io);
}
html:not(.js) .loader, .curtain-in .loader { display: none; }
.loader.is-done { transform: translate3d(0, -100%, 0); }
.loader.is-gone { display: none; }
.loader__logo { align-self: center; justify-self: center; width: 64px; height: 64px; overflow: visible; }
.loader__logo path { fill: none; stroke: currentColor; stroke-width: 1.3px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--e-io) forwards; }
.loader__logo path:nth-child(2) { animation-delay: .2s; }
.loader__logo path.f { fill: currentColor; fill-opacity: 0; animation: draw 1s var(--e-io) .4s forwards, fillin .5s ease 1.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
.loader__foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; border-top: 1px solid rgba(255,255,255,.4); padding-top: 14px; position: relative; }
.loader__bar { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.loader__n { font: 400 clamp(56px, 9vw, 140px)/.8 var(--serif); font-variant-numeric: tabular-nums; }
.loader__n small { font-size: .42em; margin-left: .08em; vertical-align: top; }

.curtain {
  position: fixed; inset: 0; z-index: 2900; background: var(--blue); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: var(--pad) var(--pad) 7vh;
  transform: translate3d(0, 100%, 0); transition: transform .75s var(--e-io); pointer-events: none;
}
.curtain__n { font: 400 11px/1 var(--mono); }
.curtain__t { font: 400 var(--fs-display)/.85 var(--serif); letter-spacing: -.02em; }
.curtain.is-cover { transform: none; }
.curtain-in .curtain { transform: none; transition: none; }
.curtain.is-up { transform: translate3d(0, -100%, 0); }

/* ==========================================================================
   CURSEUR
   ========================================================================== */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor], .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor { position: fixed; left: 0; top: 0; z-index: 2500; pointer-events: none; color: var(--cur, var(--blue)); transition: color .3s; }
.cursor__h, .cursor__v { position: absolute; background: currentColor; }
.cursor__h { width: 17px; height: 1px; left: -8px; top: 0; }
.cursor__v { width: 1px; height: 17px; left: 0; top: -8px; }
.cursor__ring { display: none; }
/* au survol, la croix rétrécit et tourne (plus de rond) */
.cursor__x { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: transform .45s var(--e-out); }
.cursor.is-hover .cursor__x { transform: scale(.6) rotate(45deg); }
.cursor.is-hover .cursor__h, .cursor.is-hover .cursor__v { animation: cur-spin 2.4s linear infinite; }
.cursor.is-hover .cursor__h { transform-origin: 8.5px .5px; }
.cursor.is-hover .cursor__v { transform-origin: .5px 8.5px; }
.cursor.is-down .cursor__x { transform: scale(.4) rotate(90deg); }
@keyframes cur-spin { to { transform: rotate(360deg); } }
.cursor__tag { position: absolute; left: 22px; top: 18px; white-space: nowrap; font: 500 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

/* ==========================================================================
   BARRE & MENU
   ========================================================================== */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--bar-h);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center;
  padding: 0 var(--pad); background: var(--bg); color: var(--fg);
  transition: background-color .5s var(--e-soft), color .5s var(--e-soft), transform .7s var(--e-io);
}
.bar::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--line); }
.is-loading .bar { transform: translateY(-100%); }
.bar__brand { grid-column: 1 / 4; display: inline-flex; align-items: center; gap: 11px; justify-self: start; font: 500 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
/* flex: none : le logo ne se fait jamais écraser par le nom quand la fenêtre est étroite */
.bar__logo { flex: none; width: 22px; height: 22px; overflow: visible; }
#logo { overflow: visible; }
/* le contour du logo garde une épaisseur lisible quelle que soit la taille */
#logo path { vector-effect: non-scaling-stroke; stroke-width: 1px; }
.bar__nav { grid-column: 4 / 10; display: flex; gap: clamp(14px, 2.6vw, 40px); justify-content: center; }
.bar__nav a { position: relative; display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 0; font: 500 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.bar__nav a i { font: 400 10px/1 var(--mono); font-style: normal; opacity: .6; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--e-out); }
.bar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bar__nav a.is-active::after { transform: scaleX(1); }
.bar__meta { grid-column: 10 / 13; justify-self: end; display: flex; gap: 18px; font: 400 11px/1 var(--mono); }
.bar__clock b { font-weight: 400; }
.bar__menu { display: none; }

.menu { position: fixed; inset: 0; z-index: 990; padding: calc(var(--bar-h) + 5vh) var(--pad) var(--pad); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--e-io); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: baseline; gap: 14px; font: 400 clamp(44px, 13vw, 90px)/1 var(--serif); padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu a i { font: 400 11px var(--mono); font-style: normal; }

/* ==========================================================================
   ÉLÉMENTS COMMUNS
   ========================================================================== */
.page-head { padding-top: calc(var(--bar-h) + 7vh); overflow-x: clip; }
.page-head .grid .cell { padding-top: 14px; padding-bottom: 14px; }
.page-title { font: 400 var(--fs-display)/.86 var(--serif); letter-spacing: -.02em; white-space: nowrap; padding: 4vh var(--pad) 3vh; }
.page-title > span { display: inline-block; will-change: transform; }
.page-title .ch { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--e-out); transition-delay: calc(var(--i) * 40ms + .2s); }
.page-title-wrap { overflow: hidden; }
.is-ready .page-title .ch { transform: none; }

.h2 { font: 400 var(--fs-h2)/.98 var(--serif); letter-spacing: -.01em; }
.h3 { font: 400 var(--fs-h3)/1.02 var(--serif); }
.lead { font: 400 var(--fs-lead)/1.18 var(--serif); }
.txt { font: 400 15px/1.6 var(--sans); max-width: 46ch; }
.kv dt { margin-bottom: 8px; }
.kv dd { margin: 0; font: 400 var(--fs-lead)/1.15 var(--serif); }

.link { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; padding-bottom: 4px; position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--e-out); }
.link:hover::after { transform: scaleX(0); }
.link i { font-style: normal; transition: transform .5s var(--e-out); }
.link:hover i { transform: translateX(4px); }

.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; padding: 16px 18px 15px; border: 1px solid var(--fg); font: 500 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--e-out); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateY(101%); transition: transform .55s var(--e-out); z-index: -1; }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn i { font-style: normal; font-family: var(--mono); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.next { display: block; margin-top: 12vh; }
.next .cell { padding-top: 20px; padding-bottom: 5vh; }
.next__t { display: inline-flex; gap: .2em; align-items: baseline; font: 400 clamp(26px, 2.8vw, 44px)/1 var(--serif); letter-spacing: -.01em; }
.next__t i { font-style: normal; display: inline-block; transition: transform .7s var(--e-out); }
.next:hover .next__t i { transform: translateX(.2em); }

.foot { padding-bottom: 6px; }
.foot .cell { padding-top: 18px; padding-bottom: 22px; font: 400 12px/1.4 var(--sans); }
.foot b { font-weight: 400; font-family: var(--mono); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 2600; transform: translate(-50%, calc(100% + 60px)); padding: 12px 16px; background: var(--paper); color: var(--blue); border: 1px solid var(--blue); font: 400 12px var(--mono); transition: transform .6s var(--e-out); }
.toast.is-on { transform: translate(-50%, 0); }

/* ==========================================================================
   ACCUEIL
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--bar-h); overflow: hidden; }
.hero__name { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 4vh var(--pad); font: 400 var(--fs-hero)/.88 var(--serif); letter-spacing: -.015em; will-change: transform; }
.hero__line { display: block; overflow: hidden; white-space: nowrap; padding: .14em 0 .2em; margin: -.14em 0 -.2em; }
.hero__line + .hero__line { padding-left: 25%; }
.ch { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1.2s var(--e-out); transition-delay: calc(var(--i) * 45ms + var(--l) * 150ms + .1s); }
.hero.is-in .ch { transform: none; }
.hero__foot .cell { padding-top: 18px; padding-bottom: 24px; }
.hero__foot p + p { margin-top: 8px; }
.hero__sub { font: 400 var(--fs-lead)/1.15 var(--serif); }
.hero__cue { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 18px; }
.hero__cue .scroll { position: relative; width: 1px; height: 52px; background: var(--line); overflow: hidden; }
.hero__cue .scroll i { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--e-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

.section { padding: 16vh 0 0; }
.section__head .cell { padding-top: 16px; padding-bottom: 26px; }

.intro__text { font: 400 clamp(28px, 3.4vw, 54px)/1.06 var(--serif); letter-spacing: -.005em; }
.intro__text .wd { opacity: var(--o, .16); transition: opacity .25s linear; }
.stat__n { display: block; font: 400 clamp(64px, 8vw, 132px)/.85 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .t-label { display: block; margin-top: 14px; }

/* projets choisis */
.feat { display: grid; cursor: pointer; }
.feat .cell { padding-top: 22px; padding-bottom: 22px; }
.feat__n { font: 400 11px var(--mono); }
.feat__media { padding-bottom: 22px; }
.feat__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: rgba(74,58,204,.06); clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--e-io) .2s; }
.feat.is-in .feat__img { clip-path: inset(0 0 0 0); }
.feat__img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; transition: transform 1.2s var(--e-out); will-change: transform; }
.feat__img .plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.feat:hover .feat__img img { scale: 1.04; }
.feat__info { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.feat__t { font: 400 var(--fs-h2)/.95 var(--serif); letter-spacing: -.01em; transition: transform .7s var(--e-out); }
.feat:hover .feat__t { transform: translateX(.12em); }
.feat__c { font: 400 15px/1.55 var(--sans); max-width: 40ch; }
.feat__info .link { align-self: flex-start; }
.feat--alt .feat__media { order: 3; padding-left: var(--gap); padding-right: 0; }
.feat--alt .feat__info { order: 2; padding-right: var(--gap); }

/* bandeau des disciplines */
.band { overflow: hidden; margin: -6vh 0 6vh; padding: 0; }
.band__track { display: flex; white-space: nowrap; will-change: transform; padding: 4vh 0; }
.band__track span { font: italic 400 clamp(40px, 5vw, 84px)/1 var(--serif); padding: 0 .35em; }
.band__track b { font: 400 11px var(--mono); align-self: center; padding: 0 .6em; opacity: .7; }

/* appel au contact */
.cta-block { padding: 14vh 0 0; }
.cta { display: inline-flex; align-items: baseline; gap: .2em; font: 400 var(--fs-display)/.86 var(--serif); letter-spacing: -.02em; }
.cta i { font-style: normal; display: inline-block; transition: transform .7s var(--e-out); }
.cta:hover i { transform: translateX(.2em); }

/* ==========================================================================
   PROJETS · index
   ========================================================================== */
.arch { margin-top: 4vh; }
.arch__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0 var(--pad); position: relative; align-items: start; }
.arch__body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--e-io); }
.arch__body.is-in::before { transform: scaleX(1); }
.filters { grid-column: span 3; position: sticky; top: var(--bar-h); max-height: calc(100svh - var(--bar-h)); overflow: auto; overscroll-behavior: contain; padding: 0 var(--gap) 30px 0; scrollbar-width: thin; }
.list { grid-column: span 9; position: relative; min-height: 60vh; }
.list::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--e-io) .3s; }
.arch__body.is-in .list::before { transform: scaleY(1); }
.filters-toggle { display: none; }

.f-sec { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.f-sec:last-child { border-bottom: 0; }
.f-sec__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.f-sec__h button { font: 400 10px var(--mono); opacity: .7; }
.f-sec__h button:hover { opacity: 1; text-decoration: underline; }
.f-search { position: relative; }
.f-search input { width: 100%; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; background: transparent; font: 400 20px/1.2 var(--serif); padding: 4px 0 6px; outline: none; }
.f-search input::placeholder { color: var(--soft); }
.f-search input::-webkit-search-cancel-button { display: none; }
.f-opts { display: grid; }
.f-opt { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 5px 0; text-align: left; font: 400 14px/1.25 var(--sans); transition: opacity .3s; }
.f-opt::before { content: ""; width: 9px; height: 9px; border: 1px solid currentColor; background: currentColor; transition: background .3s; }
.f-opt[aria-pressed="false"] { opacity: .45; }
.f-opt[aria-pressed="false"]::before { background: transparent; }
.f-opt.is-zero { opacity: .25; }
.f-opt__n { font: 400 10.5px var(--mono); }
.f-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 6px 8px 5px; border: 1px solid var(--line); font: 500 11px/1 var(--sans); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip sup { font: 400 8px var(--mono); margin-left: 3px; opacity: .65; }
.f-years { display: flex; flex-wrap: wrap; gap: 5px; }
.f-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; }
.f-count { font: 400 34px/1 var(--serif); }
.f-count small { font: 400 11px var(--mono); margin-left: 4px; }
.f-reset { font: 500 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; padding: 8px 10px; border: 1px solid var(--fg); transition: background .3s, color .3s; }
.f-reset:hover { background: var(--fg); color: var(--bg); }

.ix__head, .ix__row { display: grid; grid-template-columns: 56px minmax(0, 3fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 70px 28px; gap: 0 16px; align-items: center; padding: 0 0 0 var(--gap); }
.ix__head { position: sticky; top: var(--bar-h); z-index: 3; height: 44px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ix__head button, .ix__head span { text-align: left; font: 500 10.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; display: inline-flex; gap: 6px; align-items: center; }
.ix__head button i { font: 400 9px var(--mono); font-style: normal; opacity: 0; transition: opacity .2s, transform .3s; }
.ix__head button.is-sort i { opacity: 1; }
.ix__head button.is-desc i { transform: rotate(180deg); }
.ix__list { position: relative; isolation: isolate; }
.ix__row { position: relative; min-height: 76px; border-bottom: 1px solid var(--line); cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .8s var(--e-out), color .35s; transition-delay: var(--rd, 0ms); }
.list.is-in .ix__row { opacity: 1; transform: none; }
.ix__row::before { content: ""; position: absolute; inset: 0 0 0 1px; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--e-out); z-index: -1; }
.ix__row:hover, .ix__row:focus-visible { color: var(--paper); }
.ix__row:hover::before, .ix__row:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.ix__n { font: 400 11px var(--mono); }
.ix__t { font: 400 clamp(24px, 2.2vw, 34px)/1.05 var(--serif); padding: 16px 0 14px; transition: transform .6s var(--e-out); }
.ix__row:hover .ix__t { transform: translateX(10px); }
.ix__d, .ix__c { font: 400 13px/1.3 var(--sans); }
.ix__y { font: 400 11px var(--mono); }
.ix__a { font-style: normal; text-align: right; padding-right: 14px; transition: transform .5s var(--e-out); }
.ix__row:hover .ix__a { transform: translateX(4px); }
.list__empty { padding: 40px var(--gap); font: 400 26px/1.15 var(--serif); }
.list__empty button { text-decoration: underline; }

.preview { position: fixed; left: 0; top: 0; z-index: 800; width: 280px; height: 200px; pointer-events: none; }
.preview__in { position: absolute; inset: 0; background: var(--paper); border: 1px solid var(--blue); overflow: hidden; clip-path: inset(50% 50% 50% 50%); transition: clip-path .5s var(--e-out); }
.preview.is-on .preview__in { clip-path: inset(0 0 0 0); }
.preview img, .preview svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   PLANCHE (fiche projet)
   ========================================================================== */
.planche { position: fixed; inset: 0; z-index: 1500; --ox: 50vw; --oy: 50vh; --or: 0px; clip-path: circle(var(--or) at var(--ox) var(--oy)); }
.planche.is-anim { transition: clip-path 1s var(--e-io); }
.planche__sheet { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); }
.planche__bar { position: sticky; top: 0; z-index: 3; height: var(--bar-h); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; padding: 0 var(--pad); background: var(--paper); }
.planche__bar::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--line); }
.planche__bar > :first-child { grid-column: 1 / 4; }
.planche__bar > :nth-child(2) { grid-column: 4 / 8; }
.planche__nav { grid-column: 8 / 13; justify-self: end; display: flex; gap: 8px; }
.planche__nav button { font: 500 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; padding: 10px 12px; border: 1px solid var(--line); transition: border-color .3s; }
.planche__nav button:hover { border-color: var(--fg); }
.planche__close { background: var(--blue) !important; color: var(--paper); border-color: var(--blue) !important; }
.planche__close i { font-style: normal; margin-left: 6px; }
.pl { min-height: calc(100svh - var(--bar-h)); }
.pl > .grid::before { transform: none; }
.pl__visual { display: grid; gap: 5vh; align-content: start; padding-top: 4vh !important; padding-bottom: 8vh !important; }
.pl__fig { position: relative; margin: 0; }
.pl__fig img { width: 100%; height: auto; }
.pl__fig figcaption { margin-top: 10px; display: flex; justify-content: space-between; font: 400 10.5px var(--mono); }
.pl__plan { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.pl__plan svg { width: 100%; height: 100%; display: block; clip-path: inset(0 100% 0 0); transition: clip-path 2s var(--e-io) .3s; }
.planche.is-ready .pl__plan svg { clip-path: inset(0 0 0 0); }
.pl__note { font: 400 12px/1.45 var(--mono); }
.pl__info { position: sticky; top: var(--bar-h); align-self: start; display: grid; gap: 26px; padding-top: 4vh !important; }
.pl__title { font: 400 clamp(44px, 4.8vw, 84px)/.9 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; }
.pl__desc { font: 400 15px/1.6 var(--sans); max-width: 52ch; }
.pl-table { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pl-table > div { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.pl-table > div:nth-child(odd):not(.w2) { padding-right: 12px; }
.pl-table > div.w2 { grid-column: span 2; }
.pl-table dt { font: 400 9.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--soft); margin-bottom: 3px; }
.pl-table dd { margin: 0; font: 400 14px/1.35 var(--sans); }
.pl__rel ul { border-top: 1px solid var(--line); margin-top: 10px; }
.pl__rel button { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: baseline; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--e-out); }
.pl__rel button:hover { padding-left: 8px; }
.pl__rel b { font: 400 10.5px var(--mono); }
.pl__rel span { font: 400 20px/1.1 var(--serif); }
.pl__rel em { font: 400 10.5px var(--mono); font-style: normal; }
.pl-in { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform 1s var(--e-out); transition-delay: var(--d, 0ms); }
.planche.is-ready .pl-in { opacity: 1; transform: none; }

/* plans générés (projets sans images) */
.plan text { font: 400 10px var(--mono); fill: var(--blue); letter-spacing: .03em; }
.plan .pS { fill: none; stroke: var(--blue); stroke-width: 1.3; }
.plan .pT { fill: none; stroke: var(--blue); stroke-width: .8; opacity: .7; }
.plan .pD { fill: none; stroke: var(--blue); stroke-width: .9; stroke-dasharray: 5 4; }
.plan .pDD { fill: none; stroke: var(--blue); stroke-width: .8; stroke-dasharray: 14 3 2 3; }
.plan .pH { fill: none; stroke: var(--blue); stroke-width: .6; opacity: .22; }
.plan .pH2 { fill: none; stroke: var(--blue); stroke-width: .6; opacity: .38; }
.plan .pG { fill: none; stroke: var(--blue); stroke-width: .5; opacity: .07; }
.plan .pF { fill: var(--blue); stroke: none; }
.plan .pP { fill: var(--paper); stroke: var(--blue); stroke-width: 1.3; }
.plan .pSoft { opacity: .6; }
.plan .pLetter { font-family: var(--serif); fill: var(--blue); }
.plan .pTitle { font: 400 16px var(--serif); }

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.statement { font: 400 clamp(28px, 3.2vw, 52px)/1.08 var(--serif); letter-spacing: -.005em; }
.statement .wd { opacity: var(--o, .16); transition: opacity .25s linear; }

.tbl__row { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4fr); gap: 0 var(--gap); align-items: baseline; padding: 20px 0 22px; }
.tbl__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--e-io); transition-delay: calc(var(--i, 0) * 90ms); }
.tbl__row > * { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1s var(--e-out); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.tbl.is-in .tbl__row::after { transform: scaleX(1); }
.tbl.is-in .tbl__row > * { opacity: 1; transform: none; }
.tbl__y { font: 400 12px var(--mono); }
.tbl__org { font: 400 var(--fs-h3)/1.02 var(--serif); }
.tbl__org em { display: block; font: 400 11px/1.6 var(--mono); font-style: normal; margin-top: 6px; color: var(--soft); }
.tbl__role { font: 500 14px/1.4 var(--sans); }
.tbl__txt { font: 400 14px/1.55 var(--sans); color: var(--soft); }

.scale { display: grid; grid-template-columns: minmax(110px, 2fr) minmax(0, 5fr) minmax(120px, 2fr); gap: var(--gap); align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.scale:first-child { border-top: 1px solid var(--line); }
.scale__n { font: 400 22px/1 var(--serif); }
.scale__v { font: 400 11px var(--mono); text-align: right; }
.scale__r { position: relative; height: 1px; background: var(--line); }
.scale__r i { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--v) / 3 * 100%); background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--e-io); transition-delay: calc(var(--i, 0) * 90ms + .2s); }
.scales.is-in .scale__r i, .is-in .scales .scale__r i { transform: scaleX(1); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.coord { display: grid; }
.coord__item { padding: 18px 0 22px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.coord__item:first-child { padding-top: 0; }
.coord__v { font: 400 clamp(22px, 2vw, 32px)/1.1 var(--serif); overflow-wrap: anywhere; }
.coord__v a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--e-out); }
.coord__v a:hover { background-size: 100% 1px; }
.coord__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.copy { font: 500 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.copy:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.form { display: grid; grid-template-columns: 1fr 1fr; }
.field { position: relative; display: grid; gap: 8px; padding: 0 0 4px; border-bottom: 1px solid var(--line); }
.field:focus-within { border-bottom-color: var(--fg); }
.field--full { grid-column: span 2; }
.form > .field:nth-child(odd):not(.field--full) { padding-right: var(--gap); }
.form > .field:nth-child(even):not(.field--full) { padding-left: var(--gap); border-left: 1px solid var(--line); }
.field label, .field legend { padding-top: 18px; display: flex; justify-content: space-between; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 0; background: transparent; outline: none; color: var(--fg); caret-color: var(--fg);
  font: 400 clamp(22px, 2vw, 32px)/1.2 var(--serif); padding: 4px 0 12px;
}
.field textarea { resize: vertical; min-height: 7.2em; line-height: 1.3; }
.field input::placeholder, .field textarea::placeholder { color: var(--soft); opacity: .7; }
/* saisie automatique du navigateur (adresse mail…) : garder le fond et la couleur du thème */
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--fg); caret-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s ease-out 0s;
}
.field input:autofill { background: transparent; color: var(--fg); }
.field.is-error label { color: #FFD9D9; }
[data-theme="paper"] .field.is-error label { color: #C0392B; }
fieldset.field { margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
fieldset.field legend { width: 100%; padding-bottom: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices label { position: relative; padding: 0; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-block; padding: 9px 12px 8px; border: 1px solid var(--line); font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.choices input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choices input:focus-visible + span { outline: 1px dashed currentColor; outline-offset: 3px; }
.form__send { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; flex-wrap: wrap; }
.form__status { font: 400 12px/1.45 var(--mono); max-width: 46ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .t-s8, .feat__info, .feat__media { grid-column: span 12 !important; }
  .feat .cell + .cell::before { display: none; }
  .feat__media, .feat--alt .feat__media { order: 2; padding: 0 0 10px !important; }
  .feat__info, .feat--alt .feat__info { order: 3; padding: 0 0 26px !important; }
  .feat__n { grid-column: span 12; padding-bottom: 12px !important; }
  /* overflow visible + overscroll auto : le doigt posé sur les filtres fait défiler la page (sinon on restait bloqué) */
  .filters { grid-column: span 12; position: relative; top: 0; max-height: none; overflow: visible; overscroll-behavior: auto; padding: 0; display: none; border-bottom: 1px solid var(--line); }
  .filters.is-open { display: block; }
  .filters-toggle { grid-column: span 12; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 500 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .filters-toggle b { font: 400 11px var(--mono); }
  .list { grid-column: span 12; }
  .list::before { display: none; }
  .ix__head, .ix__row { padding-left: 0; }
  .pl__visual, .pl__info { grid-column: span 12 !important; }
  .pl__info { position: relative; top: 0; order: -1; padding-left: 0 !important; }
  .pl__visual { padding-left: 0 !important; }
  .pl__visual::before { display: none; }
}

@media (max-width: 760px) {
  :root { --bar-h: 54px; --pad: 18px; }
  .bar { grid-template-columns: 1fr auto; }
  .bar__nav, .bar__meta { display: none; }
  .bar__brand { grid-column: 1; }
  .bar__menu { display: inline-block; grid-column: 2; font: 500 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; padding: 9px 12px; border: 1px solid currentColor; }

  .grid > .cell { grid-column: span 12; padding-left: 0 !important; padding-right: 0 !important; }
  .grid > .cell + .cell::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; transform: scaleX(0); transform-origin: left; }
  .grid.is-in > .cell + .cell::before { transform: scaleX(1); }
  .grid > .cell.m6 { grid-column: span 6; }
  .grid > .cell.m6:nth-child(even) { padding-left: var(--gap) !important; }
  .grid > .cell.m6:nth-child(even)::before { left: 0; top: 0; bottom: 0; right: auto; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .grid.is-in > .cell.m6:nth-child(even)::before { transform: scaleY(1); }
  .grid > .cell.m6:nth-child(2)::before { top: 0; }
  .cell--end { justify-content: flex-start; text-align: left; }

  .hero__line + .hero__line { padding-left: 12%; }
  .hero { --fs-hero: 24vw; }
  .page-title { white-space: normal; }
  .section { padding-top: 11vh; }
  .stat__n { font-size: 64px; }

  .ix__head { display: none; }
  .ix__row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .ix__d, .ix__c, .ix__a { display: none; }
  .ix__t { font-size: 23px; }
  .preview { display: none; }

  .tbl__row { grid-template-columns: 70px minmax(0, 1fr); gap: 6px 14px; }
  .tbl__role, .tbl__txt { grid-column: 2; }
  .scale { grid-template-columns: 1fr 1fr; }
  .scale__r { grid-column: 1 / 3; grid-row: 2; }

  .form { grid-template-columns: 1fr; }
  .field--full, .form__send { grid-column: span 1; }
  .form > .field:nth-child(n) { padding-left: 0 !important; padding-right: 0 !important; border-left: 0 !important; }

  .planche__bar { grid-template-columns: 1fr auto; }
  .planche__bar > :nth-child(2) { display: none; }
  .planche__nav { grid-column: 2; }
  .planche__nav .js-pl-prev, .planche__nav .js-pl-next { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   ACCUEIL EN SCÈNES (pas de défilement vertical)
   ========================================================================== */
html.is-home, html.is-home body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.stage { position: fixed; left: 0; right: 0; top: var(--bar-h); bottom: 0; overflow: hidden; touch-action: none; }
/* Toutes les animations de l'accueil sont pilotées par home.js d'après l'avancée
   de la molette : ici, seulement l'état de départ (caché) de chaque élément. */
/* isolation : chaque scène forme sa propre couche, la suivante recouvre entièrement la précédente */
.scene { position: absolute; inset: 0; visibility: hidden; pointer-events: none; isolation: isolate; }
.scene.is-on { pointer-events: auto; }
.scene__lines { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.ln { position: absolute; background: var(--line); }
.ln--h { height: 1px; transform: scaleX(0); transform-origin: left; }
.ln--v { width: 1px; transform: scaleY(0); transform-origin: top; }
.scene.is-past .ln--h { transform-origin: right; }
.scene.is-past .ln--v { transform-origin: bottom; }
.ln.dash { background: repeating-linear-gradient(90deg, var(--soft) 0 6px, transparent 6px 11px); }
.ln.strong { background: var(--fg); }
/* libellés posés à côté des traits (hors du trait, pour ne pas être déformés par son animation) */
.ln-lab { position: absolute; z-index: 3; right: calc(var(--pad) + 34px); transform: translateY(-140%); font: 400 9.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); white-space: nowrap; opacity: 0; pointer-events: none; }

.lx { position: absolute; width: 13px; height: 13px; transform: translate(-50%, -50%) scale(0); z-index: 3; pointer-events: none; }
.lx::before, .lx::after { content: ""; position: absolute; background: var(--fg); }
.lx::before { left: 0; right: 0; top: 6px; height: 1px; }
.lx::after { top: 0; bottom: 0; left: 6px; width: 1px; }

.box { position: absolute; z-index: 3; display: flex; flex-direction: column; padding: 18px var(--gap); min-width: 0; }
.box--l { padding-left: 0; } .box--r { padding-right: 0; }
.box--bottom { justify-content: flex-end; }
.box--center { justify-content: center; }
.scene .it { opacity: 0; transform: translate3d(0, 26px, 0); }

/* scène 1 : le nom et ses traits de construction */
.home-name { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 84%; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); font: 400 var(--fs-hero)/.88 var(--serif); letter-spacing: -.015em; }
.home-name .hero__line + .hero__line { padding-left: 25%; }
.scene .ch { transform: translate3d(0, 150%, 0); opacity: 0; }
.g-circle { position: absolute; z-index: 2; border-radius: 50%; transform: scale(.2); opacity: 0; pointer-events: none; }
/* le cercle en pointillé tourne lui aussi, en sens inverse de l'axe */
.g-circle__ring { position: absolute; inset: 0; border: 2px dashed var(--soft); border-radius: 50%; animation: ring-spin 14s linear infinite reverse; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
/* axe en pointillé qui tourne : épais pour que la rotation se lise */
.g-circle::after { content: ""; position: absolute; left: 50%; top: -22%; bottom: -22%; margin-left: -1px; border-left: 2px dashed var(--soft); transform: rotate(22deg); animation: spin 9s linear infinite; }
.g-dim { position: absolute; z-index: 2; height: 9px; border-left: 1px solid var(--fg); border-right: 1px solid var(--fg); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.g-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--fg); }
.g-dim-lab { position: absolute; z-index: 3; transform: translate(-50%, -50%); padding: 2px 6px; background: var(--bg); font: 400 10px/1 var(--mono); white-space: nowrap; opacity: 0; pointer-events: none; }

/* scène 2 : bandeau défilant sur images en couleur */
.tk-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0; clip-path: inset(calc((1 - var(--bgw, 0)) * 100%) 0 0 0); }
.tk-img { position: absolute; inset: 0; clip-path: inset(var(--c, 100%) 0 0 0); background: var(--blue); }
.tk-img:first-child { --c: 0%; --z: 1; }
.tk-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.12)); }
/* voile neutre pour garder le texte blanc lisible, sans teinter les images */
.tk-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.18) 45%, rgba(0,0,0,.5)); }
.scene--ticker { --line: rgba(255,255,255,.55); --soft: rgba(255,255,255,.75); }
.tk-band { position: absolute; z-index: 3; left: 0; right: 0; display: flex; align-items: center; overflow: hidden; }
.tk-track { display: flex; white-space: nowrap; will-change: transform; opacity: 0; }
.tk-track span { font: italic 400 clamp(56px, 9.5vw, 168px)/1 var(--serif); letter-spacing: -.01em; padding-right: .35em; }
.tk-track b { font: 400 12px var(--mono); align-self: center; padding-right: .9em; opacity: .7; }
.tk-cap > span { display: inline-block; transition: opacity .25s ease, transform .4s var(--e-out); }
.tk-cap.is-swap > span { opacity: 0; transform: translateY(-6px); }
.big { font: 400 var(--fs-display)/.88 var(--serif); letter-spacing: -.02em; }
.big a { display: inline-flex; gap: .18em; align-items: baseline; }
.big i { font-style: normal; display: inline-block; transition: transform .7s var(--e-out); }
.big a:hover i { transform: translateX(.18em); }
.scene .big .w > span { transform: none; }   /* l'accueil anime ces mots avec « translate » (home.js) */
.scene .big .w > span, .scene .big i { translate: 0 150%; opacity: 0; }
.phrase { font: 400 clamp(22px, 2.3vw, 38px)/1.12 var(--serif); }

/* scène 3 : vignettes */
.thumb { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.thumb__img { position: relative; flex: 1; min-height: 0; overflow: hidden; background: rgba(74,58,204,.07); clip-path: inset(100% 0 0 0); }
.thumb__img img, .thumb__img svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-out); }
.thumb:hover .thumb__img img { transform: scale(1.05); }
.thumb__t { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.thumb__t span { font: 400 clamp(17px, 1.4vw, 22px)/1.1 var(--serif); }

/* navigation entre scènes */
.dots { background: transparent !important; position: absolute; z-index: 5; right: calc(var(--pad) / 2); top: 50%; transform: translate(50%, -50%); display: grid; gap: 14px; color: var(--fg); }
.dots button { width: 22px; height: 22px; position: relative; }
.dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: width .5s var(--e-out); }
.dots button[aria-current="true"]::before { width: 18px; height: 1px; }
.dots button::after { content: attr(data-n); position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font: 400 9px var(--mono); opacity: 0; transition: opacity .3s; }
.dots button[aria-current="true"]::after, .dots button:hover::after { opacity: 1; }
.hint-arrow { display: inline-block; animation: nudge 1.8s var(--e-io) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (max-width: 760px) {
  .home-name .hero__line + .hero__line { padding-left: 12%; }
  .home-name { --fs-hero: 22vw; }
  .dots { display: none; }
  .thumb--extra { display: none; }
  .box { padding: 12px 10px; }
  .phrase { font-size: 19px; }

  /* ouverture : seulement le nom et le cadre, sans les tracés de construction */
  .g-circle, .g-arc, .g-tick, .g-dim, .g-dim-lab, .g-scan, .ln-lab,
  .ln.dash, .ln.base, .lx--dash, .lx--base { display: none !important; }

  /* « Voir plus de projets » et « Me contacter » : uniquement le texte et la flèche */
  .scene--solo .scene__lines, .scene--solo .box:not(.box--big) { display: none !important; }
  .scene--solo .box--big { top: 0 !important; height: 100% !important; justify-content: center; }
  .scene--solo .big a { display: inline; }   /* la flèche suit le dernier mot */
}

/* passage d'une scène à l'autre : le fond monte comme une feuille */
.stage .scene { background-color: transparent; }
.stage { transition: background-color 0s; }
.scene::before { content: ""; position: absolute; inset: 0; background: var(--bg); transform: scaleY(var(--bgw, 0)); transform-origin: bottom; z-index: 0; }

/* ==========================================================================
   OUVERTURE · animation de construction (suit la progression de la scène)
   ========================================================================== */
.g-tick { position: absolute; z-index: 2; width: 1px; height: 12px; background: var(--fg); transform: translate(-50%, 2px) scaleY(0); transform-origin: top; pointer-events: none; }
.g-scan { position: absolute; z-index: 4; width: 1px; background: var(--fg); opacity: 0; pointer-events: none; }
.g-scan::before { content: ""; position: absolute; left: -4px; top: 0; width: 9px; height: 1px; background: var(--fg); }
.g-scan::after { content: ""; position: absolute; left: -4px; bottom: 0; width: 9px; height: 1px; background: var(--fg); }
.g-scan span { position: absolute; left: 8px; top: -2px; font: 400 10px/1 var(--mono); white-space: nowrap; }
.g-arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.g-arc__p { fill: none; stroke: var(--fg); stroke-opacity: .7; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.g-arc__p2 { stroke-dasharray: .006 .008; stroke-dashoffset: 0; stroke-width: 1.4; opacity: 0; }
.g-arm { opacity: 0; }
.g-arm line { stroke: var(--fg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.g-arm .g-arm__in { stroke-width: 1.6; }
.g-arm__tip { fill: var(--fg); }
.g-pivot { fill: var(--bg); stroke: var(--fg); stroke-width: 2; opacity: 0; }
@keyframes spin { from { transform: rotate(22deg); } to { transform: rotate(382deg); } }

/* rangées sans filets verticaux (méta, pied de page) */
.grid--flat > .cell::before, .grid--flat > .cell > .x { display: none; }

/* ==========================================================================
   BANDEROLE (page projets)
   ========================================================================== */
.ribbon { position: relative; margin: 12vh var(--pad) 0; overflow: hidden; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform: scaleX(0); transition: transform 1.6s var(--e-io); }
.ribbon::before { top: 0; transform-origin: left; }
.ribbon::after { bottom: 0; transform-origin: right; }
.ribbon.is-in::before, .ribbon.is-in::after { transform: scaleX(1); }
.ribbon__track { display: flex; white-space: nowrap; padding: 12px 0 11px; will-change: transform; }
.ribbon__track span { font: italic 400 clamp(20px, 1.8vw, 28px)/1 var(--serif); padding: 0 .5em; }
.ribbon__track b { font: 400 10px/1 var(--mono); align-self: center; opacity: .7; }

/* coordonnées du curseur */
.cursor__xy { position: absolute; left: 14px; top: 14px; display: flex; gap: 10px; font: 400 9px/1 var(--mono); letter-spacing: .06em; white-space: nowrap; opacity: .85; transition: transform .35s var(--e-out); }
.cursor__xy i { font-style: normal; opacity: .55; margin-right: 4px; }
.cursor.is-hover .cursor__xy { transform: translateY(14px); }
.cursor__tag { left: 14px; top: 2px; }



/* ==========================================================================
   PROJETS · index en vignettes
   ========================================================================== */
.ix-title { grid-column: 4 / span 9; }
.ix__head { display: flex; flex-wrap: wrap; gap: 6px 22px; grid-template-columns: none; padding: 0 0 0 var(--gap); }
.ix__sortlbl { opacity: .55; }
.ix__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 24px; padding: 28px 0 40px var(--gap); }
.ix__row.ix__card { display: flex; flex-direction: column; gap: 0; padding: 0; min-height: 0; border-bottom: 0; color: inherit; }
.ix__card::before { display: none; }
.ix__card:hover, .ix__card:focus-visible { color: inherit; }
.ix__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.ix__img img, .ix__img svg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--e-out); }
.ix__img::after { content: ""; position: absolute; inset: 0; background: var(--blue); mix-blend-mode: multiply; opacity: 0; transition: opacity .5s var(--e-out); }
.ix__card:hover .ix__img img, .ix__card:hover .ix__img svg, .ix__card:focus-visible .ix__img img { transform: scale(1.04); }
.ix__card:hover .ix__img::after, .ix__card:focus-visible .ix__img::after { opacity: .35; }
.ix__meta { display: flex; justify-content: flex-start; text-align: left; padding: 12px 0 6px; border-bottom: 1px solid var(--line); }
.ix__card .ix__t { padding: 10px 0 4px; font-size: clamp(22px, 1.9vw, 30px); }
.ix__card:hover .ix__t { transform: translateX(6px); }
.ix__card { align-items: flex-start; text-align: left; }
.ix__card .ix__t, .ix__card .ix__d { display: block; width: 100%; text-align: left; }
.ix__card .ix__t { padding-top: 14px; }
.ix__head { display: none !important; }
.ix__card .ix__d { opacity: .7; }
@media (max-width: 1000px) {
  .ix__head, .ix__list { padding-left: 0; }
}
@media (max-width: 760px) {
  .ix-title { grid-column: span 12; }
  .ix__head { display: flex; position: relative; top: 0; height: auto; padding: 14px 0; }
  .ix__row.ix__card { grid-template-columns: none; }
  .ix__card .ix__d { display: block; font-size: 12px; }
  .ix__card .ix__t { font-size: 21px; }
  .ix__list { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
}
@media (max-width: 460px) {
  .ix__list { grid-template-columns: 1fr; }
}

/* CONTACT · sans filets entre les champs */
.coord__item, .field, fieldset.field, .field:focus-within { border-bottom: 0; }
.form > .field:nth-child(even):not(.field--full) { border-left: 0; }

/* À PROPOS · uniquement les traits principaux */
.grid--plain > .cell + .cell::before, .grid--plain > .cell.m6:nth-child(even)::before { display: none; }
.tbl__row::after, .tbl__row::before { display: none; }
.scale { border-bottom: 0; }

/* CONTACT · texte à gauche, formulaire sur une seule colonne à droite */
.contact-intro { display: flex; flex-direction: column; gap: 22px; }
.contact-intro__t { font: 400 clamp(26px, 2.6vw, 40px)/1.1 var(--serif); max-width: 14ch; }
.form { grid-template-columns: 1fr; }
.form > .field, .field--full, .form__send { grid-column: 1 / -1; }
.form > .field:nth-child(odd):not(.field--full), .form > .field:nth-child(even):not(.field--full) { padding-left: 0; padding-right: 0; }
.form > .field:first-child label { padding-top: 0; }
