/* ==========================================================================
   Next Bloc, Résidence Sala Al Jadida (version 2)
   Ambiance retenue : ivoire et or. Deux variantes restent disponibles (noir, émeraude) :
   il suffit de changer data-ambiance sur la balise <html>.
   Toutes les couleurs passent par les variables ci-dessous.
   ========================================================================== */

:root {
  /* Ambiance « Ivoire et or » */
  --sombre: #16130f;
  --sombre-2: #1f1b15;
  --sombre-3: #2b261e;
  --clair: #faf7f1;
  --teinte: #f0e9dc;
  --accent: #c6a366;
  --accent-vif: #e2c48d;
  --accent-texte: #8a6a31;
  --texte: #1c1914;
  --texte-2: #48423a;
  --texte-doux: #756d60;
  --sur-sombre: #f7f2e8;
  --sur-sombre-2: #d9d1c1;
  --sur-sombre-doux: #a59d8d;
  --trait-clair: rgba(28, 25, 20, 0.16);
  --trait-sombre: rgba(247, 242, 232, 0.18);
  --eau: #3fa9a5;
  --alerte: #ffb4a4;

  /* Schéma des immeubles */
  --m-voie: #ebe5d8;
  --m-terrain: #d6dec6;
  --m-pelouse: #a8bb8e;
  --m-bloc: #e4d7be;
  --m-bloc-survol: #d5c5a4;
  --m-bloc-choisi: #1c1914;
  --m-chiffre: #6f5527;
  --m-chiffre-choisi: #e2c48d;
  --m-texte: #7b7366;
  --m-bord: #faf7f1;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gouttiere: clamp(1.25rem, 4.5vw, 4.5rem);
  --large: 80rem;
  --entete-h: 4.5rem;
  --doux: cubic-bezier(0.19, 0.76, 0.12, 1);
}

:root[data-ambiance="noir"] {
  --sombre: #070707;
  --sombre-2: #101010;
  --sombre-3: #1b1b1b;
  --clair: #121212;
  --teinte: #191919;
  --accent: #d4b06a;
  --accent-vif: #ecd09a;
  --accent-texte: #d4b06a;
  --texte: #f4efe4;
  --texte-2: #d2cbbd;
  --texte-doux: #9d9689;
  --sur-sombre: #f4efe4;
  --sur-sombre-2: #d2cbbd;
  --sur-sombre-doux: #9d9689;
  --trait-clair: rgba(244, 239, 228, 0.16);
  --trait-sombre: rgba(244, 239, 228, 0.16);
  --m-voie: #1d1d1d;
  --m-terrain: #1c261c;
  --m-pelouse: #34492f;
  --m-bloc: #2d2a25;
  --m-bloc-survol: #3d392f;
  --m-bloc-choisi: #d4b06a;
  --m-chiffre: #d4b06a;
  --m-chiffre-choisi: #0a0a0a;
  --m-texte: #9d9689;
  --m-bord: #121212;
}

:root[data-ambiance="emeraude"] {
  --sombre: #0b2621;
  --sombre-2: #10332c;
  --sombre-3: #18443b;
  --clair: #f7f4ec;
  --teinte: #e6ede2;
  --accent: #d0ad68;
  --accent-vif: #e8cb92;
  --accent-texte: #1c6253;
  --texte: #0f231f;
  --texte-2: #33463f;
  --texte-doux: #63756e;
  --sur-sombre: #f5f1e6;
  --sur-sombre-2: #d3dbd2;
  --sur-sombre-doux: #9db3aa;
  --trait-clair: rgba(15, 35, 31, 0.16);
  --trait-sombre: rgba(245, 241, 230, 0.18);
  --m-voie: #e7e6da;
  --m-terrain: #cfe0cc;
  --m-pelouse: #93b894;
  --m-bloc: #e6dcc3;
  --m-bloc-survol: #d7caa8;
  --m-bloc-choisi: #0f4a3e;
  --m-chiffre: #1c6253;
  --m-chiffre-choisi: #e8cb92;
  --m-texte: #63756e;
  --m-bord: #f7f4ec;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--entete-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--texte);
  background: var(--sombre);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.section--claire :focus-visible,
.section--pierre :focus-visible { outline-color: var(--texte); }

.evitement {
  position: fixed; left: 1rem; top: -5rem; z-index: 200;
  padding: 0.75rem 1rem; background: var(--accent); color: var(--sombre);
  font-weight: 500; text-decoration: none;
}
.evitement:focus { top: 1rem; }

.conteneur {
  width: 100%;
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Un élément marqué « hidden » disparaît toujours (la barre mobile gère son propre glissement) */
[hidden]:not(.barre) { display: none !important; }

/* ---------- Typographie ---------- */

.titre {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.35rem + 4.3vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
  max-width: 17ch;
}

.chapo {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 52ch;
  text-wrap: pretty;
}

.etiquette,
.nav a,
.bouton,
.fiche__liste dt,
.journee__reperes,
.accueil__sur,
.accueil__defiler,
.filtres button {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  line-height: 1.4;
}

.mention {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--texte-doux);
  max-width: 70ch;
}
.mention--nuit { color: var(--sur-sombre-doux); }

/* ---------- Apparitions au défilement ---------- */

.js [data-r] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s ease var(--d, 0s), transform 1.2s var(--doux) var(--d, 0s);
}
.js [data-r].vu { opacity: 1; transform: none; }

/* ---------- Boutons ---------- */

.bouton {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid transparent;
  text-decoration: none; text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--doux), border-color 0.45s;
}
.bouton::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%);
  transition: transform 0.5s var(--doux);
}
.bouton:hover::before { transform: none; }
.bouton--or { background: var(--accent); color: var(--sombre); }
.bouton--or::before { background: var(--sur-sombre); }
.bouton--contour { border-color: rgba(247, 242, 232, 0.55); color: var(--sur-sombre); }
.bouton--contour::before { background: var(--sur-sombre); }
.bouton--contour:hover { color: var(--sombre); border-color: var(--sur-sombre); }
.bouton--sombre { background: var(--texte); color: var(--clair); }
.bouton--sombre::before { background: var(--accent); }
.bouton--sombre:hover { color: var(--sombre); }

.lien-fort {
  display: inline-block;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
  text-decoration-color: var(--accent);
  transition: text-decoration-color 0.3s;
}
.lien-fort:hover { text-decoration-color: currentColor; }

/* ---------- Ouverture (environ 2,3 s) ----------
   0,1 s  le contour du logo se trace en or, puis l'or le remplit
   0,5 s  NEXT BLOC s'écrit lettre par lettre, sur la même ligne
   1,05 s un reflet traverse le logo
   1,55 s le logo s'envole et rétrécit jusqu'à sa place dans l'en-tête (piloté par js/main.js),
          pendant que le fond s'efface sur la page d'accueil */

:root { --intro: 1.55s; }

.rideau { position: fixed; inset: 0; z-index: 300; pointer-events: none; color: var(--sur-sombre); animation: rideau-fin 0s linear 2.7s forwards; }
@keyframes rideau-fin { to { visibility: hidden; } }
.rideau__fond {
  position: absolute; inset: 0;
  background: radial-gradient(110% 70% at 50% 50%, var(--sombre-2) 0%, var(--sombre) 65%);
  animation: fond-efface 0.85s ease calc(var(--intro) + 0.05s) forwards;
}
@keyframes fond-efface { to { opacity: 0; } }

.rideau__copie {
  position: fixed; left: 50%; top: 50%;
  color: var(--sur-sombre);
  transform: translate(-50%, -50%) scale(var(--depart, 1.55));
  transform-origin: 50% 50%;
  white-space: nowrap;
  will-change: transform;
  animation: copie-secours 0.3s ease 2.35s forwards;
}
.rideau--pilote .rideau__copie { animation: none; }
@keyframes copie-secours { to { opacity: 0; } }
@media (max-width: 700px) { .rideau__copie { --depart: 1.35; } }

.rideau__signe { position: relative; display: block; flex: none; }
.rideau__trace path {
  fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: trace 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards, trace-fond 0.3s ease 0.85s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes trace-fond { to { opacity: 0; } }
.rideau__plein {
  position: absolute; inset: 0;
  clip-path: inset(0 100% 0 0);
  animation: remplit 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.45s forwards;
}
.rideau__plein svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes remplit { to { clip-path: inset(0 0 0 0); } }
.rideau__facette { opacity: 0; animation: apparait-simple 0.4s ease 0.9s forwards; }
.rideau__reflet { transform: translateX(0) skewX(-18deg); animation: reflet 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.05s forwards; }
@keyframes reflet { to { transform: translateX(250px) skewX(-18deg); } }
@keyframes apparait-simple { to { opacity: 1; } }

.rideau__mot { display: inline-flex; font: inherit; }
.rideau__copie .marque__nom span { display: inline-flex; }
.rideau__copie i {
  display: inline-block; font-style: normal;
  opacity: 0; transform: translateX(-0.35em); filter: blur(5px);
  animation: lettre 0.55s cubic-bezier(0.19, 0.76, 0.12, 1) calc(0.5s + var(--i) * 0.055s) forwards;
}
@keyframes lettre { to { opacity: 1; transform: none; filter: blur(0); } }

/* Le logo de l'en-tête reste caché pendant l'ouverture ; il réapparaît de lui-même au besoin */
.intro-en-cours .entete .marque { opacity: 0; animation: marque-revient 0s linear 2.7s forwards; }
@keyframes marque-revient { to { opacity: 1; } }

/* ---------- En-tête ---------- */

.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--entete-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gouttiere);
  color: var(--sur-sombre);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.entete--pleine {
  background: color-mix(in srgb, var(--sombre) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--trait-sombre);
}

.marque { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; position: relative; z-index: 2; }
.marque__signe { width: 1.5rem; height: 1.5rem; fill: var(--accent); }
.marque__nom { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1; }

.menu-bouton {
  display: inline-flex; align-items: center; gap: 0.8rem;
  min-height: 2.75rem; padding-inline: 0.25rem;
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  color: inherit;
  position: relative; z-index: 2;
}
.menu-bouton__traits { display: grid; gap: 7px; width: 1.75rem; }
.menu-bouton__traits i { height: 1px; background: currentColor; transition: transform 0.4s var(--doux); }
.menu-bouton[aria-expanded="true"] .menu-bouton__traits i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton__traits i:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav {
  /* hauteur explicite : l'en-tête flouté sert de repère aux éléments fixes */
  position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 1;
  overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--entete-h) + 1rem) var(--gouttiere) 2rem;
  background: var(--sombre);
  visibility: hidden; opacity: 0;
  transition: opacity 0.35s, visibility 0s 0.35s;
}
.nav--ouverte { visibility: visible; opacity: 1; transition: opacity 0.35s; }
.nav a {
  padding: 0.55rem 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1.15; letter-spacing: 0; text-transform: none;
  text-decoration: none;
  border-bottom: 1px solid var(--trait-sombre);
}
.nav a.nav__action { margin-top: 1.75rem; border: 0; color: var(--accent); font-style: italic; }

@media (min-width: 1100px) {
  .menu-bouton { display: none; }
  .nav {
    position: static; height: auto; overflow: visible;
    flex-direction: row; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.4rem);
    padding: 0; background: none; visibility: visible; opacity: 1;
  }
  .nav a {
    position: relative;
    padding: 0.5rem 0; border: 0;
    font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  }
  .nav a:not(.nav__action)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: right;
    transition: transform 0.45s var(--doux);
  }
  .nav a:not(.nav__action):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav a.nav__action {
    margin: 0 0 0 0.5rem; padding: 0.8rem 1.3rem;
    border: 1px solid var(--accent);
    color: var(--accent); font-style: normal;
    transition: background-color 0.35s, color 0.35s;
  }
  .nav a.nav__action:hover { background: var(--accent); color: var(--sombre); }
}

/* ---------- Accueil ---------- */

.accueil {
  position: relative;
  height: 100vh; height: 100svh; min-height: 38rem;
  display: flex; align-items: flex-end;
  color: var(--sur-sombre);
  background: var(--sombre);
  overflow: hidden;
  isolation: isolate;
  --defile: 0;
}
.accueil__image {
  position: absolute; inset: -6% 0; z-index: -2;
  transform: translateY(calc(var(--defile) * 9%));
  will-change: transform;
}
.accueil__image picture, .accueil__image img { display: block; width: 100%; height: 100%; }
.accueil__image img { object-fit: cover; object-position: 45% 50%; animation: travelling 14s var(--doux) calc(var(--intro) + 0.15s) both; }
.accueil::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(10, 8, 6, 0.6) 0, rgba(10, 8, 6, 0) 24%),
    linear-gradient(to top, rgba(10, 8, 6, 0.92) 0, rgba(10, 8, 6, 0.7) 26%, rgba(10, 8, 6, 0.25) 56%, rgba(10, 8, 6, 0) 80%);
}
@keyframes travelling { from { transform: scale(1.22); } to { transform: scale(1.02); } }

.accueil__fond {
  width: 100%;
  padding: 0 var(--gouttiere) clamp(1.5rem, 3.5vw, 2.75rem);
  opacity: calc(1 - var(--defile) * 1.5);
  transform: translateY(calc(var(--defile) * -3rem));
}
.accueil__sur { position: relative; z-index: 1; color: var(--accent); margin-bottom: clamp(1.1rem, 2.6vw, 2.5rem); animation: apparait 1s calc(var(--intro) + 0.75s) both; }
.accueil__titre {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 16vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: -0.022em;
  margin-left: -0.04em;
}
.accueil__titre em { font-weight: 400; }
.ligne { display: block; overflow: hidden; padding: 0.06em 0 0.14em; margin-bottom: -0.14em; }
.ligne > span { display: block; white-space: nowrap; animation: monte 1.3s var(--doux) both; }
.ligne:nth-child(1) > span { animation-delay: calc(var(--intro) + 0.4s); }
.ligne:nth-child(2) > span { animation-delay: calc(var(--intro) + 0.52s); }

.accueil__bas {
  display: grid; gap: 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.1rem, 2vw, 1.75rem);
  border-top: 1px solid rgba(247, 242, 232, 0.3);
  animation: apparait 1.1s calc(var(--intro) + 0.85s) both;
}
.accueil__chapo { max-width: 36ch; font-size: clamp(1.0625rem, 0.98rem + 0.5vw, 1.375rem); font-weight: 300; line-height: 1.5; text-wrap: pretty; }
.accueil__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.accueil__actions .bouton { flex: 1 1 11rem; }
.accueil__defiler { display: none; }

@media (min-width: 900px) {
  .accueil__bas { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2.5rem; }
  .accueil__actions .bouton { flex: 0 0 auto; }
  .accueil__defiler {
    display: flex; align-items: center; gap: 1rem;
    color: var(--sur-sombre-2); text-decoration: none;
  }
  .accueil__defiler i { position: relative; width: 4.5rem; height: 1px; background: rgba(247, 242, 232, 0.3); overflow: hidden; }
  .accueil__defiler i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: file 2.4s var(--doux) infinite; }
}

@keyframes monte { from { transform: translateY(112%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes file { 0% { transform: translateX(-101%); } 60%, 100% { transform: translateX(101%); } }

/* ---------- Chiffres ---------- */

.fiche { background: var(--clair); color: var(--texte); transition: background-color 0.5s; }
.fiche__liste {
  display: grid; grid-template-columns: repeat(2, 1fr);
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin-inline: auto;
}
.fiche__liste > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.6rem;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--gouttiere);
  border-bottom: 1px solid var(--trait-clair);
}
.fiche__liste > div:nth-child(odd) { border-right: 1px solid var(--trait-clair); }
.fiche__liste dd {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 2rem + 4.6vw, 5.75rem);
  line-height: 0.9; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.fiche__liste dd small { font-size: 0.34em; letter-spacing: 0; color: var(--accent-texte); }
.fiche__liste dt { color: var(--texte-doux); font-size: 0.7rem; max-width: 20ch; }

@media (min-width: 720px) {
  .fiche__liste { grid-template-columns: repeat(3, 1fr); }
  .fiche__liste > div { border-right: 1px solid var(--trait-clair); padding-inline: clamp(1.25rem, 2.4vw, 2.25rem); }
  .fiche__liste > div:nth-child(3n) { border-right: 0; }
}
@media (min-width: 1180px) {
  .fiche__liste { grid-template-columns: repeat(6, auto); justify-content: space-between; padding-inline: var(--gouttiere); }
  .fiche__liste > div { border-bottom: 0; border-right: 0; padding-inline: 0; }
  .fiche__liste > div:nth-child(odd) { border-right: 0; }
}

/* ---------- Manifeste ---------- */

.manifeste {
  background: var(--clair); color: var(--texte);
  padding: clamp(4rem, 3rem + 8vw, 10rem) var(--gouttiere);
  border-top: 1px solid var(--trait-clair);
  transition: background-color 0.5s;
}
.manifeste__texte {
  max-width: 24ch; margin-inline: auto;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  line-height: 1.08; letter-spacing: -0.012em;
  text-align: center;
}
.js .manifeste__texte .mot { opacity: 0.16; transition: opacity 0.5s ease; }
.js .manifeste__texte .mot--lu { opacity: 1; }

/* ---------- Une journée : du matin à la nuit ---------- */

.journee { position: relative; height: 330vh; background: var(--sombre); color: var(--sur-sombre); }
.journee__scene {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate;
  --soir: 0; --nuit: 0; --avance: 0;
}
.journee__image, .journee__image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.journee__image { z-index: -3; }
.journee__image img { object-fit: cover; object-position: 45% 50%; transform: scale(calc(1.12 - var(--avance) * 0.1)); }
.journee__image--2 { z-index: -2; opacity: var(--soir); }
.journee__image--3 { z-index: -1; opacity: var(--nuit); }
.journee__scene::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.9) 0, rgba(10, 8, 6, 0.5) 30%, rgba(10, 8, 6, 0) 62%);
}
.journee__textes { position: absolute; left: var(--gouttiere); right: var(--gouttiere); bottom: clamp(9rem, 17vh, 10.5rem); }
.journee__texte {
  position: absolute; left: 0; bottom: 0; max-width: 34rem;
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.9s var(--doux);
}
.journee__scene[data-etape="0"] .journee__texte[data-etape="0"],
.journee__scene[data-etape="1"] .journee__texte[data-etape="1"],
.journee__scene[data-etape="2"] .journee__texte[data-etape="2"] { opacity: 1; transform: none; }
.journee__texte h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance;
  margin-bottom: 0.9rem;
}
.journee__texte p { font-weight: 300; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--sur-sombre-2); max-width: 36ch; }
.journee__reperes {
  position: absolute; left: var(--gouttiere); right: var(--gouttiere); bottom: 5.1rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.journee__reperes li { padding-top: 0.8rem; border-top: 1px solid rgba(247, 242, 232, 0.3); color: var(--sur-sombre-doux); transition: color 0.5s, border-color 0.5s; }
.journee__scene[data-etape="0"] .journee__reperes li[data-etape="0"],
.journee__scene[data-etape="1"] .journee__reperes li[data-etape="1"],
.journee__scene[data-etape="2"] .journee__reperes li[data-etape="2"] { color: var(--accent); border-color: var(--accent); }
@media (min-width: 900px) {
  .journee__reperes { left: auto; width: 26rem; bottom: clamp(1.5rem, 4vh, 2.5rem); }
  .journee__textes { bottom: clamp(5.5rem, 11vh, 7.5rem); right: 30rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 3rem + 7vw, 9.5rem); transition: background-color 0.5s, color 0.5s; }
.section--claire { background: var(--clair); color: var(--texte); }
.section--pierre { background: var(--teinte); color: var(--texte); }
.section--nuit { background: var(--sombre); color: var(--sur-sombre); }
.section--nuit .chapo { color: var(--sur-sombre-2); }
.section--claire .chapo, .section--pierre .chapo { color: var(--texte-2); }

.section__tete { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .section__tete { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
  .section__tete .chapo { padding-bottom: 0.5rem; }
  .section__tete--ligne { grid-template-columns: 1fr auto; }
}

/* ---------- Vivre ici ---------- */

.vivre__images { display: none; }
.vivre__chapitres { display: grid; gap: 3rem; }
.chapitre { display: grid; gap: 0.7rem; }
.chapitre__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 0.6rem; }
.chapitre h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.01em; }
.chapitre p { font-weight: 300; color: var(--texte-2); max-width: 42ch; }

@media (min-width: 960px) {
  .vivre__grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .vivre__images {
    display: block; position: sticky; top: calc(var(--entete-h) + 2rem);
    height: calc(100vh - var(--entete-h) - 4rem); max-height: 46rem;
    overflow: hidden; background: var(--teinte);
  }
  .vivre__images img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.08);
    transition: opacity 0.9s ease, transform 1.6s var(--doux);
  }
  .vivre__images[data-actif="0"] img:nth-child(1),
  .vivre__images[data-actif="1"] img:nth-child(2),
  .vivre__images[data-actif="2"] img:nth-child(3),
  .vivre__images[data-actif="3"] img:nth-child(4) { opacity: 1; transform: none; }
  .vivre__chapitres { gap: 0; }
  .chapitre { min-height: 72vh; align-content: center; border-top: 1px solid var(--trait-clair); opacity: 0.32; transition: opacity 0.6s; }
  .chapitre:last-child { border-bottom: 1px solid var(--trait-clair); }
  .chapitre--actif { opacity: 1; }
  .chapitre__image { display: none; }
}

/* ---------- Niveau par niveau ---------- */

.niveaux__grille { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }

.ascenseur { display: grid; grid-template-columns: repeat(7, 1fr); direction: rtl; border: 1px solid var(--trait-sombre); }
.ascenseur button {
  direction: ltr;
  min-height: 3.25rem;
  color: var(--sur-sombre-doux);
  border-left: 1px solid var(--trait-sombre);
  transition: background-color 0.35s, color 0.35s;
}
.ascenseur button:last-child { border-left: 0; }
.ascenseur button b { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.ascenseur button span { display: none; }
.ascenseur button:hover { color: var(--sur-sombre); }
.ascenseur button[aria-selected="true"] { background: var(--accent); color: var(--sombre); }

.niveau { display: grid; gap: 1.75rem; min-width: 0; }

.plan {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sombre-2);
  border: 1px solid var(--trait-sombre);
  overflow: hidden;
}
.plan__zone { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.plan__zone--prise { cursor: grabbing; }
.plan__contenu { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.plan__contenu > img {
  display: block; width: 100%; height: 100%;
  clip-path: polygon(0 87.5%, 49% 38.5%, 93.3% 3.5%, 79% 95.4%, 0 95.4%);
  pointer-events: none;
}
/* Tuiles haute définition, posées par-dessus le plan de base quand on zoome */
.plan__tuiles {
  position: absolute; inset: 0;
  clip-path: polygon(0 87.5%, 49% 38.5%, 93.3% 3.5%, 79% 95.4%, 0 95.4%);
  pointer-events: none;
}
.plan__tuile { position: absolute; max-width: none; opacity: 0; transition: opacity 0.3s ease; }
.plan__tuile--prete { opacity: 1; }
.plan__contenu > img.arrive-haut { animation: arrive-haut 0.7s var(--doux) both; }
.plan__contenu > img.arrive-bas { animation: arrive-bas 0.7s var(--doux) both; }
@keyframes arrive-haut { from { opacity: 0; transform: translateY(-9%); } to { opacity: 1; transform: none; } }
@keyframes arrive-bas { from { opacity: 0; transform: translateY(9%); } to { opacity: 1; transform: none; } }

.plan__outils { position: absolute; right: 0.6rem; bottom: 0.6rem; display: flex; gap: 0.35rem; }
.plan__outils button {
  min-width: 2.75rem; height: 2.75rem; padding-inline: 0.7rem;
  background: color-mix(in srgb, var(--sombre) 88%, transparent); color: var(--sur-sombre);
  border: 1px solid var(--trait-sombre);
  font-size: 1.25rem; line-height: 1; font-weight: 400;
  transition: background-color 0.3s, color 0.3s;
}
.plan__outils button:hover { background: var(--accent); color: var(--sombre); }
.plan__outils .plan__recentrer { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.plan__outils[hidden], .plan__aide[hidden], .plan__zone[hidden] { display: none; }
.plan__aide { position: absolute; left: 0.8rem; top: 0.65rem; font-size: 0.8125rem; color: var(--sur-sombre-doux); pointer-events: none; }

.parking {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  padding: clamp(1rem, 4vw, 3rem);
  animation: arrive-bas 0.7s var(--doux) both;
}
.parking[hidden] { display: none; }
.parking__places { display: grid; grid-template-columns: repeat(17, 1fr); gap: 3px; }
.parking__places i { aspect-ratio: 1 / 1.25; background: color-mix(in srgb, var(--sur-sombre) 72%, transparent); }
.parking__places i.p-commerce, .parking__legende i.p-commerce { background: var(--eau); }
.parking__places i.p-public, .parking__legende i.p-public { background: var(--accent); }
.parking__legende { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.875rem; color: var(--sur-sombre-2); }
.parking__legende li { display: flex; align-items: center; gap: 0.5rem; }
.parking__legende i { width: 0.7rem; height: 0.9rem; background: color-mix(in srgb, var(--sur-sombre) 72%, transparent); flex: none; }

.niveau__infos { display: grid; gap: 1.5rem; }
.niveau__titre { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); line-height: 1; margin-bottom: 0.7rem; }
.niveau__texte { font-weight: 300; color: var(--sur-sombre-2); max-width: 48ch; }
.niveau__faits { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--trait-sombre); }
.niveau__faits > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.3rem; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--trait-sombre); }
.niveau__faits dd { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 0.95; color: var(--accent); white-space: nowrap; font-variant-numeric: lining-nums; }
.niveau__faits dd small { font-size: 0.42em; }
.niveau__faits dt { font-size: 0.875rem; line-height: 1.4; color: var(--sur-sombre-doux); }

@media (min-width: 620px) {
  .plan { aspect-ratio: 16 / 9; }
  .parking__places { grid-template-columns: repeat(28, 1fr); }
}

@media (min-width: 980px) {
  .niveaux__grille { grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
  .ascenseur { display: flex; flex-direction: column; direction: ltr; border: 0; position: sticky; top: calc(var(--entete-h) + 1.5rem); }
  .ascenseur button {
    display: grid; grid-template-columns: 5.4rem 1fr; align-items: center; gap: 0.25rem;
    min-height: 3.9rem; padding: 0.5rem 0.9rem 0.5rem 0;
    text-align: left;
    border: 0; border-bottom: 1px solid var(--trait-sombre);
    border-left: 1px solid var(--sur-sombre-2);
    border-right: 1px solid var(--sur-sombre-2);
  }
  .ascenseur button:last-child { border-left: 1px solid var(--sur-sombre-2); }
  .ascenseur button b { font-size: 1.75rem; padding-left: 1rem; }
  .ascenseur button span { display: block; font-size: 0.8125rem; line-height: 1.3; font-weight: 300; }
  .ascenseur button[data-niveau="5"] { margin-right: 14%; border-top: 1px solid var(--sur-sombre-2); }
  .ascenseur button[data-niveau="4"] { margin-right: 7%; border-top: 1px solid var(--sur-sombre-2); margin-top: -1px; }
  .ascenseur button[data-niveau="3"] { border-top: 1px solid var(--sur-sombre-2); margin-top: -1px; }
  .ascenseur button[data-niveau="rdc"] { border-bottom: 2px solid var(--sur-sombre); }
  .ascenseur .ascenseur__sous-sol {
    border-left-style: dashed; border-right-style: dashed; border-bottom: 1px dashed var(--sur-sombre-2);
    background-image: repeating-linear-gradient(135deg, transparent 0 7px, var(--trait-sombre) 7px 8px);
  }
  .ascenseur .ascenseur__sous-sol[aria-selected="true"] { background-image: none; }
  .plan { aspect-ratio: 2200 / 914; }
  .plan__aide { display: none; }
  .niveau__infos { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: start; }
  .niveau__faits { grid-template-columns: repeat(3, 1fr); }
}
@media (hover: hover) and (min-width: 980px) { .plan__aide { display: block; } }

/* ---------- Six immeubles ---------- */

.immeubles__grille { display: grid; gap: 2rem; }
.masse { margin-inline: calc(-0.5 * var(--gouttiere)); }
.masse svg { width: 100%; height: auto; overflow: visible; }
.masse .mention { margin: 0.75rem calc(0.5 * var(--gouttiere)) 0; }

.masse__voie { fill: var(--m-voie); transition: fill 0.5s; }
.masse__terrain { fill: var(--m-terrain); transition: fill 0.5s; }
.masse__pelouse { fill: var(--m-pelouse); transition: fill 0.5s; }
.masse__piscine { fill: var(--eau); }
.masse__eau { fill: #06302f; font-size: 23px; font-weight: 500; text-anchor: middle; }
.masse__rue { fill: var(--m-texte); font-size: 28px; font-weight: 500; letter-spacing: 0.04em; text-anchor: middle; }
.masse__voisin { fill: var(--m-texte); font-size: 28px; font-style: italic; text-anchor: middle; }
.masse__nord path { fill: var(--texte); }
.masse__nord text { fill: var(--texte); font-size: 30px; font-weight: 600; text-anchor: middle; }

.bloc { cursor: pointer; outline: none; }
.bloc path { fill: var(--m-bloc); stroke: var(--m-bord); stroke-width: 5; stroke-linejoin: round; transition: fill 0.35s; }
.bloc text {
  fill: var(--m-chiffre);
  font-family: var(--serif); font-weight: 600; font-size: 74px;
  text-anchor: middle; dominant-baseline: middle;
  pointer-events: none; transition: fill 0.35s;
}
.bloc:hover path { fill: var(--m-bloc-survol); }
.bloc:focus-visible path { stroke: var(--accent); }
.bloc--choisi path, .bloc--choisi:hover path { fill: var(--m-bloc-choisi); }
.bloc--choisi text { fill: var(--m-chiffre-choisi); }

.immeuble { display: grid; gap: 1.2rem; align-content: start; }
.immeuble__choix { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--trait-clair); }
.immeuble__choix button {
  min-height: 3.25rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.375rem;
  color: var(--texte-doux);
  border-right: 1px solid var(--trait-clair);
  transition: background-color 0.35s, color 0.35s;
}
.immeuble__choix button:last-child { border-right: 0; }
.immeuble__choix button:hover { color: var(--texte); }
.immeuble__choix button[aria-selected="true"] { background: var(--m-bloc-choisi); color: var(--m-chiffre-choisi); }
.immeuble__titre { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); line-height: 0.95; letter-spacing: -0.015em; margin-top: 0.6rem; }
.immeuble__situation { font-weight: 300; color: var(--texte-2); max-width: 44ch; min-height: 5em; }
.immeuble__faits { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--trait-clair); }
.immeuble__faits > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; padding: 1rem 0.75rem 1rem 0; border-bottom: 1px solid var(--trait-clair); }
.immeuble__faits dd { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 0.95; color: var(--accent-texte); white-space: nowrap; font-variant-numeric: lining-nums; }
.immeuble__faits dd small { font-size: 0.42em; }
.immeuble__faits dt { font-size: 0.875rem; line-height: 1.4; color: var(--texte-doux); }
.immeuble__part p { font-size: 0.9375rem; color: var(--texte-doux); margin-bottom: 0.55rem; }
.immeuble__barre { height: 3px; background: var(--trait-clair); }
.immeuble__barre i { display: block; height: 100%; width: 0; background: var(--accent-texte); transition: width 0.9s var(--doux); }
.immeuble .lien-fort { justify-self: start; margin-top: 0.5rem; }

@media (min-width: 980px) {
  .immeubles__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 4.5fr); gap: clamp(2rem, 4vw, 5rem); align-items: center; }
  .masse { margin-inline: 0; }
  .masse .mention { margin-inline: 0; }
}

/* ---------- Galerie ---------- */

.filtres { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filtres button {
  min-height: 2.75rem; padding: 0.4rem 1.1rem;
  border: 1px solid var(--trait-sombre);
  font-size: 0.7rem;
  color: var(--sur-sombre-doux);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.filtres button:hover { color: var(--sur-sombre); border-color: var(--sur-sombre-doux); }
.filtres button[aria-pressed="true"] { background: var(--accent); color: var(--sombre); border-color: var(--accent); }

.pellicule {
  display: flex; gap: 0.75rem;
  height: clamp(16rem, 12rem + 26vw, 34rem);
  padding-inline: max(var(--gouttiere), calc((100vw - var(--large)) / 2));
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(var(--gouttiere), calc((100vw - var(--large)) / 2));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.pellicule::-webkit-scrollbar { display: none; }
.vue { flex: none; height: 100%; scroll-snap-align: start; overflow: hidden; background: var(--sombre-3); cursor: zoom-in; }
.vue[hidden] { display: none; }
.vue img { height: 100%; width: auto; max-width: none; transition: transform 1.2s var(--doux); }
.vue:hover img { transform: scale(1.05); }
.vue:focus-visible { outline-offset: -4px; }
@media (max-width: 699px) {
  .pellicule { height: auto; scroll-snap-type: x mandatory; }
  .vue { width: 78vw; height: auto; aspect-ratio: 4 / 5; }
  .vue img { width: 100%; height: 100%; object-fit: cover; }
}

.pellicule__pied { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.pellicule__fleches { display: none; gap: 0.5rem; }
.pellicule__fleches button, .visionneuse__fleche {
  width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  border: 1px solid var(--trait-sombre); border-radius: 50%; color: var(--sur-sombre);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.pellicule__fleches button:hover, .visionneuse__fleche:hover { background: var(--accent); border-color: var(--accent); color: var(--sombre); }
.pellicule__fleches svg, .visionneuse__fleche svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) and (min-width: 760px) { .pellicule__fleches { display: flex; } }

/* ---------- Adresse ---------- */

.adresse__grille { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.adresse__texte { display: grid; gap: 1.4rem; justify-items: start; align-content: start; }
.adresse__texte .titre { max-width: 15ch; }
.adresse__texte .bouton { margin-top: 0.5rem; }
.adresse__alentours h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.1; margin-bottom: 1rem; }
.alentours { border-bottom: 1px solid var(--trait-clair); }
.alentours li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.15rem 1.5rem; padding-block: 1.05rem; border-top: 1px solid var(--trait-clair); }
.alentours span { font-weight: 500; max-width: 30ch; }
.alentours em { font-style: normal; font-weight: 300; font-size: 0.9375rem; color: var(--texte-doux); }
@media (min-width: 960px) {
  .adresse__grille { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
}

/* ---------- Questions ---------- */

.questions__grille { display: grid; gap: 1rem; }
.questions .section__tete { grid-template-columns: 1fr; margin-bottom: 1.5rem; }
.questions .chapo a { text-decoration-color: var(--accent); text-underline-offset: 0.3em; }
.faq { border-bottom: 1px solid var(--trait-clair); }
.faq details { border-top: 1px solid var(--trait-clair); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.35rem;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem); line-height: 1.15;
  cursor: pointer; list-style: none;
  transition: color 0.3s;
}
.faq summary:hover { color: var(--accent-texte); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.95rem; height: 0.95rem;
  background:
    linear-gradient(var(--accent-texte), var(--accent-texte)) center / 100% 1px no-repeat,
    linear-gradient(var(--accent-texte), var(--accent-texte)) center / 1px 100% no-repeat;
  transition: transform 0.45s var(--doux);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.6rem; max-width: 60ch; font-weight: 300; color: var(--texte-2); }
@media (min-width: 960px) {
  .questions__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .questions .section__tete { position: sticky; top: calc(var(--entete-h) + 2rem); }
}

/* ---------- Contact ---------- */

.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact__fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--sombre) 0, color-mix(in srgb, var(--sombre) 70%, transparent) 42%, color-mix(in srgb, var(--sombre) 94%, transparent) 100%);
}
.contact__grille { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.contact__texte { display: grid; gap: 1.4rem; align-content: start; }
.contact__directs { margin-top: 1rem; border-bottom: 1px solid var(--trait-sombre); }
.contact__directs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.2rem 1.5rem; padding-block: 1.05rem; border-top: 1px solid var(--trait-sombre); }
.contact__directs li[hidden] { display: none; }
.contact__directs span { font-size: 0.9375rem; font-weight: 300; color: var(--sur-sombre-doux); }
.contact__directs a, .contact__directs b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.3em; overflow-wrap: anywhere; }

.formulaire {
  display: grid; gap: 1.5rem;
  padding: clamp(1.4rem, 3.2vw, 2.75rem);
  background: color-mix(in srgb, var(--sombre) 80%, transparent);
  border: 1px solid var(--trait-sombre);
  backdrop-filter: blur(14px);
}
.champ { display: grid; gap: 0.5rem; }
.champ label, .champ legend { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sur-sombre-2); }
.champ__option { font-weight: 400; color: var(--sur-sombre-doux); text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }
.champ input[type="text"], .champ input[type="tel"], .champ textarea {
  width: 100%; min-height: 3.25rem; padding: 0.7rem 0;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(247, 242, 232, 0.4); border-radius: 0;
  color: var(--sur-sombre); font-size: 1.125rem; font-weight: 300;
  transition: border-color 0.3s;
}
.champ textarea { resize: vertical; min-height: 5rem; }
.champ ::placeholder { color: var(--sur-sombre-doux); opacity: 0.75; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--accent); }
.champ--invalide input { border-color: var(--alerte); }
.champ__erreur { font-size: 0.875rem; color: var(--alerte); }
.champ__erreur[hidden] { display: none; }

.champ--choix { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.champ--choix legend { margin-bottom: 0.7rem; }
.champ--choix label { position: relative; flex: 1 1 auto; }
.champ--choix input { position: absolute; opacity: 0; inset: 0; }
.champ--choix span {
  display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.4rem 1rem;
  border: 1px solid rgba(247, 242, 232, 0.3);
  font-size: 0.9375rem; font-weight: 400; text-transform: none; letter-spacing: 0; text-align: center; cursor: pointer;
  color: var(--sur-sombre);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.champ--choix input:checked + span { background: var(--sur-sombre); color: var(--sombre); border-color: var(--sur-sombre); font-weight: 500; }
.champ--choix input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.formulaire__envois { display: grid; gap: 0.75rem; }
.formulaire__note { font-size: 0.8125rem; line-height: 1.5; color: var(--sur-sombre-doux); }
.formulaire__note--ok { color: var(--accent); }
.formulaire .lien-fort { justify-self: start; }
.formulaire .lien-fort[hidden] { display: none; }
@media (min-width: 560px) { .formulaire__envois { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .contact__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .contact .section__tete { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */

.pied { background: var(--sombre); color: var(--sur-sombre-doux); padding-block: 3.5rem calc(3rem + 4.5rem); font-size: 0.9375rem; font-weight: 300; border-top: 1px solid var(--trait-sombre); transition: background-color 0.5s; }
.pied__grille { display: grid; gap: 2rem; }
.marque--pied { color: var(--sur-sombre); margin-bottom: 1rem; }
.pied__liens { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0.6rem 2.5rem; }
.pied__liens a { text-decoration: none; color: var(--sur-sombre); }
.pied__liens a:hover { color: var(--accent); }
.pied__mentions { font-size: 0.8125rem; line-height: 1.55; max-width: 80ch; padding-top: 1.5rem; border-top: 1px solid var(--trait-sombre); }
@media (min-width: 760px) {
  .pied { padding-bottom: 3rem; }
  .pied__grille { grid-template-columns: 1fr auto; }
  .pied__mentions { grid-column: 1 / -1; }
}

/* ---------- Barre d'action mobile ---------- */

.barre {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--sombre) 95%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--trait-sombre);
  color: var(--sur-sombre);
  transition: transform 0.45s var(--doux);
}
.barre[hidden] { display: flex; transform: translateY(110%); visibility: hidden; transition: transform 0.45s var(--doux), visibility 0s 0.45s; }
.barre a[hidden] { display: none; }
.barre a {
  flex: 1 1 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.6rem;
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none;
  border-right: 1px solid var(--trait-sombre);
}
.barre a svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.barre a.barre__fort { flex-grow: 1.25; background: var(--accent); color: var(--sombre); border: 0; }
@media (min-width: 760px) { .barre { display: none !important; } }

/* ---------- Visionneuse ---------- */

.visionneuse {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 7, 5, 0.97); color: #f7f2e8;
}
.visionneuse::backdrop { background: rgba(8, 7, 5, 0.97); }
.visionneuse[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.visionneuse img { max-width: 100%; max-height: calc(100dvh - 6rem); width: auto; height: auto; object-fit: contain; align-self: center; margin-top: 3.75rem; }
.visionneuse__legende { padding: 0.9rem var(--gouttiere) 1.2rem; font-size: 0.9375rem; font-weight: 300; text-align: center; color: #d9d1c1; max-width: 60ch; }
.visionneuse__fermer {
  position: absolute; top: 0.7rem; right: 0.8rem;
  min-height: 2.75rem; padding: 0.4rem 1.1rem;
  border: 1px solid rgba(247, 242, 232, 0.25);
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: #f7f2e8;
}
.visionneuse__fermer:hover { background: #f7f2e8; color: #16130f; }
.visionneuse__fleche { position: absolute; top: 50%; translate: 0 -50%; background: rgba(8, 7, 5, 0.6); color: #f7f2e8; border-color: rgba(247, 242, 232, 0.25); }
.visionneuse__fleche--avant { left: 0.6rem; }
.visionneuse__fleche--apres { right: 0.6rem; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .rideau { display: none; }
  .js [data-r] { opacity: 1; transform: none; }
  .js .manifeste__texte .mot { opacity: 1; }
}


/* Signature Next Bloc : monogramme N/B et lettrage architectural */
.marque, .rideau__marque { gap: .66rem; }
.marque { flex-shrink: 0; }
.marque__signe, .rideau__marque svg {
  width: 2.12rem; height: auto; flex: none; color: var(--accent-vif); fill: none;
}
.rideau__marque svg { width: 2.9rem; }
.marque .marque__nom, .rideau__marque > span {
  display: inline-flex; align-items: baseline; gap: .34em;
  font: 600 1rem/1 var(--sans); letter-spacing: .13em;
  text-transform: uppercase; white-space: nowrap;
}
.marque__nom span, .rideau__marque > span > span {
  font: inherit; letter-spacing: inherit; font-weight: 400;
}
.rideau__marque > span { font-size: 1.3rem; }


/* Essai Next Bloc : Taille directe, symbole et capitales de meme hauteur */
.marque, .rideau__marque { display: inline-flex; align-items: center; gap: .62rem; font: 600 1.36rem/1 var(--sans); }
.rideau__marque { font-size: 1.8rem; gap: .76rem; }
.marque .marque__signe, .rideau__marque svg { width: auto; height: .7em; height: 1cap; flex: none; display: block; }
.marque .marque__nom, .rideau__marque > span { font: inherit; letter-spacing: .10em; }
