/* =========================================================
   Stéphan Nappez, portfolio
   Une seule feuille de style. Les tokens sont en haut :
   changer une couleur ici la change partout.
   ========================================================= */

:root {
  --ink:        #08080a;
  --panel:      #101013;
  --panel-2:    #17171b;
  --line:       rgba(255, 255, 255, 0.10);
  --text:       #f4f2ee;
  --muted:      #8e8a84;

  /* couleur d'accent : reecrite par le mode (voir [data-mode]) */
  --accent:     #f2c200;
  --accent-ink: #10100c;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-hand:    "Caveat", cursive;

  --bar-h: 58px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* code couleur : jaune pour l'artiste, cyan pour le brand design */
[data-mode="branddesign"] { --accent: #57dcf0; --accent-ink: #06171b; }
[data-mode="artist"]      { --accent: #f2c200; --accent-ink: #14120a; }

/* ---------------------------------------------------------
   base
   --------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.u-skip {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-200%);
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
}
.u-skip:focus { transform: none; }

/* ---------------------------------------------------------
   boutons arrondis (les SEULS elements arrondis du site)
   --------------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  white-space: nowrap; cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.pill:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.24); }
.pill[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 600;
}

.btn-reel {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 22px 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 400;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-reel:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255,255,255,0.28); }
.btn-reel__dot {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; padding-left: 2px;
}

.btn-solid {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 22px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 14px;
  transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn-solid:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ---------------------------------------------------------
   interrupteur des deux mondes (fixe, en haut a gauche)
   --------------------------------------------------------- */

.worldswitch {
  position: fixed; top: 20px; left: 20px; z-index: 60;
  display: inline-flex; align-items: center;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.58);
  backdrop-filter: blur(12px);
}
.worldswitch__thumb {
  position: absolute; top: 5px; left: 5px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.42s var(--ease), width 0.42s var(--ease), background 0.42s var(--ease);
  pointer-events: none;
}
.worldswitch__opt {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: none;
  height: 38px; padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  cursor: pointer; white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.worldswitch__opt[aria-selected="true"] { color: var(--accent-ink); }

/* ---------------------------------------------------------
   ACCUEIL : la pellicule horizontale
   --------------------------------------------------------- */

.film {
  display: flex;
  height: 100svh;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  user-select: none;
  -webkit-user-select: none;
}
.film::-webkit-scrollbar { display: none; }
@media (hover: hover) and (min-width: 821px) {
  .film { cursor: grab; }
  .film.is-dragging { cursor: grabbing; }
  .film.is-dragging a { pointer-events: none; }
}

/* le conteneur des panneaux disparait dans le flex parent */
.panels { display: contents; }

.panel {
  position: relative;
  flex: 0 0 auto;
  height: 100svh;
  overflow: hidden;
}
.panel--hero { flex-basis: 100vw; }
.panel--cat { flex-basis: clamp(288px, 32vw, 460px); }

.panel__bg { position: absolute; inset: 0; z-index: 0; }
.panel__bg img,
.panel__bg video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.8s var(--ease);
  -webkit-user-drag: none; user-drag: none;
}
.panel--cat:hover .panel__bg img,
.panel--cat:hover .panel__bg video,
.panel--cat:focus-visible .panel__bg img { transform: scale(1.045); }

/* le hero est flou, comme sur le proto Figma */
.panel--hero .panel__bg img,
.panel--hero .panel__bg video {
  filter: blur(22px) brightness(0.92);
  transform: scale(1.14);
}

.panel__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.12) 20%, rgba(0,0,0,0) 44%);
}
.panel__scrim--hero {
  background:
    radial-gradient(135% 105% at 50% 48%, rgba(8,8,10,0.14) 0%, rgba(8,8,10,0.34) 44%, rgba(8,8,10,0.76) 100%),
    linear-gradient(0deg, rgba(8,8,10,0.5) 0%, rgba(8,8,10,0) 55%);
}

/* legende d'un panneau categorie */
.panel__cap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 26px; gap: 4px;
}
.panel__label {
  font-family: var(--font-hand);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--accent); line-height: 1;
}
.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 400; line-height: 1.14;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.panel__click {
  position: absolute; left: 0; right: 0; bottom: 34px;
  font-size: 13px; letter-spacing: 0.02em;
  color: var(--text); opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.panel--cat:hover .panel__click { opacity: 1; }

/* --- contenu du hero --- */

.hero {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 88px clamp(24px, 6vw, 90px) 72px;
}
.hero__kicker {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300; color: var(--text); opacity: 0.92;
}
.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 98px);
  font-weight: 200; line-height: 0.98; letter-spacing: -0.02em;
}
.hero__bio {
  margin: 22px auto 0; max-width: 46ch;
  font-size: clamp(14px, 1.4vw, 16px);
  color: #d7d3cc;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
}
.hero__actions { margin-top: 32px; display: flex; justify-content: center; }

/* hint "drag to the right" */
.draghint {
  position: absolute; z-index: 2;
  right: clamp(18px, 3vw, 46px); top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 12px;
  color: var(--text); opacity: 0.85;
}
.draghint__arrows {
  font-family: var(--font-display);
  font-size: 30px; color: var(--accent);
  animation: nudge 1.6s var(--ease) infinite;
}
.draghint__text { font-size: 13px; line-height: 1.2; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(7px); } }

/* ---------------------------------------------------------
   barre du haut (pages categorie et about)
   --------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  min-height: var(--bar-h);
  padding: 10px 22px;
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__back {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  transition: color 0.18s var(--ease);
}
.topbar__back:hover { color: var(--text); }
.topbar__back span:first-child { transition: transform 0.18s var(--ease); }
.topbar__back:hover span:first-child { transform: translateX(-3px); }
.topbar__title {
  justify-self: center; text-align: center; margin: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 2.1vw, 19px);
  font-weight: 300; line-height: 1.15; letter-spacing: 0.005em;
}
.topbar__title b { display: block; font-weight: 300; }
.topbar__label {
  justify-self: end;
  font-family: var(--font-hand);
  font-size: clamp(19px, 2.6vw, 26px);
  color: var(--accent); line-height: 1;
}

/* barre de filtres */
.filters {
  position: sticky; top: var(--bar-h); z-index: 30;
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  padding: 14px 20px;
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------
   blocs media (pages categorie) : franc-bord, empiles
   --------------------------------------------------------- */

.work { display: block; }

.work__divider {
  padding: 74px 20px 62px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 300;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

.block {
  position: relative;
  margin: 0;
  background: #000;
  overflow: hidden;
}
.block[hidden] { display: none; }

.block__media { position: relative; width: 100%; }
.block__media img,
.block__media video { width: 100%; height: auto; object-fit: cover; }

.block__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.22) 34%, rgba(0,0,0,0) 62%);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}
.block:hover .block__veil,
.block:focus-within .block__veil { opacity: 1; }

.block__info {
  position: absolute; left: 26px; right: 26px; bottom: 22px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.block:hover .block__info,
.block:focus-within .block__info { opacity: 1; transform: none; }

.block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400; line-height: 1.2;
}
.block__client { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.block__tags {
  margin: 9px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; padding: 0;
}
.block__tags li {
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px;
}
.block__cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 600;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.block__cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

.block__credit {
  position: absolute; left: 16px; bottom: 12px;
  font-size: 10.5px; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  transition: opacity 0.28s var(--ease);
}
.block:hover .block__credit,
.block:focus-within .block__credit { opacity: 0; }

.work__empty { padding: 90px 24px; text-align: center; color: var(--muted); }
.work__empty[hidden] { display: none; }

/* ---------------------------------------------------------
   page About / contact
   --------------------------------------------------------- */

.about {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 26px 50px;
}
.about__text p {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 200; line-height: 1.5;
}
.about__text p:last-child { margin-bottom: 0; }
.about__roles {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 26px 0 0;
}
.about__roles .pill { cursor: default; }

.contact {
  margin-top: 56px; padding-top: 42px;
  border-top: 1px solid var(--line);
}
.contact__title {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 300; letter-spacing: -0.01em;
}
.contact__grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.contact__grid dl { margin: 0; display: grid; gap: 5px; align-content: start; }
.contact__grid dt {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.contact__grid dd { margin: 0; font-size: 15px; }
.contact__grid a:hover { color: var(--accent); }
.contact__actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 36px;
}

/* ---------------------------------------------------------
   pied de page (categorie / about)
   --------------------------------------------------------- */

.foot {
  max-width: 1180px; margin: 0 auto;
  padding: 46px 26px 60px;
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12.5px;
}

/* ---------------------------------------------------------
   page 404
   --------------------------------------------------------- */

.notfound {
  min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 24px; background: var(--ink);
}
.notfound h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 72px); font-weight: 200;
}
.notfound h1 em { font-style: normal; color: var(--accent); }
.notfound p { color: var(--muted); margin: 0; }
.notfound__actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------------------------------------------------------
   showreel (overlay video)
   --------------------------------------------------------- */

.reel {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(4, 4, 6, 0.94);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.reel[data-open="true"] { opacity: 1; visibility: visible; }
.reel__frame {
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.reel__frame video { width: 100%; height: 100%; object-fit: contain; }
.reel__close {
  position: absolute; top: 20px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06); color: var(--text);
  font-size: 18px; cursor: pointer;
}
.reel__close:hover { background: rgba(255,255,255,0.14); }
.reel__missing {
  display: grid; place-items: center; height: 100%;
  padding: 30px; text-align: center; color: var(--muted); font-size: 14px;
}

/* ---------------------------------------------------------
   responsive : mobile = empilement vertical plein ecran
   --------------------------------------------------------- */

@media (max-width: 820px) {
  .film {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .panel { height: 100svh; }
  .panel--hero, .panel--cat { flex-basis: auto; width: auto; }
  .panel__scrim--hero {
    background:
      linear-gradient(0deg, rgba(8,8,10,0.9) 0%, rgba(8,8,10,0.35) 46%, rgba(8,8,10,0.1) 100%);
  }
  .hero { justify-content: center; }
  .draghint { display: none; }
  .worldswitch { top: 14px; left: 14px; }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: auto 1fr; row-gap: 6px; padding: 10px 16px; }
  .topbar__title { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .topbar__title b { display: inline; }
  .topbar__label { font-size: 20px; }
  .filters { justify-content: flex-start; gap: 7px; padding: 12px 16px; }
  .block__info {
    position: static; opacity: 1; transform: none;
    flex-direction: column; align-items: flex-start;
    padding: 16px 16px 20px; background: var(--panel);
  }
  .block__veil { display: none; }
  .block__credit { opacity: 1; }
}

/* ---------------------------------------------------------
   page section : en-tete video + cases cinemascope
   --------------------------------------------------------- */

.secback {
  position: fixed; top: 16px; left: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 10, 12, 0.5); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.02em;
  text-decoration: none; transition: background 0.2s var(--ease);
}
.secback:hover { background: rgba(10, 10, 12, 0.78); }

/* en-tete fin : la barre remonte naturellement au scroll ;
   seuls le back (gauche) et le label (droite) restent flottants */
.sechead {
  position: relative; z-index: 1;
  height: 76px; overflow: hidden; background: var(--panel);
}
.sechead__bg { position: absolute; inset: 0; }
.sechead__bg video, .sechead__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.sechead__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(8,8,10,0.72), rgba(8,8,10,0.55));
}
.sechead__cap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 clamp(96px, 15vw, 240px);
}
/* titre de section flottant : texte seul, en negatif pour rester lisible */
.sechead__label {
  position: fixed; z-index: 40; top: 18px; right: 22px;
  color: #fff; mix-blend-mode: difference;
  font-family: var(--font-hand); font-size: clamp(20px, 2.2vw, 30px); line-height: 1;
  pointer-events: none;
}
.sechead__title {
  margin: 0; color: var(--text); font-family: var(--font-display);
  font-weight: 400; letter-spacing: 0;
  font-size: clamp(16px, 1.9vw, 22px); line-height: 1.06;
}

/* mots-cles de competences sous l'en-tete : texte simple, non cliquable */
.secpills {
  position: relative; z-index: 10; background: var(--ink);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 0; padding: clamp(24px, 4.5vh, 44px) clamp(16px, 5vw, 60px) clamp(8px, 1.5vh, 16px);
  animation: sec-enter 0.7s var(--ease) both;
}
.secpills span {
  color: var(--muted); font-family: var(--font-display); font-size: 14px;
  letter-spacing: 0.02em; white-space: nowrap;
}
.secpills span:not(:last-child)::after {
  content: "\00b7"; margin: 0 12px; color: rgba(255, 255, 255, 0.28);
}

@keyframes sec-enter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.cases {
  position: relative; z-index: 10;
  background: var(--ink);
  display: flex; flex-direction: column;
  gap: clamp(80px, 12vh, 160px);         /* grosses barres noires entre projets */
  padding: clamp(40px, 6vh, 90px) 0 clamp(70px, 11vh, 150px);
  animation: sec-enter 0.7s var(--ease) both;
}
.cases__empty {
  text-align: center; color: var(--muted); font-family: var(--font-display);
  padding: 80px 20px; font-size: 18px;
}

/* franc-bord : pleine largeur, sans coins arrondis */
.case {
  position: relative; width: 100%; margin: 0;
  aspect-ratio: 2297 / 1080; overflow: hidden;
  background: var(--panel-2);
}
.case__frame { position: absolute; inset: 0; }
.case__frame video, .case__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.case__credit {
  position: absolute; left: clamp(14px, 2vw, 26px); bottom: clamp(12px, 2vh, 20px);
  z-index: 3; color: #fff; mix-blend-mode: difference;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.04em;
}
.case__cta {
  position: absolute; left: 50%; bottom: clamp(12px, 2.2vh, 22px);
  transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  text-decoration: none; letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.case__cta:hover { transform: translateX(-50%) translateY(-2px); filter: brightness(1.06); }

/* illustrations : deux projets cote a cote, un bouton en haut a droite de chaque colonne */
.case__cta--l, .case__cta--r {
  left: auto; bottom: auto; top: clamp(14px, 2vw, 30px); transform: none;
}
.case__cta--l { right: calc(50% + clamp(8px, 1.4vw, 26px)); }
.case__cta--r { right: clamp(14px, 2vw, 40px); }
.case__cta--l:hover, .case__cta--r:hover { transform: translateY(-2px); filter: brightness(1.06); }

@media (max-width: 720px) {
  .sechead { height: 56vh; min-height: 300px; }
  .case { width: 100%; }
  .case__cta { font-size: 13px; padding: 8px 15px; }
}

/* ---------------------------------------------------------
   page About : deux colonnes, portrait sur jaune a gauche
   --------------------------------------------------------- */

.about2 {
  display: grid; grid-template-columns: minmax(0, 42%) 1fr;
  height: 100svh; overflow: hidden;
}

.ab-l { position: relative; overflow: hidden; background: #dcb54c; }
.ab-back {
  position: absolute; top: 20px; left: 22px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  color: #1a1408; text-decoration: none;
  font-family: var(--font-display); font-size: 15px;
}
.ab-back:hover { opacity: 0.72; }
.ab-l__name {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 5; margin: 0;
  color: #17130a; font-family: var(--font-display); font-weight: 500; font-size: 20px;
}
.ab-l__portrait {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 97%; width: auto; object-fit: contain; object-position: bottom center;
  z-index: 1; pointer-events: none; user-select: none;
}
.ab-l__title {
  position: absolute; left: 0; right: 0; bottom: 120px; z-index: 3;
  text-align: center; padding: 0 16px;
}
.ab-l__kicker {
  font-family: var(--font-hand); color: #f7ecc9; margin: 0 0 -4px;
  font-size: clamp(28px, 3vw, 46px); text-shadow: 0 2px 18px rgba(0,0,0,0.28);
}
.ab-l__h1 {
  font-family: var(--font-display); font-weight: 300; color: #fff; margin: 0; line-height: 1;
  font-size: clamp(38px, 4.8vw, 72px); text-shadow: 0 2px 24px rgba(0,0,0,0.32);
}
.ab-l__cta {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 4px; justify-content: center;
  background: #fff; border-radius: 999px; padding: 6px 8px;
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.45);
}
.ab-cv {
  display: inline-flex; align-items: center; gap: 7px; margin-right: 4px;
  background: #17130a; color: #fff; text-decoration: none;
  padding: 9px 16px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  transition: background 0.2s var(--ease);
}
.ab-cv svg { width: 16px; height: 16px; }
.ab-cv:hover { background: #000; }
.ab-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: #17130a;
  transition: background 0.2s var(--ease);
}
.ab-social svg { width: 19px; height: 19px; }
.ab-social:hover { background: rgba(0, 0, 0, 0.07); }

.ab-r { background: var(--ink); overflow-y: auto; display: flex; align-items: center; }
.ab-r__inner { padding: clamp(32px, 5.5vw, 96px); width: 100%; max-width: 920px; }
.ab-r__head {
  font-family: var(--font-display); font-weight: 500; color: var(--text);
  font-size: clamp(26px, 3vw, 40px); margin: 0 0 26px;
}
.ab-bio p { color: #d3cfc7; line-height: 1.68; margin: 0 0 18px; font-size: clamp(16px, 1.55vw, 21px); }
.ab-roles { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: 28px 0 40px; }
.ab-roles li {
  color: var(--muted); font-family: var(--font-display); font-size: 16px;
}
.ab-roles li:not(:last-child)::after {
  content: "\00b7"; margin: 0 12px; color: rgba(255, 255, 255, 0.3);
}
.ab-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; margin: 0; }
.ab-contact__wide { grid-column: 1 / -1; }
.ab-contact dt {
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
  color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
}
.ab-contact dt svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.ab-contact dd { margin: 0; color: var(--text); font-size: clamp(16px, 1.5vw, 19px); }
.ab-contact a { color: var(--text); text-decoration: none; }
.ab-contact a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .about2 { grid-template-columns: 1fr; height: auto; overflow: visible; }
  /* mobile : on arrive d'abord sur le texte (fond noir), puis on scrolle
     vers l'image + les liens pour conclure la presentation */
  .ab-r { order: 1; padding: 82px 0 44px; }
  .ab-l { order: 2; min-height: 92svh; }
  /* le back devient une pastille flottante, lisible sur fond sombre comme clair */
  .ab-back {
    position: fixed; top: 14px; left: 14px; z-index: 50;
    background: rgba(10, 10, 12, 0.55); backdrop-filter: blur(8px);
    border: 1px solid var(--line); color: var(--text);
    padding: 8px 14px; border-radius: 999px;
  }
}

/* ---------------------------------------------------------
   prechargeur : barre de progression au demarrage
   --------------------------------------------------------- */

.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(300px, 68vw); text-align: center; }
.preloader__name {
  display: block; font-family: var(--font-display); font-weight: 300;
  letter-spacing: 0.05em; color: var(--text); font-size: 17px;
  margin-bottom: 15px; opacity: 0.88;
}
.preloader__track {
  height: 2px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}
.preloader__fill {
  display: block; height: 100%; width: 0;
  background: var(--accent); transition: width 0.3s ease;
}

/* ---------------------------------------------------------
   accessibilite : mouvement reduit
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  /* les videos de fond sont mises en pause par le JS et montrent leur poster */
}
