@font-face {
  font-family: "Abel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/abel-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #5b5b5b;
  --paper: #ffffff;
  --white: #ffffff;
  --accent: #3348cc;
  --line: rgba(91, 91, 91, 0.22);
  --header-height: 72px;
  --rail-width: clamp(42px, 4vw, 64px);
  --gutter: clamp(22px, 4.2vw, 72px);
  font-family: "Abel", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

body.menu-is-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.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;
}

.site-shell {
  overflow: clip;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.site-header.header-hero {
  color: var(--white);
  background: transparent;
  backdrop-filter: none;
}

.site-header.header-footer {
  color: var(--white);
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: none;
}

.wordmark {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1;
  white-space: nowrap;
}

.site-header > .wordmark {
  position: absolute;
  z-index: 2;
  left: 50%;
  display: block;
  width: clamp(120px, 16vw, 190px);
  transform: translateX(-50%);
}

.wordmark-logo {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.header-hero .logo-white,
.header-footer .logo-white {
  opacity: 1;
}

.header-content .logo-blue {
  opacity: 1;
}

.menu-toggle {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 34px;
  padding: 9px 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.menu-nav {
  position: fixed;
  z-index: 1;
  top: var(--header-height);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 430px);
  padding: 24px var(--gutter) 30px;
  visibility: hidden;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: -18px 20px 50px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
}

.header-footer .menu-nav {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
}

.menu-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.menu-nav a {
  padding: 14px 0;
  border-bottom: 1px solid currentColor;
  font-size: clamp(1.2rem, 2.5vh, 1.65rem);
  line-height: 1.15;
  text-align: right;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  background: #111111;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 55%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
  content: "";
}

.hero h1 {
  margin: 0;
}

.hero video,
.project-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 1px;
  height: 30px;
  background: currentColor;
}

.content-frame {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  background: var(--paper);
}

.brand-rail {
  grid-column: 1;
  grid-row: 1;
  background: var(--accent);
}

.brand-rail > div {
  position: sticky;
  top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100svh - var(--header-height));
}

.brand-rail img {
  display: block;
  width: clamp(120px, 16vw, 190px);
  height: auto;
  transform: rotate(-90deg);
}

.content-main {
  grid-column: 2;
  min-width: 0;
}

.editorial-section {
  padding: clamp(54px, 7vw, 108px) var(--gutter);
}

.about {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1.6fr);
  gap: clamp(40px, 8vw, 150px);
  background: var(--paper);
}

.section-kicker {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-copy {
  display: flex;
  max-width: 850px;
  flex-direction: column;
  gap: 1.2em;
}

.about-copy p {
  margin: 0;
  font-size: clamp(1.3rem, 2.15vw, 2.05rem);
  line-height: 1.38;
  text-align: left;
}

.work {
  padding: 0 var(--gutter) clamp(70px, 9vw, 130px);
  color: var(--ink);
  background: var(--paper);
}

.project {
  padding: clamp(38px, 5vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.project-heading {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-bottom: clamp(16px, 2vw, 28px);
}

.project-heading h2 {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e7e7e7;
}

.site-footer {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-height) + clamp(44px, 7vw, 96px)) var(--gutter) 30px;
  color: var(--white);
  background: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(30px, 5vw, 80px);
  padding: 0 0 clamp(56px, 8vw, 110px);
}

.footer-grid nav,
.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-wordmark img {
  display: block;
  width: clamp(140px, 16vw, 200px);
  height: auto;
}

.footer-brand p {
  max-width: 290px;
  margin: 24px 0 0;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.4;
  opacity: 0.82;
}

.footer-label {
  margin: 0 0 13px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.62;
}

.footer-grid a:not(.wordmark),
.footer-legal button {
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}

.footer-grid a:hover,
.footer-grid a:focus-visible,
.footer-legal button:hover,
.footer-legal button:focus-visible {
  border-color: currentColor;
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 9px;
}

.instagram-link svg,
.linkedin-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.linkedin-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.linkedin-link svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-link .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .footer-credit {
  align-self: center;
  color: var(--white);
  font-size: 11px;
  text-align: center;
  text-transform: none;
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 10px;
  text-align: right;
}

.footer-legal button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.footer-legal span[aria-hidden="true"] {
  opacity: 0.6;
}

/* Modal legal (RGPD / LSSI-CE) */
dialog#modal-legal {
  box-sizing: border-box;
  width: min(92vw, 720px);
  max-height: min(84vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(51, 72, 204, 0.95);
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.25);
}

dialog#modal-legal::backdrop {
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(8px);
}

.legal-modal-inner {
  position: relative;
  max-height: min(84vh, 760px);
  padding: clamp(32px, 5vw, 56px);
  overflow-y: auto;
}

.legal-modal-close {
  position: sticky;
  top: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  width: 34px;
  height: 34px;
  margin: 0 0 22px auto;
  padding: 9px 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.legal-modal-close span {
  display: block;
  width: 100%;
  height: 1px;
  background: #ffffff;
}

.legal-modal-close span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.legal-modal-close span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.legal-modal-body[hidden] {
  display: none;
}

.legal-modal-body .legal-modal-heading {
  margin: 0 0 20px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-modal-body .legal-modal-subheading {
  margin: 28px 0 10px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-modal-body .legal-modal-subheading:first-of-type {
  margin-top: 8px;
}

.legal-modal-body p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.legal-modal-body ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 64px;
    --rail-width: 38px;
    --gutter: 22px;
  }

  .site-header {
    padding-inline: 22px;
  }

  .site-header > .wordmark {
    width: 110px;
  }

  .brand-rail img {
    width: 110px;
  }

  .menu-nav {
    width: min(92%, 390px);
  }

  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .editorial-section {
    padding-block: 48px;
  }

  .about-copy p {
    font-size: 1.25rem;
  }

  .work {
    padding-inline: var(--gutter);
  }

  .project {
    padding-block: 34px;
  }

  .project-heading {
    min-height: 42px;
    padding-bottom: 14px;
  }

  .project-heading h2 {
    font-size: 0.95rem;
  }

  .project-media {
    aspect-ratio: 1;
  }

  .site-footer {
    padding-top: calc(var(--header-height) + 52px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    gap: 18px;
    font-size: 0.72rem;
  }

  .footer-legal {
    align-self: flex-start;
    text-align: left;
  }
}

@media (max-width: 700px) and (orientation: landscape) {
  .project-media {
    aspect-ratio: 16 / 9;
  }
}

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

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