/* ==========================================================
   Léa Pires – Portfolio · Styles
   ========================================================== */

/* ---------- Police (hébergée dans le projet) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variables ---------- */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #8b8b8b;
  --line: #ececec;
  --soft: #f3f4f2;
  --gutter: clamp(20px, 3vw, 48px);
  --label-col: 36.7%;
  --nav-h: 64px;
  --font: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #5b7cfa; outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }

.arr {
  display: inline-block; flex: none;
  width: 1.2em; height: 1.2em; margin-left: .45em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M3.5 12.5 12 4'/%3E%3Cpath d='M5.5 3.8h6.7v6.7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M3.5 12.5 12 4'/%3E%3Cpath d='M5.5 3.8h6.7v6.7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s ease;
}
a:hover > .arr, a:hover .arr { transform: translate(2px, -2px); }

/* ==========================================================
   NAVBAR : transparente sur le premier écran, blanche ensuite
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.nav--solid { background: #fff; }            /* pages intérieures : fond blanc dès le départ */
.nav.is-scrolled,
.nav.is-open {
  background: #fff;
  border-bottom-color: var(--line);          /* ligne en pleine largeur, bord à bord */
}
.nav__inner {
  height: var(--nav-h);
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.nav__brand { font-size: 13px; font-weight: 500; letter-spacing: .01em; margin-right: auto; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 13px; text-transform: uppercase; color: #6d6d6d; }
.nav__links a:not(.pill-dark):hover { color: var(--ink); }

.pill-dark {
  display: inline-flex; align-items: center;
  background: #0d0d0d; color: #fff;
  padding: 5px 5px 5px 14px; border-radius: 5px;
  font-size: 13px; text-transform: uppercase;
}
.nav__links .pill-dark { color: #fff; }
.pill-dark .arr {
  position: relative; width: 24px; height: 24px; margin-left: 12px;
  background: none; -webkit-mask: none; mask: none;
  border: 1px solid rgba(255,255,255,.55); border-radius: 4px;
}
.pill-dark .arr::after {
  content: ""; position: absolute; inset: 5px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M3.5 12.5 12 4'/%3E%3Cpath d='M5.5 3.8h6.7v6.7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M3.5 12.5 12 4'/%3E%3Cpath d='M5.5 3.8h6.7v6.7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pill-dark:hover .arr { transform: none; }

.lang { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9a9a9a; }
.lang button { color: #6d6d6d; text-transform: uppercase; letter-spacing: .01em; padding: 2px 0; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.burger { display: none; width: 40px; height: 40px; position: relative; margin-right: -8px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.nav.is-open .burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: #d7d7d7 url("../assets/img/halftone-bg.jpg") center / cover no-repeat;
}
.hero__inner {
  position: relative; width: 100%;
  padding: calc(var(--nav-h) + clamp(24px, 4vw, 56px)) var(--gutter) clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hero__title { font-weight: 500; letter-spacing: -0.045em; line-height: .95; }
.hero__name { display: block; font-size: clamp(56px, min(14vw, 17vh), 230px); letter-spacing: -0.05em; }
.hero__role { display: block; font-size: clamp(30px, min(7.6vw, 9vh), 130px); line-height: 1.02; margin-top: .06em; max-width: 11em; }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__intro { max-width: 26em; font-size: clamp(18px, 2.4vw, 30px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 400; }
.hero__photo { width: clamp(180px, min(30vw, 35vh), 520px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; flex: none; }

/* Entrée du hero : fond, nom (gris → noir), métier, photo, texte */
.hero__bg { animation: heroFade 1.1s ease both; }
.hero__name, .hero__role { animation: heroText 1s cubic-bezier(.2,.7,.2,1) both; }
.hero__name { animation-delay: .25s; }
.hero__role { animation-delay: .6s; }
.hero__photo { animation: heroPhoto 1s cubic-bezier(.2,.7,.2,1) 1s both; }
.hero__intro { animation: heroText 1s cubic-bezier(.2,.7,.2,1) 1.35s both; }
@keyframes heroFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes heroText {
  from { opacity: 0; color: #b4b4b4; transform: translateY(18px); }
  45%  { opacity: 1; color: #b4b4b4; }
  to   { opacity: 1; color: var(--ink, #000); transform: none; }
}
@keyframes heroPhoto {
  from { opacity: 0; filter: grayscale(1) brightness(1.15); transform: translateY(28px); }
  to   { opacity: 1; filter: none; transform: none; }
}

/* Les 3 petits carrés colorés */
.sq { position: absolute; width: clamp(6px, .65vw, 10px); aspect-ratio: 1; opacity: 0;
  animation: sqIn .8s ease 1.1s forwards, sqFloat 7s ease-in-out 1.9s infinite alternate; }
.sq--lilac  { left: 38%; top: 61%; background: #a98bf0; }
.sq--green  { left: 62%; top: 79%; background: #7ccf6a; animation-delay: 1.3s, 2.1s; }
.sq--orange { left: 14%; top: 97%; background: #e8843a; animation-delay: 1.5s, 2.3s; }
@keyframes sqIn { to { opacity: 1; } }
@keyframes sqFloat { from { transform: translate(0,0); } to { transform: translate(10px,-14px); } }
@media (prefers-reduced-motion: reduce) {
  .hero__bg, .hero__name, .hero__role, .hero__photo, .hero__intro, .sq { animation: none !important; opacity: 1; }
}

/* ==========================================================
   SECTIONS (colonne gauche = intitulé, colonne droite = contenu)
   ========================================================== */
.section {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  gap: 0 24px;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--nav-h);
}
#projets { border-top: 0; padding-top: clamp(64px, 9vw, 120px); }
.section__body { min-width: 0; }
.label { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.label__sub { font-size: 13px; color: var(--muted); margin: 2px 0 0 18px; }
.plus { color: #9a9a9a; font-weight: 400; margin: 0 .4em; }
.label .plus { margin: 0; }

/* Cartes projets */
.card + .card { margin-top: clamp(40px, 5vw, 72px); }
.card__link { display: block; }
.card__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 20px; margin-bottom: 14px; }
.card__title { grid-area: 1 / 1 / 2 / 3; }
.card__meta .year { grid-area: 2 / 2; align-self: end; line-height: 1.5; font-size: 13px; color: var(--muted); white-space: nowrap; }
.card__meta .tags { grid-area: 2 / 1; font-size: 13px; color: var(--muted); line-height: 1.5; text-align: left; }
.card__title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.card__meta { display: contents; font-size: 13px; color: var(--muted); }
.tags { display: inline; text-align: inherit; }
.tag { display: inline; padding: 0; border: 0; border-radius: 0; font-size: inherit; line-height: inherit; color: inherit; white-space: nowrap; }
.tag--end::after { display: none !important; }
.tag:not(:last-child)::after { content: "/"; display: inline-block; margin: 0 .6em; color: #b9b9b9; }
.meta-list dd { min-width: 0; }
.card__media { overflow: hidden; border-radius: 6px; background: #eee; }
.card__media img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card__link:hover .card__media img { transform: scale(1.025); }
/* Page « Tous les projets » */
.section--projects { border-top: 0; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 100px); }
.page-title { font-size: clamp(28px, 3.3vw, 46px); font-weight: 400; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: clamp(36px, 4.5vw, 64px); }
/* Page « Tous les projets » : grille à 2 colonnes, vignettes carrées */
.section--projects { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--nav-h) + clamp(16px, 2.5vw, 36px)); }
.section--projects .section__label { display: none; }
.section--projects .section__body { width: 100%; max-width: 1060px; margin-left: auto; }
.section--projects .page-title { font-size: clamp(26px, 2.8vw, 38px); margin-bottom: clamp(20px, 2.4vw, 34px); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(14px, 1.6vw, 24px); }
.cards .card { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 0; align-content: start; }
.cards .card + .card { margin-top: 0; }
.cards .card__head { margin-bottom: 10px; gap: 4px 12px; align-content: start; }
.cards .card__title { font-size: clamp(18px, 1.7vw, 24px); }
.cards .card__meta .year, .cards .card__meta .tags { font-size: 12px; }
.cards .card__link { align-self: start; }
.cards .card__media { aspect-ratio: 1 / 1; }
.cards .card__media img { height: 100%; object-fit: cover; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .cards .card { grid-row: auto; display: block; } .cards .card__title { font-size: 20px; } }
/* Pages projet */
.section--project { border-top: 0; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(40px, 5vw, 72px); }
.project__title { font-size: clamp(30px, 3.6vw, 52px); font-weight: 400; line-height: 1.08; letter-spacing: -0.04em; margin-bottom: clamp(20px, 2.4vw, 32px); }
.meta-list { margin: 0 0 clamp(28px, 3.5vw, 48px); }
.meta-list > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: baseline; gap: 24px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta-list dt { color: var(--muted); flex: none; }
.meta-list dd { margin: 0; text-align: right; line-height: 1.55; }
.project__media { margin: 0 0 clamp(28px, 3.5vw, 48px); border-radius: 6px; overflow: hidden; }
.project__media img { width: 100%; height: auto; }
.project__text { margin-bottom: clamp(28px, 3.5vw, 48px); max-width: 46em; }
.project__text h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 4px; }
.project__text p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.project__text strong { color: #555; font-weight: 600; }
.link-list { display: grid; gap: 0; }
.link-list .link-arrow { margin-top: 14px; }
.project__subtitle { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; margin: clamp(12px, 2vw, 24px) 0 clamp(14px, 1.6vw, 20px); }
.work { margin-bottom: clamp(28px, 3.5vw, 48px); }
.work h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 4px; }
.work > p { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 46em; margin-bottom: 16px; }
.work figure { margin: 0; border-radius: 6px; overflow: hidden; }
.work figure img { width: 100%; height: auto; }

/* Série photo : images en grand, légendes numérotées */
.series { display: grid; gap: clamp(32px, 4.5vw, 64px); margin-bottom: clamp(28px, 3.5vw, 48px); }
.series__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: start; }
.shot { margin: 0; min-width: 0; }
.shot__img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: #14110f; }
.shot__img img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { display: grid; gap: 6px; margin-top: 14px; }
.shot__num { display: flex; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.shot__num span:first-child { font-weight: 400; color: #9a9a9a; font-variant-numeric: tabular-nums; }
.shot__text { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 46em; }
.shot__tech { margin-top: 4px; font: 400 12px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .02em; color: #9a9a9a; }
@media (max-width: 640px) { .series__pair { grid-template-columns: 1fr; gap: 32px; } }

.media-duo { display: grid; gap: 16px; }
.media-duo--stand { grid-template-columns: 9fr 16fr; }
.media-duo--stand figure:first-child { aspect-ratio: 3 / 4; }
.media-duo--stand figure { height: 100%; }
.media-duo--stand img { height: 100%; object-fit: cover; }
.media-duo--print { grid-template-columns: .707fr 1fr; grid-template-rows: auto auto 1fr; gap: 0 20px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.media-duo--print > .work { display: grid; grid-template-rows: subgrid; grid-row: span 3; margin-bottom: 0; }
.media-duo--print > .work > h3 { align-self: end; }
.media-duo--print > .work > p { margin-bottom: 16px; }
.link-list--desc > li + li { margin-top: 22px; }
.link-list--desc .link-arrow { margin-top: 0; }
.link-list__desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; max-width: 46em; }
.project-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 88px); font-size: 14px; }
.next-project, .prev-project { display: flex; flex-direction: column; font-size: 14px; }
.next-project { align-items: flex-end; margin-left: auto; text-align: right; }
.prev-project { align-items: flex-start; }
.prev-project:hover .next-project__name { color: var(--ink); }
.next-project__name { color: var(--muted); transition: color .2s ease; }
.next-project:hover .next-project__name { color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; font-size: 14px; margin-top: clamp(28px, 3vw, 44px); }

/* À propos */
.lead { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 400; max-width: 20em; }
.text-muted { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 40em; margin-top: 18px; }

/* Domaines */
.domains { border-top: 0; }
.domain { display: grid; grid-template-columns: 28px 1fr; gap: 0 8px; padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.domain:first-child { padding-top: 0; }
.domain__num { color: var(--muted); font-size: 13px; padding-top: 1px; }
.domain h3 { font-size: 13px; font-weight: 400; }
.domain p { color: var(--muted); font-size: 13.5px; margin-top: 6px; max-width: 46em; }
.pill-light {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--soft); border-radius: 8px; padding: 16px 16px;
  margin-top: 22px; font-size: 13px; transition: background-color .2s ease;
}
.pill-light:hover { background: #ebeceb; }
.pill-light__main { display: inline-flex; align-items: center; }
.pill-light__side { color: var(--muted); display: inline-flex; align-items: center; }

/* Clients */
.section--clients { padding-block: clamp(36px, 5vw, 64px); }
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.clients li { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.clients img { width: 84px; height: 30px; max-width: 100%; object-fit: contain; object-position: left center; }
.clients span { font-size: 12px; color: #222; }

/* ==========================================================
   CÔTÉ CRÉATIF
   ========================================================== */
.creative { background: #000; color: #fff; padding: clamp(56px, 8vw, 110px) var(--gutter); display: flex; justify-content: center; overflow: hidden; }
.creative__stage { position: relative; width: min(100%, 900px); aspect-ratio: 784 / 746; display: block; container-type: inline-size; }

/* Les peintures tournent en cercle (sens horaire), comme une roue : elles pivotent avec l’anneau */
.creative__ring { position: absolute; inset: 0; animation: ringSpin 36s linear infinite; will-change: transform; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.orb { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-37.5cqw); }
.hold { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.cv {
  position: absolute; left: 0; top: 0; height: auto; max-width: none;
  transform: translate(-50%, -50%) rotate(calc(var(--o) - var(--a)));
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.cv--sq { width: 20.3cqw; }
.cv--vn { width: 15.7cqw; }
.creative__stage:hover .cv { filter: brightness(.7); }
.creative__stage:hover .cv:hover { filter: none; transform: translate(-50%, -50%) rotate(calc(var(--o) - var(--a))) scale(1.06); }

/* Texte central : la flèche se déploie à gauche et pousse le texte */
.creative__label {
  position: absolute; left: 50%; top: 51.6%; transform: translate(-50%, -50%);
  display: flex; align-items: flex-start; white-space: nowrap;
  font-size: clamp(22px, 4.2vw, 40px);
}
.creative__title { font-size: 1em; font-weight: 400; line-height: 1.2; letter-spacing: -0.03em; text-align: left; }
.creative__arrow {
  flex: none; width: 0; height: .7em; margin-top: .42em; margin-right: 0; overflow: hidden; color: #fff;
  opacity: 0; transform: translateX(-16px);
  transition: width .55s cubic-bezier(.2,.7,.2,1), margin-right .55s cubic-bezier(.2,.7,.2,1), opacity .4s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}
.creative__stage:hover .creative__arrow, .creative__stage:focus-visible .creative__arrow { width: 1.05em; margin-right: .32em; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .creative__ring, .hold { animation: none; } }

/* ==========================================================
   CONTACT + FOOTER
   ========================================================== */
.contact { padding-block: clamp(64px, 9vw, 130px) clamp(48px, 6vw, 80px); }
.cta { font-size: clamp(26px, 3.6vw, 44px); font-weight: 400; line-height: 1.1; letter-spacing: -0.035em; }
.cta__grey { color: #9a9a9a; }

.footer { padding: 0 var(--gutter) 24px; }
.footer__grid {
  display: grid; grid-template-columns: var(--label-col) repeat(3, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); padding: clamp(32px, 4vw, 52px) 0;
}
.footer__brand { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.04em; font-weight: 500; }
.footer h3 { font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.footer li { font-size: 13px; color: var(--muted); line-height: 1.85; }
.footer li a:hover { color: var(--ink); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; }
.footer__bottom a:hover { color: var(--ink); }

/* ==========================================================
   Apparition douce au scroll (désactivée sans JS / mouvement réduit)
   ========================================================== */
.js .reveal { transform: translateY(14px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0; background: #fff;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    padding: 12px var(--gutter) 40px; font-size: 22px; text-transform: none; color: var(--ink);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__links .pill-dark { width: auto; margin-top: 24px; padding: 12px 16px; border: 0; font-size: 14px; text-transform: uppercase; }
  .burger { display: block; }
  .lang { gap: 6px; }
  .nav__inner { gap: 18px; }

  .section { grid-template-columns: 1fr; gap: 20px; }
  .section__label { margin-bottom: 4px; }
  .section__label:empty { display: none; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .media-duo--stand, .media-duo--print { grid-template-columns: 1fr; }
  .media-duo--stand figure, .media-duo--stand figure:first-child { aspect-ratio: auto; height: auto; }
  .media-duo--stand img { height: auto; }
  .media-duo--print { grid-template-rows: none; gap: 32px; }
  .media-duo--print > .work { display: block; grid-row: auto; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__photo { width: min(74vw, 320px); align-self: flex-end; }
  .hero__inner { gap: 36px; }
  .meta-list > div { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; }
  .meta-list .tag { display: block; }
  .meta-list br { display: none; }
  .meta-list .tag::after { display: none !important; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creative { padding-inline: 8px; }
  .creative__label { font-size: 20px; }
}

/* ==========================================================
   PAGE ART : galerie infinie (pas de footer)
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.page-art { height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
.art-page { position: fixed; inset: var(--nav-h) 0 0 0; overflow: hidden; background: #fff; }
.art {
  position: absolute; inset: 0; overflow: hidden;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.art:focus-visible { outline-offset: -4px; }
.art.is-dragging { cursor: grabbing; }
.art__world { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; --s: 1; }
.art__tile { position: absolute; left: 0; top: 0; }

.art__work { position: absolute; margin: 0; left: calc(var(--x) * var(--s) * 1px); top: calc(var(--y) * var(--s) * 1px); width: calc(var(--w) * var(--s) * 1px); }
.art__work img { width: 100%; height: auto; display: block; pointer-events: none; -webkit-user-drag: none; }
.art__cap {
  margin-top: 11px; display: flex; flex-direction: column;
  font: 400 10px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0; color: #111; opacity: .42; pointer-events: none;
  transform: translateY(-3px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.art__work:hover .art__cap { opacity: 1; transform: none; }
@keyframes artIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.art__work { animation: artIn .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }

/* Indication en bas au centre */
.art__hint {
  position: absolute; left: 50%; bottom: calc(var(--gutter) + 12px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap; pointer-events: none;
  font: 400 12px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .04em;
  color: #6d6d6d; transition: opacity .6s ease;
  padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.art.is-used ~ .art__hint { opacity: .6; }

/* Note d’atelier : un « cartel » qui sort du bouton « i » */
.art-info {
  position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 5;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.art-info__panel {
  position: relative; overflow: hidden;
  width: min(410px, calc(100vw - 2 * var(--gutter)));
  padding: 22px 24px 28px;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 14px;
  box-shadow: 0 28px 60px -30px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.05);
  transform-origin: 100% 100%;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.95);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s linear .5s;
}
.art-info.is-open .art-info__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.art-info__label {
  margin-bottom: 14px; color: #8b8b8b; text-transform: uppercase; letter-spacing: .06em;
  font: 400 11px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.art-info__text { font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; color: #0d0d0d; }
.art-info__text span { opacity: 0; filter: blur(4px); transition: opacity .6s ease, filter .6s ease; }
.art-info.is-open .art-info__text span { opacity: 1; filter: none; }
.art-info.is-open .art-info__text span:nth-child(1) { transition-delay: .15s; }
.art-info.is-open .art-info__text span:nth-child(2) { transition-delay: .35s; }
.art-info.is-open .art-info__text span:nth-child(3) { transition-delay: .55s; }

/* Fine ligne qui se vide pendant l’ouverture automatique */
.art-info__timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #0d0d0d; transform-origin: 0 50%; opacity: 0; }
.art-info.is-timed .art-info__timer { opacity: 1; animation: artTimer 12s linear 1s forwards; }
@keyframes artTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.art-info__btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid #d4d4d4;
  font-size: 19px; line-height: 1; font-weight: 400;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.art-info__btn:hover, .art-info.is-open .art-info__btn { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }

/* Lien Instagram : fixe en bas à gauche (écrans larges) + dans la note */
.art__more {
  position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 4;
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; font-size: 13px;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid #e3e3e3; border-radius: 999px; transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.art__more:hover { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.art-info__link { margin-top: 18px; font-size: 14px; }
@media (max-width: 900px) { .art__more { display: none; } }

/* Liste verticale (téléphone) */
.art-list { display: none; }
@media (max-width: 700px) {
  body.page-art { height: auto; overflow: visible; overscroll-behavior: auto; }
  .art-page { position: static; overflow: visible; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 20px) var(--gutter) 48px; }
  .art, .art__hint, .art__more, .art-info__btn, .art-info__timer { display: none; }
  .art-info { position: static; order: 0; align-items: stretch; margin-bottom: 32px; }
  .art-info__panel { position: static; width: auto; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0; background: none; }
  .art-info__text span { opacity: 1; filter: none; }
  .art-info__label { display: none; }
  .art-info__text { font-size: 17px; }
  .art-list { display: flex; flex-direction: column; gap: 36px; order: 1; }
  .art-list__item { margin: 0; }
  .art-list__item img { display: block; width: 100%; height: auto; }
  .art-list__item.is-round img { width: 82%; margin-inline: auto; }
  .art-list__item figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; font-size: 14px; line-height: 1.35; }
  .art-list__item figcaption span:last-child { color: var(--muted); font-size: 13px; }
}
@media (max-width: 640px) {
  .art-info__text { font-size: 17px; }
  .art__hint { font-size: 10px; gap: 6px; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .art__work { animation: none; }
  .art-info__panel, .art-info__text span { transition: none; }
  .art-info.is-timed .art-info__timer { animation: none; }
}

/* Peinture agrandie */
.art__work { cursor: zoom-in; }
.art-list__item.is-zoomable img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: calc(var(--nav-h) * .6) var(--gutter) var(--gutter);
  background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s ease; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox__img { display: block; max-width: min(92vw, 1100px); max-height: calc(100vh - var(--nav-h) - 90px); max-height: calc(100dvh - var(--nav-h) - 90px); width: auto; height: auto; object-fit: contain; }
.lightbox__cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; font-size: 14px; line-height: 1.35; color: #6d6d6d; text-align: center; cursor: default; }
.lightbox__title { color: #0d0d0d; }
.lightbox__close {
  position: absolute; top: 16px; right: var(--gutter); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 1px solid #d4d4d4; font-size: 26px; line-height: 1; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.lightbox__close:hover { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
body.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }

/* ==========================================================
   PAGE À PROPOS
   ========================================================== */
.section--about { border-top: 0; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(48px, 6vw, 88px); }
.about-photo { width: 80%; aspect-ratio: 1; object-fit: cover; background: var(--soft); filter: grayscale(1); }
.about-id { margin-top: 14px; font-size: 14px; line-height: 1.45; }
.about-id span { display: block; color: var(--muted); }
.section--about .lead { margin-top: clamp(28px, 3.4vw, 44px); }
.xp > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.xp > li:first-child { padding-top: 0; }
.xp__title { grid-column: 1 / -1; color: var(--ink); }
.xp__org, .xp__date { color: var(--muted); }
.xp__date { grid-column: 2; grid-row: 2; text-align: right; white-space: nowrap; }
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; font-size: 14px; line-height: 1.5; }
.others > li { display: flex; flex-direction: column; }
.others .xp__title { grid-column: auto; }
@media (max-width: 640px) {
  .others { grid-template-columns: 1fr; }
  .about-photo { width: 100%; }
}

/* ==========================================================
   PAGE CONTACT + CONFIDENTIALITÉ
   ========================================================== */
.section--contact-head { border-top: 0; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 100px)); padding-bottom: clamp(40px, 5vw, 72px); }
.contact-avail { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.contact-avail .plus { margin: 0 .3em 0 0; }
.section--form { padding-top: clamp(40px, 5vw, 72px); }
.mail-link { color: var(--muted); text-decoration: none; transition: color .2s; }
.mail-link:hover { color: var(--ink); }
.section--form .label__sub { overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; }
.form__field { display: grid; gap: 8px; font-size: 14px; }
.form__field input, .form__field textarea {
  width: 100%; font: inherit; font-size: 14px; letter-spacing: -0.01em; color: var(--ink);
  background: var(--soft); border: 1px solid transparent; border-radius: 8px; padding: 13px 14px;
  transition: border-color .2s, background-color .2s;
}
.form__field textarea { resize: vertical; min-height: 130px; }
.form__field input::placeholder, .form__field textarea::placeholder { color: #b4b6b2; }
.form__field input:focus, .form__field textarea:focus { outline: 0; background: #fff; border-color: #0d0d0d; }
.form__field input:user-invalid, .form__field textarea:user-invalid { border-color: #d6453d; }
.form__bot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__submit { width: 100%; height: 46px; border-radius: 8px; background: #0d0d0d; color: #fff; font-size: 14px; transition: opacity .2s, transform .2s; }
.form__submit:hover { opacity: .88; }
.form__submit:disabled { opacity: .5; cursor: progress; }
.form__legal { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.form__legal a:hover { color: var(--ink); }
.form__status { font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 8px; }
.form__status--ok { background: #eaf4ea; color: #1f5b2a; }
.form__status--err { background: #fbecea; color: #8a2a22; }
.project__updated { font-size: 12px; color: var(--muted); }

/* Projet vidéo */
.film { aspect-ratio: 1 / 1; margin-bottom: clamp(32px, 4.5vw, 64px); border-radius: 6px; overflow: hidden; background: #14110f; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: clamp(32px, 4.5vw, 64px); }
.shot__img--square { aspect-ratio: 1 / 1; }
.shot__img--wide { aspect-ratio: 16 / 9; }
.note { margin: 0; padding-left: clamp(16px, 2vw, 24px); border-left: 2px solid #e2e2e2; min-width: 0; }
.note__label { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.note__text { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 640px) { .extras { grid-template-columns: 1fr; } }

/* Univers graphique HUG */
.assets-group { margin-bottom: clamp(32px, 4.5vw, 64px); }
.assets-group .project__subtitle { margin-top: 0; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 14vw, 190px), 1fr)); gap: clamp(8px, 1vw, 14px); }
.assets--wide { grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 26vw, 360px), 1fr)); }
.asset { --pad: 12%; position: relative; margin: 0; aspect-ratio: 1 / 1; background: var(--soft); border-radius: 6px; overflow: hidden; min-width: 0; }
.asset img, .teaser__item img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; }
.asset--tall { aspect-ratio: 4 / 5; --pad: 9%; }
.asset--wide { aspect-ratio: 3 / 2; --pad: 7%; }
.asset--red { background: #d41f1f; }
.asset--halo img { filter: drop-shadow(0 1px 1.5px rgba(40,45,50,.35)) drop-shadow(0 0 1px rgba(40,45,50,.3)); }
.teaser { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 0.8vw, 12px); margin-bottom: clamp(28px, 3.5vw, 48px); }
.teaser__item { --pad: 10%; position: relative; display: block; aspect-ratio: 4 / 5; background: var(--soft); border-radius: 6px; overflow: hidden; min-width: 0; }
.teaser__item img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.teaser__item:hover img { transform: scale(1.06); }
@media (max-width: 640px) { .teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); } .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .assets--wide { grid-template-columns: 1fr; } }

/* Angles des peintures du carrousel (sans style en ligne, pour la CSP) */
.r0 { --a: 0deg; }
.r0 .cv { --o: 0deg; }
.r45 { --a: 45deg; }
.r45 .cv { --o: 45deg; }
.r90 { --a: 90deg; }
.r90 .cv { --o: 90deg; }
.r135 { --a: 135deg; }
.r135 .cv { --o: 135deg; }
.r180 { --a: 180deg; }
.r180 .cv { --o: 180deg; }
.r225 { --a: 225deg; }
.r225 .cv { --o: 225deg; }
.r270 { --a: 270deg; }
.r270 .cv { --o: 270deg; }
.r315 { --a: 315deg; }
.r315 .cv { --o: 315deg; }

/* En-têtes de cartes : titre + année sur la 1re ligne, domaines dessous (évite les débordements) */
@media (max-width: 640px) {
  .card__head { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .card__title { grid-area: 1 / 1; }
  .card__meta .year { grid-area: 1 / 2; align-self: baseline; }
  .card__meta .tags { grid-area: 2 / 1 / 3 / 3; }
}
.cards .card__title { grid-area: 1 / 1; }
.cards .card__meta .year { grid-area: 1 / 2; align-self: baseline; }
.cards .card__meta .tags { grid-area: 2 / 1 / 3 / 3; }
