@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-ext-wdth-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --vermilion: #FF4A1C;
  --safran: #FFB000;
  --prune: #3B0F2E;
  --encre: #170B0A;
  --papier: #FFF4E6;

  /* Couleurs pilotées par le défilement (voir main.js) */
  --bg: var(--vermilion);
  --fg: var(--encre);

  --display: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 12vw, 10rem);
  --band: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
.reduce { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Sans JavaScript, chaque section garde sa couleur. Avec JavaScript, le fond du corps change au défilement. */
section { background: var(--s-bg); color: var(--s-fg); padding: var(--section-y) var(--gutter); position: relative; }
section[data-bg="#FF4A1C"] { --s-bg: var(--vermilion); --s-fg: var(--encre); }
section[data-bg="#FFB000"] { --s-bg: var(--safran); --s-fg: var(--encre); }
section[data-bg="#3B0F2E"] { --s-bg: var(--prune); --s-fg: var(--papier); }
section[data-bg="#170B0A"] { --s-bg: var(--encre); --s-fg: var(--papier); }
.js section { background: transparent; color: inherit; }

/* Barre fixe */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.25rem var(--gutter);
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
}
.bar a { text-decoration: none; }
.bar__name { font-weight: 800; letter-spacing: -0.01em; }
.bar__nav { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); }
.bar__nav a { padding-block: 0.25rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.25s ease; }
.bar__nav a:hover, .bar__nav a:focus-visible { background-size: 100% 2px; }
@media (max-width: 40rem) {
  .bar__nav a:not(:last-child) { display: none; }
}

/* Révélation par masque : le texte monte depuis une ligne invisible */
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line { display: block; will-change: transform; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(5rem, 9vw, 6.5rem);
  padding-bottom: calc(var(--band) + clamp(1.25rem, 3vw, 2.5rem));
  overflow: hidden;
}
.hero__name {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(5rem, min(27vw, 23svh), 24rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.hero__name .line { font-stretch: calc(var(--wdth, 100) * 1%); }
.hero__name, .hero__foot { position: relative; z-index: 1; }
.hero__foot {
  max-width: min(100%, 54vw);
  margin-top: clamp(1.25rem, 3.2vw, 3rem);
}
.hero__pitch {
  font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, min(0.9rem + 1.7vw, 4.2svh), 2.3rem);
  line-height: 1.12; letter-spacing: -0.01em;
}
.hero__role { max-width: 40ch; margin-top: 1.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }
/* Scène : le portrait sort de derrière un bandeau noir. La coupe du bas est franche et assumée. */
.hero__stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__photo {
  position: absolute; right: clamp(0rem, 3vw, 3rem); bottom: var(--band);
  height: min(90svh, 54vw); width: auto; aspect-ratio: 577 / 718; object-fit: contain;
  /* le portrait est net, posé sur le trait */
}
.hero__band {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; z-index: 2;
  height: var(--band); background: currentColor; /* même trait que sur « Écouter » */
  transform-origin: left center;
}
@media (max-width: 52rem) {
  .hero { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
  .hero__foot { max-width: 100%; }
  .hero__stage {
    position: relative; inset: auto; flex: none;
    z-index: 2; /* le portrait passe devant le bas du nom */
    height: min(38svh, 19rem);
    margin: -9svh calc(var(--gutter) * -1) 0;
  }
  .hero__photo { height: 100%; right: var(--gutter); }
}

.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.005em;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border: 2px solid currentColor; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: inherit; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }

/* Titres de section */
.title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 15vw, 13rem);
  line-height: 0.88; letter-spacing: -0.04em;
}
.title--small { font-size: clamp(2.5rem, 8vw, 6.5rem); line-height: 0.95; }
.title--huge { font-size: clamp(5rem, 21vw, 19rem); }

/* Ce que je fais */
.rows { margin-top: clamp(3rem, 7vw, 6rem); }
.row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0.5rem 3rem; align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.row::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: currentColor;
  transform-origin: left center;
  transform: scaleX(var(--draw, 1));
}
.row:last-child::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: currentColor;
}
.row__title {
  font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-size: clamp(2.75rem, 8vw, 7rem); line-height: 1; letter-spacing: -0.035em;
}
.row__text { max-width: 36ch; }
@media (max-width: 52rem) {
  .row { grid-template-columns: 1fr; }
}

/* Marques */
.brands { overflow: hidden; }
.brands__lead { margin-top: 1rem; opacity: 0.8; }
.marquee { margin: clamp(3rem, 7vw, 6rem) calc(var(--gutter) * -1) 0; display: grid; gap: clamp(0.5rem, 2vw, 1.5rem); }
.marquee__track {
  display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); width: max-content;
  font-family: var(--display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(2.25rem, 6vw, 5.5rem); line-height: 1.1; letter-spacing: -0.03em;
  white-space: nowrap;
  --shift: -25%;
  animation: marquee-left 80s linear infinite;
}
.marquee__track--b { animation-name: marquee-right; animation-duration: 90s; }
/* Logo déposé dans logos/ : affiché comme un masque, donc toujours de la même couleur que le texte */
.marquee__track .logo {
  flex: none; height: var(--h, 0.62em); aspect-ratio: var(--ratio, 3);
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.js .marquee { opacity: 0; transition: opacity 0.5s ease; }
.js .marquee.is-ready { opacity: 1; }
.marquee__track i { flex: none; width: 0.28em; height: 0.28em; border-radius: 50%; background: currentColor; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(var(--shift, -50%)); } }
@keyframes marquee-right { from { transform: translateX(var(--shift, -50%)); } to { transform: translateX(0); } }
.reduce .marquee__track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); white-space: normal; --shift: 0; }

/* Parcours */
.timeline { position: relative; margin-top: clamp(3rem, 7vw, 6rem); padding-left: clamp(1.5rem, 4vw, 3.5rem); max-width: 60rem; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 0.4rem; bottom: 0.4rem; width: 2px; background: var(--safran);
  transform-origin: top center;
  transform: scaleY(var(--p, 1));
}
.timeline li { position: relative; padding-bottom: clamp(2rem, 4vw, 3.25rem); }
.reduce .timeline li, .timeline li.is-in { opacity: 1; }
.anim-ready:not(.reduce) .timeline li { opacity: 0.25; transition: opacity 0.5s ease; }
.anim-ready:not(.reduce) .timeline li.is-in { opacity: 1; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(clamp(1.5rem, 4vw, 3.5rem) * -1 - 6px); top: 0.55rem;
  width: 14px; height: 14px; border-radius: 50%; background: var(--safran);
}
.timeline__when { font-style: italic; opacity: 0.85; }
.timeline__what {
  font-family: var(--display); font-weight: 700; font-stretch: 90%;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.025em;
  margin-top: 0.15rem;
}
.timeline__where { margin-top: 0.25rem; }
.formation { margin-top: clamp(3rem, 6vw, 5rem); max-width: 46ch; opacity: 0.9; }

/* Contact */
.contact { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; }
.contact__mail {
  margin-top: clamp(2rem, 5vw, 4rem);
  font-family: var(--display); font-weight: 700; font-stretch: 90%;
  font-size: clamp(1.75rem, 5.5vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.05;
  overflow-wrap: anywhere;
}
.contact__alt { margin-top: 1.25rem; }

/* Pied de page */
.foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem var(--gutter) 2rem;
  font-size: 1rem;
}

/* Page mentions légales */
.legal { max-width: 46rem; margin: 0 auto; padding: 6rem var(--gutter) 4rem; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 2rem; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 2rem 0 0.5rem; }
.legal p + p { margin-top: 0.75rem; }

/* Liens vers les employeurs : soulignement qui se redessine, flèche qui s'échappe */
.link {
  position: relative; display: inline-block; font-weight: 500;
  text-decoration: none; padding-right: 0.05em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 0.09em no-repeat;
  transition: background-size 0.45s cubic-bezier(.65,0,.35,1);
}
.link::after {
  content: "\2197"; display: inline-block; margin-left: 0.2em; font-size: 0.8em;
  transition: transform 0.35s cubic-bezier(.3,1.6,.5,1);
}
.link:hover, .link:focus-visible { background-size: 0% 0.09em; background-position: 100% 100%; }
.link:hover::after, .link:focus-visible::after { transform: translate(0.18em, -0.18em); }
.link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.timeline__where .link { font-size: 1.15em; }
@media (hover: none) { .link:hover { background-size: 100% 0.09em; } }

.cvnote { margin-top: 1.25rem; font-style: italic; max-width: 44ch; }
.cvnote .link { font-style: normal; }
