/* =========================================================
   MARTIN PACEY — PORTFOLIO
   Direction : Éditorial Premium · Accent cuivre
   ========================================================= */

:root {
  /* Palette claire (partie pro) */
  --paper:        #F7F5F2;
  --paper-soft:   #EFEBE5;
  --ink:          #14110F;
  --ink-soft:     #4A443E;
  --ink-faint:    #8A817772;
  --line:         #E3DDD4;
  --copper:       #B06A3B;
  --copper-deep:  #8F5328;
  --copper-soft:  #E8D6C6;
  --cream-deep:   #E9E2D6;   /* crème plus marqué pour l'amplitude des dégradés */

  /* Palette sombre (partie créative) */
  --night:        #0E0C0B;
  --night-soft:   #1A1614;
  --night-line:   #2A2521;
  --cream:        #F3EDE5;

  /* Typo */
  /* "--serif" = police d'affichage (titres). Désormais Space Grotesk. */
  --serif: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Mesures */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------- Reset ----------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ----------------------- Typo helpers ----------------------- */
.section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.section__intro {
  margin-top: 1.2rem;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.career__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.career__logos {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  padding-bottom: 0.4rem;
}
.career__logos img {
  height: 30px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.career__logos img[alt="CUPRA"]      { height: 75px; }  /* +150% */
.career__logos img[alt="Volkswagen"] { height: 60px; }  /* +100%
}
.career__logos img:hover { opacity: 1; filter: grayscale(0); }

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.7em;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--solid {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 30px -12px rgba(20,17,15,0.5);
}
.btn--solid:hover { box-shadow: 0 18px 40px -14px rgba(20,17,15,0.55); }
.btn--copper { background: var(--copper); color: #fff; box-shadow: 0 12px 34px -12px rgba(176,106,59,0.6); }
.btn--ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.is-scrolled {
  background: rgba(247,245,242,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.65rem; }
.nav__mono {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.06em;
  box-shadow: 0 6px 16px -8px rgba(20,17,15,0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease);
}
.nav__brand:hover .nav__mono { transform: translateY(-2px) rotate(-3deg); box-shadow: 0 10px 22px -8px rgba(20,17,15,0.6); }
.nav__mono-m { color: var(--paper); }
.nav__mono-p { color: var(--copper); margin-left: -0.02em; }
.nav__name { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--copper);
  transition: width 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__cv {
  display: flex; align-items: center; gap: 0.4em;
  font: inherit; font-size: inherit; font-weight: 600; cursor: pointer;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 0.5em 1.1em;
  border-radius: 100px;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.nav__cv:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }
.nav__cv svg { flex-shrink: 0; }
.nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55em 1.2em;
  border-radius: 100px;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); background: var(--copper-deep); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(176,106,59,0.16), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(176,106,59,0.10), transparent 40%),
    var(--paper);
}
.hero__bg::after {
  /* texture grain subtile */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: multiply;
}
.hero__inner { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 6rem; }
.hero__eyebrow {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 1.6rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.hero__title-accent { font-style: italic; color: var(--copper); font-weight: 400; }
.hero__lead {
  margin-top: 2rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--ink-soft);
  line-height: 1.6;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__meta {
  margin-top: 2.6rem;
  display: flex; gap: 0.9rem; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scroll-line {
  width: 1.5px; height: 42px;
  background: linear-gradient(var(--copper), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* =========================================================
   DEUX UNIVERS
   ========================================================= */
.duo { padding: clamp(3rem, 8vw, 6rem) 0; }
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.duo__card {
  position: relative;
  padding: clamp(2rem, 4vw, 3.2rem);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.duo__card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,17,15,0.28); }
.duo__card--dark { background: var(--night); border-color: var(--night-line); color: var(--cream); }
.duo__num {
  font-family: var(--serif);
  font-size: 1rem; color: var(--copper); font-weight: 600;
  letter-spacing: 0.1em;
}
.duo__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: auto; padding-top: 2rem;
  letter-spacing: -0.01em;
}
.duo__text { margin-top: 0.8rem; color: var(--ink-soft); max-width: 34ch; }
.duo__card--dark .duo__text { color: #b8aea3; }
.duo__link {
  margin-top: 1.6rem;
  font-weight: 600; font-size: 0.92rem;
  color: var(--copper);
  transition: gap 0.3s var(--ease);
}

/* =========================================================
   SECTIONS GÉNÉRIQUES (espacement vertical)
   ========================================================= */
.about, .career, .work, .skills, .formation, .contact { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }

/* Fonds : dégradés enchaînés sans couture, blanc pur <-> crème (amplitude visible) */
.about     { background: linear-gradient(180deg, #fff 0%, var(--cream-deep) 100%); }
.career    { background: linear-gradient(180deg, var(--cream-deep) 0%, #fff 100%); }
.formation { background: linear-gradient(180deg, #fff 0%, var(--cream-deep) 100%); }
.skills    { background: linear-gradient(180deg, var(--cream-deep) 0%, #fff 100%); }
.work      { background: linear-gradient(180deg, #fff 0%, var(--cream-deep) 100%); }
.contact   { background: linear-gradient(180deg, var(--cream-deep) 0%, #fff 100%); }

/* ----------------------- À PROPOS ----------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__text { margin-top: 1.4rem; color: var(--ink-soft); font-size: 1.06rem; }
.about__text strong { color: var(--ink); font-weight: 600; }
.about__facts { margin-top: 2.4rem; display: grid; gap: 1rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.about__facts li { display: flex; align-items: baseline; gap: 1rem; font-size: 0.98rem; color: var(--ink-soft); }
.about__fact-num {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 600; color: var(--copper);
  min-width: 2.4ch;
}

/* =========================================================
   PLACEHOLDERS PHOTO
   ========================================================= */
.ph {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--paper-soft), #fff);
  border: 1px dashed var(--copper-soft);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--copper-deep);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(176,106,59,0.04) 14px, rgba(176,106,59,0.04) 28px);
}
.ph span {
  position: relative;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.75;
}
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--dark {
  background: linear-gradient(135deg, var(--night-soft), #14100d);
  border-color: #4a3a2c;
  color: var(--copper);
  aspect-ratio: 4 / 3;
}
.ph--dark::before {
  background: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(176,106,59,0.06) 14px, rgba(176,106,59,0.06) 28px);
}

/* =========================================================
   TIMELINE / PARCOURS
   ========================================================= */
.timeline { position: relative; max-width: 880px; }
.timeline__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.timeline__item:hover { padding-left: 0.6rem; }
.timeline__when {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--copper);
  padding-top: 0.3rem;
}
.timeline__role { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.timeline__org { margin-top: 0.4rem; font-weight: 600; color: var(--ink); }
.timeline__org span { color: var(--ink-soft); font-weight: 400; }
.timeline__desc { margin-top: 0.8rem; color: var(--ink-soft); max-width: 60ch; }
.career__more {
  margin-top: 2.5rem; max-width: 60ch;
  color: var(--ink-soft); font-style: italic;
  font-family: var(--serif); font-size: 1.05rem;
}

/* =========================================================
   RÉALISATIONS
   ========================================================= */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.work__card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.work__card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(20,17,15,0.3); }
.work__card--wide { grid-column: span 2; }
.work__card .ph { border-radius: 0; border: none; }
.work__card--wide .work__info { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.work__info { padding: 1.6rem 1.8rem 1.9rem; }
.work__tag {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--copper);
  margin-bottom: 0.7rem;
}
.work__title { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.work__desc { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.98rem; max-width: 54ch; }

/* =========================================================
   COMPÉTENCES
   ========================================================= */
.skills__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.skills__cat {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--ink);
  padding-bottom: 0.9rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.skills__cat--mt { margin-top: 2.4rem; }
.skills__list { display: grid; gap: 0.7rem; }
.skills__list li {
  color: var(--ink-soft); font-size: 1rem;
  padding-left: 1.3rem; position: relative;
}
.skills__list li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper);
}
.skills__cta {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem 2rem; flex-wrap: wrap;
}
.skills__cta-text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.3; color: var(--ink);
  max-width: 44ch; letter-spacing: -0.01em;
}

/* =========================================================
   FORMATION — section dédiée (cartes)
   ========================================================= */
.formation__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.formation__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(20,17,15,0.22);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.formation__card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--copper);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.formation__card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,17,15,0.25); }
.formation__card:hover::before { transform: scaleY(1); }
.formation__year {
  font-family: var(--serif); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.04em;
  color: var(--copper);
}
.formation__diploma {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.2; margin-top: 0.9rem;
  letter-spacing: -0.01em;
}
.formation__school { margin-top: 0.4rem; font-weight: 600; color: var(--ink); }
.formation__detail { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

/* =========================================================
   BOUTON RETOUR EN HAUT (réutilise le monogramme MP)
   ========================================================= */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: flex; align-items: center; gap: 0.7rem;
  background: none; border: none; cursor: pointer; padding: 0;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top__label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: rgba(247,245,242,0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 0.55em 0.95em; border-radius: 100px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -10px rgba(20,17,15,0.45);
  white-space: nowrap;
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.to-top__mono {
  width: 46px; height: 46px; font-size: 1.15rem;
  box-shadow: 0 12px 28px -10px rgba(20,17,15,0.6);
}
.to-top:hover .to-top__label { color: var(--ink); transform: translateX(-2px); }
.to-top:hover .to-top__mono { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 16px 34px -10px rgba(20,17,15,0.66); }

/* Adaptation thème sombre (vue Projets perso) */
body.is-creatif .to-top__label {
  color: var(--cream);
  background: rgba(26,22,20,0.85);
  border-color: var(--night-line);
}

/* =========================================================
   MODALE CV (porte de téléchargement + option LinkedIn)
   ========================================================= */
button.contact__row { width: 100%; text-align: left; border: none; background: none; cursor: pointer; font: inherit; }
.contact__row--cv .contact__row-value { color: var(--ink); }

.cvm { position: fixed; inset: 0; z-index: 210; display: none; }
.cvm.is-open { display: block; }
.cvm__backdrop {
  position: absolute; inset: 0;
  background: rgba(14,12,11,0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fadeIn 0.35s var(--ease);
}
.cvm__panel {
  position: relative;
  width: min(520px, 94vw);
  max-height: 92vh; overflow-y: auto;
  margin: clamp(2vh, 6vh, 8vh) auto;
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.6);
  animation: popIn 0.45s var(--ease);
}
.cvm__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(20,17,15,0.06); color: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.cvm__close:hover { transform: rotate(90deg); background: rgba(20,17,15,0.12); }
.cvm__eyebrow {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--copper);
}
.cvm__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.1;
  letter-spacing: -0.02em; margin-top: 0.5rem;
}
.cvm__text { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; }
.cvm__form { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.cvm__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.cvm__field { display: grid; gap: 0.4rem; }
.cvm__field span { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.cvm__field input {
  font: inherit; font-size: 0.98rem;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cvm__field input:focus {
  outline: none; border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(176,106,59,0.14);
}
.cvm__submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
.cvm__status { font-size: 0.88rem; color: var(--copper); font-weight: 600; min-height: 1.2em; text-align: center; }
.cvm__or {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.4rem 0; color: var(--ink-soft); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cvm__or::before, .cvm__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cvm__li-label { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.7rem; }
.cvm__li-msg {
  width: 100%; font: inherit; font-size: 0.92rem; line-height: 1.5;
  color: var(--ink-soft);
  padding: 0.8em 0.9em; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; resize: vertical;
}
.cvm__li-actions { margin-top: 0.9rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cvm__li-actions .btn { flex: 1; justify-content: center; padding-inline: 1.1em; }

/* =========================================================
   TAPAS NOCTURNE — univers sombre
   ========================================================= */
.tapas {
  background: var(--night);
  color: var(--cream);
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.tapas::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(176,106,59,0.22), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(176,106,59,0.14), transparent 40%);
  pointer-events: none;
}
.tapas__inner { position: relative; z-index: 2; }
.tapas__head { max-width: 720px; }
.tapas__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 600; color: var(--copper); margin-bottom: 1.2rem;
}
.tapas__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 6rem); line-height: 0.95;
  letter-spacing: -0.02em;
}
.tapas__title span { display: block; color: var(--copper); font-weight: 500; }
.tapas__lead {
  margin-top: 1.8rem; max-width: 52ch;
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c9bdb0; line-height: 1.6;
}
.tapas__gallery {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
.tapas__gallery .ph--tall { grid-row: span 1; }
.tapas__cta { margin-top: 3rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { text-align: left; }
.contact__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.contact__card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.contact__card:hover { transform: translateY(-5px); border-color: var(--copper); box-shadow: 0 24px 48px -28px rgba(176,106,59,0.4); }
.contact__label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--copper); }
.contact__value { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; word-break: break-word; }
.contact__card--cv { opacity: 0.6; pointer-events: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 2.4rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__brand { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.footer__note { color: var(--ink-soft); font-size: 0.9rem; }
.footer__copy { color: var(--ink-faint); font-size: 0.85rem; }

/* =========================================================
   ANIMATIONS REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    background: var(--paper);
    padding: 2rem var(--gutter);
    transform: translateX(105%);
    transition: transform 0.5s var(--ease);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,0.4);
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; }
  .nav__burger { display: flex; z-index: 110; }

  .duo__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; }
  .work__grid { grid-template-columns: 1fr; }
  .work__card--wide { grid-column: span 1; }
  .skills__cols { grid-template-columns: 1fr; gap: 2.4rem; }
  .formation__grid { grid-template-columns: 1fr; }
  .tapas__gallery { grid-template-columns: 1fr 1fr; }
  .contact__cards { grid-template-columns: 1fr; }

  .timeline__item { grid-template-columns: 1fr; gap: 0.6rem; }
  .timeline__when { padding-top: 0; }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .tapas__gallery { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   PORTRAIT (à propos)
   ========================================================= */
.about__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20,17,15,0.4);
  background: var(--paper-soft);
}
.about__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.about__frame:hover .about__img { transform: scale(1.03); }

/* =========================================================
   CARTES RÉALISATIONS (avec photo)
   ========================================================= */
.work__card { cursor: pointer; }
.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-soft);
}
.work__card--wide .work__media { aspect-ratio: 16 / 9; }
.work__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}
.work__card:hover .work__img { transform: scale(1.06); }
.work__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,12,11,0.45), transparent 45%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.work__card:hover .work__media::after { opacity: 1; }
.work__count {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; background: rgba(14,12,11,0.55);
  backdrop-filter: blur(6px);
  padding: 0.35em 0.8em; border-radius: 100px;
}
.work__open {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  font-size: 0.82rem; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.work__card:hover .work__open { opacity: 1; transform: none; }

/* =========================================================
   MODALE ÉVÉNEMENT (pop-up plein écran)
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
}
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(14,12,11,0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fadeIn 0.35s var(--ease);
}
.modal__panel {
  position: relative;
  width: min(1100px, 94vw);
  height: min(92vh, 980px);
  margin: 4vh auto;
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.6);
  animation: popIn 0.45s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.3);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); background: #fff; }
.modal__scroll {
  height: 100%; overflow-y: auto;
  padding: clamp(2rem, 5vw, 3.6rem);
  -webkit-overflow-scrolling: touch;
}
.modal__header { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.modal__tag {
  display: inline-block;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--copper); margin-bottom: 0.9rem;
}
.modal__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1;
  letter-spacing: -0.015em;
}
.modal__desc { margin-top: 1.2rem; }
.modal__desc p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0.8rem; max-width: 65ch; }

.modal__gallery { columns: 2; column-gap: 14px; }
.modal__shot {
  display: block; width: 100%; padding: 0; margin: 0 0 14px;
  border: none; background: none; cursor: zoom-in;
  border-radius: 12px; overflow: hidden;
  break-inside: avoid;
  line-height: 0;
}
.modal__shot img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.modal__shot:hover img { transform: scale(1.04); filter: brightness(0.95); }
.modal__shot--lead { column-span: all; }
.modal__shot--lead img { aspect-ratio: 16 / 9; object-fit: cover; }

/* =========================================================
   VISIONNEUSE (lightbox)
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; place-items: center;
  background: rgba(8,7,6,0.94);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: grid; animation: fadeIn 0.3s var(--ease); }
.lightbox__img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8);
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff;
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close:hover { background: rgba(255,255,255,0.24); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 2rem; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.3s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__nav--prev { left: clamp(12px, 3vw, 32px); }
.lightbox__nav--next { right: clamp(12px, 3vw, 32px); }
.lightbox__counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; letter-spacing: 0.1em;
  background: rgba(255,255,255,0.1); padding: 0.4em 1em; border-radius: 100px;
}

@media (max-width: 700px) {
  .modal__panel {
    width: 100vw; height: 100svh; height: 100vh;
    margin: 0; border-radius: 0;
  }
  .modal__gallery { columns: 1; }
  .lightbox__nav { width: 46px; height: 46px; font-size: 1.6rem; }
}

/* =========================================================
   SWITCH PRO / CRÉATIF (dans le header)
   ========================================================= */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(20,17,15,0.05);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
}
.switch__btn {
  position: relative; z-index: 2;
  border: none; background: none; cursor: pointer;
  font-family: var(--sans);
  font-weight: 600; font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 0.55em 1.3em;
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}
.switch__btn.is-active { color: var(--paper); }
.switch__thumb {
  position: absolute; z-index: 1;
  top: 4px; left: 4px; width: 120px;
  height: calc(100% - 8px);
  background: var(--ink);
  border-radius: 100px;
  box-shadow: 0 6px 16px -8px rgba(20,17,15,0.5);
  transition: left 0.45s var(--ease), width 0.45s var(--ease), background 0.4s var(--ease);
}

/* =========================================================
   VUES (bascule)
   ========================================================= */
.view { display: none; }
.view.is-active { display: block; animation: viewIn 0.55s var(--ease); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   LEDE — bloc d'introduction (identité + profil)
   ========================================================= */
.lede {
  padding-top: clamp(7rem, 13vh, 10.5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
}
.lede::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 75% 12%, rgba(176,106,59,0.12), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(176,106,59,0.08), transparent 42%);
  pointer-events: none;
}
.lede__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}
.lede__eyebrow {
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 600; color: var(--copper);
  margin-bottom: 1.4rem;
}
.lede__name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.92; letter-spacing: -0.03em;
}
.lede__name-accent { font-style: italic; color: var(--copper); font-weight: 400; }
.lede__lead {
  margin-top: 1.8rem; max-width: 42ch;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft); line-height: 1.6;
}
.lede__lead strong { color: var(--ink); font-weight: 600; }
.lede__actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.lede__meta {
  margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--ink-soft);
}

/* ---- Carte profil (portrait à côté du texte + fondu) ---- */
.profile-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 50px 90px -55px rgba(20,17,15,0.45);
}
.profile-card__portrait {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.profile-card__portrait img {
  width: 100%; height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.9s var(--ease);
}
.profile-card:hover .profile-card__portrait img { transform: scale(1.04); }
/* fondu : la photo se fond doucement vers le texte */
.profile-card__portrait::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, transparent 66%, #ffffff 100%);
}
.profile-card__body {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  align-self: center;
}
.profile-card__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.12; letter-spacing: -0.01em;
  margin: 0.6rem 0 1.1rem;
}
.profile-card__text { color: var(--ink-soft); font-size: 1rem; margin-bottom: 0.8rem; }
.profile-card__text strong { color: var(--ink); font-weight: 600; }
.profile-card__facts {
  margin-top: 1.6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.7rem;
}
.profile-card__facts li {
  display: flex; align-items: baseline; gap: 0.9rem;
  font-size: 0.95rem; color: var(--ink-soft);
}
.fact-num {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.4rem; color: var(--copper); min-width: 2.2ch;
}

/* =========================================================
   TEASER "bientôt" (vue créative)
   ========================================================= */
.soon {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex; align-items: center; gap: 1.4rem;
}
.soon__line { flex: 1; height: 1px; background: var(--night-line); }
.soon__text {
  color: #9c8f82; font-style: italic;
  font-family: var(--serif); font-size: 1rem;
  max-width: 40ch;
}

/* =========================================================
   THÈME MODE CRÉATIF (header, contact, footer en sombre)
   ========================================================= */
body.is-creatif { background: var(--night); }

body.is-creatif .nav.is-scrolled {
  background: rgba(14,12,11,0.82);
  box-shadow: 0 1px 0 var(--night-line);
}
body.is-creatif .nav__mono { background: var(--cream); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.6); }
body.is-creatif .nav__mono-m { color: var(--night); }
body.is-creatif .nav__name { color: var(--cream); }
body.is-creatif .switch { background: rgba(255,255,255,0.08); border-color: var(--night-line); }
body.is-creatif .switch__btn { color: #b8aea3; }
body.is-creatif .switch__btn.is-active { color: #fff; }
body.is-creatif .switch__thumb { background: var(--copper); }
body.is-creatif .nav__cta { background: var(--copper); color: #fff !important; }
body.is-creatif .nav__cta:hover { background: var(--copper-deep); }

body.is-creatif .contact { background: var(--night); color: var(--cream); }
body.is-creatif .contact .section__title { color: var(--cream); }
body.is-creatif .contact .section__intro { color: #c9bdb0; }
body.is-creatif .contact__card { background: var(--night-soft); border-color: var(--night-line); }
body.is-creatif .contact__card:hover { border-color: var(--copper); }
body.is-creatif .contact__value { color: var(--cream); }

body.is-creatif .footer { background: var(--night); border-color: var(--night-line); }
body.is-creatif .footer__brand { color: var(--cream); }
body.is-creatif .footer__note { color: #9c8f82; }

/* =========================================================
   RESPONSIVE — bloc d'intro & header
   ========================================================= */
@media (max-width: 900px) {
  .lede { min-height: 0; padding-top: 6.5rem; }
  .lede__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lede__profile { max-width: 520px; }
  .nav__name { display: none; }
}
@media (max-width: 560px) {
  .nav__inner { flex-wrap: wrap; gap: 0.6rem 1rem; padding-block: 0.8rem; }
  .switch { order: 3; width: 100%; }
  .switch__btn { flex: 1; text-align: center; }
  .nav__cta { font-size: 0.85rem; }
  .lede__actions { flex-direction: column; align-items: stretch; }
  .lede__actions .btn { justify-content: center; }
}

/* =========================================================
   TAPAS NOCTURNE — contenu enrichi (vue créative)
   ========================================================= */
.tapas__about { max-width: 780px; margin-top: clamp(2rem, 5vw, 3rem); }
.tapas__about p {
  color: #c9bdb0;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.7; margin-bottom: 1rem;
}
.tapas__about p strong { color: var(--cream); font-weight: 600; }

.tapas__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.45em 0.95em; border-radius: 100px;
  border: 1px solid var(--night-line); color: #c9bdb0;
}
.chip--solid { background: rgba(255,255,255,0.06); color: var(--cream); border-color: transparent; }
.chip--copper { background: rgba(176,106,59,0.16); color: var(--copper); border-color: rgba(176,106,59,0.32); }

/* Galerie masonry (photos cliquables) */
.tapas__gallery {
  display: block;
  columns: 3; column-gap: 14px;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.tapas__shot {
  display: block; width: 100%; padding: 0; margin: 0 0 14px;
  border: none; background: none; cursor: zoom-in;
  border-radius: 12px; overflow: hidden;
  break-inside: avoid; line-height: 0;
  box-shadow: 0 20px 40px -28px rgba(0,0,0,0.7);
}
.tapas__shot img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.tapas__shot:hover img { transform: scale(1.05); filter: brightness(1.08); }
.tapas__shot--lead { column-span: all; }
.tapas__shot--lead img { aspect-ratio: 16 / 9; object-fit: cover; }

/* La brigade */
.tapas__brigade { margin-top: clamp(3rem, 7vw, 5rem); }
.tapas__subtitle {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--cream);
  letter-spacing: -0.01em;
}
.tapas__subnote { color: #9c8f82; margin-top: 0.6rem; max-width: 52ch; }
.brigade__grid {
  margin-top: 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.brigade__card {
  background: var(--night-soft);
  border: 1px solid var(--night-line);
  border-radius: 14px; padding: 1.3rem;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.brigade__card:hover { transform: translateY(-4px); border-color: rgba(176,106,59,0.4); }
.brigade__card--lead {
  grid-column: span 2;
  background: linear-gradient(160deg, rgba(176,106,59,0.20), var(--night-soft));
  border-color: rgba(176,106,59,0.3);
}
.brigade__role {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--copper);
}
.brigade__name {
  font-family: var(--serif); font-weight: 500; font-size: 1.25rem;
  color: var(--cream); margin-top: 0.5rem;
}
.brigade__sub { display: block; color: #9c8f82; font-size: 0.9rem; margin-top: 0.5rem; }

/* Styles + CTA */
.tapas__foot {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.tapas__styles { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (max-width: 900px) {
  .tapas__gallery { columns: 2; }
  .brigade__grid { grid-template-columns: repeat(2, 1fr); }
  .brigade__card--lead { grid-column: span 2; }
}
@media (max-width: 560px) {
  .tapas__gallery { columns: 1; }
  .brigade__grid { grid-template-columns: 1fr; }
  .brigade__card--lead { grid-column: span 1; }
  .tapas__foot { flex-direction: column; align-items: flex-start; }
}

/* Tapas — bouton(s) sous l'histoire */
.tapas__actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   REFONTE BLOC D'INTRO — photo pleine (non croppée) + texte
   ========================================================= */
.lede__grid { grid-template-columns: 1fr minmax(0, 430px); align-items: center; }
.lede__photo { align-self: center; }
.lede__photo img {
  width: 100%; height: auto; display: block;     /* hauteur auto = aucun recadrage */
  border-radius: 18px;
  box-shadow: 0 50px 90px -50px rgba(20,17,15,0.5);
}
.lede__bio {
  margin-top: 1.4rem; max-width: 54ch;
  color: var(--ink-soft); font-size: 1.04rem; line-height: 1.65;
}
.lede__bio strong { color: var(--ink); font-weight: 600; }
.lede__facts {
  margin-top: 1.8rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 2.2rem;
}
.lede__facts li { display: flex; align-items: baseline; gap: 0.55rem; font-size: 0.9rem; color: var(--ink-soft); }
.lede__facts .fact-num { font-size: 1.5rem; }

/* =========================================================
   PARCOURS — descriptifs détaillés (puces, style LinkedIn)
   ========================================================= */
.timeline__list { margin-top: 0.9rem; display: grid; gap: 0.6rem; max-width: 66ch; }
.timeline__list li {
  position: relative; padding-left: 1.4rem;
  color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55;
}
.timeline__list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--copper);
}
.timeline__list strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .lede__photo { max-width: 340px; margin-inline: auto; }
}

/* =========================================================
   PARCOURS — logos d'entreprise + accordéon "Détail des missions"
   ========================================================= */
.timeline__when { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.timeline__logo { max-height: 70px; max-width: 180px; width: auto; height: auto; object-fit: contain; display: block; }
.timeline__date { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--copper); }

.timeline__more { margin-top: 0.4rem; }
.timeline__more > summary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  list-style: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--copper);
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
}
.timeline__more > summary::-webkit-details-marker { display: none; }
.timeline__more > summary::after {
  content: "\203A"; font-size: 1.2em; line-height: 1;
  transform: rotate(90deg); transition: transform 0.35s var(--ease);
}
.timeline__more[open] > summary::after { transform: rotate(270deg); }
.timeline__more > summary:hover { color: var(--copper-deep); }
.timeline__more .timeline__list { margin-top: 0.8rem; }

/* Logo CUPRA : +40% par rapport aux autres */
.timeline__logo[alt="CUPRA"] { max-height: 118px; max-width: 252px; }

/* =========================================================
   PASSE "HYPER PRO" — finitions premium
   ========================================================= */

/* Barre de progression de défilement */
.scrollbar {
  position: fixed; top: 0; left: 0; z-index: 150;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--copper-soft), var(--copper), var(--copper-deep));
  box-shadow: 0 0 12px -2px rgba(176,106,59,0.6);
  transition: width 0.12s linear;
}

/* Badge "Disponible" (hero) */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,174,106,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(79,174,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,174,106,0); }
}
.lede__avail {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--ink); font-weight: 600;
  background: rgba(79,174,106,0.10);
  border: 1px solid rgba(79,174,106,0.28);
  padding: 0.3em 0.75em; border-radius: 100px;
}
.lede__dot, .pcard__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4FAE6A; animation: pulse 2.2s infinite;
}

/* =========================================================
   CONTACT — carte de profil + coordonnées
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.pcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(2rem, 3vw, 2.7rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 30px 70px -45px rgba(20,17,15,0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.5s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.pcard:hover { box-shadow: 0 48px 100px -45px rgba(176,106,59,0.42); }
.pcard__glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 50% -10%, rgba(176,106,59,0.13), transparent 55%);
}
.pcard > * { position: relative; }
.pcard__avatar {
  width: 100px; height: 100px; border-radius: 50%;
  padding: 4px; margin-bottom: 1.1rem;
  background: linear-gradient(140deg, var(--copper), var(--copper-soft));
}
.pcard__avatar img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: center 18%;
  border: 3px solid #fff; display: block;
  filter: brightness(1.28) contrast(1.03) saturate(1.04);
}
.pcard__avail {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: rgba(79,174,106,0.10);
  border: 1px solid rgba(79,174,106,0.25);
  padding: 0.35em 0.85em; border-radius: 100px; margin-bottom: 1rem;
}
.pcard__name { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.pcard__role {
  color: var(--copper); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.5rem;
}
.pcard__bio { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.9rem; max-width: 30ch; }
.pcard__sep { width: 58%; height: 1px; background: var(--line); margin: 1.5rem 0; }
.pcard__links { display: flex; gap: 0.7rem; }
.pcard__icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper-soft); color: var(--ink-soft);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.pcard__icon:hover { transform: translateY(-3px); background: var(--ink); color: var(--paper); }
.pcard__cta { margin-top: 1.5rem; }

[data-magnetic] { transition: transform 0.18s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease), color 0.3s var(--ease); }

.contact__rows { display: flex; flex-direction: column; }
.contact__row {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 1rem;
  padding: 1.5rem 0.4rem; border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.contact__row:last-child { border-bottom: 1px solid var(--line); }
.contact__row:hover { padding-left: 1rem; }
.contact__row-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--copper); }
.contact__row-value { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; color: var(--ink); word-break: break-word; }
.contact__row-arrow { color: var(--ink-soft); font-size: 1.05rem; transition: transform 0.35s var(--ease); }
.contact__row:hover .contact__row-arrow { transform: translate(3px, -3px); }
.contact__row--soon { opacity: 0.5; pointer-events: none; }

/* Thème sombre (vue Projets perso) */
body.is-creatif .pcard { background: var(--night-soft); border-color: var(--night-line); }
body.is-creatif .pcard__avatar img { border-color: var(--night-soft); }
body.is-creatif .pcard__name { color: var(--cream); }
body.is-creatif .pcard__bio { color: #c9bdb0; }
body.is-creatif .pcard__sep { background: var(--night-line); }
body.is-creatif .pcard__icon { background: rgba(255,255,255,0.06); color: #c9bdb0; }
body.is-creatif .pcard__icon:hover { background: var(--copper); color: #fff; }
body.is-creatif .contact__row { border-color: var(--night-line); }
body.is-creatif .contact__row-value { color: var(--cream); }
body.is-creatif .contact__row-arrow { color: #9c8f82; }

@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pcard { max-width: 400px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lede__dot, .pcard__dot { animation: none; }
  .scrollbar { transition: none; }
}

/* =========================================================
   REFRESH PRO (7 juin) — Hero "nom géant + photo nichée"
   + section À propos. Typo d'affichage = Space Grotesk.
   ========================================================= */
.lede {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8rem var(--gutter) 5rem;
  overflow: hidden;
}
.lede::before { display: none; }            /* neutralise l'ancien glow */
.lede__grid { display: contents; }          /* l'ancienne grille n'est plus utilisée */
.lede__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 50% at 50% 40%, rgba(176,106,59,0.14), transparent 70%),
    radial-gradient(40% 40% at 86% 92%, rgba(176,106,59,0.08), transparent 60%);
}
.lede__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03; mix-blend-mode: multiply;
}
.lede__hero { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); text-align: center; }
.lede__kicker {
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600; color: var(--copper);
  margin-bottom: clamp(1.4rem, 4vw, 2.4rem);
}
.lede__name {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(0.6rem, 3vw, 2rem);          /* écart entre Martin et Pacey */
  font-family: var(--serif);
  font-weight: 600; text-transform: uppercase;
  font-size: clamp(3.4rem, 16vw, 13rem);
  line-height: 0.85; letter-spacing: -0.045em;
  color: var(--ink);
}
.lede__name .bt { display: block; position: relative; z-index: 1; will-change: transform; }
.lede__portrait {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(76px, 10vw, 146px);
  aspect-ratio: 3 / 3.7;
  border-radius: 999px; overflow: hidden; z-index: 3;
  box-shadow: 0 30px 60px -22px rgba(20,17,15,0.55);
  border: 3px solid var(--paper);
}
.lede__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: brightness(1.28) contrast(1.03) saturate(1.04); }
.lede__tagline {
  margin: clamp(1.6rem, 4vw, 2.6rem) auto 0;
  max-width: 54ch;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  color: var(--ink-soft); line-height: 1.55;
}
.lede__tagline strong { color: var(--ink); font-weight: 600; }
.lede__scroll {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.lede__scroll-line {
  width: 1.5px; height: 28px;
  background: linear-gradient(var(--copper), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}

/* Blur-in des lettres du nom */
.bt__l {
  display: inline-block;
  opacity: 0; filter: blur(14px); transform: translateY(-22px);
  animation: blurIn 0.7s var(--ease) forwards;
}
@keyframes blurIn { to { opacity: 1; filter: blur(0); transform: none; } }

/* Section À propos (infos déplacées sous le hero) */
.about { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.about__statement {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
  margin-top: 0.4rem;
}
.about__bio { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; }
.about__bio + .about__bio { margin-top: 1.1rem; }
.about__bio strong { color: var(--ink); font-weight: 600; }
.about__facts {
  margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 2.2rem;
}
.about__facts li { display: flex; align-items: baseline; gap: 0.55rem; font-size: 0.9rem; color: var(--ink-soft); }
.about__facts .fact-num { font-size: 1.5rem; }
.about__meta {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem;
  font-size: 0.88rem; color: var(--ink-soft);
}
.about__actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bt__l { animation: none; opacity: 1; filter: none; transform: none; }
}

/* =========================================================
   HERO ÉPINGLÉ — le scroll joue la séparation du nom,
   puis le défilement normal reprend (les mots sont "sortis")
   ========================================================= */
.lede {
  height: 200vh;          /* distance de scroll dédiée à l'animation */
  min-height: 0;
  display: block;
  padding: 0;
  overflow: visible;      /* requis pour que le pin colle au viewport */
}
.lede__pin {
  position: sticky; top: 0;
  height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;       /* masque les mots qui sortent sur les côtés */
  padding: 7rem var(--gutter) 7rem;
}
.lede__name .bt { will-change: transform, opacity; }

/* Accessibilité : si l'utilisateur réduit les animations, pas de scroll-jacking */
@media (prefers-reduced-motion: reduce) {
  .lede { height: auto; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8rem var(--gutter) 5rem; }
  .lede__pin { position: static; height: auto; min-height: 0; padding: 0; overflow: visible; }
}

/* Bouton ghost sur fond sombre (vue Projets perso) */
.btn--ghost-dark { border-color: rgba(243,237,229,0.35); color: var(--cream); }
.btn--ghost-dark:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }

/* =========================================================
   PROJETS PERSO — format "journal" : à la une + annonces
   ========================================================= */
.feature {
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--night-line);
  border-radius: 22px;
  background: var(--night-soft);
  overflow: hidden;
}
.feature__grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.feature__media { position: relative; min-height: 340px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(1.1); }
.feature__badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  background: var(--copper); color: #fff; padding: 0.45em 0.9em; border-radius: 100px;
}
.feature__intro { padding: clamp(1.8rem, 3vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; }
.feature__kicker { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--copper); }
.feature__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--cream); margin-top: 0.5rem; line-height: 1.05; }
.feature__tagline { color: var(--copper); font-weight: 500; margin-top: 0.5rem; font-size: 1.05rem; }
.feature__desc { color: #c9bdb0; margin-top: 1rem; font-size: 1rem; line-height: 1.6; max-width: 42ch; }
.feature__links { margin-top: 1.5rem; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.feature__link {
  color: var(--cream); font-weight: 600; font-size: 0.92rem;
  border-bottom: 1px solid rgba(243,237,229,0.3); padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature__link:hover { color: var(--copper); border-color: var(--copper); }

.feature__more { border-top: 1px solid var(--night-line); }
.feature__more > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1.05rem; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--copper);
  transition: background 0.3s var(--ease);
}
.feature__more > summary::-webkit-details-marker { display: none; }
.feature__more > summary::after { content: "↓"; font-size: 1rem; transition: transform 0.35s var(--ease); }
.feature__more[open] > summary::after { transform: rotate(180deg); }
.feature__more > summary:hover { background: rgba(255,255,255,0.03); }
.feature__expand { padding: clamp(1.6rem, 3vw, 2.6rem); border-top: 1px solid var(--night-line); }
.feature__expand p { color: #c9bdb0; line-height: 1.7; margin-bottom: 1rem; max-width: 72ch; }
.feature__expand p strong { color: var(--cream); font-weight: 600; }
.feature__expand .tapas__chips { margin-top: 0.4rem; }
.feature__expand .tapas__gallery { margin-top: clamp(1.6rem, 4vw, 2.4rem); }

/* Grille des autres projets (annonces) */
.projects-index { margin-top: clamp(3rem, 7vw, 5rem); }
.projects-index__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--cream);
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--night-line); margin-bottom: 1.6rem;
}
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.proj {
  border: 1px solid var(--night-line); border-radius: 16px;
  background: var(--night-soft); padding: 1.5rem;
  display: flex; flex-direction: column; min-height: 190px;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.proj:hover { transform: translateY(-4px); border-color: rgba(176,106,59,0.45); }
.proj__num { font-family: var(--serif); color: var(--copper); font-size: 0.85rem; font-weight: 600; }
.proj__name { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--cream); margin-top: 0.4rem; }
.proj__desc { color: #9c8f82; font-size: 0.9rem; line-height: 1.5; margin-top: 0.6rem; flex: 1; }
.proj__status {
  margin-top: 1.1rem; align-self: flex-start;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  color: var(--copper); border: 1px solid rgba(176,106,59,0.35);
  padding: 0.32em 0.75em; border-radius: 100px;
}

@media (max-width: 820px) {
  .feature__grid { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 10; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .projects-grid { grid-template-columns: 1fr; }
}
