/* ─── Tokens ─── */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --fg: #f5f5f0;
  --fg-muted: rgba(245, 245, 240, 0.55);
  --fg-subtle: rgba(245, 245, 240, 0.28);
  --border: rgba(245, 245, 240, 0.1);
  --accent: #ffffff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

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

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.92), transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-mark {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.header-cta:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-1px);
}

.header-cta svg {
  transition: transform 0.4s var(--ease-out);
}

.header-cta:hover svg {
  transform: translateX(3px);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.45s var(--ease-out);
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
}

.btn--primary:hover {
  background: transparent;
  color: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

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

.btn--large {
  padding: 1.15rem 2.25rem;
  font-size: 0.9rem;
}

/* ─── Typography helpers ─── */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-title--compact {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.section-body {
  max-width: 42ch;
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ─── Reveal (état géré par GSAP, fallback visible) ─── */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Hero ─── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.hero-inner {
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 1.75rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.hero-line {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero-line--accent {
  font-style: italic;
  color: var(--fg-muted);
  margin-left: clamp(0rem, 7vw, 3.5rem);
}

.hero-lead {
  max-width: 40ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── Portrait ─── */
.portrait-section {
  padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}

.portrait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.portrait-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.02);
  transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}

.portrait-frame:hover .portrait-photo {
  filter: grayscale(20%) contrast(1.02);
  transform: scale(1.05);
}

.portrait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 2rem;
}

.portrait-tags li {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
}

/* ─── Media placeholders ─── */
.media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 9px
    ),
    #141414;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--fg-muted);
  text-align: center;
  padding: 2rem;
  transition: border-color 0.4s var(--ease-out);
}

.media-placeholder:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.placeholder-icon {
  font-size: 1.5rem;
  opacity: 0.35;
}

.placeholder-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}

.placeholder-hint {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--fg-subtle);
  max-width: 20ch;
}

.media-placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.media-placeholder--video {
  aspect-ratio: 16 / 9;
}

/* ─── Pillars ─── */
.pillars {
  padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  max-width: 1320px;
  margin: 0 auto;
}

.pillars-intro {
  margin-bottom: clamp(3rem, 6vh, 5rem);
  max-width: 600px;
}

.pillars-lead {
  margin-top: 1.25rem;
}

.pillar {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vh, 6rem);
}

.pillar--reverse {
  direction: rtl;
}

.pillar--reverse > * {
  direction: ltr;
}

.pillar-index {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--fg-subtle);
  margin-bottom: 0.75rem;
}

.pillar-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.pillar-body {
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 38ch;
}

.pillar-media--portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}

.vimeo-embed {
  position: relative;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--border);
}

.vimeo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vimeo-embed--landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.vimeo-embed--portrait {
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
}

@media (min-width: 901px) {
  .pillar-media--portrait .vimeo-embed--portrait {
    width: min(100%, 480px);
  }
}

/* ─── Contact ─── */
.contact {
  position: relative;
  padding: clamp(6rem, 14vh, 10rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.contact-title--neon {
  font-style: italic;
  color: var(--fg);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.55),
    0 0 20px rgba(255, 255, 255, 0.35),
    0 0 48px rgba(255, 255, 255, 0.18);
  animation: neon-glow 3s ease-in-out infinite;
}

@keyframes neon-glow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.45),
      0 0 18px rgba(255, 255, 255, 0.28),
      0 0 36px rgba(255, 255, 255, 0.12);
    opacity: 0.88;
  }

  50% {
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.85),
      0 0 28px rgba(255, 255, 255, 0.55),
      0 0 56px rgba(255, 255, 255, 0.28),
      0 0 90px rgba(255, 255, 255, 0.12);
    opacity: 1;
  }
}

.contact-lead {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-links a {
  color: var(--fg-muted);
  transition: color 0.3s;
}

.contact-links a:hover {
  color: var(--fg);
}

.contact-sep {
  color: var(--fg-subtle);
}

/* ─── Contact sheet ─── */
.contact-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.contact-sheet[hidden] {
  display: none;
}

.contact-sheet.is-open {
  pointer-events: auto;
}

.contact-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}

.contact-sheet.is-open .contact-sheet-backdrop {
  opacity: 1;
}

.contact-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 92svh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vh, 3rem);
  transform: translateY(100%);
  transition: transform 0.55s var(--ease-out);
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.45);
}

.contact-sheet.is-open .contact-sheet-panel {
  transform: translateY(0);
}

.contact-sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 1.25rem;
  border-radius: 100px;
  background: var(--border);
}

.contact-sheet-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.contact-sheet-close:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.contact-sheet-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 0.75rem;
}

.contact-sheet-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.contact-sheet-intro {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.form-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.form-help-wrap {
  position: relative;
  flex-shrink: 0;
}

.form-help {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.form-help-wrap:hover .form-help,
.form-help-wrap:focus-within .form-help {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.form-help-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  z-index: 20;
  width: 240px;
  max-width: min(260px, calc(100vw - 2.5rem));
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-muted);
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), visibility 0.2s var(--ease-out);
}

.form-help-tip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 4px;
  border: 6px solid transparent;
  border-bottom-color: var(--border);
}

.form-help-wrap:hover .form-help-tip,
.form-help-wrap:focus-within .form-help-tip {
  opacity: 1;
  visibility: visible;
}

.form-help-wrap--center .form-help-tip {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.form-help-wrap--center .form-help-tip::before {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, background 0.3s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-subtle);
}

.form-field input[type="date"] {
  color-scheme: dark;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: rgba(255, 120, 120, 0.6);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f5f5f0' stroke-opacity='0.4' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.75rem;
  color: #ff8a8a;
  min-height: 1rem;
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.contact-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-sheet-success {
  text-align: center;
  padding: 2rem 0 1rem;
}

.contact-sheet-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg);
}

.contact-sheet-success-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.contact-sheet-success-text {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 36ch;
  margin: 0 auto 2rem;
}

/* ─── Footer ─── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .contact-sheet-backdrop,
  .contact-sheet-panel {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .portrait-grid,
  .pillar {
    grid-template-columns: 1fr;
  }

  .pillar--reverse {
    direction: ltr;
  }

  .hero-line--accent {
    margin-left: 0;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
