








.hr-page { --tete: clamp(3.5rem, 8vw, 6.5rem); --nav-h: 75px; --hr-courbe: cubic-bezier(.65, 0, .35, 1); }


.hr-main { container: hr / inline-size; padding: var(--tete) var(--gutter) clamp(5rem, 9vw, 8rem); }






.hr-intro, .hr-mur, .hr-suite { --n: 1; --gap: clamp(1.4rem, 2.8cqw, 3rem);
  --haut: calc(100svh * .56);
  --l: min(100cqw, 22rem, var(--haut));
  --mw: calc(var(--n) * var(--l) + (var(--n) - 1) * var(--gap)); }
@container hr (min-width: 664px)  { .hr-intro, .hr-mur, .hr-suite { --n: 2; --l: min((100cqw - var(--gap)) / 2, 24rem, var(--haut)); } }
@container hr (min-width: 1080px) { .hr-intro, .hr-mur, .hr-suite { --n: 3; --l: min((100cqw - 2 * var(--gap)) / 3, var(--haut)); } }


.hr-intro { display: flex; flex-wrap: wrap; gap: 1.6rem 3rem; align-items: flex-end; justify-content: space-between;
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem); }
@container hr (min-width: 664px) { .hr-intro { width: var(--mw); margin-inline: auto; } }



.hr-filtre { display: flex; flex-wrap: wrap; gap: .2rem 1.7rem; margin: 0; padding: 0 0 .1rem; list-style: none; }
html:not(.hr-script) .hr-filtre, html:not(.hr-script) .hr-suite { display: none; }
.hr-filtre button { position: relative; display: inline-flex; align-items: baseline; gap: .5rem; padding: .55rem 0;
  font: 500 .66rem/1.4 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-muted-text); background: none; border: 0; cursor: pointer; }
.hr-filtre .hr-n { font-family: var(--font-title); font-weight: 400; font-size: 1rem; letter-spacing: .02em;
  line-height: 1; color: var(--color-accent); font-variant-numeric: lining-nums; }

.hr-filtre button::after { content: ''; position: absolute; left: 0; right: 0; bottom: .3rem; height: 1px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left center; }
.hr-filtre button[aria-pressed="true"] { color: var(--color-text); }
.hr-filtre button[aria-pressed="true"]::after { transform: scaleX(1); }



@media (hover: hover) and (pointer: fine) {
  .hr-filtre button:hover { color: var(--color-text); }
  .hr-filtre button:not([aria-pressed="true"]):hover::after { transform: scaleX(.35); opacity: .6; }
}
.hr-filtre button.is-pressed { color: var(--color-text); }
.hr-filtre button:not([aria-pressed="true"]).is-pressed::after { transform: scaleX(.35); opacity: .6; }
.hr-filtre button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

@media (pointer: coarse) { .hr-filtre button { padding-block: .85rem; } .hr-filtre button::after { bottom: .6rem; } }


.hr-mur { display: flex; flex-direction: column; gap: 3.4rem; }

.hr-mur > .hr-rp { width: min(var(--w, 100%), var(--l)); align-self: var(--a, flex-start); }
@container hr (min-width: 664px) {
  .hr-mur { display: grid; width: var(--mw); margin-inline: auto; grid-template-columns: repeat(var(--n), var(--l));
    align-items: start; gap: clamp(3.5rem, 6vw, 5.5rem) var(--gap); }
  .hr-mur > .hr-rp { width: auto; align-self: auto; }
}
.hr-rp { display: block; min-width: 0; }
.hr-rp[hidden] { display: none; }




.hr-boite { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.hr-mat, .hr-biseau, .hr-photo { position: absolute; inset: 0; display: block; }



.hr-mat { background-color: #ECE6DC; background-image: url('/images/ui/feuille-carton.webp'); background-size: 220px auto; }
.hr-biseau { background-color: #FBF8F3; }
.hr-photo { background-color: var(--color-surface); }
.hr-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }


.hr-cartel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; align-items: start;
  margin-top: 1.1rem; color: inherit; text-decoration: none; }
.hr-num { font-family: var(--font-title); font-weight: 400; font-size: clamp(min(2.4rem, 10.24vw), 3.6vw, 3.6rem); line-height: .8;
  letter-spacing: .08em; margin-left: -.03em; color: var(--color-accent); font-variant-numeric: lining-nums; }



.hr-txt { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; min-width: 0; padding-top: .1rem;
  overflow-wrap: break-word; }
.hr-kicker { font-family: var(--font-body); font-size: .6rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-muted-text); line-height: 1.5; }
.hr-titre { font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: -.035em;
  line-height: .95; font-size: clamp(min(1.35rem, 5.76vw), 1.9vw, 1.9rem); text-wrap: balance; }
.hr-titre > span { text-decoration: underline 1px transparent; text-underline-offset: .16em; }
.hr-voix { font-family: var(--font-title); font-style: italic; font-weight: 400; color: var(--color-accent);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.2; }
.hr-cartel:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 6px; }


@container hr (max-width: 663.98px) {
  .hr-num { font-size: clamp(min(2.4rem, 10.24vw), 11vw, 3.2rem); }
  .hr-titre { font-size: clamp(min(1.35rem, 5.76vw), 6.4vw, 1.8rem); }
}




.hr-page.hr-vif .hr-filtre button { transition: color .45s ease; }
.hr-page.hr-vif .hr-filtre button::after { transition: transform .6s var(--hr-courbe), opacity .3s ease; }
.hr-page.hr-vif .hr-num { transition: opacity .5s ease; }
.hr-page.hr-vif .hr-titre > span { transition: text-decoration-color .5s ease; }


.hr-page.hr-un .hr-rp:not(.is-grand) .hr-num { opacity: .45; }
.hr-page.hr-un .hr-rp.is-grand .hr-titre > span { text-decoration-color: var(--color-accent); }



.hr-suite { margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(28, 25, 21, .14); }
@container hr (min-width: 664px) { .hr-suite { width: var(--mw); margin-inline: auto; } }
.hr-suite-titre { margin: 0 0 .35rem; font-family: var(--font-title); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.2; color: var(--color-accent); }
.hr-suite li[hidden] { display: none; }


@media (max-width: 299.98px) { .hr-kicker, .hr-titre { overflow-wrap: anywhere; } }

@media (prefers-reduced-motion: reduce) {
  .hr-page.hr-vif .hr-filtre button, .hr-page.hr-vif .hr-filtre button::after, .hr-page.hr-vif .hr-num,
  .hr-page.hr-vif .hr-titre > span { transition: none; }
}








@media (pointer: fine) {
  @container hr (min-width: 664px) {
    html.hr-script .hr-page:not(.hr-un) .hr-mur > .hr-rp .hr-mat { clip-path: var(--hr-mat-2, none); }
    html.hr-script .hr-page:not(.hr-un) .hr-mur > .hr-rp .hr-biseau { clip-path: var(--hr-bis-2, none); }
    html.hr-script .hr-page:not(.hr-un) .hr-mur > .hr-rp .hr-photo { clip-path: var(--hr-pho-2, none); }
  }
  @container hr (min-width: 1080px) {
    html.hr-script .hr-page:not(.hr-un) .hr-mur > .hr-rp .hr-mat { clip-path: var(--hr-mat-3, none); }
    html.hr-script .hr-page:not(.hr-un) .hr-mur > .hr-rp .hr-biseau { clip-path: var(--hr-bis-3, none); }
    html.hr-script .hr-page:not(.hr-un) .hr-mur > .hr-rp .hr-photo { clip-path: var(--hr-pho-3, none); }
  }
}







@keyframes hr-ouvre { from { clip-path: var(--hr-pt-ici); } }
@media screen and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  @container hr (min-width: 664px) {
    html.hr-entree .hr-mur > .hr-rp:nth-child(-n+2) .hr-biseau,
    html.hr-entree .hr-mur > .hr-rp:nth-child(-n+2) .hr-photo { --hr-pt-ici: var(--hr-pt-2);
      animation: hr-ouvre 900ms cubic-bezier(.22, .61, .36, 1) both paused; }
  }
  @container hr (min-width: 1080px) {
    html.hr-entree .hr-mur > .hr-rp:nth-child(-n+3) .hr-biseau,
    html.hr-entree .hr-mur > .hr-rp:nth-child(-n+3) .hr-photo { --hr-pt-ici: var(--hr-pt-3);
      animation: hr-ouvre 900ms cubic-bezier(.22, .61, .36, 1) both paused; }
  }
}
