/* ═══════════════════════════════════════════════════
   MOMENTUM.RAW — Design System
   Editorial Motorsport · Dark · Premium
════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,300;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ─── Tokens ─── */
:root {
  --black:   #000;
  --white:   #fff;
  --off:     #f5f4f0;
  --mid:     #1a1a1a;
  --line:    rgba(255,255,255,0.1);
  --accent:  #EE462B;
  --gold:    #c9a84c;

  --f-display: 'Barlow Condensed', sans-serif;
  --f-body:    'DM Sans', sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);

  --max: 1400px;
  --gutter: clamp(20px, 5vw, 80px);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: none; }

/* ─── Custom cursor ─── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out), width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(a:hover) .cursor { width: 12px; height: 12px; background: var(--accent); }
body:has(a:hover) .cursor-follower { width: 60px; height: 60px; border-color: var(--accent); }

@media (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body, button { cursor: auto; }
}

/* ─── Header ─── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  transition: padding 0.4s var(--ease-out), background 0.4s;
}

#header.compact {
  padding: 16px var(--gutter);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo { height: 60px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-desktop a {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-desktop a:hover { color: var(--white); }
.nav-desktop a:hover::after { transform: scaleX(1); }

.nav-lang {
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  transition: border-color 0.2s !important;
}
.nav-lang:hover { border-color: var(--accent) !important; }

/* ─── Burger ─── */
.burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 4px;
  z-index: 200;
}
.burger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ─── Fullscreen nav ─── */
.nav-full {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.nav-full.open { opacity: 1; pointer-events: all; }
.nav-full::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.nav-full-inner { display: flex; flex-direction: column; gap: 4px; }

.nav-full-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-family: var(--f-display);
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  transition: color 0.25s, letter-spacing 0.25s;
  transform: translateY(20px);
  opacity: 0;
  transition: color 0.25s, letter-spacing 0.25s, transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.nav-full.open .nav-full-link {
  opacity: 1;
  transform: translateY(0);
}
.nav-full.open .nav-full-link:nth-child(1) { transition-delay: 0.05s; }
.nav-full.open .nav-full-link:nth-child(2) { transition-delay: 0.1s; }
.nav-full.open .nav-full-link:nth-child(3) { transition-delay: 0.15s; }
.nav-full.open .nav-full-link:nth-child(4) { transition-delay: 0.2s; }
.nav-full.open .nav-full-link:nth-child(5) { transition-delay: 0.25s; }
.nav-full.open .nav-full-link:nth-child(6) { transition-delay: 0.3s; }

.nav-full-link::before {
  content: attr(data-num);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-full-link:hover { color: var(--white); letter-spacing: 0.02em; }
.nav-full-link:hover::before { opacity: 1; }

.nav-full-footer {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  display: flex;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 12s var(--ease-out) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

/* Grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.3) 45%, transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 30%, transparent 55%, rgba(0,0,0,0.65) 100%);
  z-index: 3;
}

/* Hero content — bottom-left editorial */
.hero-content {
  position: absolute;
  bottom: 100px;
  left: var(--gutter);
  z-index: 10;
  max-width: 820px;
}

.hero-label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}

.hero-line { display: block; }
.hero-line--accent { color: var(--accent); font-style: italic; font-weight: 300; }

/* Hero bottom controls */
.hero-controls {
  position: absolute;
  bottom: 36px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.hero-counter {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-current { color: var(--white); font-weight: 500; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 22px;
  transition: color 0.2s, border-color 0.2s, gap 0.3s;
}
.hero-cta:hover { color: var(--white); border-color: var(--accent); gap: 24px; }

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

/* ─── Marquee ─── */
.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track .dot { color: var(--accent); }

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

/* ─── Section commons ─── */
.section-tag {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section-heading em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}

/* ─── Intro section ─── */
.section-intro {
  padding: 120px 0 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}

.intro-num {
  font-family: var(--f-display);
  font-size: clamp(60px, 8vw, 100px);
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.02em;
  margin-bottom: -10px;
}

.intro-content {
  padding: 0 var(--gutter) 120px;
}

.intro-body {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin-bottom: 48px;
  max-width: 400px;
}

/* CTA full-width avec fill accent */
.intro-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid var(--line);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s;
}
.intro-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease-out);
}
.intro-cta:hover::before { transform: translateX(0); }
.intro-cta:hover { border-color: var(--accent); }
.intro-cta-label { position: relative; z-index: 1; }
.intro-cta svg { position: relative; z-index: 1; flex-shrink: 0; }

/* Image saignant au bord droit, coupe diagonale gauche */
.intro-visual {
  position: relative;
  margin-right: calc(-1 * var(--gutter));
  padding-bottom: 120px;
}
.intro-img {
  height: clamp(400px, 55vw, 680px);
  background-size: cover;
  background-position: 65% center;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  transition: transform 0.9s var(--ease-out), clip-path 0.9s var(--ease-out);
}
.intro-visual:hover .intro-img {
  transform: scale(1.03);
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
}
.intro-img-caption {
  margin-top: 16px;
  padding-left: 10%;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

/* Shared btn-outline for other sections */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.25);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s, gap 0.3s;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(238,70,43,0.06);
  gap: 24px;
}

/* ─── Services accordion ─── */
.section-services {
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.services-inner {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 80px;
  align-items: start;
}

.services-head {
  position: sticky;
  top: 120px;
}

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

.acc-item {
  border-bottom: 1px solid var(--line);
  position: relative;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0 28px 16px;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  cursor: none;
  transition: color 0.2s;
  text-align: left;
}
.acc-trigger:hover { color: var(--accent); }

.acc-num {
  font-size: 11px;
  font-family: var(--f-body);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  min-width: 24px;
}

.acc-name { flex: 1; }

.acc-icon {
  font-size: 24px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  transition: transform 0.35s var(--ease-out), color 0.2s;
  line-height: 1;
}
.acc-item.open .acc-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
  padding-left: 16px;
}
.acc-item.open .acc-body { max-height: 200px; }

.acc-body p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  padding-bottom: 20px;
  max-width: 520px;
}

.acc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
}

.acc-price {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.acc-link {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s, letter-spacing 0.2s;
}
.acc-link:hover { letter-spacing: 0.18em; }

/* ─── Portfolio section ─── */
.section-portfolio {
  border-bottom: 1px solid var(--line);
}

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--gutter) 0;
}

.portfolio-all {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.portfolio-all:hover { color: var(--accent); }

.portfolio-stack {
  margin-top: 40px;
}

.project-item {
  position: relative;
  height: clamp(320px, 55vw, 680px);
  overflow: hidden;
  cursor: none;
}

.project-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease-out);
}
.project-item:hover .project-img { transform: scale(1.04); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 48px var(--gutter);
  transition: background 0.4s;
}
.project-item:hover .project-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
}

.project-type {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.project-name {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.project-cta {
  flex-shrink: 0;
  align-self: flex-end;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.project-item:hover .project-cta {
  background: var(--accent);
  border-color: var(--accent);
}

/* ─── About section ─── */
.section-about {
  position: relative;
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 60vh;
}

.about-deco {
  position: absolute;
  left: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: clamp(160px, 22vw, 320px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.04);
  user-select: none;
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

/* ─── Matériel section ─── */
.section-materiel {
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.materiel-inner {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 80px;
  align-items: start;
}

.materiel-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 120px;
}

.materiel-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.materiel-cat-title {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.materiel-cat ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.materiel-cat li {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ─── Approche section ─── */
.section-approche {
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.approche-inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.approche-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.approche-intro {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
}

.approche-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.approche-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.approche-num {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.approche-title {
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.approche-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

.approche-seo {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  line-height: 1.85;
  max-width: 780px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

@media (max-width: 768px) {
  .approche-cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ─── Contact section ─── */
.section-contact {
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact-heading {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 60px;
  color: var(--white);
}
.contact-heading em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  background: var(--accent);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.3s, gap 0.3s;
}
.contact-cta:hover { background: #d63a22; gap: 24px; }

.contact-tel {
  font-family: var(--f-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.contact-tel:hover { color: var(--white); }

/* ─── Footer ─── */
.footer {
  background: var(--black);
  position: relative;
  z-index: 10;
  isolation: isolate;
  overflow: hidden;
}

.footer-top {
  padding: 60px var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo { height: 60px; }

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s, gap 0.3s;
}
.footer-cta:hover { color: var(--white); gap: 28px; }

.footer-mid {
  padding: 60px var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══ INNER PAGES ════════════════════════════════════ */

/* ─── Nav active ─── */
.nav-desktop a.nav-active { color: var(--white); }
.nav-desktop a.nav-active::after { transform: scaleX(1); }

/* ─── Page hero (shared) ─── */
.page-hero {
  min-height: 55vh;
  padding: 160px var(--gutter) 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.page-hero .section-tag { animation: heroIn 0.8s var(--ease-out) 0.1s both; }
.page-hero-title {
  font-family: var(--f-display);
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  animation: heroIn 0.9s var(--ease-out) 0.25s both;
}
.page-hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}
.page-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
  padding-bottom: 8px;
  animation: heroIn 0.8s var(--ease-out) 0.4s both;
}

/* ─── Services page ─── */
.svc-block {
  position: relative;
  padding: clamp(80px, 10vw, 120px) var(--gutter);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.svc-ghost {
  position: absolute;
  right: calc(var(--gutter) * 0.5);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: clamp(160px, 22vw, 320px);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.svc-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.svc-top {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.svc-num {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}

.svc-name {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  flex: 1;
}

.svc-name em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.svc-label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 6px;
}

.svc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.svc-desc {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.svc-desc p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.svc-includes-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}

.svc-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.svc-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  padding: 12px 0 12px 20px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.4;
}

.svc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 13px;
}

.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.svc-price {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.svc-price span {
  display: block;
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.25s, background 0.25s, gap 0.3s var(--ease-out);
}

.svc-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  gap: 18px;
}

/* Services bottom CTA */
.svc-bottom-cta {
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.svc-bottom-cta::after {
  content: 'PROJET';
  position: absolute;
  bottom: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: clamp(80px, 20vw, 300px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.svc-bottom-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  position: relative;
  z-index: 1;
}

.svc-bottom-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

/* ─── Contact page ─── */
.contact-page-section { border-bottom: 1px solid var(--line); }

.contact-page-inner {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 100px;
  align-items: start;
  padding: 100px var(--gutter);
}

.contact-info-col {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-info-block { display: flex; flex-direction: column; gap: 8px; }

.contact-info-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info-label::before {
  content: '';
  display: block;
  width: 16px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.contact-info-value {
  font-family: var(--f-display);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
}
.contact-info-link { transition: color 0.2s; }
.contact-info-link:hover { color: var(--accent); }

.contact-services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}
.contact-services-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.contact-services-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 3px;
}

/* ─── Contact form ─── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.form-field {
  position: relative;
  margin-bottom: 44px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.form-optional {
  font-style: normal;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  font-size: 9px;
  text-transform: none;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 15px;
  padding: 10px 0 14px;
  outline: none;
  transition: border-bottom-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-input::placeholder { color: rgba(255,255,255,0.18); font-style: italic; }
.form-input:focus { border-bottom-color: rgba(255,255,255,0.2); }

/* Animated accent line on focus */
.form-line {
  position: absolute;
  bottom: 0; left: 0;
  display: block;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.form-field:focus-within .form-line { width: 100%; }

/* Select */
.form-select-wrap { position: relative; }
.form-select { cursor: none; padding-right: 28px; }
.form-select option { background: #0d0d0d; color: var(--white); }
.form-select-arrow {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.form-field:focus-within .form-select-arrow { color: var(--accent); }

/* Textarea */
.form-textarea {
  resize: vertical;
  line-height: 1.75;
  min-height: 140px;
}

/* Submit */
.form-submit {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s;
  margin-top: 8px;
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease-out);
}
.form-submit:hover::before { transform: translateX(0); }
.form-submit:hover { border-color: var(--accent); }
.form-submit-label, .form-submit svg { position: relative; z-index: 1; }

/* ─── Contact form success message ─── */
.contact-success {
  padding: 60px 0;
}
.contact-success-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 28px;
}
.contact-success-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.contact-success-text {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  line-height: 1.7;
}
.contact-success-ref {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.contact-success-ref strong {
  color: rgba(255,255,255,0.6);
}

/* ═══ VISUAL ENHANCEMENTS ═══════════════════════════ */

/* ─── Global film grain ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9985;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: 0.14;
}

/* ─── Hero entrance animations ─── */
.hero-label {
  animation: heroIn 1s var(--ease-out) 0.15s both;
}
.hero-title .hero-line:nth-child(1) { animation: heroIn 1s var(--ease-out) 0.35s both; }
.hero-title .hero-line:nth-child(2) { animation: heroIn 1s var(--ease-out) 0.52s both; }
.hero-title .hero-line:nth-child(3) { animation: heroIn 1s var(--ease-out) 0.68s both; }
.hero-title .hero-line:nth-child(4) { animation: heroIn 1s var(--ease-out) 0.84s both; }
.hero-controls { animation: heroIn 1s var(--ease-out) 1s both; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Sticky heads: compact on scroll ─── */
.services-head .section-heading,
.materiel-left .section-heading {
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.services-head.compact .section-heading,
.materiel-left.compact .section-heading {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

/* ─── Accordion: left accent line on open ─── */
.acc-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  background: var(--accent);
  transition: height 0.5s var(--ease-out);
}
.acc-item.open::before { height: 100%; }

/* ─── Portfolio: ghost numbers via CSS counter ─── */
.portfolio-stack { counter-reset: project; }
.project-item { counter-increment: project; }
.project-item::before {
  content: '0' counter(project);
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  font-family: var(--f-display);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: color 0.6s var(--ease-out);
}
.project-item:hover::before { color: rgba(238,70,43,0.07); }

/* ─── About: M.R subtle drift ─── */
@keyframes decoFloat {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 16px)); }
}
.about-deco { animation: decoFloat 11s ease-in-out infinite; }

/* ─── Contact: radial glow + ghost word ─── */
.section-contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,70,43,0.05) 0%, transparent 62%);
  pointer-events: none;
}
.section-contact::after {
  content: 'CONTACT';
  position: absolute;
  bottom: -0.06em;
  right: 0;
  font-family: var(--f-display);
  font-size: clamp(80px, 16vw, 240px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ─── Project items: thin top accent on hover ─── */
.project-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.6s var(--ease-out);
  z-index: 5;
}
.project-item:hover::after { width: 100%; }

/* ─── Marquee accent dots pulse ─── */
.marquee-track .dot {
  color: var(--accent);
  animation: dotPulse 3s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── About page ─── */
.about-section {
  padding: clamp(80px, 10vw, 120px) var(--gutter);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.about-section--lab {
  background: var(--mid);
}

.about-section-inner {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.about-section-left {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-location {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.about-location-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.about-location-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.about-section-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 6px;
}

.about-section-right p {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.about-tags span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 6px 14px;
  border: 1px solid var(--line);
}

.about-lab-link {
  margin-top: 12px;
  align-self: flex-start;
}

/* Gear teaser */
.about-gear-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px var(--gutter);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  gap: 40px;
}

.about-gear-teaser:hover {
  background: rgba(255,255,255,0.02);
}

.about-gear-teaser::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-out);
}

.about-gear-teaser:hover::before { transform: scaleY(1); }

.about-gear-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--white);
  margin-top: 12px;
}

.about-gear-arrow {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  transition: border-color 0.3s, color 0.3s, transform 0.45s var(--ease-out);
}

.about-gear-teaser:hover .about-gear-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

/* ─── Matériel page ─── */
.materiel-embed-section {
  border-bottom: 1px solid var(--line);
}

.materiel-embed-inner {
  padding: 80px var(--gutter) 100px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── Matériel / Gear page ─── */
.gear-section {
  border-bottom: 1px solid var(--line);
}

.gear-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.gear-category {
  padding: clamp(60px, 8vw, 100px) var(--gutter);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 80px;
  align-items: start;
}

.gear-cat-header {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gear-cat-num {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.gear-cat-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.gear-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.gear-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: padding-left 0.3s var(--ease-out);
}

.gear-item:hover { padding-left: 8px; }

.gear-name {
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
}

.gear-detail {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .gear-category { grid-template-columns: 1fr; gap: 40px; }
  .gear-cat-header { position: static; }
}

/* ─── Fullscreen nav 7th + 8th item ─── */
.nav-full.open .nav-full-link:nth-child(7) { transition-delay: 0.35s; }
.nav-full.open .nav-full-link:nth-child(8) { transition-delay: 0.40s; }

/* ─── Nav client link ─── */
.nav-client {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 11px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-client:hover,
.nav-client.nav-active {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

/* ═══ GALLERY ════════════════════════════════════════ */

/* Lock & expired screens */
.gallery-lock {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 60px var(--gutter) 100px;
}
.gallery-expired { display: none; }

.gallery-lock-inner {
  max-width: 560px;
}

.gallery-lock-desc {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.65;
  margin: 16px 0 36px;
}

.gallery-expired-title {
  font-family: var(--f-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 12px 0 20px;
}
.gallery-expired-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* Code input form */
.gallery-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-input-wrap {
  display: flex;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.2s;
}
.gallery-input-wrap:focus-within {
  border-color: rgba(255,255,255,0.4);
}

.gallery-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 18px 22px;
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  min-width: 0;
}
.gallery-input-wrap input::placeholder {
  color: rgba(255,255,255,0.25);
  text-transform: none;
  font-family: var(--f-body);
  letter-spacing: 0;
  font-size: 0.9rem;
}

.gallery-input-wrap button {
  background: var(--white);
  color: var(--black);
  padding: 18px 28px;
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.gallery-input-wrap button:hover  { background: var(--accent); color: var(--white); }
.gallery-input-wrap button:disabled { opacity: 0.45; cursor: default; }
.gallery-input-wrap button:disabled:hover { background: var(--white); color: var(--black); }

.gallery-error {
  display: none;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.gallery-error a { text-decoration: underline; }

/* Unlocked gallery */
.gallery-unlocked {
  padding-bottom: 80px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding: 48px var(--gutter) 40px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.gallery-title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 8px 0 4px;
}

.gallery-meta {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.gallery-expiry-badge {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Masonry grid */
.gallery-masonry {
  columns: 3 280px;
  column-gap: 6px;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-dl {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.gallery-item-dl:hover {
  background: var(--accent);
  color: var(--white);
}

/* Selection state */
.gallery-item-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.gallery-item.selected .gallery-item-check {
  opacity: 1;
  transform: scale(1);
}
.gallery-item.selected img {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.gallery-item.selected .gallery-item-overlay {
  background: linear-gradient(to top, rgba(238,70,43,0.25) 0%, transparent 60%);
}

/* Select all link */
.gallery-select-all {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-block;
  margin-top: 6px;
}
.gallery-select-all:hover { opacity: 1; }

/* Selection bar */
.gallery-selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
  z-index: 200;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
}
.gallery-selection-bar.visible {
  transform: translateY(0);
}
.selection-count {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  flex: 1;
}
.selection-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.selection-dl-btn:hover { background: var(--accent); }
.selection-dl-btn:disabled { opacity: 0.5; cursor: default; }
.selection-clear {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--black);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s;
  background: none;
  border: none;
}
.selection-clear:hover { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 24px 20px;
  transition: color 0.2s;
}
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-bar {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.lightbox-counter {
  color: rgba(255,255,255,0.35);
  font-family: var(--f-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.lightbox-dl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-dl-btn:hover { color: var(--white); }

/* ─── Gallery responsive ─── */
@media (max-width: 900px) {
  .gallery-masonry { columns: 2 200px; }
  .gallery-header { padding: 40px var(--gutter) 32px; }
  .gallery-header-actions { align-items: flex-start; }
}
@media (max-width: 500px) {
  .gallery-masonry { columns: 1; }
  .gallery-input-wrap { flex-direction: column; }
  .gallery-input-wrap button { justify-content: center; }
}

/* ═══ RESPONSIVE ═══════════════════════════════════ */

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }

  /* Inner page hero */
  .page-hero { min-height: 40vh; padding-top: 130px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .page-hero-meta { align-items: flex-start; }

  /* Services page */
  .svc-body { grid-template-columns: 1fr; gap: 48px; }
  .svc-ghost { font-size: clamp(100px, 22vw, 180px); top: 24px; transform: none; }
  .svc-label { display: none; }

  /* Contact page */
  .contact-page-inner { grid-template-columns: 1fr; gap: 60px; padding: 60px var(--gutter); }
  .contact-info-col { position: static; flex-direction: row; flex-wrap: wrap; gap: 32px 48px; }

  /* Services accordion */
  .services-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-head { padding-bottom: 0; }

  /* Portfolio */
  .portfolio-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .project-item { height: clamp(260px, 70vw, 480px); }

  /* About */
  .section-about { padding: 80px var(--gutter); }
  .about-deco { font-size: clamp(100px, 20vw, 180px); top: 0; left: 0; }
  .about-content { margin-left: 0; max-width: 100%; }

  /* About page */
  .about-section-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-section-left { position: static; }
  .about-gear-title { font-size: clamp(28px, 8vw, 52px); }

  /* Matériel */
  .materiel-inner { grid-template-columns: 1fr; gap: 48px; }
  .materiel-right { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Contact */
  .contact-heading { font-size: clamp(40px, 10vw, 72px); }
  .contact-links { flex-direction: column; gap: 16px; }

  /* Footer */
  .footer-mid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 640px) {
  /* Hero */
  .hero-content { bottom: 72px; }
  .hero-title { font-size: clamp(40px, 12vw, 60px); }
  .hero-controls {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
  }
  .hero-scroll { display: none; }
  .hero-cta {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
    gap: 0;
  }
  .hero-cta svg { color: var(--accent); }

  /* Services accordion */
  .acc-trigger { font-size: clamp(20px, 5.5vw, 28px); padding: 20px 0 20px 14px; }

  /* Section contact homepage */
  .section-contact { padding: 80px var(--gutter); }
  .contact-heading { margin-bottom: 40px; }
  .contact-links { flex-direction: column; gap: 16px; align-items: flex-start; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-page-inner { padding: 48px var(--gutter); }

  /* Portfolio */
  .project-item { height: clamp(240px, 80vw, 380px); }
  .project-name { font-size: clamp(22px, 6vw, 32px); }

  /* Matériel */
  .materiel-right { grid-template-columns: 1fr; gap: 24px; }

  /* Contact */
  .contact-cta, .contact-tel {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  .footer-mid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ─── Footer social links ─── */
.footer-social {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  gap: 2px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 2.2;
  transition: color 0.2s;
}
.footer-social-link:hover { color: #fff; }
