/* ==========================================================================
   Portfolio Mattéo Lambert, version 2
   Direction : atelier de nuit. Fond graphite, bleu de travail électrique,
   jaune signalétique réservé aux moments qui comptent (l'aiguille, les actions,
   la reconversion). Bricolage Grotesque pour les titres, Geist pour le texte.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0e17;
  --bg-2: #0e1420;
  --surface: #141b2b;
  --surface-2: #1b2438;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #eef1f8;
  --muted: #9aa5bc;
  --blue: #5b8cff;
  --signal: #ffd21f;
  --ink: #0a0e17;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --section: clamp(4.5rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; max-width: 60ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; color: #fff; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: -5rem; z-index: 200;
  background: var(--signal); color: var(--ink); padding: 0.6rem 1rem;
  border-radius: var(--r-sm); font-family: var(--display); font-weight: 700;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.section-head h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.section-head p { color: var(--muted); margin: 0; max-width: 40ch; }

/* Grille d'ingénierie, utilisée uniquement derrière les en-têtes */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

/* --------------------------------------------------------------------------
   Navigation en capsule
   -------------------------------------------------------------------------- */
.nav-wrap { position: fixed; z-index: 60; top: 0.9rem; left: 0; right: 0; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: min(100% - 1.5rem, 980px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0.5rem 0.45rem 0.6rem;
  background: rgba(14, 20, 32, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; padding-right: 0.5rem;
}
.brand-mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--signal); color: var(--ink);
  font-weight: 800; font-size: 0.85rem; font-stretch: 80%;
}
.nav ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav li a {
  display: block; padding: 0.55rem 0.95rem; border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; color: var(--muted); transition: color 0.15s, background-color 0.15s;
}
.nav li a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav li a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav li a.nav-cv { background: var(--signal); color: var(--ink); font-weight: 700; margin-left: 0.25rem; }
.nav li a.nav-cv:hover { background: #fff; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .js .nav-toggle {
    display: inline-block; cursor: pointer;
    background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; border-radius: 999px;
    padding: 0.6rem 1.1rem; font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  }
  .nav { flex-wrap: wrap; border-radius: 28px; }
  .nav nav { width: 100%; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem 0.25rem; }
  .nav li a { padding: 0.8rem 1rem; font-size: 1.05rem; }
  .nav li a.nav-cv { margin: 0.35rem 0 0; text-align: center; }
  .js .nav:not(.is-open) nav { display: none; }
  .js .nav:not(.is-open) { border-radius: 999px; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent;
  background: var(--signal); color: var(--ink);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: #fff; }
.btn--line { background: transparent; color: #fff; border-color: var(--line-2); }
.btn--line:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.chip {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--display); font-size: 0.875rem; font-weight: 500;
}

/* --------------------------------------------------------------------------
   Accueil : hero et compte-tours
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(7.5rem, 14vw, 10rem); padding-bottom: var(--section); }
.hero-layout {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 3rem var(--gutter); align-items: center;
}
.hero-copy { grid-column: 1 / span 7; }
.status {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; margin-bottom: 1.75rem;
}
.status:hover { border-color: var(--signal); }
.status i {
  width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--signal);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 210, 31, 0.55); }
  70%, 100% { box-shadow: 0 0 0 0.7rem rgba(255, 210, 31, 0); }
}

.hero-name {
  font-size: clamp(4.5rem, 14.5vw, 12.5rem);
  font-weight: 800; font-stretch: 75%;
  line-height: 0.84; letter-spacing: -0.012em; margin-left: -0.04em;
  animation: weight-in 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-name span { display: block; }
@keyframes weight-in {
  from { font-weight: 200; font-stretch: 100%; letter-spacing: 0.01em; }
  to   { font-weight: 800; font-stretch: 75%;  letter-spacing: -0.012em; }
}
.hero-role {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.25;
  margin: 2rem 0 1rem; max-width: 26ch; color: #fff;
}
.hero-copy > p:not(.hero-role) { color: var(--muted); font-size: 1.125rem; }

.gauge { grid-column: 8 / -1; justify-self: end; width: min(100%, 460px); margin: 0; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge .needle {
  transform-origin: 240px 240px;
  transform: rotate(165deg);
  animation: sweep 3s cubic-bezier(0.45, 0, 0.2, 1) 0.2s both;
}
@keyframes sweep {
  0%   { transform: rotate(135deg); }
  46%  { transform: rotate(402deg); }
  58%  { transform: rotate(396deg); }
  100% { transform: rotate(165deg); }
}

@media (max-width: 960px) {
  .hero-copy, .gauge { grid-column: 1 / -1; }
  .gauge { justify-self: center; width: min(100%, 380px); }
}

/* Technologies */
.tech { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.tech li {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 1.1rem 0.6rem 0.8rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: 0.975rem;
}
.tech img { width: 26px; height: 26px; object-fit: contain; }

/* --------------------------------------------------------------------------
   Tuiles (bento)
   -------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.bento > li { display: flex; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }
@media (max-width: 860px) {
  .bento > li { grid-column: 1 / -1; }
}

.tile {
  display: flex; flex-direction: column; width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 0.75rem; text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
a.tile:hover { border-color: var(--line-2); background: var(--surface-2); }
.tile-media {
  position: relative; flex: 1 1 auto; min-height: 240px;
  border-radius: var(--r-md); overflow: hidden; background: var(--bg-2);
}
.tile-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0; transition: transform 0.5s ease;
}
a.tile:hover .tile-media img { transform: scale(1.04); }
.tile-body { padding: 1.4rem 0.9rem 0.9rem; display: grid; gap: 0.6rem; }
.tile-body h3, .tile-body h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.tile-body p { color: var(--muted); margin: 0; font-size: 1rem; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.arrow {
  flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; border: 1px solid var(--line-2); font-size: 1.1rem; line-height: 1;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
a.tile:hover .arrow { background: var(--signal); color: var(--ink); border-color: var(--signal); transform: rotate(-45deg); }

.tile--signal { background: var(--signal); border-color: var(--signal); color: var(--ink); padding: 2rem; justify-content: space-between; gap: 2rem; }
a.tile--signal:hover { background: #fff; border-color: #fff; }
.tile--signal h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-stretch: 85%; display: block; }
.tile--signal p { color: rgba(10, 14, 23, 0.78); font-size: 1.1rem; margin-top: 1rem; }
.tile--signal .arrow { border-color: var(--ink); width: 3.25rem; height: 3.25rem; font-size: 1.4rem; }
a.tile--signal:hover .arrow { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile--signal .row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.tile--signal .row span { font-family: var(--display); font-weight: 700; }

/* --------------------------------------------------------------------------
   En-tête de page intérieure
   -------------------------------------------------------------------------- */
.page-head { padding-top: clamp(8rem, 15vw, 11rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.crumb { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.5rem; padding: 0; list-style: none; font-family: var(--display); font-size: 0.95rem; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.5; }
.page-title {
  font-size: clamp(4rem, 13vw, 11rem);
  font-weight: 800; font-stretch: 75%; line-height: 0.86;
  letter-spacing: -0.012em; margin-left: -0.03em;
}
.page-lead { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; color: var(--muted); margin: 1.75rem 0 0; max-width: 46ch; }
.page-lead strong { color: #fff; }

.skills { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2.25rem; }
.skills > span { font-family: var(--display); font-weight: 500; color: var(--muted); }
.skills ol { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.skills li {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
}
.skills li.on { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* --------------------------------------------------------------------------
   Étapes d'un projet
   -------------------------------------------------------------------------- */
.progress {
  position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px;
  background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; display: none;
}
@supports (animation-timeline: scroll()) {
  .progress { display: block; animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

.step {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter);
  padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); align-items: start;
}
.step-media { grid-column: 1 / span 7; grid-row: 1; }
.step-text { grid-column: 9 / span 4; grid-row: 1; position: sticky; top: 6.5rem; }
.step:nth-child(even) .step-media { grid-column: 6 / span 7; }
.step:nth-child(even) .step-text { grid-column: 1 / span 4; }
.step-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }
.step-text p { color: var(--muted); }
.step-text ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.step-text li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.step-text li::marker { color: var(--signal); }
.step-text .badge {
  display: inline-block; margin-top: 0.5rem; max-width: none; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--signal); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 0.875rem;
}
@media (max-width: 900px) {
  .step-media, .step:nth-child(even) .step-media { grid-column: 1 / -1; grid-row: 2; }
  .step-text, .step:nth-child(even) .step-text { grid-column: 1 / -1; grid-row: 1; position: static; }
}

.frame {
  margin: 0; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line-2); overflow: hidden;
}
.frame-bar { display: flex; gap: 0.4rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.frame-body { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; padding: 0.9rem; }
.frame-body .zoom { max-width: 100%; }
.frame-body img { width: auto; max-width: 100%; max-height: 30rem; border-radius: var(--r-sm); background: #fff; }
.frame-body .zoom:only-child { width: 100%; }
.frame-body .zoom:only-child img { width: 100%; object-fit: contain; }
.zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.zoom:hover img { outline: 2px solid var(--blue); outline-offset: 0; }

/* Navigation entre projets */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: var(--section); }
.pager a {
  display: block; padding: 1.75rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -0.02em;
  transition: border-color 0.2s, background-color 0.2s;
}
.pager a:hover { border-color: var(--signal); background: var(--surface-2); }
.pager a:last-child { text-align: right; }
.pager small { display: block; font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 0.4rem; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; } }

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem var(--gutter); align-items: center; }
.about-photo { grid-column: 1 / span 4; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.about-text { grid-column: 6 / span 7; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.about-text p { font-size: 1.2rem; color: var(--muted); }
@media (max-width: 860px) {
  .about-photo { grid-column: 1 / span 8; }
  .about-text { grid-column: 1 / -1; }
}

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(9rem, 17vw, 15rem); gap: 1rem;
}
.gallery .zoom { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; background: none; transition: transform 0.5s ease; }
.gallery .zoom:hover img { transform: scale(1.04); outline: 0; }
.gallery .g-tall { grid-row: span 2; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 16rem; }
  .gallery .g-tall { grid-row: span 1; }
}

.socials { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1.3rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 600; text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.socials a:hover { background: #fff; color: var(--ink); }
.socials img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.socials a:hover img { filter: brightness(0); }

/* --------------------------------------------------------------------------
   Reconversion
   -------------------------------------------------------------------------- */
.reconv-hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--gutter); align-items: start; }
.reconv-hero .copy { grid-column: 1 / span 7; }
.reconv-hero .page-title { font-size: clamp(3.5rem, 10vw, 8.5rem); }
.reconv-photos { grid-column: 8 / -1; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 0; align-items: start; }
.reconv-photos img { width: 100%; aspect-ratio: 4 / 6; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.reconv-photos img:last-child { margin-top: 3.5rem; }
@media (max-width: 960px) {
  .reconv-hero .copy, .reconv-photos { grid-column: 1 / -1; }
  .reconv-photos { max-width: 30rem; }
}

.facts { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 2.25rem 0 0; padding: 0; }
.facts li { padding: 0.9rem 1.25rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.facts span { display: block; font-size: 0.875rem; color: var(--muted); }
.facts b { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.5rem var(--gutter);
  padding: 0 0 3rem 3rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 0.4rem; width: 18px; height: 18px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--blue);
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 11px; top: 1.7rem; bottom: -0.3rem; width: 2px;
  background: linear-gradient(var(--blue), var(--line-2));
}
.timeline li.is-goal::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px rgba(255, 210, 31, 0.2); }
.timeline .when { grid-column: 1 / span 3; font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding-top: 0.1rem; }
.timeline .when small { display: block; font-weight: 500; font-size: 0.95rem; color: var(--signal); }
.timeline .what { grid-column: 4 / -1; }
.timeline h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.75rem; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .timeline .when, .timeline .what { grid-column: 1 / -1; } }

.offer { padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); width: 100%; }
.offer h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 0.75rem; }
.offer p { color: var(--muted); margin: 0; }

.aide {
  background: var(--signal); color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(2rem, 6vw, 5rem);
}
.aide h2 { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 800; font-stretch: 80%; letter-spacing: -0.012em; line-height: 0.95; max-width: 13ch; }
.aide p { font-size: 1.2rem; margin-top: 1.5rem; color: rgba(10, 14, 23, 0.82); }
.aide strong { color: var(--ink); }

.contact-mail {
  display: inline-block; font-family: var(--display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(1.15rem, 5.4vw, 5rem); letter-spacing: -0.012em; line-height: 1.1;
  text-decoration: none; border-bottom: 3px solid var(--signal); overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--signal); }
.contact-badge { margin-top: 2rem; }
.contact-badge img { display: inline-block; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.cta { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: var(--section); }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 1.5rem; max-width: 18ch; }
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-family: var(--display); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer p { margin: 0; max-width: none; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Visionneuse
   -------------------------------------------------------------------------- */
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.viewer::backdrop { background: rgba(5, 8, 14, 0.94); }
.viewer-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 4rem 1rem 1rem; cursor: zoom-out; }
.viewer img { max-width: 100%; max-height: calc(100vh - 5.5rem); width: auto; height: auto; background: #fff; border-radius: var(--r-sm); }
.viewer-close {
  position: fixed; top: 0.9rem; right: 0.9rem; background: var(--signal); color: var(--ink); border: 0;
  border-radius: 999px; padding: 0.65rem 1.25rem; font-family: var(--display); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.viewer-close:focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-name, .gauge .needle, .status i, .progress { animation: none !important; }
  * { transition: none !important; scroll-behavior: auto !important; }
}
