/* Accueil (proposition) : présentations des maisons plus légères que les rideaux (js/marques-accueil.js).
   Reprend .r-logo, .r-cta, .r-meta et .r-credit de css/rideaux.css. */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mq-index h1, .mq-logos h1, #t-maisons:not(.visuellement-cache) { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.035em; line-height: 1.02; font-weight: 500; text-wrap: balance; }

/* 1. Index */
.mq-index { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); height: max(600px, min(calc(100svh - var(--entete-h, 152px)), 860px)); }
.mq-i-liste { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 64px) clamp(28px, 3vw, 44px); }
.mq-i-liste h1, .mq-i-liste #t-maisons { max-width: 12ch; }
.mq-i-liste ul { list-style: none; margin: 0; padding: 0; }
.mq-i-liste a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0;
  font: 500 clamp(22px, 2vw, 30px)/1.12 var(--titre); letter-spacing: -.02em; color: #B3B3B0; transition: color .25s; }
.mq-i-liste a small { font: 400 12px/1 var(--texte); letter-spacing: .04em; color: var(--gris); opacity: 0; transition: opacity .25s; font-variant-numeric: tabular-nums; }
.mq-i-liste a.actif { color: var(--noir); }
.mq-i-liste a.actif small { opacity: 1; }
.mq-i-cadre { position: relative; overflow: hidden; background: #000; }
.mq-i-vue { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; color: #fff; }
.mq-i-vue.actif { opacity: 1; }
.mq-i-vue > :is(.fond, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mq-i-vue video { opacity: 0; transition: opacity .8s; }
.mq-i-vue video.joue { opacity: 1; }
.mq-i-vue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 50%); }
.mq-i-txt { position: absolute; z-index: 2; left: clamp(24px, 3vw, 48px); bottom: clamp(28px, 4vh, 48px); display: grid; gap: 14px; justify-items: start; }
.mq-i-txt p { font: 400 clamp(18px, 1.5vw, 22px)/1.3 "Cormorant Garamond", serif; max-width: 32ch; }
.mq-i-vue .r-credit { z-index: 2; }

/* Familles, sous chaque variante */
.mq-familles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; padding: 26px 0; border-bottom: 1px solid var(--filet); font-size: 15px; }
.mq-familles > span { color: var(--gris); }
.mq-familles a:not(.lien-maj) { font: 500 17px/1.2 var(--titre); letter-spacing: -.01em; }
.mq-familles a:not(.lien-maj):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mq-familles small { font: 400 12px var(--texte); color: var(--gris); font-variant-numeric: tabular-nums; }
.mq-familles .lien-maj { margin-left: auto; }

/* 2. À la une : les maisons défilent, la rangée sert de sommaire */
.mq-u-grand { position: relative; height: max(520px, min(calc(100svh - var(--entete-h, 152px) - 40px), 56.25vw)); overflow: hidden; background: #000; color: #fff; }
.mq-u-vue { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .9s, visibility 0s .9s; }
.mq-u-vue.actif { opacity: 1; visibility: visible; transition: opacity .9s; }
.mq-u-vue > :is(.fond, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mq-u-vue .fond { transform: scale(1.04); transition: transform 7s linear; }
.mq-u-vue.actif .fond { transform: scale(1); }
.mq-u-vue video { opacity: 0; transition: opacity .9s; }
.mq-u-vue video.joue { opacity: 1; }
.mq-u-vue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,0) 55%); }
.mq-u-txt { position: absolute; z-index: 2; left: clamp(24px, 4vw, 64px); bottom: clamp(32px, 6vh, 64px); display: grid; gap: 18px; justify-items: start; }
.mq-u-txt p { font: 400 clamp(20px, 1.8vw, 26px)/1.3 "Cormorant Garamond", serif; max-width: 30ch; }
/* Visuel « À la une » saisi dans le back-office : un titre à la place du logo */
.mq-u-titre { font: 400 clamp(34px, 4.4vw, 64px)/1 var(--titre); letter-spacing: -.035em; max-width: 16ch; color: #fff; }
.mq-u-rangee .mq-u-nom { position: relative; padding: 0 10px; font: 500 12px/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.mq-u-vue .r-credit { z-index: 2; right: 120px; }
.mq-u-commandes { position: absolute; z-index: 3; right: clamp(16px, 2vw, 28px); bottom: 10px; display: flex; align-items: center; gap: 8px; }
/* Flèches discrètes, à mi-hauteur de chaque côté ; plus nettes au survol du visuel */
.mq-u-fleche { position: absolute; z-index: 3; top: 50%; width: 48px; height: 64px; margin-top: -32px; display: grid; place-items: center; color: #fff; opacity: .55; transition: opacity .25s; }
.mq-u-fleche[data-sens="-1"] { left: clamp(4px, 1vw, 16px); }
.mq-u-fleche[data-sens="1"] { right: clamp(4px, 1vw, 16px); }
.mq-u-grand:hover .mq-u-fleche { opacity: .85; }
.mq-u-fleche:hover, .mq-u-fleche:focus-visible { opacity: 1 !important; }
.mq-u-fleche svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.mq-u-compte { min-width: 44px; text-align: center;  font: 500 11px/1 var(--texte); letter-spacing: .12em; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.mq-u-pause { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; }
.mq-u-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mq-u-pause svg path[d^="M5 3l"] { fill: currentColor; stroke: none; }
.mq-u-autres { padding: 40px clamp(16px, 3vw, 48px) 8px; }
.mq-u-autres h2 { font-size: clamp(20px, 1.8vw, 24px) !important; font-weight: 500; letter-spacing: -.015em; margin-bottom: 18px; }
.mq-u-rangee { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 9 * 8px) / 10); gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.mq-u-rangee::-webkit-scrollbar { display: none; }
.mq-u-rangee button { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; display: grid; place-items: center; scroll-snap-align: start; color: #fff; }
.mq-u-rangee .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.55); transition: filter .5s, transform 1.2s var(--sortie); }
.mq-u-rangee button:hover .fond, .mq-u-rangee button:focus-visible .fond, .mq-u-rangee button[aria-current="true"] .fond { filter: brightness(.7); transform: scale(1.04); }
.mq-u-rangee .r-logo { position: relative; height: 22px; max-width: 84%; object-position: center; }
.mq-u-rangee .r-logo.script { height: 34px; }
.mq-u-rangee .r-logo.brut { height: 40px; }
.mq-u-rangee .barre { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.25); opacity: 0; }
.mq-u-rangee .barre::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.mq-u-rangee button[aria-current="true"] .barre { opacity: 1; }
.mq-u-rangee button.actif .barre::after { animation: mq-barre var(--duree, 7s) linear forwards; }
.mq-une.en-pause .mq-u-rangee .barre::after { animation-play-state: paused; }
@keyframes mq-barre { to { transform: scaleX(1); } }
.mq-u-rangee small { position: absolute; left: 10px; bottom: 8px; font: 400 11px/1 var(--texte); color: rgba(255,255,255,.7); }

/* 3. Logos */
.mq-l-tete { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; padding: clamp(40px, 5vw, 72px) 0 56px; }
.mq-l-texte { display: grid; gap: 24px; justify-items: start; padding-bottom: 8px; }
.mq-l-texte h1, .mq-l-texte #t-maisons { font-size: clamp(40px, 5.4vw, 80px); max-width: 11ch; }
.mq-l-texte p { color: var(--gris); font-size: 17px; line-height: 1.6; max-width: 46ch; }
.mq-l-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; max-height: 620px; }
.mq-l-mur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--noir); border-left: 1px solid var(--filet); }
.mq-l-mur a { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; border-right: 1px solid var(--filet); border-bottom: 1px solid var(--filet); transition: background .25s; }
.mq-l-mur a:hover { background: var(--fond-2); }
.mq-l-mur img { height: 30px; width: auto; max-width: 62%; filter: brightness(0); }
.mq-l-mur img.script { height: 48px; }
.mq-l-mur img.brut { filter: none; height: 52px; }
/* Gucci et Fendi : emblème au-dessus du nom, il leur faut plus de hauteur */
.mq-l-mur [data-slug="gucci"] img, .mq-l-mur [data-slug="fendi"] img { height: 58px; }
.mq-logos + .mq-familles .lien-maj { display: none; }
.mq-l-mur small { position: absolute; left: 14px; bottom: 10px; font-size: 12px; color: var(--gris); opacity: 0; transition: opacity .25s; }
.mq-l-mur a:hover small, .mq-l-mur a:focus-visible small { opacity: 1; }
.mq-l-toutes { align-content: center; gap: 6px; text-align: center; }
.mq-l-toutes b { font: 500 12px/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.mq-l-toutes small { position: static !important; opacity: 1 !important; }
.mq-logos + .mq-familles { border-bottom: 0; }

@media (max-width: 900px) {
  .mq-index { grid-template-columns: 1fr; height: auto; }
  .mq-i-cadre { order: -1; aspect-ratio: 4 / 3; }
  .mq-i-liste { padding: 28px 16px 8px; gap: 20px; }
  .mq-i-liste a { color: var(--noir); font-size: 22px; padding: 10px 0; border-bottom: 1px solid var(--filet); }
  .mq-i-liste a small { opacity: 1; }
  .mq-familles .lien-maj { margin-left: 0; }
  .mq-u-rangee { grid-auto-columns: 38%; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .mq-u-autres { padding-inline: 16px; }
  .mq-l-tete { grid-template-columns: 1fr; padding-bottom: 36px; }
  .mq-l-photo { aspect-ratio: 4 / 3; }
  .mq-l-mur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mq-l-mur img { height: 22px; } .mq-l-mur img.script { height: 36px; }
  .mq-l-mur [data-slug="gucci"] img, .mq-l-mur [data-slug="fendi"] img { height: 44px; }
  .mq-l-mur small { opacity: 1; font-size: 11px; left: 10px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .mq-u-vue, .mq-u-vue .fond { transition: none; } .mq-u-vue .fond { transform: none; } }
@media (max-width: 760px) {
  .mq-u-vue .r-credit { right: auto; left: 20px; bottom: 14px; }
  .mq-u-txt { left: 20px; right: 20px; bottom: 44px; }
  .mq-u-fleche { width: 40px; opacity: .7; }
  .mq-u-grand { height: 72svh; min-height: 460px; }
}
