/* ==========================================================================
   CAPS Digital — studio digital sport
   Design tokens
   ========================================================================== */

:root {
  --ink: #161513;
  --ink-1: #1c1a17;
  --ink-2: #201e1a;
  --paper: #f7f5f2;
  --paper-70: rgba(247, 245, 242, 0.7);
  --paper-45: rgba(247, 245, 242, 0.58);
  --paper-18: rgba(247, 245, 242, 0.18);
  --paper-10: rgba(247, 245, 242, 0.1);
  --volt: #0dfbff;
  --volt-70: rgba(13, 251, 255, 0.7);
  --volt-30: rgba(13, 251, 255, 0.3);
  --volt-14: rgba(13, 251, 255, 0.14);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-text: "Inter", sans-serif;

  --fs-hero: clamp(2.75rem, 4.6vw + 1.4rem, 6rem);
  --fs-h2: clamp(2.1rem, 2.6vw + 1.2rem, 3.75rem);
  --fs-h3: clamp(1.3rem, 0.6vw + 1.1rem, 1.7rem);
  --fs-lead: clamp(1.05rem, 0.5vw + 0.9rem, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.8125rem;

  --space-section: clamp(5rem, 9vw, 9.5rem);
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --container-max: 1360px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --radius-s: 6px;
  --radius-m: 14px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  background: var(--ink) !important;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--volt);
  color: var(--ink);
}

:focus-visible {
  outline: 1.5px solid var(--volt);
  outline-offset: 3px;
}

/* custom scrollbar (webkit) */
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: #33302b;
  border: 3px solid var(--ink);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--volt-30);
}
html {
  scrollbar-color: #33302b var(--ink);
  scrollbar-width: thin;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* tabular numerals for anything scoreboard-like */
.tnum {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Global texture layers
   ========================================================================== */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 1.5px solid var(--volt-70);
  z-index: 95;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.3s ease, background-color 0.25s ease;
  will-change: transform;
}
.cursor-dot.is-active {
  background: var(--volt-30);
}
.cursor-dot.is-hidden {
  opacity: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-s);
  isolation: isolate;
  transition: filter 0.4s var(--ease-out-quart);
}

.btn--solid {
  background: var(--volt);
  color: var(--ink);
}
.btn--solid:hover {
  filter: drop-shadow(0 0 16px var(--volt-30));
}

.btn--ghost {
  border: 1px solid var(--paper-18);
  color: var(--paper);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.btn--ghost:hover {
  border-color: var(--volt-70);
  background: var(--volt-14);
}

/* The "empreinte numérique" signature: every button carries an actual
   fingerprint mark. At rest it reads as a quiet identity glyph; on hover a
   scanner line reads it once; on click it flashes cyan, like a successful
   scan — the literal digital fingerprint the whole site is named for. */
.btn-fp {
  position: relative;
  width: 19px;
  height: 19px;
  flex: none;
  overflow: hidden;
}
.btn-fp svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.85;
  transition: stroke 0.4s ease, opacity 0.3s ease;
}
.btn-fp svg .btn-fp-core {
  fill: currentColor;
  stroke: none;
  transition: fill 0.4s ease;
}
.btn-fp-scan {
  position: absolute;
  left: -20%;
  top: 0;
  width: 140%;
  height: 1.5px;
  background: var(--volt);
  box-shadow: 0 0 6px 1px var(--volt-70);
  transform: translateY(-4px);
  opacity: 0;
}
.btn:hover .btn-fp-scan {
  animation: btn-fp-sweep 0.75s var(--ease-out-quart);
}
@keyframes btn-fp-sweep {
  0% {
    transform: translateY(-4px);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateY(21px);
    opacity: 0;
  }
}
.btn.is-scanned .btn-fp svg {
  stroke: var(--volt);
  opacity: 1;
}
.btn.is-scanned .btn-fp-core {
  fill: var(--volt);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding-bottom: 0.15em;
  border-bottom: 1px solid var(--paper-18);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.link-arrow svg {
  transition: transform 0.35s var(--ease-out-quart);
  width: 15px;
  height: 15px;
}
.link-arrow:hover {
  color: var(--volt);
  border-color: var(--volt-70);
}
.link-arrow:hover svg {
  transform: translate(3px, 3px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding-block: clamp(1.1rem, 2vw, 1.5rem);
  background: linear-gradient(180deg, rgba(22, 21, 19, 0.98) 0%, rgba(22, 21, 19, 0.94) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-10);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--paper-18);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}
.site-header.is-scrolled .header-inner {
  transform: scale(0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 3rem);
  transform-origin: center top;
  transition: transform 0.4s var(--ease-out-quart);
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: clamp(48px, 6vw, 68px);
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 2.4vw, 2.8rem);
}
.main-nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--paper-10);
  transition: color 0.25s ease, border-color 0.3s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1.5px;
  background: var(--volt);
  box-shadow: 0 0 8px 1px var(--volt-30);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-quart);
}
.main-nav a:hover {
  color: var(--volt);
  border-color: transparent;
}
.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.header-cta {
  padding: 0.8em 1.6em;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
}
.nav-toggle span {
  height: 1.5px;
  width: 100%;
  background: var(--paper);
  transition: transform 0.35s var(--ease-out-quart), opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 10px var(--volt-70);
}

/* Mobile fullscreen nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh var(--gutter);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 0.65s var(--ease-out-quart);
}
.mobile-nav.is-open {
  pointer-events: auto;
  clip-path: inset(0 0 0% 0);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper-45);
  display: inline-block;
  transition: color 0.3s ease;
}
.mobile-nav a:hover {
  color: var(--paper);
}
.mobile-nav .mobile-nav-foot {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  color: var(--paper-45);
  font-size: 0.85rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(8rem, 15vh, 10.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -6% -6%;
  z-index: 0;
  background: linear-gradient(180deg, rgba(22, 21, 19, 0.55) 0%, rgba(22, 21, 19, 0.88) 55%, var(--ink) 100%),
    url("../img/hero-bg.webp") center 60% / cover no-repeat;
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero-heading .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero-heading .line span {
  display: inline-block;
  will-change: transform;
}
.hero-heading .accent {
  color: var(--volt);
}

.hero-sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--paper-10);
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--paper-70);
  max-width: 32ch;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.hero-transition-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--paper-10);
  z-index: 1;
}
.hero-transition-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--volt);
  box-shadow: 0 0 10px 1px var(--volt-70);
}
.hero-transition-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 14px 3px var(--volt-70);
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-head p {
  max-width: 34ch;
  color: var(--paper-70);
  font-size: 1.02rem;
}

.reveal-mask {
  overflow: hidden;
}
.reveal-mask > * {
  display: inline-block;
  will-change: transform;
}

/* ==========================================================================
   Gallery — "Terrains"
   ========================================================================== */

.gallery {
  position: relative;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.gallery-pin {
  position: sticky;
  top: 7.5rem;
  align-self: start;
}
.gallery-pin h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.2rem;
}
.gallery-pin p {
  color: var(--paper-70);
  max-width: 30ch;
  margin-bottom: 2rem;
}
.gallery-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
}
.gallery-count .num {
  font-size: 3rem;
  font-weight: 600;
  color: var(--volt);
}
.gallery-count .label {
  font-size: 0.8rem;
  color: var(--paper-45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 12ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.6rem);
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  clip-path: inset(0 0 0 0);
}
.gallery-item.size-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink-2);
}

.gallery-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gallery-item.is-hovering .gallery-card canvas {
  opacity: 1;
}
.gallery-item.is-hovering .gallery-photo {
  opacity: 0;
}

.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3%;
  box-sizing: border-box;
  background: radial-gradient(120% 130% at 30% 20%, #26241f 0%, var(--ink-2) 62%);
  transition: opacity 0.4s ease;
}

.gallery-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.9rem;
}
.gallery-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.gallery-tag {
  font-size: 0.82rem;
  color: var(--paper-45);
}
.gallery-item:hover .gallery-name {
  color: var(--volt);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  border-top: 1px solid var(--paper-10);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.services-pin {
  position: sticky;
  top: 7.5rem;
  align-self: start;
}
.services-pin h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.2rem;
}
.services-pin p {
  color: var(--paper-70);
  max-width: 30ch;
  margin-bottom: 2.4rem;
}

.services-index {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.services-index button {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  color: var(--paper-45);
  font-family: var(--font-display);
  font-size: 0.92rem;
  transition: color 0.3s ease;
}
.services-index button .tick {
  width: 2.4rem;
  height: 1px;
  background: var(--paper-18);
  transform: scaleX(0.667);
  transform-origin: left;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.services-index button.is-active {
  color: var(--paper);
}
.services-index button.is-active .tick {
  background: var(--volt);
  transform: scaleX(1);
}

.services-panels {
  display: flex;
  flex-direction: column;
}

.service-panel {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--paper-10);
}
.service-panel:last-child {
  border-bottom: 1px solid var(--paper-10);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--volt);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.service-panel h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.service-panel p {
  color: var(--paper-70);
  max-width: 52ch;
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.service-tags span {
  font-size: 0.78rem;
  padding: 0.45em 0.9em;
  border: 1px solid var(--paper-18);
  border-radius: 999px;
  color: var(--paper-70);
}

/* ==========================================================================
   Avis — Podium
   ========================================================================== */

.reviews {
  border-top: 1px solid var(--paper-10);
  position: relative;
  overflow: hidden;
}
.reviews-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(22, 21, 19, 0.55) 40%, var(--ink) 100%),
    url("../img/avis-bg.webp") center 35% / cover no-repeat;
  opacity: 0.5;
  will-change: transform;
}

.reviews-inner {
  position: relative;
  z-index: 1;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.reviews-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.rating-badge .score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--volt);
}
.rating-badge .meta {
  font-size: 0.85rem;
  color: var(--paper-70);
  max-width: 16ch;
}
.rating-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.3rem;
}
.rating-stars svg {
  width: 14px;
  height: 14px;
}
.rating-stars svg path {
  fill: var(--volt);
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: clamp(1rem, 2vw, 1.75rem);
  max-width: 1080px;
  margin-inline: auto;
}

.podium-step {
  display: flex;
  flex-direction: column;
}

.podium-card {
  background: rgba(28, 26, 23, 0.82);
  border: 1px solid var(--paper-10);
  border-radius: var(--radius-m);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  backdrop-filter: blur(6px);
}

.podium-quote {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1vw, 1.15rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}

.podium-person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.podium-person strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.podium-person span {
  display: block;
  font-size: 0.8rem;
  color: var(--paper-45);
}

.podium-plinth {
  margin-top: 1.1rem;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  background: linear-gradient(180deg, rgba(13, 251, 255, 0.12), rgba(13, 251, 255, 0) 70%);
  border-top: 1px solid var(--volt-30);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--paper-45);
}

.podium-step[data-rank="1"] .podium-plinth { height: 128px; }
.podium-step[data-rank="2"] .podium-plinth { height: 84px; }
.podium-step[data-rank="3"] .podium-plinth { height: 56px; }
.podium-step[data-rank="1"] { transform: translateY(0); }

/* ==========================================================================
   Team — Partenaires
   ========================================================================== */

.team {
  border-top: 1px solid var(--paper-10);
}

.founder {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--paper-10);
}
.founder-photo {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--volt-30);
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}
.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.founder-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 0.7rem;
}
.founder-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.founder-info .team-role {
  font-size: 0.85rem;
  color: var(--paper-45);
  margin-bottom: 1.1rem;
}
.founder-info .team-bio {
  color: var(--paper-70);
  font-size: 1.03rem;
  max-width: 58ch;
}


.team-row {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--paper-10);
}

.team-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--volt);
  margin-bottom: 0.9rem;
}

.team-row h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.35s ease;
}
.team-row:hover h3 {
  color: var(--volt);
}

.team-role {
  font-size: 0.85rem;
  color: var(--paper-45);
  margin-top: 0.5rem;
}

.team-row-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.team-bio {
  color: var(--paper-70);
  font-size: 1.02rem;
  max-width: 54ch;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  border-top: 1px solid var(--paper-10);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.faq-list {
  border-top: 1px solid var(--paper-10);
}

.faq-item {
  border-bottom: 1px solid var(--paper-10);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 500;
}

.faq-icon {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--paper);
  transition: transform 0.35s var(--ease-out-quart), background-color 0.3s ease;
}
.faq-icon::before {
  width: 100%;
  height: 1px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1px;
  height: 100%;
  transform: translate(-50%, -50%);
}
.faq-item[data-open="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  background: var(--volt);
}
.faq-item[data-open="true"] .faq-icon::before {
  background: var(--volt);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out-quart);
}
.faq-item[data-open="true"] .faq-answer-wrap {
  grid-template-rows: 1fr;
}
.faq-answer-inner {
  overflow: hidden;
}
.faq-answer {
  padding-bottom: 1.6rem;
  max-width: 62ch;
  color: var(--paper-70);
  font-size: 0.98rem;
}
.faq-answer-inner .faq-answer:has(+ .faq-steps) {
  padding-bottom: 1rem;
}

.faq-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 1.8rem 1.1rem;
  border-left: 1px solid var(--paper-18);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 62ch;
}
.faq-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  color: var(--paper-70);
  font-size: 0.95rem;
}
.faq-steps .step-num {
  flex: none;
  width: 1.3rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--volt);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  border-top: 1px solid var(--paper-10);
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(22, 21, 19, 0.6) 45%, var(--ink) 100%),
    url("../img/contact-bg.webp") center 40% / cover no-repeat;
  opacity: 0.35;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact-heading {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 13ch;
  margin-bottom: 0.9rem;
}
.contact-lead {
  color: var(--paper-70);
  font-size: 1.05rem;
  max-width: 34ch;
  margin-bottom: 2rem;
}

.contact-detail {
  margin-bottom: 1.6rem;
}
.contact-detail span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-45);
  margin-bottom: 0.4rem;
}
.contact-detail a,
.contact-detail p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
}
.contact-detail a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact-detail a:hover {
  color: var(--volt);
  border-color: var(--volt-70);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.contact-channel {
  width: 100%;
  justify-content: flex-start;
  padding: 1.1em 1.4em;
}
.contact-channel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.contact-channel-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-45);
}
.contact-channel-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  transition: color 0.3s ease;
}
.contact-channel:hover .contact-channel-value {
  color: var(--volt);
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.closing {
  border-top: 1px solid var(--paper-10);
  padding-block: clamp(5rem, 12vw, 10rem);
  text-align: center;
}
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-inline: auto;
  line-height: 1.05;
}
.closing .btn {
  margin-top: 2.4rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--paper-10);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-brand .logo {
  margin-bottom: 1rem;
}
.footer-brand .logo img {
  height: 34px;
}
.footer-brand p {
  color: var(--paper-45);
  font-size: 0.9rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-45);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  font-size: 0.92rem;
  color: var(--paper-70);
  transition: color 0.25s ease;
}
.footer-col a:hover {
  color: var(--volt);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--paper-10);
  font-size: 0.8rem;
  color: var(--paper-45);
  flex-wrap: wrap;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a:hover {
  color: var(--volt);
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--paper-18);
  background: rgba(22, 21, 19, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--volt-70);
  color: var(--volt);
}
.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .gallery-layout,
  .services-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .gallery-pin,
  .services-pin {
    position: relative;
    top: 0;
    margin-bottom: 2.5rem;
  }
  .services-index {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .team-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .founder {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .founder-photo {
    max-width: 260px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.size-feature {
    grid-column: span 2;
    grid-row: span 1;
  }
  .podium {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 420px;
  }
  .podium-step {
    flex-direction: column-reverse;
  }
  .podium-step .podium-plinth {
    display: none;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.size-feature {
    grid-column: span 1;
    grid-row: span 1;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .rating-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ==========================================================================
   Legal pages (mentions légales, politique de confidentialité)
   ========================================================================== */

.legal-page {
  padding-top: clamp(8rem, 15vh, 10.5rem);
  padding-bottom: var(--space-section);
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-bottom: 1.4rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  margin-bottom: 0.9rem;
  border-top: 1px solid var(--paper-10);
}

.legal-content h1 + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content p {
  color: var(--paper-70);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 62ch;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.2em;
  margin-bottom: 1rem;
  max-width: 62ch;
}

.legal-content li {
  color: var(--paper-70);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--volt);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-content strong {
  color: var(--paper);
  font-weight: 600;
}
