/* =========================================================
   Magomed — portfolio (noir & rouge)
   ========================================================= */

@font-face {
  font-family: "BDO Grotesk";
  src: url("../fonts/BDOGrotesk-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/RobotoMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --bg-3: #13161d;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f1ee;
  --muted: #8d909a;
  --red: #e8382d;
  --red-hot: #ff4b3e;
  --red-deep: #8f150f;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --script: "Mr Dafoe", "Brush Script MT", cursive;
  --sans: "BDO Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--red); }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Grain léger sur tout le site */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Petits éléments communs ---------- */
.label, .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.label::before {
  content: "";
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-hot));
  transform-origin: left;
}

.title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: .95;
  letter-spacing: .005em;
}
.title--xl { font-size: clamp(52px, 8vw, 128px); }
.title--line { font-size: clamp(36px, 5vw, 76px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border-radius: 4px;
  font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), background .3s, box-shadow .3s;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(232, 56, 45, .7); }
.btn--red:hover { background: var(--red-hot); transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(232, 56, 45, .9); }
.btn--sm { padding: 10px 16px; font-size: 14px; }

.dot, .pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
}
.pulse { position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

.section { position: relative; padding: clamp(96px, 13vw, 180px) 0; }

.head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.head__aside { color: var(--muted); max-width: 46ch; justify-self: end; }
.head__aside p + p { margin-top: 14px; }

/* ---------- Analyse de la page (écran de départ) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
}
.loader__swarm { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__mark {
  position: relative;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  color: rgba(243, 241, 238, .16);
}
html:not(.js) .loader { display: none; }

/* =========================================================
   Construction en direct par les « agents »
   ========================================================= */
body { position: relative; }
.L { visibility: hidden !important; }

.build { position: absolute; inset: 0; z-index: 108; pointer-events: none; overflow: hidden; }

/* Agents : flèches de couleur */
.agent {
  position: absolute; top: 0; left: 0;
  width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  color: var(--c, #86e3d8);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
  will-change: transform;
}
.agent svg { display: block; width: 100%; height: 100%; fill: currentColor; }
/* Flèches qui invitent à revenir au bouton e-mail : on peut cliquer dessus */
.agent--guide { pointer-events: auto; cursor: pointer; }
.agent--guide::before { content: ""; position: absolute; inset: -16px; }

/* Cadres bleus autour des éléments en construction */
.wf {
  position: absolute;
  border: 1px solid #3d8bff;
  background: rgba(61, 139, 255, .06);
  box-shadow: 0 0 12px rgba(61, 139, 255, .25);
}
.wf i { position: absolute; width: 6px; height: 6px; background: #fff; border: 1px solid #3d8bff; }
.wf .tl { left: -4px; top: -4px; } .wf .tr { right: -4px; top: -4px; }
.wf .bl { left: -4px; bottom: -4px; } .wf .br { right: -4px; bottom: -4px; }
.wf__size {
  position: absolute; left: 50%; top: 100%;
  transform: translate(-50%, 6px);
  padding: 3px 6px; border-radius: 3px;
  background: #3d8bff; color: #fff;
  font: 500 9px/1 var(--mono); letter-spacing: .04em; white-space: nowrap;
}
.wf--red { border-color: var(--red); box-shadow: 0 0 12px rgba(232, 56, 45, .35); background: rgba(232, 56, 45, .06); }
.wf--red i { border-color: var(--red); }
.wf--red .wf__size { background: var(--red); }

/* Repères « + » et lignes guides */
.mk { position: absolute; top: 0; left: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.mk::before, .mk::after { content: ""; position: absolute; background: #e6eeff; box-shadow: 0 0 6px rgba(61, 139, 255, .9); }
.mk::before { left: 5px; top: 0; width: 1px; height: 11px; }
.mk::after { top: 5px; left: 0; width: 11px; height: 1px; }
.gl { position: absolute; left: 0; right: 0; height: 1px; background: rgba(61, 139, 255, .45); }
.gl--v { left: auto; right: auto; width: 1px; height: auto; }
.gl--red { background: rgba(232, 56, 45, .85); box-shadow: 0 0 8px rgba(232, 56, 45, .6); }

/* Guides d'alignement roses (réalignement d'un élément) */
.gl--snap { background: #ff4fd8; box-shadow: 0 0 6px rgba(255, 79, 216, .8); }

/* Sélection bleue (copier, effacer…) */
.sel { position: absolute; background: rgba(61, 139, 255, .32); border-radius: 2px; outline: 1px solid rgba(61, 139, 255, .6); }

/* Touches du clavier affichées à côté de l'agent */
.kbd {
  position: absolute; top: 0; left: 0;
  padding: 4px 7px; border-radius: 5px;
  background: #1b2030; color: #fff;
  border: 1px solid rgba(255, 255, 255, .28); border-bottom-width: 3px;
  font: 500 10px/1 var(--mono); letter-spacing: .03em; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}

/* Faute de frappe soulignée en rouge, texte provisoire grisé */
.typo { text-decoration: none; }
.typo--bad { text-decoration: underline wavy var(--red-hot); text-decoration-thickness: 2px; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.ghost { opacity: .4; }

/* Image révélée par une ligne de scan */
.cover {
  position: absolute;
  background: #8ea3ba url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 17l-5-5-9 8'/%3E%3C/svg%3E") no-repeat center / 30px;
}
.scanline { position: absolute; height: 2px; background: #3d8bff; box-shadow: 0 0 14px 2px rgba(61, 139, 255, .85); }

/* Curseur de saisie */
.caret { position: absolute; top: 0; left: 0; width: 2px; background: #3d8bff; box-shadow: 0 0 6px #3d8bff; }

/* Image en attente : bloc gris-bleu avec icône */
.ph {
  background-color: #8ea3ba !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 17l-5-5-9 8'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: center !important; background-size: 30px !important;
}
.ph > * { opacity: 0; }
.ph-out { transition: background-color .6s ease; }

/* Règles bleues en haut et à gauche (comme un logiciel de design) */
.ruler { position: fixed; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .5s; background-color: rgba(10, 22, 46, .78); }
.ruler.on { opacity: 1; }
.ruler--top {
  top: 0; left: 0; right: 0; height: 14px;
  border-bottom: 1px solid rgba(61, 139, 255, .65);
  background-image:
    repeating-linear-gradient(90deg, rgba(130, 175, 255, .9) 0 1px, transparent 1px 100px),
    repeating-linear-gradient(90deg, rgba(130, 175, 255, .55) 0 1px, transparent 1px 10px);
  background-size: 100% 14px, 100% 5px;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
}
.ruler--left {
  top: 0; bottom: 0; left: 0; width: 14px;
  border-right: 1px solid rgba(61, 139, 255, .65);
  background-image:
    repeating-linear-gradient(180deg, rgba(130, 175, 255, .9) 0 1px, transparent 1px 100px),
    repeating-linear-gradient(180deg, rgba(130, 175, 255, .55) 0 1px, transparent 1px 10px);
  background-size: 14px 100%, 5px 100%;
  background-position: 0 0, 100% 0;
  background-repeat: no-repeat;
}

@media (max-width: 640px) {
  .ruler--left { display: none; }
}

.progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 2px; width: 100%;
  background: var(--red);
  transform-origin: left; transform: scaleX(0);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 8, 11, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__logo { font-family: var(--display); font-size: 26px; letter-spacing: .02em; line-height: 1; }
.nav__logo span { color: var(--red); }
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__cv { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); transition: color .3s; }
.nav__cv:hover { color: var(--text); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { font-family: var(--display); font-size: clamp(44px, 12vw, 72px); line-height: 1.1; text-transform: uppercase; display: flex; align-items: baseline; gap: 14px; }
.menu__links small { font-family: var(--mono); font-size: 12px; color: var(--red); }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 120px var(--gutter) 110px;
  isolation: isolate;
}
.hero::before {
  /* halo rouge derrière le portrait */
  content: ""; position: absolute; z-index: -1;
  left: 50%; bottom: -10%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 56, 45, .22), transparent 62%);
}
.hero__word {
  position: absolute; z-index: 0;
  left: 0; right: 0; top: 44%;
  transform: translateY(-50%);
  text-align: center;
  pointer-events: none;
  overflow: hidden;
}
.hero__word > span {
  display: inline-block;
  font-family: var(--display);
  font-size: 21.5vw;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.hero__word > span, .hero__word .char {
  background: linear-gradient(180deg, var(--red-hot) 0%, var(--red) 45%, var(--red-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__word > span.is-split { background: none; }
.hero__word .char { display: inline-block; }

.hero__visual {
  position: absolute; z-index: 1;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__photo {
  height: min(86vh, 980px); width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
  filter: contrast(1.06) saturate(.92);
  user-select: none;
}

.hero__left { position: relative; z-index: 2; max-width: 520px; }
.hero__eyebrow { color: var(--red); margin-bottom: 26px; line-height: 1.5; }
.hero__hello { font-family: var(--script); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; margin-bottom: -6px; transform: rotate(-4deg); transform-origin: left; }
.hero__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 8.2vw, 128px);
  line-height: .92; letter-spacing: .005em;
  white-space: nowrap;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
.hero__name span, .hero__stats strong::after {
  color: var(--red);
  -webkit-text-stroke: .06em var(--bg); paint-order: stroke fill; /* reste lisible sur le grand mot rouge */
}
.hero__role {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05;
  margin: 18px 0 18px;
}
.hero__text { color: #c9cbd2; max-width: 36ch; margin-bottom: 28px; }
.hero__place { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.hero__stats {
  position: relative; z-index: 2;
  justify-self: end;
  display: flex; flex-direction: column; gap: 26px;
  min-width: 190px;
}
.hero__stats li { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; }
.hero__stats strong { font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1; color: var(--text); text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.hero__stats strong::after { content: "."; color: var(--red); }
.hero__stats sup { font-size: .4em; vertical-align: top; position: relative; top: .25em; }
.hero__stats li > span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #c9cbd2; line-height: 1.5; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hero__cv { display: block !important; padding-top: 6px; }
.hero__cv a { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--red); padding-bottom: 4px; }

.hero__bottom {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 30px;
  display: flex; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero__line { flex: 1; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero__line::after {
  content: ""; position: absolute; inset: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: sweep 2.8s var(--ease) infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* ---------- Réalisations ---------- */
.work__grid { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr; gap: 22px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .4s, transform .6s var(--ease);
}
.card:hover { border-color: rgba(232, 56, 45, .55); transform: translateY(-6px); }
.card > .card__body:not(:has(.card__arrow)) { grid-template-columns: auto 1fr; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.9); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 11, .85), transparent 55%);
}
.card:hover .card__media img { transform: scale(1.06); filter: saturate(1.1); }
.card__tag {
  position: absolute; z-index: 1; left: 14px; top: 14px;
  padding: 6px 10px; border-radius: 3px;
  background: rgba(7, 8, 11, .7); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
}
.card__body { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; padding: 22px 22px 26px; flex: 1; }
.card__num { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--red); }
.card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: 1.05; letter-spacing: .01em; }
.card__role { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; }
.card__text { color: #b5b8c0; font-size: 15px; }
.card__arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 16px;
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.card:hover .card__arrow { background: var(--red); border-color: var(--red); transform: rotate(45deg); }

.card--cta { background: linear-gradient(160deg, #c8261d 0%, #8f150f 70%, #4d0b08 100%); border-color: transparent; }
.card--cta:hover { border-color: transparent; }
.card__cta { display: flex; flex-direction: column; height: 100%; padding: 26px; }
.card--cta .card__num { color: rgba(255, 255, 255, .55); }
.card__cta-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(44px, 4.4vw, 64px); line-height: .95; margin: auto 0 18px; padding-top: 40px; }
.card__cta-title span { color: var(--bg); }
.card--cta .card__text { color: rgba(255, 255, 255, .85); }
.card__cta-link { margin-top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 16px; display: flex; justify-content: space-between; }

/* ---------- Bandeau outils ---------- */
.marquee { padding: 10px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee__label { padding-top: 26px; }
.marquee__label .label { margin-bottom: 8px; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; }
.marquee__row span { font-family: var(--display); text-transform: uppercase; font-size: clamp(48px, 7vw, 104px); line-height: 1.15; }
.marquee__row span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 241, 238, .55); }
.marquee__row i { font-style: normal; color: var(--red); font-size: clamp(24px, 3vw, 44px); }

/* ---------- Compétences ---------- */
.skills__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.skills__left {
  position: sticky; top: 110px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 6px;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(232, 56, 45, .32), transparent 60%),
    linear-gradient(180deg, #120d12, #0b0b10);
  border: 1px solid var(--line);
  overflow: hidden;
}
.skills__big { display: flex; align-items: center; gap: 18px; margin: 44px 0 26px; }
.skills__big strong { font-family: var(--display); font-weight: 400; font-size: clamp(110px, 12vw, 170px); line-height: .85; }
.skills__big span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); line-height: 1.6; }
.skills__text { color: #b5b8c0; max-width: 40ch; }

.skills__list { border-top: 1px solid var(--line); }
.skills__list li {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.skills__list li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(232, 56, 45, .14), transparent 80%);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.skills__list li:hover::before { transform: scaleX(1); }
.skills__list .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.skills__list h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.skills__list p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.skills__list .cat { font-family: var(--display); text-transform: uppercase; font-size: 22px; color: var(--red); letter-spacing: .02em; }

/* ---------- Avant / après ---------- */
.compare { background: linear-gradient(180deg, var(--bg), #0b0c12 50%, var(--bg)); }
.compare__grid { display: grid; grid-template-columns: .85fr 1.4fr; gap: 64px; align-items: center; }
.compare__text p:not(.label) { color: #b5b8c0; margin-top: 26px; max-width: 38ch; }
.compare__text .compare__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.slider {
  position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line-2);
  touch-action: pan-y;
}
.slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider__img--client { object-position: 70% 50%; }   /* garde le présentoir dans la moitié droite */
.slider__img--atelier { object-position: 50% 75%; }  /* garde la main et le présentoir dans le cadre */
.slider__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.slider__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--red); pointer-events: none;
}
.slider__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 18px; letter-spacing: -.1em;
  box-shadow: 0 0 0 8px rgba(232, 56, 45, .25);
}
.slider__tag {
  position: absolute; bottom: 14px; z-index: 2;
  padding: 6px 10px; border-radius: 3px; background: rgba(7, 8, 11, .75);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none;
}
.slider__tag--l { left: 14px; }
.slider__tag--r { right: 14px; }
.slider__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 3;
  -webkit-appearance: none; appearance: none;
}
.slider__range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100vh; }
.slider__range::-moz-range-thumb { width: 60px; height: 100vh; border: 0; }
.slider__range:focus-visible + * { outline: 2px solid var(--red); }

/* ---------- À propos ---------- */
.head--about { align-items: start; }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr .9fr; gap: 48px; align-items: start; }
.about__h { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.edu + .edu { margin-top: 34px; }
.edu__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.edu__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.edu__row h4 { font-size: 16px; font-weight: 600; }
.edu__row p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.edu__row > span { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 13px; color: #c9cbd2; transition: border-color .3s, color .3s, background .3s; }
.tags li:hover { border-color: var(--red); color: #fff; background: rgba(232, 56, 45, .1); }

.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--red), rgba(232, 56, 45, .1)); }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 26px; }
.steps li > span {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--red);
  font-family: var(--display); font-size: 16px; color: var(--red);
}
.steps h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; line-height: 1.1; padding-top: 2px; }
.steps p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

.quote {
  position: sticky; top: 110px;
  padding: 34px 30px 30px;
  border-radius: 6px;
  background: linear-gradient(160deg, #d42c22 0%, #9d1912 65%, #5e0d09 100%);
  box-shadow: 0 40px 80px -40px rgba(232, 56, 45, .6);
  overflow: hidden;
}
.quote__mark { display: block; font-family: var(--display); font-size: 96px; line-height: .7; color: rgba(255, 255, 255, .35); }
.quote blockquote { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; font-weight: 500; margin: 14px 0 22px; letter-spacing: -.01em; }
.quote figcaption { font-family: var(--script); font-size: 46px; line-height: 1; }
.quote__foot { margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }

/* ---------- Parcours ---------- */
.journey .title { margin-bottom: clamp(48px, 6vw, 84px); }
.journey__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 72px; align-items: start; }
.timeline { position: relative; padding-left: 0; }
.timeline__line { position: absolute; left: 172px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline__line span { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px var(--red); }
.timeline li { position: relative; display: grid; grid-template-columns: 172px 1fr; padding-bottom: 46px; }
.timeline li::before {
  content: ""; position: absolute; left: 172px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%; transform: translateX(-50%);
  background: var(--bg); border: 2px solid var(--red);
}
.timeline__date { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); padding-right: 24px; padding-top: 2px; }
.timeline li > div { padding-left: 36px; }
.timeline h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1.05; letter-spacing: .01em; }
.timeline__org { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.timeline li p:last-child { color: #b5b8c0; font-size: 15px; max-width: 60ch; }

.seek { position: sticky; top: 110px; }
.seek__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 4vw, 60px); line-height: .95; margin-bottom: 28px; }
.seek li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.seek li > span { font-family: var(--mono); font-size: 11px; color: var(--red); padding-top: 4px; }
.seek h4 { font-size: 16px; font-weight: 600; }
.seek p { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; align-items: center; }
.contact__intro > p:not(.label) { color: #b5b8c0; margin: 24px 0 30px; max-width: 36ch; }
.round-link { display: inline-flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.round-link__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--red); color: var(--red); font-size: 18px;
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.round-link:hover .round-link__icon { background: var(--red); color: #fff; transform: rotate(45deg); }

.contact__list li + li { border-top: 1px solid var(--line); }
.contact__list a, .contact__list li > div { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; }
.contact__list .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color .3s, background .3s; }
.contact__list svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.contact__list small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__list i { font-style: normal; color: var(--muted); transition: color .3s, transform .4s var(--ease); }
.contact__list a:hover .ic { border-color: var(--red); background: rgba(232, 56, 45, .1); }
.contact__list a:hover i { color: var(--red); transform: translate(3px, -3px); }

.reel {
  position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
  isolation: isolate;
}
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.4) contrast(1.1) brightness(.75); }
.reel__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 11, .2), rgba(7, 8, 11, .9)), linear-gradient(0deg, rgba(232, 56, 45, .35), transparent 60%); mix-blend-mode: normal; }
.reel__k { position: absolute; top: 44px; left: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.reel__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 3.6vw, 58px); line-height: .95; }
.reel__btn {
  position: absolute; right: 22px; top: 22px;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-size: 24px;
  box-shadow: 0 0 0 0 rgba(232, 56, 45, .6);
  animation: ring 2.4s ease-out infinite;
  transition: transform .4s var(--ease), background .3s;
}
.reel__btn:hover { transform: scale(1.1); background: var(--red-hot); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(232, 56, 45, .55); } 100% { box-shadow: 0 0 0 22px rgba(232, 56, 45, 0); } }

/* ---------- Pied de page ---------- */
.footer { padding: 40px 0 34px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big {
  font-family: var(--display); text-transform: uppercase;
  font-size: 19.5vw; line-height: .85; letter-spacing: -.005em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 238, .22);
  text-align: center; margin: 0 calc(var(--gutter) * -1) 26px;
  white-space: nowrap;
}
.footer__big span { -webkit-text-stroke: 0; color: var(--red); }
.footer__big .char { display: inline-block; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__social { display: flex; gap: 24px; }
.footer__social a, .footer__top { transition: color .3s; }
.footer__social a:hover, .footer__top:hover { color: var(--red); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) and (min-width: 961px) {
  .hero__visual { left: 57%; }
  .hero__photo { height: min(80vh, 900px); }
  .hero__text { max-width: 30ch; }
}

@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .card--cta { grid-column: 1 / -1; }
  .card__cta-title { padding-top: 10px; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .quote { grid-column: 1 / -1; position: relative; top: 0; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .reel { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cv { display: none; }
  .nav__burger { display: block; }
  .nav__actions { gap: 10px; }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 100px; padding-bottom: 0;
    min-height: auto;
  }
  .hero__word { top: calc(100px + min(88vw, 520px) * .3); transform: none; }
  .hero__word > span { font-size: 23vw; }
  .hero__visual { position: relative; left: auto; bottom: auto; transform: none; grid-row: 1; }
  .hero__photo { height: auto; width: min(88vw, 520px); margin: 0 auto; }
  .hero__left { grid-row: 2; max-width: none; margin-top: -90px; }
  .hero__stats {
    grid-row: 3; justify-self: stretch;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin: 44px 0 40px; padding-top: 26px; border-top: 1px solid var(--line);
  }
  .hero__bottom { display: none; }
  .hero__stats li { grid-template-columns: 1fr; gap: 6px; }
  .hero__stats strong { font-size: 44px; }
  .hero__cv { grid-column: 1 / -1; }

  .head { grid-template-columns: 1fr; }
  .head__aside { justify-self: start; }
  .skills__grid, .compare__grid, .journey__grid { grid-template-columns: 1fr; gap: 48px; }
  .skills__left, .seek { position: relative; top: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .reel { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .nav .btn--sm { display: none; }
  .work__grid { grid-template-columns: 1fr; }
  .card__body { grid-template-columns: auto 1fr; }
  .card__arrow { display: none; }
  .skills__list li { grid-template-columns: 32px 1fr; padding: 22px 4px; }
  .skills__list .cat { grid-column: 2; font-size: 18px; }
  .timeline__line, .timeline li::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 30px; }
  .timeline li > div { padding-left: 0; }
  .timeline__date { padding-bottom: 6px; }
  .hero__bottom > span:last-child { display: none; }
  .hero__stats li > span { font-size: 10px; letter-spacing: .06em; }
  .slider { aspect-ratio: 4 / 3; }
  .reel { aspect-ratio: 4 / 5; }
}

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