/* MENU « SOMMAIRE » (menu A, 02/10): the desktop panel of « Canapés » (inc/menu-sommaire.php), prefix ms-, and the
   desktop header opened from 1024 px instead of 1101 px (the 1024 to 1100 px block at the end). Loaded after
   design-entete.css. Light: no library, pictures loaded on opening (assets/js/menu-sommaire.js). */
.ms { --ms-anth: #25272b; --ms-blanc: #fafaf8; --ms-platre: #efeeea; --ms-moutarde: #d6a62b; --ms-bronze: #8c680c; --ms-feutre: #676a6f; --ms-trait: #d7d5cf; --ms-trait-2: #e6e4df;
  --ms-serif: "Source Serif 4", Georgia, serif; --ms-sans: "Familjen Grotesk", system-ui, sans-serif; --ms-ease: cubic-bezier(0.2, 0.7, 0.1, 1); }
.ms * { box-sizing: border-box; }
.ms a { display: revert; padding: 0; border-radius: 0; color: inherit; text-decoration: none; font: inherit; background: none; }
.nav-groupe__liste.ms a:hover { background: none; color: inherit; }
.ms img { display: block; max-width: 100%; }
.ms :focus-visible { outline: 3px solid var(--ms-moutarde); outline-offset: 2px; border-radius: 4px; }
.ms .ms-label { font: 600 0.68rem/1.2 var(--ms-sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ms-feutre); }
.ms .ms-voir { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font: 600 0.9rem/1.2 var(--ms-sans); color: var(--ms-bronze) !important; }
.ms .ms-voir::after { content: "\2192"; transition: transform 0.2s; }
.ms .ms-voir:hover::after { transform: translateX(3px); }

/* the phone drawer is used below 1024 px: the panel is never shown there */
@media (max-width: 1023px) { .ms { display: none !important; } }

@media (min-width: 1024px) {
  /* placed under the bar, full bleed (a pseudo element paints the width of the window), opens by fading */
  :is(#mega-canapes, #mega-matelas).ms { position: absolute; left: 0; right: 0; top: 100%; width: auto; min-width: 0; display: block; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none;
    background: #fff; transform: none !important; z-index: 5; box-shadow: 0 0 0 100vmax #fff, 0 1px 0 100vmax var(--ms-trait), 0 40px 60px -30px rgba(37, 39, 43, 0.3); clip-path: inset(0 -100vmax -80px -100vmax); max-height: calc(100vh - 68px); overflow: auto; overscroll-behavior: contain; color: var(--ms-anth); font-family: var(--ms-sans); }
  :is(#mega-canapes, #mega-matelas).ms img { display: block; } /* main.css hides the pictures of the nav under 1101 px */
  .ms .ms-in { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 17.5rem; gap: 2.4rem; align-items: start; padding: 1.6rem 0 1.8rem; }

  .ms .ms-rail { display: grid; gap: 0.1rem; position: sticky; top: 0; }
  .ms .ms-rail .ms-label { margin: 0 0 0.6rem; }
  .ms .ms-onglet { display: grid; grid-template-columns: 1.9rem 1fr auto; align-items: center; width: 100%; text-align: left; min-height: 44px; padding: 0 0.7rem 0 0.4rem; border: 0; border-radius: 8px; background: none; cursor: pointer;
    font: 400 1.12rem/1.1 var(--ms-serif); color: var(--ms-anth); position: relative; transition: background 0.15s; }
  .ms .ms-onglet i { font: 600 0.72rem/1 var(--ms-sans); font-style: normal; color: var(--ms-feutre); font-variant-numeric: tabular-nums; }
  .ms .ms-onglet::after { content: "\203A"; font: 400 1.2rem/1 var(--ms-sans); color: var(--ms-trait); }
  .ms .ms-onglet:hover { background: var(--ms-blanc); }
  .ms .ms-onglet[aria-selected="true"] { background: var(--ms-platre); }
  .ms .ms-onglet[aria-selected="true"] i { color: var(--ms-bronze); }
  .ms .ms-onglet[aria-selected="true"]::after { color: var(--ms-anth); }
  .ms .ms-onglet[aria-selected="true"]::before { content: ""; position: absolute; left: -0.6rem; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--ms-moutarde); }
  .ms .ms-pilier { display: grid; gap: 0.5rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--ms-trait); }
  .ms .ms-railc { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.75rem; align-items: center; min-height: 56px; padding: 0.35rem; border-radius: 12px; border: 1px solid var(--ms-trait-2); background: #fff; transition: border-color 0.15s, background 0.15s; }
  .ms .ms-railc:hover { border-color: var(--ms-anth); }
  .ms .ms-railc__img { display: block; width: 3.6rem; height: 2.8rem; border-radius: 8px; overflow: hidden; background: var(--ms-platre); }
  .ms .ms-railc__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
  .ms .ms-railc__txt { display: grid; gap: 0.1rem; min-width: 0; }
  .ms .ms-railc__nom { font: 400 1rem/1.15 var(--ms-serif); }
  .ms .ms-railc__ligne { font-size: 0.76rem; color: var(--ms-feutre); }
  .ms .ms-railc:hover .ms-railc__nom { color: var(--ms-bronze); }

  .ms .ms-vue[hidden] { display: none; }
  .ms .ms-vue { animation: ms-fondu 0.3s var(--ms-ease); }
  @keyframes ms-fondu { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
  .ms .ms-vue__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.8rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--ms-anth); }
  .ms .ms-vue__tete h3 { font: 300 2.2rem/1 var(--ms-serif); letter-spacing: -0.03em; margin: 0; color: var(--ms-anth); }
  .ms .ms-vue__tete h3 em { font-style: italic; }
  .ms .ms-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.6rem, 1fr)); gap: 1.3rem 1.1rem; }
  .ms .ms-carte { display: grid; gap: 0.45rem; align-content: start; min-width: 0; }
  .ms .ms-carte__img { aspect-ratio: 4 / 3; background: var(--ms-platre); border-radius: 10px; overflow: hidden; position: relative; }
  .ms .ms-carte__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 0.5s var(--ms-ease); }
  .ms .ms-carte:hover .ms-carte__img img { transform: scale(1.26); }
  .ms .ms-carte__nom { font: 600 0.93rem/1.25 var(--ms-sans); }
  .ms .ms-carte__n { display: block; font: 400 0.8rem/1.2 var(--ms-sans); color: var(--ms-feutre); margin-top: 0.15rem; }
  .ms .ms-carte:hover .ms-carte__nom { color: var(--ms-bronze); }
  .ms .ms-teinte { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ms-trait); }
  .ms .ms-prix { position: absolute; left: 8px; bottom: 8px; background: #fff; border-radius: 999px; padding: 0.25rem 0.6rem; font: 600 0.8rem/1 var(--ms-sans); }

  .ms .ms-cote { display: grid; gap: 1rem; }
  .ms .ms-une { display: grid; border-radius: 14px; overflow: hidden; background: var(--ms-anth); color: var(--ms-blanc) !important; }
  .ms .ms-une__img { aspect-ratio: 2 / 1; background: #34363b; overflow: hidden; }
  .ms .ms-une__img img { width: 100%; height: 100%; object-fit: cover; }
  .ms .ms-une__txt { padding: 0.9rem 1rem 1.05rem; display: grid; gap: 0.3rem; }
  .ms .ms-une .ms-label { color: var(--ms-moutarde); }
  .ms .ms-une__titre { font: 400 1.35rem/1.12 var(--ms-serif); letter-spacing: -0.01em; }
  .ms .ms-une__titre em { font-style: italic; color: var(--ms-moutarde); }
  .ms .ms-inspi { position: relative; display: block; border-radius: 14px; overflow: hidden; color: #fff !important; background: #3a3a36; aspect-ratio: 1 / 1; }
  .ms .ms-inspi img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ms-ease); }
  .ms .ms-inspi:hover img { transform: scale(1.04); }
  .ms .ms-inspi__txt { position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem 1rem; background: linear-gradient(transparent, rgba(20, 20, 18, 0.78)); display: grid; gap: 0.2rem; }
  .ms .ms-inspi__mot { font: italic 300 2.1rem/0.9 var(--ms-serif); letter-spacing: -0.04em; }
  .ms .ms-inspi__titre { font: 500 0.9rem/1.3 var(--ms-sans); }

  /* variant « cartes »: two editorial cards */
  .ms .ms-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .ms .ms-duo .ms-mini { display: grid; gap: 0.25rem; align-content: start; }
  .ms .ms-mini__img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ms-platre); margin-bottom: 0.3rem; }
  .ms .ms-mini__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ms-ease); }
  .ms .ms-mini:hover .ms-mini__img img { transform: scale(1.06); }
  .ms .ms-mini__txt { display: grid; gap: 0.1rem; min-width: 0; }
  .ms .ms-mini .ms-label { font-size: 0.62rem; color: var(--ms-bronze); }
  .ms .ms-mini__nom { font: 400 1.05rem/1.12 var(--ms-serif); }
  .ms .ms-mini__plus { font-size: 0.78rem; color: var(--ms-feutre); }
  .ms .ms-mini:hover .ms-mini__nom { color: var(--ms-bronze); }

  /* variant « pied »: a plaster band under the three columns */
  .ms .ms--pied .ms-in { padding-bottom: 0; row-gap: 1.4rem; }
  .ms .ms--pied .ms-inspi { aspect-ratio: 4 / 5; }
  .ms .ms-pied { grid-column: 1 / -1; background: var(--ms-platre); box-shadow: 0 0 0 100vmax var(--ms-platre); clip-path: inset(0 -100vmax); border-top: 1px solid var(--ms-trait); }
  .ms .ms-pied__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1.6rem; align-items: center; padding: 1rem 0; }
  .ms .ms-pied .ms-mini { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.9rem; align-items: center; min-height: 64px; }
  .ms .ms-pied .ms-mini__img { width: 4.6rem; height: 3.5rem; aspect-ratio: auto; margin: 0; background: #e4e2dc; }
  .ms .ms-pied .ms-mini__img img { transform: scale(1.45); }
  .ms .ms-pied__tout { display: grid; gap: 0.1rem; padding: 0.7rem 1.2rem; min-height: 44px; border-radius: 999px; background: var(--ms-anth); color: var(--ms-blanc) !important; font: 600 0.9rem/1.2 var(--ms-sans); white-space: nowrap; }
  .ms .ms-pied__tout span { font-weight: 400; font-size: 0.78rem; color: #c9cbc6; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .ms .ms-in { grid-template-columns: 13rem minmax(0, 1fr) 14.5rem; gap: 1.6rem; }
  .ms .ms-grille { grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); }
  .ms .ms-vue__tete h3 { font-size: 1.8rem; }
  .ms .ms-pied__in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ms-pied__tout { display: none; }
  .ms .ms-pied .ms-mini { grid-template-columns: 3.6rem 1fr; } .ms-pied .ms-mini__img { width: 3.6rem; height: 2.8rem; }
}

/* ---------- the desktop header from 1024 px (main.css and design-entete.css switch at 1101 px) ---------- */
@media (min-width: 1024px) and (max-width: 1100px) {
  .entete .bouton-menu, .entete .phare-mobile { display: none !important; }
  .entete--mag .entete__barre { gap: 0.6rem; min-height: 68px; position: relative; }
  .entete .nav-principale { display: block; position: static; inset: auto; max-height: none; margin: 0 auto 0 clamp(0.8rem, 1.8vw, 1.6rem); padding: 0; border: 0; background: none; color: inherit;
    overflow: visible; visibility: visible; opacity: 1; transition: none; z-index: auto; }
  .entete .nav-principale .tiroir { display: none !important; }
  .entete .nav-principale__liste { display: flex; flex-direction: row; align-items: center; gap: 0.15rem; }
  .entete--mag .nav-lien, .entete--mag .nav-groupe__bouton { display: inline-flex; align-items: center; width: auto; padding: 0.6rem 0.4rem; border: 0; border-radius: 0; background: none; color: var(--anthracite);
    font: 500 0.95rem/1 var(--sans); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .entete--mag .nav-groupe.est-ouvert > .nav-groupe__bouton, .entete--mag .nav-groupe__bouton:hover, .entete--mag .nav-lien:hover { background: none; text-decoration-color: var(--trait); }
  .entete--mag .nav-lien.nav-lien--phare { gap: 0.4rem; font-weight: 600; border: 0; background: none; }
  .entete--mag .nav-lien--phare .nav-phare__texte { text-decoration: underline; text-decoration-color: var(--moutarde); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .entete--mag .nav-lien--phare .nav-phare__icone { display: block; width: 20px; height: 16px; }
  .entete .nav-groupe--mega { position: static; }
  .entete .nav-groupe__liste { position: absolute; display: block; opacity: 0; visibility: hidden; }
  .entete .nav-groupe:hover > .nav-groupe__liste { display: block; }
  .entete .nav-groupe.est-ouvert > .nav-groupe__liste { opacity: 1; visibility: visible; transform: none; }
  .entete #mega-mag.mega { left: 0; right: 0; top: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.6rem; padding: 1.6rem; background: var(--blanc);
    border: 1px solid var(--trait); border-top: 3px solid var(--moutarde); border-radius: 0 0 22px 22px; box-shadow: var(--ombre); }
  .entete #mega-mag .mega__colonnes { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.9rem; align-content: start; }
  .entete #mega-mag .mega__colonne { background: var(--platre); border-radius: 14px; padding: 1rem 1.1rem 0.8rem; margin: 0; }
  .entete #mega-mag .mega__cote { display: grid; align-content: start; gap: 0.9rem; border-left: 1px solid var(--trait); padding-left: 1.6rem; }
  .entete .bouton-recherche, .entete-projet, .entete-selection { order: 0; }
  .entete .nav-projet { display: none !important; }
  .entete--mag .entete-projet { display: inline-flex !important; flex-direction: row !important; align-items: center; height: 40px; gap: 0.45rem; }
  .entete--mag .entete-projet .icone { flex: none; }
  .entete--mag .entete-projet { border: 1px solid color-mix(in srgb, var(--moutarde) 55%, var(--trait)); border-radius: 999px; background: var(--blanc); }
  .entete--mag .bouton-recherche, .entete--mag .entete-selection { display: inline-grid !important; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--trait); border-radius: 50%; background: var(--blanc); }
  .entete--mag .entete-projet { width: auto; padding: 0 0.95rem 0 0.8rem; white-space: nowrap; }
  .entete--mag .entete-projet .entete-projet__texte { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .ms-vue, .ms-carte__img img, .ms-inspi img, .ms-mini__img img, .ms-voir::after { animation: none !important; transition: none !important; } }

/* ---------- correctif « Sommaire » (Romain 02/10, 03 h 05 et 06 h 32): no visible scrollbar, off-white (plaster) background ---------- */
@media (min-width: 1024px) {
  :is(#mega-canapes, #mega-matelas).ms { background: #f4f2ee; box-shadow: 0 0 0 100vmax #f4f2ee, 0 1px 0 100vmax var(--ms-trait), 0 40px 60px -30px rgba(37, 39, 43, 0.3); scrollbar-width: none; -ms-overflow-style: none; }
  :is(#mega-canapes, #mega-matelas).ms::-webkit-scrollbar { display: none; width: 0; height: 0; }
  :is(#mega-canapes, #mega-matelas).ms .ms-in { padding-block: 1.3rem 1.4rem; }
  :is(#mega-canapes, #mega-matelas).ms .ms-onglet:hover { background: #fbfaf7; }
  :is(#mega-canapes, #mega-matelas).ms .ms-onglet[aria-selected="true"] { background: #e9e6df; }
  :is(#mega-canapes, #mega-matelas).ms .ms-carte__img, :is(#mega-canapes, #mega-matelas).ms .ms-mini__img, :is(#mega-canapes, #mega-matelas).ms .ms-railc__img { background: #e9e6df; }
  :is(#mega-canapes, #mega-matelas).ms .ms-railc { background: #fbfaf7; border-color: #e3e0d9; }
  :is(#mega-canapes, #mega-matelas).ms .ms-vue__tete { margin-bottom: 0.9rem; }
  :is(#mega-canapes, #mega-matelas).ms .ms-grille { gap: 1.1rem 1rem; }
  :is(#mega-canapes, #mega-matelas).ms .ms-cote { gap: 0.8rem; }
  :is(#mega-canapes, #mega-matelas).ms .ms-une__img { aspect-ratio: 5 / 2; }
  :is(#mega-canapes, #mega-matelas).ms .ms-une__txt { padding: 0.7rem 0.9rem 0.85rem; }
  :is(#mega-canapes, #mega-matelas).ms .ms-une__titre { font-size: 1.2rem; }
  :is(#mega-canapes, #mega-matelas).ms .ms-inspi { aspect-ratio: 5 / 4; }
}
@media (min-width: 1024px) and (max-height: 860px) {
  :is(#mega-canapes, #mega-matelas).ms .ms-inspi { aspect-ratio: 16 / 10; }
  :is(#mega-canapes, #mega-matelas).ms .ms-mini__img { aspect-ratio: 16 / 9; }
  :is(#mega-canapes, #mega-matelas).ms .ms-onglet { min-height: 40px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  :is(#mega-canapes, #mega-matelas).ms .ms-inspi { aspect-ratio: 2 / 1; }
  :is(#mega-canapes, #mega-matelas).ms .ms-une__img { aspect-ratio: 3 / 1; }
  :is(#mega-canapes, #mega-matelas).ms .ms-onglet { min-height: 36px; font-size: 1.04rem; }
  :is(#mega-canapes, #mega-matelas).ms .ms-railc { min-height: 48px; }
}

/* ---------- correctif 2 « Sommaire », survol des cartes sombres (Romain 02/10, 06 h 40) : the reset « .nav-groupe__liste.ms a:hover
   { background: none } » emptied the dark cards on hover (white title on plaster). They keep their dark ground in every
   state; hover = mustard underline of the title and a slight zoom of the picture. ---------- */
:is(#mega-canapes, #mega-matelas).ms .ms-une, :is(#mega-canapes, #mega-matelas).ms .ms-une:hover, :is(#mega-canapes, #mega-matelas).ms .ms-une:focus-visible { background: var(--ms-anth); color: var(--ms-blanc); }
:is(#mega-canapes, #mega-matelas).ms .ms-inspi, :is(#mega-canapes, #mega-matelas).ms .ms-inspi:hover, :is(#mega-canapes, #mega-matelas).ms .ms-inspi:focus-visible { background: #3a3a36; color: #fff; }
:is(#mega-canapes, #mega-matelas).ms .ms-pied__tout, :is(#mega-canapes, #mega-matelas).ms .ms-pied__tout:hover, :is(#mega-canapes, #mega-matelas).ms .ms-pied__tout:focus-visible { background: var(--ms-anth); color: var(--ms-blanc); }
:is(#mega-canapes, #mega-matelas).ms .ms-une__img img { transition: transform 0.5s var(--ms-ease); }
:is(#mega-canapes, #mega-matelas).ms .ms-une:hover .ms-une__img img, :is(#mega-canapes, #mega-matelas).ms .ms-une:focus-visible .ms-une__img img { transform: scale(1.04); }
:is(#mega-canapes, #mega-matelas).ms .ms-une:hover .ms-une__titre, :is(#mega-canapes, #mega-matelas).ms .ms-une:focus-visible .ms-une__titre,
:is(#mega-canapes, #mega-matelas).ms .ms-inspi:hover .ms-inspi__titre, :is(#mega-canapes, #mega-matelas).ms .ms-inspi:focus-visible .ms-inspi__titre { text-decoration: underline; text-decoration-color: var(--ms-moutarde); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { :is(#mega-canapes, #mega-matelas).ms .ms-une__img img { transition: none; } :is(#mega-canapes, #mega-matelas).ms .ms-une:hover .ms-une__img img { transform: none; } }

/* ---------- logos des marques « Sommaire » (Romain 02/10, 03 h 45 et 06 h 36): the official logo, unchanged, in our frame ---------- */
@media (min-width: 1024px) {
  /* brand cards (03 h 45): the official logo, unchanged, in a plaster frame with a thin rule; a white logo in a dark frame */
  :is(#mega-canapes, #mega-matelas).ms .ms-logo { background: #f4f2ee; box-shadow: inset 0 0 0 1px var(--ms-trait); }
  :is(#mega-canapes, #mega-matelas).ms .ms-logo img { position: absolute; inset: 16% 18%; width: 64%; height: 68%; object-fit: contain; transform: none !important; }
  :is(#mega-canapes, #mega-matelas).ms .ms-carte:hover .ms-logo img { transform: none !important; }
  :is(#mega-canapes, #mega-matelas).ms .ms-logo--sombre { background: var(--ms-anth); box-shadow: none; }
  :is(#mega-canapes, #mega-matelas).ms .ms-carte--logo:hover .ms-logo { box-shadow: inset 0 0 0 1.5px var(--ms-anth); }
  /* Brand without an official logo yet (Romain 12/10, jamais de vignette vide) : its name set in the site's own type. */
  :is(#mega-canapes, #mega-matelas).ms .ms-logo--texte { display: flex; align-items: center; justify-content: center; padding: 0 10%; }
  :is(#mega-canapes, #mega-matelas).ms .ms-logo__texte { font: 650 1.05rem/1.2 var(--sans); color: var(--anthracite); text-align: center; }
  /* Literie brand tiles (28/10): pastel set inline from CANAPE_LIT_MARQUES, white logo backgrounds melt into it. */
  #mega-matelas.ms .ms-logo--fond { box-shadow: none; }
  #mega-matelas.ms .ms-logo--fond img { mix-blend-mode: multiply; }
}

/* ---------- Le Mag' « Sommaire » (Romain 02/10, 06 h 31): the « Canapés » panel rules for #mega-mag, plus its articles and tools ---------- */
@media (min-width: 1024px) {
  .entete #mega-mag.ms { position: absolute; left: 0; right: 0; top: 100%; width: auto; min-width: 0; display: block; padding: 0; margin: 0; border: 0; border-radius: 0;
    background: #f4f2ee; box-shadow: 0 0 0 100vmax #f4f2ee, 0 1px 0 100vmax var(--ms-trait), 0 40px 60px -30px rgba(37, 39, 43, 0.3); clip-path: inset(0 -100vmax -80px -100vmax);
    transform: none !important; z-index: 5; max-height: calc(100vh - 68px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; color: var(--ms-anth); font-family: var(--ms-sans); }
  .entete #mega-mag.ms::-webkit-scrollbar { display: none; width: 0; height: 0; }
  #mega-mag.ms img { display: block; }
  #mega-mag.ms .ms-in { padding-block: 1.3rem 1.4rem; }
  #mega-mag.ms .ms-onglet:hover { background: #fbfaf7; }
  #mega-mag.ms .ms-onglet[aria-selected="true"] { background: #e9e6df; }
  #mega-mag.ms .ms-vue__tete { margin-bottom: 0.8rem; }
  #mega-mag.ms .ms-une, #mega-mag.ms .ms-une:hover, #mega-mag.ms .ms-une:focus-visible { background: var(--ms-anth); color: var(--ms-blanc); }
  #mega-mag.ms .ms-inspi, #mega-mag.ms .ms-inspi:hover, #mega-mag.ms .ms-inspi:focus-visible { background: #3a3a36; color: #fff; aspect-ratio: 5 / 4; }
  #mega-mag.ms .ms-une:hover .ms-une__titre, #mega-mag.ms .ms-inspi:hover .ms-inspi__titre { text-decoration: underline; text-decoration-color: var(--ms-moutarde); text-decoration-thickness: 2px; text-underline-offset: 4px; }
  #mega-mag.ms .ms-mag__une .ms-une__img { aspect-ratio: 16 / 10; }
  #mega-mag.ms .ms-mag__une .ms-une__titre { font-size: 1.2rem; }
  #mega-mag.ms .ms-mag__rub { font-size: 0.8rem; color: #c9cbc6; }
  #mega-mag.ms .ms-rub { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4rem; align-items: stretch; padding: 0.8rem; border-radius: 16px; background: #fbfaf7; border: 1px solid #e3e0d9; color: var(--ms-anth); }
  #mega-mag.ms .ms-rub:hover { border-color: var(--ms-anth); background: #fbfaf7; }
  #mega-mag.ms .ms-rub__img { position: relative; display: block; align-self: center; width: 100%; min-width: 0; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #e9e6df; }
  #mega-mag.ms .ms-rub__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ms-ease); }
  #mega-mag.ms .ms-rub:hover .ms-rub__img img { transform: scale(1.03); }
  #mega-mag.ms .ms-rub__txt { display: grid; align-content: center; gap: 0.7rem; padding-right: 0.6rem; }
  #mega-mag.ms .ms-rub__nom { font: 300 2rem/1.02 var(--ms-serif); letter-spacing: -0.02em; }
  #mega-mag.ms .ms-rub__nom em { font-style: italic; }
  #mega-mag.ms .ms-rub__phrase { font: 400 1rem/1.45 var(--ms-serif); color: var(--ms-feutre); }
  #mega-mag.ms .ms-rub__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--ms-trait); }
  #mega-mag.ms .ms-rub__n { font: 600 0.9rem/1 var(--ms-sans); font-variant-numeric: tabular-nums; }
  #mega-mag.ms .ms-rub__voir { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font: 600 0.9rem/1.2 var(--ms-sans); color: var(--ms-bronze); }
  #mega-mag.ms .ms-rub__voir::after { content: "\2192"; transition: transform 0.2s; }
  #mega-mag.ms .ms-rub:hover .ms-rub__voir::after { transform: translateX(3px); }
  #mega-mag.ms .ms-mag__outils { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--ms-trait); }
  #mega-mag.ms .ms-mag__outils .ms-label { display: block; margin: 0 0 0.6rem; }
  #mega-mag.ms .ms-mag__outils-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  #mega-mag.ms .ms-railc { background: #fbfaf7; border-color: #e3e0d9; grid-template-columns: 3.2rem 1fr; }
  #mega-mag.ms .ms-mag__ico { width: 3.2rem; height: 2.6rem; border-radius: 8px; background: #e9e6df; display: grid; place-items: center; }
  #mega-mag.ms .ms-mag__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ms-bronze); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
}
@media (min-width: 1024px) and (max-height: 760px) { #mega-mag.ms .ms-inspi { aspect-ratio: 2 / 1; } #mega-mag.ms .ms-mag__une .ms-une__img { aspect-ratio: 2 / 1; } #mega-mag.ms .ms-onglet { min-height: 36px; } }
@media (min-width: 1024px) and (max-width: 1279px) { #mega-mag.ms .ms-rub { grid-template-columns: 1fr; gap: 0.8rem; } #mega-mag.ms .ms-rub__img { aspect-ratio: 3 / 1; } #mega-mag.ms .ms-rub__nom { font-size: 1.6rem; } #mega-mag.ms .ms-rub__txt { gap: 0.5rem; } #mega-mag.ms .ms-rub__phrase { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } #mega-mag.ms .ms-mag__outils-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } #mega-mag.ms .ms-mag__outils { margin-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { #mega-mag.ms .ms-rub__img img, #mega-mag.ms .ms-rub__voir::after { transition: none; } }

/* pastel-1310 (Romain 13/10 : « fond pastel dans ma DA, tant qu'on a leur vrai logo »): each brand card of « Par marque »
   on a light tint of the site's palette (plâtre, moutarde voile, terracotta, sauge, bleu gris), its official logo unchanged
   in shape; Conforama's white file is shown dark on its light card. */
@media (min-width: 1024px) {
  :is(#mega-canapes, #mega-matelas).ms .ms-carte--logo .ms-logo { box-shadow: none; }
  :is(#mega-canapes, #mega-matelas).ms .ms-carte--logo:hover .ms-logo { box-shadow: inset 0 0 0 1.5px var(--ms-anth); }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/test-canape-conforama/"] .ms-logo { background: #f2ddd6; }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/test-canape-conforama/"] .ms-logo img { filter: brightness(0); opacity: 0.88; }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/test-canape-maison-du-monde/"] .ms-logo { background: #f5ecd3; }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/test-canape-bobochic/"] .ms-logo { background: #f1e0dc; }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/test-canape-la-redoute/"] .ms-logo { background: #e5ebe2; }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/canape-am-pm/"] .ms-logo { background: #e3e8ec; }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/test-canape-miliboo/"] .ms-logo { background: #efe6d4; }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/canape-best-mobilier/"] .ms-logo { background: #dfe6da; }
  :is(#mega-canapes, #mega-matelas).ms a[href$="/canape-sia-home/"] .ms-logo { background: #f3e3d5; }
}

/* univers.php 28/10: the phone drawer with the « Matelas » tab holds 3 tabs on one line (the sofa drawer keeps its 2). */
.en-onglets:has(> button:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* menu-marques 30/10: a brand tile without an indexable brand page is a plain tile (no link, no hover). */
:is(#mega-canapes, #mega-matelas).ms .ms-carte--sans-lien { cursor: default; }
:is(#mega-canapes, #mega-matelas).ms .ms-carte--sans-lien:hover .ms-carte__nom { color: inherit; }
:is(#mega-canapes, #mega-matelas).ms .ms-carte--logo.ms-carte--sans-lien:hover .ms-logo { box-shadow: none; }

/* ---------- menu-salon-0411 (Romain 04/11): « Salon » (Canapés, Fauteuils) and « Chambre » (Matelas). A band on top of
   the panel: the universe tabs and the ranking of the selected universe as a mustard button, much more visible than
   the old side card; the side card of the ranking gets a mustard ring and « Voir le classement ». No green. ---------- */
.ms .ms-in[hidden] { display: none !important; }
@media (min-width: 1024px) {
  .ms.ms--univ .ms-bande { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 0 1rem; border-bottom: 1px solid var(--ms-trait-2); }
  .ms.ms--univ .ms-bande__nom { font: 600 0.68rem/1.2 var(--ms-sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ms-feutre); }
  .ms.ms--univ .ms-univ { display: flex; gap: 0.35rem; margin: 0; padding: 0.25rem; border-radius: 999px; background: var(--ms-platre); }
  .ms.ms--univ .ms-univ__onglet, .ms.ms--univ .ms-univ__seul { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font: 400 1.2rem/1 var(--ms-serif); color: var(--ms-anth); transition: background 0.15s; }
  .ms.ms--univ .ms-univ__seul { cursor: default; background: #fff; box-shadow: 0 1px 2px rgba(37, 39, 43, 0.12); }
  .ms.ms--univ .ms-univ__onglet:hover { background: #e3e0d8; }
  .ms.ms--univ .ms-univ__onglet[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(37, 39, 43, 0.12); font-style: italic; }
  .ms.ms--univ .ms-bande__phare { margin-left: auto; }
  /* boutons-da (04/11): the ranking link wears the merchant button of the avis fiches (design-boutons.css .dbt-m):
     anthracite, 4 px corners, the arrow on a mustard block; eyebrow and count stay beside it, quiet. CSS only, so the
     cached pages and their published menu fragments get it at once. Grid: col 1 = eyebrow over count, col 2 = label,
     col 3 = arrow block; the dark face is the ::before laid under cols 2-3. */
  .nav-groupe__liste.ms.ms--univ a.ms-phare, .nav-groupe__liste.ms.ms--univ a.ms-phare:hover { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: auto auto auto; grid-template-rows: 1fr 1fr;
    align-items: center; min-height: 48px; padding: 0; border-radius: 4px; background: none; color: var(--ms-anth); box-shadow: none; text-decoration: none; }
  .nav-groupe__liste.ms.ms--univ a.ms-phare[hidden] { display: none; }
  .ms.ms--univ a.ms-phare::before { content: ""; grid-column: 2 / 4; grid-row: 1 / 3; align-self: stretch; z-index: -1; border-radius: 4px; background: var(--ms-anth); transition: background-color 0.18s ease; }
  .ms .ms-phare__icone { display: none; }
  .ms .ms-phare__txt { display: contents; }
  .ms .ms-phare__txt small { grid-column: 1; grid-row: 1; align-self: end; justify-self: end; padding-right: 0.9rem; font: 600 0.62rem/1.2 var(--ms-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ms-bronze); }
  .ms .ms-phare__n { grid-column: 1; grid-row: 2; align-self: start; justify-self: end; padding: 0.15rem 0.9rem 0 0; border: 0; font: 400 0.8rem/1.2 var(--ms-sans); color: var(--ms-feutre); }
  .ms .ms-phare__txt strong { grid-column: 2; grid-row: 1 / 3; padding: 0 1rem 0 1.2rem; white-space: nowrap; font: 600 0.98rem/1.15 var(--ms-sans); letter-spacing: 0.005em; color: #fff; }
  .ms .ms-phare i { grid-column: 3; grid-row: 1 / 3; align-self: stretch; display: flex; align-items: center; padding: 0 0.95rem; border-radius: 0 4px 4px 0; background: var(--ms-moutarde); color: var(--ms-anth); font: 600 1.05rem/1 var(--ms-sans); font-style: normal; transition: background-color 0.18s ease; }
  .ms.ms--univ a.ms-phare:hover::before { background: #000; }
  .ms.ms--univ a.ms-phare:hover i { background: #c2931c; }
  .ms.ms--univ .ms-phare:focus-visible { outline: 3px solid var(--ms-moutarde); outline-offset: 2px; }
  /* menu-0411b: the side card is the univers buying guide (the ranking is the band button only): explicit call to action */
  .ms.ms--univ .ms-une__txt::after { content: "Lire le guide"; justify-self: start; display: flex; align-items: center; min-height: 40px; margin-top: 0.45rem; padding: 0 3.6rem 0 1rem; border-radius: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325272b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") right 0.85rem center / 17px no-repeat, linear-gradient(to left, var(--ms-moutarde) 2.75rem, rgba(255, 255, 255, 0.08) 2.75rem);
    box-shadow: inset 0 0 0 1px rgba(250, 250, 248, 0.28); color: #fff; font: 600 0.88rem/1 var(--ms-sans); }
  .ms.ms--univ .ms-une:hover .ms-une__txt::after, .ms.ms--univ .ms-une:focus-visible .ms-une__txt::after { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325272b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"), linear-gradient(to left, #c2931c 2.75rem, rgba(0, 0, 0, 0.35) 2.75rem); }
  .ms .ms-une__ligne { font: 400 0.84rem/1.3 var(--ms-sans); color: #c9cbc6; }
  .ms .ms-duo .ms-mini:only-child { grid-column: 1 / -1; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 0.9rem; }
  .ms .ms-duo .ms-mini:only-child .ms-mini__img { margin-bottom: 0; }
  .ms.ms--univ .ms-in { padding-top: 1.3rem; }
}
@media (min-width: 1024px) and (max-width: 1240px) { .ms .ms-phare__n { display: none; } .ms .ms-phare__txt small { grid-row: 1 / 3; align-self: center; } }
@media (prefers-reduced-motion: reduce) { .ms.ms--univ a.ms-phare::before, .ms .ms-phare i { transition: none; } }
