/* =========================================================
   Portfolio — Tom Leclercq
   Reproduction de la maquette Figma « PORTFOLIO » (desktop 1440px)
   ========================================================= */

:root {
  /* Couleurs (variables Figma color/*) */
  --paper: #f4f1e8;
  --ink: #292a25;
  --muted: #66685e;
  --accent: #ae452f;
  --line: #cecabf;
  --sand: #e7dfcd;
  --lilac: #ded9e8;
  --white: #fffdfa;

  /* Typographies */
  --f-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --f-sans: "DM Sans", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-hand: "Caveat", cursive;

  /* Mise en page : 1248px de contenu, 96px de marge à 1440px */
  --container: 1248px;
  --gutter: 96px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1340px) { :root { --gutter: 48px; } }
@media (max-width: 900px)  { :root { --gutter: 24px; } }
@media (max-width: 480px)  { :root { --gutter: 16px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-variation-settings: "opsz" 14;
  font-optical-sizing: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- Styles typographiques ---------- */
.mono  { font-family: var(--f-mono); font-weight: 400; line-height: 1.45; text-transform: uppercase; }
.display { font-family: var(--f-display); font-weight: 400; font-variation-settings: normal; font-optical-sizing: auto; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; line-height: 1.45; }
.hand  { font-family: var(--f-hand); font-weight: 400; line-height: 1.45; color: var(--accent); }
.pre   { white-space: pre; }

.c-accent { color: var(--accent); }
.c-muted  { color: var(--muted); }
.c-sand   { color: var(--sand); }
.c-paper  { color: var(--paper); }

.t10 { font-size: 10px; }
.t11 { font-size: 11px; }
.t12 { font-size: 12px; }

/* Liens « texte → » */
.link-arrow { display: inline-block; position: relative; transition: color .25s var(--ease); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover { color: var(--accent); }

/* Titres de page (84px) */
.page-title {
  font-size: clamp(42px, 5.834vw, 84px);
  line-height: 1.1;
  margin-left: -0.072em;
}

/* ---------- Bouton principal ---------- */
.btn {
  display: inline-flex;
  align-items: flex-start;
  gap: 32px;
  padding: 17px 24px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn__label { font-size: 16px; }
.btn__icon  { font-size: 20px; transition: transform .3s var(--ease); }
.btn:hover { background: var(--accent); }
.btn:hover .btn__icon { transform: translate(3px, -3px); }

/* ---------- Tag technologie ---------- */
.tag {
  display: inline-flex;
  padding: 7px 12px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header { background: var(--paper); position: relative; z-index: 20; }
.header-inner {
  height: 116px;
  display: grid;
  grid-template-columns: 504px auto;
  align-items: start;
  padding-top: 34px;
}
.brand { display: flex; flex-direction: column; }
.brand__name { font-size: 26px; line-height: 1.05; align-self: flex-start; }
.brand__tag { margin-top: 10.7px; font-size: 10px; color: var(--muted); }

.site-nav ul { display: flex; gap: 5px; }
.nav-item {
  display: block;
  padding: 14px 16px;
  border-radius: 30px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav-item:hover { background: var(--sand); }
.nav-item[aria-current="page"] { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 96px;
    padding-top: 28px;
    padding-bottom: 20px;
  }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; border-radius: 30px; padding: 0 14px;
    background: var(--ink);
  }
  .nav-toggle span:not(.sr-only) {
    display: block; height: 1.5px; background: var(--paper);
    transition: transform .3s var(--ease);
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--ease);
  }
  .site-nav > ul { overflow: hidden; flex-direction: column; gap: 2px; }
  .nav-open .site-nav { grid-template-rows: 1fr; }
  .nav-open .site-nav > ul { padding-top: 18px; }
  .nav-item { font-size: 20px; padding: 12px 18px; display: inline-block; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer .container {
  display: grid;
  grid-template-columns: 384px minmax(0, 660px) 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 25px 0 36px;
}
.site-footer .mono { font-size: 11px; color: var(--muted); }
.footer__top { font-size: 15px; line-height: 1.45; justify-self: start; white-space: nowrap; }

@media (max-width: 900px) {
  .site-footer .container { grid-template-columns: 1fr; gap: 10px; padding: 24px 0 32px; }
}

/* =========================================================
   Mascotte « P’tit Bout »
   ========================================================= */
.mascot { position: relative; flex: none; }
.mascot > img { width: 100%; height: 100%; }
.mascot--welcome { width: 300px; height: 320px; }
.mascot--curious { width: 315px; height: 336px; }
.mascot--goodbye { width: 255px; height: 272px; }

.mascot__note {
  position: absolute;
  left: 219px; top: 221.6px;
  width: 23px; height: 9px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.mascot__note span {
  display: block;
  transform: rotate(-8deg);
  font-family: var(--f-hand);
  font-size: 5px;
  line-height: 1.45;
  color: var(--paper);
  white-space: nowrap;
}
.mascot__star { position: absolute; width: 3px; height: 3px; }
.mascot__star img { width: 95.1%; height: 90.45%; margin-left: 2.45%; }

/* Petites animations douces */
@media (prefers-reduced-motion: no-preference) {
  .mascot--welcome > img { transform-origin: 40% 90%; animation: sway 4.5s ease-in-out infinite; }
  .mascot--curious > img { animation: bob 3.6s ease-in-out infinite; }
  .mascot--goodbye > img { transform-origin: 70% 90%; animation: sway 4s ease-in-out infinite reverse; }
  .mascot__star { animation: twinkle 2.4s ease-in-out infinite; }
  .mascot__star:nth-of-type(2n) { animation-delay: .8s; }
  .mascot__star:nth-of-type(3n) { animation-delay: 1.5s; }
}
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* =========================================================
   Accueil
   ========================================================= */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 737fr) minmax(0, 511fr);
}
.home-hero__main { padding-top: 33px; }
.home-hero__kicker { font-size: 12px; color: var(--muted); }

.home-title { margin-top: 29.6px; margin-left: -8px; white-space: nowrap; }
.home-title > span { display: block; }
.home-title__l1 { font-size: clamp(56px, 8.75vw, 126px); line-height: 1.05; }
.home-title__l2 {
  font-family: var(--f-serif); font-style: italic; color: var(--accent);
  font-size: clamp(64px, 10.07vw, 145px); line-height: 1.45;
  margin-top: -0.338em;
}
.home-title__l3 { font-size: clamp(50px, 7.78vw, 112px); line-height: 1.05; margin-top: -0.545em; }

.home-hero__cta { display: flex; align-items: center; gap: 42px; margin-top: 85px; flex-wrap: wrap; }
.home-hero__cta .link-arrow { font-size: 17px; line-height: 1.45; }

.home-hero__aside { padding-top: 6px; }
.home-hero__intro { margin-left: 85px; max-width: 390px; }
.home-hero__hello { margin-top: -56px; font-size: 24px; position: relative; }
.home-hero__lead { margin-top: 10.2px; font-size: 19px; line-height: 1.45; }
.home-hero__meta { margin-top: 8px; font-size: 11px; color: var(--muted); }

.home-work__head {
  display: grid;
  grid-template-columns: minmax(0, 994fr) minmax(0, 254fr);
  align-items: center;
  margin-top: 58px;
}
.home-work__head .mono { font-size: 11px; color: var(--muted); }
.home-work__head .hand { font-size: 23px; white-space: nowrap; }

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 14px;
  padding-bottom: 22.5px;
}
.card { display: block; }
.card__media {
  height: clamp(120px, 11.39vw, 164px);
  margin-left: -4px;
  overflow: hidden;
}
.card:first-child .card__media { margin-left: -16px; }
.card__media img {
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain; object-position: left center;
  transition: transform .5s var(--ease);
}
.card__title { margin-top: 19px; font-size: 23px; line-height: 1.05; white-space: pre; }
.card__arrow { display: inline-block; transition: transform .3s var(--ease); }
.card__tag { margin-top: 16px; font-size: 10px; color: var(--muted); }
.card:hover .card__media img { transform: scale(1.03); }
.card:hover .card__arrow { transform: translateX(5px); }
.card:hover .card__title { color: var(--accent); }

@media (max-width: 1100px) {
  .home-hero__intro { margin-left: 40px; }
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-title { white-space: normal; margin-left: -4px; }
  .home-hero__cta { margin-top: 48px; gap: 24px 32px; }
  .home-hero__aside { order: -1; display: flex; align-items: flex-end; gap: 16px; padding-top: 0; }
  .home-hero__aside .mascot { width: 150px; height: 160px; margin-bottom: -8px; }
  .home-hero__aside .mascot__note, .home-hero__aside .mascot__star { display: none; }
  .home-hero__intro { margin: 0; }
  .home-hero__hello { margin-top: 0; }
  .home-hero__main { padding-top: 24px; }
  .home-work__head { grid-template-columns: 1fr; gap: 6px; margin-top: 72px; }
  .home-cards { grid-template-columns: 1fr; gap: 40px; margin-top: 24px; padding-bottom: 48px; }
  .card__media, .card:first-child .card__media { margin-left: 0; height: auto; }
  .card__media img { width: 100%; height: auto; }
}
@media (max-width: 560px) {
  .home-hero__aside { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   En-tête de page générique (À propos, Outils, Parcours…)
   ========================================================= */
.page-head { padding-top: 30px; }
.page-head__eyebrow { font-size: 12px; color: var(--accent); }
.page-head .page-title { margin-top: 35.6px; }

/* =========================================================
   À propos
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  column-gap: 84px;
  margin-top: 62.2px;
}
.about__portrait img { width: 390px; height: 480px; object-fit: cover; }
.about__caption { margin-top: 22px; margin-left: 22px; font-size: 27px; }
.about__text { padding-top: 7px; }
.about__title { font-size: 35px; line-height: 1.1; max-width: 730px; }
.about__lead { margin-top: 32.5px; font-size: 23px; line-height: 1.45; max-width: 670px; }
.about__body { margin-top: 32px; font-size: 20px; line-height: 1.45; color: var(--muted); max-width: 665px; }
.about__now-title { margin-top: 70px; font-size: 25px; color: var(--accent); }
.about__now { margin-top: 8.75px; font-size: 19px; line-height: 1.45; max-width: 650px; }

.about-links {
  display: grid;
  grid-template-columns: 699px minmax(0, 1fr);
  align-items: start;
  margin-top: 39px;
  padding-top: 38px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}
.about-links__main { font-size: 27px; line-height: 1.1; justify-self: start; }
.about-links__alt { font-size: 21px; line-height: 1.45; padding-top: 5px; justify-self: start; }

@media (max-width: 1100px) {
  .about { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 48px; }
  .about__portrait img { width: 100%; height: auto; aspect-ratio: 390 / 480; }
  .about-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; row-gap: 48px; margin-top: 40px; }
  .about__portrait { max-width: 390px; }
  .about__title { font-size: 30px; }
  .about__lead { font-size: 20px; }
  .about__body { font-size: 18px; }
  .about__now-title { margin-top: 40px; }
  .about-links { grid-template-columns: 1fr; row-gap: 16px; margin-top: 48px; }
}

/* =========================================================
   Projets
   ========================================================= */
.projects-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 764fr) minmax(0, 484fr);
  margin-top: 32.6px;
}
.projects-title { margin-left: -6px; white-space: nowrap; }
.projects-title > span { display: block; }
.projects-title__l1 { font-size: clamp(42px, 6.11vw, 88px); line-height: 1.1; }
.projects-title__l2 {
  font-family: var(--f-serif); font-style: italic; color: var(--accent);
  font-size: clamp(48px, 6.8vw, 98px); line-height: 1.45;
  margin-top: -1.8px; margin-left: 6px;
}
.projects-head__intro { padding-top: 125px; font-size: 20px; line-height: 1.45; color: var(--muted); }

.feature { display: grid; align-items: start; }
.feature--right { grid-template-columns: minmax(0, 740fr) minmax(0, 444fr); column-gap: 64px; }
.feature--left  { grid-template-columns: minmax(0, 490fr) minmax(0, 724fr); column-gap: 34px; }

.feature__media { position: relative; display: block; overflow: hidden; }
.feature__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.feature__media--cover img { object-fit: cover; }
.feature__media:hover img { transform: scale(1.025); }
.bg-white { background: var(--white); }
.bg-sand  { background: var(--sand); }
.bg-lilac { background: var(--lilac); }
.bg-paper { background: var(--paper); }

.feature__media--740 { aspect-ratio: 740 / 425; }
.feature__media--capc { aspect-ratio: 724 / 435; }
.feature__media--qdot { aspect-ratio: 724 / 543; }

.feature__caption { margin-top: 15px; margin-left: 22px; font-size: 25px; }

.feature__text { padding-top: 15px; }
.feature__eyebrow { font-size: 11px; color: var(--accent); }
.feature__title { margin-top: 31px; font-size: clamp(40px, 4.03vw, 58px); line-height: 1.1; margin-left: -2px; }
.feature__tagline { margin-top: 18px; font-size: clamp(24px, 1.95vw, 28px); }
.feature__desc { margin-top: 12px; font-size: 18px; line-height: 1.45; color: var(--muted); max-width: 415px; }
.feature__stack { margin-top: 41px; font-size: 12px; color: var(--muted); }
.feature__link { margin-top: 26.6px; font-size: 21px; line-height: 1.45; }
.feature__desc + .feature__desc { margin-top: 65px; }

.feature--lg .feature__text { padding-top: 35px; }
.feature--lg .feature__title { margin-top: 34px; font-size: clamp(44px, 4.45vw, 64px); margin-left: -4px; }
.feature--lg .feature__tagline { margin-top: 16.6px; font-size: clamp(26px, 2.23vw, 32px); }
.feature--lg .feature__desc { margin-top: 12.2px; max-width: 440px; }
.feature--lg .feature__stack { margin-top: 26.8px; }
.feature--lg .feature__link { margin-top: 32.6px; }
.feature--qdot .feature__text { padding-top: 20px; }
.feature--qdot .feature__desc { margin-top: 16px; }

.feature--mycotrack { margin-top: 23px; }
.feature--capc { margin-top: 84px; }
.feature--tindart { margin-top: 115px; }
.feature--tindart .feature__title { margin-top: 29px; }
.feature--tindart .feature__tagline { margin-top: 16.2px; font-size: clamp(25px, 2.08vw, 30px); }
.feature--tindart .feature__desc { margin-top: 10px; }
.feature--tindart .feature__stack { margin-top: 40.8px; }
.feature--qdot { margin-top: 125px; }

.workshop { margin-top: 69px; padding-bottom: 227px; }
.workshop__eyebrow { font-size: 12px; color: var(--accent); }
.workshop__list { margin-top: 30.6px; border-bottom: 1px solid var(--line); }
.workshop__row {
  display: grid;
  grid-template-columns: 94px minmax(0, 380px) minmax(0, 475px) minmax(0, 224px);
  column-gap: 25px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 11px 0 16px;
}
.workshop__thumb { display: block; width: 94px; height: 68px; overflow: hidden; }
.workshop__thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.workshop__thumb:hover img { transform: scale(1.06); }
.workshop__entry { display: inline-flex; align-items: flex-start; gap: 24px; line-height: 1.45; white-space: nowrap; justify-self: start; }
.workshop__entry .mono { font-size: 12px; text-transform: none; }
.workshop__entry .display { font-size: 28px; line-height: 1.45; }
.workshop__entry .arrow { font-size: 25px; transition: transform .3s var(--ease); }
.workshop__entry:hover { color: var(--accent); }
.workshop__entry:hover .arrow { transform: translateX(5px); }
.workshop__desc { font-size: 16px; line-height: 1.45; color: var(--muted); margin-top: -5px; }
.workshop__ext { font-size: 10px; color: var(--muted); white-space: pre; justify-self: start; margin-top: -6px; transition: color .25s var(--ease); }
.workshop__ext:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .projects-title { white-space: normal; }
  .projects-head__grid { grid-template-columns: 1fr; }
  .projects-head__intro { padding-top: 24px; max-width: 520px; }
  .feature--right { column-gap: 40px; }
  .feature--left { column-gap: 40px; }
  .workshop__row { grid-template-columns: 94px minmax(0, 1fr) minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {
  .feature--right, .feature--left { grid-template-columns: 1fr; row-gap: 8px; }
  .feature--left .feature__media { order: -1; }
  .feature__caption { margin-left: 0; }
  .feature { margin-top: 88px !important; }
  .feature--mycotrack { margin-top: 40px !important; }
  .feature__text, .feature--lg .feature__text, .feature--qdot .feature__text { padding-top: 16px; }
  .feature__title, .feature--lg .feature__title { margin-top: 12px; }
  .feature__stack, .feature--lg .feature__stack { margin-top: 20px; }
  .feature__link, .feature--lg .feature__link { margin-top: 16px; }
  .feature__desc + .feature__desc { margin-top: 20px; }
  .workshop { padding-bottom: 96px; }
  .workshop__row { grid-template-columns: 94px minmax(0, 1fr); row-gap: 4px; }
  .workshop__thumb { grid-row: span 3; }
  .workshop__entry .display { font-size: 24px; }
  .workshop__desc, .workshop__ext { margin-top: 0; }
}

/* =========================================================
   Boîte à outils & Parcours (listes éditoriales)
   ========================================================= */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 824fr) minmax(0, 424fr);
}
.split-head__intro { padding-top: 27px; font-size: 21px; line-height: 1.45; color: var(--muted); }
.split-head .page-title { margin-top: 35.6px; }
.split-head__intro { margin-top: 35.6px; }

.tools { margin-top: 82.2px; }
.tool-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 500px) minmax(0, 1fr);
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 24px 0 37.8px;
}
.tool-row__num { padding-top: 6px; font-size: 12px; color: var(--accent); }
.tool-row__title { font-size: clamp(26px, 2.3vw, 33px); line-height: 1.1; }
.tool-row__main { margin-top: 3px; font-size: 22px; line-height: 1.45; }
.tool-row__sub { margin-top: 6.1px; font-size: 16px; line-height: 1.45; color: var(--muted); }

.tools-foot {
  display: grid;
  grid-template-columns: 604px minmax(0, 1fr);
  align-items: center;
  margin-top: 30px;
  padding-bottom: 30px;
}
.tools-foot .hand { font-size: 27px; }

.timeline { margin-top: 82.2px; }
.time-row {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 22px 0 43.9px;
}
.time-row__label { padding-top: 8px; font-size: 12px; color: var(--accent); }
.time-row__title { font-size: clamp(28px, 2.57vw, 37px); line-height: 1.1; }
.time-row__sub { margin-top: 13.3px; font-size: 18px; line-height: 1.45; }
.time-row__desc { margin-top: 12.9px; font-size: 18px; line-height: 1.45; color: var(--muted); max-width: 850px; }

.timeline-foot {
  display: grid;
  grid-template-columns: 904px minmax(0, 1fr);
  align-items: center;
  margin-top: 25px;
  padding-bottom: 10px;
}
.timeline-foot .link-arrow { font-size: 22px; line-height: 1.45; justify-self: start; }

@media (max-width: 1100px) {
  .tool-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr); }
  .tools-foot { grid-template-columns: auto 1fr; column-gap: 48px; }
  .time-row { grid-template-columns: 240px minmax(0, 1fr); }
  .timeline-foot { grid-template-columns: auto 1fr; column-gap: 48px; }
  .timeline-foot .link-arrow { justify-self: end; }
}
@media (max-width: 900px) {
  .split-head { grid-template-columns: 1fr; }
  .split-head__intro { margin-top: 20px; padding-top: 0; font-size: 19px; }
  .tools, .timeline { margin-top: 48px; }
  .tool-row { grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0 28px; }
  .tool-row__stack { grid-column: 2; margin-top: 12px; }
  .tool-row__main { font-size: 19px; margin-top: 0; }
  .time-row { grid-template-columns: 1fr; padding: 22px 0 32px; }
  .time-row__label { padding: 0 0 10px; }
  .tools-foot, .timeline-foot { grid-template-columns: 1fr; row-gap: 20px; margin-top: 32px; padding-bottom: 56px; }
  .timeline-foot .link-arrow { justify-self: start; }
}

/* =========================================================
   Hors du code
   ========================================================= */
.offcode__intro { margin-top: 104.6px; font-size: 21px; line-height: 1.45; color: var(--muted); max-width: 700px; }
.curio {
  display: grid;
  grid-template-columns: minmax(0, 760fr) minmax(0, 488fr);
  min-height: 405px;
  margin-top: 69.5px;
  background: var(--sand);
  overflow: hidden;
}
.curio__text { padding: 30px 0 40px 40px; }
.curio__title { font-size: clamp(52px, 5.28vw, 76px); }
.curio__heading { margin-top: 25.8px; margin-left: 4px; font-size: 28px; line-height: 1.1; max-width: 520px; }
.curio__body { margin-top: 42.4px; margin-left: 4px; font-size: 18px; line-height: 1.45; color: var(--muted); max-width: 560px; }
.curio__side { padding: 35px 0 0 40px; }
.curio__side .hand { margin-top: -61px; margin-left: 20px; font-size: 27px; position: relative; }

.interests {
  display: grid;
  grid-template-columns: 664px minmax(0, 1fr);
  margin-top: 50px;
}
.interests .mono { font-size: 11px; color: var(--accent); }
.interests h3 { margin-top: 19px; font-size: 28px; line-height: 1.1; }
.offcode__back { display: inline-block; margin-top: 76px; margin-bottom: 51px; font-size: 22px; line-height: 1.45; }

@media (max-width: 1100px) {
  .interests { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .curio__side { padding-left: 0; }
}
@media (max-width: 900px) {
  .offcode__intro { margin-top: 32px; font-size: 19px; }
  .curio { grid-template-columns: 1fr; margin-top: 40px; }
  .curio__text { padding: 28px 24px 8px; }
  .curio__heading, .curio__body { margin-left: 0; }
  .curio__body { margin-top: 24px; }
  .curio__side { padding: 0 24px 24px; display: flex; flex-direction: column; align-items: center; }
  .curio__side .mascot { width: 210px; height: 224px; }
  .curio__side .hand { margin: -36px 0 0; }
  .interests { grid-template-columns: 1fr; row-gap: 32px; margin-top: 48px; }
  .offcode__back { margin-top: 48px; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--ink); color: var(--paper); }
.contact .container { position: relative; padding: 45px 0 28px; }
.contact__eyebrow { font-size: 12px; color: var(--sand); }
.contact__title { margin-top: 53.6px; margin-left: -6px; font-size: clamp(48px, 7.22vw, 104px); line-height: 1.1; }
.contact__sub { margin-top: 4.6px; font-size: clamp(50px, 7.5vw, 108px); color: var(--sand); }
.contact__lead { margin-top: 30.4px; font-size: 24px; line-height: 1.45; max-width: 880px; }
.contact__mail { display: inline-block; margin-top: 53.4px; font-size: clamp(24px, 3.06vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
.contact__rule { margin-top: 31.6px; height: 1px; background: var(--muted); }
.contact__socials { display: flex; margin-top: 44px; }
.contact__socials a { font-size: 21px; line-height: 1.45; }
.contact__socials li:first-child { width: 288px; }
.contact__place { margin-top: 39.5px; font-size: 11px; color: var(--sand); }
.contact .mascot { position: absolute; left: 944px; top: 440px; }
.contact .link-arrow:hover { color: var(--sand); }

@media (max-width: 1340px) {
  .contact .mascot { left: auto; right: 0; }
}
@media (max-width: 900px) {
  .contact .container { padding: 40px 0 48px; }
  .contact__title { margin-top: 32px; }
  .contact__lead { font-size: 20px; }
  .contact__mail { margin-top: 36px; }
  .contact__socials li:first-child { width: auto; margin-right: 40px; }
  .contact .mascot { position: relative; left: auto; right: auto; top: auto; width: 170px; height: 181px; margin: 24px 0 -24px auto; }
}

/* =========================================================
   Études de cas
   ========================================================= */
.case-back { display: inline-block; margin-top: 24px; font-size: 16px; line-height: 1.45; }
.case-eyebrow { margin-top: 44.8px; font-size: 12px; color: var(--accent); }
.case-title { margin-top: 18.6px; margin-left: -8px; font-size: clamp(56px, 7.78vw, 112px); line-height: 1.1; }
.case-tagline { margin-top: 11.8px; font-size: clamp(30px, 3.54vw, 51px); color: var(--accent); }

.case-cover { margin-top: 33px; }
.case-cover__media { position: relative; aspect-ratio: 1248 / 610; overflow: hidden; }
.case-cover__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case-cover figcaption { margin-top: 19px; font-size: 10px; color: var(--muted); }

.case-context {
  display: grid;
  grid-template-columns: 336px minmax(0, 875px);
  align-items: start;
  margin-top: 46.5px;
  min-height: 180px;
}
.case-context .mono { padding-top: 10px; font-size: 11px; color: var(--accent); }
.case-context p.display { font-size: clamp(24px, 2.23vw, 32px); line-height: 1.1; }

.case-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 576px));
  column-gap: 96px;
  align-items: start;
}
.case-chapters--a { min-height: 318px; }
.case-chapters--b { min-height: 270px; margin-top: 50px; }
.chapter { display: flex; flex-direction: column; gap: 22px; line-height: 1.45; }
.chapter .mono { font-size: 12px; }
.chapter h2 { font-size: 32px; line-height: 1.45; }
.chapter p:last-child { font-size: 19px; }

.case-panel {
  min-height: 280px;
  padding: 30px 32px 40px;
  background: var(--ink);
  color: var(--paper);
}
.case-panel .mono { font-size: 11px; color: var(--sand); }
.case-panel__flow {
  display: grid;
  grid-template-columns: 355px 52px 355px 52px minmax(0, 1fr);
  align-items: start;
  margin-top: 41px;
  padding-left: 2px;
}
.case-panel__flow .display { font-size: 27px; line-height: 1.1; }
.case-panel__flow .arrow { font-size: 28px; line-height: 1.45; color: var(--sand); margin-top: -6px; }
.case-panel__body { margin-top: 38.3px; padding-left: 2px; font-size: 18px; line-height: 1.45; max-width: 1150px; }

.case-tag { margin-top: 32px; }

.case-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 576px));
  column-gap: 96px;
}
.case-links > * { font-size: 23px; line-height: 1.45; justify-self: start; }

.case-next {
  display: grid;
  grid-template-columns: 672px minmax(0, 1fr);
  align-items: start;
  margin-top: 66.6px;
  padding-top: 19px;
  padding-bottom: 70.7px;
  border-top: 1px solid var(--line);
}
.case-next .mono { padding-top: 20px; font-size: 11px; color: var(--muted); }
.case-next__link { font-size: clamp(40px, 4.375vw, 63px); line-height: 1.1; justify-self: start; }
.case-next__link .arrow { display: inline-block; transition: transform .3s var(--ease); }
.case-next__link:hover { color: var(--accent); }
.case-next__link:hover .arrow { transform: translateX(8px); }

@media (max-width: 1100px) {
  .case-context { grid-template-columns: 240px minmax(0, 1fr); }
  .case-chapters, .case-links { column-gap: 56px; }
  .case-panel__flow { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); }
  .case-next { grid-template-columns: 1fr auto; }
}
@media (max-width: 900px) {
  .case-eyebrow { margin-top: 32px; }
  .case-context { grid-template-columns: 1fr; row-gap: 12px; margin-top: 40px; min-height: 0; }
  .case-context .mono { padding-top: 0; }
  .case-chapters { grid-template-columns: 1fr; row-gap: 40px; margin-top: 48px; min-height: 0 !important; }
  .case-chapters--a { margin-bottom: 56px; }
  .chapter { gap: 12px; }
  .chapter h2 { font-size: 27px; line-height: 1.2; }
  .chapter p:last-child { font-size: 18px; }
  .case-panel { padding: 28px 24px 32px; }
  .case-panel__flow { grid-template-columns: 1fr; row-gap: 6px; margin-top: 24px; }
  .case-panel__flow .display { font-size: 24px; }
  .case-panel__flow .arrow { transform: rotate(90deg); justify-self: start; margin: 0; }
  .case-panel__body { margin-top: 24px; }
  .case-links { grid-template-columns: 1fr; row-gap: 12px; margin-top: 48px; }
  .case-links > * { font-size: 20px; }
  .case-next { grid-template-columns: 1fr; row-gap: 8px; margin-top: 56px; padding-bottom: 56px; }
}

/* =========================================================
   Apparition au scroll (activée seulement si JS)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* =========================================================
   Footer — liens légaux
   ========================================================= */
.footer__legal { display: grid; gap: 4px; }
.footer__legal a { color: inherit; transition: color .2s; }
.footer__legal a:hover, .footer__legal a[aria-current] { color: var(--accent); }

/* =========================================================
   Pages légales
   ========================================================= */
.legal__date { margin-top: 24px; font-size: 11px; color: var(--muted); }
.legal { max-width: 820px; padding: 56px 0 112px; }
.legal__section { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.legal__section:first-child { border-top: 0; padding-top: 0; }
.legal__title { font-size: clamp(24px, 2.23vw, 32px); line-height: 1.1; margin-bottom: 16px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; }
.legal p + p, .legal p + ul { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal strong { font-weight: inherit; color: var(--ink); }
