.catalogue-page {
  --rule: #cddbdf;
  --ice: #eef7fb;
  --ocean: #276486;
  --ink: #16394f;
  --muted: #486171;
}
html:has(.catalogue-page) { scroll-padding-top: 72px; }
#catalogue-produits { scroll-margin-top: 1rem; }
.catalogue-page [hidden] { display: none !important; }
.catalogue-skip { position: fixed; left: .7rem; top: .5rem; z-index: 10; background: white; padding: .5rem; transform: translateY(-155%); }
.catalogue-skip:focus { transform: none; }
.catalogue-header { height: auto; min-height: 72px; gap: 1.5rem; }
.catalogue-header .logo { width: 145px; }
.catalogue-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); margin-left: auto; }
.catalogue-header nav a { padding: .6rem 0; }
.catalogue-header .current-catalogue { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.catalogue-header .basket-button { border-color: #a8bdc9; white-space: nowrap; font-weight: 600; }
.catalogue-cover { display: grid; grid-template-columns: 45% 55%; background: #e4f3fb; }
.catalogue-cover-text { align-self: center; padding: clamp(1.75rem, 4.2vw, 4.6rem) 8% clamp(1.8rem, 4.2vw, 4.6rem) 11%; }
.catalogue-cover-text > p:first-child { margin: 0 0 .65rem; font-weight: 700; font-size: .92rem; color: var(--ocean); }
.catalogue-cover h1 { line-height: .99; letter-spacing: -.067em; font-size: clamp(3.25rem, 5.8vw, 6.1rem); margin: 0; }
.catalogue-cover h1 span { color: #3983ab; }
.catalogue-cover-text > p:last-child { max-width: 39ch; margin: .95rem 0 0; line-height: 1.5; }
.catalogue-cover figure { margin: 0; position: relative; min-height: 207px; }
.catalogue-cover figure img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.catalogue-cover figcaption { position: absolute; right: .8rem; bottom: .65rem; background: #112f40e8; color: white; padding: .25rem .6rem; font-size: .8rem; border-radius: .25rem; }
.catalogue-content { width: min(90%, 92rem); margin: 0 auto; }
.catalogue-discovery { padding: clamp(1.6rem, 3vw, 3rem) 0 1.7rem; }
.browse-line, .listing-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.catalogue-content h2 { font-size: clamp(1.65rem, 2.5vw, 2.7rem); letter-spacing: -.055em; margin: 0; }
.browse-switch { display: inline-flex; padding: .2rem; background: #edf3f6; border-radius: 2rem; }
.browse-switch button { border: 0; padding: .47rem 1.05rem; border-radius: 2rem; font-size: .9rem; font-weight: 700; background: transparent; }
.browse-switch [aria-pressed="true"] { background: var(--ink); color: white; }
.discovery-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; margin-top: 1.1rem; }
.discovery-choice { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .5rem; width: 100%; padding: .4rem .45rem .65rem; background: #f7fafc; border: 1px solid #d9e5ec; border-radius: .55rem; text-align: center; }
.discovery-choice img { display: block; flex: none; width: 100%; height: 4rem; object-fit: contain; mix-blend-mode: multiply; }
.discovery-choice span { font-size: .91rem; font-weight: 700; line-height: 1.25; }
.discovery-choice:hover, .discovery-choice[aria-pressed="true"] { background: #e3f3fa; border-color: #39799a; }
.discovery-choice[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #39799a; }
#discovery-expand, .catalogue-clear { background: transparent; border: 0; padding: .45rem 0; color: var(--ocean); font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
#discovery-expand { display: block; margin: .45rem 0 0 auto; }
.catalogue-listing { border-top: 1px solid var(--rule); padding: 1.6rem 0 4rem; }
.catalogue-count { margin: 0; color: var(--muted); font-weight: 600; }
.catalogue-filters { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr) minmax(0, 1fr); gap: .85rem; margin: 1.15rem 0 1.35rem; }
.catalogue-filters label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 700; }
.catalogue-filters select, .catalogue-filters input { color: var(--ink); width: 100%; min-width: 0; padding: .64rem .75rem; border: 1px solid #aabecb; border-radius: .35rem; background-color: white; font: 400 1rem/1.3 'DM Sans', sans-serif; height: 2.85rem; }
.catalogue-filters select { cursor: pointer; appearance: none; padding-right: 2.35rem; }
.catalogue-filters label:has(select) { position: relative; }
.catalogue-filters label:has(select)::after {
  content: '';
  position: absolute;
  right: 1rem;
  bottom: 1.22rem;
  width: .47rem;
  height: .47rem;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
@media (forced-colors: active) {
  .catalogue-filters select { appearance: auto; }
  .catalogue-filters label:has(select)::after { display: none; }
}
.catalogue-filters select:focus-visible { outline: 3px solid #27759f; outline-offset: 3px; }
.search-box { position: relative; display: block; }
.catalogue-search input { padding-left: 2.45rem; }
.search-box::before, .search-box::after { content: ''; position: absolute; pointer-events: none; }
.search-box::before { width: 10px; height: 10px; border: 1.7px solid #536c7b; border-radius: 50%; left: .83rem; top: .85rem; }
.search-box::after { width: 7px; height: 1.7px; background: #536c7b; transform: rotate(45deg); left: 1.47rem; top: 1.65rem; }
.catalogue-clear { display: block; margin: -.85rem 0 .85rem; }
.catalogue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.05rem; }
.catalogue-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #d5e1e9; border-radius: .65rem; overflow: hidden; }
.catalogue-card-main { display: flex; flex-direction: column; flex: 1; }
.catalogue-photo { display: grid; place-items: center; background: #f5f9fb; aspect-ratio: 1.45; overflow: hidden; }
.catalogue-photo img { width: 90%; height: 90%; min-height: 0; min-width: 0; object-fit: contain; mix-blend-mode: multiply; transition: transform .18s ease-out; }
.catalogue-card-main:hover img { transform: scale(1.035); }
.catalogue-card-copy { display: block; padding: .88rem 1rem .65rem; }
.catalogue-collection { color: var(--ocean); font-size: .85rem; line-height: 1.25; font-weight: 700; }
.catalogue-card h3 { font-size: clamp(1.05rem, 1.4vw, 1.35rem); letter-spacing: -.025em; line-height: 1.22; margin: .36rem 0; overflow-wrap: anywhere; }
.catalogue-reference { font-size: .86rem; color: var(--muted); }
.catalogue-card-add { margin: 0 1rem .9rem; padding: .4rem 0; align-self: flex-start; background: transparent; border: 0; font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: .23em; }
.catalogue-card-add:hover, .catalogue-card-main:hover h3 { color: var(--ocean); }
#catalogue-message { background: #f0f7fb; padding: 1.25rem; border-radius: .4rem; }
#catalogue-message a { text-decoration: underline; }
.catalogue-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin: 2.2rem auto 0; }
.catalogue-pagination a, .catalogue-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.55rem; min-height: 2.55rem; }
.catalogue-pagination a { border: 1px solid var(--rule); border-radius: .35rem; padding: .4rem .65rem; }
.catalogue-pagination a:hover { background: var(--ice); }
.catalogue-pagination [aria-current] { color: white; background: var(--ink); border-radius: .35rem; }
@media (max-width: 899px) {
  .catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalogue-content { width: 92%; }
}
@media (max-width: 660px) {
  html:has(.catalogue-page) { scroll-padding-top: 58px; }
  .catalogue-header { min-height: 58px; padding: .4rem 4%; gap: .65rem; }
  .catalogue-header .logo { width: clamp(90px, 27vw, 130px); }
  .catalogue-header .current-catalogue { display: none; }
  .catalogue-cover { grid-template-columns: 1fr; }
  .catalogue-cover-text { padding: 1.45rem 5%; }
  .catalogue-cover h1 { font-size: 3.25rem; }
  .catalogue-cover-text > p:first-child { margin-bottom: .3rem; }
  .catalogue-cover-text > p:last-child { margin-top: .5rem; }
  .catalogue-cover figure { min-height: 105px; height: clamp(105px, 27vw, 160px); }
  .catalogue-cover figcaption { font-size: .75rem; bottom: .45rem; right: .5rem; }
  .browse-line { align-items: flex-start; gap: .7rem; }
  .catalogue-discovery { padding-block: 1.3rem 1rem; }
  .browse-switch button { padding: .42rem .8rem; }
  .discovery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: .75rem; gap: .4rem; }
  .discovery-choice { padding: .45rem .25rem .55rem; }
  .discovery-choice img { height: 3.35rem; }
  .discovery-choice span { font-size: .82rem; }
  .catalogue-listing { padding-top: 1rem; }
  .catalogue-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
  .catalogue-search { grid-column: 1/-1; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem .55rem; }
  .catalogue-card-copy { padding: .65rem .65rem .45rem; }
  .catalogue-card-add { min-height: 38px; margin: 0 .65rem .45rem; }
  .catalogue-pagination { gap: .3rem; }
  .catalogue-pagination a, .catalogue-pagination span { min-width: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .catalogue-photo img { transition: none; }
}

.catalogue-reference { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .catalogue-header { gap: .4rem; padding-inline: .55rem; }
  .catalogue-header .logo { width: 80px; }
  .catalogue-header nav a { font-size: .85rem; }
  .catalogue-header .basket-button { padding-inline: .5rem; }
}
@media (max-width: 660px) {
  .catalogue-header { flex-wrap: wrap; }
  .catalogue-header nav { order: 1; width: 100%; justify-content: flex-start; gap: 1.4rem; }
  .catalogue-header .basket-button { margin-left: auto; }
}

.brand-catalogues { display: flex; gap: 1.4rem; align-items: center; padding: .5rem 5%; background: white; border-bottom: 1px solid var(--rule); }
.brand-catalogues a { padding: .35rem 0; font-size: .9rem; font-weight: 600; }
.brand-catalogues [aria-current] { color: var(--ocean); text-decoration: underline; text-underline-offset: .3em; }
.evans-page .catalogue-cover { background: #e8f2ec; }
.evans-page .catalogue-cover figure img { object-position: center 51%; }

.evans-page .catalogue-cover h1 { font-size: clamp(2.1rem, 4.7vw, 5rem); }
@media (max-width: 660px) {
  .evans-page .catalogue-cover h1 { font-size: clamp(2.1rem, 9vw, 3.25rem); }
}
