/* Inter hébergée localement (variable 400–500) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* =========================================================
   Quatre Oeils — v3
   Noir, beaucoup d’air, une seule famille de caractères (Inter).
   ========================================================= */
:root {
  --bg: #000;
  --panel: #0c0c0d;
  --ink: #f4f3f1;
  --ink-2: #9b9b9d;
  --muted: #6a6a6d;
  --line: rgba(244, 243, 241, .12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); position: relative;
  font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 1000; background: var(--ink); color: #000; padding: .6em 1em; }
.skip:focus { left: 16px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Petites capitales espacées ---------- */
.mono { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.mono--dim { color: var(--ink-2); }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s var(--ease); }
.site-header.is-scrolled { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; gap: 1rem; }
.header-inner > :last-child { justify-self: end; }
.header-center { justify-self: center; opacity: 0; transform: translateY(-4px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.site-header.is-scrolled .header-center,
.site-header.always-logo .header-center { opacity: 1; transform: none; pointer-events: auto; }
.header-center img { height: 13px; width: auto; }
.site-header .mono { font-size: .88rem; }
.site-header a:hover { color: var(--ink-2); }

/* ---------- Accueil : vidéo de fond ---------- */
/* Le fond est en z-index 0 et le contenu du héros en 1 : le logo et les deux lignes
   passent toujours par-dessus la vidéo, quel que soit le navigateur. */
.hero-bg { position: absolute; inset: 0 0 auto; z-index: 0; height: min(118svh, 1100px); overflow: hidden; pointer-events: none; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.15) contrast(1.05); opacity: .28; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 58%, rgba(0,0,0,.7) 85%, #000 100%); }

/* ---------- Héros ---------- */
.hero { position: relative; z-index: 1; padding: clamp(200px, 30vh, 320px) 0 clamp(110px, 16vh, 190px); text-align: center; }
.hero-logo, .hero-sub { position: relative; z-index: 1; }
.hero-logo { width: min(100%, 1040px); margin: 0 auto; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 2px 22px rgba(0, 0, 0, .45)); }
.hero-sub {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem;
  width: min(100%, 1040px); margin: clamp(2rem, 4vw, 3.4rem) auto 0; text-align: left;
}
/* Chaque bloc garde sa place (gauche / droite) mais ses deux lignes sont centrées l’une sur l’autre,
   comme un générique de film. */
.hero-sub p { margin: 0; text-align: center; color: rgba(244, 243, 241, .92); text-shadow: 0 1px 14px rgba(0, 0, 0, .55); line-height: 1.9; }
@media (max-width: 640px) { .hero-sub { justify-content: center; } .hero-sub p { width: 100%; } }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.6rem; padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.filter { position: relative; padding: .35em 0; color: var(--muted); font-size: 1.05rem; letter-spacing: .1em; transition: color .3s var(--ease); }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.filter:hover { color: var(--ink-2); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 600px) { .filter { font-size: .92rem; letter-spacing: .08em; } .site-header .mono { font-size: .8rem; } }

/* ---------- Grille de films ---------- */
.work { list-style: none; margin: 0; padding: 0 0 clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 1.6vw, 1.4rem); }
@media (max-width: 1000px) { .work { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work { grid-template-columns: 1fr; gap: 1rem; } }
.work li { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.work li.is-hidden { display: none; }
.work li.is-entering { opacity: 0; transform: translateY(10px); }

.card[data-noplayer] { cursor: default; }
.card { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--panel); cursor: pointer; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s var(--ease); }
.card video { opacity: 0; }
.card.is-playing video { opacity: 1; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%);
}
.card-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: .35rem;
  padding: clamp(1rem, 2vw, 1.5rem); text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card-title { font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.card-cat { font-size: .74rem; color: rgba(244, 243, 241, .65); }
.card:hover img, .card:focus-visible img, .card:hover video, .card:focus-visible video { transform: scale(1.04); }
.card:hover::after, .card:focus-visible::after, .card.is-touch-visible::after { opacity: 1; }
.card:hover .card-meta, .card:focus-visible .card-meta, .card.is-touch-visible .card-meta { opacity: 1; transform: none; }
@media (hover: none) { .card::after, .card .card-meta { opacity: 1; transform: none; } }

/* ---------- Sections simples ---------- */
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section--line { border-top: 1px solid var(--line); }
.page-head { padding: clamp(130px, 20vh, 200px) 0 clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.2rem; }
.page-head h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; }
.lead { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--portrait { aspect-ratio: 3 / 4; }
.figure--wide { aspect-ratio: 16 / 10; }

/* ---------- Duo ---------- */
.people { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.person { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.person--flip .figure { order: 2; }
.person h2 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -.01em; }
.person .role { margin: 0 0 1.2rem; color: var(--muted); }
@media (max-width: 820px) { .person { grid-template-columns: 1fr; } .person--flip .figure { order: 0; } }

/* ---------- Champs et boutons ---------- */
.field { display: grid; gap: .5rem; margin-bottom: 1.8rem; }
.field label { color: var(--muted); font-size: .8rem; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font: inherit; padding: .7rem 0; border-radius: 0; transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1em 2.2em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: #000; border-color: var(--ink); }
.form-status { margin: 1rem 0 0; color: var(--ink-2); min-height: 1.5em; }
.form-note { margin: 1.4rem 0 0; color: var(--muted); font-size: .85rem; max-width: 46ch; }
.info { display: grid; gap: 2rem; }
.info dt { color: var(--muted); margin-bottom: .5rem; }
.info dd { margin: 0; color: var(--ink-2); line-height: 1.9; }
.info dd a:hover { color: var(--ink); }
.info .big { font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--ink); }

/* ---------- Mentions ---------- */
.legal h2 { margin: 2.2rem 0 .5rem; font-size: 1.3rem; font-weight: 500; }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.todo { color: var(--ink); border-bottom: 1px dashed var(--muted); }

/* ---------- Lecteur ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .95); display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox[hidden] { display: none; }
.lightbox-frame { position: relative; width: min(100%, 1180px, calc((100svh - 6rem) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.lightbox-frame.is-vertical { width: min(100%, calc((100svh - 6rem) * 9 / 16)); aspect-ratio: 9 / 16; }
.lightbox-frame iframe, .lightbox-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.3rem; line-height: 1; }
.lightbox-close:hover { background: var(--ink); color: #000; }

/* =========================================================
   Pied de page repris de la v1 : mêmes proportions, typographie de la v3.
   ========================================================= */
.site-footer { border-top: 0; padding: 0; }
/* Hauteur dictée par le contenu : plus de grands vides entre les filets et le logo. */
.foot { height: auto; display: flex; align-items: stretch; justify-content: center; overflow: hidden; background: #000; }
.foot-inner {
  width: min(1300px, 100%); padding: clamp(16px, 2.4vw, 26px) var(--gutter) clamp(22px, 3vh, 34px);
  display: grid; grid-template-rows: repeat(5, auto);
}
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px clamp(24px, 6vw, 120px); padding-top: 6px; margin-bottom: clamp(14px, 2.4vh, 24px); }
.foot-pill {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: .85em 2em; border-radius: 999px; background: var(--ink); color: #000;
  font-size: .95rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.foot-pill::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #000; border-top: 2px solid #000; transform: rotate(45deg); transition: transform .25s var(--ease); }
.foot-pill:hover::after { transform: rotate(45deg) translate(3px, -3px); }
/* Liens qui roulent vers le haut au survol, comme sur la v1 */
.roll { position: relative; display: inline-block; overflow: hidden; font-size: 1.05rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.roll span { display: block; transition: transform .3s var(--ease); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; transition: transform .3s var(--ease); }
.roll:hover span, .roll:focus-visible span, .roll:hover::after, .roll:focus-visible::after { transform: translateY(-100%); }
.foot-arrow { width: 26px; height: 26px; display: grid; place-items: center; font-size: 0; color: transparent; }
.foot-arrow::before { content: ""; width: 13px; height: 13px; border-right: 3px solid var(--ink); border-top: 3px solid var(--ink); transform: rotate(-45deg); transition: transform .25s var(--ease); }
.foot-arrow:hover::before { transform: rotate(-45deg) translate(3px, -3px); }
.foot-rule { width: 100%; height: 1px; background: var(--ink); }

/* L’œil : deux calques superposés exactement, les deux mots au-dessus. */
/* La marge haute laisse juste la place aux deux mots posés au-dessus de l’œil. */
.foot-eye { position: relative; display: block; width: min(42vw, 30vh, 330px); aspect-ratio: 416 / 360; justify-self: center; align-self: center; margin: clamp(150px, 24vh, 200px) 0 clamp(92px, 16vh, 136px); }
.foot-eye > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.foot-eye .eye-pupil { pointer-events: none; will-change: transform; }
.foot-eye .mot-quatre, .foot-eye .mot-oeils { inset: auto auto auto 50%; height: auto; }
.foot-eye .mot-quatre { width: 64%; bottom: calc(100% + min(2.4vh, 18px)); transform: translate(calc(-100% - .4rem), 0); }
.foot-eye .mot-oeils { width: 57%; bottom: calc(100% + min(2.4vh, 18px)); transform: translate(.4rem, 0); }

.foot-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: clamp(18px, 3vw, 54px); row-gap: 10px; margin-top: clamp(.9rem, 2vh, 1.4rem); }
.foot-meta > :nth-child(1) { justify-self: start; }
.foot-meta > :nth-child(2) { justify-self: center; }
.foot-meta > :nth-child(3) { justify-self: end; }
.meta-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: clamp(.95rem, 1.25vw, 1.2rem); font-weight: 500; letter-spacing: .06em; }
.meta-item svg { width: 1.05em; height: 1.05em; flex: none; }
@media (max-width: 900px) {
  .foot-eye .mot-quatre { width: 60%; }
  .foot-eye .mot-oeils { width: 54%; }
}
@media (max-width: 700px) {
  .foot-top { justify-content: center; }
  .foot-pill { order: -1; width: 100%; justify-content: center; }
  .foot-arrow { display: none; }
  .roll { font-size: .9rem; letter-spacing: .1em; }
  .foot-eye { width: min(56vw, 26vh, 240px); margin: clamp(104px, 16vh, 140px) 0 clamp(52px, 8vh, 74px); }
  .foot-eye .mot-quatre, .foot-eye .mot-oeils { bottom: calc(100% + min(2vh, 14px)); }
  .foot-meta { grid-template-columns: 1fr; justify-items: center; row-gap: 12px; }
  .foot-meta > :nth-child(1), .foot-meta > :nth-child(2), .foot-meta > :nth-child(3) { justify-self: center; }
}

/* =========================================================
   Page contact reprise de la v1
   ========================================================= */
.contact-page { position: relative; min-height: 100svh; padding: clamp(120px, 18vh, 170px) 0 clamp(60px, 8vw, 90px); overflow: hidden; }
.contact-page::before { content: ""; position: absolute; inset: 0; z-index: 0; background: #000 url("../img/contact-bg.jpg") center / cover no-repeat; }
.contact-page::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .42); }
.contact-page .wrap { position: relative; z-index: 1; }
.contact-title { margin: 0 0 1.4rem; font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 500; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; }
.contact-lead { margin: 0 0 clamp(2.4rem, 6vw, 4.5rem); font-size: clamp(1.1rem, 1.7vw, 1.6rem); font-weight: 400; line-height: 1.35; color: var(--ink); max-width: 46ch; }
.contact-lead b { font-weight: 500; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-layout .contact-form { grid-column: 2; }
.contact-layout .contact-aside { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .field { margin: 0; }
.form-grid .field--full { grid-column: 1 / -1; }
.contact-page .field input, .contact-page .field textarea, .contact-page .field select {
  border: 1px solid rgba(244, 243, 241, .35); border-radius: 14px; background: rgba(0, 0, 0, .55);
  padding: .85rem 1rem; font-size: 1rem;
}
.contact-page .field input:focus, .contact-page .field textarea:focus, .contact-page .field select:focus { border-color: var(--ink); }
.contact-page .field textarea { min-height: 165px; }
.contact-actions { margin-top: 1.4rem; }
@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout .contact-form, .contact-layout .contact-aside { grid-column: auto; grid-row: auto; }
  .contact-layout .contact-aside { order: 2; border-top: 1px solid var(--line); padding-top: 1.2rem; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Apparition ---------- */
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .fade { opacity: 1; transform: none; transition: none; }
  .card img, .card video { transition: none; }
}

/* =========================================================
   À propos : deux « posts » façon réseau social, un par profil, en carrousel
   ========================================================= */
.grad { background: linear-gradient(90deg, #62d4ef 0%, #2f7fdd 55%, #5a3cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* En-tête compact : les posts remontent dès l'arrivée sur la page */
.page-head--tight { padding: clamp(136px, 18vh, 176px) 0 clamp(2.4rem, 5vw, 3.8rem); gap: .8rem; text-align: center; justify-items: center; }
.page-head--tight h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); text-wrap: balance; }
.page-head--tight h1 .grad { white-space: nowrap; }
.page-head--tight .lead { font-size: clamp(1rem, 1.3vw, 1.15rem); }

.posts { position: relative; padding: 0 0 clamp(60px, 9vw, 120px); }
/* Deux lueurs de couleur derrière les posts */
.posts::before, .posts::after { content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .55; }
.posts::before { width: 42vw; height: 42vw; max-width: 560px; max-height: 560px; left: 6%; top: 8%; background: radial-gradient(circle, rgba(47, 127, 221, .55), transparent 70%); }
.posts::after { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; right: 4%; bottom: 4%; background: radial-gradient(circle, rgba(90, 60, 255, .5), transparent 70%); }

.posts-grid {
  --s: 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 390px)); justify-content: center; align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.post {
  --tilt: -1.4deg; --drift: -1;
  width: 100%; background: #0b0b0d; border: 1px solid rgba(244, 243, 241, .12); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4);
  rotate: var(--tilt); translate: 0 calc(var(--s) * var(--drift) * 28px);
  transition: rotate .6s var(--ease), box-shadow .6s var(--ease);
}
.post--loic { --tilt: 1.4deg; --drift: 1; margin-top: clamp(44px, 6.5vw, 96px); }
.post:hover, .post:focus-within { rotate: 0deg; box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 60px rgba(47, 127, 221, .18); }

.post-head { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; }
.avatar { flex: none; width: 42px; height: 42px; padding: 2px; border-radius: 50%; background: linear-gradient(135deg, #62d4ef, #2f7fdd 50%, #5a3cff); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #0b0b0d; }
.post-who { display: grid; line-height: 1.25; min-width: 0; }
.post-who strong { font-size: .95rem; font-weight: 600; }
.post-who span { font-size: .78rem; color: var(--ink-2); }
.post-more { margin-left: auto; color: var(--ink-2); display: grid; }
.post-more svg { width: 22px; height: 22px; }

.post-media { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 1px solid var(--ink); outline-offset: -4px; }
.slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.chip { position: absolute; left: .9rem; bottom: .9rem; padding: .5em .9em; border-radius: 999px; background: rgba(0, 0, 0, .42); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.count { position: absolute; top: .8rem; right: .8rem; padding: .3em .7em; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .72rem; font-weight: 500; letter-spacing: .06em; pointer-events: none; }

/* Slide de texte, dessinée comme un visuel de post */
.slide--text { display: grid; align-content: space-between; padding: clamp(1.3rem, 5vw, 1.9rem); color: #fff; isolation: isolate; background: linear-gradient(155deg, #0b1a4d 0%, #2f1ca0 58%, #2f7fdd 130%); }
.slide--loic.slide--text { background: linear-gradient(205deg, #2f7fdd -20%, #1d2f9f 42%, #070b24 100%); }
.slide--text::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -22%; top: -14%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(98, 212, 239, .75), rgba(47, 127, 221, .25) 55%, transparent 72%); filter: blur(6px); }
.slide--text .kick { opacity: .75; }
.slide--text h2 { margin: .6rem 0 0; font-size: clamp(2.3rem, 5.4vw, 3.3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.slide--text ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.slide--text li { counter-increment: n; display: grid; grid-template-columns: 2.4rem 1fr; padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .28); font-size: clamp(.98rem, 2.4vw, 1.08rem); }
.slide--text li::before { content: "0" counter(n); font-size: .72rem; letter-spacing: .12em; padding-top: .28em; opacity: .7; }
.slide--text .sign { opacity: .7; }

.nav { position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; display: none; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #000; opacity: 0; transition: opacity .3s var(--ease), background .3s; z-index: 3; }
.js .nav { display: grid; }
.nav[hidden] { display: none; }
.nav svg { width: 16px; height: 16px; }
.nav--prev { left: .6rem; } .nav--next { right: .6rem; }
.post-media:hover .nav, .nav:focus-visible { opacity: 1; }
.nav:hover { background: #fff; }
@media (hover: none) { .nav { display: none !important; } }

.pop-heart { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; translate: -50% -50%; scale: 0; opacity: 0; pointer-events: none; z-index: 4; color: #fff; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45)); }
.pop-heart.is-on { animation: popHeart .9s var(--ease); }
@keyframes popHeart { 0% { scale: 0; opacity: 0; } 18% { scale: 1.15; opacity: 1; } 32% { scale: .96; } 70% { scale: 1; opacity: 1; } 100% { scale: 1.15; opacity: 0; } }

.post-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .7rem .9rem .3rem; }
.post-actions .grp { display: flex; align-items: center; gap: .9rem; }
.post-actions svg { width: 25px; height: 25px; display: block; }
.act { display: grid; place-items: center; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; transition: transform .25s var(--ease), color .25s; }
.act:hover { transform: scale(1.1); }
.act--like.is-liked { color: #ff3b5c; }
.act--like.is-liked svg { fill: currentColor; }
.act--like.is-liked svg { animation: likePop .45s var(--ease); }
@keyframes likePop { 0% { scale: .6; } 60% { scale: 1.25; } 100% { scale: 1; } }
.act--ghost { pointer-events: none; opacity: .9; }
.post-actions .save { justify-self: end; }
.dots { display: flex; gap: 5px; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 243, 241, .28); transition: all .3s var(--ease); }
.dots i.on { width: 7px; height: 7px; background: linear-gradient(135deg, #62d4ef, #5a3cff); }
.post-caption { margin: 0; padding: .35rem .95rem 1.1rem; font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.post-caption strong { color: var(--ink); font-weight: 600; margin-right: .3em; }
.hash { color: #62b4ff; white-space: nowrap; }

@media (max-width: 820px) {
  .posts-grid { grid-template-columns: minmax(0, 390px); gap: 2.2rem; }
  .post { width: 90%; }
  .post--emmy { justify-self: start; --tilt: -1deg; }
  .post--loic { justify-self: end; margin-top: 0; --tilt: 1deg; }
}
@media (prefers-reduced-motion: reduce) { .post { rotate: 0deg; translate: none; transition: none; } .pop-heart.is-on, .act--like.is-liked svg { animation: none; } }

.closing { text-align: center; display: grid; justify-items: center; gap: 1.4rem; padding: clamp(40px, 7vw, 90px) 0 clamp(70px, 10vw, 140px); }
.closing h2 { margin: 0; font-size: clamp(1.8rem, 4.6vw, 3.6rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.closing .lead { text-align: center; }

/* =========================================================
   Accueil sur téléphone : proportions resserrées, dans l'esprit d'Abel Studios
   (logo juste sous la barre, texte plus petit, filtres empilés, vignettes tout de suite après)
   ========================================================= */
@media (max-width: 640px) {
  .hero { padding: 108px 0 20px; }
  .hero-sub { margin-top: 1.5rem; gap: 1rem; }
  .hero-sub p { font-size: .64rem; letter-spacing: .13em; line-height: 1.75; }

  .filters { flex-direction: column; align-items: center; gap: .1rem; padding: 1.5rem 0 1.1rem; }
  .filter { font-size: .9rem; padding: .3em 0; }
}

