/* =========================================================
   Isaac Abatsong · portfolio
   Dark first. Inter pour les titres, Montserrat pour l'interface,
   Syne 700 réservé aux sous-titres et citations.
   ========================================================= */

:root {
  color-scheme: dark;

  --gold: #ffd191;
  --rust: #b25708;
  --ink: #000000;
  --paper: #ffffff;

  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --dim: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.28);

  --accent: #ffd191;
  --accent-ink: #000000;
  --btn-bg: #ffd191;
  --btn-ink: #000000;

  --ff-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ff-accent: "Syne", "Inter", sans-serif;

  --fs-h1: clamp(2.35rem, 5.8vw, 4.9rem);
  --fs-h2: clamp(1.9rem, 4vw, 3.5rem);
  --fs-h3: clamp(1.3rem, 2.2vw, 1.85rem);
  --fs-lead: clamp(1.075rem, 1.4vw, 1.3rem);
  --fs-body: clamp(1rem, 1.1vw, 1.0625rem);

  --container: 1320px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 2px;
  --header-h: 68px;
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #faf7f2;
  --surface-2: #f2ece2;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.68);
  --dim: rgba(0, 0, 0, 0.55);
  --line: rgba(0, 0, 0, 0.14);
  --line-2: rgba(0, 0, 0, 0.3);

  --accent: #b25708;
  --accent-ink: #ffffff;
  --btn-bg: #b25708;
  --btn-ink: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: #000000;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.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: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--gold);
  color: #000000;
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   Typographie utilitaires
   --------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

.meta {
  font-family: var(--ff-ui);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.subtitle {
  font-family: var(--ff-accent);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--muted);
  max-width: 42ch;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

.accent {
  color: var(--accent);
}

/* ---------------------------------------------------------
   Boutons et liens d'action
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
}

.btn--primary:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}

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

.btn--email {
  font-family: var(--ff-text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   En-tête et navigation
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-dot {
  color: var(--accent);
  font-size: 1.2em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--accent);
}

.nav-drop {
  position: relative;
}

.nav-drop summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.nav-drop summary::-webkit-details-marker {
  display: none;
}

.icon--chevron {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
}

.nav-drop[open] .icon--chevron {
  transform: rotate(180deg);
}

.nav-drop__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  display: grid;
  gap: 2px;
  min-width: 276px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .nav-drop__panel {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.nav-drop__panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px;
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-drop__panel a:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-drop__panel .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 2px;
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.lang-switch a {
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch [aria-current="true"] {
  color: var(--text);
  font-weight: 700;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--line-2);
  color: var(--accent);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon--sun {
  display: block;
}

.theme-toggle .icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon--moon {
  display: block;
}

.menu-toggle {
  display: grid;
}

.menu-toggle .icon:last-child {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon:first-child {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon:last-child {
  display: block;
}

.nav-cta {
  display: none;
}

/* Menu mobile */

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px var(--gutter) 36px;
  overflow-y: auto;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__nav {
  display: grid;
}

.mobile-menu__nav > a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.mobile-menu__nav > a:hover {
  color: var(--accent);
}

.mobile-menu__sub {
  display: grid;
  gap: 2px;
  padding: 10px 0 12px 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__sub a {
  padding: 7px 0;
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  color: var(--muted);
}

.mobile-menu__sub a:hover {
  color: var(--accent);
}

.mobile-menu__foot {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.mobile-menu__foot .btn {
  width: 100%;
}

.mobile-menu__foot p {
  margin-top: 8px;
  font-family: var(--ff-ui);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  padding: clamp(36px, 6vw, 76px) 0 var(--section);
}

.hero-grid {
  display: grid;
  gap: 38px;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 17ch;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.hero-intro {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat dd {
  order: 1;
  font-family: var(--ff-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat dt {
  order: 2;
  margin-top: 7px;
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-portrait {
  position: relative;
  max-width: 520px;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface);
}

.hero-portrait figcaption {
  margin-top: 12px;
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Bandeau de spécialités */

.strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  padding-block: 14px;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip__inner span[aria-hidden="true"] {
  color: var(--accent);
}

.strip + .section {
  border-top: 0;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.section--flush {
  padding-top: 0;
  border-top: 0;
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  max-width: 20ch;
  margin-top: 12px;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.section-head__text {
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-foot {
  margin-top: clamp(32px, 5vw, 56px);
}

/* ---------------------------------------------------------
   Travaux
   --------------------------------------------------------- */

.work-list {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.work-item {
  display: grid;
  gap: 20px;
}

.work-media {
  overflow: hidden;
  background: var(--surface);
}

.work-media a {
  display: block;
}

.work-media img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-media:hover img {
  transform: scale(1.02);
}

.work-index {
  display: flex;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.work-title {
  margin-top: 8px;
  font-size: var(--fs-h3);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

.work-tagline {
  max-width: 40ch;
  margin-top: 12px;
  color: var(--muted);
}

.work-meta {
  margin-top: 18px;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------------------------------------------------------
   Services
   --------------------------------------------------------- */

.services-section {
  background: var(--surface);
}

.service-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 38px;
  gap: 12px 14px;
  align-items: start;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.service-num {
  padding-top: 5px;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.service-row__body {
  display: grid;
  gap: 6px;
}

.service-row__title {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: color 0.2s ease;
}

.service-row__desc {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.94rem;
}

.service-row__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.service-row__arrow .icon {
  width: 15px;
  height: 15px;
}

.service-row:hover .service-row__title {
  color: var(--accent);
}

.service-row:hover .service-row__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---------------------------------------------------------
   À propos (teaser) et citation
   --------------------------------------------------------- */

.split {
  display: grid;
  gap: 30px;
}

.split__media {
  max-width: 520px;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface);
}

.split__body h2 {
  max-width: 18ch;
  margin-top: 14px;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.split__body p {
  max-width: 54ch;
  margin-top: 18px;
  color: var(--muted);
}

.split__body .btn {
  margin-top: 26px;
}

.quote {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.quote footer {
  margin-top: 16px;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------------------------------------------------------
   Appel à l'action
   --------------------------------------------------------- */

.cta {
  background: var(--surface);
}

.cta__grid {
  display: grid;
  gap: 28px;
}

.cta h2 {
  max-width: 14ch;
  margin-top: 14px;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.cta p {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--muted);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

/* ---------------------------------------------------------
   En-têtes de page
   --------------------------------------------------------- */

.page-head {
  padding: calc(var(--section) * 0.72) 0 calc(var(--section) * 0.52);
}

.page-head h1 {
  margin-top: 14px;
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.page-head .lead {
  margin-top: 22px;
}

.about-head h1 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 4.6vw, 4.15rem);
  line-height: 1.04;
}

.about-head__grid {
  display: grid;
  gap: 32px;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface);
}

/* ---------------------------------------------------------
   Archive projets
   --------------------------------------------------------- */

.archive {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.archive-item {
  display: grid;
  gap: 16px;
  align-content: start;
}

.archive-media {
  display: block;
  overflow: hidden;
  background: var(--surface);
}

.archive-media img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.archive-media:hover img {
  transform: scale(1.02);
}

.archive-body h2 {
  margin-top: 6px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.archive-body h2 a:hover {
  color: var(--accent);
}

.archive-tagline {
  max-width: 44ch;
  margin-top: 8px;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Fil d'Ariane
   --------------------------------------------------------- */

.breadcrumb {
  margin-bottom: 28px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 7px;
  color: var(--line-2);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ---------------------------------------------------------
   Pages projet
   --------------------------------------------------------- */

.project-hero {
  padding: calc(var(--section) * 0.52) 0 clamp(26px, 4vw, 48px);
}

.project-head {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}

.project-head h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 6.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.project-head .subtitle {
  margin-top: 18px;
}

.project-meta {
  display: grid;
  border-top: 1px solid var(--line);
}

.project-meta div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.project-meta dt {
  font-family: var(--ff-ui);
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.project-meta dd {
  font-size: 0.88rem;
  text-align: right;
}

.project-cover {
  margin-bottom: 0;
}

.project-cover .media-open {
  background: var(--surface);
}

.project-cover img {
  width: 100%;
}

.project-content {
  padding-block: clamp(48px, 7vw, 96px);
}

.project-body {
  display: grid;
  gap: 32px;
}

.project-desc p {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.03rem;
}

.project-desc p:first-of-type {
  color: var(--text);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.project-aside {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.role-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.project-aside__note {
  margin-top: 18px;
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Passage au projet suivant */

.project-next {
  border-top: 1px solid var(--line);
}

.project-next__inner {
  display: grid;
  gap: 16px;
  padding-block: 30px;
}

.project-next a {
  display: grid;
  gap: 5px;
}

.project-next__prev {
  justify-items: start;
}

.project-next__next {
  justify-items: end;
  text-align: right;
}

.project-next__title {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.project-next a:hover .project-next__title {
  color: var(--accent);
}

.project-next__next .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--accent);
}

/* ---------------------------------------------------------
   Images, galeries, lightbox
   --------------------------------------------------------- */

.media-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface);
  cursor: zoom-in;
}

.media-open img {
  width: 100%;
  transition: opacity 0.2s ease, transform 0.5s ease;
}

.media-open:hover img {
  opacity: 0.92;
  transform: scale(1.01);
}

.masonry {
  columns: 1;
  column-gap: 14px;
}

.masonry-item {
  margin: 0 0 14px;
  break-inside: avoid;
}

.media-strip {
  display: grid;
  gap: 12px;
}

.media-strip figure {
  margin: 0;
}

.media-strip img {
  width: 100%;
}

/* ---------------------------------------------------------
   Pages service
   --------------------------------------------------------- */

.service-hero__intro p {
  max-width: 52ch;
  margin-top: 14px;
  color: var(--muted);
}

.two-col {
  display: grid;
  gap: 28px;
}

.two-col h2 {
  max-width: 16ch;
  margin-top: 12px;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.check-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.process {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.process-step {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.process-num {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.process-step h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.process-step p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.93rem;
}

.managed-pages {
  display: grid;
  border-top: 1px solid var(--line);
}

.managed-pages li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 3px 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.managed-num {
  grid-row: span 2;
  padding-top: 4px;
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
}

.managed-name {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.managed-detail {
  color: var(--muted);
  font-size: 0.9rem;
}

.related-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.related-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.related-row__title {
  font-family: var(--ff-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.related-row__meta {
  grid-column: 1;
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.related-row__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.related-row:hover .related-row__title {
  color: var(--accent);
}

.related-row:hover .related-row__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---------------------------------------------------------
   À propos
   --------------------------------------------------------- */

.about-head h1 {
  max-width: 20ch;
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-period {
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline-body h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.timeline-org {
  margin-top: 2px;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  color: var(--dim);
}

.timeline-body p:last-child {
  max-width: 64ch;
  margin-top: 10px;
  color: var(--muted);
}

.education {
  display: grid;
  border-top: 1px solid var(--line);
}

.education li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.education-year {
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.education-title {
  font-weight: 600;
}

.education-place {
  color: var(--dim);
  font-size: 0.88rem;
}

.skills {
  display: grid;
  gap: 32px;
  align-content: start;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tool-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  color: var(--muted);
}

.lang-list {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.lang-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.lang-list li span:last-child {
  font-family: var(--ff-ui);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------------------------------------------------------
   Carrousel photos personnelles
   --------------------------------------------------------- */

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.carousel-item {
  flex: 0 0 78%;
  margin: 0;
  scroll-snap-align: start;
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface);
}

.carousel-item figcaption {
  margin-top: 8px;
  font-family: var(--ff-ui);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, opacity 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-btn .icon {
  width: 17px;
  height: 17px;
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */

.contact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  grid-column: 1;
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-main {
  display: grid;
  grid-column: 1;
  gap: 4px;
}

.contact-value {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.contact-text {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-arrow {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 3;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.contact-arrow .icon {
  width: 16px;
  height: 16px;
}

.contact-row:hover .contact-value {
  color: var(--accent);
}

.contact-row:hover .contact-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.info-list {
  display: grid;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-row span:last-child {
  color: var(--muted);
}

.mapbox {
  margin-top: clamp(32px, 5vw, 48px);
}

.mapbox figure {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.mapbox iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 40vw, 420px);
}

.contact-note {
  margin-top: 24px;
  color: var(--dim);
  font-size: 0.84rem;
}

/* ---------------------------------------------------------
   Mentions légales et 404
   --------------------------------------------------------- */

.legal {
  display: grid;
  max-width: 840px;
}

.legal-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-section p {
  color: var(--muted);
  font-size: 0.94rem;
}

.notfound {
  min-height: 55vh;
  padding: calc(var(--section) * 1.1) 0;
}

.notfound h1 {
  margin-top: 12px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.notfound .lead {
  margin-top: 18px;
}

/* ---------------------------------------------------------
   Pied de page
   --------------------------------------------------------- */

.footer {
  padding-block: 48px 28px;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  gap: 32px;
}

.footer__brand p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__location {
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer__col {
  display: grid;
  gap: 5px;
  align-content: start;
}

.footer__col h2 {
  margin-bottom: 6px;
  font-family: var(--ff-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer__col a {
  width: fit-content;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.footer__bottom {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--ff-ui);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

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

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */

.lightbox {
  max-width: 100vw;
  max-height: 100dvh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.95);
}

.lightbox__bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.lightbox__count {
  font-family: var(--ff-ui);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.lightbox__close:hover {
  border-color: #ffd191;
  color: #ffd191;
}

.lightbox__figure {
  display: grid;
  place-items: center;
  gap: 12px;
  margin: 0;
  padding: 64px 56px;
}

.lightbox__figure img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 112px);
  max-height: calc(100dvh - 160px);
  object-fit: contain;
}

.lightbox__figure figcaption {
  max-width: 70ch;
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox__nav:hover:not(:disabled) {
  border-color: #ffd191;
  color: #ffd191;
}

.lightbox__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.lightbox__nav .icon {
  width: 18px;
  height: 18px;
}

.lightbox__nav--prev {
  left: 14px;
}

.lightbox__nav--next {
  right: 14px;
}

/* =========================================================
   Points de rupture
   ========================================================= */

@media (min-width: 640px) {
  .masonry {
    columns: 2;
    column-gap: 16px;
  }

  .masonry-item {
    margin-bottom: 16px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .info-row {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }

  .contact-row {
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 8px 24px;
    padding: 24px 0;
  }

  .contact-label {
    align-self: start;
    padding-top: 6px;
  }

  .contact-main {
    grid-column: 2;
  }

  .contact-arrow {
    grid-column: 3;
  }
}

@media (min-width: 700px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    border-top: 0;
  }

  .process-step {
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .project-next__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 800px) {
  .media-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .footer__top {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 76px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: end;
  }

  .hero {
    padding-top: clamp(52px, 6vw, 88px);
  }

  .section-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: end;
  }

  .section-head__text {
    justify-self: end;
    text-align: right;
  }

  .work-item {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }

  .work-item:nth-child(even) .work-media {
    order: 2;
  }

  .work-item:nth-child(even) .work-body {
    order: 1;
  }

  .work-body {
    padding-block: 8px;
  }

  .service-row {
    grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.05fr) 42px;
    gap: 24px;
    align-items: center;
    padding-block: 30px;
  }

  .service-row__body {
    display: contents;
  }

  .service-row__title {
    grid-column: 2;
  }

  .service-row__desc {
    grid-column: 3;
    font-size: 0.92rem;
  }

  .service-row__arrow {
    grid-column: 4;
    width: 38px;
    height: 38px;
  }

  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
  }

  .split--text {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }

  .about-teaser .split__media {
    max-width: 520px;
  }

  .cta__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 40px;
    align-items: end;
  }

  .cta__actions {
    justify-content: flex-end;
  }

  .archive {
    grid-template-columns: 1fr 1fr;
    gap: 56px 40px;
  }

  .archive-item:nth-child(even) {
    margin-top: 64px;
  }

  .about-head__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 64px;
    align-items: end;
  }

  .project-head {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 48px;
    align-items: end;
  }

  .project-body {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 64px;
  }

  .project-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }

  .two-col {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }

  .timeline-item {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    padding: 28px 0;
  }

  .skills {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .carousel-item {
    flex-basis: 32%;
  }
}

@media (min-width: 1000px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  .masonry {
    columns: 3;
  }

  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (min-width: 1120px) {
  .nav-cta {
    display: inline-flex;
    min-height: 40px;
    margin-left: 8px;
    padding-inline: 15px;
    font-size: 0.66rem;
  }
}

@media (max-width: 599px) {
  .lightbox__figure {
    padding: 56px 12px;
  }

  .lightbox__figure img {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 150px);
  }

  .lightbox__nav {
    width: 38px;
    height: 38px;
  }

  .lightbox__nav--prev {
    left: 6px;
  }

  .lightbox__nav--next {
    right: 6px;
  }

  .lightbox__bar {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
