/* Portfolio Romane Pasco
   Une seule typo (Helvetica / Arial), trois tailles, le bleu comme unique couleur de texte.
   La couleur vient des images et des aplats repris du PDF. Aucun effet d'apparition. */

:root {
  --blue: #0019ff;
  --line: rgba(0, 25, 255, .22);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-s: 13px;                             /* légendes, mentions */
  --fs-m: 15px;                             /* navigation, tableaux */
  --fs-l: clamp(18px, 1.45vw, 23px);        /* textes d'introduction */
  --gut: clamp(16px, 2.2vw, 32px);          /* marge de page */
  --gap: clamp(8px, .9vw, 14px);            /* écart entre images */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: #fff; color: var(--blue);
  font-family: var(--font); font-size: var(--fs-m); line-height: 1.3;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body { background: #fff; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer; }
img {
  display: block;
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
}
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }

html:not(.lang-en) .en, html.lang-en .fr { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Liens de texte : soulignement fin, aplat bleu au survol */
.plead a, .hintro a, .cv a, .foot a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.plead a:hover, .hintro a:hover, .cv a:hover, .foot a:hover,
.plead a:focus-visible, .hintro a:focus-visible, .cv a:focus-visible, .foot a:focus-visible { background: var(--blue); color: #fff; text-decoration: none; outline: none; }

/* ---------- Navigation : une ligne, collée en haut ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px var(--gut);
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-m);
}
.top nav { display: flex; gap: clamp(14px, 2vw, 32px); }
.top a, .top button { padding: 0 3px; margin: 0 -3px; }
.top a:hover, .top button:hover, .top a:focus-visible, .top button:focus-visible { background: var(--blue); color: #fff; outline: none; }
.top a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--blue); }
.top a[aria-current="page"]:hover { box-shadow: none; }

/* ---------- Pied de page ---------- */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px;
  padding: 18px var(--gut) 22px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-s);
}
.foot > :nth-child(2) { justify-self: center; }
.foot > :last-child { justify-self: end; }

/* ================================================================
   Couverture et contact : cadre Figma 1920 x 1080 à l'échelle
   ================================================================ */
.slide {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  container-type: inline-size; background: var(--bg, #fff);
  --u: calc(100cqw / 1920); --t: max(var(--u), .95px);
}
.stage { position: absolute; inset: 0; overflow: hidden; }
@supports not (width: 1cqw) {  /* navigateurs anciens : la couverture prend toute la largeur, on se règle sur l'écran */
  .slide { --u: calc(100vw / 1920); }
  .cardbox { --u: calc(min(100vw, 1180px) * .4 / 614); }
}
.a {
  position: absolute;
  left: calc(var(--x, 0) * var(--u)); top: calc(var(--y, 0) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
}
.a > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.copy {
  position: absolute; z-index: 6;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  display: flex; flex-direction: column; align-items: var(--ai, flex-start);
  gap: calc(var(--g, 0) * var(--t));
}
.copy.my { transform: translateY(-50%); }
.copy.mx { transform: translateX(-50%); }
.copy.mx.my { transform: translate(-50%, -50%); }
.index-title { font-size: calc(16 * var(--t)); }
.index-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.index-title a:hover, .index-title a:focus-visible { background: var(--blue); color: #fff; text-decoration: none; outline: none; }
.chrome > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* métal rendu en direct : le canvas remplace l'image fixe dès qu'il est prêt */
.alu .alu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.alu.alu-on > img { visibility: hidden; }
/* Cadre de texte : quatre bandes posées sur le tracé du PDF (rectangle 64→1857 × 60→1019),
   texte au même corps que le titre de couverture, défilement continu par transform (fluide, sans coût) */
.ring { position: absolute; inset: 0; pointer-events: none; font-size: calc(16 * var(--t)); line-height: 1; color: var(--blue); }
.rg {
  position: absolute; height: 1em; overflow: hidden; transform-origin: 0 0; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.2em, #000 calc(100% - 2.2em), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 2.2em, #000 calc(100% - 2.2em), transparent);
}
.rg-t { left: calc(84 * var(--u)); top: calc(60 * var(--u) - .5em); width: calc(1753 * var(--u)); }
.rg-r { left: calc(1857 * var(--u) + .5em); top: calc(80 * var(--u)); width: calc(919 * var(--u)); transform: rotate(90deg); }
.rg-b { left: calc(1837 * var(--u)); top: calc(1019 * var(--u) + .5em); width: calc(1753 * var(--u)); transform: rotate(180deg); }
.rg-l { left: calc(64 * var(--u) - .5em); top: calc(999 * var(--u)); width: calc(919 * var(--u)); transform: rotate(-90deg); }
.rg-run { display: flex; width: max-content; will-change: transform; }
.rg-half { display: flex; }
.rg-half > span { padding-right: 2.6em; }
.rg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.js .rg-canvas { display: block; }
.js .ring .rg { display: none; }

/* ================================================================
   Accueil : phrase d'intro + grille de projets
   ================================================================ */
.hintro {
  padding: clamp(48px, 7vw, 120px) var(--gut) clamp(40px, 5vw, 80px);
  font-size: var(--fs-l); line-height: 1.25; letter-spacing: -0.015em;
}
.hintro p { max-width: 34em; }
.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: clamp(28px, 3.2vw, 52px);
  padding: 0 var(--gut) clamp(80px, 9vw, 160px);
}
.card-p { display: block; }
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f2; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.contain img { object-fit: contain; padding: 6%; }
.card-p .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font-size: var(--fs-m); }
.card-p .cap > :first-child { padding: 0 2px; margin-left: -2px; }
.card-p:hover .cap > :first-child, .card-p:focus-visible .cap > :first-child { background: var(--blue); color: #fff; }
.card-p:focus-visible { outline: none; }

/* ================================================================
   Labo : carnet d'expérimentations, une entrée par ligne
   ================================================================ */
.lintro { padding: clamp(20px, 2.5vw, 40px) var(--gut) clamp(20px, 2.5vw, 36px); font-size: var(--fs-s); opacity: .65; }
.labo { padding: 0 var(--gut) clamp(80px, 9vw, 160px); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 96px); }
.entry { display: block; }
/* les images d'abord : une bande haute qui défile */
.e-strip {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  padding-bottom: 4px; text-decoration: none;
}
.e-strip img { flex: none; height: clamp(200px, 24vw, 420px); width: auto; }
.e-strip .thumb { flex: none; width: clamp(260px, 32vw, 560px); }
/* ---------- Labo : blog en une colonne, façon Tumblr ---------- */
.blog.single { max-width: 860px; padding-top: 0; }
.blog { max-width: 620px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--gut) clamp(80px, 9vw, 160px); box-sizing: content-box; }
.b-head { display: flex; align-items: center; gap: 14px; padding-bottom: clamp(28px, 4vw, 48px); }
.b-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.b-name { font-size: var(--fs-m); font-weight: 400; }
.b-intro { font-size: var(--fs-s); opacity: .65; }
.bpost { padding: 0 0 clamp(48px, 6vw, 80px); }
.bpost + .bpost { border-top: 1px solid var(--line); padding-top: clamp(28px, 3.5vw, 40px); }
.photoset { display: flex; flex-direction: column; gap: 4px; }
.ps-row { display: flex; gap: 4px; }
.ps-it { position: relative; display: block; flex: calc(var(--ar) * 100) 1 0; min-width: 0; aspect-ratio: var(--ar); padding: 0; border: 0; overflow: hidden; background: #f2f2f2; }
.photoset .ps-it img, .photoset .ps-it video, .photoset .ps-it iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; }
.ps-it iframe { transform: scale(1.02); }
/* image seule : pleine largeur, mais une verticale ne dépasse pas ~80 % de la hauteur d'écran */
.ps-row:has(> .ps-it:only-child) { justify-content: center; }
.ps-it:only-child { flex: none; width: min(100%, calc(68vh * var(--ar))); }
button.ps-it { cursor: zoom-in; }
.photoset .ps-it.strip-it { height: auto; }
.ps-it:hover, .ps-it:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; z-index: 1; }
.b-cap { padding-top: 16px; }
.b-title { font-size: var(--fs-m); font-weight: 400; line-height: 1.25; }
.b-title a:hover { background: var(--blue); color: #fff; }
.b-text { margin-top: 6px; font-size: var(--fs-m); line-height: 1.5; }
.b-text p + p { margin-top: .7em; }
.b-title.big { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.b-textpost { padding-top: 0; }
.b-textpost + .photoset { margin-top: 18px; }
.b-text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.b-text a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.b-quote { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.02em; }
.b-quote p::before { content: "« "; } .b-quote p::after { content: " »"; }
html.lang-en .b-quote p::before { content: "“"; } html.lang-en .b-quote p::after { content: "”"; }
.b-quote p + p { margin-top: .5em; }
.b-source { margin-top: 12px; font-size: var(--fs-m); }
.b-link { display: block; border: 1px solid var(--line); }
.b-link:hover { border-color: var(--blue); }
.b-link-img { position: relative; display: block; aspect-ratio: 1.91; overflow: hidden; background: #f2f2f2; }
.b-link-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-link-img img.rcrop { inset: auto; height: auto; object-fit: initial; }
.b-link-t { display: block; padding: 12px 14px 2px; font-size: var(--fs-m); }
.b-link-h { display: block; padding: 0 14px 12px; font-size: var(--fs-s); opacity: .6; }
.b-link:hover .b-link-t { color: #fff; background: var(--blue); }
.b-video { position: relative; aspect-ratio: var(--ar, 1.7778); background: #000; }
.b-video iframe, .b-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: var(--fs-s); opacity: .65; }
.b-foot a { padding: 0 3px; margin: 0 -3px; }
.b-foot a:hover { background: var(--blue); color: #fff; opacity: 1; }

/* ---------- son des vidéos et codes d'intégration ---------- */
.has-snd { position: relative; }
.snd { position: absolute; right: 8px; bottom: 8px; z-index: 3; padding: 2px 7px; font-size: var(--fs-s); line-height: 1.4;
  background: rgba(255, 255, 255, .88); color: var(--blue); border: 0; cursor: pointer; pointer-events: auto; }
.snd:hover, .snd:focus-visible { background: var(--blue); color: #fff; outline: none; }
.snd .s-on { display: none; } .snd.on .s-on { display: inline; } .snd.on .s-off { display: none; }
.frame.embed { background: #f2f2f2; }
.frame.embed iframe, .photoset .ps-it.embed iframe, .mosaic .m-it.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: auto; }
.embed-vide { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-s); opacity: .6; }

/* ---------- Planches : mosaïque serrée de toute la matière d'un post ---------- */
.posts {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  row-gap: clamp(40px, 5vw, 80px); padding: 0 var(--gut) clamp(80px, 9vw, 160px);
}
.post { grid-column: span 12; min-width: 0; }
.post.m { grid-column: span 7; }
.post.s { grid-column: span 5; }
.p-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px;
  border-top: 1px solid var(--line); padding: 6px 0 8px; font-size: var(--fs-s);
}
.p-title { font-size: var(--fs-m); font-weight: 400; line-height: 1.2; }
.p-title a:hover { background: var(--blue); color: #fff; }
.p-tags { opacity: .65; }
.p-count { margin-left: auto; opacity: .55; }
.mosaic { --rh: clamp(76px, 7.6vw, 150px); display: flex; flex-wrap: wrap; gap: 3px; }
.post.l .mosaic { --rh: clamp(84px, 8.6vw, 170px); }
.mosaic::after { content: ""; flex: 1000 1 0; }
.mosaic .m-it {
  position: relative; display: block; flex: var(--ar) 1 calc(var(--ar) * var(--rh));
  height: var(--rh); max-width: 100%; overflow: hidden; padding: 0; border: 0; background: #f2f2f2;
}
.mosaic .m-it img, .mosaic .m-it video, .mosaic .m-it iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; }
.mosaic .m-it iframe { transform: scale(1.02); }
button.m-it { cursor: zoom-in; }
.mosaic .m-it:hover, .mosaic .m-it:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; z-index: 1; }
.mosaic .m-it:hover img { outline: 0; }
.mosaic .m-note {
  --ar: .95; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  padding: 7px 8px; font-size: 11px; line-height: 1.32; text-decoration: none; opacity: .8;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.mosaic .m-note:hover { background: var(--blue); color: #fff; outline: 0; opacity: 1; -webkit-mask-image: none; mask-image: none; }
/* rangée « planche » dans une page de projet */
.row.mosaic-row { padding: 6px 0; }
.row.mosaic-row[data-rh="s"] .mosaic { --rh: clamp(70px, 7vw, 130px); }
.row.mosaic-row[data-rh="l"] .mosaic { --rh: clamp(140px, 17vw, 320px); }
.row.mosaic-row.tinted { background: var(--rbg); margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 14px var(--gut); }
@media (max-width: 760px) {
  .post.m, .post.s { grid-column: 1 / -1; }
  .mosaic, .post.l .mosaic { --rh: 92px; }
  .p-count { margin-left: 0; }
}

/* vidéos de la bande : même hauteur que les images, animées au survol */
.e-strip .e-vid { flex: none; position: relative; display: block; height: clamp(200px, 24vw, 420px); overflow: hidden; background: #000; }
.e-strip .e-vid img, .e-strip .e-vid video, .e-strip .e-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; }
.e-strip .e-vid iframe { transform: scale(1.02); }
/* légende discrète sous les images */
.e-cap {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: baseline; padding-top: 8px; font-size: var(--fs-s);
}
.e-date { grid-column: 1 / span 1; }
.e-title { grid-column: 2 / span 3; font-weight: 400; font-size: var(--fs-m); line-height: 1.2; }
.e-title a:hover { background: var(--blue); color: #fff; }
.e-tags { grid-column: 5 / span 3; opacity: .65; }
.e-text {
  grid-column: 8 / span 5; line-height: 1.4; opacity: .85;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ================================================================
   Page projet : tableau + texte, puis images
   ================================================================ */
/* Lecture : sur grand écran, le contenu des pages garde une largeur confortable (≈ 1180 px) ;
   les aplats et photos de fond restent pleine largeur, leurs marges suivant la même variable */
.project, .page, .next { --gut: max(clamp(16px, 2.2vw, 32px), calc((100vw - 1180px) / 2)); }
.project { --pinfo-pb: clamp(36px, 5vw, 88px); }
.project:has(.pinfo.compact) { --pinfo-pb: clamp(20px, 2.5vw, 40px); }
.pinfo {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: clamp(28px, 4vw, 72px) var(--gut) var(--pinfo-pb);
  align-items: start;
}
.ptable { grid-column: 1 / span 4; font-size: var(--fs-m); }
.ptable div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 6px 0 7px; border-top: 1px solid var(--line); }
.ptable div:last-child { border-bottom: 1px solid var(--line); }
.plead { grid-column: 6 / span 6; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.45; letter-spacing: -0.005em; max-width: 40em; }
/* Labo : une seule ligne d'infos, le texte éventuel en petit dessous */
.pinfo.compact { padding-top: clamp(20px, 2.5vw, 40px); font-size: var(--fs-s); }
.pinfo.compact .ptable { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.pinfo.compact .ptable div, .pinfo.compact .ptable div:last-child { display: flex; gap: 8px; padding: 0; border: 0; }
.pinfo.compact .ptable dt { opacity: .55; }
.pinfo.compact .plead { grid-column: 1 / span 7; margin-top: 12px; font-size: var(--fs-m); }
.plead p + p { margin-top: .75em; }
.plead .acts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 1.1em; font-size: var(--fs-m); }

/* Images : grille de 12 colonnes, écarts réguliers */
.flow { padding: 0 var(--gut); display: flex; flex-direction: column; gap: var(--gap); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--gap); align-items: start; }
.row:not(.tint, .bgimg, .bleed) + .row:not(.tint, .bgimg, .bleed),
.row:is(.tint, .bgimg, .bleed) + .row:not(.tint, .bgimg, .bleed),
.row:not(.tint, .bgimg, .bleed) + .row:is(.tint, .bgimg, .bleed) { margin-top: clamp(40px, 6vw, 110px); }
.it { grid-column: var(--c) / span var(--s); align-self: var(--a); margin-top: var(--mt); }
.it > img { width: 100%; height: auto; }
.it img.flip, .row > img.flip { transform: scaleX(-1); }
.frame { position: relative; overflow: hidden; width: 100%; }
.frame img { position: absolute; max-width: none; }
.frame img.filled { inset: 0; width: 100%; height: 100%; object-fit: fill; }

/* Pages pleines du PDF : aplat, photo de fond, photo bord à bord (elles se touchent) */
.row.tint, .row.bgimg, .row.bleed { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); }
.row:is(.tint, .bgimg, .bleed) + .row:is(.tint, .bgimg, .bleed) { margin-top: calc(-1 * var(--gap)); }
.row.tint { background: var(--rbg); padding: clamp(48px, 7vw, 130px) var(--gut); }
.row.bleed { display: block; }
.row.bleed > img { width: 100%; height: auto; max-height: 88vh; object-fit: cover; }
.row.bgimg { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 110px) var(--gut); }
/* format « page » : la proportion 16:9 d'une planche du PDF, contenu centré */
.row.page { min-height: min(56.25vw, 78vh); align-content: center; }
.row.bgimg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row.bgimg > .it { position: relative; }

/* Vidéos : boucle muette ou lecture au clic */
.frame.vid { background: #0d0d0d; }
.frame.vid iframe, .frame.vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vthumb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vthumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; color: var(--blue); font-size: 13px; line-height: 1; padding: 9px 11px 9px 13px;
}
.vthumb:hover .play, .vthumb:focus-visible .play { background: var(--blue); color: #fff; }
.thumb video, .thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; pointer-events: none; }
.thumb iframe { transform: scale(1.35); }
.thumb .tposter { pointer-events: none; }
.thumb.playing .tposter { visibility: hidden; }

/* Espace au-dessus d'une rangée, réglé dans l'éditeur (sinon : règle automatique) */
.flow > .row[data-sp] { margin-top: var(--sp) !important; }
.flow > .row[data-sp="touch"] { --sp: calc(-1 * var(--gap)); }
.flow > .row[data-sp="tight"] { --sp: 0px; }
.flow > .row[data-sp="s"] { --sp: clamp(20px, 3vw, 48px); }
.flow > .row[data-sp="m"] { --sp: clamp(40px, 6vw, 110px); }
.flow > .row[data-sp="l"] { --sp: clamp(80px, 10vw, 180px); }
.flow > .row[data-sp="xl"] { --sp: clamp(120px, 15vw, 280px); }
/* première rangée : l'espace se compte depuis l'en-tête */
.flow > .row:first-child[data-sp="touch"] { --sp: calc(-1 * var(--pinfo-pb, clamp(36px, 5vw, 88px))); }
.flow > .row:first-child[data-sp="tight"] { --sp: calc(-1 * var(--pinfo-pb, clamp(36px, 5vw, 88px)) + 16px); }
.flow > .row:first-child[data-sp="s"] { --sp: calc(-1 * var(--pinfo-pb, clamp(36px, 5vw, 88px)) + clamp(20px, 3vw, 48px)); }
.flow > .row:first-child[data-sp="m"] { --sp: 0px; }

/* Paragraphes posés dans les rangées */
.it.txt { align-self: var(--a); }
.tx { font-size: var(--fs-l); line-height: 1.32; letter-spacing: -0.012em; max-width: 36em; }
.tx.tx-s { font-size: var(--fs-m); line-height: 1.42; letter-spacing: -0.005em; }
.tx.tx-l { font-size: clamp(24px, 2.6vw, 44px); line-height: 1.12; letter-spacing: -0.025em; max-width: 24em; }
.tx p + p { margin-top: .75em; }
.tx a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.tx a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.tx.tx-box { background: #fff; padding: .55em .7em .65em; }
.tx.c-white { color: #fff; } .tx.c-white a:hover { background: #fff; color: var(--blue); }
.tx.c-black { color: #111; }
.tx.tx-box.c-white { background: rgba(0, 0, 0, .55); }

/* Superposition : toutes les images sur la même ligne de grille, l'ordre fait l'empilement */
.row.stack > .it { grid-row: 1; position: relative; }

/* Recadrage réglé dans l'éditeur */
.frame img.fitc { inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* rognage de l'éditeur : l'image est agrandie et décalée dans un cadre à la proportion de la zone gardée */
img.rcrop, .mosaic .m-it img.rcrop, .photoset .ps-it img.rcrop { position: absolute; inset: auto; max-width: none; height: auto; object-fit: initial; }
.frame.flipc { transform: scaleX(-1); }
.strip-it .rc-box { position: relative; display: block; height: 100%; overflow: hidden; }

/* Bande de recherche / coulisses : petites images en ligne, défilement horizontal */
.row.strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.row.strip.tinted { background: var(--rbg); border: 0; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 14px var(--gut); }
.strip-lab { grid-column: 1 / span 2; font-size: var(--fs-s); }
.strip-lab span { opacity: .55; margin-left: .3em; }
.row.strip.nolab .strip-track { grid-column: 1 / -1; }
.strip-track {
  grid-column: 3 / -1; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-bottom: 4px;
}
.strip-it { flex: none; padding: 0; height: clamp(84px, 9vw, 150px); }
.strip-it img { height: 100%; width: auto; }
.strip-it:hover img, .strip-it:focus-visible img { outline: 1px solid var(--blue); outline-offset: 2px; }

/* Visionneuse des bandes */
.lightbox { position: fixed; inset: 0; z-index: 95; background: #fff; display: grid; place-items: center; visibility: hidden; padding: 56px var(--gut); }
.lightbox.on { visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); width: auto; height: auto; }
.lightbox .close { position: absolute; top: 14px; right: var(--gut); padding: 0 3px; }
.lightbox .close:hover, .lightbox .close:focus-visible, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--blue); color: #fff; outline: none; }
/* flèches : petites, à mi-hauteur, seulement s'il y a plusieurs images */
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); padding: 2px 7px; font-size: 18px; line-height: 1.2; }
.lightbox .lb-prev { left: calc(var(--gut) - 7px); }
.lightbox .lb-next { right: calc(var(--gut) - 7px); }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
.lightbox .lb-count { position: absolute; bottom: 16px; left: var(--gut); font-size: var(--fs-s); }

/* Bandes GRG tournées à la verticale */
.vstrip { position: relative; width: 100%; container-type: size; }
.vstrip img { position: absolute; left: 50%; top: 50%; width: 100cqh; height: 100cqw; max-width: none; transform: translate(-50%, -50%) rotate(90deg); }
/* Colonne d'origamis superposés */
.oricol { container-type: inline-size; filter: drop-shadow(0 1px .5px rgba(0, 0, 0, .07)); }
.oricol img { width: 100%; height: auto; margin-bottom: calc(-343 / 693 * 100cqw); position: relative; }
.oricol img:last-child { margin-bottom: 0; }

/* Cartes Fayot (vecteurs masqués) */
.cardbox { container-type: inline-size; --u: calc(100cqw / 614); }
.cards { display: flex; align-items: center; gap: calc(30.74 * var(--u)); }
.card { flex: none; position: relative; overflow: hidden; background: #242424; border-radius: calc(6.549 * var(--u)); padding: calc(9.823 * var(--u)); }
.card .inner { position: relative; width: calc(var(--cw) * var(--u)); height: calc(var(--ch) * var(--u)); }
.card .inner > * { position: absolute; }
.card .art {
  left: calc(var(--ax, 0) * var(--u)); top: calc(var(--ay, 0) * var(--u));
  width: calc(var(--aw) * var(--u)); height: calc(var(--ah) * var(--u));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.card .art img { width: 100%; height: 100%; }
.card .cn { left: calc(var(--cx) * var(--u)); top: calc(var(--cy) * var(--u)); width: calc(var(--s) * var(--u)); height: calc(var(--s2, var(--s)) * var(--u)); }
.card .cn.r { display: flex; align-items: center; justify-content: center; }
.card .cn.r img { width: calc(13.444 * var(--u)); height: calc(13.444 * var(--u)); transform: rotate(-45.03deg) skewX(-.06deg); }
.card .cn > img { width: 100%; height: 100%; }
.card.round { border-radius: 50%; padding: calc(5.035 * var(--u)); width: calc(189.317 * var(--u)); height: calc(189.317 * var(--u)); }
.card.round img { width: calc(179.247 * var(--u)); height: calc(179.247 * var(--u)); object-fit: cover; }

/* Projet suivant */
.next {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: clamp(80px, 10vw, 180px);
  padding: 14px var(--gut) clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.nprev { grid-column: 1 / span 3; align-self: start; }
.nprev { padding: 0 3px; margin-left: -3px; }
.nprev:hover, .nprev:focus-visible { background: var(--blue); color: #fff; outline: none; }
.nnext { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
.nnext .cap { grid-column: 1; grid-row: 1; align-self: start; }
.nnext .name { grid-column: 1; grid-row: 2; align-self: end; justify-self: start; font-size: clamp(28px, 3.2vw, 52px); line-height: 1; letter-spacing: -0.035em; }
.nnext .thumb { grid-column: 2; grid-row: 1 / span 2; }
.nnext:hover .name { background: var(--blue); color: #fff; }

/* ================================================================
   À propos
   ================================================================ */
.page { padding: clamp(40px, 6vw, 110px) var(--gut) clamp(80px, 8vw, 140px); }
.cv { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); font-size: var(--fs-m); line-height: 1.35; }
.cv > div:first-child { grid-column: 1 / span 7; }
.cv-side { grid-column: 9 / span 4; position: relative; }
.cv .intro { font-weight: 400; font-size: var(--fs-l); line-height: 1.28; letter-spacing: -0.015em; max-width: 30em; }
.cv .intro + p { margin-top: 1em !important; font-size: var(--fs-l); line-height: 1.28; letter-spacing: -0.015em; max-width: 30em !important; }
.cv section { margin-top: clamp(48px, 5vw, 80px); }
.cv h2 { font-weight: 400; font-size: var(--fs-s); margin-bottom: 8px; }
.cv h2 span { background: none; color: inherit; padding: 0; }
.cv dl { display: grid; grid-template-columns: 7.5em 1fr; }
.cv dl > * { padding: 7px 0 8px; border-top: 1px solid var(--line); }
.cv dd p + p { margin-top: 2px; }
.cv .muted { opacity: .62; }
.cv .tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.cv .tools > div { padding: 7px 0 8px; border-top: 1px solid var(--line); }
.cv-side .portrait { position: sticky; top: 72px; width: 100%; max-width: 340px; margin-left: auto; }
.cv-side .portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
/* portrait dans son cadre de métal : la photo passe sous l'ouverture du cadre (1100 × 1563) */
.cv-side .portrait.framed { position: sticky; aspect-ratio: 1100 / 1563; max-width: 380px; }
.cv-side .portrait.framed .ph { position: absolute; left: 14%; top: 9.7%; width: 71.5%; height: 80.6%; aspect-ratio: auto; object-fit: cover; object-position: 50% 40%; }
.alu.alu-fill { position: absolute; inset: 0; }
.alu.alu-fill > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.cv .cvdl { display: inline-block; margin-top: 40px; }
/* mentions légales : une colonne de lecture */
.legal { max-width: 46em; font-size: var(--fs-m); line-height: 1.5; }
.legal .intro { font-weight: 400; font-size: var(--fs-l); margin-bottom: clamp(28px, 4vw, 56px); }
.legal section { padding: 10px 0 18px; border-top: 1px solid var(--line); }
.legal h2 { font-weight: 400; font-size: var(--fs-s); opacity: .65; margin-bottom: 6px; }
.legal p + p { margin-top: .4em; }
.legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.legal a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.foot-r { display: flex; gap: 18px; justify-self: end; }

/* ================================================================
   Contact
   ================================================================ */
.contact-list { font-size: max(calc(30 * var(--u)), 18px); line-height: 1.35; letter-spacing: -0.02em; }
.contact-list a:hover, .contact-list a:focus-visible { background: var(--blue); color: #fff; outline: none; }
.contact-list small { display: block; font-size: max(calc(16 * var(--u)), 13px); letter-spacing: -0.01em; margin-top: 18px; }

/* ---------- Vidéo, notification ---------- */
.vmodal { position: fixed; inset: 0; z-index: 90; background: rgba(255, 255, 255, .97); display: grid; place-items: center; visibility: hidden; }
.vmodal.on { visibility: visible; }
.vmodal .frame { width: min(92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.vmodal iframe { width: 100%; height: 100%; border: 0; display: block; }
.vmodal .close { position: absolute; top: 14px; right: var(--gut); color: var(--blue); padding: 0 3px; }
.vmodal .close:hover, .vmodal .close:focus-visible { background: var(--blue); color: #fff; outline: none; }
.toast { position: fixed; left: 50%; top: 56px; z-index: 80; transform: translateX(-50%); visibility: hidden; background: var(--blue); color: #fff; padding: 2px 6px; font-size: var(--fs-s); }
.toast.on { visibility: visible; }

/* ================================================================
   Tablette et mobile
   ================================================================ */
@media (max-width: 900px) {
  .e-date { grid-column: 1 / span 2; }
  .e-title { grid-column: 3 / span 6; }
  .e-tags { grid-column: 9 / -1; }
  .e-text { grid-column: 1 / -1; margin-top: 4px; }
  .e-date { grid-column: 1 / span 3; }
  .e-title, .e-tags { grid-column: 4 / -1; }
  .e-text { grid-column: 1 / -1; grid-row: auto; }
  .strip-lab { grid-column: 1 / -1; margin-bottom: 8px; }
  .strip-track { grid-column: 1 / -1; }
  .row.stack > .it { grid-row: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptable, .plead { grid-column: 1 / -1; }
  .plead { margin-top: 32px; }
  .cv > div:first-child { grid-column: 1 / -1; }
  .cv-side { grid-column: 1 / -1; grid-row: 1; margin-bottom: 32px; }
  .cv-side .portrait { position: relative; top: 0; max-width: 260px; margin: 0; }
  .cv-side .portrait.framed { position: relative; max-width: 280px; }
  .it { grid-column: 1 / -1; margin-top: 0; align-self: start; }
  .it[style*="--s:1;"], .it[style*="--s:2;"], .it[style*="--s:3;"] { grid-column: span 6; }
  .it[style*="--s:4;"] { grid-column: 2 / span 10; }
  .row.page { min-height: 0; }
  .nprev { grid-column: 1 / -1; margin-bottom: 24px; }
  .nnext { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .top { padding: 10px var(--gut); }
  .top nav { gap: 14px; }
  .foot { grid-template-columns: 1fr; gap: 6px; }
  .foot > * { justify-self: start !important; }
  /* couverture et contact : le cadre garde son image, le texte passe dessous */
  .slide { aspect-ratio: auto; padding-top: 56.25%; --t: 1px; }
  .stage { bottom: auto; height: calc(1080 * var(--u)); }
  .copy { position: relative; left: auto; top: auto; transform: none !important; padding: 20px var(--gut) 32px; }
  .index-title { font-size: var(--fs-m); }
  .ring { font-size: 10px; }
  .contact-list { font-size: 20px; }
}
