/* ==========================================================================
   Tiphaine Dyevre — Portfolio 2026
   D'après la maquette Claude Design (desktop 1512 px, mobile 390 px).
   ========================================================================== */

/* ---------- Polices ---------- */

/* Season Sans : fichiers d'essai (TRIAL) de Displaay Type Foundry.
   Remplacer par les fichiers web sous licence avant la mise en ligne. */
@font-face { font-family: "Season Sans"; src: url("../fonts/season-sans-400.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Season Sans"; src: url("../fonts/season-sans-600.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("../fonts/clash-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sarina"; src: url("../fonts/sarina-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Variables ---------- */

:root {
  --bg: #3d1a20;
  --bg-deep: #2a1418;
  --cream: #fff8e7;
  --cream-light: #fffbf0;
  --paper: #f4f1e9;
  --ink-soft: #5b4246;
  --orange: #e64a2c;
  --blue: #bcddeb;
  --red: #8c0716;

  --font-body: "Season Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Sarina", cursive;

  --gutter: clamp(32px, 7.94vw, 120px);
  --content: 1272px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.menu-open { overflow: hidden; }

/* les stickers qui dépassent ne doivent pas élargir la page sur mobile */
main { overflow-x: hidden; overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--bg);
}
.skip-link:focus { top: 16px; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: .88em;
  letter-spacing: 0;
}

.eyebrow {
  font-size: 13px;
  line-height: 18px;
  color: var(--orange);
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .eyebrow { font-size: 12px; }
  .br-desktop, .only-desktop { display: none; }
}
@media (min-width: 768px) {
  .only-mobile { display: none; }
  .nowrap-desktop { white-space: nowrap; }
}

/* ---------- Composants ---------- */

/* Pastilles de catégorie */
.tile {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
}
.tile svg { width: 12px; height: 12px; }
.tile--lg { width: 32px; height: 32px; }
.tile--lg svg { width: 17px; height: 17px; }
.tile--deck { background: var(--bg-deep); color: var(--orange); }
.tile--social { background: var(--orange); color: var(--bg); }
.tile--uxui { background: var(--blue); color: var(--bg); }
.tile--da { background: var(--red); color: var(--cream); }

/* Étiquettes sur les visuels */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 7px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

/* Boutons filtres / onglets */
.chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  height: 39px;
  padding: 0 16px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgb(255 248 231 / .2);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 18px;
  color: var(--cream);
  white-space: nowrap;
  transition: box-shadow .2s, background-color .2s, color .2s;
}
.chip--icon { padding: 0 12px 0 8px; }
.chip:hover { box-shadow: inset 0 0 0 1px rgb(255 248 231 / .6); }
.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
  background: var(--cream);
  color: var(--bg);
}
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--cream); }

/* Boutons « pilule » avec flèche */
.pill {
  --accent: var(--orange);
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 6px 0 20px;
  border-radius: 999px;
  background: rgb(255 248 231 / .06);
  box-shadow: inset 0 0 0 1px rgb(255 248 231 / .18);
  color: rgb(255 248 231 / .75);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: box-shadow .2s, color .2s;
}
.pill:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--cream); }
.pill--blue { --accent: var(--blue); }
.pill__label { flex: 1; }
.pill__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}
.pill__icon svg { width: 14px; height: 14px; transform: rotate(-45deg); transition: transform .35s var(--ease); }
/* au survol, la flèche pivote et se remet droite */
.pill:hover .pill__icon svg,
.pill:focus-visible .pill__icon svg { transform: rotate(0deg); }

/* Flèches carrées */
.arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgb(255 248 231 / .2);
  color: var(--cream);
  transition: box-shadow .2s;
}
.arrow-btn:hover { box-shadow: inset 0 0 0 1px rgb(255 248 231 / .6); }
.arrow-btn svg { width: 12px; height: 12px; }

/* Disponibilité */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1;
  color: rgb(255 248 231 / .5);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.status--lg { gap: 8px; font-size: 14px; color: rgb(255 248 231 / .6); }

.sticker {
  position: absolute;
  max-width: none;
  height: auto;
  pointer-events: none;
}

/* Emplacement d'image encore vide */
.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-deep);
  color: rgb(255 248 231 / .3);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}
.placeholder svg { width: 22px; height: 22px; }

/* Titres de section */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  text-align: center;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 28.4px + 1.43vw, 50px);
  line-height: .99;
  color: var(--cream);
  text-wrap: balance;
}

.lead {
  font-size: clamp(15px, 13.6px + .36vw, 19px);
  line-height: 1.55;
  color: rgb(255 248 231 / .4);
}

@media (max-width: 767px) {
  .section-head { gap: 12px; }
  .h2 { line-height: 1.03; }
  .lead { line-height: 1.5; color: rgb(255 248 231 / .5); }
}

/* ---------- En-tête ---------- */

/* collant : il remonte de 24 px puis reste visible, avec un fond dès que la page défile */
.site-header {
  position: sticky;
  top: -24px;
  z-index: 20;
  margin-bottom: -12px;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgb(61 26 32 / .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgb(255 248 231 / .08);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 36px 0 12px;
}

[id] { scroll-margin-top: 96px; }

.site-header__logo { justify-self: start; }
.site-header__logo img { width: 151px; height: 21px; }

.site-nav {
  display: flex;
  gap: 32px;
  padding: 16px 24px;
}
.site-nav a {
  font-size: 14px;
  line-height: 15px;
  color: var(--cream-light);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s;
}
.site-nav a:hover { color: var(--orange); }

.site-header__contact { justify-self: end; }

.burger { display: none; }

@media (max-width: 1023px) {
  .site-header {
    top: 0;
    margin-bottom: 0;
    background: rgb(61 26 32 / .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    height: 68px;
    padding: 0;
  }
  .site-nav, .site-header__contact { display: none; }
  .site-header__logo img { width: 122px; height: 17px; }
  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgb(255 248 231 / .25);
  }
  .burger span { width: 16px; height: 1.5px; background: var(--cream); }

  [id] { scroll-margin-top: 68px; }
}

/* Menu plein écran (mobile / tablette) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  background: var(--bg-deep);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--ease);
}
.menu__inner {
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
  overflow-y: auto;
}
.menu__top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(255 248 231 / .25);
  font-size: 20px;
  line-height: 1;
}
.menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}
.menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgb(255 248 231 / .15);
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}
.menu__nav span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--orange);
}
.menu__contact { margin-top: auto; color: rgb(255 248 231 / .85); }
.menu.is-open .menu__nav a { animation: fade-up .5s var(--ease) both; }
.menu.is-open .menu__nav a:nth-child(2) { animation-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { animation-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { animation-delay: .15s; }

@media (min-width: 1024px) {
  .menu { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-top: clamp(56px, 35.1px + 5.35vw, 116px);
  text-align: center;
}

.hero__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.hero__kicker {
  font-size: clamp(16px, 14.3px + .45vw, 21px);
  line-height: 1.24;
  color: rgb(255 248 231 / .48);
}

.hero__title {
  max-width: 10.85em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 30.7px + 3.92vw, 90px);
  line-height: 1.09;
  letter-spacing: -1px;
  color: var(--cream-light);
}
.hero__title .script { font-size: .93em; }

@media (max-width: 767px) {
  .hero { gap: 24px; }
  .hero__titles { gap: 10px; }
  .hero__kicker { line-height: 1.4; color: rgb(255 248 231 / .55); }
  .hero__title { line-height: 1.05; }
  .badge { font-weight: 600; }
}

/* Bandeau d'images : défile avec le scroll (desktop) ou en boucle (mobile) */
.strip {
  --strip-h: clamp(295px, 32.2vw, 487px);
  margin-top: clamp(40px, 15.3px + 6.33vw, 111px);
  overflow: hidden;
}
.strip__track {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: max-content;
  height: var(--strip-h);
  will-change: transform;
}
.strip__img {
  flex-shrink: 0;
  width: auto;
  max-width: none;
  height: var(--strip-h);
}
.strip__img--binome { height: calc(var(--strip-h) * .821); }
.strip__img--savoir { height: calc(var(--strip-h) * .85); }

@media (max-width: 767px) {
  .strip__track {
    gap: 10px;
    padding-right: 10px;
    animation: marquee 30s linear infinite;
  }
  /* sur mobile, la photo ouvre le bandeau */
  .strip__img:nth-child(1) { order: 2; }
  .strip__img:nth-child(2) { order: 1; }
  .strip__img:nth-child(3) { order: 3; }
  .strip__img:nth-child(4) { order: 4; }
  .strip__img:nth-child(5) { order: 6; }
  .strip__img:nth-child(6) { order: 5; }
  .strip__img:nth-child(7) { order: 7; }
  .strip__img:nth-child(8) { order: 8; }
}

/* ---------- Références ---------- */

.references {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
  margin-top: clamp(72px, 54.3px + 4.55vw, 123px);
  text-align: center;
}

.references__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 19.2px + .71vw, 30px);
  line-height: 1.1;
  letter-spacing: -.8px;
  color: var(--cream-light);
}

.logos {
  width: min(100% - 2 * var(--gutter) + 40px, 1312px);
  height: 96px;
  overflow: hidden;
  opacity: .4;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.logos__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: marquee 40s linear infinite;
}
.logos__group {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}
.logos__item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 184px;
  height: 96px;
}
.logos__item img { width: var(--w); }

@media (max-width: 767px) {
  .references { gap: 20px; }
  .references__title { line-height: 1.2; letter-spacing: 0; }
  .logos {
    width: 100%;
    height: 64px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  }
  .logos__track { animation-duration: 72s; }
  .logos__group { gap: 32px; padding-right: 32px; }
  .logos__item { width: 110px; height: 64px; }
  .logos__item img { width: auto; max-width: 100px; max-height: 28px; }
}

/* ---------- Projets ---------- */

#projets { margin-top: clamp(88px, 65.1px + 5.88vw, 154px); }

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 575px));
  justify-content: center;
  gap: clamp(20px, 6.77vw - 6.4px, 96px) clamp(24px, 5.42vw, 82px);
  margin-top: clamp(32px, 16.7px + 3.92vw, 76px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
}

.card__media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 575 / 430;
  overflow: hidden;
  background: var(--bg-deep);
}
.card__media video,
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__still { transition: opacity .2s; }
.card.is-playing .card__still { opacity: 0; }

.card__tags {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px;
  pointer-events: none;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px 32px;
  box-shadow: inset 0 0 0 1px rgb(138 114 118 / .1);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  line-height: 18px;
  color: var(--bg-deep);
  white-space: nowrap;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 22.5px + .89vw, 36px);
  line-height: 1.333;
  color: var(--bg-deep);
}
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 20px; }

.card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* sur les cartes étroites, seule la première étiquette reste (comme la maquette mobile) */
@media (max-width: 1023px) {
  .card__tags .tag:not(:first-child) { display: none; }
}

@media (max-width: 767px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .card { border-radius: 16px; }
  .card__tags { gap: 6px; padding: 16px; }
  .card__tags .tag { height: 34px; padding: 0 12px 0 6px; font-size: 13px; line-height: 1; }
  .card__body { gap: 8px; padding: 18px 20px 22px; }
  .card__meta { gap: 12px; font-size: 12px; line-height: 16px; }
  .card__meta .eyebrow { font-size: 11px; line-height: 16px; }
  .card__title { line-height: 1.15; }
  .card__desc { font-size: 14px; line-height: 1.5; }
}

/* ---------- Autres projets (archives) ---------- */

.archive {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: min(100% - 2 * var(--gutter), 1235px);
  margin: clamp(72px, 52.5px + 4.99vw, 128px) auto 0;
  padding-bottom: clamp(0px, 4.28vw - 16.7px, 48px);
}

.archive__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
}

.archive__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive__title {
  font-size: clamp(34px, 27.7px + 1.6vw, 52px);
  line-height: 1;
  white-space: nowrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.archive__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 12px;
  border-bottom: 1px solid rgb(255 248 231 / .2);
  transition: background-color .2s;
}
.archive__row:hover { background: rgb(255 248 231 / .04); }
.archive__row[href] { cursor: pointer; }

.archive__name {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.archive__project {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(20px, 17.2px + .71vw, 28px);
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.archive__client,
.archive__category,
.archive__year {
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.archive__item.is-entering { animation: fade-up .45s var(--ease) both; }

@media (max-width: 767px) {
  .archive {
    gap: 24px;
    width: 100%;
  }
  .archive__head {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .archive__heading {
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-inline: 16px;
    scrollbar-width: none;
  }
  .archive__list {
    gap: 0;
    margin-inline: 16px;
    border-bottom: 1px solid rgb(255 248 231 / .15);
  }
  .archive__row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
      "tile project year"
      "tile client year";
    gap: 4px 14px;
    padding: 16px 0;
    border-bottom: 0;
    border-top: 1px solid rgb(255 248 231 / .15);
  }
  .archive__name { display: contents; }
  .archive__name .tile { grid-area: tile; }
  .archive__name .tile svg { width: 15px; height: 15px; }
  .archive__project { grid-area: project; font-size: 20px; }
  .archive__client { grid-area: client; font-size: 13px; line-height: 1.2; color: rgb(255 248 231 / .55); }
  .archive__category { display: none; }
  .archive__year { grid-area: year; font-size: 13px; color: rgb(255 248 231 / .55); }
}

/* Listes horizontales défilantes (filtres, onglets) sur mobile */
@media (max-width: 767px) {
  [data-drag-scroll] { cursor: grab; touch-action: pan-x pan-y; }
  [data-drag-scroll]::-webkit-scrollbar { display: none; }
  [data-drag-scroll].is-dragging { cursor: grabbing; }
  [data-drag-scroll] .chip { height: 40px; padding: 0 14px; box-shadow: inset 0 0 0 1px rgb(255 248 231 / .25); }
  [data-drag-scroll] .chip--icon { padding-left: 8px; }
  [data-drag-scroll] .chip .tile { width: 24px; height: 24px; }
  [data-drag-scroll] .chip[aria-pressed="true"],
  [data-drag-scroll] .chip[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--cream); }
}

/* ---------- Savoir-faire ---------- */

.services { margin-top: clamp(96px, 59.5px + 9.36vw, 201px); }
.services .section-head { max-width: 669px; }
.services .h2 .script { line-height: 1.1; }

.services__tabs {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(28px, 20.4px + 1.96vw, 50px);
}
.services__tabs .chip { background-color: var(--bg); }
.services__tabs .chip[aria-selected="true"] { background-color: var(--cream); }

.services__stage {
  display: grid;
  grid-template-columns: 45px minmax(0, 982px) 45px;
  grid-template-areas: "prev card next";
  align-items: center;
  justify-content: center;
  gap: 16px 17px;
  margin-top: clamp(20px, 9.6px + 2.67vw, 50px);
  padding-inline: var(--gutter);
}
.services__prev { grid-area: prev; }
.services__prev svg { transform: rotate(180deg); }
.services__next { grid-area: next; }

.services__card {
  grid-area: card;
  border-radius: 20px;
  overflow: hidden;
}

.service {
  display: flex;
  min-height: 484px;
}
.service[hidden] { display: none; }

.service--deck { --accent: var(--bg-deep); --ink: var(--cream); --icon: var(--orange); }
.service--social { --accent: var(--orange); --ink: var(--bg); --icon: var(--bg); }
.service--uxui { --accent: var(--blue); --ink: var(--bg); --icon: var(--bg); }
.service--da { --accent: var(--red); --ink: var(--cream); --icon: var(--cream); }

.service__info {
  display: flex;
  flex: 0 0 49.7%;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 48px;
  background: var(--accent) center / cover no-repeat;
  color: var(--ink);
}
.service--deck .service__info { background-image: url("../assets/img/service-bg-deck.webp"); }
.service--social .service__info { background-image: url("../assets/img/service-bg-social.webp"); }
.service--uxui .service__info { background-image: url("../assets/img/service-bg-uxui.webp"); }
.service--da .service__info { background-image: url("../assets/img/service-bg-da.webp"); }

.service__icon { flex-shrink: 0; width: 48px; height: 48px; color: var(--icon); }

.service__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 26.5px + .89vw, 40px);
  line-height: 1;
  letter-spacing: -1.2px;
}

.service__desc {
  min-height: 6.5em;
  font-size: 16px;
  line-height: 1.6;
  opacity: .88;
  text-wrap: pretty;
}

.service__chips {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  gap: 8px;
  min-height: 72px;
  padding: 4px 0;
}
.service__chips li {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 4px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgb(61 26 32 / .15);
  color: var(--bg);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.service__visual {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  padding: 48px;
  background: #d6e2e8 url("../assets/img/blend.webp") center / cover no-repeat;
}

.service__frame {
  position: relative;
  width: min(316px, 100%);
  aspect-ratio: 1;
}
.service__frame > img:first-child {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.service__sticker {
  position: absolute;
  top: -12.7%;
  right: -14%;
  width: 35%;
  rotate: 12deg;
  pointer-events: none;
}

@media (max-width: 1099px) {
  .services__stage {
    grid-template-columns: 1fr 45px 45px 1fr;
    grid-template-areas:
      "card card card card"
      ". prev next .";
    gap: 16px 10px;
  }
  .service__info { padding: 36px; }
}

@media (max-width: 767px) {
  .services__tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-inline: 16px;
    scrollbar-width: none;
  }
  .services__stage { grid-template-columns: 1fr 48px 48px 1fr; }
  .services__stage .arrow-btn { width: 48px; height: 48px; box-shadow: inset 0 0 0 1px rgb(255 248 231 / .25); }
  .services__card { border-radius: 16px; }
  .service { flex-direction: column; min-height: 0; }
  .service__info {
    flex: none;
    justify-content: flex-start;
    gap: 20px;
    padding: 28px 24px;
  }
  .service__icon { width: 36px; height: 36px; }
  .service__text { gap: 20px; }
  .service__title { letter-spacing: -.8px; }
  .service__desc { min-height: 0; font-size: 15px; line-height: 1.55; }
  .service__chips { gap: 6px; min-height: 0; padding: 0; }
  .service__chips li { height: 28px; padding: 0 10px; box-shadow: none; font-size: 12px; }
  .service__visual {
    flex: none;
    height: 300px;
    padding: 0;
    background-position: center 35%;
    background-size: auto 170%;
  }
  .service__frame { width: 210px; }
  .service__sticker { top: -11%; right: -15%; width: 38%; }
}

/* ---------- À propos ---------- */

.about {
  margin-top: clamp(96px, 59.5px + 9.36vw, 201px);
  overflow: hidden;
  background: var(--bg-deep);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  column-gap: clamp(48px, 6.35vw, 96px);
  padding-block: clamp(72px, 48.4px + 6.06vw, 140px);
}

.about__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.about__words {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__intro {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.6;
}

.about__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  font-size: 18px;
  line-height: 1.6;
}
.about__detail {
  padding-top: 20px;
  border-top: 1px solid rgb(255 248 231 / .2);
}
.about__detail .eyebrow { margin-bottom: 14px; }

/* révélation mot à mot au scroll (activée en JS sur desktop) */
.reveal-words .word { opacity: .18; transition: opacity .2s; }
.reveal-words .word.is-on { opacity: 1; }

.about__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: stretch;
}

.about__media { position: relative; }
.about__photo {
  height: 580px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-deep);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__sticker--freelance { left: -90px; top: 70px; width: 220px; rotate: -8deg; }
.about__sticker--oeil { right: -30px; top: -30px; width: 110px; rotate: 12deg; }
.about__sticker--peace { right: -40px; bottom: 40px; width: 130px; rotate: 14deg; }

@media (prefers-reduced-motion: no-preference) {
  .js .about:not(.is-revealed) .about__photo,
  .js .about:not(.is-revealed) .about__sticker { opacity: 0; }
  .about.is-revealed .about__photo { animation: photo-in .9s var(--ease) .15s both; }
  .about.is-revealed .about__sticker {
    animation: sticker-pop .6s var(--ease) both, sticker-float 3.2s ease-in-out infinite;
    animation-delay: calc(.7s + var(--i) * .16s), calc(1.3s + var(--i) * .16s);
    animation-duration: .6s, calc(3.2s + var(--i) * .5s);
  }
}

@media (max-width: 1023px) {
  .about__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .about__text, .about__words { display: contents; }
  .about__eyebrow { order: 1; align-self: center; }
  .about__intro { order: 2; }
  .about__media { order: 3; align-self: center; width: min(100% - 24px, 460px); }
  .about__details { order: 4; }
  .about__actions { order: 5; }
  .about__photo { height: clamp(400px, 60vw, 560px); }
}

@media (max-width: 767px) {
  .about__intro { font-size: 16px; }
  .about__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: 16px;
    color: rgb(255 248 231 / .8);
  }
  .about__detail { padding-top: 16px; }
  .about__detail .eyebrow { margin-bottom: 10px; }
  .about__actions { display: flex; flex-direction: column; gap: 10px; }
  .about__actions .pill--mail { order: -1; }
  .about__media { width: calc(100% - 24px); }
  .about__photo { height: 400px; border-radius: 16px; }
  .about__sticker--freelance { left: -28px; top: 40px; width: 150px; }
  .about__sticker--oeil { right: -16px; top: -20px; width: 78px; }
  .about__sticker--peace { right: -20px; bottom: 30px; width: 88px; }
}

/* ---------- Collaboration ---------- */

.collab {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-block: clamp(96px, 59.9px + 9.27vw, 200px) clamp(120px, 106.1px + 3.57vw, 160px);
}
.collab .section-head { max-width: none; margin-inline: auto; }

.collab__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  border-radius: 20px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px rgb(255 248 231 / .1);
}
.chat--company { --accent: var(--blue); }
.chat--agency { --accent: var(--orange); }

.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgb(255 248 231 / .12);
}

.chat__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 21.2px + .71vw, 32px);
  line-height: 1.1;
}
.chat__title .script { font-size: .875em; color: var(--accent); }

.chat__needs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px 18px 18px 4px;
  background: var(--cream);
  color: var(--bg);
  font-size: 17px;
  line-height: 1.35;
}

.chat__reply {
  display: flex;
  align-items: flex-end;
  align-self: flex-end;
  gap: 12px;
  max-width: 88%;
}
.bubble--reply {
  max-width: none;
  padding: 18px 22px;
  border-radius: 18px 18px 4px 18px;
  background: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  text-wrap: pretty;
}

.avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg-deep);
}

.chat__cta { margin-top: 8px; color: rgb(255 248 231 / .55); }

.collab__sticker {
  top: -58px;
  right: -80px;
  z-index: 2;
  width: 160px;
  rotate: 12deg;
}

@media (max-width: 1023px) {
  .collab__grid {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 640px);
    margin-inline: auto;
  }
  .collab__sticker { top: -40px; right: -14px; width: 120px; }
}

@media (max-width: 767px) {
  .collab { gap: 32px; }
  .collab__grid { gap: 32px; }
  .chat { gap: 22px; padding: 24px 20px; border-radius: 16px; }
  .chat__head { padding-bottom: 18px; }
  .chat .status { font-size: 12px; }
  .chat__needs { gap: 8px; }
  .bubble { max-width: 85%; padding: 11px 15px; border-radius: 16px 16px 16px 4px; font-size: 15px; }
  .chat__reply { gap: 10px; max-width: 92%; }
  .bubble--reply { padding: 14px 16px; border-radius: 16px 16px 4px 16px; font-size: 18px; }
  .avatar { width: 36px; height: 36px; box-shadow: none; }
  .chat__cta { height: 52px; margin-top: 0; padding: 0 5px 0 18px; font-size: 15px; color: rgb(255 248 231 / .6); }
  .chat__cta .pill__icon { width: 42px; height: 42px; }
  .chat__cta .pill__icon svg { width: 13px; height: 13px; }
}

/* Ma réponse animée (activée par le JS) : points « en train d’écrire », puis texte lettre par lettre */
.bubble--reply { position: relative; }
.bubble__word { white-space: nowrap; }
.chat.is-pending .bubble--reply:not(.is-shown) { background: transparent; }
.chat.is-pending .bubble__char:not(.is-on) { opacity: 0; }
.chat.is-pending:not(.is-replying) .avatar { opacity: 0; }
.chat .avatar { transition: opacity .3s; }
.bubble--reply.is-shown { animation: bubble-in .35s var(--ease) both; transform-origin: 100% 100%; }

.typing {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 52px;
  padding: 0 18px;
  border-radius: 18px 18px 4px 18px;
  background: var(--accent);
  transform-origin: 100% 100%;
  animation: bubble-in .3s var(--ease) both;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream);
  opacity: .35;
  animation: typing-dot 1s infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

@keyframes bubble-in {
  from { opacity: 0; scale: .85; }
}
@keyframes typing-dot {
  0%, 60%, 100% { opacity: .35; translate: 0 0; }
  30% { opacity: 1; translate: 0 -3px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .typing { height: 46px; padding: 0 15px; border-radius: 16px 16px 4px 16px; }
}

/* ---------- Pied de page ---------- */

.footer {
  overflow: hidden;
  background: var(--bg-deep);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 31.3px + 4.28vw, 96px);
  padding-block: clamp(72px, 48.4px + 6.06vw, 140px) 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, clamp(150px, 13.23vw, 200px));
  grid-template-areas: "intro contact menu city";
  align-items: start;
  column-gap: clamp(24px, 3.17vw, 48px);
}

.footer__intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 32.4px + 1.43vw, 54px);
  line-height: 1.09;
  letter-spacing: -.6px;
  color: var(--cream-light);
}
.footer__title .script { font-size: .93em; color: var(--orange); }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__contact { grid-area: contact; gap: 12px; }
.footer__contact .eyebrow { margin-bottom: 4px; }
.footer__menu { grid-area: menu; }
.footer__city { grid-area: city; }

.footer__link {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--cream);
  transition: color .2s;
}
a.footer__link:hover { color: var(--orange); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 248 231 / .12);
  font-size: 13px;
  line-height: 18px;
  color: rgb(255 248 231 / .5);
}
.footer__top {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  transition: color .2s;
}
.footer__top:hover { color: var(--cream); }
.footer__top svg { width: 11px; height: 11px; transform: rotate(-90deg); }
.footer__cookies {
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.footer__cookies:hover { color: var(--cream); }

/* Bandeau de consentement aux cookies : carte en bas à gauche */
.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(400px, calc(100% - 32px));
  padding: 22px;
  border-radius: 16px;
  background: var(--bg-deep);
  box-shadow: 0 20px 50px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 248 231 / .12);
  color: var(--cream);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .4s var(--ease);
}
.consent.is-visible { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__body { display: flex; flex-direction: column; gap: 6px; }
.consent__title { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--cream); }
.consent__text { margin: 0; font-size: 14px; line-height: 1.5; color: rgb(255 248 231 / .8); }
.consent__actions { display: flex; gap: 10px; }
.consent__btn {
  flex: 1;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(255 248 231 / .3);
  color: var(--cream);
  font-size: 14px;
  white-space: nowrap;
  transition: box-shadow .2s, background-color .2s, color .2s;
}
.consent__btn:hover { box-shadow: inset 0 0 0 1px var(--orange); }
.consent__btn--accept { background: var(--cream); box-shadow: none; color: var(--bg-deep); }
.consent__btn--accept:hover { background: var(--orange); box-shadow: none; color: var(--cream); }
.has-cursor .consent__btn { cursor: pointer; }

@media (max-width: 767px) {
  .consent { left: 16px; bottom: 16px; padding: 18px; }
}

@media (max-width: 1359px) {
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "intro intro intro"
      "contact menu city";
    row-gap: 56px;
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "intro intro"
      "contact contact"
      "menu city";
    gap: 48px 16px;
  }
  .footer__intro { align-items: center; gap: 16px; text-align: center; }
  .footer__title { letter-spacing: -.5px; }
  .footer__contact { gap: 10px; }
  .footer__contact .eyebrow { display: none; }
  .footer__contact .pill { color: rgb(255 248 231 / .85); }
  .footer__col { gap: 12px; }
  .footer__link { font-size: 19px; }
  .footer__bottom { padding-top: 18px; font-size: 12px; }
}

/* ---------- Curseur « Voir le projet » + aperçu ---------- */

.cursor,
.preview {
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  pointer-events: none;
}
.cursor { will-change: transform; }
.has-cursor .cursor,
.has-cursor .preview { display: block; }
.has-cursor [data-cursor] { cursor: none; }

.cursor {
  z-index: 1000;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
}
.cursor__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.cursor.is-active .cursor__dot { transform: scale(1); }

/* l'aperçu garde les proportions de l'image et reste centré sur le curseur */
.preview {
  z-index: 999;
  width: 280px;
  margin-left: 64px;
}
.preview__inner {
  width: 100%;
  translate: 0 -50%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 20px 50px rgb(0 0 0 / .35);
  opacity: 0;
  /* pas de zoom à l'apparition : l'image reste affichée à sa taille réelle, donc nette */
  transform: translateY(12px) rotate(-3deg);
  transition: opacity .25s, transform .35s var(--ease);
}
.preview.is-active .preview__inner { opacity: 1; transform: rotate(-3deg); }
.preview img { width: 100%; height: auto; }

/* ---------- Page projet ---------- */

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  column-gap: clamp(48px, 6.35vw, 96px);
  padding-top: clamp(40px, 8.4px + 8.11vw, 131px);
}

.project-hero__main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.back-link {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  color: rgb(255 248 231 / .6);
  text-transform: uppercase;
  transition: color .2s;
}
.back-link:hover { color: var(--cream); }
.back-link svg { width: 11px; height: 11px; transform: rotate(180deg); }

.project-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 36.7px + 3.92vw, 96px);
  line-height: .95;
  letter-spacing: -.026em;
}

.project-hero__desc {
  max-width: 720px;
  font-size: clamp(16px, 14.6px + .36vw, 20px);
  line-height: 1.6;
  color: rgb(255 248 231 / .7);
  text-wrap: pretty;
}
.project-hero__desc p + p { margin-top: 1em; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.meta + .meta {
  padding-top: 20px;
  border-top: 1px solid rgb(255 248 231 / .15);
}
.meta__value {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}
.project-hero__meta .pill { margin-top: 8px; }

.gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(40px, 27.5px + 3.21vw, 72px);
}
.gallery__rule {
  height: 1px;
  margin: 0 0 48px;
  border: 0;
  background: rgb(255 248 231 / .15);
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-deep);
}
.gallery__item > img,
.gallery__item > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery .placeholder { background: #422127; }
.gallery__item--wide { aspect-ratio: 1272 / 760; }
.gallery__row {
  display: grid;
  gap: 24px;
}
.gallery__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery__row--2 .gallery__item { aspect-ratio: 624 / 720; }
.gallery__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__row--3 .gallery__item { aspect-ratio: 408 / 560; }
/* visuel au format libre : garde ses proportions d'origine */
.gallery__item--auto { aspect-ratio: auto; }
.gallery__item--auto > img { height: auto; }
/* deux visuels de largeurs différentes, alignés à la même hauteur (--r = largeur / hauteur) */
.gallery__row--flex { display: flex; }
.gallery__row--flex > .gallery__item { flex: var(--r) 1 0; min-width: 0; aspect-ratio: auto; }
.gallery__row--flex > .gallery__item > img { height: auto; }

.more {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: clamp(88px, 49.1px + 9.98vw, 200px) clamp(120px, 92.2px + 7.13vw, 200px);
}
.more__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card--compact { transition: transform .4s var(--ease); }
.card--compact:hover { transform: translateY(-6px); }
.card--compact .card__tags { gap: 6px; padding: 20px; }
.card--compact .tag { height: 32px; gap: 6px; padding: 0 10px 0 5px; font-size: 13px; }
.card--compact .card__body { gap: 8px; padding: 20px 24px 28px; }
.card--compact .card__meta { gap: 16px; }
.card--compact .card__meta .eyebrow { font-size: 12px; }
.card--compact .card__title { font-size: 30px; line-height: 1.25; }

@media (max-width: 1023px) {
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .project-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .project-hero__main { display: contents; }
  .back-link { font-size: 12px; }
  .back-link svg { width: 10px; height: 10px; }
  .project-hero__title { letter-spacing: -1.5px; }
  .project-hero .tag { height: 34px; padding: 0 12px 0 6px; font-size: 13px; line-height: 1; }
  .tags { gap: 6px; }
  .project-hero__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding-top: 8px;
  }
  .meta { gap: 8px; }
  .meta + .meta {
    padding-top: 0;
    padding-left: 16px;
    border-top: 0;
    border-left: 1px solid rgb(255 248 231 / .15);
  }
  .meta__value { font-size: 19px; line-height: 1.2; }
  .project-hero__meta .pill { grid-column: 1 / -1; margin-top: 0; color: rgb(255 248 231 / .85); }

  .gallery { gap: 12px; }
  .gallery__rule { margin-bottom: 28px; }
  /* sur mobile, les visuels gardent leurs proportions d'origine (aucun recadrage) */
  .gallery__item,
  .gallery__row .gallery__item { border-radius: 16px; aspect-ratio: auto; }
  .gallery__item > img,
  .gallery__item > video { height: auto; }
  /* sur mobile, les visuels s'empilent un par un, en pleine largeur */
  .gallery__row,
  .gallery__row--2,
  .gallery__row--3 { display: flex; flex-direction: column; gap: 12px; }
  .gallery__row--flex > .gallery__item { flex: none; }

  .more { gap: 28px; }
  .more__head { align-items: center; gap: 12px; text-align: center; }
  .more__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card--compact .card__body { padding: 18px 20px 22px; }
  .card--compact .card__meta { gap: 12px; }
  .card--compact .card__meta .eyebrow { font-size: 11px; }
  .card--compact .card__title { font-size: 26px; line-height: 1.15; }
}

/* ---------- Animations ---------- */

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes photo-in {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: none; }
}

@keyframes sticker-pop {
  0% { opacity: 0; transform: scale(.2); }
  70% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes sticker-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .strip__track, .logos__track { animation: none; }
}
