/*
 * Juste Magnus — esthétique « maison horlogère » (inspiration éditoriale type rolex.com/fr)
 * Fonds crème, vert profond, serif élégant — sans reprendre l’identité Rolex.
 */
:root {
  --bg: #f4f2ec;
  --bg-elevated: #ebe8e0;
  --surface: #ffffff;
  --text: #1c1c1c;
  --text-muted: #5a5852;
  --accent: #127749;
  --accent-dim: #0d4a36;
  --accent-soft: rgba(18, 119, 73, 0.08);
  --gold: #9a7b4a;
  --gold-soft: rgba(154, 123, 74, 0.2);
  /* Alias héritage (ancien thème néon → vert / or) */
  --neon-rose: var(--gold);
  --neon-violet: var(--accent);
  --line: rgba(28, 28, 28, 0.08);
  --mist: rgba(18, 119, 73, 0.06);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-brand: "Cormorant Garamond", Georgia, serif;
  --font-nav-tech: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-mist: cubic-bezier(0.45, 0, 0.15, 1);
  --radius: 0;
  --section-y: clamp(2.75rem, 6vw, 4.5rem);
  --gap-tight: 0.75rem;
  --gap-md: 1rem;
  --hero-fg: #faf9f6;
  --hero-fg-muted: rgba(250, 249, 246, 0.78);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, #faf9f6 0%, var(--bg) 35%, #f0ede6 100%);
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  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");
  mix-blend-mode: multiply;
  will-change: transform;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: radial-gradient(ellipse 85% 70% at 50% 50%, transparent 55%, rgba(44, 42, 38, 0.04) 100%);
  will-change: transform;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header — sobre, type site horloger (clair au scroll, clair sur hero vidéo) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem min(4vw, 2rem);
  background: transparent;
  transition: background 0.45s var(--ease-mist), backdrop-filter 0.45s, border-color 0.45s, box-shadow 0.45s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header:not(.is-scrolled) {
  border-bottom-color: rgba(250, 249, 246, 0.12);
}

.logo {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo__mark {
  color: var(--accent);
}

.logo__prefix {
  color: var(--hero-fg);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.logo__accent {
  color: rgba(200, 230, 210, 0.98);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.header.is-scrolled .logo__prefix {
  color: var(--text);
  text-shadow: none;
}

.header.is-scrolled .logo__accent {
  color: var(--accent);
  text-shadow: none;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.nav a {
  font-family: var(--font-nav-tech);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav a:hover {
  color: var(--hero-fg);
  opacity: 1;
}

.header.is-scrolled .nav a {
  color: var(--text-muted);
  text-shadow: none;
}

.header.is-scrolled .nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--hero-fg);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.header.is-scrolled .nav-toggle span {
  background: var(--text);
  box-shadow: none;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  /* Le blur du header au scroll ne doit pas « manger » le fond du tiroir (bug WebKit / stacking) */
  .header:has(.nav.is-open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header:has(.nav.is-open).is-scrolled {
    background: var(--surface);
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    width: min(300px, 85vw);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    isolation: isolate;
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  /* Panneau latéral = fond clair : liens toujours lisibles (pas la variante « hero » blanche) */
  .nav a {
    color: var(--text-muted);
    text-shadow: none;
  }

  .nav a:hover {
    color: var(--accent);
  }

  .nav a[aria-current="page"] {
    color: var(--accent);
    text-shadow: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 6rem min(4vw, 2rem) 3rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.hero__media-layer {
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  overflow: hidden;
  transform-origin: 50% 40%;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  transform-origin: center center;
}

.hero__bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 22, 18, 0.35) 0%, rgba(8, 14, 12, 0.2) 38%, rgba(6, 18, 14, 0.75) 100%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(4, 28, 20, 0.55) 0%, transparent 58%);
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero__bg {
    inset: -15%;
    background: linear-gradient(180deg, #1a2e28 0%, #0d1f1a 100%);
  }

  .hero__bg-scrim {
    background: linear-gradient(180deg, rgba(10, 18, 15, 0.75) 0%, rgba(8, 14, 12, 0.88) 100%);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: min(38rem, 92vw);
  margin-right: auto;
  margin-left: 0;
  padding-left: min(2vw, 1rem);
}

.hero__eyebrow {
  font-family: var(--font-nav-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(200, 228, 210, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.35rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 7.5vw, 4.1rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 1.35rem;
  letter-spacing: 0.01em;
  color: var(--hero-fg);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero__title span {
  display: block;
}

.hero .hero__title-accent {
  font-style: italic;
  font-weight: 500;
  color: rgba(230, 245, 235, 0.98);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  margin-top: 0.08em;
}

/* Accent titres hors hero (ex. Contact) */
.section__title .hero__title-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  text-shadow: none;
  margin-top: 0;
}

.hero__lead {
  max-width: 28rem;
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--hero-fg-muted);
  margin: 0 0 1.85rem;
  font-style: normal;
  line-height: 1.68;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  right: min(4vw, 2rem);
  left: auto;
  z-index: 2;
  will-change: transform;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.55);
  writing-mode: horizontal-tb;
}

.hero__scroll-line {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 228, 210, 0.45), transparent);
  animation: scrollPulse 3.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.4s var(--ease-mist), color 0.35s, border-color 0.35s;
}

.hero .btn--primary {
  background: var(--accent);
  color: #faf9f6;
  border-color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 0.95rem 1.65rem;
}

.hero .btn--primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #faf9f6;
}

.hero .btn--ghost {
  color: var(--hero-fg);
  border-color: rgba(250, 249, 246, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.hero .btn--ghost:hover {
  border-color: var(--hero-fg);
  color: var(--hero-fg);
  background: rgba(250, 249, 246, 0.06);
}

.btn--primary {
  background: var(--accent);
  color: #faf9f6;
  border-color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.btn--primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #faf9f6;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--line);
  letter-spacing: 0.06em;
}

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

.btn--full {
  width: 100%;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 {
  transition-delay: 0.08s;
}
.reveal--delay-2 {
  transition-delay: 0.16s;
}
.reveal--delay-3 {
  transition-delay: 0.24s;
}
.reveal--delay-4 {
  transition-delay: 0.32s;
}
.reveal--delay-5 {
  transition-delay: 0.4s;
}

/* Chiffres — bande crème sobre */
.section--cipher {
  padding: 2.25rem 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, #faf9f6 0%, var(--bg) 100%);
}

.cipher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.cipher__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.cipher__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: clamp(1.35rem, 3vw, 1.75rem) clamp(1rem, 2.5vw, 1.35rem);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 36px rgba(28, 28, 28, 0.04);
}

.cipher__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.25rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.cipher__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.cipher__mark-svg {
  width: 2.75rem;
  height: 2.75rem;
  opacity: 0.9;
}

.cipher__stat {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
}

.cipher__stat--zero {
  letter-spacing: 0.12em;
}

.cipher__label {
  margin: 0;
  max-width: 13.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .cipher {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Confiance */
.section--trust {
  padding-top: calc(var(--section-y) * 0.85);
  padding-bottom: calc(var(--section-y) * 0.95);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section__head--center {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
}

.trust-logos-band {
  margin: 0 calc(-1 * min(4vw, 1.5rem));
  padding: 1.1rem clamp(0.75rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Mur de logos : même surface par logo + centrage au centre de la carte */
.trust-logos-grid {
  --trust-gap-x: 1.5rem;
  --trust-gap-y: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--trust-gap-x);
  row-gap: var(--trust-gap-y);
  align-items: stretch;
  justify-items: stretch;
  padding: 0.75rem 0;
  margin: 0;
  list-style: none;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
}

.trust-logos__item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 4rem;
  aspect-ratio: 2 / 1;
  padding: 0.55rem 0.65rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(28, 28, 28, 0.06);
}

/* Zone utile : le flex + min-height:0 permet à max-height:100% sur l’img de fonctionner ; zéro dépassement */
.trust-logos__inner {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trust-logos__item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  -webkit-filter: none;
  filter: none;
  opacity: 0.62;
  transition: filter 0.45s var(--ease-mist), opacity 0.35s;
}

/* Wordmarks clairs dans le SVG → monochrome foncé sur fond crème */
.trust-logos__item img[src*="arev"],
.trust-logos__item img[src*="byblos"],
.trust-logos__item img[src*="eden-rock"],
.trust-logos__item img[src*="mugler"],
.trust-logos__item img[src*="bentley"],
.trust-logos__item img[src*="loreal"],
.trust-logos__item img[src*="saint-laurent"] {
  -webkit-filter: brightness(0) saturate(0);
  filter: brightness(0) saturate(0);
  opacity: 0.58;
}

/* Logos couleur */
.trust-logos__item img[src*="schweppes"],
.trust-logos__item img[src*="carnival"] {
  -webkit-filter: none;
  filter: none;
  opacity: 0.75;
}

.trust-logos__item:hover img {
  -webkit-filter: none;
  filter: none;
  opacity: 0.92;
}

.trust-logos__item:hover img[src*="arev"],
.trust-logos__item:hover img[src*="byblos"],
.trust-logos__item:hover img[src*="eden-rock"],
.trust-logos__item:hover img[src*="mugler"],
.trust-logos__item:hover img[src*="bentley"],
.trust-logos__item:hover img[src*="loreal"],
.trust-logos__item:hover img[src*="saint-laurent"] {
  -webkit-filter: brightness(0) saturate(0);
  filter: brightness(0) saturate(0);
  opacity: 0.88;
}

.trust-logos__item:hover img[src*="schweppes"],
.trust-logos__item:hover img[src*="carnival"] {
  opacity: 0.92;
}

.trust-logos-note {
  margin: 1rem auto 0;
  max-width: 32rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .trust-logos-band {
    margin-left: 0;
    margin-right: 0;
  }

  .trust-logos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --trust-gap-x: 1.25rem;
    --trust-gap-y: 1.05rem;
    max-width: none;
  }

  .trust-logos__item {
    min-height: 3.5rem;
    aspect-ratio: 2 / 1;
    padding: 0.45rem 0.5rem;
  }
}

/* Dernière ligne : un seul logo = largeur d’une colonne, centré (sans casser la grille) */
@media (min-width: 901px) {
  .trust-logos__item:nth-child(4n + 1):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 3 * var(--trust-gap-x)) / 4);
    max-width: calc((100% - 3 * var(--trust-gap-x)) / 4);
  }
}

@media (max-width: 900px) and (min-width: 601px) {
  .trust-logos__item:nth-child(3n + 1):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 2 * var(--trust-gap-x)) / 3);
    max-width: calc((100% - 2 * var(--trust-gap-x)) / 3);
  }
}

@media (max-width: 600px) {
  .trust-logos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --trust-gap-x: 1rem;
    --trust-gap-y: 1rem;
  }

  .trust-logos__item {
    min-height: 3.15rem;
    aspect-ratio: 2 / 1;
    padding: 0.4rem 0.45rem;
  }

  .trust-logos__item:nth-child(2n + 1):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 1 * var(--trust-gap-x)) / 2);
    max-width: calc((100% - 1 * var(--trust-gap-x)) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-logos__item:hover img {
    opacity: 0.88;
  }
}

/* Sections */
.section {
  padding: var(--section-y) 0;
}

.section__head {
  margin-bottom: 1.5rem;
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-md);
}

.section__eyebrow {
  font-family: var(--font-nav-tech);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--text);
}

.section__head--center .section__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  text-align: center;
}

.section__title-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.section__title-icon-svg {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
}

.section__title-icon-svg--dial {
  animation: sectionIconFloat 5s ease-in-out infinite;
}

.section__title-icon-svg--shield {
  animation: sectionIconFloat 5.5s ease-in-out infinite;
  animation-delay: -1.2s;
}

.section__title-icon-svg--film {
  animation: sectionIconTilt 6s ease-in-out infinite;
}

.section__title-icon-svg--grid {
  animation: sectionIconPulse 4.5s ease-in-out infinite;
  animation-delay: -0.8s;
}

@keyframes sectionIconFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes sectionIconTilt {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-4px);
  }
}

@keyframes sectionIconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(155, 138, 184, 0.35));
  }
}

@media (prefers-reduced-motion: reduce) {
  .section__title-icon-svg--dial,
  .section__title-icon-svg--shield,
  .section__title-icon-svg--film,
  .section__title-icon-svg--grid {
    animation: none;
  }
}

.section__head--offset {
  max-width: 28rem;
  margin-bottom: 2rem;
}

/* Expertise — colonnes, sans cartes */
.expertise-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.expertise-col {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-left: 1px solid transparent;
}

.expertise-col:first-child {
  padding-right: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.expertise-col:last-child {
  padding-left: clamp(1rem, 3vw, 2rem);
}

.expertise-col__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: normal;
  margin: 0 0 1rem;
  color: var(--text);
}

.expertise-col__text {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.expertise-col__aside {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-dim);
  margin: 0;
  font-style: normal;
}

@media (max-width: 768px) {
  .expertise-split {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .expertise-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1.75rem;
  }

  .expertise-col:last-child {
    padding-left: 0;
    padding-top: 1.75rem;
  }
}

/* Showreel */
.section--showreel {
  padding: 0;
}

.showreel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}

@media (max-width: 900px) {
  .showreel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.showreel__media {
  min-height: 260px;
}

.showreel__placeholder {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background:
    linear-gradient(145deg, rgba(60, 45, 90, 0.35) 0%, transparent 55%),
    linear-gradient(225deg, rgba(15, 12, 28, 0.9), var(--bg-elevated));
  border-right: 1px solid var(--line);
}

.showreel__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.92;
}

.showreel__play {
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease-mist), box-shadow 0.5s;
}

.showreel__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-32%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--accent);
}

.showreel__placeholder:hover .showreel__play {
  transform: scale(1.06);
  box-shadow: 0 0 48px rgba(100, 80, 140, 0.35);
}

.showreel__caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text-muted);
  margin: 0;
}

.showreel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem min(4vw, 2rem);
}

.showreel__text {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .showreel__canvas {
    display: none;
  }
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-tight);
}

.work-item--wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item--wide {
    grid-column: span 1;
  }
}

.work-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.35s, transform 0.45s var(--ease-out);
}

.work-item:hover {
  border-color: rgba(155, 138, 184, 0.35);
  transform: translateY(-3px);
}

.work-item--shift {
  transform: translateY(1.25rem);
}

@media (max-width: 768px) {
  .work-item--shift {
    transform: none;
  }
}

.work-item__img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    145deg,
    hsl(var(--hue, 260), 22%, 16%) 0%,
    hsl(calc(var(--hue, 260) + 35), 18%, 9%) 100%
  );
  transition: transform 0.65s var(--ease-mist);
}

.work-item:hover .work-item__img {
  transform: scale(1.04);
}

.work-item__meta {
  padding: 0.85rem 1rem 1rem;
}

.work-item__cat {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent-dim);
}

.work-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.15rem;
}

.work-item__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.link-arrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
  transition: color 0.35s var(--ease-mist);
}

.link-arrow::after {
  content: " →";
  transition: transform 0.25s;
  display: inline-block;
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Contact */
.section--contact {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0 calc(var(--section-y) * 1.1);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #faf9f6 0%, var(--bg) 45%, #f2efe8 100%);
  scroll-margin-top: 5rem;
}

.section--contact::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse 50% 42% at 70% 20%, rgba(18, 119, 73, 0.06) 0%, transparent 55%);
  pointer-events: none;
  animation: contactAura 22s ease-in-out infinite alternate;
}

@keyframes contactAura {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(3%, -5%, 0) scale(1.04);
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section--contact::before {
    animation: none;
  }
}

.contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.contact__text {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__field span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
}

.form__field input,
.form__field textarea {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.25s;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(138, 135, 128, 0.7);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: rgba(18, 119, 73, 0.35);
}

.form__field--full {
  grid-column: span 2;
}

.form .btn--full {
  grid-column: span 2;
  margin-top: 0;
}

@media (max-width: 600px) {
  .form {
    grid-template-columns: 1fr;
  }

  .form__field--full,
  .form .btn--full {
    grid-column: span 1;
  }
}

/* Contact */
.contact-layout {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.contact-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-sub {
  max-width: 34rem;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-sub em {
  color: var(--accent-dim);
  font-style: italic;
  font-weight: 500;
}

.contact-mail-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 1.75rem;
  min-width: min(100%, 20rem);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(18, 119, 73, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.contact-mail-chip:hover {
  border-color: rgba(18, 119, 73, 0.35);
  box-shadow: 0 12px 40px rgba(18, 119, 73, 0.12);
  transform: translateY(-2px);
}

.contact-mail-chip__label {
  font-family: var(--font-nav-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-mail-chip__addr {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Footer — bandeau sombre type maison horlogère */
.footer {
  padding: 2rem 0 2.25rem;
  border-top: none;
  background: linear-gradient(180deg, #0f3d2f 0%, #0a2e24 100%);
  color: rgba(250, 249, 246, 0.92);
}

.footer__inner {
  text-align: center;
}

.footer__brand {
  font-family: var(--font-brand);
  font-size: 1.12rem;
  font-style: normal;
  font-weight: 600;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.footer .logo__prefix {
  color: rgba(250, 249, 246, 0.95);
  text-shadow: none;
}

.footer .logo__accent {
  color: rgba(200, 228, 210, 0.95);
  text-shadow: none;
}

.footer__tagline {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(250, 249, 246, 0.55);
  margin: 0 0 0.65rem;
}

.footer__legal {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(250, 249, 246, 0.4);
  margin: 0;
  opacity: 1;
}

.nav a[aria-current="page"] {
  color: var(--hero-fg);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.header.is-scrolled .nav a[aria-current="page"] {
  color: var(--accent);
  text-shadow: none;
}

/* Page productions */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.productions-page {
  padding-top: 4.5rem;
}

.productions-hero {
  padding: clamp(2.5rem, 8vw, 4rem) min(4vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.productions-hero--home {
  padding-top: clamp(1.75rem, 5vw, 2.75rem);
  scroll-margin-top: 5rem;
}

.productions-hero__eyebrow {
  font-family: var(--font-nav-tech);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.productions-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.productions-hero__title .section__title-icon-svg {
  width: clamp(2rem, 5vw, 2.75rem);
  height: clamp(2rem, 5vw, 2.75rem);
}

.section__title--productions-grid {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  justify-content: flex-start;
  text-align: left;
}

.section--productions .section__title--productions-grid {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.productions-hero__lead {
  max-width: 40rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.productions-hero__note {
  max-width: 36rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin: 0;
  line-height: 1.55;
}

.section--productions {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: var(--section-y);
}

.section--productions-home {
  padding-top: clamp(1rem, 3vw, 1.65rem);
}

.productions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.production-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.35s var(--ease-mist), box-shadow 0.45s var(--ease-mist);
}

.production-card:hover {
  border-color: rgba(18, 119, 73, 0.22);
  box-shadow: 0 14px 44px rgba(18, 119, 73, 0.07);
}

.production-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050508;
}

.production-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.production-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.production-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.production-card__tag {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0;
  text-transform: none;
}

@media (max-width: 768px) {
  .productions-grid {
    grid-template-columns: 1fr;
  }
}

/* Accueil — chapitres vidéo plein cadre */
.home-productions {
  position: relative;
}

.productions-hero--home {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.productions-hero__lead a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(18, 119, 73, 0.35);
  text-underline-offset: 0.2em;
}

.productions-hero__lead a:hover {
  text-decoration-color: var(--accent);
}

.home-films-stack {
  position: relative;
}

.home-film {
  position: relative;
  min-height: min(92vh, 900px);
  overflow: hidden;
  background: #080a0a;
}

.home-film__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-film__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-film__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 12, 11, 0.5) 0%, transparent 38%, rgba(4, 18, 14, 0.9) 100%);
}

.home-film__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.5rem, 4vw, 2.75rem) min(4vw, 2rem);
  max-width: 42rem;
}

.home-film__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #faf9f6;
  margin: 0 0 0.35rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.home-film__tag {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 228, 210, 0.82);
  margin: 0;
}
