/* ESCALE — page de gamme audiophony.com (proposition du 25/11/2026)
   DA reprise du film « ESCALE · NEXUS 8 v8.2 » : graphite, Inter, libellés terracotta.
   Le moteur de la séquence des façades (escale.js) est celui de la page d'août, gardé tel quel. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1d1e21;
  --bg-2: #25262a;
  --bg-3: #2c2d32;
  --ink: #f2f1ed;
  --ink-2: #a9acb0;
  --ink-3: #909398;
  --line: rgba(242, 241, 237, 0.09);
  --accent: #dc9676;
  --tint: #1d1e21;
  --pad-x: clamp(20px, 5vw, 80px);
  --max: min(1480px, 88vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --scene-size: min(52vmin, 34vw, 600px);
}

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

html { background: var(--bg); scroll-padding-top: 72px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss03";
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(220, 150, 118, 0.32); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Barre de navigation : matière translucide, le contenu passe dessous */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--pad-x);
  background: rgba(29, 30, 33, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
/* Logos du header à 28 px de haut, comme le header de audiophony.com/micros-air/ (Loïc 25/11 : « les deux à 28 px ») */
.nav-logo { height: 28px; width: auto; filter: invert(1); opacity: 0.94; }
.nav-links { display: flex; gap: 24px; margin-left: auto; list-style: none; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-brand { height: 28px; width: auto; opacity: 0.9; }
/* Header comme audiophony-pa.com/ami/ (25/11) : marque à gauche, filet, produit, liens à droite */
.nav-sep { width: 1px; height: 18px; background: rgba(242, 241, 237, 0.24); margin: 0 -14px; flex: none; }

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ===== Façades au clic ===== */
.section#coloris { padding-left: 0; padding-right: 0; }
#coloris > .wrap { padding: 0 var(--pad-x); }
/* 25/11 15:00, Loïc : enceintes 10 % plus grosses et rapprochées (les deux scènes se recouvrent de 15 %) */
.scene-coloris { --scene-size: min(44vw, 59vh, 616px); margin-top: clamp(40px, 6vh, 72px); padding: clamp(32px, 6vh, 72px) var(--pad-x) 0; overflow: hidden; overflow: clip; }
.duo { display: flex; align-items: center; justify-content: center; gap: 0; }
.scene + .scene { margin-left: calc(var(--scene-size) * -0.15); }
.scene { position: relative; width: var(--scene-size); height: var(--scene-size); flex: none; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.speaker { position: relative; z-index: 1; }
/* Repère des rendus v2 (25/11, 1440 x 1440, même caméra) : façade x 49,2-76,0 %, y 27,4-62,9 %, centre 62,6 % / 45,1 % */
.plate { z-index: 3; transform-origin: 62.6% 45.1%; opacity: 0; }
.plate-shadow { position: absolute; z-index: 2; left: 49.2%; top: 27.4%; width: 26.7%; height: 35.6%; border-radius: 9%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62) 32%, transparent 78%); opacity: 0; }
.choix { margin-top: clamp(24px, 4vh, 48px); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.choix-nom { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; min-height: 2.4em; }
.cl-ref { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.swatch-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 1.2vw, 14px); }
.swatch { width: clamp(32px, 3.4vw, 44px); height: clamp(32px, 3.4vw, 44px); border-radius: 50%; border: 1px solid rgba(242, 241, 237, 0.16); cursor: pointer; transition: transform 0.1s ease, box-shadow 0.2s ease; }
.swatch:hover { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(242, 241, 237, 0.35); }
.swatch:active { transform: scale(0.92); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(242, 241, 237, 0.85); }
.sound-toggle { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, transform 0.1s ease; }
.sound-toggle:hover { color: var(--ink); border-color: rgba(242, 241, 237, 0.24); }
.sound-toggle:active { transform: scale(0.94); }
.sound-toggle .st-wave { opacity: 0; }
.sound-toggle.is-on { color: var(--ink); }
.sound-toggle.is-on .st-wave { opacity: 1; }
.sound-toggle.is-on .st-slash { opacity: 0; }
.apres-sequence { padding: clamp(48px, 7vh, 72px) var(--pad-x) 0; }

/* Ouverture : le visuel studio de la gamme en plein écran, texte posé sur la zone sombre du haut */
.ouverture { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #050607; }
.ouverture picture, .ouverture-vis { position: absolute; inset: 0; width: 100%; height: 100%; }
.ouverture-vis { object-fit: cover; object-position: 50% 62%; }
.ouverture::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.ouverture-texte { position: absolute; left: 0; right: 0; top: clamp(96px, 15vh, 168px); text-align: center; z-index: 1; padding: 0 var(--pad-x); }
.ouverture-logo { width: clamp(220px, 28vw, 560px); margin: 0 auto; filter: invert(1); }
.ouverture h1 { margin-top: clamp(14px, 2vh, 24px); font-size: clamp(20px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

/* La gamme à la même échelle : 1 mm = --mm */
.alignement { --mm: clamp(0.3px, 0.046vw, 0.85px); margin-top: clamp(56px, 8vh, 96px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: end; }
.al { display: flex; flex-direction: column; text-decoration: none; padding-bottom: 20px; border-bottom: 1px solid var(--line); transition: border-color 0.2s ease; }
.al:hover { border-color: rgba(242, 241, 237, 0.4); }
.al-vis { display: flex; align-items: flex-end; gap: 6%; height: calc(var(--mm) * 560); margin-bottom: 24px; }
.al-sat { height: calc(var(--mm) * 178); width: auto; }
.al-sub { height: calc(var(--mm) * 545); width: auto; }
.al-grille { height: calc(var(--mm) * 178); width: auto; }
.echelle { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ===== Sections ===== */
.section { padding: clamp(96px, 14vh, 160px) var(--pad-x); }
.wrap { max-width: var(--max); margin: 0 auto; }
.section + .section { border-top: 1px solid var(--line); }

.label { display: block; font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.h2 { margin-top: 12px; font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; max-width: 18ch; }
.h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.lead { margin-top: 24px; max-width: 62ch; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; }
.lead strong { color: var(--ink); font-weight: 500; }

/* En-tête de section : titre à gauche, texte à droite sur grand écran */
@media (min-width: 1000px) {
  .tete { display: grid; grid-template-columns: 5fr 6fr; gap: 0 64px; align-items: end; }
  .tete .lead { margin-top: 0; }
  .tete .h2 { max-width: 14ch; }
}

/* Ouverture : une invitation au voyage */
.manifeste { text-align: center; }
.manifeste .lead { margin: 24px auto 0; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.55; color: var(--ink); max-width: 46ch; letter-spacing: -0.01em; }
.manifeste .h2 { margin: 12px auto 0; }

/* Image pleine largeur */
.plein { margin-top: clamp(48px, 7vh, 80px); border-radius: 20px; overflow: hidden; background: #111214; }
.plein img { width: 100%; }

/* Cartes de la gamme */
.cartes { margin-top: clamp(48px, 7vh, 72px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.carte {
  background: var(--bg-2);
  border-radius: 16px;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.carte:hover { background: var(--bg-3); }
.carte-vis { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 8px 0 24px; min-height: 200px; }
.carte-vis img { max-height: 180px; width: auto; }
.carte-vis.grille img { max-height: none; width: 100%; }
.carte-nom { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.carte-type { margin-top: 2px; font-size: 14px; color: var(--ink-2); }

/* Accessoires */
.lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.acc { margin-top: clamp(40px, 6vh, 64px); list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.acc li { border-top: 1px solid var(--line); padding-top: 20px; }
.acc a { display: block; text-decoration: none; }
.acc a:hover .acc-nom { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.acc-nom { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.acc-desc { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .acc { grid-template-columns: repeat(2, 1fr); } }

/* Chiffres */
.chiffres { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 32px 64px; }
.chiffre-v { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.chiffre-l { margin-top: 4px; font-size: 14px; color: var(--ink-2); }

.duo-produit { margin-top: clamp(48px, 7vh, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vue { padding: clamp(16px, 3vw, 40px) 0; display: flex; flex-direction: column; align-items: center; }
.vue img { max-height: 320px; width: auto; }
#caissons .vue img { max-height: min(62vh, 600px); }
.vue figcaption { margin-top: 20px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* Coloris : le moment de la page */
.coloris { margin-top: clamp(48px, 7vh, 72px); background: var(--bg-2); border-radius: 24px; padding: clamp(24px, 5vw, 64px); }
.coloris-scene { position: relative; aspect-ratio: 1024 / 525; max-width: 900px; margin: 0 auto; }
.coloris-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.35s var(--ease); }
.coloris-scene img.is-on { opacity: 1; }
.coloris-bas { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.coloris-nom { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; min-width: 7ch; }
.coloris-ref { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.pastilles { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.pastille {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(242, 241, 237, 0.14);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.pastille:active { transform: scale(0.92); }
.pastille[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 4px rgba(242, 241, 237, 0.75); }
.combinaisons { margin-top: 40px; text-align: center; color: var(--ink); }

/* Basse altitude : trois chiffres */
.trois { margin-top: clamp(48px, 7vh, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grand { border-top: 1px solid var(--line); padding: 28px 24px 0 0; }
.grand-v { font-size: clamp(72px, 10vw, 152px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.grand-v small { font-size: 0.5em; letter-spacing: -0.01em; margin-left: 4px; }
.grand p { margin-top: 16px; font-size: 15px; color: var(--ink-2); }

/* Réglage */
.split { margin-top: clamp(48px, 7vh, 72px); display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: stretch; }
.panneau { padding: 8px 0; align-self: center; }
.panneau .chiffres { margin-top: 0; flex-direction: column; gap: 24px; }
.photo { border-radius: 20px; overflow: hidden; background: #e9e9e7; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.legende { margin-top: 16px; font-size: 14px; color: var(--ink-2); max-width: 60ch; }

/* Connexions */
.connexions { margin-top: clamp(48px, 7vh, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cx { display: flex; flex-direction: column; }
.cx-img { aspect-ratio: 3 / 2; background: #e9e9e7; border-radius: 16px; overflow: hidden; }
.cx-img img { width: 100%; height: 100%; object-fit: cover; }
.cx-img.sombre { background: var(--bg-3); display: grid; place-items: center; }
.cx-img.sombre img { width: 100%; height: 100%; object-fit: contain; padding: 6% 0; }
.cx-corps { padding: 20px 4px 0; }
.cx-nom { font-size: 13px; color: var(--accent); font-weight: 600; }
.cx-titre { margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.cx dl { margin-top: 16px; display: grid; gap: 12px; }
.cx dt { font-size: 13px; color: var(--ink-3); }
.cx dd { font-size: 15px; color: var(--ink); }

/* Plan de vol */
.segment { margin-top: 40px; display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 12px; gap: 2px; }
.segment button {
  font: inherit; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ink-2); background: none; border: 0; border-radius: 9px;
  padding: 8px 20px; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.segment button:hover { color: var(--ink); }
.segment button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.vol {
  margin-top: 32px;
  background: var(--bg-2);
  border-radius: 24px;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 56px);
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(8px, 1.6vw, 24px);
  min-height: 340px;
}
.vol img { height: auto; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.vol .sat { width: calc(var(--u, 0.4px) * 140); }
.vol .sub { width: calc(var(--u, 0.4px) * 425); }
.vol .off { opacity: 0; transform: translateY(12px); position: absolute; visibility: hidden; }
.vol-detail { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; color: var(--ink-2); }
.vol-detail b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Lieux */
.lieux {
  margin-top: clamp(48px, 7vh, 72px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 880px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 241, 237, 0.2) transparent;
}
.lieu { scroll-snap-align: start; }
.lieu img { border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.lieu figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* Tableau de bord */
.tableau-wrap { margin-top: clamp(48px, 7vh, 72px); overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.tableau thead th { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; padding-bottom: 20px; }
.tableau tbody th { font-weight: 400; color: var(--ink-3); width: 20%; font-size: 14px; }
.tableau td { color: var(--ink); width: 26.6%; }

/* Notices */
.notices { margin-top: clamp(40px, 6vh, 64px); display: grid; }
.notice { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.notice:last-child { border-bottom: 1px solid var(--line); }
.notice h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.notice p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.langues { display: grid; grid-template-columns: repeat(5, 64px); gap: 8px; list-style: none; }
.langues a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 6px; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.langues a:hover { background: var(--bg-3); border-color: rgba(242, 241, 237, 0.18); }
.langues a:active { transform: scale(0.97); }
.langues svg { width: 14px; height: 14px; color: var(--ink-3); }

/* Appel final */
.fin { text-align: left; }
.fin .h2 { margin: 12px auto 0; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 32px; height: 48px; padding: 0 28px;
  border-radius: 12px;
  background: var(--ink); color: var(--bg);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.bouton:hover { background: #ffffff; }
.bouton:active { transform: scale(0.97); }

.pied { padding: 40px var(--pad-x); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-3); }
.pied img { height: 14px; width: auto; opacity: 0.6; }

/* ===== Petits écrans ===== */
@media (max-width: 1000px) {
  .nav-links { display: none; }

  .alignement { --mm: clamp(0.26px, 0.07vw, 0.5px); grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .connexions { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ouverture-vis { object-position: 50% 50%; }
  .trois { grid-template-columns: 1fr; }
  .duo-produit { grid-template-columns: 1fr; }
  .vol { min-height: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav-sep { margin: 0 -4px; }
  .nav-brand { height: 22px; }           /* deux logos de 28 px ne tiennent pas côte à côte sur un téléphone */
  .swatch-rail { flex-wrap: nowrap; gap: 6px; }
  .swatch { width: min(7.2vw, 30px); height: min(7.2vw, 30px); }
  .scene-coloris { --scene-size: 50vw; }
  .langues { grid-template-columns: repeat(5, 1fr); }
  .alignement { --mm: 0.28px; }
  .pastille { width: 32px; height: 32px; }
  .pied { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .coloris-scene img, .vol img { transition: opacity 0.2s ease; transform: none !important; }
}
@media (max-width: 359px) {
  .nav-brand { height: 18px; }
}
