:root {
  --paper: #fbf8f1;
  --paper-deep: #f0e8da;
  --ink: #2d2a24;
  --muted: #6d665b;
  --line: #d8cdbc;
  --green: #315846;
  --green-deep: #203c2d;
  --gold: #b67a31;
  --display: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.65; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-deep); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--gold); }
h1, h2, h3 { margin: 0 0 .55em; font-family: var(--display); line-height: 1.12; }
h1 { font-size: clamp(2.25rem, 4vw, 4.8rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.55rem); }
p, ul, ol { margin: 0 0 1.2rem; }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.cm-passe { width: min(calc(100% - 2rem), var(--measure)); margin-inline: auto; }
.cm-corniche { border-top: .35rem solid var(--green); border-bottom: 1px solid var(--line); background: rgba(251, 248, 241, .97); }
.cm-corniche__rang { display: flex; align-items: center; gap: 1.25rem 2rem; min-height: 5.4rem; padding: 1rem 0; }
.cm-enseigne { color: var(--green-deep); font: 700 1.45rem/1.05 var(--display); text-decoration: none; letter-spacing: -.02em; }
.cm-enseigne span { display: block; margin-top: .35rem; color: var(--muted); font: 500 .72rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.cm-visite { margin-left: auto; }
.cm-visite ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.cm-visite a { color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.cm-visite a:hover, .cm-visite a[aria-current="page"] { color: var(--gold); }

.cm-scene { overflow: hidden; }
.cm-accroche { position: relative; isolation: isolate; min-height: clamp(22rem, 46vw, 35rem); overflow: hidden; background: var(--green-deep); }
.cm-accroche::after { position: absolute; inset: 0; z-index: -1; background: rgba(22, 42, 31, .6); content: ""; }
.cm-accroche__vue { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cm-cartel-flottant { max-width: 42rem; padding: clamp(3rem, 9vw, 7rem) 0 4rem; color: #fff; }
.cm-cartel-flottant h1 { max-width: 12ch; color: #fff; }
.cm-cartel-flottant p { max-width: 35rem; color: #f4eee3; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.cm-inventaire { display: inline-block; margin-bottom: .7rem; color: var(--gold); font: 700 .72rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; }

.cm-salle { padding: clamp(2rem, 4vw, 4rem) 0; }
.cm-salle + .cm-salle { border-top: 1px solid var(--line); }
.cm-salle__bandeau { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.cm-salle__titre h1, .cm-salle__titre h2 { margin: 0; }
.cm-salle__note { margin: 0; color: var(--muted); font: .78rem/1.4 var(--mono); text-align: right; }
.cm-colonne { max-width: 48rem; }
.cm-colonne > :last-child { margin-bottom: 0; }

.cm-cimaise { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.cm-tirage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(12rem, .9fr); min-width: 0; border: 1px solid var(--line); background: #fff; box-shadow: 0 .35rem 1rem rgba(45, 42, 36, .06); }
.cm-tirage--large { grid-column: span 7; }
.cm-tirage--petit { grid-column: span 5; }
.cm-tirage--plein { grid-column: 1 / -1; }
.cm-tirage__cadrage { min-height: 100%; overflow: hidden; background: var(--paper-deep); }
.cm-tirage__cadrage--paysage, .cm-tirage__cadrage--haut { aspect-ratio: 4 / 3; }
.cm-tirage__cadrage--carre { aspect-ratio: 1 / 1; }
.cm-tirage__cadrage--pano { aspect-ratio: 16 / 8; }
.cm-tirage__vue { width: 100%; height: 100%; object-fit: cover; }
.cm-tirage__cartel { display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; }
.cm-tirage__titre { margin-bottom: .6rem; }
.cm-tirage__lien { color: var(--green-deep); text-decoration: none; }
.cm-tirage__lien:hover { color: var(--gold); }
.cm-tirage__mot { color: var(--muted); font-size: .92rem; }
.cm-tirage__indication { margin: auto 0 0; color: var(--gold); font: .72rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.cm-repertoire { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cm-repertoire__entree { position: relative; min-width: 0; overflow: hidden; background: var(--green-deep); }
.cm-repertoire__entree::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(22, 42, 31, .82)); content: ""; }
.cm-repertoire__vue { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; opacity: .86; transition: transform .25s ease, opacity .25s ease; }
.cm-repertoire__entree:hover .cm-repertoire__vue { transform: scale(1.04); opacity: 1; }
.cm-repertoire__nom { position: absolute; inset: auto 1rem 1rem; z-index: 1; color: #fff; font: 700 1.25rem/1.1 var(--display); text-decoration: none; }
.cm-repertoire__compte { display: block; margin-top: .35rem; color: #e9d6b7; font: .7rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; }

.cm-fil { padding: 1.25rem 0 0; }
.cm-fil ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; }
.cm-fil li + li::before { margin-right: .6rem; color: var(--line); content: "/"; }
.cm-ouverture { padding: clamp(2rem, 5vw, 4.5rem) 0 2rem; }
.cm-ouverture h1 { max-width: 15ch; }
.cm-ouverture__chapo { max-width: 45rem; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.cm-indications { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font: .75rem/1.4 var(--mono); }
.cm-article-meta { color: var(--muted); font-size: .85rem; }
.cm-planche { width: min(100% - 2rem, 78rem); margin: 0 auto 2.5rem; }
.cm-planche img { width: 100%; max-height: 42rem; object-fit: cover; }
.cm-planche figcaption, .cm-diptyque figcaption { margin-top: .5rem; color: var(--muted); font-size: .8rem; }
.cm-colonne h2 { margin-top: 2.25rem; }
.cm-exergue { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: .3rem solid var(--gold); background: var(--paper-deep); font: italic 1.2rem/1.45 var(--display); }
.cm-diptyque { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.cm-diptyque img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cm-poursuivre { display: inline-block; margin-top: 1rem; font-weight: 700; }

.cm-socle { margin-top: 2rem; padding: 2.5rem 0 1rem; border-top: 1px solid var(--line); background: var(--paper-deep); }
.cm-socle__rang { display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 2rem; }
.cm-socle h2 { font-size: 1.25rem; }
.cm-socle ul { margin: 0; padding: 0; list-style: none; }
.cm-socle li + li { margin-top: .35rem; }
.cm-socle__bas { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

@media (max-width: 62rem) {
  .cm-cimaise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-tirage--large, .cm-tirage--petit { grid-column: span 1; }
  .cm-tirage--plein { grid-column: 1 / -1; }
  .cm-repertoire { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .cm-corniche__rang { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .cm-visite { width: 100%; margin-left: 0; }
  .cm-visite ul { justify-content: flex-start; gap: .55rem .9rem; }
  .cm-salle__bandeau { align-items: flex-start; flex-direction: column; }
  .cm-salle__note { text-align: left; }
  .cm-tirage, .cm-tirage--plein { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .cm-tirage__cadrage--pano { aspect-ratio: 4 / 3; }
  .cm-tirage__cartel { min-height: 11rem; }
  .cm-socle__rang { grid-template-columns: 1fr 1fr; }
  .cm-socle__rang > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  .cm-passe { width: min(calc(100% - 1.25rem), var(--measure)); }
  .cm-accroche { min-height: 25rem; }
  .cm-cartel-flottant { padding-top: 4rem; }
  .cm-repertoire { grid-template-columns: 1fr; }
  .cm-diptyque, .cm-socle__rang { grid-template-columns: 1fr; }
  .cm-socle__rang > :first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
