/* ==========================================================================
   RESONHAR — DIRECTION ARTISTIQUE & DESIGN SYSTEM
   ========================================================================== */

   :root {
    --paper: #f3f1eb;
    --ink: #252620;
    --muted: #66695f;
    --line: #ccd0c5;
    --accent: rgba(177, 205, 192, 0.86);
    /* Pastille de statut (mosaïque en grille, petit écran) : olive sombre, de la famille des verts de la constellation.
       Teintes essayées, à garder sous le coude : vert d'origine #4a7c59, olive muséal #6e6c48,
       bronze d'archive #8a6c45, bronze sombre #6f5a3e (planches : plans/teintes-pastille.png, plans/statuts-pastille.png) */
    --status-dot: #555a3e;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
    --mono: 'IBM Plex Mono', monospace;
    --gutter: clamp(20px, 3.35vw, 64px);
  }
  
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    background-color: var(--paper);
  }
  
  body {
    margin: 0;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  
  button, a {
    -webkit-tap-highlight-color: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
  }
  
  button {
    cursor: pointer;
    border: 0;
    background: none;
    padding: 0;
  }
  
  button:disabled {
    cursor: default;
    opacity: 0.5;
  }
  
  button:focus-visible, a:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: 6px;
  }

  /* Fenêtre recevant le focus à son ouverture au clavier : pas de cadre autour de la fenêtre entière */
  [role="dialog"][tabindex="-1"]:focus {
    outline: none;
  }
  
  figure, p, h1, h2, h3, ul, dl, dd {
    margin: 0;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
  img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  
  ::selection {
    background: #ccd7c2;
    color: var(--ink);
  }
  
  .mono, .eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.015em;
  }
  
  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.075em;
  }
  
  .text-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
    min-height: 36px;
  }
  
  .text-button svg {
    transition: transform 0.3s ease;
  }
  
  @media (hover: hover) and (pointer: fine) {
    .text-button:hover svg {
      transform: translateX(3px);
    }
  }
  
  .icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s;
  }
  
  .arrow-back svg {
    transform: rotate(180deg);
  }
  
  /* ==========================================================================
     HEADER DISCRET & WORDMARK
     ========================================================================== */
  
  .site-header {
    position: relative;
    z-index: 30;
    background: rgba(243, 241, 235, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  
  .header-inner {
    max-width: 1920px;
    margin: auto;
    padding: 0 var(--gutter);
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  
  .brand-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    letter-spacing: -0.05em;
    font-weight: 500;
  }
  
  .header-descriptor {
    margin-right: auto;
    margin-left: 8vw;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.07em;
    color: var(--muted);
  }
  
  .header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  
.site-header nav .header-about,
.site-header nav .cart-trigger {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.075em !important;
  color: var(--muted) !important;
  opacity: 1 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: none !important;
  transform: none !important;
}

  
  .gallery-page {
    max-width: 1920px;
    margin: auto;
    padding: 0 var(--gutter);
  }
  
  .hero-wordmark-section {
    padding-top: 32px;
    padding-bottom: clamp(32px, 4vw, 48px);
  }
  
  .monumental-wordmark {
    font-family: var(--sans);
    font-size: clamp(80px, 19.5vw, 380px);
    font-weight: 400;
    letter-spacing: -0.083em;
    line-height: 0.88;
    margin-top: 10px;
    margin-left: -0.035em;
    position: relative;
    width: fit-content;
  }
  
  .wordmark-dot {
    font-size: clamp(20px, 2.5vw, 48px);
    position: absolute;
    right: -1.6em;
    top: 0.55em;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
  }
  
  /* ==========================================================================
     COLLECTION & BARRE DE CONTRÔLE
     ========================================================================== */
  
  .collection-section {
    scroll-margin-top: 20px;
    padding-bottom: 60px;
  }
  
  .collection-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 60px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  
  .collection-filters {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  
  .filter-button {
    font-family: var(--mono);
    font-size: 10px;
    min-height: 44px;
    color: var(--muted);
    position: relative;
    transition: color 0.2s;
  }
  
  .filter-button.is-selected {
    color: var(--ink);
  }
  
  .filter-button.is-selected::after {
    content: '';
    height: 1px;
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    background: var(--ink);
  }
  
  .filter-button span {
    font-size: 8px;
    vertical-align: super;
    margin-left: 4px;
  }
  
  .collection-tools {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* Sélecteur rapide des séries dans la barre */
  .series-quick-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .series-nav-label {
    font-size: 9px;
    color: var(--muted);
  }
  
  .series-nav-pills {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .series-pill {
    font-family: var(--mono);
    font-size: 9px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    transition: all 0.2s;
  }
  
  .series-pill.is-active {
    color: var(--ink);
    border-color: var(--ink);
    background: rgba(232, 234, 224, 0.6);
  }
  
  .toolbar-separator {
    height: 16px;
    width: 1px;
    background: var(--line);
    margin: 0 4px;
  }
  
  .tool-button {
    padding: 6px 12px;
    font-size: 9px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    transition: all 0.2s;
  }
  
  .tool-button.is-active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  @media (hover: hover) and (pointer: fine) {
    .tool-button:hover {
      background: var(--ink);
      color: var(--paper);
      border-color: var(--ink);
    }
  }
  
  .view-switch {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  
  .view-switch button {
    color: #82877b;
  }
  
  .view-switch button.is-selected {
    color: var(--ink);
    background: #e8eae0;
  }
  
  /* ==========================================================================
     MOSAÏQUE DES 40 ŒUVRES (FIELD / GRID)
     ========================================================================== */
  
  .mosaic {
    margin: 40px 0 0;
    position: relative;
  }
  
  /* Mode Champ Libre (Field) */
  .mosaic--field {
    --board-height: clamp(670px, 70vw, 1210px);
    height: calc(var(--board-height) * var(--groups, 1));
    position: relative;
  }
  
  .mosaic--field .mosaic-item {
    position: absolute;
    width: 19.2%;
    transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1), top 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* Mode Grille */
  .mosaic--grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 52px 40px;
    margin: 50px 0 0;
    height: auto !important;
  }
  
  .mosaic--grid .mosaic-item {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
  }
  
  .artwork-card {
    display: block;
    width: 100%;
  }
  
  /* Le décalage au survol est STRICTEMENT réservé à la mosaïque */
  .mosaic .artwork-button {
    display: block;
    width: 100%;
    position: relative;
    text-align: left;
    background: #e0e5da;
    overflow: hidden;
    transition: transform 0.35s ease;
  }

  .artwork-button img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  
  .image-corner {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 241, 235, 0.85);
    opacity: 0;
    transition: opacity 0.25s ease;
    font-size: 16px;
  }

  .artwork-caption {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.8;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(3px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .artwork-caption > :nth-child(even),
  .artwork-caption span:nth-child(even) {
    text-align: right;
  }
  
  .caption-secondary {
    color: var(--muted);
    font-size: 8px;
  }

  /* Lien cliquable vers la constellation dans le cartel */
  .caption-series-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 8px;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
  }

  .caption-series-btn:focus-visible {
    color: var(--fg);
    text-decoration-color: currentColor;
  }

  @media (hover: hover) and (pointer: fine) {
    .caption-series-btn:hover {
      color: var(--fg);
      text-decoration-color: currentColor;
    }
  }
  
  /* Focus clavier de la vignette : affichage du cartel (le survol souris est réservé au bloc pointer: fine) */
  .mosaic-item:focus-within .artwork-caption {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  
  /* Mode Grille ordonnée : affichage permanent et fixe des cartels */
  .mosaic--grid .artwork-caption {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  
  .collection-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    padding: 30px 0 45px;
  }
  
  /* ==========================================================================
     STATEMENT DE CLÔTURE & FOOTER
     ========================================================================== */
  
  .closing-statement {
    position: relative;
    border-top: 1px solid var(--line);
    padding: 64px 0 76px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
  }
  
  .closing-statement .eyebrow {
    grid-column: 1 / -1;
    color: var(--muted);
  }
  
  .closing-statement h2 {
    font-family: var(--serif);
    font-size: clamp(44px, 5.2vw, 84px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }
  
  .closing-actions {
    align-self: end;
    padding-bottom: 6px;
  }
  
  .closing-actions .text-button {
    font-family: var(--mono);
    font-size: 10px;
    gap: 20px;
  }
  
  .site-footer {
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
    font-size: 9px;
    color: var(--muted);
  }
  
  .back-top {
    font-size: 16px;
    color: var(--muted);
    min-width: 35px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .back-top:focus-visible {
    color: var(--ink);
    transform: translateY(-2px);
  }

  @media (hover: hover) and (pointer: fine) {
    .back-top:hover {
      color: var(--ink);
      transform: translateY(-2px);
    }
  }

  /* Bouton « mouvement » : petit rond plein (mouvement actif) ou vide (en pause), suivi du mot */
  .motion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: lowercase;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .site-footer .motion-toggle {
    margin-left: auto;
  }

  .motion-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: currentColor;
    flex-shrink: 0;
  }

  .motion-toggle[aria-pressed="false"] .motion-dot {
    background: transparent;
  }

  .motion-toggle:focus-visible {
    color: var(--ink);
  }

  @media (hover: hover) and (pointer: fine) {
    .motion-toggle:hover {
      color: var(--ink);
    }
  }

  /* Bouton de langue « FR / EN » : même famille que « mouvement » (pied de page du site, note, panier) ;
     langue active à l'encre, l'autre estompée */
  .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    font-size: inherit;
    letter-spacing: 0.06em;
  }

  .lang-toggle button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
  }

  .lang-toggle button[aria-pressed="true"] {
    opacity: 1;
    color: var(--ink);
    cursor: default;
  }

  .lang-toggle button:focus-visible {
    opacity: 1;
  }

  @media (hover: hover) and (pointer: fine) {
    .lang-toggle button:hover {
      opacity: 1;
    }
  }

  /* Mouvement en pause : plus de défilement animé ni de décalage au survol ; les fondus, changements de couleur
     et glissements d'ouverture déclenchés par le visiteur (tiroir du panier, attestation) restent */
  html.motion-off {
    scroll-behavior: auto;
  }

  html.motion-off *,
  html.motion-off *::before,
  html.motion-off *::after {
    scroll-behavior: auto !important;
  }

  html.motion-off .mosaic--field .mosaic-item {
    transition: none;
  }

  html.motion-off .mosaic .artwork-button,
  html.motion-off .artwork-caption,
  html.motion-off .text-button svg,
  html.motion-off .back-top,
  html.motion-off .constellation-close svg,
  html.motion-off .constellation-close-icon,
  html.motion-off #closeConstellationBtn svg,
  html.motion-off #closeConstellationBtn span:last-child,
  html.motion-off .close-layer-btn svg,
  html.motion-off .footer-nav-arrow,
  html.motion-off .focus-nav-btn {
    transform: none !important;
  }

  /* ==========================================================================
     CALQUES PLEIN ÉCRAN (MODAL OVERLAYS)
     ========================================================================== */
  
  .overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(243, 241, 235, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0 var(--gutter);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  
  .overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .overlay[hidden] {
    display: none !important;
  }
  
  .overlay-topline {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(71, 82, 67, 0.22);
  }
  
  .overlay-topline .mono {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.045em;
  }
  
  .overlay-bottomline {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
  }
  
  /* ==========================================================================
   CALQUE FOCUS : REGARD RAPPROCHÉ (CADRAGE NOBLE SANS DÉFILEMENT)
   ========================================================================== */

.focus-overlay {
  z-index: 200;
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /* Interdit tout défilement vertical parasite */
  padding: 0 var(--gutter);
}

.focus-overlay .overlay-topline {
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  width: 100%;
}

.focus-overlay .overlay-bottomline {
  position: relative;
  flex-shrink: 0;
  z-index: 10;
  width: 100%;
}

.focus-body {
  max-width: 1280px;
  width: 100%;
  margin: auto;
  flex: 1;
  min-height: 0; /* Empêche tout débordement flex */
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 40px 2vw; /* Marge de respiration noble minimale (36px-48px) */
  box-sizing: border-box;
}

.focus-artwork-wrap {
  width: 100%;
  height: 100%;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-artwork-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-image-buffer {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* Image principale : strictement contenue avec respiration garantie */
.focus-img,
.focus-media {
  grid-area: 1 / 1;
  max-height: calc(100vh - 76px - 56px - 88px);
  /* Hauteur visible avec les barres du navigateur affichées (Safari iOS/iPadOS) : l'image n'est jamais rognée et ne change pas de taille au défilement */
  max-height: calc(100svh - 76px - 56px - 88px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  opacity: 0;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: opacity 0.2s ease;
}

.focus-img.active,
.focus-media.active {
  opacity: 1;
  z-index: 2;
}

/* Pied de page Vue Focus : flèches cliquables minimalistes et raccourcis desktop */
.focus-footer-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.focus-shortcuts-desktop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.focus-close-mobile {
  display: none !important;
}

.focus-nav-btn {
  background: transparent;
  border: 0;
  padding: 0 4px;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.15s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.focus-nav-btn:focus-visible {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .focus-nav-btn:hover {
    opacity: 1;
  }
}

.focus-nav-btn:active {
  transform: scale(0.9);
}

/* Cartel compact : évite le débordement vertical */
.focus-cartel {
  max-width: 380px;
}

.focus-cartel .eyebrow {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 10px;
}

.focus-cartel h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.focus-statement {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.25;
  margin: 12px 0 18px;
  color: #50584b;
  max-width: 340px;
}

.museum-label {
  font-size: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.museum-label > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  margin-bottom: 6px;
}

.museum-label > div:last-child {
  margin: 0;
}

.museum-label dt {
  color: var(--muted);
}

.focus-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 12px;
}

.focus-price > span:first-child {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.focus-price .mono {
  font-size: 8px;
  color: var(--muted);
}

.acquire-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  transition: all 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .acquire-button:hover:not(:disabled) {
    background: rgba(194, 208, 182, 0.4);
    padding-left: 10px;
    padding-right: 10px;
  }
}

.series-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  text-align: left;
  font-size: 12px;
  min-height: 40px;
}

.series-link-btn span {
  flex: 1;
}

.series-link-btn small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
  
  /* ==========================================================================
     CALQUE CONSTELLATION : FOND DYNAMIQUE & CARTEL BAS-GAUCHE EMPILÉ
     ========================================================================== */
  
  .constellation-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none;
    z-index: 100;
    background-color: var(--accent);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    transition: background-color 0.6s ease;
  }

  .constellation-overlay::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }

  .constellation-overlay .overlay-topline,
  .constellation-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Bouton de fermeture de la Vue Constellation : miroir strict de la Vue Focus */
  .constellation-overlay #closeConstellationBtn,
  .constellation-overlay .close-layer-btn,
  .constellation-close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    min-height: 36px;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    z-index: 5;
  }

  @media (hover: hover) and (pointer: fine) {
    .constellation-overlay #closeConstellationBtn:hover,
    .constellation-overlay .close-layer-btn:hover,
    .constellation-close:hover {
      color: var(--ink);
    }
  }

  .constellation-overlay #closeConstellationBtn svg,
  .constellation-overlay .close-layer-btn svg,
  .constellation-close svg,
  .constellation-close-icon,
  #closeConstellationBtn span:last-child {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .constellation-overlay #closeConstellationBtn:hover svg,
    .constellation-overlay .close-layer-btn:hover svg,
    .constellation-close:hover svg,
    .constellation-close:hover .constellation-close-icon,
    #closeConstellationBtn:hover span:last-child {
      transform: translateX(3px);
    }
  }

  .constellation-series-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
  }

  .constellation-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 5;
  }

  .constellation-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .constellation-counter {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--ink);
    user-select: none;
    min-width: 44px;
    text-align: center;
  }
  
  .constellation-heading {
    display: flex;
    align-items: center;
    padding: 10px 0 6px;
    position: relative;
    z-index: 2;
  }
  
  .constellation-heading h2 {
    font-family: var(--serif);
    font-size: clamp(38px, 4.2vw, 54px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.04em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .heading-star {
    font-size: 22px;
    color: #495c47;
  }
  
  .constellation-field {
    position: relative;
    flex: 1;
    min-height: 480px;
    width: 100%;
    max-width: min(1600px, 94vw);
    margin: 6px auto 12px;
  }

  #constellationItemsContainer {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .constellation-traces {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  
  /* Une liaison entre deux œuvres : points ronds fins et espacés ; leur couleur (dégradé qui s'efface
     en approchant des œuvres) est posée par app.js */
  .constellation-traces line {
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-dasharray: 0.01 10;
  }
  
  /* Pièces en constellation : ZÉRO tremblement au survol */
  .constellation-piece,
  .constellation-item,
  .constellation-node {
    position: absolute;
    width: min(15.2%, calc((100dvh - 290px) / 3.35));
    min-width: 100px;
    z-index: 2;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .constellation-field.is-dense .constellation-piece {
    width: min(12.8%, calc((100dvh - 280px) / 3.4));
    min-width: 85px;
  }
  
  .constellation-piece-inner {
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  
  /* En constellation, PAS de transform: translateY au survol qui entrerait en conflit avec l'oscillation */
  .constellation-piece .artwork-button {
    display: block;
    width: 100%;
    position: relative;
    text-align: left;
    background: transparent;
    outline: none;
    transform: none !important;
  }
  
  .constellation-piece img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    outline: 1px solid transparent;
    outline-offset: 5px;
    transition: outline-color 0.25s ease;
  }

  /* Filet de sélection muséal : colle strictement aux bords effectifs de l'image (zéro passe-partout fantôme) */
  .constellation-piece.is-active img {
    outline-color: rgba(40, 60, 42, 0.65);
  }
  
  .constellation-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 8px;
    color: #39483c;
  }
  
  .constellation-quick-add {
    display: none !important;
    position: absolute;
    right: 6px;
    bottom: 28px;
    width: 28px;
    height: 28px;
    background: rgba(243, 241, 235, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  
  @media (hover: hover) and (pointer: fine) {
    .constellation-piece:hover .constellation-quick-add {
      opacity: 1;
    }
  }
  
  /* CARTEL BAS-GAUCHE : ALIGNEMENT STRICT CONFORME À L'ORIGINAL */
  .constellation-cartel {
    display: flex;
    align-items: center;
    gap: 26px;
    border-top: 1px solid rgba(61, 80, 61, 0.4);
    padding: 16px 0;
    position: relative;
    z-index: 5;
  }
  
  .constellation-current {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-right: auto;
  }
  
  .constellation-current > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .active-work-title {
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1;
  }
  
  .constellation-current .mono {
    font-size: 8px;
    color: #465543;
  }

  .constellation-current .cartel-meta-tech,
  .constellation-current .cartel-meta-edition {
    display: inline;
  }
  
  .constellation-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .constellation-price {
    font-size: 13px;
  }

  .constellation-status {
    font-size: 9px;
    color: #465543;
    letter-spacing: 0.04em;
  }
  
  .constellation-bottom,
  .constellation-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 16px;
    font-size: 8px;
    color: #465543;
    position: relative;
    z-index: 5;
  }

  .constellation-bottom > span:last-child,
  .constellation-footer > span:last-child {
    margin-left: auto;
  }

  .constellation-bottom .footer-nav-arrow,
  .footer-nav-arrow {
    background: none;
    border: none;
    padding: 0 4px;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
  }

  @media (hover: hover) and (pointer: fine) {
    .constellation-bottom .footer-nav-arrow:hover,
    .footer-nav-arrow:hover {
      opacity: 0.45;
      transform: scale(1.2);
    }
  }

  .constellation-bottom .footer-nav-arrow:active,
  .footer-nav-arrow:active {
    transform: scale(0.92);
  }
  
  /* ==========================================================================
     CALQUE À PROPOS
     ========================================================================== */
  
  .about-overlay {
    z-index: 200;
  }

  .about-content {
    max-width: 860px;
    margin: 60px auto 80px;
  }
  
  .about-star {
    margin-bottom: 28px;
    color: #849879;
  }
  
  .about-content h2 {
    font-family: var(--serif);
    font-size: clamp(50px, 6.5vw, 100px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 24px 0 36px;
  }
  
  .about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    line-height: 1.8;
    color: #53594d;
    font-size: 14px;
  }
  
  .about-invitation {
    font-size: 9px;
    border-top: 1px solid var(--line);
    padding-top: 26px;
    margin-top: 36px;
    color: var(--muted);
  }
  
  .about-content .text-button {
    margin-top: 20px;
    font-family: var(--mono);
    font-size: 10px;
  }
  
  /* ==========================================================================
     TIROIR LATÉRAL (SELECTION DRAWER)
     ========================================================================== */
  
  .drawer-shell,
  .cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .drawer-shell.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  
  .drawer-scrim {
    position: absolute;
    inset: 0;
    background: rgba(38, 43, 33, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .selection-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100%);
    background: rgba(245, 245, 237, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(49, 60, 39, 0.3);
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .drawer-shell.is-open .selection-drawer {
    transform: translateX(0);
  }
  
  .drawer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--line);
  }
  
  .drawer-heading h2 {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
  }
  
  .drawer-content {
    flex: 1;
    overflow-y: auto;
    min-height: 140px;
  }
  
  .drawer-list > li {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
  }
  
  .drawer-item-thumb {
    width: 72px;
    height: 90px;
    object-fit: contain;
    object-position: center;
    background: #e4e9df;
  }
  
  .drawer-item-info h3 {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 6px;
  }
  
  .drawer-item-info p {
    font-size: 8px;
    color: var(--muted);
    line-height: 1.8;
  }
  
  .drawer-item-remove {
    font-size: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 4px;
    color: var(--muted);
  }
  
  @media (hover: hover) and (pointer: fine) {
    .drawer-item-remove:hover {
      color: var(--ink);
    }
  }
  
  .drawer-item-price {
    font-size: 10px;
  }
  
  .empty-drawer {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
  }
  
  .empty-drawer p {
    font-family: var(--serif);
    font-size: 42px;
    line-height: 1.05;
  }
  
  .drawer-checkout {
    padding: 18px 0;
  }
  
  .selection-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  
  .selection-total > span:last-child {
    font-size: 30px;
    letter-spacing: -0.06em;
  }
  
  .checkout-button {
    background: var(--ink);
    color: var(--paper);
    width: 100%;
    min-height: 52px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    transition: opacity 0.2s;
  }
  
  @media (hover: hover) and (pointer: fine) {
    .checkout-button:hover {
      opacity: 0.9;
    }
  }
  
  .atelier-inquiry-link {
    display: block;
    text-align: center;
    font-size: 9px;
    margin-top: 12px;
    text-decoration: underline;
    color: var(--muted);
  }
  
  @media (hover: hover) and (pointer: fine) {
    .atelier-inquiry-link:hover {
      color: var(--ink);
    }
  }
  
  .checkout-note {
    font-size: 8px;
    line-height: 1.7;
    color: var(--muted);
    margin-top: 14px;
  }
  
  .drawer-footnote {
    font-size: 8px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding: 16px 0 18px;
  }

  /* ==========================================================================
     CALQUE 5 : CONFIRMATION D'ACQUISITION (#confirmation-modal)
     ========================================================================== */

  #confirmation-modal,
  .confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 350;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  #confirmation-modal[hidden],
  .confirmation-modal[hidden] {
    display: none !important;
  }

  #confirmation-modal.is-active,
  #confirmation-modal.is-open,
  .confirmation-modal.is-active,
  .confirmation-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .confirmation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(243, 241, 235, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .confirmation-cartouche,
  .certificate-card {
    position: relative;
    z-index: 1;
    max-width: 620px;
    width: 100%;
    max-height: 88dvh;
    overflow-y: auto;
    box-sizing: border-box;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: clamp(1.75rem, 5vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 24px 60px rgba(37, 38, 32, 0.06);
    transform: translateY(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #confirmation-modal.is-active .confirmation-cartouche,
  #confirmation-modal.is-open .confirmation-cartouche,
  #confirmation-modal.is-active .certificate-card,
  #confirmation-modal.is-open .certificate-card,
  .confirmation-modal.is-active .confirmation-cartouche,
  .confirmation-modal.is-open .confirmation-cartouche,
  .confirmation-modal.is-active .certificate-card,
  .confirmation-modal.is-open .certificate-card {
    transform: translateY(0);
  }

  /* --- En-tête officiel d'archive --- */
  .certificate-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .certificate-seal {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .certificate-archive-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .certificate-registry,
  .confirmation-date {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* --- Titrage & Corpus éditorial --- */
  .certificate-lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .confirmation-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.5rem 0;
    text-align: left;
  }

  .confirmation-message {
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 2rem 0;
    text-align: left;
  }

  /* --- Zone dynamique des œuvres acquises --- */
  .confirmation-artworks-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 0 0.5rem 0;
  }

  .confirmation-artworks-list:not(:empty) {
    border-top: 1px solid var(--line);
  }

  .confirmation-artworks-list .confirmation-artwork-item,
  .confirmation-artworks-list > article,
  .confirmation-artworks-list > div {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .confirmation-artworks-list img,
  .confirmation-artwork-thumb {
    width: 65px;
    min-width: 65px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--paper);
    display: block;
    flex-shrink: 0;
  }

  .confirmation-artwork-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }

  .confirmation-artwork-title,
  .confirmation-artwork-info h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
  }

  .confirmation-artwork-meta,
  .confirmation-artwork-details,
  .confirmation-artwork-info p {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.4;
  }

  /* --- Fiche d'engagement d'art & expédition physique --- */
  .certificate-pledge {
    width: 100%;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .certificate-pledge p,
  .pledge-authenticity,
  .pledge-shipping {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    text-align: left;
  }

  /* --- Action unique : Retour à la collection --- */
  #confirmation-close-btn,
  .confirmation-close-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 2.25rem;
    padding: 14px 24px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.25s ease, background-color 0.25s ease;
    touch-action: manipulation;
  }

  @media (hover: hover) and (pointer: fine) {
    #confirmation-close-btn:hover,
    .confirmation-close-btn:hover {
      opacity: 0.85;
      border-color: var(--ink);
    }
  }

  /* ==========================================================================
     CALQUE 6 : SAS D'AVANT-PREMIÈRE & MAINTENANCE (#curtain-gate)
     ========================================================================== */

  #curtain-gate,
  .curtain-gate {
    position: fixed;
    inset: 0;
    z-index: 500;
    background-color: var(--paper);
    width: 100vw;
    height: 100dvh;
    box-sizing: border-box;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  html.preview-authorized #curtain-gate,
  html[data-status="public"] #curtain-gate {
    display: none !important;
  }

  html[data-status="preview"]:not(.preview-authorized) #curtain-gate {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html[data-status="maintenance"] #curtain-gate {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .curtain-cartouche,
  .curtain-content {
    max-width: 440px;
    width: 100%;
    text-align: center;
  }

  .curtain-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.5rem;
  }

  .curtain-status {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin: 0 0 1rem;
  }

  .curtain-description {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
  }
  
  /* ==========================================================================
     TOAST NOTIFICATION (CORRECTION ANOMALIE A)
     ========================================================================== */
  
  .notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 16px 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }
  
  /* Masquage strict par défaut */
  .notification.hidden {
    display: none !important;
  }
  
  .notification .text-button {
    font-size: 10px;
    text-decoration: underline;
  }

  /* ==========================================================================
     LISSAGE OPTIQUE ANTI-MOIRÉ DES ŒUVRES (MOSAÏQUE & MODALES)
     ========================================================================== */

  .mosaic img,
  .artwork-button img,
  .focus-img,
  .focus-media,
  .constellation-piece img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
  }

  /* ==========================================================================
     ARCHITECTURE RESPONSIVE & MEDIA QUERIES D'INTERACTION (W3C LEVEL 4)
     ========================================================================== */

  /* --------------------------------------------------------------------------
     1. PALIER INTERMÉDIAIRE — GRILLE SUISSE 3 COLONNES (@media (width <= 1024px))
        Mac fenêtré & Tablettes : alignement flush au cordeau avec la toolbar
     -------------------------------------------------------------------------- */
  @media (width <= 1024px) {
    .header-descriptor {
      margin-left: 4vw;
    }

    .mosaic {
      padding-inline: 0;
    }

    .mosaic--grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2.2vw, 1.75rem);
      padding: 1.25rem 0;
      margin-top: 0;
      height: auto !important;
    }
  }

  /* --------------------------------------------------------------------------
     2. ARCHITECTURE TABLETTE COMPACTE & MOBILE (@media (width <= 768px))
     -------------------------------------------------------------------------- */
  @media (width <= 768px) {

    /* --- 2.1 EN-TÊTE PRINCIPAL (.site-header) & TITRE MONUMENTAL --- */
    .header-inner {
      min-height: 64px;
      gap: 16px;
    }

    /* Signature ✳ resonhar : strictement identique au desktop */
    .brand-link {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 18px;
      letter-spacing: -0.05em;
      font-weight: 500;
      flex-shrink: 0;
    }

    /* Mention centrale masquée avec élégance */
    .header-descriptor {
      display: none;
    }

    /* Actions NOTE et [ 00 ] : cible tactile >= 44px sans altérer la finesse du texte */
    .header-nav {
      gap: 16px;
    }

    .site-header nav .header-about,
    .site-header nav .cart-trigger {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding-block: 12px !important;
      padding-inline: 6px !important;
    }

    /* Titre monumental "resonhar" : échelle fluide continue et marges verticales fluides */
    .hero-wordmark-section {
      padding-top: clamp(1rem, 3.5vw, 2rem);
      padding-bottom: clamp(1.25rem, 4.5vw, 2.5rem);
    }

    .monumental-wordmark {
      font-size: clamp(2.75rem, 12vw, 5.5rem);
      margin-top: clamp(0.25rem, 1.5vw, 0.625rem);
      margin-bottom: 0;
    }

    /* --- 2.2 RUBAN TACTILE DES SÉRIES (.collection-toolbar) --- */
    .collection-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px 12px;
      padding: 8px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      &::-webkit-scrollbar {
        display: none;
      }
    }

    .collection-tools {
      display: contents;
    }

    .toolbar-separator {
      display: none;
    }

    .collection-filters {
      order: 1;
      gap: 16px;
      flex-shrink: 0;
    }

    #shuffleBtn {
      order: 2;
      margin-left: auto;
      min-width: 44px;
      min-height: 44px;
    }

    .view-switch {
      order: 2;
      flex-shrink: 0;
    }

    .view-switch .icon-button {
      min-width: 44px;
      min-height: 44px;
    }

    /* Rail de défilement horizontal fluide au doigt pour les séries */
    .series-quick-nav {
      order: 3;
      width: 100%;
      min-width: 0;
      padding-top: 8px;
      border-top: 1px solid var(--line);
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      &::-webkit-scrollbar {
        display: none;
      }
    }

    .series-nav-pills {
      display: inline-flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .series-pill {
      flex: 0 0 auto;
      white-space: nowrap;
      min-height: 36px;
      padding: 6px 12px;
      display: inline-flex;
      align-items: center;
    }

    /* --- 2.3 MOSAÏQUE : ALIGNEMENT FLUSH & DUALITÉ GRILLE VS CHAMP LIBRE --- */
    .collection-section {
      overflow-x: clip;
    }

    .mosaic {
      margin-top: 1.5rem;
      padding-inline: 0;
    }

    /* MODE GRILLE (.mosaic--grid) — Alignement latéral strictement flush (padding-inline: 0) */
    .mosaic--grid {
      display: grid;
      padding: 1.25rem 0;
      margin-top: 0;
      height: auto !important;
    }

    .mosaic--grid .mosaic-item {
      position: relative !important;
      width: 100% !important;
      left: auto !important;
      top: auto !important;
      margin: 0 !important;
    }

    .mosaic--grid .artwork-caption {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: start;
      row-gap: 4px;
      column-gap: 8px;
      opacity: 1;
      visibility: visible;
      transform: none;
      pointer-events: auto;
      font-family: var(--mono);
      font-size: 9.5px;
      line-height: 1.4;
      margin-top: 8px;
      max-width: 100%;
    }

    /* Rangée 1 : Titre (à gauche, s'enroule si besoin) */
    .mosaic--grid .artwork-caption > span:first-child {
      grid-column: 1;
      grid-row: 1;
      color: var(--ink);
      font-weight: 400;
      white-space: normal;
      overflow-wrap: break-word;
      word-break: normal;
      text-align: left;
    }

    /* Rangée 1 : Prix (ancré en haut à droite, ne bouge jamais) */
    .mosaic--grid .artwork-caption > span:nth-child(2) {
      grid-column: 2;
      grid-row: 1;
      text-align: right;
      color: var(--ink);
      font-size: 9.5px;
      white-space: nowrap;
      align-self: start;
    }

    /* Rangée 2 : Série (à gauche, texte feutré --muted) */
    .mosaic--grid .artwork-caption > .caption-series-btn {
      grid-column: 1;
      grid-row: 2;
      align-self: center;
      max-width: 100%;
      font-size: 8.5px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left;
    }

    /* Rangée 2 : Statut (à droite sous le prix) : pastille pleine = disponible, cercle vide = réservée
       (paiement en cours), pleine gris clair = collection privée */
    .mosaic--grid .artwork-caption > span:nth-child(4) {
      grid-column: 2;
      grid-row: 2;
      align-self: center;
      justify-self: end;
      font-size: 0;
      color: transparent;
      user-select: none;
      line-height: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .mosaic--grid .artwork-caption > span:nth-child(4)::before {
      content: '';
      display: inline-block;
      width: 6.5px;
      height: 6.5px;
      border-radius: 50%;
      background-color: var(--status-dot);
      opacity: 0.85;
      flex-shrink: 0;
    }

    .mosaic--grid .mosaic-item.is-reserved .artwork-caption > span:nth-child(4)::before {
      background-color: transparent;
      border: 1px solid var(--status-dot);
    }

    .mosaic--grid .mosaic-item.is-sold-out:not(.is-reserved) .artwork-caption > span:nth-child(4)::before {
      background-color: var(--line);
      opacity: 1;
    }

    /* MODE CHAMP LIBRE (.mosaic--field) — Vue Exposition Contemplative */
    .mosaic--field {
      display: block;
      height: auto !important;
      padding: 0;
    }

    .mosaic--field .mosaic-item {
      position: relative !important;
      left: auto !important;
      top: auto !important;
    }

    /* Rythme asymétrique architectural en 3 temps */
    .mosaic--field .mosaic-item:nth-child(3n + 1) {
      width: 92%;
      margin-left: 0;
      margin-right: auto;
      margin-bottom: 4rem;
    }

    .mosaic--field .mosaic-item:nth-child(3n + 2) {
      width: 70%;
      margin-left: auto;
      margin-right: 4%;
      margin-bottom: 4rem;
      margin-top: 1.5rem;
    }

    .mosaic--field .mosaic-item:nth-child(3n + 3) {
      width: 84%;
      margin-left: 6%;
      margin-right: auto;
      margin-bottom: 4rem;
      margin-top: 2rem;
    }

    /* Cartels en Champ Libre masqués au repos (révélés au survol si souris présente) */
    .mosaic--field .artwork-caption {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    /* --- 2.4 ADAPTATION MOBILE DES CALQUES & SECTIONS SECONDAIRES --- */
    .focus-overlay {
      overflow-y: auto;
      justify-content: flex-start;
      padding-top: 0;
      padding-bottom: 0;
    }

    /* Activation du bouton mobile et masquage des raccourcis uniquement sur vrais terminaux tactiles */
    @media (hover: none) and (pointer: coarse) {
      .focus-shortcuts-desktop {
        display: none !important;
      }

      .focus-close-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: 0.03em;
        color: var(--muted);
        background: transparent;
        border: 0;
        padding: 12px 0;
        min-height: 44px;
        cursor: pointer;
        line-height: 1;
        text-decoration: none;
        transition: color 0.2s ease, opacity 0.2s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
      }

      .focus-close-mobile:hover,
      .focus-close-mobile:focus-visible,
      .focus-close-mobile:active {
        color: var(--ink);
      }
    }

    .focus-body {
      grid-template-columns: 1fr;
      padding: 24px 0 32px;
      max-height: none;
      height: auto;
      flex: none;
      gap: 32px;
    }

    /* --- 2.5 VUE CONSTELLATION MOBILE : ARCHITECTURE 3 ZONES (HEADER / CIEL HORIZONTAL / CARTEL ANCRÉ) --- */
    .constellation-overlay {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100dvh;
      overflow: hidden !important;
      scrollbar-width: none !important;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 0 var(--gutter);
    }

    .constellation-overlay .overlay-topline,
    .constellation-header {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      flex-shrink: 0;
      min-height: 60px;
      gap: 8px;
      z-index: 10;
    }

    .constellation-series-selector {
      justify-self: start;
      min-width: 0;
    }

    .constellation-nav-center {
      position: static;
      left: auto;
      transform: none;
      justify-self: center;
      gap: 4px;
    }

    .constellation-overlay #closeConstellationBtn,
    .constellation-overlay .close-layer-btn,
    .constellation-close {
      justify-self: end;
      font-size: 0;
      gap: 6px;
    }

    /* Libellé selon la langue de la page (<html lang>) */
    html[lang="fr"] .constellation-overlay #closeConstellationBtn::before,
    html[lang="fr"] .constellation-overlay .close-layer-btn::before,
    html[lang="fr"] .constellation-close::before {
      content: "Fermer";
    }

    .constellation-overlay #closeConstellationBtn::before,
    .constellation-overlay .close-layer-btn::before,
    .constellation-close::before {
      content: "Close";
      font-family: var(--sans);
      font-size: 12px;
      font-weight: 400;
      line-height: 1.5;
    }

    .constellation-heading {
      flex-shrink: 0;
      padding: 8px 0 4px;
      z-index: 5;
    }

    .constellation-heading h2 {
      font-size: clamp(28px, 7vw, 38px);
      gap: 12px;
    }

    /* Zone 2 : Ciel central (espace des œuvres en rail horizontal) */
    .constellation-field {
      position: relative;
      flex: 1 1 auto;
      min-height: 0 !important;
      width: calc(100% + (var(--gutter) * 2));
      max-width: none;
      margin: 0 calc(var(--gutter) * -1);
      padding-bottom: calc(82px + max(1rem, env(safe-area-inset-bottom)));
      display: flex;
      align-items: center;
      overflow-y: hidden !important;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .constellation-field::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    #constellationItemsContainer {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
      gap: clamp(20px, 5vw, 32px);
      width: 100% !important;
      height: 100% !important;
      padding-inline: 15vw;
      overflow-y: hidden !important;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    #constellationItemsContainer::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    /* Zone 2 : Alignement en rangée horizontale unique des toiles */
    .constellation-piece,
    .constellation-field.is-dense .constellation-piece,
    .constellation-item,
    .constellation-node {
      position: relative !important;
      left: auto !important;
      top: auto !important;
      flex: 0 0 70vw !important;
      width: 70vw !important;
      max-width: 70vw !important;
      min-width: 0 !important;
      max-height: 48vh;
      scroll-snap-align: center;
      scroll-snap-stop: always;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .constellation-piece-inner {
      width: 100%;
      max-height: 48vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .constellation-piece .artwork-button {
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 48vh;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      outline: none;
    }

    .constellation-piece img {
      width: auto;
      height: auto;
      max-width: 70vw;
      max-height: 48vh;
      aspect-ratio: auto;
      object-fit: contain !important;
      margin: 0 auto;
      display: block;
      outline: 1px solid transparent;
      outline-offset: 5px;
      transition: outline-color 0.25s ease;
    }

    .constellation-piece.is-active img {
      outline-color: rgba(40, 60, 42, 0.65);
    }

    .constellation-traces {
      display: none;
    }

    /* Zone 3 : Cartel inférieur verrouillé tout en bas */
    .constellation-cartel {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 10;
      background-color: var(--paper);
      border-top: 1px solid var(--line);
      padding: 14px var(--gutter);
      padding-bottom: max(1rem, env(safe-area-inset-bottom));
      align-items: center;
      gap: 16px;
    }

    .constellation-current {
      min-width: 0;
    }

    .constellation-current > div {
      overflow: hidden;
    }

    .constellation-current .cartel-meta-edition {
      display: block;
      margin-top: 2px;
      text-indent: -2ch;
      white-space: nowrap;
    }

    .constellation-pricing {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: space-between;
      text-align: right;
      gap: 4px;
      flex-shrink: 0;
    }

    .constellation-price {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      min-height: 25px;
      line-height: 1;
    }

    .constellation-status {
      display: block;
      font-size: 8px;
      line-height: 1.7;
      min-height: 13.6px;
      white-space: nowrap;
    }

    .constellation-bottom,
    .constellation-footer {
      display: none !important;
    }

    .about-columns {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .closing-statement {
      grid-template-columns: 1fr;
    }

    /* --- 2.8 TIROIR DE SÉLECTION : TRANSFORMATION EN BOTTOM SHEET TACTILE --- */
    .selection-drawer {
      top: auto;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: auto;
      max-height: 85dvh;
      border-left: none;
      border-top: 1px solid rgba(49, 60, 39, 0.25);
      border-radius: 16px 16px 0 0;
      padding: 0 20px;
      box-shadow: 0 -8px 32px rgba(37, 38, 32, 0.12);
      transform: translateY(100%);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .drawer-shell.is-open .selection-drawer {
      transform: translateY(0);
    }

    /* Poignée de préhension (Affordance tactile discrète) */
    .selection-drawer::before {
      content: "";
      display: block;
      width: 36px;
      height: 3px;
      background-color: var(--line);
      border-radius: 2px;
      margin: 10px auto 4px auto;
      flex-shrink: 0;
    }

    /* En-tête compact et aéré */
    .drawer-heading {
      padding: 12px 0 16px;
      flex-shrink: 0;
    }

    .drawer-heading h2 {
      font-size: clamp(24px, 6vw, 30px);
    }

    .drawer-heading .icon-button {
      min-width: 44px;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* Corps du panier : Défilement vertical fluide */
    .drawer-content {
      flex: 1 1 auto;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-y: contain;
      min-height: 120px;
    }

    .drawer-list > li {
      padding: 16px 0;
      grid-template-columns: 64px 1fr auto;
      gap: 14px;
      align-items: center;
    }

    .drawer-item-thumb {
      width: 64px;
      height: 80px;
    }

    .drawer-item-info h3 {
      font-size: 13px;
    }

    .drawer-item-info p {
      font-size: 8.5px;
    }

    /* Action Retirer : zone tactile >= 44px */
    .drawer-item-remove {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 8px 0;
      font-size: 9px;
      touch-action: manipulation;
    }

    .drawer-item-price {
      font-size: 11px;
    }

    .empty-drawer {
      padding: 32px 0;
    }

    .empty-drawer p {
      font-size: clamp(24px, 6vw, 32px);
    }

    /* Pied de tiroir verrouillé (Sticky Footer) */
    .drawer-checkout {
      flex-shrink: 0;
      padding: 14px 0 10px;
      border-top: 1px solid var(--line);
    }

    .selection-total {
      margin-bottom: 14px;
    }

    .selection-total > span:last-child {
      font-size: 26px;
    }

    /* Bouton d'action primaire accessible sous le pouce */
    .checkout-button {
      min-height: 48px;
      padding: 12px 18px;
      touch-action: manipulation;
    }

    /* Lien atelier avec zone tactile confortable */
    .atelier-inquiry-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 44px;
      margin-top: 4px;
    }

    .checkout-note {
      font-size: 8px;
      margin-top: 6px;
    }

    /* Prise en compte impérative de la zone de sécurité basse */
    .drawer-footnote {
      flex-shrink: 0;
      padding-top: 10px;
      padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    /* --- 2.9 MODAL DE CONFIRMATION D'ACQUISITION (#confirmation-modal) --- */
    #confirmation-modal,
    .confirmation-modal {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
      padding-top: max(1rem, env(safe-area-inset-top));
      padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .confirmation-cartouche,
    .certificate-card {
      width: 100%;
      max-width: 100%;
      max-height: 90dvh;
      padding: clamp(1.5rem, 5vw, 2.25rem);
    }

    .certificate-header {
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
    }

    .confirmation-title {
      font-size: clamp(1.75rem, 6.5vw, 2.25rem);
      margin-bottom: 0.5rem;
    }

    .confirmation-message {
      font-size: 0.9rem;
      margin-bottom: 1.5rem;
    }

    .certificate-pledge {
      margin-top: 1.5rem;
      padding-top: 1.25rem;
    }

    #confirmation-close-btn,
    .confirmation-close-btn {
      min-height: 48px;
      margin-top: 1.75rem;
      padding: 14px 20px;
      touch-action: manipulation;
    }
  }

  /* --------------------------------------------------------------------------
     3. FORMATS COMPACTS & SMARTPHONES — MATRICE 2 COLONNES (@media (width <= 640px))
     -------------------------------------------------------------------------- */
  @media (width <= 640px) {
    .mosaic--grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(1.2rem, 3vw, 1.75rem) clamp(0.5rem, 2vw, 0.85rem);
      padding: 1.25rem 0;
    }
  }

  /* --------------------------------------------------------------------------
     4. CAPACITÉS D'INTERACTION DU POINTEUR (INDÉPENDANTES DE LA LARGEUR D'ÉCRAN)
     -------------------------------------------------------------------------- */

  /* Persistance du survol souris (y compris en fenêtre réduite sur ordinateur) */
  @media (hover: hover) and (pointer: fine) {
    .mosaic .artwork-button:hover {
      transform: translateY(-5px);
    }

    .mosaic .artwork-button:hover .image-corner {
      opacity: 1;
    }

    .mosaic--field .mosaic-item:hover .artwork-caption,
    .mosaic--field .mosaic-item:focus-within .artwork-caption {
      opacity: 1;
      visibility: visible;
      transform: none;
      pointer-events: auto;
    }

    .site-header nav .header-about:hover,
    .site-header nav .cart-trigger:hover {
      color: var(--ink) !important;
      opacity: 1 !important;
    }

    .series-pill:hover {
      color: var(--ink);
      border-color: var(--ink);
      background: rgba(232, 234, 224, 0.6);
    }

    .icon-button:hover {
      background: #e8eae0;
    }

    /* Sanctuarisation du footer Focus sur ordinateur (souris / clavier) quelle que soit la largeur de fenêtre */
    .focus-shortcuts-desktop {
      display: inline-flex !important;
    }

    .focus-close-mobile {
      display: none !important;
    }
  }

  /* Masquage des cartels en Champ Libre sur terminaux tactiles
     (aucun effet de survol n'existe hors du bloc pointer: fine, rien à neutraliser) */
  @media (hover: none) and (pointer: coarse) {
    /* Indication « esc fermer » : sans objet au toucher, quelle que soit la largeur (iPad paysage compris) */
    .kbd-hint {
      display: none;
    }

    /* Zones de toucher d'au moins 44 px, invisibles : le dessin et la mise en page ne changent pas */
    .icon-button,
    .text-button,
    .brand-link,
    .series-pill,
    .footer-nav-arrow,
    .focus-nav-btn,
    .confirmation-close-btn,
    .motion-toggle,
    .lang-toggle button {
      position: relative;
    }

    .icon-button::after,
    .text-button::after,
    .brand-link::after,
    .series-pill::after,
    .footer-nav-arrow::after,
    .focus-nav-btn::after,
    .confirmation-close-btn::after,
    .motion-toggle::after,
    .lang-toggle button::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: max(100%, 44px);
      height: max(100%, 44px);
      transform: translate(-50%, -50%);
    }

    /* Retour discret pendant l'appui du doigt sur les boutons d'action : léger fondu, effacé au relâchement
       (rien à la souris). Les œuvres (mosaïque, constellation) restent sans effet : pas de clignotement au défilement. */
    button:not(:disabled):not(.artwork-button):active,
    a:active {
      opacity: 0.5;
    }

    /* « À propos » et panier : opacité verrouillée dans l'en-tête, l'appui doit la lever */
    .site-header nav .header-about:active,
    .site-header nav .cart-trigger:active {
      opacity: 0.5 !important;
    }

    /* Flèches « ← → » accolées : chacune s'étend vers l'extérieur pour ne pas chevaucher sa voisine */
    #constellationFooterPrev::after,
    #focusPrevBtn::after {
      left: auto;
      right: -2px;
      transform: translateY(-50%);
    }

    #constellationFooterNext::after,
    #focusNextBtn::after {
      left: -2px;
      transform: translateY(-50%);
    }

    /* FR / EN accolés : FR s'étend vers la gauche, EN vers la droite */
    .lang-toggle button[data-lang="fr"]::after {
      left: auto;
      right: -2px;
      transform: translateY(-50%);
    }

    .lang-toggle button[data-lang="en"]::after {
      left: -2px;
      transform: translateY(-50%);
    }

    .mosaic--field .artwork-caption,
    .mosaic--field .mosaic-item:hover .artwork-caption,
    .mosaic--field .mosaic-item:focus-within .artwork-caption {
      display: none;
      opacity: 0;
      pointer-events: none;
    }
  }

  /* --------------------------------------------------------------------------
     5. VUE CONSTELLATION — PAYSAGE COMPACT SUR SMARTPHONES & TERMINAUX TACTILES
        Ciblage chirurgical : orientation paysage & hauteur contrainte (<= 500px)
        Garantit une échelle fluide des toiles, un swipe horizontal sans blocage
        et une contemplation épurée sans régression desktop ni portrait vertical.
     -------------------------------------------------------------------------- */
  @media (orientation: landscape) and (max-height: 500px) {
    .constellation-overlay {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100dvh;
      overflow: hidden !important;
      scrollbar-width: none !important;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
    }

    /* Zone 1 : En-tête compact monoligne */
    .constellation-overlay .overlay-topline,
    .constellation-header {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      flex-shrink: 0;
      min-height: 32px;
      gap: 8px;
      z-index: 10;
      padding-top: max(4px, env(safe-area-inset-top));
    }

    .constellation-series-selector {
      justify-self: start;
      min-width: 0;
    }

    .constellation-series-selector .mono {
      font-size: 10px;
    }

    .constellation-nav-center {
      position: static;
      left: auto;
      transform: none;
      justify-self: center;
      gap: 4px;
    }

    .constellation-counter {
      font-size: 10px;
      min-width: 36px;
    }

    .constellation-nav-center .icon-button {
      width: 26px;
      height: 26px;
    }

    .constellation-nav-center .icon-button svg {
      width: 14px;
      height: 14px;
    }

    .constellation-overlay #closeConstellationBtn,
    .constellation-overlay .close-layer-btn,
    .constellation-close {
      justify-self: end;
      font-size: 0;
      gap: 6px;
      min-height: 26px;
    }

    /* Libellé selon la langue de la page (<html lang>) */
    html[lang="fr"] .constellation-overlay #closeConstellationBtn::before,
    html[lang="fr"] .constellation-overlay .close-layer-btn::before,
    html[lang="fr"] .constellation-close::before {
      content: "Fermer";
    }

    .constellation-overlay #closeConstellationBtn::before,
    .constellation-overlay .close-layer-btn::before,
    .constellation-close::before {
      content: "Close";
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 400;
      line-height: 1;
    }

    .constellation-overlay #closeConstellationBtn svg,
    .constellation-overlay .close-layer-btn svg,
    .constellation-close svg {
      width: 14px;
      height: 14px;
    }

    .constellation-heading {
      flex-shrink: 0;
      padding: 0 0 2px;
      margin: 0;
      z-index: 5;
    }

    .constellation-heading h2 {
      font-size: clamp(16px, 3.2vw, 20px);
      line-height: 1.1;
      margin: 0;
      gap: 8px;
    }

    .heading-star {
      font-size: 12px;
    }

    /* Zone 2 : Ciel central & Rail stellaire horizontal défilable */
    .constellation-field {
      position: relative;
      flex: 1 1 auto;
      min-height: 0 !important;
      width: calc(100% + max(var(--gutter), env(safe-area-inset-left)) + max(var(--gutter), env(safe-area-inset-right)));
      max-width: none;
      margin: 0 calc(max(var(--gutter), env(safe-area-inset-left)) * -1);
      padding-bottom: calc(34px + max(4px, env(safe-area-inset-bottom)));
      display: flex;
      align-items: center;
      overflow-y: hidden !important;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x;
      scroll-snap-type: none;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .constellation-field::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    #constellationItemsContainer {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
      gap: clamp(16px, 3.5vw, 24px);
      width: 100% !important;
      height: 100% !important;
      /* Ruban aligné sur les marges de la page : pas de demi-écran vide aux extrémités */
      padding-left: max(var(--gutter), env(safe-area-inset-left));
      padding-right: max(var(--gutter), env(safe-area-inset-right));
      overflow-y: hidden !important;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x;
      /* Défilement libre (planche contact) : l'œuvre active suit le défilement en continu, sans aimantation qui la contredirait */
      scroll-snap-type: none;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    #constellationItemsContainer::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    /* Toiles en rangée fluide : échelle ajustée sans rognage */
    .constellation-piece,
    .constellation-field.is-dense .constellation-piece,
    .constellation-item,
    .constellation-node {
      position: relative !important;
      left: auto !important;
      top: auto !important;
      flex: 0 0 auto !important;
      width: auto !important;
      max-width: none !important;
      min-width: 0 !important;
      height: auto;
      max-height: 55dvh;
      scroll-snap-align: center;
      scroll-snap-stop: normal;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .constellation-piece-inner {
      width: auto;
      height: auto;
      max-height: 55dvh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .constellation-piece .artwork-button {
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 55dvh;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      outline: none;
      transform: none !important;
    }

    .constellation-piece img {
      width: auto;
      height: auto;
      max-width: 45vw;
      max-height: 55dvh;
      aspect-ratio: auto;
      object-fit: contain !important;
      margin: 0 auto;
      display: block;
      outline: 1px solid transparent;
      outline-offset: 4px;
      transition: outline-color 0.25s ease;
    }

    .constellation-piece.is-active img {
      outline-color: rgba(40, 60, 42, 0.65);
    }

    .constellation-traces {
      display: none !important;
    }

    /* Zone 3 : Cartel inférieur ultra-compact ancré au bas de l'écran */
    .constellation-cartel {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 10;
      background-color: var(--paper);
      border-top: 1px solid var(--line);
      padding: 4px max(var(--gutter), env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 32px;
    }

    .constellation-current {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex: 1 1 auto;
      margin-right: 0;
    }

    .constellation-current svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }

    .constellation-current > div {
      display: flex;
      flex-direction: row;
      align-items: baseline;
      gap: 8px;
      overflow: hidden;
      min-width: 0;
    }

    .active-work-title {
      font-size: 13px;
      line-height: 1.1;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .constellation-current .mono {
      font-size: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .constellation-current .cartel-meta-tech,
    .constellation-current .cartel-meta-edition {
      display: inline;
    }

    .constellation-pricing {
      display: flex;
      flex-direction: row;
      align-items: baseline;
      gap: 6px;
      flex-shrink: 0;
      text-align: right;
    }

    .constellation-price {
      font-size: 11px;
      line-height: 1;
      min-height: auto;
      font-weight: 500;
    }

    .constellation-status {
      display: inline;
      font-size: 8px;
      line-height: 1;
      min-height: auto;
      white-space: nowrap;
    }

    .constellation-bottom,
    .constellation-footer {
      display: none !important;
    }
  }

  /* --------------------------------------------------------------------------
     6. VUE FOCUS (REGARD RAPPROCHÉ) — PAYSAGE COMPACT SUR SMARTPHONES
        Ciblage chirurgical : orientation landscape & hauteur contrainte (<= 480px)
        Ajuste l'œuvre à la hauteur utile (calc(100dvh - 2.5rem)) sans rognage,
        place le cartel sur le côté droit sans déborder et protège les bords
        (Dynamic Island / encoche) sans régression portrait mobile ni desktop.
     -------------------------------------------------------------------------- */
  @media (orientation: landscape) and (max-height: 480px) {
    .focus-overlay {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100dvh;
      overflow: hidden !important;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding-left: max(1.5rem, env(safe-area-inset-left));
      padding-right: max(1.5rem, env(safe-area-inset-right));
      padding-top: max(4px, env(safe-area-inset-top));
      padding-bottom: max(4px, env(safe-area-inset-bottom));
      box-sizing: border-box;
    }

    /* En-tête monoligne condensé */
    .focus-overlay .overlay-topline,
    .focus-header {
      min-height: 28px;
      height: 28px;
      flex-shrink: 0;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0;
      margin: 0;
      z-index: 10;
    }

    .focus-overlay .overlay-topline .mono {
      font-size: 9px;
      letter-spacing: 0.04em;
    }

    .focus-header .close-layer-btn {
      font-size: 11px;
      padding: 4px 0;
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .focus-header .close-layer-btn svg {
      width: 14px;
      height: 14px;
    }

    /* Masquage du pied de page pour maximiser l'espace de contemplation vertical */
    .focus-overlay .overlay-bottomline,
    .focus-footer {
      display: none !important;
    }

    /* Corps principal : disposition horizontale équilibrée */
    .focus-body {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: clamp(16px, 3.5vw, 36px);
      width: 100%;
      max-width: none;
      height: calc(100dvh - 2.5rem);
      max-height: calc(100dvh - 2.5rem);
      flex: 1 1 auto;
      min-height: 0;
      padding: 0;
      margin: auto 0;
      overflow: hidden;
      box-sizing: border-box;
    }

    /* Côté Image : contrainte stricte sur la hauteur utile, sans rognage */
    .focus-artwork-wrap {
      flex: 0 1 auto;
      height: 100%;
      max-height: calc(100dvh - 2.5rem);
      max-width: 55vw;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      min-height: 0;
    }

    .focus-artwork-stage {
      width: 100%;
      height: 100%;
      max-height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      min-height: 0;
    }

    .focus-image-buffer {
      width: auto;
      height: 100%;
      max-height: 100%;
      display: grid;
      place-items: center;
      min-width: 0;
      min-height: 0;
    }

    .focus-img,
    .focus-media {
      grid-area: 1 / 1;
      height: calc(100dvh - 2.5rem);
      max-height: calc(100dvh - 2.5rem);
      width: auto;
      max-width: 55vw;
      object-fit: contain;
      object-position: center;
      margin: auto;
      display: block;
    }

    /* Côté Cartel : panneau droit compact et lisible, avec débattement scroll si nécessaire */
    .focus-cartel {
      flex: 1 1 0;
      min-width: 250px;
      max-width: 420px;
      max-height: calc(100dvh - 2.5rem);
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      padding: 4px 6px 4px 0;
      margin: auto 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      box-sizing: border-box;
    }

    .focus-cartel::-webkit-scrollbar {
      width: 3px;
    }

    .focus-cartel::-webkit-scrollbar-thumb {
      background: var(--line);
      border-radius: 2px;
    }

    .focus-cartel .eyebrow {
      font-size: 8.5px;
      margin-bottom: 3px;
      line-height: 1.1;
    }

    .focus-cartel h2 {
      font-size: clamp(18px, 3.2vw, 24px);
      line-height: 1.08;
      margin: 0 0 4px;
      letter-spacing: -0.03em;
    }

    .focus-statement {
      font-size: 12px;
      line-height: 1.25;
      margin: 3px 0 6px;
      max-width: none;
    }

    .museum-label {
      font-size: 8.5px;
      padding: 4px 0;
      margin: 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .museum-label > div {
      grid-template-columns: 60px 1fr;
      gap: 8px;
      margin-bottom: 2px;
    }

    .museum-label > div:last-child {
      margin-bottom: 0;
    }

    .focus-price {
      margin: 6px 0 4px;
      align-items: baseline;
    }

    .focus-price > span:first-child {
      font-size: 17px;
      letter-spacing: -0.03em;
    }

    .focus-price .mono {
      font-size: 8px;
    }

    .acquire-button {
      min-height: 34px;
      padding: 6px 0;
      font-size: 11px;
      gap: 12px;
    }

    .acquire-button svg {
      width: 14px;
      height: 14px;
    }

    .series-link-btn {
      margin-top: 4px;
      min-height: 28px;
      font-size: 10px;
      gap: 8px;
    }

    .series-link-btn svg {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
    }

    .series-link-btn small {
      font-size: 7.5px;
      margin-top: 1px;
    }
  }

  /* Fenêtre d'ordinateur basse (souris) : le pied de page compact revient pour garder les flèches
     « ← → » cliquables ; l'œuvre cède sa hauteur. Au toucher, rien ne change (glissement du doigt). */
  @media (orientation: landscape) and (max-height: 480px) and (hover: hover) and (pointer: fine) {
    .focus-overlay .overlay-bottomline,
    .focus-footer {
      display: flex !important;
      align-items: center;
      height: 28px;
      min-height: 28px;
      padding: 0;
    }

    .focus-body,
    .focus-artwork-wrap,
    .focus-cartel {
      max-height: calc(100dvh - 2.5rem - 28px);
    }

    .focus-body {
      height: calc(100dvh - 2.5rem - 28px);
    }

    .focus-img,
    .focus-media {
      height: calc(100dvh - 2.5rem - 28px);
      max-height: calc(100dvh - 2.5rem - 28px);
    }
  }

  /* Vue rapprochée, fenêtre large mais peu haute (481–639 px) : en-tête, pied de page et marges se resserrent
     progressivement en dessous de 640 px de haut (valeurs ordinaires au-delà). À 481 px, ils partent des
     dimensions du mode compact (≤ 480 px : en-tête 32, pied 28, sans marge) : l'œuvre garde sa taille au passage
     d'un mode à l'autre, puis grandit doucement jusqu'à 640 px, et le cartel tient au-dessus du pied de page. */
  @media (min-width: 769px) and (min-height: 481px) and (max-height: 639.98px) {
    .focus-overlay {
      --focus-head: clamp(32px, calc(32px + (100vh - 480px) * 0.275), 76px);
      --focus-foot-pad: clamp(4px, calc(4px + (100vh - 480px) * 0.0875), 18px);
      --focus-body-pad: clamp(0px, calc((100vh - 480px) * 0.25), 40px);
    }

    .focus-overlay .overlay-topline {
      min-height: var(--focus-head);
    }

    .focus-overlay .overlay-bottomline {
      padding: var(--focus-foot-pad) 0;
    }

    .focus-body {
      padding: var(--focus-body-pad) 2vw;
    }

    .focus-img,
    .focus-media {
      max-height: calc(100vh - var(--focus-head) - 2 * var(--focus-foot-pad) - 20px - 2 * var(--focus-body-pad) - 8px);
      max-height: calc(100svh - var(--focus-head) - 2 * var(--focus-foot-pad) - 20px - 2 * var(--focus-body-pad) - 8px);
    }
  }

  /* Mosaïque en champ libre sur écran couché étroit (≤ 768 px de large, ≤ 500 px de haut : petits smartphones en paysage) :
     les œuvres prennent la largeur de l'écran et dépassent sa hauteur. Leur largeur est bornée par la hauteur visible
     (vignettes au format 4:5, hauteur = 1,25 × largeur : 80 %, 61 % et 72 % de l'écran), le rythme en 3 temps est gardé. */
  @media (orientation: landscape) and (max-height: 500px) and (max-width: 768px) {
    .mosaic--field .mosaic-item:nth-child(3n + 1) {
      width: min(92%, 64vh);
      width: min(92%, 64svh);
    }

    .mosaic--field .mosaic-item:nth-child(3n + 2) {
      width: min(70%, 49vh);
      width: min(70%, 49svh);
    }

    .mosaic--field .mosaic-item:nth-child(3n + 3) {
      width: min(84%, 58vh);
      width: min(84%, 58svh);
    }
  }

  /* Panier sur écran couché peu haut (smartphone en paysage, barres de Safari comprises) : en-tête, pied de paiement
     et liste ne tiennent pas ensemble. Le tiroir entier défile (le bouton « Finaliser » est toujours atteignable),
     en-tête et texte d'attente sont resserrés, et le contenu s'écarte de l'encoche et de la barre d'accueil. */
  @media (orientation: landscape) and (max-height: 500px) {
    .selection-drawer {
      overflow-y: auto;
      overscroll-behavior-y: contain;
      -webkit-overflow-scrolling: touch;
      padding-bottom: env(safe-area-inset-bottom);
    }

    .selection-drawer > * {
      flex-shrink: 0;
    }

    .drawer-heading {
      padding: 14px 0 12px;
    }

    .drawer-heading h2 {
      font-size: 26px;
    }

    .drawer-content {
      flex: 0 0 auto;
      overflow: visible;
      min-height: 0;
    }

    .empty-drawer {
      min-height: 0;
      padding: 18px 0;
      gap: 12px;
    }

    .empty-drawer p {
      font-size: 24px;
    }

    .selection-total > span:last-child {
      font-size: 24px;
    }
  }

  /* Tiroir latéral (écran couché large) : marge droite hors de l'encoche ; feuille du bas (≤ 768) : marges des deux côtés */
  @media (orientation: landscape) and (max-height: 500px) and (min-width: 769px) {
    .selection-drawer {
      padding-right: max(32px, env(safe-area-inset-right));
    }
  }

  @media (orientation: landscape) and (max-height: 500px) and (max-width: 768px) {
    .selection-drawer {
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
  }

  /* Mode compact dans une fenêtre étroite (≈ 500–600 px de large) : l'œuvre laisse toujours la place
     au cartel (250 px minimum) au lieu de passer dessous. Sans effet sur les téléphones couchés. */
  @media (orientation: landscape) and (max-height: 480px) {
    .focus-artwork-wrap,
    .focus-img,
    .focus-media {
      max-width: min(55vw, calc(100vw - 3rem - 250px - clamp(16px, 3.5vw, 36px)));
    }
  }

  /* Vue rapprochée empilée (fenêtre étroite, iPad portrait) : une seule colonne, centrée, de la largeur de l'œuvre ;
     le cartel en prend exactement la largeur (contain: inline-size : son texte n'élargit pas la colonne).
     Œuvre et cartel partagent ainsi les mêmes bords. Le mode compact couché (côte à côte) n'est pas concerné. */
  @media (width <= 768px) and (min-height: 481px) {
    .focus-body {
      grid-template-columns: fit-content(100%);
      justify-content: center;
    }

    .focus-body > .focus-cartel {
      contain: inline-size;
      width: 100%;
      max-width: none;
      justify-self: stretch;
    }
  }
