@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;700;900&display=swap');

:root {
  --bg: #141313;
  --fg: #eeeae2;
  --muted: #9a9690;
  --line: #343130;
  --accent: #00e5ff;
  --warm: #c9c2b8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.025),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.018),
      transparent 40%
    );
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* =========================
   GRAIN
   ========================= */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 19;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain 0.25s steps(2) infinite;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(2%, -1%);
  }

  50% {
    transform: translate(-1%, 2%);
  }

  75% {
    transform: translate(1%, 1%);
  }

  100% {
    transform: translate(-2%, -1%);
  }
}

/* =========================
   NAVIGATION
   ========================= */

.nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(var(--bg), transparent);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* Monogramme du menu (identique sur toutes les pages) */

.brand img {
  display: block;
  width: 42px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  font: 11px "DM Mono", monospace;
}

.nav nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font: 11px "DM Mono", monospace;
}

.nav button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

/* =========================
   CUSTOM CURSOR
========================= */

@media (hover: hover) and (pointer: fine) {

  body {
    cursor: none;
  }

  .cursor,
  .cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    left: 0;
    top: 0;
  }

  /* Petit point précis */

  .cursor-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);

    transform: translate3d(-50%, -50%, 0);

    opacity: 1;

    transition:
      width 0.2s ease,
      height 0.2s ease,
      opacity 0.2s ease;
  }


  /* Cercle principal */

  .cursor {
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--accent);
    border-radius: 50%;

    background: transparent;
    color: #111;

    font: 500 11px "DM Mono", monospace;
    letter-spacing: 0.02em;

    transform: translate3d(-50%, -50%, 0) scale(0.8);

    opacity: 0;

    transition:
      width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      border-radius 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      background 0.3s ease,
      border-color 0.3s ease,
      color 0.3s ease,
      transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.2s ease;
  }


  .cursor span {
    opacity: 0;

    white-space: nowrap;

    transform: translateY(1px);

    transition:
      opacity 0.2s ease;
  }


  /* Quand on est sur un élément interactif */

  .cursor.active {
    opacity: 1;

    transform:
      translate3d(-50%, -50%, 0)
      scale(1);
  }

  .cursor.active span {
    opacity: 1;
  }


  /* OPEN */

  .cursor.active:not(.drag) {
    width: 72px;
    height: 72px;

    background: var(--accent);
    border-color: var(--accent);

    color: #111;
  }


  /* DRAG */

  .cursor.drag {
    width: 94px;
    height: 46px;

    border-radius: 999px;

    background: var(--fg);
    border-color: var(--fg);

    color: var(--bg);
  }

  .cursor.drag span::after {
    content: "  ↔";
  }


  /* On cache le point quand le gros curseur apparaît */

  .cursor-dot.hidden {
    opacity: 0;
  }


  /* Petit effet quand on entre sur un élément */

  .cursor.active + .cursor-dot {
    width: 0;
    height: 0;
  }

}


/* =========================
   CURSOR — MOBILE
========================= */

@media (hover: none), (pointer: coarse) {

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }

}

/* =========================
   HERO
   ========================= */

.hero {
  min-height: 100svh;
  padding: 130px 4vw 35px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  will-change: transform;
}

.eyebrow {
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.04em;
  margin: 0 0 28px;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(90px, 18vw, 280px);
  line-height: 0.72;
  letter-spacing: -0.105em;
  font-weight: 900;
  margin: 0;
  isolation: isolate;
}

.hero h1 span {
  display: block;
  position: relative;
  transition:
    color 0.45s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero h1 .shift {
  margin-left: 10vw;
}

.hero h1 span:first-child {
  transition-delay: 0.02s;
}

.hero h1 span:last-child {
  transition-delay: 0.06s;
}

.hero h1:hover span:first-child {
  transform: translateX(-0.8vw);
}

.hero h1:hover .shift {
  transform: translateX(0.8vw);
}

.hero h1:hover span {
  color: #f5f2ec;
}

.hero-side {
  position: absolute;
  bottom: 34px;
  left: 4vw;
  right: 4vw;
  display: flex;
  justify-content: space-between;
  font: 11px "DM Mono", monospace;
  color: var(--muted);
}

.hero-index {
  position: absolute;
  right: 4vw;
  top: 50%;
  font: 11px "DM Mono", monospace;
  color: var(--muted);
}

/* =========================
   WORK
   ========================= */

.work {
  padding: 12vw 4vw 9vw;
}

.section-intro {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 10vw;
  align-items: end;
}

.kicker {
  font: 11px "DM Mono", monospace;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.section-intro h2 {
  font-size: clamp(80px, 14vw, 210px);
  line-height: 0.73;
  letter-spacing: -0.1em;
  margin: 30px 0 0;
}

.section-intro h2 i {
  font-weight: 400;
  font-family: Georgia, serif;
  letter-spacing: -0.08em;
}

.section-intro > p {
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 280px;
  margin: 0 0 5px;
}

.marquee {
  margin: 8vw -4vw 9vw;
  overflow: hidden;
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.marquee div {
  padding: 15px 0;
  flex: none;
  animation: marquee 18s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* =========================
   PROJECTS
   ========================= */

.project {
  margin-bottom: 12vw;
}

.image-wrap {
  overflow: hidden;
  background: #0e0e0e;
  position: relative;
  transform: translateZ(0);
}

.image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(0, 229, 255, 0.1),
      transparent 35%,
      transparent 70%,
      rgba(255, 255, 255, 0.06)
    );
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.001);
  will-change: transform;
  filter: saturate(0.92);
  transition:
    transform 1.1s cubic-bezier(0.16, 0.76, 0.18, 1),
    filter 0.7s ease;
}

.project a:hover .image-wrap::before {
  opacity: 1;
}

.project a:hover .image-wrap img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.02);
}

.project-hero {
  width: 91%;
  margin-left: auto;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  font: 11px "DM Mono", monospace;
}

.project-meta > div:first-child {
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.project-meta h3 {
  font:
    900 clamp(28px, 5vw, 72px) / 0.85 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.07em;
  margin: 0;
  transition:
    letter-spacing 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.5s ease,
    color 0.3s ease;
}

.project a:hover .project-meta h3 {
  letter-spacing: -0.045em;
  transform: translateX(7px);
}

.project-meta .number {
  color: var(--accent);
  transition: transform 0.4s ease;
}

.project a:hover .project-meta .number {
  transform: translateX(4px);
}

.project-meta > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: right;
  color: var(--muted);
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: start;
}

.project-small {
  width: 100%;
}

.project-small.lower {
  margin-top: 13vw;
}

.project-small .project-meta h3 {
  font-size: clamp(24px, 3.5vw, 48px);
}

.ticker-title {
  font-size: clamp(50px, 10vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  font-weight: 900;
  margin: 8vw 0 4vw;
  white-space: nowrap;
  transform: translateX(-4vw);
}

.auto-carousel {
  overflow: hidden;
  margin: 0 -4vw;
  padding: 0 0 15px;
  cursor: none;
  touch-action: pan-y;
  user-select: none;
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.carousel-card {
  width: 34vw;
  max-width: 520px;
  min-width: 300px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-card:hover {
  transform: translateY(-7px);
}

.carousel-card img {
  display: block;
  width: 100%;
  height: 28vw;
  max-height: 420px;
  min-height: 250px;
  object-fit: cover;
  filter: grayscale(0.15);
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.6s ease;
}

.carousel-card:hover img {
  transform: scale(0.965);
  filter: grayscale(0) saturate(1.08);
}

.carousel-card span {
  display: block;
  margin-top: 10px;
  font: 11px "DM Mono", monospace;
  color: var(--muted);
  transition:
    color 0.3s ease,
    transform 0.4s ease;
}

.carousel-card:hover span {
  color: var(--fg);
  transform: translateX(4px);
}

@keyframes carousel {
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.all-work {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 9vw;
  font: 700 12px "DM Mono", monospace;
}

.all-work:hover {
  color: var(--accent);
}

/* =========================
   ABOUT
   ========================= */

.about {
  padding: 12vw 4vw 14vw;
  border-top: 1px solid var(--line);
}

.about-top {
  display: flex;
  justify-content: space-between;
}

.about-stamp img {
  display: block;
  width: 55px;
  height: 55px;
  object-fit: contain;
  opacity: 1;
}

.about h2 {
  font-size: clamp(75px, 15vw, 220px);
  line-height: 0.72;
  letter-spacing: -0.1em;
  margin: 10vw 0 9vw;
  will-change: transform;
}

.about h2 span {
  font-family: Georgia, serif;
  font-weight: 400;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 12vw;
}

.about-grid > p {
  font-size: clamp(28px, 4.5vw, 65px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0;
}

.about-grid > div {
  font: 11px/1.7 "DM Mono", monospace;
  color: var(--muted);
}

.about-grid a {
  display: block;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  margin-top: 25px;
}

.about-grid a:hover {
  color: var(--accent);
}

/* =========================
   FOOTER
   ========================= */

footer {
  padding: 6vw 4vw 25px;
  background: #ebe7df;
  color: #141313;
}

.footer-cta {
  font-size: clamp(75px, 15vw, 220px);
  line-height: 0.72;
  letter-spacing: -0.105em;
  font-weight: 900;
  will-change: transform;
}

.footer-cta i {
  font-family: Georgia, serif;
  font-weight: 400;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12vw;
  padding-top: 18px;
  border-top: 1px solid #aaa;
  font: 11px "DM Mono", monospace;
}

/* =========================
   MAGNETIC ELEMENTS
   ========================= */

.magnetic {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.25s ease;
}

/* =========================
   SCROLL REVEALS
   ========================= */

.reveal {
  opacity: 0;
  transform: translate3d(0, 38px, 0);
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.reveal-left {
  transform: translate3d(-42px, 0, 0);
}

.reveal.reveal-right {
  transform: translate3d(42px, 0, 0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* =========================
   EDITORIAL HEADINGS
   ========================= */

.section-intro h2,
.about h2,
.ticker-title,
.footer-cta {
  will-change: transform;
}

.section-intro h2 i,
.about h2 span,
.footer-cta i {
  display: inline-block;
  transition:
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.35s ease;
}

.section-intro h2:hover i,
.about h2:hover span,
.footer-cta:hover i {
  transform: translateX(1.5vw);
  color: var(--accent);
}

/* =========================
   TOUCH DEVICES
   ========================= */

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  .hero h1:hover span {
    transform: none;
  }

  .project a:hover .image-wrap img {
    transform: none;
    filter: saturate(0.92);
  }

  .project a:hover .project-meta h3 {
    letter-spacing: -0.07em;
    transform: none;
  }

  .carousel-card:hover {
    transform: none;
  }

  .carousel-card:hover img {
    transform: none;
    filter: grayscale(0.15);
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {
  .cursor,
  .cursor-dot {
    display: none;
  }

  .nav {
    padding: 18px;
  }

  .nav nav {
    gap: 12px;
  }

  .hero {
    padding: 110px 18px 30px;
    min-height: 92svh;
  }

  .eyebrow {
    font-size: 11px;
    max-width: 260px;
    line-height: 1.5;
  }

  .hero h1 {
    font-size: 23vw;
  }

  .hero h1 .shift {
    margin-left: 0;
  }

  .hero-side {
    left: 18px;
    right: 18px;
    bottom: 24px;
    font-size: 11px;
  }

  .hero-index {
    display: none;
  }

  .work,
  .about {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-intro h2 {
    font-size: 21vw;
    margin-top: 25px;
  }

  .section-intro > p {
    font-size: 12px;
  }

  .marquee {
    margin-left: -18px;
    margin-right: -18px;
    margin-top: 25vw;
  }

  .project-hero {
    width: 100%;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 20vw;
  }

  .project-small.lower {
    margin-top: 0;
  }

  .project-meta {
    gap: 15px;
  }

  .project-meta h3 {
    font-size: 8vw;
  }

  .project-meta > div:last-child {
    font-size: 11px;
  }

  .ticker-title {
    font-size: 19vw;
    margin-top: 24vw;
  }

  .auto-carousel {
    margin-right: -18px;
    margin-left: -18px;
    padding-left: 18px;
  }

  .carousel-card {
    width: 74vw;
    min-width: 74vw;
  }

  .carousel-card img {
    height: 62vw;
  }

  .all-work {
    margin-top: 20vw;
  }

  .about h2 {
    font-size: 21vw;
    margin: 25vw 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-grid > p {
    font-size: 10vw;
  }

  .footer-cta {
    font-size: 21vw;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin-top: 30vw;
  }

  .reveal,
  .reveal.reveal-left,
  .reveal.reveal-right {
    transform: translate3d(0, 24px, 0);
  }

  .project a:hover .image-wrap::before {
    opacity: 0;
  }

  .section-intro h2:hover i,
  .about h2:hover span,
  .footer-cta:hover i {
    transform: none;
    color: inherit;
  }

  .carousel-card:hover {
    transform: none;
  }

  .carousel-card:hover img {
    transform: none;
    filter: grayscale(0.15);
  }
}

/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor,
  .cursor-dot {
    display: none;
  }
}


@media (max-width: 700px) {

  .nav {
    height: 72px;
    padding: 0 20px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 11px;
  }

}
/* =========================================================
   MOBILE — HERO
   ========================================================= */

   @media (max-width: 700px) {

    .hero {
      min-height: 100svh;
      padding: 110px 20px 50px;
      display: flex;
      align-items: flex-end;
    }
  
    .hero-content {
      width: 100%;
    }
  
    .hero-title {
      font-size: clamp(52px, 15vw, 82px);
      line-height: 0.88;
      letter-spacing: -0.055em;
      max-width: 100%;
    }
  
    .hero-subtitle {
      margin-top: 24px;
      max-width: 290px;
      font-size: 11px;
      line-height: 1.5;
    }
  
    .hero-meta {
      margin-top: 35px;
      font-size: 11px;
    }
  
  }
  /* =========================================================
   MOBILE — WORK / PROJECTS
   ========================================================= */

@media (max-width: 700px) {

  .work {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .work-header {
    margin-bottom: 45px;
  }

  .work-header h2 {
    font-size: clamp(48px, 14vw, 72px);
    line-height: 0.9;
    letter-spacing: -0.05em;
  }

  .work-header p {
    margin-top: 18px;
    max-width: 280px;
    font-size: 11px;
    line-height: 1.5;
  }


  /* ---------- GRILLE ---------- */

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }


  /* ---------- CARTE ---------- */

  .project-card {
    width: 100%;
  }

  .project-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* ---------- INFOS PROJET ---------- */

  .project-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 14px;
  }

  .project-card-title {
    font-size: 16px;
    line-height: 1.1;
  }

  .project-card-meta {
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
  }

}
/* =========================================================
   MOBILE — PROJECT CARDS / TOUCH
   ========================================================= */

   @media (max-width: 700px) {

    /* Désactive l'effet de tilt sur mobile */
    .project-card {
      transform: none !important;
      transition: none;
    }
  
    /* Les images ne doivent pas zoomer au hover */
    .project-card:hover {
      transform: none !important;
    }
  
    .project-card:hover img {
      transform: none;
    }
  
    /* Évite les comportements de sélection gênants */
    .project-card,
    .project-card img {
      -webkit-tap-highlight-color: transparent;
    }
  
    .project-card img {
      transition: transform 0.4s ease;
    }
  
    /* Petit feedback visuel au toucher */
    .project-card:active img {
      transform: scale(0.985);
    }
  
    /* Les liens restent faciles à toucher */
    .project-card a {
      display: block;
      min-height: 44px;
    }
  
  }
  /* =========================================================
   MOBILE — CAROUSEL
   ========================================================= */

@media (max-width: 700px) {

  .carousel-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .carousel {
    width: 100%;
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0 20px 20px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    /* Cache la scrollbar */
    scrollbar-width: none;
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }


  /* ---------- CARTES ---------- */

  .carousel-item {
    flex: 0 0 82vw;

    scroll-snap-align: start;

    min-width: 0;
  }


  /* ---------- IMAGES ---------- */

  .carousel-item img {
    width: 100%;
    height: auto;
    display: block;

    user-select: none;
    -webkit-user-drag: none;
  }


  /* ---------- PAS DE HOVER SUR MOBILE ---------- */

  .carousel-item:hover {
    transform: none !important;
  }

  .carousel-item:hover img {
    transform: none;
  }


  /* ---------- INDICATION SWIPE ---------- */

  .carousel-hint {
    margin-top: 18px;
    padding: 0 20px;

    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

}

@media (max-width: 700px) {

  .ticker-title {
    width: 100%;
    font-size: 13vw;
    line-height: 0.82;
    letter-spacing: -0.06em;

    white-space: normal;
    overflow-wrap: break-word;

    transform: none;

    margin: 90px 0 60px;
  }

}
/* =========================================================
   06 — ABOUT / MOBILE
   ========================================================= */

   @media (max-width: 700px) {

    .about {
      padding: 90px 20px 100px;
    }
  
    /* Ligne 03 — ABOUT + tampon LT */
    .about-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 55px;
    }
  
    .about-top .kicker {
      font-size: 11px;
    }
  
    .about-stamp {
      font-size: 14px;
      line-height: 1.1;
      text-align: center;
    }
  
    /* Grand titre */
    .about h2 {
      margin: 0;
      font-size: clamp(52px, 16vw, 72px);
      line-height: 0.84;
      letter-spacing: -0.065em;
    }
  
    .about h2 span {
      display: inline-block;
    }
  
    /* Texte + infos */
    .about-grid {
      display: flex;
      flex-direction: column;
      gap: 45px;
      margin-top: 55px;
    }
  
    .about-grid > p {
      max-width: 100%;
      margin: 0;
      font-size: 15px;
      line-height: 1.5;
    }
  
    .about-grid > div {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
  
    .about-grid > div p {
      margin: 0;
      font-size: 11px;
      line-height: 1.4;
      letter-spacing: 0.02em;
    }
  
    .about-grid > div a {
      font-size: 11px;
      margin-top: 8px;
    }
  
  }
  /* =========================================================
   07 — FOOTER / MOBILE
   ========================================================= */

@media (max-width: 700px) {

  footer {
    padding: 80px 20px 25px;
  }

  /* Grand appel à l'action */
  .footer-cta {
    font-size: clamp(52px, 16vw, 76px);
    line-height: 0.84;
    letter-spacing: -0.065em;
    margin: 0;
  }

  /* Partie basse */
  .footer-bottom {
    margin-top: 90px;
    padding-top: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    font-size: 11px;
  }

  .footer-bottom span,
  .footer-bottom a {
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-bottom a {
    margin-top: 8px;
  }

}
  /* =========================================================
   MOBILE — ACCENT TURQUOISE
   ========================================================= */

@media (max-width: 700px) {

  /* Petits repères */
  .kicker::before,
  .eyebrow::before {
    content: "·";
    color: var(--accent);
    margin-right: 7px;
  }

  /* Liens : petit accent permanent */
  .about-grid a,
  .all-work {
    color: var(--accent);
  }

  /* Numéro du hero */
  .hero-index {
    color: var(--accent);
  }

  /* Tampon ABOUT */
  .about-stamp {
    color: var(--accent);
  }

  /* Petit mouvement discret sur le point */
  .kicker::before,
  .eyebrow::before {
    display: inline-block;
    animation: mobileAccentPulse 2s ease-in-out infinite;
  }

  @keyframes mobileAccentPulse {
    0%,
    100% {
      opacity: 0.5;
      transform: scale(0.8);
    }

    50% {
      opacity: 1;
      transform: scale(1.25);
    }
  }

}


/* =========================================================
   NAV — SOUS-MENU WORK (injecté par script.js)
   Par projet (liste numérotée) ou par catégorie, avec aperçu image.
   ========================================================= */

.nav-work {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-work-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
}

/* Zone de clic/tap plus large que le petit signe */
.nav-work-toggle::before {
  content: "";
  position: absolute;
  inset: -12px -10px;
}

/* Petit « + » qui devient « − » à l'ouverture */
.nav-work-toggle span,
.nav-work-toggle span::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.nav-work-toggle span::after {
  content: "";
  transform: translate(-50%, -50%) rotate(90deg);
}

.nav-work.is-open .nav-work-toggle span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.nav-work.is-open > a,
.nav-work.is-open .nav-work-toggle {
  color: var(--accent);
}

.work-menu {
  position: absolute;
  top: calc(100% - 8px);
  right: 32px;
  width: min(820px, calc(100vw - 64px));
  padding: 22px 24px 24px;
  background: rgba(20, 19, 19, .97);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 11px "DM Mono", monospace;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity .3s ease,
    transform .5s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear .5s;
}

/* Zone invisible qui relie WORK au panneau (le survol ne se coupe pas) */
.work-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 30px;
}

.nav-work.is-open .work-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity .3s ease,
    transform .5s cubic-bezier(.22, 1, .36, 1),
    visibility 0s;
}

.wm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.wm-heading {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.nav .wm-tabs button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  letter-spacing: .06em;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.nav .wm-tabs button:hover {
  color: var(--fg);
  border-color: var(--muted);
}

.nav .wm-tabs button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.wm-all {
  color: var(--muted);
  letter-spacing: .06em;
  transition: color .25s ease;
}

.wm-all:hover {
  color: var(--accent);
}

.wm-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  padding-top: 8px;
}

.wm-view {
  display: none;
}

.wm-view.is-active {
  display: block;
  animation: wm-in .45s cubic-bezier(.22, 1, .36, 1);
}

@keyframes wm-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.wm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wm-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  color: var(--fg);
  transition: color .25s ease, padding .35s cubic-bezier(.22, 1, .36, 1);
}

.wm-num,
.wm-cat {
  color: var(--muted);
  font-size: 11px;
}

.wm-title {
  font: 600 15px/1.15 "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.wm-list a:hover,
.wm-list a:focus-visible {
  color: var(--accent);
  padding-left: 8px;
}

.wm-list a[aria-current="page"] .wm-title::after {
  content: " •";
  color: var(--accent);
}

.wm-groups.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.wm-group-label {
  margin: 10px 0 4px;
  color: var(--accent);
  letter-spacing: .08em;
}

.wm-group-label span {
  color: var(--muted);
}

.wm-groups .wm-list a {
  grid-template-columns: 26px minmax(0, 1fr);
}

/* Aperçu de l'image du projet survolé */
.wm-preview {
  position: relative;
  margin: 8px 0 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1c1b1b;
}

.wm-preview::before {
  content: "SURVOLEZ UN PROJET";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--line);
  font-size: 11px;
  letter-spacing: .08em;
}

/* Sélecteur renforcé : certaines pages ont leurs propres règles « img » qui écrasaient la hauteur */
.work-menu .wm-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .4s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}

.work-menu .wm-preview.is-on img {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .work-menu,
  .nav-work.is-open .work-menu,
  .wm-view.is-active,
  .wm-preview img {
    transition: none;
    animation: none;
  }
}

/* Tablette / mobile : panneau pleine largeur, sans aperçu image */
@media (max-width: 900px) {
  .wm-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .wm-preview {
    display: none;
  }
}

@media (max-width: 700px) {
  .work-menu {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100svh - 80px);
    overflow-y: auto;
    padding: 16px;
  }

  .wm-head {
    flex-wrap: wrap;
  }

  .nav .wm-tabs button {
    padding: 8px 11px;
  }

  .wm-list a {
    padding: 10px 0;
  }

  .wm-groups.is-active {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}



/* =========================================================
   TRAÎNÉE D'IMAGES (script.js, [data-trail]) — accueil et « Across the world »
   ========================================================= */

[data-trail] {
  isolation: isolate;
}

.trail-img {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: clamp(150px, 17vw, 270px);
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(var(--r, 0deg));
  animation: trail-pop 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

@keyframes trail-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(var(--r, 0deg)); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -40%) scale(0.92) rotate(var(--r, 0deg)); }
}

/* Accueil : le nom passe au-dessus des images et s'inverse */
.hero[data-trail] .hero-copy {
  mix-blend-mode: difference;
}

.hero[data-trail] .hero-side,
.hero[data-trail] .hero-index {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .trail-img {
    display: none;
  }
}



/* =========================================================
   ACCUEIL — VERSION COURTE (classes .hm-*)
   ========================================================= */

/* L'ouverture devient une colonne : le nom, puis la présentation et les boutons */
.hero[data-trail] {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hm-cta {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-top: 34px;
}

.hm-pitch {
  margin: 0;
  font: 13px/1.7 "DM Mono", monospace;
  color: rgba(238, 234, 226, 0.78);
}

.hm-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.hm-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: hm-pulse 2s ease-out infinite;
}

@keyframes hm-pulse {
  from { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  to   { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 19, 19, 0.6);
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hm-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hm-btn-main {
  background: var(--accent);
  border-color: var(--accent);
  color: #141313;
}

.hm-btn-main:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: #141313;
}


/* ---------- La sélection ---------- */

.hm-work {
  padding: 100px 4vw 60px;
}

.hm-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hm-label {
  margin: 0;
  font: 400 11px "DM Mono", monospace;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hm-label span {
  margin-left: 10px;
  color: var(--muted);
}

.hm-all {
  display: inline-flex;
  gap: 10px;
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s ease;
}

.hm-all:hover {
  color: var(--accent);
}

.hm-all-bottom {
  margin-top: 60px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Le 1er en très grand, puis deux colonnes en quinconce */
.hm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px 3vw;
  max-width: 1500px;
}

.hm-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hm-item-1 {
  grid-column: 1 / -1;
}

.hm-item:nth-child(even) {
  margin-top: 10vw;
}

.hm-item-1 + .hm-item {
  margin-top: 0;
}

.hm-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0e0e0e;
}

.hm-item-1 .hm-media {
  aspect-ratio: 21 / 9;
}

.hm-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hm-item:hover .hm-media img,
.hm-item:focus-visible .hm-media img {
  transform: scale(1.04);
}

.hm-info {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas:
    "num title meta"
    ".   role  role";
  align-items: baseline;
  gap: 6px 12px;
  padding-top: 16px;
}

.hm-num {
  grid-area: num;
  font: 11px "DM Mono", monospace;
  color: var(--accent);
}

.hm-info strong {
  grid-area: title;
  font-family: "Inter", sans-serif;
  font-size: clamp(24px, 2.6vw, 44px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.hm-meta {
  grid-area: meta;
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.hm-role {
  grid-area: role;
  font: 11px/1.6 "DM Mono", monospace;
  color: rgba(238, 234, 226, 0.65);
}

.hm-item:hover strong,
.hm-item:focus-visible strong {
  color: var(--accent);
}

.hm-item:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 8px;
}


/* ---------- En bref ---------- */

.hm-brief {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 0 4vw;
  padding: 70px 0 100px;
  border-top: 1px solid var(--line);
}

.hm-brief-text {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hm-brief-text em {
  color: var(--accent);
}

.hm-brief-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-link {
  display: inline-flex;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.hm-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  .hm-work {
    padding: 70px 18px 40px;
  }

  .hm-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hm-item:nth-child(even) {
    margin-top: 0;
  }

  .hm-item-1 .hm-media {
    aspect-ratio: 4 / 3;
  }

  .hm-info {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas:
      "num title"
      ".   meta"
      ".   role";
  }

  .hm-brief {
    margin: 0 18px;
    padding: 50px 0 70px;
  }

  .hm-cta {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-status i {
    animation: none;
  }
}

/* Accueil : apparitions verticales seulement (pas de décalage latéral qui ferait déborder la page) */
.hm-head.reveal:not(.is-visible),
.hm-item.reveal:not(.is-visible),
.hm-brief.reveal:not(.is-visible) {
  transform: translate3d(0, 30px, 0);
}

/* =========================================================
   ACCESSIBILITÉ — réglages communs à tout le site
   ========================================================= */

/* Bouton FR / EN : la langue active en clair, l'autre en retrait (moteur dans script.js) */
#lang {
  display: inline-flex;
  align-items: center;
  gap: .35em;
}
#lang span { opacity: .45; transition: opacity .25s ease, color .25s ease; }
#lang span.is-active { opacity: 1; color: var(--accent); }
#lang:hover span:not(.is-active) { opacity: .85; }
#lang i { font-style: normal; opacity: .35; }

/* Pendant la traduction au chargement (anglais choisi), la page reste masquée un instant */
.i18n-pending body { visibility: hidden; }

/* Lien « Aller au contenu » : invisible, il apparaît au premier Tab */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 12px 18px;
  background: var(--accent);
  color: #141313;
  font: 500 12px/1 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

/* Contour de focus visible partout au clavier (cyan, la couleur du site) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
footer :focus-visible { outline-color: #0089a0; }

/* Le grand « LET'S MAKE SOMETHING » du footer écrit un email */
a.footer-cta {
  display: block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}
a.footer-cta i { transition: color .3s ease; }
a.footer-cta:hover i,
a.footer-cta:focus-visible i { color: #0089a0; }

/* Écran tactile : zones de clic d'au moins 44 px sans changer la mise en page */
@media (pointer: coarse) {
  .nav nav a,
  .nav nav button,
  .nav-work-toggle,
  .footer-bottom a,
  .case-back,
  .hm-all,
  .hm-brief a,
  .wk-filter,
  .wk-view button {
    position: relative;
  }
  .nav nav a::before,
  .nav nav button::before,
  .nav-work-toggle::before,
  .footer-bottom a::before,
  .case-back::before,
  .hm-all::before,
  .hm-brief a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
}

/* Très petits téléphones (< 375 px) : le grand « SOMETHING. » du footer reste dans l'écran */
@media (max-width: 374px) {
  .footer-cta { font-size: 14.5vw; }
}


/* =========================================================
   OUVERTURE (accueil) — le monogramme se dessine, se remplit,
   puis rejoint le logo de la barre de navigation.
   Une fois par visite (.intro-seen, script dans <head>) ; pilotée par script.js.
   ========================================================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: var(--fg);
  cursor: pointer;
  /* filet de sécurité : si le JavaScript ne tourne pas, l'ouverture disparaît seule */
  animation: introFailsafe 0s 4.5s forwards;
}

.intro-seen .intro { display: none; }

.intro-curtain {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.intro-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.intro-mono {
  display: block;
  width: min(46vw, clamp(160px, 20vw, 300px));
  height: auto;
  overflow: visible;
  transform-origin: 50% 50%;
}

/* 1. le tracé : un trait cyan qui dessine le contour */
.intro-stroke {
  fill: var(--fg);
  fill-opacity: 0;
  stroke: var(--accent);
  stroke-width: 4.5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    introDraw .95s .1s cubic-bezier(.65, 0, .35, 1) forwards,
    introFill .4s .85s ease forwards;
}

/* 2. le point (le « i » du monogramme) tombe en dernier */
.intro-dot {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: introDot .5s .95s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

/* 3. le nom remonte, lettre de bloc par bloc */
.intro-name {
  margin: 0;
  overflow: hidden;
  font: 600 13px/1 "Inter", sans-serif;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.intro-name span {
  display: inline-block;
  transform: translateY(110%);
  animation: introUp .6s cubic-bezier(.16, 1, .3, 1) forwards;
}

.intro-name span:first-child { animation-delay: .85s; }
.intro-name span:last-child { animation-delay: .95s; }

.intro-name i {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* les quatre coins : repères discrets, comme une planche */
.intro-corner {
  position: absolute;
  font: 400 11px/1 "DM Mono", monospace;
  letter-spacing: .14em;
  color: var(--muted);
  opacity: 0;
  animation: introFade .5s .2s ease forwards;
}

.intro-corner-tl { top: 28px; left: 4vw; }
.intro-corner-tr { top: 28px; right: 4vw; }
.intro-corner-bl { bottom: 28px; left: 4vw; }
.intro-corner-br { bottom: 28px; right: 4vw; }
.intro-count { font-weight: 400; color: var(--fg); }

/* sortie (classe posée par script.js) : les textes s'effacent, le rideau remonte */
.intro.is-leaving { cursor: default; pointer-events: none; }
.intro.is-leaving .intro-corner,
.intro.is-leaving .intro-name { transition: opacity .3s ease; opacity: 0; }
.intro.is-leaving .intro-curtain {
  transition: transform .8s cubic-bezier(.76, 0, .24, 1) .15s;
  transform: translateY(-100%);
}

@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes introDot { to { transform: scale(1); } }
@keyframes introUp { to { transform: none; } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introFailsafe { to { visibility: hidden; pointer-events: none; } }

@media (max-width: 700px) {
  .intro-corner-bl { display: none; }
  .intro-corner-tl, .intro-corner-tr { top: 22px; }
  .intro-corner-br { bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}


/* =========================================================
   PAGES SIMPLES — 404 (.nf-*) et mentions légales (.lg-*)
   ========================================================= */

.nf-hero,
.lg-hero {
  padding: 170px 4vw 60px;
}

.nf-hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nf-eyebrow {
  margin: 0 0 26px;
  font: 400 11px/1 "DM Mono", monospace;
  letter-spacing: .14em;
  color: var(--accent);
}

.nf-title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(38px, 12.5vw, 220px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.nf-title span { display: block; }

.nf-serif {
  margin-left: 8vw;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.06em;
  color: var(--accent);
}

.nf-text {
  max-width: 44ch;
  margin: 44px 0 0;
  font: 400 14px/1.7 "DM Mono", monospace;
  color: var(--muted);
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.lg-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 6vw;
  padding: 20px 4vw 120px;
  max-width: 1400px;
}

.lg-block h2 {
  margin: 0 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font: 600 13px/1.2 "Inter", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lg-block p {
  margin: 0 0 10px;
  font: 400 13px/1.75 "DM Mono", monospace;
  color: var(--muted);
}

.lg-block a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .nf-hero, .lg-hero { padding-top: 130px; }
  .lg-body { grid-template-columns: 1fr; gap: 40px; }
  .nf-serif { margin-left: 4vw; }
}

/* footer : 4 liens, ils passent à la ligne sur petit écran */
@media (max-width: 700px) {
  .footer-bottom { flex-wrap: wrap; row-gap: 10px; }
}
