@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/cormorant-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-mono-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-style: normal; font-display: swap; src: url("/fonts/dm-sans.woff2") format("woff2"); }

:root {
  --bg: #131313;
  --surface: #1b1b1b;
  --surface-2: #222;
  --ink: #eee9e2;
  --soft: #c9c3bb;
  --muted: #8f8a84;
  --line: #2a2a2a;
  --accent: #e8483d;
  --accent-ink: #fff;
  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::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(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.label {
  margin: 0 0 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  color: var(--accent);
}
.title {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #f25e52; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(238,233,226,.45); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--edge);
  transition: background .4s, padding .4s, border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(19,19,19,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo {
  font-family: var(--serif); font-size: 28px; font-weight: 600; text-decoration: none; letter-spacing: .02em;
  width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(238,233,226,.35); border-radius: 50%;
  transition: border-color .3s, background .3s;
}
.nav__logo:hover { border-color: var(--accent); background: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav__links a { position: relative; text-decoration: none; padding: 4px 0; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 9px 18px !important; border-radius: 999px; background: var(--accent); color: #fff; transition: background .3s; }
.nav__cta:hover { background: #f25e52; }
.nav__burger { display: none; width: 46px; height: 46px; border: 1px solid rgba(238,233,226,.35); border-radius: 50%; background: none; cursor: pointer; position: relative; z-index: 2; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #000; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  filter: saturate(1.15) contrast(1.04);
  transform: scale(1.12); transition: transform 2.4s var(--ease);
}
.hero.is-ready .hero__img { transform: scale(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, #131313 0%, rgba(19,19,19,.92) 8%, rgba(19,19,19,.55) 22%, rgba(19,19,19,0) 42%),
    linear-gradient(90deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.25) 45%, rgba(10,10,10,0) 70%),
    linear-gradient(0deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,0) 40%),
    linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 18%);
}
.hero__body { position: absolute; z-index: 2; left: var(--edge); right: var(--edge); bottom: clamp(48px, 10vh, 110px); }
.hero__role { margin: 0 0 16px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; color: var(--ink); }
.dot { flex: none; width: 9px; height: 9px; margin-left: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(232,72,61,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,72,61,.6); } 70% { box-shadow: 0 0 0 12px rgba(232,72,61,0); } 100% { box-shadow: 0 0 0 0 rgba(232,72,61,0); } }
.hero__name {
  margin: 0 0 30px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(54px, 8vw, 118px); line-height: .95; letter-spacing: -.015em;
}
.hero__name span { display: inline-block; }
.hero__name span:last-child { font-style: italic; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.js .hero__role, .js .hero__name span, .js .hero__actions { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero.is-ready .hero__role { opacity: 1; transform: none; transition-delay: .2s; }
.hero.is-ready .hero__name span { opacity: 1; transform: none; transition-delay: .35s; }
.hero.is-ready .hero__name span + span { transition-delay: .5s; }
.hero.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: .7s; }
.hero__scroll { position: absolute; z-index: 2; right: var(--edge); bottom: clamp(48px, 10vh, 110px); width: 26px; height: 44px; border: 1.5px solid rgba(238,233,226,.6); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; scroll-margin-top: 40px; }
.section--line { border-top: 1px solid var(--line); }
.head { margin-bottom: clamp(32px, 4vw, 52px); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer;
  font-size: 14px; color: var(--soft); transition: all .3s;
}
.filter:hover { border-color: var(--muted); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 22px); }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-self: start; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card[hidden] { display: none; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 6px; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); opacity: .7; transition: opacity .5s; }
.card__tag { position: absolute; z-index: 1; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(19,19,19,.7); backdrop-filter: blur(6px); font-family: var(--mono); font-size: 12px; }
.card__count { position: absolute; z-index: 1; right: 14px; bottom: 14px; font-family: var(--mono); font-size: 12px; color: #fff; }
.card__body { padding: 16px 2px 0; }
.card__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; transition: color .3s; }
.card__sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.card:hover .card__media img { transform: scale(1.07); }
.card:hover .card__media::after { opacity: 1; }
.card:hover .card__title { color: var(--accent); }

.card--cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; aspect-ratio: 4 / 5; padding: 32px; border: 1px dashed #3a3a3a; border-radius: 6px; text-decoration: none; transition: border-color .4s, background .4s; }
.card--cta:hover { border-color: var(--accent); background: rgba(232,72,61,.06); }
.card--cta p { margin: 0; font-family: var(--serif); font-size: clamp(28px, 2.4vw, 36px); line-height: 1.1; }
.card--cta span { color: var(--accent); font-size: 15px; }

/* ---------- Vidéo ---------- */
.videos__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.vcard { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); border-radius: 6px; overflow: hidden; cursor: pointer; text-align: left; aspect-ratio: 9 / 16; }
.vcard--featured { aspect-ratio: 21 / 9; }
.vcard img, .vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.vcard video { opacity: 0; }
.vcard.is-playing video { opacity: 1; }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 55%); }
.vcard__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(232,72,61,.92); color: #fff; font-size: 20px; padding-left: 4px;
  transition: transform .4s var(--ease), opacity .4s;
}
.vcard--featured .vcard__play { width: 84px; height: 84px; margin: -42px 0 0 -42px; font-size: 26px; }
.vcard:hover .vcard__play { transform: scale(1.12); }
.vcard.is-playing .vcard__play { opacity: 0; }
.vcard__text { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }
.vcard__client { display: block; font-family: var(--mono); font-size: 12px; color: var(--soft); }
.vcard__title { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; color: #fff; }
.vcard--featured .vcard__text { left: 28px; bottom: 24px; }
.vcard--featured .vcard__title { font-size: clamp(30px, 3.4vw, 48px); }
.vcard:hover img { transform: scale(1.05); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service { grid-column: span 2; padding: 30px 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; transition: border-color .4s, transform .4s var(--ease), background .4s; }
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service:hover { border-color: rgba(232,72,61,.6); transform: translateY(-4px); background: var(--surface-2); }
.service h3 { margin: 0 0 18px; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15.5px; }
.service li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 640px); gap: clamp(36px, 7vw, 110px); align-items: center; justify-content: center; }
.about__photo { margin: 0; overflow: hidden; border-radius: 6px; }
.about__photo img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.04); }
.about__text .title { margin-bottom: 28px; font-size: clamp(48px, 6.4vw, 92px); }
.about__text .label { font-size: 15px; }
.about__text p:not(.label) { font-size: 18.5px; }
.about__text p:not(.label) { margin: 0 0 18px; color: var(--soft); max-width: 56ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); }
.contact__lede { margin: 22px 0 34px; color: var(--soft); max-width: 36ch; }
.contact__list { margin: 0; }
.contact__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__list > div:last-child { border-bottom: 1px solid var(--line); }
.contact__list dt { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.contact__list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact__list a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.contact__list a:hover { background-size: 100% 1px; color: #fff; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--soft); }
.field label span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,72,61,.18); }
.field textarea { resize: vertical; min-height: 140px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { margin: 0; color: var(--soft); font-size: 15px; }
.form__status.is-error { color: #ff8a80; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer p { margin: 0; }
.footer__name { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.footer__top { text-decoration: none; color: var(--soft); }
.footer__top:hover { color: var(--accent); }

/* ---------- Retour en haut ---------- */
.totop {
  position: fixed; z-index: 40; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(27,27,27,.9); backdrop-filter: blur(8px); text-decoration: none; font-size: 18px;
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background .3s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent); }
.totop svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop circle { fill: none; stroke-width: 2; }
.totop__track { stroke: #333; }
.totop__bar { stroke: var(--accent); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset .1s linear; }
.totop:hover .totop__bar { stroke: #fff; }

/* ---------- Curseur ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .cursor, .cursor-dot { display: block; position: fixed; z-index: 300; left: 0; top: 0; pointer-events: none; border-radius: 50%; }
  .cursor {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(238,233,226,.6);
    display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
  }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
  .cursor__label { font-family: var(--mono); font-size: 11px; color: #fff; opacity: 0; transition: opacity .25s; }
  .cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--accent); }
  .cursor.is-view { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: var(--accent); border-color: var(--accent); }
  .cursor.is-view .cursor__label { opacity: 1; }
  .cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
}

/* ---------- Projet ouvert ---------- */
.viewer { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.viewer[hidden], .lightbox[hidden] { display: none; }
.viewer.is-open { animation: up .5s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.viewer__bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 22px var(--gutter); background: rgba(19,19,19,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.viewer__bar .label { margin-bottom: 6px; }
.viewer__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.viewer__sub { margin: 6px 0 0; color: var(--muted); }
.viewer__grid { columns: 3 300px; column-gap: 12px; padding: 16px var(--gutter) 60px; max-width: 1600px; margin: 0 auto; }
.viewer__grid button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--surface); border-radius: 4px; overflow: hidden; cursor: pointer; break-inside: avoid; }
.viewer__grid img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.viewer__grid button:hover img { transform: scale(1.04); }
.js .viewer__grid button { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s var(--ease); }
.js .viewer__grid button.is-in { opacity: 1; transform: none; }
.close { flex: none; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; font-size: 15px; transition: background .3s, border-color .3s; }
.close:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(8,8,8,.97); display: flex; align-items: center; justify-content: center; animation: fade .3s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 70px 80px; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; animation: zoomin .4s var(--ease) both; }
@keyframes zoomin { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb { position: absolute; top: 50%; width: 54px; height: 54px; margin-top: -27px; border: 1px solid #333; border-radius: 50%; background: rgba(27,27,27,.8); font-size: 28px; line-height: 1; cursor: pointer; transition: background .3s, border-color .3s; }
.lb:hover { background: var(--accent); border-color: var(--accent); }
.lb--prev { left: 18px; }
.lb--next { right: 18px; }
.lb[hidden] { display: none; }
.close--lb { position: absolute; top: 16px; right: 18px; background: rgba(27,27,27,.8); }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }

body.is-locked { overflow: hidden; }

/* ---------- Apparitions au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card, .js .vcard { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .card.is-in, .js .vcard.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos__row { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: span 1; }
  .service:last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: rgba(19,19,19,.98); font-family: var(--serif); font-size: 40px;
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav__links.is-open a { opacity: 1; transform: none; }
  .nav__links.is-open a:nth-child(2) { transition-delay: .05s; }
  .nav__links.is-open a:nth-child(3) { transition-delay: .1s; }
  .nav__links.is-open a:nth-child(4) { transition-delay: .15s; }
  .nav__links.is-open a:nth-child(5) { transition-delay: .2s; }
  .nav__cta { font-family: var(--sans); font-size: 18px; margin-top: 10px; padding: 12px 28px !important; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 300px; }
  .form { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 4 / 4.4; }
  .card--cta { aspect-ratio: auto; padding: 28px; }
  .vcard--featured { aspect-ratio: 16 / 10; }
  .videos__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .videos__row::-webkit-scrollbar { display: none; }
  .videos__row .vcard { flex: 0 0 58%; scroll-snap-align: start; }
  .services { grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .lightbox__stage { padding: 64px 10px; }
  .lb { width: 44px; height: 44px; margin-top: -22px; font-size: 22px; }
  .lb--prev { left: 8px; } .lb--next { right: 8px; }
  .viewer__grid { columns: 2 140px; column-gap: 8px; }
  .viewer__grid button { margin-bottom: 8px; }
  .totop { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .card, .js .vcard, .js .viewer__grid button, .js .hero__role, .js .hero__name span, .js .hero__actions { opacity: 1; transform: none; }
}

/* ---------- Ajouts V4 ---------- */
.contact__list a.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.contact__list dd small { display: block; width: 100%; color: var(--muted); font-size: 14px; line-height: 1.5; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--soft); line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--ink); }
.consent.is-invalid { color: #ff8a80; }
.coffee { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--soft); transition: border-color .3s, color .3s, background .3s; }
.coffee:hover { border-color: #ffdd00; color: var(--ink); background: rgba(255,221,0,.06); }
.coffee span { font-size: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a { text-decoration: none; color: var(--soft); }
.footer__links a:hover { color: var(--accent); }
.coffee[hidden] { display: none; }
.viewer__sub a { color: var(--accent); }

/* ---------- Bouton flottant Buy Me a Coffee ---------- */
.bmc {
  position: fixed; z-index: 40; left: 22px; bottom: 22px; height: 52px;
  display: inline-flex; align-items: center; gap: 0; padding: 0 15px 0 14px; border-radius: 999px;
  background: #ffdd00; color: #1b1b1b; text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease), gap .4s var(--ease), padding .4s var(--ease), background .3s;
}
.bmc.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bmc__icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
.bmc__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bmc.is-on .bmc__icon { animation: steam 3.2s ease-in-out 1s 2; }
@keyframes steam { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(0); } }
.bmc__text { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease); }
.bmc:hover, .bmc:focus-visible, .bmc.is-open { gap: 10px; padding-right: 22px; background: #ffe633; }
.bmc:hover .bmc__text, .bmc:focus-visible .bmc__text, .bmc.is-open .bmc__text { max-width: 200px; }
@media (max-width: 640px) { .bmc { left: 14px; bottom: 14px; height: 46px; padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .bmc.is-on .bmc__icon { animation: none; } }

/* ---------- Transition douce accueil → portfolio ---------- */
.hero__img { will-change: transform, opacity; }
#portfolio { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 90px); }
#portfolio::before {
  content: ""; position: absolute; left: 0; right: 0; top: -120px; height: 120px; pointer-events: none;
  background: linear-gradient(0deg, #131313, rgba(19,19,19,0));
}

/* Le point rouge s'efface quand le rond « Voir » / « Lire » apparaît */
.cursor-dot { transition: opacity .2s, transform 0s; }
.cursor-dot.is-under { opacity: 0; }
