/* ============================================================
   L'Atelier Numéro Treize — Feuille de styles v2
   Polices : Space Grotesk (titres) + Questrial (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Questrial&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --black:        #0A0A0A;
  --white:        #FFFFFF;
  --off-white:    #FAF8F5;
  --grey-50:      #F0F0EE;
  --grey-100:     #E4E4E0;
  --grey-300:     #C0C0B8;
  --grey-500:     #8A8A82;
  --grey-700:     #4A4A44;

  --font-title:   'Space Grotesk', sans-serif;
  --font-body:    'Questrial', sans-serif;

  --text-xs:      0.7rem;
  --text-sm:      0.875rem;
  --text-base:    1rem;
  --text-lg:      1.125rem;
  --text-xl:      1.375rem;
  --text-2xl:     clamp(1.5rem,  3vw, 2rem);
  --text-3xl:     clamp(2rem,    4vw, 2.75rem);
  --text-4xl:     clamp(2.5rem,  5vw, 3.75rem);
  --text-hero:    clamp(3.5rem,  7.5vw, 8rem);

  --section-py:   clamp(5rem, 9vw, 9rem);
  --container-px: clamp(1.5rem, 5vw, 4rem);
  --content-w:    1280px;

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:      cubic-bezier(0.55, 0, 1, 0.45);
  --duration:     0.4s;
  --t:            var(--duration) var(--ease);

  --radius:       3px;
  --radius-lg:    10px;
  --border:       1px solid var(--grey-100);

  /* ── Couleurs de marque ANT ──────────────────────── */
  --brand-pink:   #FA7DAF;
  --brand-orange: #FA7D00;
  --brand-teal:   #00967D;
  --brand-blue:   #4B7DAF;
  --brand-yellow: #FAC800;
  --brand-purple: #AF3264;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Typographie ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
p  { max-width: 62ch; }
p + p { margin-top: 1em; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
.section { padding-block: var(--section-py); }
.section--dark  { background: var(--black); color: var(--white); }
.section--light { background: var(--off-white); }

/* ── Utilitaires ────────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

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

/* Section header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 5vw, 5rem);
  flex-wrap: wrap;
}
.section-header__label { margin-bottom: 0.75rem; }
.section-header__title { font-size: var(--text-4xl); }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  transition: var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--black); color: var(--white); border: 2px solid var(--black); }
.btn--primary:hover { background: var(--grey-700); border-color: var(--grey-700); }
.btn--outline { background: transparent; color: var(--black); border: 2px solid var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--white { background: var(--white); color: var(--black); border: 2px solid var(--white); }
.btn--white:hover { background: transparent; color: var(--white); }
.btn--hero { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn--hero:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn--ghost {
  padding: 0;
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
}
.btn--ghost::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width var(--t);
}
.btn--ghost:hover::after { width: 100%; }
.btn--ghost-white { color: var(--white); }

/* ── Tags ────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--grey-50);
  border-radius: 100px;
  font-size: 0.7rem;
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--grey-700);
}
.tag--outline { background: transparent; border: 1px solid var(--grey-100); }
.tag--dark { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

/* ── Header / Navigation ────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--grey-100);
}
/* Header transparent sur hero sombre */
.site-header.is-over-dark:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
}
.site-header.is-over-dark:not(.is-scrolled) .site-logo { color: var(--white); }
.site-header.is-over-dark:not(.is-scrolled) .site-nav__link { color: rgba(255,255,255,0.8); }
.site-header.is-over-dark:not(.is-scrolled) .site-nav__link::after { background: var(--white); }
.site-header.is-over-dark:not(.is-scrolled) .site-nav__cta {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: var(--white);
}
.site-header.is-over-dark:not(.is-scrolled) .site-nav__cta:hover {
  background: var(--white);
  color: var(--black);
}
.site-header.is-over-dark:not(.is-scrolled) .nav-toggle__bar { background: var(--white); }

/* ── Transition de page ─────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--black);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}


.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  color: var(--black);
  transition: opacity var(--t);
  flex-shrink: 0;
}
.site-logo:hover { opacity: 0.65; }
.site-logo svg {
  height: 32px;
  width: auto;
  display: block;
}

/* Nav desktop */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.site-nav__link {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  position: relative;
  transition: color var(--t);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--black);
  transition: width var(--t);
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { width: 100%; }

.site-nav__cta {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--t);
}
.site-nav__cta:hover { background: var(--grey-700); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  z-index: 200; position: relative;
}
.nav-toggle__bar {
  display: block; height: 2px;
  border-radius: 2px; background: var(--black);
  transition: var(--t); transform-origin: center;
}
.nav-toggle__bar:first-child  { width: 28px; }
.nav-toggle__bar:nth-child(2) { width: 20px; }
.nav-toggle__bar:last-child   { width: 28px; }
.nav-toggle.is-open .nav-toggle__bar:first-child  { transform: translateY(7px) rotate(45deg); width: 28px; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:last-child   { transform: translateY(-7px) rotate(-45deg); width: 28px; }

/* Mobile overlay */
.site-nav__mobile {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 3rem var(--container-px);
  gap: 0;
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.site-nav__mobile.is-open { transform: translateX(0); }
.site-nav__mobile .site-nav__link {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--black);
  padding: 0.25rem 0;
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--grey-100);
}
.site-nav__mobile .site-nav__link:first-of-type { border-top: 1px solid var(--grey-100); }
.site-nav__mobile .site-nav__link::after { display: none; }
.site-nav__mobile .site-nav__cta {
  margin-top: 2rem;
  font-size: 1rem;
  padding: 1rem 2rem;
}
.site-nav__mobile-close {
  position: absolute; top: 1.25rem; right: var(--container-px);
  font-size: 2rem; line-height: 1; color: var(--black); cursor: pointer;
}

/* ── HERO BRAND — GIF + panneau texte ────────────────────────── */
.hero-brand {
  position: relative;
  min-height: 100svh;
  padding-top: 68px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Dégradé bas → transparent pour lisibilité du texte */
.hero-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.38) 40%,
    transparent 72%
  );
  pointer-events: none;
}

/* GIF en fond pleine largeur */
.hero-brand__gif {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-brand__gif img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Texte en bas à gauche, par-dessus le dégradé */
.hero-brand__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  max-width: var(--content-w);
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--container-px) clamp(3.5rem, 5vw, 5rem);
  background: transparent;
}

.hero-brand__eyebrow {
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.hero-brand__title {
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 10ch;
}
.hero-brand__title em {
  font-style: normal;
  color: rgba(255,255,255,0.3);
}

.hero-brand__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 44ch;
}

.hero-brand__cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-brand__scroll {
  display: none;
}

/* ── Marquee ticker ──────────────────────────────────────────── */
.marquee {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 0.9rem 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.marquee__track {
  display: inline-flex;
  animation: marqueeScroll 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__text {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-right: 0;
}
.marquee__sep {
  display: inline-block;
  margin-inline: 2rem;
  color: rgba(255,255,255,0.25);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Projets — grille éditoriale ────────────────────────────── */
.projects-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Première carte : grande, pleine largeur */
.projects-editorial .project-card:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7;
}

/* ── Carte projet ────────────────────────────────────────────── */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grey-50);
  aspect-ratio: 4/3;
  display: block;
  cursor: pointer;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-card:hover img { transform: scale(1.05); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.1) 55%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.project-card__num {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.project-card__title {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  transform: translateY(6px);
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-card__title { transform: translateY(0); }

.project-card__cats {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease) 0.05s, transform 0.4s var(--ease) 0.05s;
}
.project-card:hover .project-card__cats { opacity: 1; transform: translateY(0); }

.project-card--no-img { background: var(--grey-100); }

/* ── Services — grille de cards ──────────────────────────────── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-100);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: background var(--t), color var(--t);
  cursor: default;
  position: relative;
}
.service-card-item:nth-child(1):hover { background: var(--brand-pink);   color: var(--black); }
.service-card-item:nth-child(2):hover { background: var(--brand-teal);   color: var(--white); }
.service-card-item:nth-child(3):hover { background: var(--brand-orange); color: var(--black); }
.service-card-item:nth-child(4):hover { background: var(--brand-blue);   color: var(--white); }
.service-card-item:nth-child(5):hover { background: var(--brand-yellow); color: var(--black); }
.service-card-item:nth-child(6):hover { background: var(--brand-purple); color: var(--white); }

.service-card-item__num {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--grey-300);
  margin-bottom: 2rem;
  display: block;
  transition: color var(--t);
}
.service-card-item:hover .service-card-item__num                { color: rgba(255,255,255,0.45); }
.service-card-item:nth-child(1):hover .service-card-item__num,
.service-card-item:nth-child(3):hover .service-card-item__num,
.service-card-item:nth-child(5):hover .service-card-item__num  { color: rgba(0,0,0,0.35); }

.service-card-item__name {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  transition: color var(--t);
}

.service-card-item__desc {
  font-size: var(--text-sm);
  color: var(--grey-500);
  line-height: 1.6;
  transition: color var(--t);
}
.service-card-item:hover .service-card-item__desc                { color: rgba(255,255,255,0.65); }
.service-card-item:nth-child(1):hover .service-card-item__desc,
.service-card-item:nth-child(3):hover .service-card-item__desc,
.service-card-item:nth-child(5):hover .service-card-item__desc  { color: rgba(0,0,0,0.55); }

/* ── Section agence (split) ─────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.about-text-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.about-split__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--grey-100);
  position: relative;
}
.about-split__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about-split__img:hover img { transform: scale(1.04); }

.about-split__label  { margin-bottom: 1.25rem; }
.about-split__title  { font-size: var(--text-3xl); margin-bottom: 1.75rem; }
.about-split__text   { color: var(--grey-700); font-size: var(--text-base); margin-bottom: 2.5rem; max-width: 42ch; }

/* ── Stats ───────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  flex-wrap: nowrap;
  align-items: flex-start;
}
.stat-item__num {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.3rem;
}
.stat-item__label {
  font-size: var(--text-xs);
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* ── Logos clients — marquee infini ──────────────────────────── */
.clients-logos {
  border-top: var(--border);
  border-bottom: var(--border);
  padding-block: 2.5rem;
  overflow: hidden;
}
.clients-logos__track {
  display: flex;
  width: max-content;
  animation: logosScroll 32s linear infinite;
}
.clients-logos:hover .clients-logos__track { animation-play-state: paused; }

@keyframes logosScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.5rem;
  flex-shrink: 0;
}
.client-logo img {
  height: 32px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.28);
  transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.client-logo:hover img {
  filter: none;
  transform: scale(1.08);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: var(--border); }
.faq-item:first-child { border-top: var(--border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  color: var(--black);
  background: none; border: none;
  transition: color var(--t);
}
.faq-question:hover { color: var(--grey-700); }

.faq-icon {
  width: 26px; height: 26px;
  border: 1.5px solid var(--grey-300);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem; line-height: 1;
  transition: transform var(--t), background var(--t), border-color var(--t);
  color: var(--grey-500);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--black); border-color: var(--black); color: var(--white);
}
.faq-answer {
  overflow: hidden; max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.faq-answer__inner {
  padding-bottom: 1.75rem;
  color: var(--grey-700);
  max-width: 62ch;
}

/* ── CTA Banner — split ──────────────────────────────────────── */
.cta-banner {
  background: var(--black);
  padding-block: clamp(4.5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
/* Accent line gauche */
.cta-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--brand-pink), var(--brand-orange), var(--brand-teal));
}
.cta-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.cta-banner__title {
  color: var(--white);
  font-size: clamp(2.4rem, 4.5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}
.cta-banner__sub {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 38ch;
}
.cta-banner__cta { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.45);
  padding-top: clamp(4rem, 7vw, 6rem);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Nom du studio en grand au-dessus */
.footer-studio {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-studio__name {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.footer-studio__name svg {
  height: clamp(42px, 5vw, 64px);
  width: auto;
  display: block;
  fill: currentColor;
  transform-origin: left center;
  transition: transform 0.5s var(--ease), fill 0.1s;
}
.footer-studio__name:hover svg {
  fill: url(#ant-logo-gradient);
  transform: scale(1.03);
}
.footer-studio__label {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding-bottom: 0.25rem;
}

/* Grille brand + cols */
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}
.footer-brand__tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 32ch;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.4);
}
.footer-social {
  display: flex; gap: 0.75rem;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  transition: var(--t);
}
.footer-social a:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* Deux colonnes nav + contact côte à côte */
.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-content: start;
}
.footer-col h5 {
  font-family: var(--font-title);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col li { font-size: var(--text-sm); color: rgba(255,255,255,0.4); }
.footer-col a { font-size: var(--text-sm); color: rgba(255,255,255,0.4); transition: color var(--t); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.2);
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--t);
}
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── Pages légales ──────────────────────────────────────── */
.legal-content {
  max-width: 740px;
}
.legal-content h2 {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}
.legal-content p, .legal-content li {
  color: var(--grey-700);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content a { color: var(--black); }
.legal-intro {
  font-size: var(--text-lg);
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  border-left: 3px solid var(--grey-100);
  padding-left: 1.5rem;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
  font-size: var(--text-sm);
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--grey-100);
}
.legal-table th {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.legal-table tr:hover td { background: var(--grey-50); }
.page-hero--sm .page-hero__title { font-size: clamp(2rem, 4vw, 3.5rem); }

/* ── Page hero (sous-pages) ─────────────────────────────────── */
.page-hero {
  padding-top: calc(68px + clamp(3.5rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--off-white);
  border-bottom: var(--border);
}
.page-hero__label { margin-bottom: 1.25rem; }
.page-hero__title { font-size: var(--text-4xl); max-width: 18ch; margin-bottom: 1.25rem; }
.page-hero__sub   { font-size: var(--text-lg); color: var(--grey-700); max-width: 50ch; }

/* ── Filtres ─────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--grey-100);
  border-radius: 100px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--grey-700);
  cursor: pointer;
  transition: var(--t);
  background: var(--white);
}
.filter-btn:hover, .filter-btn.is-active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── Grille projets (page /projets) ─────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.25rem;
}

/* ── Page projet individuel ─────────────────────────────────── */
.project-header {
  padding-top: calc(68px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--off-white);
  border-bottom: var(--border);
}
.project-header__meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.project-header__title { margin-bottom: 1rem; }
.project-hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-lg); background: var(--grey-100);
}
.project-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  padding-block: var(--section-py);
}
.project-description { font-size: var(--text-lg); color: var(--grey-700); line-height: 1.75; }
.project-sidebar { position: sticky; top: 90px; }
.project-info-block { padding: 2rem; background: var(--off-white); border-radius: var(--radius-lg); }
.project-info-row { padding-block: 0.85rem; border-bottom: var(--border); display: flex; flex-direction: column; gap: 0.2rem; }
.project-info-row:last-child { border-bottom: none; }
.project-info-row dt { font-family: var(--font-title); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-500); }
.project-info-row dd { font-size: var(--text-sm); color: var(--black); font-weight: 500; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: var(--section-py); }
.project-gallery img { width: 100%; border-radius: var(--radius); background: var(--grey-100); }
.project-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; object-fit: cover; }
.project-gallery img:not(:first-child) { aspect-ratio: 4/3; object-fit: cover; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: var(--section-py); border-top: var(--border); }
.project-nav__item { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--off-white); border-radius: var(--radius-lg); transition: background var(--t); }
.project-nav__item:hover { background: var(--grey-100); }
.project-nav__item--next { text-align: right; }
.project-nav__dir { font-family: var(--font-title); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-500); }
.project-nav__title { font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: var(--black); }

/* ── Page services ──────────────────────────────────────────── */
.services-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  padding: 2.5rem;
  border: var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.service-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.service-card__title { font-family: var(--font-title); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card__desc { color: var(--grey-700); font-size: var(--text-sm); line-height: 1.7; max-width: none; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-step__num { font-family: var(--font-title); font-size: 3.5rem; font-weight: 700; color: var(--grey-100); line-height: 1; margin-bottom: 1rem; }
.process-step__title { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.process-step__desc { font-size: var(--text-sm); color: var(--grey-700); line-height: 1.6; max-width: none; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact-info { position: sticky; top: 90px; }
.contact-info__title { font-size: var(--text-3xl); margin-bottom: 1rem; }
.contact-info__sub { color: var(--grey-700); margin-bottom: 2.5rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item__icon { width: 38px; height: 38px; border: var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }
.contact-info-item__label { font-family: var(--font-title); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-500); display: block; margin-bottom: 0.15rem; }
.contact-info-item__value { font-weight: 600; font-size: var(--text-sm); color: var(--black); }
.contact-form { background: var(--off-white); padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.form-grid .form-group--full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-family: var(--font-title); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-700); }
.form-label span { color: var(--grey-300); margin-left: 0.25rem; }
.form-input, .form-textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--white); border: 1.5px solid var(--grey-100);
  border-radius: var(--radius); color: var(--black); font-size: var(--text-base);
  transition: border-color var(--t); -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--black); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--grey-300); }
.form-textarea { resize: vertical; min-height: 160px; }
.form-honeypot { display: none !important; }
.form-message { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: var(--text-sm); margin-bottom: 1.5rem; }
.form-message--success { background: #e6f4ea; color: #1e7e34; border: 1px solid #c3e6cb; }
.form-message--error   { background: #fdecea; color: #c62828; border: 1px solid #f5c6cb; }

/* ── Page agence ─────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.team-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--grey-50); }
.team-card__img { aspect-ratio: 3/4; overflow: hidden; }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.team-card:hover .team-card__img img { transform: scale(1.04); }
.team-card__info { padding: 1.5rem; }
.team-card__name { font-family: var(--font-title); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-card__role { font-size: var(--text-sm); color: var(--grey-500); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.value-item__title { font-family: var(--font-title); font-weight: 700; margin-bottom: 0.5rem; font-size: var(--text-lg); }
.value-item__desc { color: var(--grey-700); font-size: var(--text-sm); line-height: 1.65; max-width: none; }

/* ── Manifeste ──────────────────────────────────────────── */
.manifesto-section {
  background: var(--black);
  padding-block: clamp(5rem, 9vw, 9rem);
}
.manifesto-phrase {
  font-family: var(--font-title);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
}

/* ── Clients block (sans marges section) ────────────────── */
.clients-block {
  background: var(--off-white);
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Reveal animations ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ── Flash messages ──────────────────────────────────────────── */
.flash { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: var(--text-sm); }
.flash--success { background: #e6f4ea; color: #1e7e34; border: 1px solid #c3e6cb; }
.flash--error   { background: #fdecea; color: #c62828; border: 1px solid #f5c6cb; }

/* ── Splash screen ───────────────────────────────────────────── */
body.splash-active { overflow: hidden; }
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
  overflow: hidden;
}
.splash__inner {
  position: absolute;
  top: -5%; left: -5%;
  width: 110%; height: 110%;
  display: flex;
  transform: skewX(-8deg) translateX(-115%);
  animation: splashSlide 1.5s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.splash__band { flex: 1; min-width: 0; }
.splash__band:nth-child(1) { background: var(--brand-pink);   }
.splash__band:nth-child(2) { background: var(--brand-orange); }
.splash__band:nth-child(3) { background: var(--brand-teal);   }
.splash__band:nth-child(4) { background: var(--brand-blue);   }
.splash__band:nth-child(5) { background: var(--brand-yellow); }
.splash__band:nth-child(6) { background: var(--brand-purple); }
@keyframes splashSlide {
  0%   { transform: skewX(-8deg) translateX(-115%); }
  38%  { transform: skewX(-8deg) translateX(0%);    }
  65%  { transform: skewX(-8deg) translateX(0%);    }
  100% { transform: skewX(-8deg) translateX(115%);  }
}

/* ── Custom cursor (desktop) ─────────────────────────────────── */
.cursor-custom,
.cursor-custom * { cursor: none !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: #0a0a0a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  transition: background 0.2s ease, opacity 0.15s ease;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(10,10,10,0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  transition: border-color 0.25s ease, width 0.3s ease, height 0.3s ease, margin 0.3s ease;
}
.cursor-ring--hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; }

/* ── Hero — title line reveal ────────────────────────────────── */
.hero-brand__title .title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-brand__title .title-word {
  display: inline-block;
  transform: translateY(108%);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.hero-brand__title.is-ready .title-word { transform: translateY(0); opacity: 1; }
.hero-brand__title.is-ready .title-line:nth-child(1) .title-word { transition-delay: 0.00s; }
.hero-brand__title.is-ready .title-line:nth-child(2) .title-word { transition-delay: 0.12s; }
.hero-brand__title.is-ready .title-line:nth-child(3) .title-word { transition-delay: 0.22s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-brand { min-height: 88svh; }
  .hero-brand__content { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .services-full-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-studio { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .cta-banner__inner { grid-template-columns: 1fr; gap: 2rem; }
  .projects-editorial .project-card:first-child { aspect-ratio: 16/9; }
  .manifesto-section { grid-template-columns: 1fr; }
  .manifesto-bands-col { display: none; }
}

@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-text-split { grid-template-columns: 1fr; }
  .about-split__img { order: -1; aspect-ratio: 3/2; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .project-body { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .projects-editorial { grid-template-columns: 1fr; }
  .projects-editorial .project-card:first-child { grid-column: auto; aspect-ratio: 4/3; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Header */
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-logo svg { height: 22px; }

  /* Hero — GIF masqué sur mobile, fond noir pur */
  .hero-brand { min-height: 100svh; background: var(--black); justify-content: center; }
  .hero-brand__gif { display: none; }
  .hero-brand::after { display: none; }
  .hero-brand__content {
    padding-top: 5rem;
    padding-bottom: clamp(3rem, 8vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-brand__title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-brand__cta { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .hero-brand__desc { font-size: var(--text-sm); }

  /* Sections */
  .service-cards { grid-template-columns: 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  /* CTA banner */
  .cta-banner__title { font-size: clamp(2rem, 8vw, 3rem); }
  .cta-banner__cta { flex-direction: column; align-items: flex-start; }

  /* Manifeste */
  .manifesto-phrase { font-size: clamp(2rem, 8vw, 3rem); }
  .manifesto-section { padding-block: 3.5rem; }

  /* Footer */
  .footer-right { grid-template-columns: 1fr 1fr; }
  .footer-studio__name svg { height: 34px; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }

  /* Pages intérieures */
  .page-hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .form-group--full { grid-column: auto; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery img:first-child { grid-column: auto; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav__item--next { text-align: left; }
  .stats-row { gap: 2rem; }
  .section-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* Conteneur */
  :root { --container-px: 1.25rem; }

  /* Hero */
  .hero-brand { min-height: 72svh; }
  .hero-brand__title { font-size: clamp(1.75rem, 9vw, 2.5rem); letter-spacing: -0.03em; }
  .hero-brand__eyebrow { font-size: 0.6rem; }

  /* Grilles */
  .process-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-right { grid-template-columns: 1fr; }

  /* Logos clients */
  .client-logo { padding: 0 2rem; }
  .client-logo img { max-height: 26px; max-width: 90px; }

  /* CTA */
  .cta-banner__title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.8rem; }
}
