/* Portfolio Vincent Blasini — reconstruction statique du site Framer
   Monochrome, angles droits, Satoshi 500 en capitales, marges de 20 px, filets #1a1a1a. */
:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --line: #1a1a1a;
  --mark: #262626;
  --text: #ffffff;
  --muted: #7d7d7d;
  --muted-2: #999999;
  --dim: #333333;          /* mots pas encore « allumés » */
  --field-line: #2e2e2e;
  --placeholder: #5c5c5c;   /* exemples des champs lisibles (était #3a3a3a, trop proche du fond) */
  --error: #ff7a7a;
  --header-bg: rgba(15, 15, 15, 0.8);
  --font: "Satoshi", "Inter", system-ui, sans-serif;
  --clock-font: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --gutter: 20px;
  color-scheme: dark;
}
/* Mode clair : mêmes règles, valeurs inversées (monochrome) */
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --line: #e6e6e6;
  --mark: #e4e4e4;
  --text: #0f0f0f;
  --muted: #6f6f6f;
  --muted-2: #555555;
  --dim: #c9c9c9;
  --field-line: #c8c8c8;
  --placeholder: #949494;
  --error: #d93636;
  --header-bg: rgba(255, 255, 255, 0.85);
  color-scheme: light;
}
/* fondu doux uniquement pendant le changement de thème */
.theme-switching, .theme-switching * { transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), stroke 0.5s var(--ease) !important; }
/* Ressort Framer (bounce 0) : x(t) = 1 − (1 + ωt)·e^(−ωt), ω·d ≈ 9,23 */
@supports (transition-timing-function: linear(0, 1)) {
  :root { --ease: linear(0, 0.0003 0.3%, 0.0028 0.8%, 0.0097 1.6%, 0.0231 2.5%, 0.0442 3.6%, 0.0736 4.8%, 0.1114 6.1%, 0.1569 7.6%, 0.2089 9.2%, 0.2660 10.9%, 0.3266 12.7%, 0.3891 14.6%, 0.4518 16.6%, 0.5134 18.6%, 0.5725 20.8%, 0.6284 23.1%, 0.6802 25.4%, 0.7274 27.9%, 0.7699 30.4%, 0.8076 33.0%, 0.8406 35.7%, 0.8691 38.4%, 0.8934 41.3%, 0.9139 44.2%, 0.9311 47.1%, 0.9453 50.2%, 0.9569 53.3%, 0.9663 56.5%, 0.9739 59.8%, 0.9799 63.1%, 0.9846 66.5%, 0.9883 70.0%, 0.9912 73.5%, 0.9934 77.1%, 0.9951 80.8%, 0.9964 84.5%, 0.9974 88.3%, 0.9981 92.1%, 0.9986 96.0%, 1); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }   /* 26/11 : pas de saut de largeur quand la page est rognée pendant la transition */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--text); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

/* ---------- Typographie (styles du portfolio) ---------- */
.t-label { font-size: 15px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; text-transform: uppercase; }
.t-body { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.t-h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.t-h1 { font-size: 64px; font-weight: 500; letter-spacing: -0.08em; line-height: 1; text-transform: uppercase; }
.t-card { font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Liens texte : blancs, gris au survol (ressort 0,4 s) */
.link { transition: color 0.4s var(--ease); }
.link:hover { color: var(--muted-2); }
/* « Underline Link » du portfolio : actif = texte souligné d'un filet de 0,5 px ; survol = texte et filet gris #999 */
.ulink { display: inline-flex; align-self: flex-start; padding-block: 4px; border-bottom: 0.5px solid var(--text); color: var(--text); transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.ulink:hover { color: var(--muted-2); border-color: var(--muted-2); }
.works-head .ulink, .p-title .ulink, .p-next-head .ulink { align-self: flex-end; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 var(--gutter);
  transition: background 0.4s var(--ease);
}
.site-header.scrolled { background: var(--header-bg); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.logo img { width: 44px; height: 29px; }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 15px; font-weight: 400; text-transform: uppercase; transition: color 0.4s var(--ease); }
.nav a:hover { color: var(--muted-2); }
.header-end { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.clock { font-family: var(--clock-font); font-size: 15px; font-weight: 400; letter-spacing: -0.04em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
/* Bouton clair / sombre : carré à moitié rempli + libellé */
.theme-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; text-transform: uppercase; transition: color 0.4s var(--ease); }
.theme-btn:hover { color: var(--muted-2); }
.theme-icon { width: 12px; height: 12px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); transition: transform 0.6s var(--ease); }
:root[data-theme="light"] .theme-icon { transform: rotate(180deg); }
.menu-btn { display: none; font-size: 15px; font-weight: 400; text-transform: uppercase; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 48px; font-weight: 500; letter-spacing: -0.06em; line-height: 1.2; text-transform: uppercase; transition: color 0.4s var(--ease); }
.mobile-menu a:hover { color: var(--muted-2); }

/* ---------- Structure ---------- */
main { min-height: 100vh; }
.wrap { width: 100%; max-width: 1920px; margin: 0 auto; padding-inline: var(--gutter); }
.divider { height: 1px; background: var(--line); }
.above { position: relative; z-index: 2; background: var(--bg); }

/* ---------- Accueil : hero collé, le reste glisse par-dessus ---------- */
.hero { position: relative; z-index: 1; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-bottom: 40px; }
.hero-title { font-size: clamp(40px, 10.4vw, 200px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.8; text-transform: uppercase; white-space: nowrap; padding-bottom: 0.08em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 10px 60px rgba(0, 0, 0, 0.7); }
/* sous-titre à l'échelle de la référence (21 px à 1440 px), avec la même ombre que le nom */
.hero-foot .hero-sub { font-size: clamp(15px, 1.46vw, 21px); font-weight: 400; line-height: 1.33; letter-spacing: -0.01em; text-transform: none; color: rgba(255, 255, 255, 0.8); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 4px 24px rgba(0, 0, 0, 0.7); }
.hero-sub { margin-top: 20px; }
.hero-arrow { margin-top: 20px; display: inline-flex; padding: 4px; color: var(--text); background: none; border: 0; }
.hero-arrow svg { display: block; }

/* À propos : accroche révélée au défilement, chiffres clés, portrait fixe, tableaux à filets */
.about { padding-block: 80px 120px; display: flex; flex-direction: column; gap: 56px; }
.ab-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
/* bouton de téléchargement du CV, carré et monochrome comme le reste */
.cv-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border: 1px solid var(--text); color: var(--text); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.cv-btn:hover { background: var(--text); color: var(--bg); }
.ab-statement { max-width: 1400px; font-size: clamp(30px, 3.6vw, 56px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.08; text-transform: uppercase; text-wrap: balance; }
.ab-statement .lw { color: var(--dim); transition: color 0.6s var(--ease); }
.ab-statement .lw.on { color: var(--text); }
.ab-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.ab-block { display: flex; flex-direction: column; gap: 16px; }
.ab-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ab-rows li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--line); }
/* chaque ligne tient sur une seule ligne, le texte trop long est coupé proprement */
.ab-rows li > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ab-rows li > * { transition: transform 0.6s var(--ease), color 0.4s var(--ease); }
.ab-rows li:hover > .t-body { transform: translateX(8px); }
.ab-rows li:hover > .muted { color: var(--text); }
/* Outils : logos au trait (un seul contour blanc), en grille à filets */
/* Outils : bandeau qui défile seul (à la manière du ticker de logos du template Porto) ;
   la liste est répétée 3 fois et bouclée sans à-coup. Le défilement est piloté en JS (initTicker) :
   on peut le saisir et le faire glisser à gauche ou à droite, avec élan au lâcher */
.ab-ticker { overflow: hidden; padding-block: 10px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%); }
.ab-ticker.drag { cursor: grabbing; }
.ab-ticker img { -webkit-user-drag: none; pointer-events: none; }
.ab-ticker-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; will-change: transform; }
.ab-ticker li { flex: none; width: clamp(170px, 16vw, 240px); margin-right: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px 24px; border: 1px solid var(--line); background: var(--bg); text-align: center; }
.tool-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.tool-use { font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--muted); text-wrap: balance; }
.ab-ticker .tool-logo { width: clamp(44px, 4.4vw, 64px); height: clamp(44px, 4.4vw, 64px); object-fit: contain; margin-bottom: 10px; transition: transform 0.6s var(--ease); }
/* logo Framer noir : passé en blanc sur le fond sombre */
:root:not([data-theme="light"]) .tool-framer { filter: invert(1); }
.ab-ticker li:hover .tool-logo { transform: scale(1.12); }

.works { padding-block: 40px 80px; display: flex; flex-direction: column; gap: 20px; }
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; padding-bottom: 60px; }
.work { display: flex; flex-direction: column; gap: 20px; }
.work-media { aspect-ratio: 0.8; overflow: hidden; background: var(--surface); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover .work-media img { transform: scale(1.025); }
.work-details { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Grille de projets (page Projets, services, autres projets) ---------- */
.page-top { padding-block: 160px 60px; display: flex; flex-direction: column; gap: 40px; }
.page-head { display: flex; flex-direction: column; gap: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 16px; }
/* filtres : inactif gris #999 → blanc au survol ; actif blanc souligné → gris au survol */
.tags a { padding-block: 4px; font-size: 15px; font-weight: 400; text-transform: uppercase; color: var(--muted-2); border-bottom: 0.5px solid transparent; transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.tags a:hover { color: var(--text); }
.tags a.on { color: var(--text); border-color: var(--text); }
.tags a.on:hover { color: var(--muted-2); border-color: var(--muted-2); }
/* bouton Cas d'études : à part des filtres, encadré d'un filet avec un petit carré plein */
.tags .tag-case { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 4px 12px; border: 0.5px solid var(--muted); color: var(--text); }
.tags .tag-case sup { font-size: 9px; line-height: 1; margin-left: -4px; color: var(--muted-2); align-self: flex-start; margin-top: 2px; }
.tag-case-mark { width: 6px; height: 6px; background: currentColor; transition: transform 0.6s var(--ease); }
.tags .tag-case:hover { border-color: var(--text); color: var(--text); }
.tags .tag-case:hover .tag-case-mark { transform: rotate(45deg); }
.tags .tag-case.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tags .tag-case.on sup { color: var(--bg); }
.tags .tag-case.on:hover { color: var(--bg); border-color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; display: block; aspect-ratio: 463 / 579; overflow: hidden; background: var(--surface); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* au survol : dégradé noir depuis le bas + titre et catégorie en fondu (ressort 0,6 s) */
.card::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0)); opacity: 0; transition: opacity 0.6s var(--ease); }
.card-info { color: #fff; position: absolute; inset: auto 0 0 0; z-index: 3; padding: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 4px; opacity: 0; transition: opacity 0.6s var(--ease); }
.card:hover::after, .card:hover .card-info, .card:focus-visible .card-info, .card:focus-visible::after { opacity: 1; }

/* ---------- Page projet ---------- */
.p-hero { padding-top: 160px; display: flex; flex-direction: column; gap: 20px; }
.p-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.p-feature img, .p-feature video { width: 100%; height: auto; }
.p-details { padding: 20px var(--gutter); display: flex; gap: 0; }
.p-details > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; }
.p-meta { display: flex; gap: 20px; }
.p-meta > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; }
.p-gallery { padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p-gallery .wide { grid-column: span 2; }
.p-gallery img, .p-gallery video { width: 100%; height: auto; background: var(--surface); }
.p-next { padding: 80px var(--gutter); display: flex; flex-direction: column; gap: 20px; }
.p-next-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.p-next .grid { gap: 12px; }

/* ---------- Page « test » : colonne d'infos fixe + visuels (inspiré de sainthilaire.pro) ---------- */
.pt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; padding-block: 112px 160px; align-items: start; }   /* 26/11 : 260 → 160 px, Vincent trouvait le noir sous les visuels trop grand */
.pt-side { position: sticky; top: calc(var(--header-h) + 20px); }
.pt-side-in { display: flex; flex-direction: column; gap: 16px; padding-right: clamp(0px, 2vw, 32px); }
/* 27/11 : en desktop, la colonne de textes tient dans l'écran ; si les textes ouverts sont trop longs, elle défile seule.
   Barre maison (.pt-sbar, toujours visible quand ça dépasse ; la barre système est masquée car elle disparaît sur Mac) */
.pt-sbar { display: none; }
@media (min-width: 810px) {
  .pt-sbar { display: block; }
  .pt-side { display: flex; max-height: calc(100vh - var(--header-h) - 40px); }
  .pt-side-in { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .pt-side-in::-webkit-scrollbar { display: none; }
  .pt-sbar { position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--line); opacity: 0; transition: opacity .4s var(--ease), width .2s; cursor: pointer; }
  .pt-sbar::before { content: ""; position: absolute; inset: 0 -8px; }
  .pt-side.can-scroll .pt-sbar { opacity: 1; }
  .pt-sbar > i { position: absolute; left: 0; top: 0; width: 100%; height: var(--h, 0); transform: translateY(var(--y, 0)); background: var(--muted-2); }
  .pt-sbar:hover, .pt-sbar.drag { width: 3px; }
  .pt-sbar:hover > i, .pt-sbar.drag > i { background: #fff; }
}

.pt-back { margin-bottom: 24px; }

.pt-title { font-size: clamp(44px, 4.6vw, 80px); font-weight: 500; letter-spacing: -0.07em; line-height: 0.92; text-transform: uppercase; overflow-wrap: anywhere; }
.pt-accs { margin-top: 24px; border-top: 1px solid var(--line); }
.pt-acc { border-bottom: 1px solid var(--line); }
.pt-acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding-block: 16px; font-size: 15px; font-weight: 500; text-transform: uppercase; text-align: left; transition: color 0.4s var(--ease); }
.pt-acc-btn:hover { color: var(--muted-2); }
/* plus / moins dessiné en CSS */
.pt-acc-icon { position: relative; width: 11px; height: 11px; flex: none; }
.pt-acc-icon::before, .pt-acc-icon::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 1px; background: currentColor; transition: transform 0.5s var(--ease); }
.pt-acc-icon::after { transform: rotate(90deg); }
.pt-acc.open .pt-acc-icon::after { transform: rotate(0deg); }
.pt-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.pt-acc.open .pt-acc-body { grid-template-rows: 1fr; }
.pt-acc-body > div { overflow: hidden; }
.pt-acc-body .t-body { padding-bottom: 20px; color: var(--muted-2); line-height: 1.35; }
.pt-dl { margin: 0; padding-bottom: 16px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; align-items: baseline; }
.pt-dl > div { display: contents; } /* une seule grille : les valeurs s'alignent d'une ligne à l'autre */
.pt-dl dt, .pt-dl dd { white-space: nowrap; }
.pt-dl dd { margin: 0; }
.pt-visuals { display: flex; flex-direction: column; gap: 12px; }
.pt-vrow { display: grid; gap: 12px; }
.pt-vrow.n2 { grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr))); }
/* lignes « téléphone » d'une série : transparentes en desktop (les visuels restent dans la grille de la rangée) */
.pt-line { display: contents; }
/* visuels d'une même série (stories) : une ligne, colonnes proportionnelles pour une hauteur commune */
.pt-vrow.grp { grid-template-columns: var(--cols); }
/* visuel portrait seul (« half » dans data.js) : demi-largeur, à gauche, pour ne pas occuper tout l'écran */
.pt-vrow.half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-anim img, .pt-anim video { width: 100%; height: auto; background: var(--surface); }
/* Apparition des créations (esprit sainthilaire.pro) : montée douce de 40 px + fondu,
   l'image se pose dans son cadre (104 % → 100 %) ; décalage de 120 ms dans une paire */
/* 27/11 : comme le portfolio Framer, les créations apparaissent en simple fondu (1,4 s, ressort sans rebond), à moitié visibles */
.pt-anim { margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.pt-anim.in { opacity: 1; }
.pt-media { overflow: hidden; }
/* visuel recadré en carré (centré) */
.pt-media.sq { aspect-ratio: 1; }
.pt-media.sq .pt-par, .pt-media.sq .pt-par > img { width: 100%; height: 100%; }
.pt-media.sq .pt-par > img { object-fit: cover; }
.pt-par > img, .pt-par > video { display: block; }
/* Plus de projets : bande horizontale à faire glisser */
.pt-more { padding-block: 80px 120px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 32px; }
.pt-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pt-strip { display: flex; gap: 12px; overflow-x: auto; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.pt-strip::-webkit-scrollbar { display: none; }
.pt-strip.drag { cursor: grabbing; scroll-snap-type: none; }
/* 29/11 : « Découvrez d'autres… » = trois cartes sur la largeur (une par ligne sur téléphone), plus de bande à faire glisser */
.pt-strip.pt-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; cursor: auto; scroll-snap-type: none; }
.pt-strip.pt-three .pt-card { width: auto; }
@media (max-width: 809px) { .pt-strip.pt-three { grid-template-columns: 1fr; gap: 32px; } }
.pt-card { flex: none; width: clamp(240px, 26vw, 400px); display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.pt-card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.pt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); pointer-events: none; }
.pt-card:hover .pt-card-img img { transform: scale(1.05); }
.pt-card-txt { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Contact ---------- */
.contact { min-height: 100vh; padding-block: 160px 80px; display: flex; flex-direction: column; gap: 56px; }
/* titre à gauche, phrase calée sur la colonne de droite et sur la ligne de base du titre */
.contact-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 20px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.contact-head p { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; max-width: 30ch; text-wrap: balance; padding-bottom: 0.15em; }

/* Formulaire : champs soulignés, angles droits, monochrome */
.cform { display: flex; flex-direction: column; gap: 44px; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
.cf-field { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.cf-field input, .cf-field textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--field-line); border-radius: 0; padding: 6px 0 14px;
  color: var(--text); font: 500 clamp(20px, 1.8vw, 28px)/1.2 var(--font); letter-spacing: -0.03em; outline: none;
  transition: border-color 0.4s var(--ease);
}
.cf-field textarea { resize: vertical; min-height: 180px; line-height: 1.3; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--placeholder); }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--text); }
.cf-field.err input, .cf-field.err textarea { border-color: var(--error); }
.cf-types legend { padding: 0; margin-bottom: 14px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { position: relative; }
.cf-field .cf-chip input { position: absolute; inset: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.cf-chip span { display: inline-block; padding: 10px 14px; border: 1px solid var(--field-line); font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--muted); transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.cf-chip:hover span { color: var(--text); border-color: var(--muted); }
.cf-chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.cf-chip input:focus-visible + span { outline: 1px solid var(--text); outline-offset: 2px; }
.cf-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cf-status { color: var(--muted); min-height: 1.2em; }
.cf-status[data-kind="ok"] { color: var(--text); }
.cf-status[data-kind="err"] { color: var(--error); }
.cf-submit { display: inline-flex; align-items: center; gap: 28px; padding: 18px 22px; background: var(--text); color: var(--bg); border: 1px solid var(--text); font-size: 15px; font-weight: 500; text-transform: uppercase; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.cf-submit span:last-child { transition: transform 0.6s var(--ease); }
.cf-submit:hover { background: transparent; color: var(--text); }
.cf-submit:hover span:last-child { transform: translateX(6px); }
.cf-submit:disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Avis : « Ils en parlent mieux que moi » (défilement repris de sainthilaire.pro) ---------- */
.testi { position: relative; }
.testi-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* titre sur une seule ligne, dimensionné pour passer entre les deux colonnes d'avis */
.testi-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; margin: 0; white-space: nowrap; text-align: center; font-size: clamp(28px, 2.4vw, 46px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; text-transform: uppercase; }
.testi-list-title { font-size: clamp(18px, 6.2vw, 40px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.testi-slot { position: absolute; top: 50%; width: clamp(280px, 27vw, 400px); transform: translateY(-50%); }
.testi-slot.left { left: clamp(20px, 4vw, 64px); }
.testi-slot.right { right: clamp(20px, 4vw, 64px); }
.testi-slot .testi-card { transform: translate3d(0, 100vh, 0); will-change: transform; }
.testi-card { display: flex; flex-direction: column; gap: 20px; }
.testi-card blockquote { margin: 0; font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
.testi-card .t-body > span:first-child { color: var(--text); }
/* signature : nom, poste @ENTREPRISE sur une seule ligne (corps ajusté par fitBylines) */
.testi-card .t-by { white-space: nowrap; letter-spacing: -0.03em; }
.testi-list { display: none; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; z-index: 2; background: var(--bg); display: flex; flex-direction: column; padding: 96px var(--gutter) 24px; }
/* Footer à la Eclipsis : liens + CTA, filet, logotype géant en dégradé, copyright */
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 0.5px solid var(--line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 48px; }
.footer-top a { font-size: 15px; font-weight: 400; text-transform: uppercase; }
.footer-top a { display: inline-flex; align-items: flex-start; gap: 3px; transition: color 0.4s var(--ease); }
.footer-top a:hover { color: var(--muted-2); }
.footer-count { font-size: 10px; line-height: 1; margin-top: -1px; }
.footer-mark { display: block; margin-top: clamp(24px, 3.5vw, 52px); }
.footer-mark:hover .fmark-a { stop-color: var(--muted-2); }
/* « Let's create » en défilement infini vers la gauche, d'un bord à l'autre de l'écran */
.footer-mark { overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
.fmark-defs { position: absolute; }
.fmark-track { display: flex; width: max-content; animation: fmark-loop 26s linear infinite; }
.fmark-track svg { display: block; flex: none; width: calc(100vw - var(--gutter) * 2); height: auto; overflow: visible; margin-right: 6vw; }
@keyframes fmark-loop { to { transform: translateX(-50%); } }
/* 27/11 : sur mobile, « Let's create » était trop petit (≈ 45 px de haut) : lettres ~1,8× plus grandes, même vitesse de défilement (fmark-mobile) */
@media (max-width: 809px) { .fmark-track { animation-duration: 46s; } .fmark-track svg { width: 175vw; margin-right: 10vw; } }
@media (max-width: 0px) /* 27/11 : ancien « prefers-reduced-motion », désactivé comme sur Framer */ { .fmark-track { animation: none; } }
.footer-mark text { font-family: 'Satoshi', sans-serif; font-weight: 500; font-size: 160px; letter-spacing: -0.02em; }
.fmark-a { stop-color: var(--mark); transition: stop-color 0.4s var(--ease); }
.fmark-b { stop-color: var(--bg); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(32px, 4vw, 56px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a, .copyright { font-size: 13px; font-weight: 400; text-transform: uppercase; }
.footer-links a { transition: color 0.4s var(--ease); }
.footer-links a:hover { color: var(--muted-2); }

/* ---------- Apparitions (paramètres du portfolio) ---------- */
/* mots : flou 10 px, y 10 px, échelle .95, ressort 1,8 s, 0,1 s entre les mots */
.split .w { display: inline-block; white-space: nowrap; opacity: 0.001; filter: blur(10px); transform: translateY(10px) scale(0.95); }
/* fin de l'apparition : plus de flou ni de calque par mot (Safari gardait chaque mot en image, texte moins net et défilement plus lourd) */
.split .w.done { animation: none; opacity: 1; filter: none; transform: none; }
.split.in .w { animation: wIn 1.8s var(--ease) forwards; animation-delay: calc(var(--start, 200ms) + var(--i) * 100ms); }
@keyframes wIn { to { opacity: 1; filter: blur(0); transform: none; } }
/* blocs : sans flou, ressort 1,6 s */
.reveal { opacity: 0.001; transform: translateY(10px) scale(0.95); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); transition-delay: var(--d, 100ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.blur { filter: blur(10px); transition: opacity 1.8s var(--ease), filter 1.8s var(--ease), transform 1.8s var(--ease); transition-delay: var(--d, 100ms); }
.reveal.blur.in { filter: blur(0); }
/* 27/11, réglages du portfolio Framer : visuels, cartes et blocs en fondu seul (1,4 s, 0,2 s de retard, à moitié visibles) ;
   textes ligne par ligne (y 10 px, échelle .95, 1,6 s, 0,1 s entre deux lignes) dès qu'ils entrent à l'écran */
.reveal.fade { transform: none; transition: opacity 1.4s var(--ease) 0.2s; }
.reveal.lines { opacity: 1; transform: none; transition: none; }
.reveal.lines .wl { display: inline-block; opacity: 0.001; transform: translateY(10px) scale(0.95); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--d, 100ms) + var(--l, 0) * 100ms); }
.reveal.lines.in .wl { opacity: 1; transform: none; }

/* ---------- Transition de page ---------- */
#page { position: relative; z-index: 2; background: var(--bg); }
.page-exit { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; background: var(--bg); contain: strict; will-change: transform, opacity; }
.page-exit * { animation-play-state: paused !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* expériences et parcours l'un sous l'autre pour que chaque ligne reste entière */
  .ab-two { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 809px) {
  :root { --header-h: 60px; --gutter: 16px; }
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .header-end { gap: 16px; }
  .t-h1 { font-size: 48px; }
  .t-h2 { font-size: 32px; }
  .works-head, .p-title, .p-next-head, .p-details, .p-meta { flex-direction: column; }
  .ab-two { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .testi-track { display: none; }
  .testi-list { display: flex; flex-direction: column; gap: 56px; padding-block: 80px; }
  .cf-row { grid-template-columns: minmax(0, 1fr); }
  .pt-layout { grid-template-columns: minmax(0, 1fr); padding-top: 96px; gap: 40px; }
  .pt-side { position: static; }
  /* séries et paires : une ou plusieurs lignes calculées dans app.js, chaque ligne pleine largeur et de hauteur commune */
  .pt-vrow.ml { display: flex; flex-direction: column; gap: 6px; }
  .pt-vrow.ml > .pt-line { display: grid; grid-template-columns: var(--lc); gap: 6px; align-items: start; }
  .pt-vrow.half { grid-template-columns: minmax(0, 1fr); }
  .pt-more-head { flex-direction: column; align-items: flex-start; }
  .contact-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ab-rows li { grid-template-columns: 1fr; gap: 4px; }
  .ab-rows li > * { white-space: normal; }
  .works-grid, .grid, .p-gallery { grid-template-columns: minmax(0, 1fr); }
  .p-gallery .wide { grid-column: auto; }
  .p-details { gap: 40px; }
  .card-info, .card::after { opacity: 1; }
  .site-footer { padding-top: 72px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-nav { flex-direction: column; gap: 10px; }
  .footer-top a, .footer-top .theme-btn { font-size: 22px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-row .copyright { order: 1; }
}
/* ---------- Curseur (angles droits, monochrome, comme le reste du site) ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-frame { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease); }
.cursor-dot.on, .cursor-frame.on { opacity: 1; }
/* point : carré blanc de 6 px, en mode différence pour rester visible partout */
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor-dot.hide { opacity: 0; }
/* cadre : carré fin qui suit avec un léger retard */
.cursor-frame { width: 0; height: 0; }
.cursor-frame::before { content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.35); mix-blend-mode: difference; transition: transform 0.6s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.cursor-frame span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0.6); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity 0.3s var(--ease), transform 0.6s var(--ease); }
.cursor-frame.link::before { transform: scale(1.5); border-color: #fff; }
.cursor-frame.view::before { transform: scale(2.4); background: var(--text); border-color: var(--text); mix-blend-mode: normal; }
.cursor-frame.view span { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-frame.press::before { transform: scale(0.8); }
.cursor-frame.view.press::before { transform: scale(2.1); }

@media (max-width: 0px) /* 27/11 : ancien « prefers-reduced-motion », désactivé comme sur Framer */ {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .split .w, .reveal, .reveal .wl { opacity: 1; filter: none; transform: none; }
  .pt-anim, .pt-par > img, .pt-par > video { opacity: 1; transform: none; }
  /* pas de défilement automatique : le bandeau se fait défiler à la main */
  .ab-ticker-track { animation: none; }
  .ab-ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* visionneuse plein écran */
.pt-media:not(.pt-cover) { cursor: zoom-in; }
.has-cursor .pt-media { cursor: none; }
.lb { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: var(--bg); opacity: 0; transition: opacity 0.5s var(--ease); }
.lb.on { opacity: 1; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: calc(var(--gutter) * 2) var(--gutter) 0; }
.lb-media { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform: scale(0.96); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.6s var(--ease); }
.lb.on .lb-media { transform: none; opacity: 1; animation: lb-in 0.6s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } }
.lb-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 20px var(--gutter); }
.lb-bar button { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.lb-nav { display: flex; gap: 32px; }
.lb-close { justify-self: end; }
.lb-count { color: var(--muted-2); }
html.lb-open, html.lb-open body { overflow: hidden; }
.lb[hidden], .lb-nav[hidden] { display: none; }

/* Pop-up des expériences (détails du CV) : panneau centré, filets et libellés du site */
.ab-rows li[data-xp] { cursor: pointer; }
.xp { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: var(--gutter); background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.5s var(--ease); }
.xp.on { opacity: 1; }
.xp[hidden] { display: none; }
.xp-panel { width: max-content; min-width: min(640px, 100%); max-width: 100%; max-height: min(86vh, 900px); overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 32px; background: var(--bg); border: 1px solid var(--line); transform: translateY(24px) scale(0.98); transition: transform 0.7s var(--ease); }
.xp.on .xp-panel { transform: none; }
.xp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 24px; }
.xp-close { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--text); cursor: pointer; }
.xp-title { margin: 0 0 8px; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.xp-company { margin: 0 0 28px; }
.xp-body { border-top: 1px solid var(--line); }
.xp-group { display: grid; grid-template-columns: 240px auto; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.xp-group > p, .xp-group li, .xp-meta, .xp-company { white-space: nowrap; }
.xp-group > p { margin: 0; }
.xp-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xp-group li { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--muted-2); }
/* 29/11 : marques de l'agence (Comeback), séparées des missions : bloc à part, texte plus petit et en sourdine */
.xp-clients { margin-top: 28px; padding: 18px 20px 6px; border: 1px solid var(--line); }
.xp-clients-h { margin: 0 0 14px; color: var(--text); }
.xp-cl { display: grid; grid-template-columns: 220px auto; gap: 20px; padding-bottom: 14px; }
.xp-cl > p { margin: 0; }
.xp-cl-txt { max-width: 400px; font-size: 14px; line-height: 1.5; color: var(--muted); }
:root[data-theme="light"] .xp { background: rgba(255, 255, 255, 0.6); }
@media (max-width: 640px) {
  .xp { align-items: flex-end; padding: 0; }
  .xp-panel { max-height: 88vh; padding: 20px 20px 28px; border-width: 1px 0 0; }
  .xp-title { font-size: 26px; }
  .xp-panel { width: 100%; min-width: 0; }
  .xp-group { grid-template-columns: 1fr; gap: 8px; }
  .xp-cl { grid-template-columns: 1fr; gap: 6px; }
  .xp-clients { padding: 16px 16px 4px; }
  .xp-group > p, .xp-group li, .xp-meta, .xp-company { white-space: normal; } /* écran étroit : on laisse passer à la ligne */
}

/* Cas d'études : mêmes cartes que la page Projets, mais horizontales (2 par ligne, 1 sur mobile) */
.grid.grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card.card-wide { aspect-ratio: 16 / 9; }
@media (max-width: 809px) { .grid.grid-wide { grid-template-columns: minmax(0, 1fr); } }



/* ---------- Page Cas d'études ---------- */
.cs-page { gap: 56px; }
.cs-top { display: block; }
/* titre sur une seule ligne quand la largeur le permet */
@media (min-width: 810px) { .cs-title .t-h1 { white-space: nowrap; font-size: min(64px, calc((100vw - 60px) / 19.5)); } }
.cs-title { display: flex; flex-direction: column; gap: 20px; } /* même écart titre → bouton que sur la page Créations */
/* desktop : titre et bouton « Voir les créations » sur une même ligne, le bas du titre aligné sur le bas du bouton */
/* titre puis ligne « Projets | Créations ↗ » dessous, comme les filtres de la page Créations */
.cs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-steps li { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px 0; }
.cs-steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.cs-step-desc { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1199px) {
  .cs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cs-steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Hero de l'accueil : même rythme que le site Framer (apparitions floues plus courtes, 1,2 s, et en décalé) */
/* comme la référence : simple fondu, sans flou ni mouvement — nom mot à mot (0,45 s, un mot toutes les 0,2 s), puis sous-titre et flèche (0,5 s) */
.hero-title.split .w { filter: blur(8px); transform: none; }
.hero-title.split.in .w { animation: wFade 0.5s ease-out forwards; animation-delay: calc(var(--start, 300ms) + var(--i) * 220ms); }
@keyframes wFade { to { opacity: 1; filter: blur(0); } }
/* en-tête comme la référence : logo, liens puis heure montent de 18 px en fondu, l'un après l'autre (0,3 s → 0,75 s) */
@keyframes hIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.site-header .logo, .site-header .nav a, .site-header .header-end > * { animation: hIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.site-header .logo { animation-delay: 0.3s; }
.site-header .nav a:nth-child(1) { animation-delay: 0.39s; }
.site-header .nav a:nth-child(2) { animation-delay: 0.48s; }
.site-header .nav a:nth-child(3) { animation-delay: 0.57s; }
.site-header .nav a:nth-child(4) { animation-delay: 0.66s; }
.site-header .header-end > * { animation-delay: 0.66s; }
@media (max-width: 0px) /* 27/11 : ancien « prefers-reduced-motion », désactivé comme sur Framer */ { .site-header .logo, .site-header .nav a, .site-header .header-end > * { animation: none; } }
.hero .reveal.blur { filter: none; transform: none; transition: opacity 0.5s ease-out; transition-delay: var(--d, 100ms); }

/* Hero : traînée de créations au survol (derrière le titre) */
/* la spirale est un calque collant (100svh) posé sous le hero : le nom défile avec la page, sans JavaScript,
   donc en phase avec le doigt sur téléphone ; marge négative = le calque n'occupe pas de place dans le flux */
.hero-orbit { position: sticky; top: 0; z-index: 0; width: 100%; max-width: 1920px; height: 100vh; height: 100svh; margin: 0 auto -100vh; margin-bottom: -100svh; pointer-events: none; }
.hero-orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero > * { position: relative; z-index: 1; }
/* défilement pendant lequel la spirale se replie en une seule image (l'accueil reste en place, le titre remonte) */
/* « Le graphiste qu'il vous manquait » calé comme le sous-titre de la référence : 85 px au-dessus du bas de l'écran (97 px sur mobile), flèche juste dessous */
.hero > .hero-foot { position: absolute; left: 0; right: 0; top: calc(100% - 118px); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-foot .hero-sub, .hero-foot .hero-arrow { margin-top: 0; }
@media (max-width: 809px) { .hero > .hero-foot { top: calc(100% - 97px); } }
/* téléphone : nom sur deux lignes, centré dans l'écran (25/11 : Vincent le trouvait trop haut à 30 % au-dessus du centre) */
@media (max-width: 809px) { .hero { padding-bottom: 0; } .hero > .hero-title { white-space: normal; font-size: 15.5vw; line-height: 0.86; max-width: 6.2em; margin-bottom: 0; } }
.hero-fold { height: 44vh; height: 44svh; }
/* téléphone : le texte suivant arrive plus tôt, comme sur la référence */
@media (max-width: 809px) { .hero-fold { height: 19vh; height: 19svh; } }   /* la section suivante arrive pendant que la dernière image s'efface */
@media (max-width: 0px) /* 27/11 : ancien « prefers-reduced-motion », désactivé comme sur Framer */ { .hero-fold { display: none; } }
/* les fondus haut et bas sont appliqués aux photos dans le WebGL (un dégradé CSS posé sur le fond uni créait des bandes) */


/* Présentation : paragraphes séparés par un saut de ligne */
.pt-text p + p { margin-top: 1em; }

/* Pied de page : bouton de langue FR / EN à côté du mode clair */
.footer-tools { display: flex; align-items: center; gap: 28px; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 400; text-transform: uppercase; color: var(--muted-2); }
.lang-btn [data-lang] { transition: color 0.4s var(--ease); }
.lang-btn [data-lang].on { color: var(--text); }
.lang-btn:hover [data-lang]:not(.on) { color: var(--text); }
@media (max-width: 809px) { .lang-btn { font-size: 22px; } }

/* Mobile : visuels l'un sous l'autre, 8 px entre les rangées ; les séries suivent les lignes calculées dans app.js */
@media (max-width: 809px) { .pt-visuals { gap: 8px; } }

/* 26/11 : règle « dernière ligne équilibrée » retirée (Vincent n'aimait pas les cartes grossies en fin de grille) : grille d'origine, 3 colonnes desktop, 2 tablette */

/* Menu mobile : liens remontés et heure de Paris en dessous, comme la version Framer */
.mobile-menu { justify-content: flex-start; padding-top: calc(var(--header-h) + 24px); }
.mobile-menu .menu-clock { margin-top: 44px; }
@media (max-width: 809px) { .header-end > .clock { display: none; } }

/* Mobile : lien « Voir tous mes projets » aligné à gauche sous le titre */
@media (max-width: 809px) { .works-head { align-items: flex-start; } .works-head .ulink { align-self: flex-start; } }

/* Mobile : avis pilotés par le scroll comme sur desktop, mais à l'horizontale.
   La section se fige, les avis du haut traversent vers la droite, ceux du bas vers la gauche, puis le scroll reprend */
@media (max-width: 809px) {
  .testi-track { display: block; }
  .testi-list { display: none; }
  .testi-title { font-size: 6.2vw; }
  .testi-slot { left: var(--gutter); right: var(--gutter); width: auto; transform: none; }
  .testi-slot.left { top: auto; bottom: calc(50% + 36px); }
  .testi-slot.right { top: calc(50% + 36px); }
  .testi-slot.left .testi-card { transform: translate3d(-100vw, 0, 0); }
  .testi-slot.right .testi-card { transform: translate3d(100vw, 0, 0); }
  .testi-slot .testi-card { gap: 14px; }
  .testi-slot .testi-card blockquote { font-size: clamp(15px, 4.4vw, 18px); }
  .testi-slot .testi-card .t-body { font-size: 14px; }
}

/* Mobile : bouton « Télécharger mon CV » déplacé sous les expériences (copie masquée sur desktop) */
.cv-btn-m { display: none; }
@media (max-width: 809px) {
  .ab-head .cv-btn { display: none; }
  .cv-btn.cv-btn-m { display: inline-flex; align-self: flex-start; margin-top: 32px; }
}

/* Encart « Derniers cas d'études » : visuel à gauche, explication à droite */
.cs-latest { display: flex; flex-direction: column; gap: 20px; }
.cs-latest > .t-label { margin: 0; }
.cs-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: stretch; }
.cs-info { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.cs-info .t-h2 { margin: 0; }
.cs-excerpt { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted-2); }
.cs-info .cv-btn { align-self: flex-start; margin-top: auto; }
.cs-row .card-info, .cs-row .card::after { display: none; }
@media (max-width: 809px) { .cs-row { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Encart de sortie : plugin Photoshop Liquid Glass (repris de VB Labs) ---------- */
.release { padding-block: 0 80px; }
.release-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.release-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; text-transform: uppercase; }
.release-tag .dot { width: 8px; height: 8px; background: var(--text); animation: release-pulse 2.4s var(--ease) infinite; }
@keyframes release-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.release-count { font-size: 15px; color: var(--muted); }
.release-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; }
.release-visual { margin: 0; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.release-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.release-visual:hover img { transform: scale(1.02); }
/* carrousel des visuels du plugin */
.release-carousel { position: relative; }
.rc-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.rc-track::-webkit-scrollbar { display: none; }
.rc-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.rc-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.rc-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.release-carousel:hover .rc-slide img { transform: none; }
.rc-nav { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; }
.rc-count { color: #fff; font-variant-numeric: tabular-nums; }
.rc-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.85); color: #fff; background: rgba(15, 15, 15, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 16px; transition: opacity 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
.rc-btn:hover { background: #fff; color: #0f0f0f; }
.rc-btn:disabled { opacity: 0.25; pointer-events: none; }
@media (max-width: 760px) { .rc-nav { right: 10px; bottom: 10px; gap: 8px; } .rc-btn { width: 34px; height: 34px; font-size: 14px; } }
.release-info { display: flex; flex-direction: column; padding: 24px; background: var(--surface); contain: size; overflow: hidden; }
.release-title { margin: 0; font-size: clamp(32px, 3vw, 56px); font-weight: 500; text-transform: uppercase; letter-spacing: -0.06em; line-height: 0.95; }
.release-text { margin: 14px 0 0; max-width: 48ch; font-size: 15px; line-height: 1.4; color: var(--muted-2); }
.release-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--dim); }
.release-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--dim); font-size: 13px; font-weight: 500; text-transform: uppercase; }
.release-list li span:last-child { font-size: 15px; font-weight: 400; text-transform: none; color: var(--muted-2); text-align: right; }
.release-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.release-btn { background: var(--text); color: var(--bg); }
.release-btn:hover { background: transparent; color: var(--text); }
.release-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.shot { margin: 0; display: flex; flex-direction: column; padding: 20px 20px 0; background: var(--surface); }
.shot-frame { aspect-ratio: 600 / 880; overflow: hidden; border: 1px solid var(--dim); border-bottom: 0; background: var(--bg); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 16px; border-top: 1px solid var(--dim); font-size: 13px; font-weight: 500; text-transform: uppercase; }
.shot figcaption span:last-child { font-weight: 400; text-transform: none; color: var(--muted-2); text-align: right; }
.release-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
/* Étapes compactes : numéro à côté du titre, texte aligné sous le titre */
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--surface); }
.step b { grid-row: 1; align-self: baseline; font-size: 15px; font-weight: 500; color: var(--muted); }
.step h3 { grid-row: 1; grid-column: 2; align-self: baseline; margin: 0; font-size: 15px; font-weight: 500; text-transform: uppercase; }
.step p { grid-column: 2; margin: 0; font-size: 15px; line-height: 1.3; color: var(--muted-2); }
/* Grand écran : les lignes Compatibilité / Version / Poids s'étirent jusqu'au bouton (moins de vide dans l'encart) */
@media (min-width: 1401px) {
  .release-list { flex: 1; display: flex; flex-direction: column; margin-top: 24px; }
  .release-list li { flex: 1; align-items: center; padding: 0; }
  .release-list li span:last-child { font-size: 18px; color: var(--text); }
}
@media (max-width: 1400px) { .release-grid { grid-template-columns: 1fr; } .release-info { contain: none; overflow: visible; } }
@media (max-width: 1000px) { .release-shots, .release-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 809px) {
  .release { padding-bottom: 56px; }
  .release-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .release-info { padding: 20px; }
  .release-shots { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .shot { scroll-snap-align: start; }
  .release-steps { grid-template-columns: 1fr; }
  .release-list li { flex-direction: column; gap: 4px; }
  .release-list li span:last-child { text-align: left; }
}

/* Étapes du plugin : flèches visibles seulement sur mobile */
.steps-nav { display: none; }
@media (max-width: 809px) {
  .release-steps { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .release-steps::-webkit-scrollbar { display: none; }
  .release-steps .step { flex: 0 0 100%; scroll-snap-align: start; }
  .steps-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
  .steps-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--text); color: var(--text); font-size: 18px; transition: opacity 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
  .steps-btn:disabled { opacity: 0.25; pointer-events: none; }
  .steps-btn:active { background: var(--text); color: var(--bg); }
}

/* Mobile : un peu plus d'air entre le titre « Ils en parlent mieux que moi » et les avis */
@media (max-width: 809px) { .testi-slot.left { bottom: calc(50% + 72px); } .testi-slot.right { top: calc(50% + 72px); } }

/* Pied de page : liens Accueil, Projets… un peu plus petits */
.footer-nav a { font-size: 14px; }
@media (max-width: 809px) { .footer-nav a { font-size: 18px; } }
@media (max-width: 809px) { .footer-top .theme-btn, .lang-btn { font-size: 18px; } }
@media (min-width: 810px) { .footer-top .theme-btn, .lang-btn { font-size: 14px; } }

/* Cas d'études : intertitres de chapitre entre les visuels, informations longues sur plusieurs lignes */
.pt-chapter { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 36px 0 8px; border-bottom: 1px solid var(--line); }
.pt-visuals > .pt-chapter:first-child { padding-top: 0; }
.pt-chapter-note { font-size: 13px; color: var(--muted); text-align: right; max-width: 42ch; }
/* lien « Voir le projet » à droite d'un intertitre (page UX/UI) */
.pt-chapter-link { justify-self: end; align-self: baseline; gap: 7px; border-bottom: 0; padding-block: 0; font-size: 13px; }
@media (max-width: 809px) { .pt-chapter-link { grid-column: 2; justify-self: start; } }
.pt-dl-wrap dt { white-space: nowrap; }
.pt-dl-wrap dd { white-space: pre-line; color: var(--muted-2); } /* livrables : une catégorie par ligne */
@media (max-width: 809px) { .pt-chapter { grid-template-columns: 40px minmax(0, 1fr); padding-top: 28px; } .pt-chapter-note { grid-column: 2; text-align: left; } }

/* ---------- Retour en haut : petit carré (angles droits, monochrome) en bas à droite, fond flouté comme l'en-tête ;
   il apparaît après un écran de défilement et s'inverse au survol, comme les boutons du site ---------- */
.to-top { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 48; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: var(--text); background: var(--header-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--to-top-line, rgba(255, 255, 255, 0.16)); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.5s, background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
:root[data-theme="light"] .to-top { --to-top-line: rgba(15, 15, 15, 0.14); }
.to-top.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s, background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.to-top svg { display: block; transition: transform 0.6s var(--ease); }
.to-top:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.to-top:hover svg { transform: translateY(-2px); }
.to-top:focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
/* déploiement en bouton « ↑ Retour en haut de page » (même dessin que « ■ Voir les créations », la flèche à la place du carré) */
.to-top { overflow: hidden; }
.to-top.on { transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s, width 0.8s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.tt-ico { position: absolute; left: 50%; top: 50%; display: block; transform: translate(-50%, -50%); transition: left 0.8s var(--ease), transform 0.8s var(--ease); }
.tt-in { position: absolute; left: 36px; top: 0; bottom: 0; display: flex; align-items: center; white-space: nowrap; opacity: 0; transform: translateY(70%); transition: opacity 0.35s var(--ease), transform 0.7s var(--ease); }
.tt-label { font-size: 15px; font-weight: 400; text-transform: uppercase; }
.to-top.wide { width: var(--tt-w, 240px); border-color: var(--muted); }
.to-top.wide .tt-ico { left: 15px; transform: translate(0, -50%); }
.to-top.wide .tt-in { opacity: 1; transform: none; transition-delay: 0.18s; }
.to-top.wide:hover { background: var(--header-bg); color: var(--text); border-color: var(--text); }
.to-top.wide:hover svg { transform: translateY(-2px); }
@media (max-width: 809px) { .tt-label { font-size: 13px; } .tt-in { left: 32px; } .to-top.wide .tt-ico { left: 13px; } }
@media (max-width: 0px) /* 27/11 : ancien « prefers-reduced-motion », désactivé comme sur Framer */ { .to-top, .tt-ico, .tt-in { transition: none; } }
@media (max-width: 809px) { .to-top { width: 36px; height: 36px; } }

/* ---------- Avant / après (page Retouches photos) : curseur à faire glisser ---------- */
.pt-compare { position: relative; overflow: hidden; background: var(--surface); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.pt-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.pt-compare .cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pt-compare .cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.pt-compare .cmp-knob { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: flex; align-items: center; justify-content: center; background: #fff; color: #0f0f0f; transition: transform 0.3s var(--ease); }
.pt-compare.drag .cmp-knob { transform: scale(0.92); }
.pt-compare .cmp-tag { position: absolute; top: 16px; padding: 6px 10px; background: rgba(15, 15, 15, 0.55); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.pt-compare .cmp-tag-l { left: 16px; }
.pt-compare .cmp-tag-r { right: 16px; }
.pt-compare .cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.pt-compare:has(.cmp-range:focus-visible) .cmp-knob { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 809px) {
  .pt-compare .cmp-knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .pt-compare .cmp-tag { top: 10px; }
  .pt-compare .cmp-tag-l { left: 10px; }
  .pt-compare .cmp-tag-r { right: 10px; }
}

/* ---------- Passage Créations ↔ Projets : onglet au bout de la ligne des filtres, après un filet vertical ---------- */
.tags { align-items: center; }
.tag-sep { width: 1px; height: 14px; background: var(--muted); }
.tags a.tag-go { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); }
.tags a.tag-go sup { font-size: 9px; line-height: 1; color: var(--muted-2); align-self: flex-start; margin-top: 2px; margin-left: -2px; }
.tag-go-ar { display: inline-block; transition: transform 0.5s var(--ease); }
.tags a.tag-go:hover { color: var(--text); border-color: var(--text); }
.tags a.tag-go:hover .tag-go-ar { transform: translate(2px, -2px); }
/* plus d'air entre le titre et la ligne des filtres / onglets (pages Créations et Projets) */
.page-head, .cs-title { gap: 36px; }
@media (max-width: 809px) { .page-head, .cs-title { gap: 28px; } }

/* intertitre avec entreprise ET lien vers le cas d'étude : « Pivot · Voir le projet → » à droite */
.pt-chapter-end { display: inline-flex; align-items: baseline; gap: 20px; justify-self: end; }
.pt-chapter-end .pt-chapter-link { justify-self: auto; }
@media (max-width: 809px) { .pt-chapter-end { grid-column: 2; justify-self: start; gap: 16px; } .pt-chapter-end .pt-chapter-note { text-align: left; } }

/* ---------- Filtres de la page Créations : trait qui glisse sous le filtre actif ---------- */
.page-head .tags { position: relative; }
.tags-bar { position: absolute; left: 0; top: 0; height: 1px; background: var(--text); pointer-events: none; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), width 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s; }
.tags.has-bar a.on { border-color: transparent; }
.tags.has-bar a.on:hover { border-color: transparent; }
.grid { position: relative; }

/* ---------- Pages projet : modules de mise en page (chaque cas d'étude compose sa propre page) ---------- */
.pt-vrow.narrow { grid-template-columns: minmax(0, var(--w)); }
.pt-vrow.narrow.al-center { justify-content: center; }
.pt-vrow.narrow.al-right { justify-content: end; }
.pt-plate { background: var(--plate); padding: clamp(28px, 5vw, 80px); }
.pt-vrow.grp .pt-plate { padding: 6%; } /* marge proportionnelle : même hauteur que les autres visuels du groupe (voir app.js) */
.pt-cap { display: block; margin-top: 10px; font-size: 13px; }
.pt-plate .pt-cap { color: inherit; opacity: .7; }
.pt-quote { margin: 0; padding: clamp(48px, 8vw, 120px) 0 clamp(40px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.pt-quote p { font-size: clamp(30px, 3.6vw, 58px); line-height: 1; letter-spacing: -0.05em; text-transform: uppercase; max-width: 16ch; color: var(--q, var(--text)); }
.pt-quote cite { display: block; margin-top: 20px; font-style: normal; }
.pt-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 28px 0 32px; }
.pt-note div { display: flex; flex-direction: column; gap: 12px; max-width: 58ch; }
.pt-note .t-body { color: var(--muted-2); line-height: 1.35; }
.pt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pt-stats > div { display: flex; flex-direction: column; gap: 10px; }
.pt-stat-n { font-size: clamp(44px, 5vw, 84px); line-height: .9; letter-spacing: -0.06em; }
@media (max-width: 809px) {
  .pt-vrow.narrow { grid-template-columns: minmax(0, 1fr); }
  .pt-note { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pt-vrow:not(.grp) > .pt-plate { padding: 20px; }
}

/* ---------- Revue UX (25/11) : repères, accessibilité, toucher, impression ---------- */
/* page en cours : soulignée dans le menu, le menu mobile et le pied de page */
.nav a[aria-current="page"], .footer-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mobile-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
/* lien d'évitement : invisible tant qu'on ne navigue pas au clavier */
.skip { position: fixed; top: 10px; left: var(--gutter); z-index: 1001; padding: 10px 14px; background: var(--text); color: var(--bg); border: 0; font: 500 13px/1 var(--font); text-transform: uppercase; transform: translateY(-160%); transition: transform 0.3s var(--ease); }
.skip:focus-visible { transform: none; outline-offset: 2px; }
#app:focus { outline: none; }
/* zones d'appui d'au moins 44 px sur écran tactile, sans changer le dessin */
@media (max-width: 809px) {
  .menu-btn { padding: 13px 0 13px 16px; margin: -13px 0 -13px -16px; }
  .logo { padding: 8px 8px 8px 0; margin: -8px -8px -8px 0; }
}
/* tablette et écrans tactiles : titres des cartes toujours visibles (pas de survol au doigt) */
@media (hover: none) { .card-info, .card::after { opacity: 1; } }

/* page projet : précédent / suivant à côté de « Découvrez d'autres… » */
.pt-pn { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.pt-pn .ulink { gap: 8px; align-items: baseline; }
@media (max-width: 809px) { .pt-pn { gap: 12px 24px; } }
/* visuel agrandissable atteint au clavier */
.pt-media[role="button"]:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

/* visionneuse : glisser horizontal pris en charge par la page, pincer pour zoomer reste possible */
.lb { overscroll-behavior: contain; }
.lb-stage { touch-action: pan-y pinch-zoom; }
.lb-bar button { padding-block: 12px; }
.lb-nav button { display: inline-flex; gap: 8px; }
@media (max-width: 600px) {
  .lb-bar { gap: 12px; padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }
  .lb-nav { gap: 28px; }
  .lb-nav .lb-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lb-nav button { padding-inline: 10px; font-size: 18px; }
}

/* contact : adresse directe, messages par champ, envoi en cours, confirmation */
.contact-intro { display: flex; flex-direction: column; gap: 18px; }
.contact-head .contact-intro p.t-body { max-width: none; }
@media (min-width: 1200px) { .contact-intro .ci-line { white-space: nowrap; } }
.contact-head .contact-mail { font-size: 15px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.4; max-width: none; padding-bottom: 0; }
.contact-mail a { text-transform: none; }
.cf-msg { color: var(--error); font-size: 13px; text-transform: none; }
.cf-msg:empty { display: none; }
.cf-status a { color: inherit; border-color: currentColor; text-transform: none; }
.cf-submit.is-sending { opacity: 0.55; cursor: progress; }
.cf-submit.is-sending span:last-child { animation: cfSend 1s var(--ease) infinite; }
@keyframes cfSend { 50% { transform: translateX(6px); } }
.cform[hidden], .cf-done[hidden] { display: none; }
.cf-done { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 24px 40px; outline: none; }
.cf-done-text { font-size: clamp(28px, 3.4vw, 52px); font-weight: 500; line-height: 1; letter-spacing: -0.05em; text-transform: uppercase; max-width: 18ch; }
@media (max-width: 0px) /* 27/11 : ancien « prefers-reduced-motion », désactivé comme sur Framer */ { .cf-submit.is-sending span:last-child { animation: none; } }

/* page introuvable */
.nf-in { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 16px 28px; }

/* impression / export PDF : contenu à plat, sans éléments d'interface */
@media print {
  :root, :root[data-theme="light"] { --bg: #fff; --text: #000; --surface: #f2f2f2; --line: #ddd; --muted: #555; --muted-2: #444; }
  body { background: #fff; color: #000; }
  .site-header, .mobile-menu, .to-top, .hero-orbit, .hero-arrow, .cursor-dot, .cursor-frame, .lb, .xp, .footer-mark, .footer-tools, .pt-more, .skip, .page-exit, .rc-nav, .steps-nav { display: none !important; }
  .reveal, .reveal .wl, .pt-anim, .split .w, .pt-par > img { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero { height: auto; padding-block: 40px; }
  .hero-fold, .testi-track { display: none !important; }
  .testi-list { display: flex !important; flex-direction: column; gap: 24px; }
  .pt-side { position: static; }
  .pt-acc-body { grid-template-rows: 1fr !important; height: auto !important; }
  img, video, figure, .pt-vrow { break-inside: avoid; }
  a { color: inherit; }
}

/* 26/11 : fin des pages projet et création sur téléphone, moins de noir (Vincent : « un petit peu ok mais là c'est trop ») */
@media (max-width: 809px) {
  .pt-layout { padding-bottom: 72px; }
  .pt-more { padding-block: 48px 56px; gap: 24px; }
}

/* 26/11 : sur téléphone, les créations d'abord, tous les textes ensuite (demande de Vincent).
   Le lien retour et le nom du projet restent en tête ; Présentation, volets et Informations passent sous les visuels. */
@media (max-width: 809px) {
  .pt-layout { gap: 0; }
  .pt-side, .pt-side-in { display: contents; }
  .pt-layout > .pt-side .pt-back { order: 1; margin-bottom: 16px; justify-self: start; }
  .pt-layout > .pt-side .pt-title { order: 2; margin-bottom: 32px; }
  .pt-layout > .pt-visuals { order: 3; }
  .pt-layout > .pt-side .pt-accs { order: 4; margin-top: 48px; }
  .pt-layout > .pt-side-in > *:not(.pt-back):not(.pt-title):not(.pt-accs), .pt-layout > .pt-side .pt-side-in > *:not(.pt-back):not(.pt-title):not(.pt-accs) { order: 5; }
}

/* 26/11 : carte « Dernière publication » (Pawpy) invisible sur iPhone : dans une colonne flex, Safari ne calcule pas
   toujours la hauteur donnée par aspect-ratio, et l'image en position absolue n'avait alors aucune hauteur.
   La hauteur vient maintenant de l'image elle-même (16:9, width/height déclarés), dans tous les navigateurs. */
.cs-latest .card { aspect-ratio: auto; width: 100%; flex: none; }
.cs-latest .card img { position: relative; inset: auto; display: block; width: 100%; height: auto; }

/* 27/11 : sur téléphone, une série de 3 visuels n'est plus serrée sur 3 colonnes de 110 px (textes illisibles) :
   elle devient une bande qu'on fait glisser, chaque visuel à 78 % de l'écran, le suivant visible au bord.
   Jamais de visuel seul ni plus grand que ses voisins. */
@media (max-width: 809px) {
  .pt-vrow.ml > .pt-line.n3 { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pt-vrow.ml > .pt-line.n3::-webkit-scrollbar { display: none; }
  /* 27/11 : largeur selon le format (le plus large fait 78 %) : tous les visuels d'une bande ont la même hauteur */
  .pt-vrow.ml > .pt-line.n3 > figure { flex: 0 0 calc(78% * var(--o, 1) / var(--mo, 1)); min-width: 0; scroll-snap-align: start; }
}

/* 27/11 : bandes à faire glisser (séries de 3 sur mobile, autres projets, captures et étapes du plugin) :
   un appui long ne soulève plus l'image ou le lien (glisser-déposer, menu d'aperçu) ; seul le glissement de la bande reste */
.pt-strip, .release-shots, .release-steps, .pt-line.n3 { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pt-strip :is(img, video, a), .release-shots :is(img, video, a), .release-steps :is(img, video, a), .pt-line.n3 :is(img, video, a) { -webkit-user-drag: none; -webkit-touch-callout: none; }

/* 27/11 : visuel vertical seul (« half », ex. kakémono Lesieur) : jamais plus haut que l'écran (en-tête compris), calé à gauche */
.pt-vrow.half > figure[data-ar] { max-width: calc((100vh - 140px) * var(--ar)); max-width: calc((100svh - 140px) * var(--ar)); }
/* dans une bande (flex), une marge en % se calcule sur la bande : on la ramène à 6 % de la largeur du visuel (78 % × --o / --mo) */
@media (max-width: 809px) { .pt-vrow.ml.grp > .pt-line.n3 > .pt-plate { padding: calc(4.68% * var(--o, 1) / var(--mo, 1)); } }

/* 29/11 soir — fluidité sur iPhone pendant le changement de page :
   pas de flou d'arrière-plan recalculé à chaque image sous l'en-tête pendant que la page monte,
   calques de la page entrante / sortante gardés en GPU, et sur écran tactile les mots des titres
   apparaissent en fondu + mouvement sans flou (le flou animé obligeait Safari iOS à redessiner chaque mot à chaque image). */
@media (max-width: 809px) {
  html.page-moving .site-header, html.page-moving .to-top { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  #page, .page-exit, .page-exit-inner { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
}
@keyframes wInM { to { opacity: 1; transform: none; } }
@keyframes wFadeM { to { opacity: 1; } }
@media (hover: none) and (pointer: coarse) {
  .split .w, .hero-title.split .w, .reveal.blur { filter: none; }
  .split.in .w { animation-name: wInM; }
  .hero-title.split.in .w { animation-name: wFadeM; }
}

/* en-tête copié dans la page qui part : figé dans son état visible (pas d'animation d'entrée rejouée) */
.page-exit .ghost-header, .page-exit .ghost-header * { animation: none !important; transition: none !important; }
.page-exit .ghost-header { position: absolute; }
/* fin de l’apparition du nom de l’accueil : net (la règle de flou du hero l’emportait sur .done) */
.hero-title.split .w.done { animation: none; opacity: 1; filter: none; transform: none; }
