@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f4f0;
  --ink: #20201e;
  --muted: #85837d;
  --line: rgba(32, 32, 30, .16);
  --gutter: clamp(20px, 3.4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Manrope', sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.site-header { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: flex-start; padding: 30px var(--gutter); }
/* Smiley ping-pong : espace libre entre les deux blocs de texte. */
.site-header { gap: 0; }
.site-header .side-nav,
.site-header .wordmark { flex: 0 0 auto; }
.header-smiley-track {
  --smiley-size: 30px;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  margin-inline: 30px; /* marge identique des deux côtés */
  pointer-events: none;
}
.header-smiley {
  position: absolute;
  top: 1px;
  left: 0;
  width: min(var(--smiley-size), 100%);
  height: min(var(--smiley-size), 100%);
  animation: smiley-pingpong 11s ease-in-out infinite alternate;
  /* Le ping-pong et la rotation restent deux animations indépendantes. */
}
.header-smiley-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  animation: smiley-rotation 4s linear infinite;
  will-change: transform;
}
@keyframes smiley-rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes smiley-pingpong {
  from { left: 0; }
  to { left: calc(100% - min(var(--smiley-size), 100%)); }
}
@media (max-width: 700px) {
  .header-smiley-track { --smiley-size: 22px; height: 25px; margin-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-smiley { animation: none; left: 50%; transform: translateX(-50%); }
  .header-smiley-image { animation: none; }
}
.side-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.side-nav a, .wordmark, .eyebrow, .page-footer, .hero-caption, .image-note, .project-meta span, .timeline-footer, .drag-hint { font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.side-nav a { position: relative; }
.side-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; transition: right .22s ease; }
.side-nav a:hover::after, .side-nav a.active::after { right: 0; }
.wordmark { text-align: right; font-size: 12px; line-height: 1.5; }
.wordmark span { display: block; color: var(--muted); font-size: 9px; }
.hero { min-height: 100svh; padding: 100px var(--gutter) 52px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero-video { width: 100%; height: min(70vh, 760px); min-height: 360px; background: #e4e2dc; overflow: hidden; }
.hero-video iframe { width: 100%; height: 100%; border: 0; }
.hero-caption { display: flex; justify-content: space-between; color: var(--muted); margin-top: 15px; }
.hero-caption p { margin: 0; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 17px; font-size: 24px; transition: transform .22s ease; }
.scroll-cue:hover { transform: translateY(3px); }

.contact-layout { min-height: 100svh; padding: 145px var(--gutter) 80px; display: grid; grid-template-columns: minmax(250px, .85fr) minmax(320px, 1fr); gap: clamp(50px, 10vw, 160px); align-items: center; max-width: 1500px; margin: 0 auto; }
.portrait-wrap { max-width: 520px; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #e4e2dc; filter: grayscale(100%); }
.image-note { display: block; margin-top: 12px; color: var(--muted); }
.bio { max-width: 590px; }
.eyebrow { color: var(--muted); margin: 0 0 20px; }
.bio h1, .work-heading h1 { font-weight: 500; letter-spacing: -.075em; line-height: .93; font-size: clamp(48px, 7vw, 100px); margin: 0 0 30px; }
.bio p:not(.eyebrow) { font-size: 14px; line-height: 1.8; color: #5e5c56; }
.bio .intro { color: var(--ink) !important; font-size: clamp(17px, 1.7vw, 21px) !important; line-height: 1.55 !important; }
.history { margin-top: 32px; }
.history strong { color: var(--ink); font-weight: 600; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.contact-links a { font-family: 'DM Mono', monospace; font-size: 10px; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 5px; transition: opacity .2s ease; }
.contact-links a:hover { opacity: .55; }

.work-main { padding: 150px 0 20px; min-height: calc(100svh - 60px); }
.work-heading { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.work-heading h1 { font-size: clamp(42px, 6.3vw, 86px); margin: 0; white-space: nowrap; }
.work-heading h1 span { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0; vertical-align: middle; }
.drag-hint { color: var(--muted); white-space: nowrap; }
.drag-hint span { color: var(--ink); font-size: 15px; margin-left: 8px; }
.timeline-shell { position: relative; }
.timeline {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 var(--gutter) 14px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.timeline::-webkit-scrollbar { display: none; }
.timeline.dragging { cursor: grabbing; scroll-snap-type: none; }
.project { flex: 0 0 clamp(280px, 37vw, 560px); min-width: 0; scroll-snap-align: start; }
.project-media { display: block; position: relative; width: 100%; padding: 0; border: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #e4e2dc; cursor: pointer; }
.project-media img, .project-media iframe { width: 100%; height: 100%; display: block; object-fit: cover; border: 0; transition: transform .35s ease, filter .3s ease; }
.project-media:hover img { transform: scale(1.018); }
.media-mark { position: absolute; right: 13px; bottom: 8px; font-size: 25px; font-weight: 300; opacity: 0; transition: opacity .2s ease; }
.gallery-trigger:hover .media-mark, .gallery-trigger:focus-visible .media-mark { opacity: 1; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 13px; }
.project-meta h2 { margin: 0; font-size: 14px; font-weight: 600; }
.project-meta span { color: var(--muted); font-size: 9px; text-align: right; }
.arrow { position: absolute; z-index: 2; top: calc((100% - 40px) / 2); transform: translateY(-50%); border: 1px solid var(--line); background: var(--bg); width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.arrow:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.arrow-left { left: 12px; }
.arrow-right { right: 12px; }
.timeline-footer { padding: 18px var(--gutter) 0; display: flex; justify-content: space-between; color: var(--muted); }

.page-footer { height: 80px; padding: 0 var(--gutter); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.page-footer a { color: var(--ink); transition: opacity .2s ease; }
.page-footer a:hover { opacity: .55; }

/* Galerie moodboard : images de tailles variées, déroulement vertical. */
.gallery-overlay {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(245,244,240,.88);
  /* Aucun flou ici : un seul backdrop-filter, au survol des images. */
  overflow-y: auto; overscroll-behavior: contain;
  padding: 94px clamp(24px, 6vw, 100px) 110px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.gallery-overlay.open { opacity: 1; visibility: visible; }
body.gallery-open { overflow: hidden; }
.gallery-close {
  position: fixed; z-index: 21; top: 24px; right: var(--gutter);
  border: 0; background: var(--bg); border-radius: 50%;
  width: 44px; height: 44px; font-size: 32px; font-weight: 300;
  cursor: pointer; line-height: 1; transition: transform .2s ease;
}
.gallery-close:hover { transform: rotate(90deg); }
.gallery-overlay .eyebrow { text-align: center; margin: 0 0 12px; }
.gallery-intro { text-align: center; color: var(--muted); font: 10px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 70px; }
.gallery-items {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr));
  column-gap: clamp(10px, 2vw, 32px); row-gap: clamp(44px, 8vw, 130px);
  align-items: start;
}
/* Chaque image glisse à sa propre vitesse sans modifier la grille. */
.gallery-piece { margin: 0; min-width: 0; position: relative; animation: gallery-enter .45s ease both; }
.gallery-piece > img, .gallery-piece > video { transform: translate3d(0, var(--parallax-y, 0px), 0); will-change: transform; transition: opacity .24s ease; }
.gallery-piece.is-previewed > img, .gallery-piece.is-previewed > video { opacity: 1; }
.gallery-piece > img { cursor: zoom-in; }
/* Aperçu flottant centré : n'intercepte jamais le scroll ni la souris. */
.gallery-spotlight { position: fixed; z-index: 22; inset: 0; display: grid; place-items: center; pointer-events: none; visibility: hidden; transition: visibility 0s linear .3s; }
.gallery-spotlight.visible { visibility: visible; transition-delay: 0s; }
.gallery-spotlight-inner { max-width: min(68vw, 940px); max-height: 76vh; filter: drop-shadow(0 24px 42px rgba(0,0,0,.17)); transform: scale(.94); transition: transform .36s cubic-bezier(.2,.7,.2,1); }
.gallery-spotlight.visible .gallery-spotlight-inner { transform: scale(1); }
.gallery-spotlight img, .gallery-spotlight video { display: block; max-width: min(68vw, 940px); max-height: 76vh; width: auto; height: auto; object-fit: contain; }
.gallery-spotlight-caption { margin-top: 10px; font: 10px 'DM Mono', monospace; text-align: center; color: var(--ink); }

.gallery-piece img, .gallery-piece video {
  display: block; width: 100%; height: auto;
  background: #e4e2dc;
}
.gallery-piece:nth-child(6n+1) { grid-column: 1 / span 7; }
.gallery-piece:nth-child(6n+2) { grid-column: 9 / span 4; margin-top: 22%; }
.gallery-piece:nth-child(6n+3) { grid-column: 3 / span 5; }
.gallery-piece:nth-child(6n+4) { grid-column: 8 / span 5; margin-top: 15%; }
.gallery-piece:nth-child(6n+5) { grid-column: 1 / span 4; }
.gallery-piece:nth-child(6n+6) { grid-column: 6 / span 7; margin-top: 12%; }
.gallery-piece figcaption { margin-top: 10px; font: 10px 'DM Mono', monospace; color: var(--muted); }
@keyframes gallery-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .site-header { padding-top: 22px; }
  .hero { padding-top: 90px; }
  .hero-video { height: 62svh; min-height: 300px; }
  .hero-caption { gap: 20px; font-size: 8px; }
  .contact-layout { padding-top: 110px; grid-template-columns: 1fr; gap: 40px; }
  .portrait-wrap { max-width: 420px; width: 100%; }
  .bio h1 { font-size: 64px; }
  .work-main { padding-top: 120px; }
  .work-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; gap: 16px; }
  .work-heading h1 { white-space: normal; font-size: 48px; }
  .project { flex-basis: 82vw; }
  .arrow { width: 32px; height: 32px; }
  .arrow-left { left: 8px; }
  .arrow-right { right: 8px; }
  .project-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .project-meta span { text-align: left; }
  .gallery-overlay { padding: 96px 20px 65px; }
  .gallery-spotlight { display: none; }
  .gallery-intro { margin-bottom: 45px; }
  .gallery-items { grid-template-columns: repeat(6, minmax(0,1fr)); row-gap: 38px; column-gap: 10px; }
  .gallery-piece:nth-child(4n+1) { grid-column: 1 / span 5; margin-top: 0; }
  .gallery-piece:nth-child(4n+2) { grid-column: 3 / span 4; margin-top: 0; }
  .gallery-piece:nth-child(4n+3) { grid-column: 1 / span 4; margin-top: 0; }
  .gallery-piece:nth-child(4n+4) { grid-column: 2 / span 5; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .gallery-spotlight { display: none; }
  .gallery-piece > img, .gallery-piece > video { transform: none !important; will-change: auto; }
}

/* Survol : flouter TOUT ce qui se trouve derrière l'aperçu centré. */
.gallery-spotlight-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(245, 244, 240, .24);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  opacity: 0;
  transition: opacity .3s cubic-bezier(.22, 1, .36, 1);
  /* Opacité seulement : pas de deuxième animation de blur. */
}
.gallery-spotlight.visible .gallery-spotlight-backdrop { opacity: 1; }
/* À la lecture d’une vidéo, le voile garde le flou et assombrit toute la page. */
.gallery-spotlight.video-playback .gallery-spotlight-backdrop {
  background: rgba(8, 8, 8, .68);
  -webkit-backdrop-filter: blur(13px) saturate(.78);
  backdrop-filter: blur(13px) saturate(.78);
}
.gallery-spotlight-inner {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity .3s ease, transform .36s cubic-bezier(.2,.7,.2,1);
}
.gallery-spotlight.visible .gallery-spotlight-inner { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .gallery-spotlight-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==========================================================
   GALERIE EN GRILLE — ouverture au clic uniquement.
   Aucun flou à l'entrée de la galerie ni au survol.
   Un seul calque de flou, à opacité animée, au clic.
   ========================================================== */
.gallery-intro { margin-bottom: 42px; }
.gallery-items {
  max-width: 1240px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  align-items: start;
}
.gallery-piece,
.gallery-piece:nth-child(n) {
  grid-column: auto;
  margin-top: 0;
}
.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-image-button img,
.gallery-image-button video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  background: #e4e2dc;
  transform: none !important;
  transition: transform .35s ease;
}
.gallery-image-button:hover img,
.gallery-image-button:hover video { transform: scale(1.025) !important; }
.gallery-image-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.gallery-spotlight {
  z-index: 30;
  pointer-events: none;
}
.gallery-spotlight.visible { pointer-events: auto; }
.gallery-spotlight-backdrop { cursor: zoom-out; }
.gallery-spotlight-inner {
  max-width: min(82vw, 1100px);
  max-height: 82vh;
  pointer-events: none;
}
.gallery-spotlight img,
.gallery-spotlight video {
  max-width: min(82vw, 1100px);
  max-height: 76vh;
  object-fit: contain;
  pointer-events: auto;
}
.spotlight-close {
  position: fixed;
  top: 24px;
  right: var(--gutter);
  z-index: 2;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  width: 44px;
  height: 44px;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease, transform .2s ease;
}
.gallery-spotlight.visible .spotlight-close { opacity: 1; }
.spotlight-close:hover { transform: rotate(90deg); }
@media (max-width: 900px) {
  .gallery-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .gallery-items { grid-template-columns: 1fr; }
  .gallery-spotlight { display: grid; }
  .gallery-spotlight-inner,
  .gallery-spotlight img,
  .gallery-spotlight video { max-width: 90vw; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-image-button img,
  .gallery-image-button video { transition: none; }
}

/* 2026 — Ajustements éditoriaux, sans modifier les polices existantes */
/* Flèches sans pastille : aucun fond ni bordure, y compris au survol. */
.arrow, .arrow:hover, .arrow:active {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
}
.arrow { font-size: 26px; width: 38px; height: 38px; }
.arrow:hover { opacity: .55; }
/* Cartes de la frise : titre, description, logiciels en gras. */
.project-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.project-meta h2 { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; }
.project-description { margin: 0; font-family: 'Manrope', sans-serif; font-size: 12px; line-height: 1.55; color: var(--muted); }
.project-software { margin: 3px 0 0; font-family: 'Manrope', sans-serif; font-size: 11px; line-height: 1.5; font-weight: 800; }
.timeline-footer { justify-content: flex-end; }
/* Texte éditable sous CHAQUE image de la grille. */
.gallery-piece figcaption.gallery-image-info { margin-top: 12px; color: var(--ink); font-family: 'Manrope', sans-serif; text-transform: none; letter-spacing: normal; }
.gallery-image-title { margin: 0 0 5px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.gallery-image-description { margin: 0 0 6px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.gallery-image-software { margin: 0; font-size: 11px; line-height: 1.5; font-weight: 800; color: var(--ink); }
.gallery-overlay .eyebrow { margin-bottom: 42px; }

/* Présentation UNIQUE en haut de chaque galerie (aucune légende par image). */
.gallery-project-intro {
  max-width: 1240px;
  margin: 0 auto clamp(38px, 5vw, 76px);
  text-align: left;
  font-family: 'Manrope', sans-serif;
}
.gallery-project-intro h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}
.gallery-project-intro #gallery-project-description {
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 650px;
  margin: 0 0 14px;
}
.gallery-project-intro #gallery-project-software {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 800;
  margin: 0;
}

/* WORK — grille de projets. Le reste du portfolio reste inchangé. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 38px);
  padding: 30px var(--gutter) 90px;
}
.work-grid-card { min-width: 0; width: auto; margin: 0; }
.work-grid-card .project-media { width: 100%; aspect-ratio: 4 / 5; cursor: pointer; }
.work-grid-card .project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.work-grid-card .project-media:hover img,
.work-grid-card .project-media:focus-visible img { transform: scale(1.045); }
.work-card-title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 22px; color: #fff; background: rgba(0,0,0,.32);
  font: 600 clamp(16px, 1.7vw, 25px)/1.25 'Manrope', sans-serif;
  text-align: center; opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.work-grid-card .project-media:hover .work-card-title,
.work-grid-card .project-media:focus-visible .work-card-title { opacity: 1; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; padding-top: 22px; }
  .work-card-title { opacity: 1; align-items: flex-end; justify-content: flex-start; text-align: left; background: linear-gradient(transparent 45%,rgba(0,0,0,.48)); }
}
@media (prefers-reduced-motion: reduce) { .work-grid-card .project-media img, .work-card-title { transition: none; } }

/* WORK — mur dense de 30 projets, sans espacement */
.work-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 20px var(--gutter) 90px;
}
.work-grid-card .project-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0;
  overflow: hidden;
}
.work-grid-card .project-media img { display: block; }
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 18px; }
}

/* Intégration médias locaux */
.hero-video video { width:100%; height:100%; object-fit:cover; display:block; }
.portrait-placeholder { display:flex; align-items:center; justify-content:center; aspect-ratio:4/5; background:#e4e2dc; font-size:clamp(64px,12vw,160px); font-weight:500; }

/* V2 — textes de projets, vidéos libres et CV */
#gallery-project-description { max-width:620px; margin:14px auto 0; font-size:13px; line-height:1.7; color:var(--muted); white-space:pre-line; }
body.preview-open { overflow:hidden; }
.video-cloud { position:relative; margin:24px var(--gutter) 70px; }
.floating-video { position:absolute; display:block; padding:0; border:0; background:transparent; cursor:pointer; animation:video-drift var(--float-duration) ease-in-out var(--float-delay) infinite alternate; box-shadow:0 calc(10px + var(--depth-light, 0) * 12px) calc(28px + var(--depth-light, 0) * 18px) rgba(0,0,0,.16); transition:box-shadow .35s ease, filter .35s ease; }
.floating-video img { display:block; width:100%; height:100%; object-fit:cover; transform:scale(1.045); transition:filter .3s, transform .45s ease; }
.floating-video { transform:translate3d(0,var(--scroll-parallax,0px),0); will-change:transform,translate; }
.floating-video:hover, .floating-video:focus-visible { animation-play-state:paused; z-index:2; box-shadow:0 22px 52px rgba(0,0,0,.25); filter:brightness(1.045); }
.floating-video:hover img { filter:brightness(1.06); transform:scale(1.09); }
.floating-video:focus-visible { outline:2px solid var(--ink); outline-offset:6px; }
@keyframes video-drift { from {translate:0 -16px;} to {translate:0 16px;} }
.cv-trigger { padding:5px 0; margin:8px 0 22px; border:0; border-bottom:1px solid var(--line); background:transparent; font:11px 'DM Mono',monospace; cursor:pointer; transition:border-color .2s; }
.cv-trigger:hover { border-color:var(--ink); }
.cv-document { width:min(780px,86vw); max-height:82vh; overflow:auto; background:var(--bg); padding:18px; pointer-events:auto; text-align:center; }
.cv-document iframe { display:block; width:100%; height:70vh; border:0; background:white; }
.cv-document img { max-width:100%; max-height:72vh; margin:auto; }
.cv-document a { display:inline-block; margin-top:12px; font-size:11px; text-decoration:underline; }
.cv-document h2 { margin:30px 0 10px; font-weight:500; }
.cv-document p { margin:0 0 35px; color:var(--muted); font-size:13px; }
@media (prefers-reduced-motion:reduce) { .floating-video {animation:none;} }


/* Coordonnées et références placées sous le portrait de la page Contact. */
.portrait-email {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font: 10px 'DM Mono', monospace;
  color: var(--ink);
  transition: opacity .2s ease;
}
.portrait-email:hover { opacity: .58; }
.client-credits { margin-top: 30px; max-width: 520px; }
.client-credit-label {
  margin: 0 0 8px;
  font: 9px 'DM Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.client-credit-label-cossette { margin-top: 20px; }
.client-credit-list {
  margin: 0;
  font: 10px/1.8 'DM Mono', monospace;
  color: var(--ink);
  opacity: .82;
}
@media (max-width: 700px) {
  .client-credits { margin-top: 24px; }
  .client-credit-list { font-size: 9px; line-height: 1.8; }
}
