/* ──────────────────────────────────────────────────────────
   Mega Color — page « La couleur se vit »
   Charte : navy #12203D · dégradé #FF8931 → #F93406 · clair #F4F4F4
   ────────────────────────────────────────────────────────── */
:root {
  --navy: #12203d;
  --navy-deep: #0a1428;
  --navy-soft: #1a2c52;
  --mist: #f4f4f4;
  --ink: #20201f;
  --flame-a: #ff8931;
  --flame-b: #f93406;
  --flame: linear-gradient(100deg, var(--flame-a), var(--flame-b));
  --spectrum: linear-gradient(90deg, #f93406, #ff8931 14%, #ffc81f 28%, #7ac74f 44%, #19b5c8 58%, #3f6fe0 72%, #8a4fd8 86%, #e0457b);
  --muted: #9aa8c6;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--mist);
  font-family: "Open Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
em {
  font-style: italic;
}
::selection {
  background: var(--flame-a);
  color: var(--navy);
}
:focus-visible {
  outline: 2px solid var(--flame-a);
  outline-offset: 4px;
  border-radius: 6px;
}

.flame {
  background: var(--flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em; /* l'italique déborde un peu */
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--flame {
  color: var(--flame-a);
}
.spectrum {
  height: 3px;
  background: var(--spectrum);
  background-size: 200% 100%;
  animation: slide 12s linear infinite alternate;
}
.spectrum--top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
}
@keyframes slide {
  to {
    background-position: 100% 0;
  }
}

/* ── Barre du haut ─────────────────────────────────────── */
.bar {
  position: fixed;
  inset: 3px 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: 1.1rem var(--gutter);
  pointer-events: none;
}
/* Liens des sections, juste à droite du logo */
.bar__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgb(10 20 40 / 0.38);
  border: 1px solid rgb(244 244 244 / 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.bar__nav a {
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--mist);
  transition: background-color 0.3s, color 0.3s;
}
.bar__nav a:hover {
  background: rgb(244 244 244 / 0.14);
}
.bar__nav a[href*="peintre-virtuel"] {
  background: var(--flame);
  color: #fff;
}
body.on-light .bar__nav {
  background: rgb(244 244 244 / 0.7);
  border-color: rgb(18 32 61 / 0.14);
}
body.on-light .bar__nav a:not([href*="peintre-virtuel"]) {
  color: var(--navy);
}
body.on-light .bar__nav a:hover {
  background: rgb(18 32 61 / 0.08);
}
.bar__menu {
  display: none;
}
.bar > * {
  pointer-events: auto;
}
.bar__logo {
  display: block;
  position: relative;
  height: 2.25rem;
}
.logo {
  height: 100%;
  width: auto;
  transition: opacity 0.5s var(--ease);
}
.logo--dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.bar__link {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgb(244 244 244 / 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), background-color 0.3s;
}
.bar__link:hover {
  background: rgb(244 244 244 / 0.12);
}
.bar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Sélecteur de version : Photo (v1) / Vidéo (v2), en bas du portail ──── */
.switch {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: 2;
  color: #fff;
  background: rgb(18 32 61 / 0.82);
  display: flex;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgb(244 244 244 / 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.5s var(--ease);
}
.switch button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.switch button[aria-checked="true"] {
  background: var(--flame);
  color: #fff;
}
html[data-version="photo"] .v-video,
html[data-version="video"] .v-photo {
  display: none;
}

body.on-light .logo--light {
  opacity: 0;
}
body.on-light .logo--dark {
  opacity: 1;
}
body.on-light .bar__link {
  color: var(--navy);
  border-color: rgb(18 32 61 / 0.25);
}

/* ── Boutons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgb(244 244 244 / 0.3);
  transition: transform 0.5s var(--ease), background-color 0.3s, box-shadow 0.5s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: rgb(244 244 244 / 0.1);
}
.btn--flame {
  background: var(--flame);
  border: 0;
  color: #fff;
  box-shadow: 0 18px 50px -16px rgb(249 52 6 / 0.75);
}
.btn--flame:hover {
  background: var(--flame);
  box-shadow: 0 24px 60px -14px rgb(249 52 6 / 0.9);
}

/* ═════════ 1. OUVERTURE ═════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(70rem 46rem at 85% 30%, #1d3263 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  right: -14vmax;
  top: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 137 49 / 0.55) 0%, rgb(249 52 6 / 0.25) 35%, transparent 65%);
  filter: blur(30px);
  z-index: -1;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    transform: scale(1.12) translate(-3%, 4%);
    opacity: 0.8;
  }
}
.hero__m {
  position: absolute;
  right: -6vw;
  bottom: -8vh;
  width: min(78vw, 1100px);
  aspect-ratio: 125.68 / 95.28;
  -webkit-mask: url("assets/m.svg") center / contain no-repeat;
  mask: url("assets/m.svg") center / contain no-repeat;
  background: url("assets/img/hero.jpg") center / cover;
  opacity: 0.78;
  z-index: -1;
}
.hero__m::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(255 137 49 / 0.55), rgb(249 52 6 / 0.35) 50%, rgb(18 32 61 / 0.2));
  mix-blend-mode: overlay;
}
.hero__inner {
  padding: 8rem var(--gutter) 6rem;
  max-width: 90rem;
  width: 100%;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.14em;
}
.flag {
  display: inline-flex;
  width: 1.4rem;
  height: 0.95rem;
  border-radius: 2px;
  overflow: hidden;
}
.flag i {
  flex: 1;
}
.flag i:nth-child(1) {
  background: #009246;
}
.flag i:nth-child(2) {
  background: #fff;
}
.flag i:nth-child(3) {
  background: #ce2b37;
}
.hero__title {
  margin-top: 1.75rem;
  font-size: clamp(3rem, 9.6vw, 9.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise-in 1.2s var(--ease) forwards;
}
.line:nth-child(2) > span {
  animation-delay: 0.12s;
}
.line:nth-child(3) > span {
  animation-delay: 0.24s;
}
@keyframes rise-in {
  to {
    transform: none;
  }
}
.hero__sign {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  opacity: 0;
  animation: fade 1.2s 0.7s var(--ease) forwards;
}
.hero__sign [lang="ar"] {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mist);
}
.sep {
  width: 1px;
  height: 1.2rem;
  background: rgb(244 244 244 / 0.25);
}
@keyframes fade {
  to {
    opacity: 1;
  }
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll i {
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--flame-a), transparent);
  transform-origin: top;
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip {
  0% {
    transform: scaleY(0);
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ═════════ 2. LE PORTAIL ═════════ */
.portal {
  position: relative;
  height: 360vh; /* longueur du défilement pendant lequel la scène reste épinglée */
  background: var(--mist);
  color: var(--navy);
}
.portal__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.portal__words {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.portal__row {
  display: flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
  font-size: clamp(5rem, 17vw, 17rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--navy);
  will-change: transform;
}
.portal__row .dot {
  color: var(--flame-b);
  font-style: normal;
}
.portal__ring {
  position: absolute;
  width: min(46vw, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(18 32 61 / 0.16);
  will-change: transform, opacity;
}
.portal__window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* forme initiale : une petite pilule au centre (mise à jour en JS) */
  clip-path: inset(44% 41% round 999px);
  will-change: clip-path;
}
.portal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  will-change: transform;
}
.portal__video {
  display: block;
  background: var(--navy);
}
.portal__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 20 40 / 0.1) 30%, rgb(10 20 40 / 0.78) 100%);
  opacity: 0;
}
.portal__caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2rem, 8vh, 5rem);
  color: var(--mist);
  opacity: 0;
  transform: translateY(2rem);
}
.portal__caption .eyebrow {
  color: #ffd2ae;
}
.portal__caption h2 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 16ch;
}
.muted {
  color: rgb(244 244 244 / 0.62);
}

/* ═════════ 3. LES MATIÈRES ═════════ */
.gallery {
  position: relative;
  background: var(--navy);
}
.gallery__pin {
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.gallery__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  padding: 0 var(--gutter);
  will-change: transform;
}
.gallery__intro {
  flex: 0 0 auto;
  width: min(34rem, 80vw);
  padding-right: 2vw;
}
.gallery__intro h2 {
  margin-top: 1.25rem;
  font-size: clamp(2.8rem, 6.4vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.gallery__hint {
  margin-top: 2rem;
  color: var(--muted);
  font-weight: 600;
}
.card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(16rem, 34vw, 32rem);
  height: min(68svh, 40rem);
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--navy-soft);
}
.card--tall {
  width: clamp(14rem, 26vw, 24rem);
}
.card figure {
  margin: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.card img {
  position: absolute;
  inset: 0 -12%;
  width: 124%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(10 20 40 / 0.85));
}
.card__meta {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
}
.card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--flame-a);
}
.card h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.card p {
  margin-top: 0.25rem;
  color: #c9d2e6;
  font-size: 0.95rem;
}
.card--cta {
  display: grid;
  place-items: center;
  background: var(--flame);
  width: clamp(16rem, 28vw, 26rem);
  transition: transform 0.6s var(--ease);
}
.card--cta::after {
  display: none;
}
.card--cta:hover {
  transform: scale(0.98);
}
.card__cta-m {
  position: absolute;
  width: 70%;
  aspect-ratio: 125.68 / 95.28;
  right: -10%;
  bottom: -6%;
  background: #fff;
  opacity: 0.18;
  -webkit-mask: url("assets/m.svg") center / contain no-repeat;
  mask: url("assets/m.svg") center / contain no-repeat;
}
.card__cta-text {
  position: relative;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  text-align: center;
}

/* ═════════ 4. LA PIÈCE ═════════ */
.room {
  --room: #a8bca0;
  --room-ink: #12203d;
  position: relative;
  height: 420vh;
  background: var(--room);
  color: var(--room-ink);
  transition: background-color 0.9s var(--ease), color 0.9s var(--ease);
}
.room__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 5.5rem var(--gutter) 2rem;
  max-width: 96rem;
  margin: 0 auto;
}
.room .eyebrow {
  color: inherit;
  opacity: 0.7;
}
.room__title {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 6vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.room__color {
  margin-top: 2.25rem;
  display: grid;
  gap: 0.35rem;
}
.room__name {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
}
.room__code {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.room__dots {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
}
.room__dots li {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid rgb(0 0 0 / 0.08);
  transition: transform 0.5s var(--ease), border-color 0.5s;
}
.room__dots li.is-active {
  transform: scale(1.25);
  border-color: currentColor;
}
.room .btn {
  border-color: currentColor;
}
.room .btn:hover {
  background: rgb(255 255 255 / 0.18);
}
.room__frame {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.55);
  transform: rotate(-1.2deg);
}
.room__svg {
  width: 100%;
  height: auto;
}
.room__walls path {
  mix-blend-mode: multiply;
  transition: fill 0.9s var(--ease);
}

/* ═════════ 5. LES CHIFFRES ═════════ */
.numbers {
  position: relative;
  background: var(--navy-deep);
  padding: clamp(6rem, 14vh, 10rem) 0 clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0 var(--gutter);
  max-width: 90rem;
  margin: 0 auto;
}
.stat {
  display: grid;
  gap: 0.75rem;
  border-left: 1px solid rgb(244 244 244 / 0.14);
  padding-left: 1.5rem;
}
.stat__value {
  font-size: clamp(3.4rem, 9vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #9aa8c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  color: var(--muted);
  max-width: 14rem;
}
.ribbon {
  margin-top: clamp(4rem, 10vh, 7rem);
  display: grid;
  gap: 0.75rem;
  transform: rotate(-3deg) scale(1.08);
}
.ribbon__row {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.ribbon__row--rev {
  animation-direction: reverse;
  animation-duration: 75s;
}
.ribbon__row span {
  width: clamp(4.5rem, 8vw, 7rem);
  height: clamp(4.5rem, 8vw, 7rem);
  border-radius: 1rem;
  flex: 0 0 auto;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ═════════ 6. LA VISITE ═════════ */
.visit {
  position: relative;
  background: radial-gradient(60rem 30rem at 50% 0%, rgb(249 52 6 / 0.28), transparent 70%), var(--navy);
  padding: clamp(6rem, 16vh, 11rem) var(--gutter) 0;
  text-align: center;
  overflow: hidden;
}
.visit__m {
  width: clamp(7rem, 14vw, 11rem);
  margin: 0 auto;
  clip-path: inset(0 100% 0 0);
}
.visit__m img {
  width: 100%;
}
.visit__title {
  margin-top: 2.5rem;
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.visit__lead {
  margin: 1.75rem auto 0;
  max-width: 36rem;
  color: #c9d2e6;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}
.visit__stores {
  list-style: none;
  margin: 3.5rem auto 0;
  padding: 0;
  max-width: 60rem;
  border-top: 1px solid rgb(244 244 244 / 0.12);
}
.visit__stores a {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0.5rem;
  border-bottom: 1px solid rgb(244 244 244 / 0.12);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: left;
  transition: padding 0.6s var(--ease), color 0.4s;
}
.visit__stores a span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--flame-a);
}
.visit__stores a i {
  margin-left: auto;
  font-style: normal;
  transition: transform 0.6s var(--ease);
}
.visit__stores a:hover {
  padding-left: 1.5rem;
  color: var(--flame-a);
}
.visit__stores a:hover i {
  transform: translate(4px, -4px);
}
.visit__actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.foot {
  margin-top: clamp(5rem, 12vh, 8rem);
  padding: 2rem 0;
  border-top: 1px solid rgb(244 244 244 / 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot img {
  height: 2rem;
  width: auto;
}
.foot [lang="ar"] {
  font-family: "Noto Kufi Arabic", sans-serif;
  color: var(--mist);
}
.visit > .spectrum {
  margin: 0 calc(var(--gutter) * -1);
}

/* ── Curseur peinture (souris uniquement) ─────────────── */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--flame);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: normal;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), opacity 0.3s;
}
.cursor.is-on {
  opacity: 1;
}
.cursor.is-big {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  opacity: 0.35;
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .bar__logo {
    height: 1.9rem;
  }
  .bar {
    justify-content: space-between;
  }
  /* Sur téléphone, les liens s'ouvrent depuis le bouton menu */
  .bar__nav {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 1.5rem;
    background: rgb(12 23 48 / 0.94);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .bar__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .bar__nav a {
    font-size: 1.1rem;
    padding: 0.9rem 1.1rem;
    color: var(--mist) !important;
  }
  body.on-light .bar__nav {
    background: rgb(12 23 48 / 0.94);
  }
  .bar__menu {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 1px solid rgb(244 244 244 / 0.3);
    background: rgb(10 20 40 / 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
  }
  .bar__menu span {
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--mist);
    transition: transform 0.35s var(--ease);
  }
  .bar__menu[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .bar__menu[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  body.on-light .bar__menu {
    border-color: rgb(18 32 61 / 0.25);
    background: rgb(244 244 244 / 0.7);
  }
  body.on-light .bar__menu span {
    background: var(--navy);
  }
  .switch button {
    padding: 0.4rem 0.75rem;
  }
  .hero__m {
    width: 120vw;
    right: -40vw;
    bottom: -4vh;
    opacity: 0.55;
  }
  .portal {
    height: 300vh;
  }
  .portal__ring {
    width: 78vw;
  }
  .card,
  .card--tall,
  .card--cta {
    width: 78vw;
    height: 62svh;
  }
  .room {
    height: 380vh;
  }
  .room__pin {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.5rem;
    padding-top: 5rem;
  }
  .room__frame {
    order: -1;
    transform: none;
  }
  .room__title {
    font-size: 2.4rem;
  }
  .room__title br {
    display: none;
  }
  .room__color {
    margin-top: 1rem;
  }
  .room__dots {
    margin: 1rem 0 1.25rem;
  }
  .numbers__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Mouvement réduit : tout reste lisible, sans épinglage ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .line > span,
  .hero__sign {
    transform: none;
    opacity: 1;
  }
  .portal {
    height: auto;
  }
  .portal__stage {
    position: relative;
  }
  .portal__window {
    clip-path: none;
  }
  .portal__img {
    transform: none;
  }
  .portal__shade,
  .portal__caption {
    opacity: 1;
    transform: none;
  }
  .portal__words,
  .portal__ring {
    display: none;
  }
  .gallery__pin {
    height: auto;
    overflow-x: auto;
    padding: 6rem 0;
  }
  .room {
    height: auto;
  }
  .room__pin {
    position: relative;
    height: auto;
    padding-block: 6rem;
  }
  .visit__m {
    clip-path: none;
  }
}
