/* =============================================================================
   Lot Vitrine : /live/, /communaute/, /partenaires/, /a-propos/
   Préfixe .mw-vit-. Uniquement des tokens (var(--mw-…)), aucune couleur en dur.
   Mobile d'abord (base = 360 px), ruptures 48rem / 64rem. Propriétaire : lot Vitrine.
   ========================================================================== */

/* Les éléments masqués par l'attribut hidden le restent, même si une classe définit display. */
.mw-vit-count[hidden], .mw-vit-nomatch[hidden], .mw-vit-partners__item[hidden], .mw-vit-hp[hidden] { display: none !important; }

/* -----------------------------------------------------------------------------
   1. /live/ : héros
   -------------------------------------------------------------------------- */
.mw-vit-hero__title { max-width: 16ch; }
.mw-vit-when {
  display: flex; align-items: flex-start; gap: var(--mw-s-3);
  max-width: 52ch;
  font-size: var(--mw-fs-md); color: var(--mw-text-2); line-height: 1.5;
}
.mw-vit-when .mw-icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--mw-accent-2); }
.mw-vit-when .mw-tz { color: var(--mw-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.mw-vit-cta { width: 100%; }
@media (min-width: 30rem) { .mw-vit-cta { width: auto; } }

/* -----------------------------------------------------------------------------
   2. /live/ : question du jour
   -------------------------------------------------------------------------- */
.mw-vit-qotd { gap: var(--mw-s-4); padding: var(--mw-s-5); }
@media (min-width: 48rem) { .mw-vit-qotd { padding: var(--mw-s-7); } }
.mw-vit-qotd__text {
  font-family: var(--mw-font-display);
  font-size: var(--mw-fs-xl);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--mw-text);
  overflow-wrap: anywhere;
}
@media (min-width: 48rem) { .mw-vit-qotd__text { font-size: var(--mw-fs-2xl); } }
.mw-vit-qotd__note { color: var(--mw-text-2); font-size: var(--mw-fs-sm); max-width: 60ch; }

/* -----------------------------------------------------------------------------
   3. /live/ : pose ta question
   -------------------------------------------------------------------------- */
.mw-vit-ask { display: grid; gap: var(--mw-s-6); align-items: start; scroll-margin-top: calc(var(--mw-header-h) + var(--mw-s-4)); }
@media (min-width: 64rem) { .mw-vit-ask { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--mw-s-8); } }
#pose-ta-question { scroll-margin-top: calc(var(--mw-header-h) + var(--mw-s-4)); }
.mw-vit-ask__card { gap: var(--mw-s-4); padding: var(--mw-s-5); min-width: 0; }
@media (min-width: 48rem) { .mw-vit-ask__card { padding: var(--mw-s-6); } }
.mw-vit-result:empty { display: none; }
.mw-vit-form { gap: var(--mw-s-4); }
.mw-vit-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.mw-vit-hint { display: flex; justify-content: space-between; gap: var(--mw-s-3); font-size: var(--mw-fs-sm); color: var(--mw-text-2); }
.mw-vit-count { font-variant-numeric: tabular-nums; color: var(--mw-text-2); white-space: nowrap; }
.mw-vit-count.is-near { color: var(--mw-warn); }
.mw-vit-count.is-over { color: var(--mw-down); font-weight: 600; }
.mw-vit-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mw-s-3) var(--mw-s-4); }
.mw-vit-form__foot .mw-btn { flex: 1 1 13rem; }
@media (min-width: 48rem) { .mw-vit-form__foot .mw-btn { flex: 0 0 auto; } }
.mw-vit-quota { font-size: var(--mw-fs-sm); color: var(--mw-text-2); }
.mw-vit-guest { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mw-s-4); }

/* -----------------------------------------------------------------------------
   4. /live/ : récapitulatif, déroulé, règles, salons
   -------------------------------------------------------------------------- */
.mw-vit-recap { max-width: 46rem; }
.mw-vit-flow { align-items: start; }
.mw-vit-flow__side {
  padding: var(--mw-s-5);
  border-radius: var(--mw-r-xl);
  border: 1px solid var(--mw-line);
  background: var(--mw-surface);
  box-shadow: var(--mw-highlight), var(--mw-shadow-1);
  min-width: 0;
}
.mw-vit-flow__caption { margin-top: var(--mw-s-4); font-size: var(--mw-fs-sm); color: var(--mw-text-2); }
.mw-theme-light .mw-steps-timeline li::before { background: var(--mw-bg); }
.mw-theme-light .mw-steps-timeline__time { color: var(--mw-accent); }
.mw-vit-rules .mw-card { height: 100%; }
.mw-vit-rooms-1col { display: flex; flex-direction: column; }

/* Barre d'action collante : mobile uniquement. */
.mw-vit-bar {
  position: fixed; z-index: 80; inset: auto 0 0 0;
  padding: var(--mw-s-3) var(--mw-gutter) calc(var(--mw-s-3) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--mw-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--mw-line);
  transition: transform var(--mw-dur) var(--mw-ease), opacity var(--mw-dur) var(--mw-ease);
}
.mw-vit-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.mw-vit-bar__inner { display: flex; margin-inline: auto; max-width: var(--mw-container); }
.mw-vit-bar__btn { flex: 1 1 auto; justify-content: center; }
body.mw-has-live-bar { padding-bottom: calc(var(--mw-s-9) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 48rem) {
  .mw-vit-bar { display: none; }
  body.mw-has-live-bar { padding-bottom: 0; }
}

/* -----------------------------------------------------------------------------
   5. /communaute/
   -------------------------------------------------------------------------- */
.mw-vit-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mw-vit-stats > .mw-stat { padding: var(--mw-s-3); }
.mw-vit-stats .mw-stat__value { font-size: var(--mw-fs-lg); overflow-wrap: anywhere; }
@media (min-width: 48rem) { .mw-vit-stats > .mw-stat { padding: var(--mw-s-4); } .mw-vit-stats .mw-stat__value { font-size: var(--mw-fs-xl); } }
.mw-vit-stats .mw-stat__label { font-size: var(--mw-fs-xs); }
.mw-vit-roomgrid > li { list-style: none; display: flex; }
.mw-vit-roomgrid > li > .mw-card { width: 100%; }
.mw-vit-room-card .mw-card__top { justify-content: space-between; }
.mw-vit-moderation { height: 100%; }
.mw-vit-chips { display: flex; flex-wrap: wrap; gap: var(--mw-s-2); margin-top: var(--mw-s-2); }
.mw-vit-chips .mw-chip { cursor: default; }
.mw-vit-chips .mw-icon { width: 16px; height: 16px; }

.mw-vit-preview { display: grid; gap: var(--mw-s-6); align-items: center; }
@media (min-width: 64rem) { .mw-vit-preview { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--mw-s-8); } }
.mw-vit-mock__body { display: grid; }
.mw-vit-mock__rooms { display: none; }
@media (min-width: 48rem) {
  .mw-vit-mock__body { grid-template-columns: 200px minmax(0, 1fr); }
  .mw-vit-mock__rooms { display: flex; padding: var(--mw-s-2); border-right: 1px solid var(--mw-line); background: var(--mw-bg-2); }
}
.mw-vit-mock__rooms .mw-room { min-height: 44px; padding: 6px 10px; }
.mw-vit-mock__rooms .mw-room__icon { width: 30px; height: 30px; }
.mw-vit-mock__rooms .mw-room__name { font-size: var(--mw-fs-sm); }
.mw-vit-mock__main { display: flex; flex-direction: column; min-width: 0; }
.mw-vit-mock__thread { padding: var(--mw-s-4); gap: var(--mw-s-5); flex: 1; }
.mw-vit-mock .mw-msg__body { max-width: min(520px, 100%); }
.mw-vit-mock .mw-msg__meta { flex-wrap: wrap; }
.mw-vit-mock .mw-badge { font-size: 10px; padding: 1px 6px; }
.mw-vit-reacts { display: flex; flex-wrap: wrap; gap: var(--mw-s-2); margin-top: 2px; }
.mw-vit-reacts .mw-chip { min-height: 32px; padding: 0 12px; font-size: var(--mw-fs-xs); cursor: default; }
.mw-vit-mock .mw-composer { opacity: .7; }
.mw-vit-mock .mw-composer .mw-textarea { min-height: 44px; }

.mw-vit-rulesgrid { display: grid; gap: var(--mw-s-6); }
@media (min-width: 64rem) {
  .mw-vit-rulesgrid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--mw-s-8); }
  .mw-vit-rulesgrid .mw-section-head { position: sticky; top: calc(var(--mw-header-h) + var(--mw-s-6)); align-self: start; }
}
.mw-vit-rules-list { display: grid; gap: var(--mw-s-3); counter-reset: none; }
.mw-vit-rules-list li {
  display: flex; gap: var(--mw-s-4); align-items: flex-start;
  padding: var(--mw-s-4) var(--mw-s-5);
  border-radius: var(--mw-r-lg);
  border: 1px solid var(--mw-line);
  background: var(--mw-surface);
  box-shadow: var(--mw-highlight), var(--mw-shadow-1);
}
.mw-vit-rules-list__num {
  flex: none; min-width: 2ch;
  font-family: var(--mw-font-display); font-weight: 800; font-size: var(--mw-fs-2xl); line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.25px var(--mw-line-strong);
}
.mw-vit-rules-list h3 { font-size: var(--mw-fs-lg); margin-bottom: 2px; }
.mw-vit-rules-list p { color: var(--mw-text-2); }
.mw-vit-pillars { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .mw-vit-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mw-s-6); } }

/* -----------------------------------------------------------------------------
   6. /partenaires/
   -------------------------------------------------------------------------- */
.mw-vit-offers .mw-container { display: flex; flex-direction: column; gap: var(--mw-s-6); }
.mw-vit-disclosure { max-width: 60rem; }
.mw-vit-empty { max-width: 46rem; margin-inline: auto; width: 100%; }

.mw-vit-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--mw-s-3) var(--mw-s-4); }
.mw-vit-filter .mw-field { flex: 1 1 14rem; max-width: 22rem; }
.mw-js .mw-vit-filter__submit { display: none; }
.mw-vit-filter__help { flex: 1 1 100%; }

.mw-vit-partners__item { display: flex; min-width: 0; }
.mw-vit-partner { width: 100%; gap: var(--mw-s-3); min-width: 0; }
.mw-vit-partner__promo { border-radius: var(--mw-r-md); overflow: hidden; border: 1px solid var(--mw-line); background: var(--mw-bg-2); aspect-ratio: 16 / 9; }
.mw-vit-partner__promo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-vit-partner__head { display: flex; align-items: center; gap: var(--mw-s-3); min-width: 0; }
.mw-vit-partner__logo {
  flex: none; width: 56px; height: 56px;
  border-radius: var(--mw-r-md);
  border: 1px solid var(--mw-line);
  background: var(--mw-surface-2);
  object-fit: contain; padding: 6px;
}
.mw-vit-partner__logo--fallback {
  display: grid; place-items: center; padding: 0;
  font-family: var(--mw-font-display); font-weight: 800; font-size: var(--mw-fs-xl); color: var(--mw-text-2);
}
.mw-vit-partner__id { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mw-vit-partner__id .mw-card__title { overflow-wrap: anywhere; }
.mw-vit-partner__tag { display: flex; align-items: flex-start; gap: 6px; font-size: var(--mw-fs-xs); font-weight: 600; color: var(--mw-warn); line-height: 1.35; }
.mw-theme-light .mw-vit-partner__tag { color: var(--mw-text-2); }
.mw-vit-partner__tag .mw-icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.mw-vit-partner__flags { display: flex; flex-wrap: wrap; gap: var(--mw-s-2); }
.mw-vit-partner__note { font-size: var(--mw-fs-sm); color: var(--mw-text-2); font-style: italic; }
.mw-vit-partner__meta { display: grid; gap: 6px; font-size: var(--mw-fs-sm); color: var(--mw-text-2); }
.mw-vit-partner__meta li { display: flex; align-items: flex-start; gap: var(--mw-s-2); }
.mw-vit-partner__meta .mw-icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--mw-accent-2); }
.mw-vit-partner__terms { border-top: 1px solid var(--mw-line); font-size: var(--mw-fs-sm); }
.mw-vit-partner__terms summary { display: flex; align-items: center; justify-content: space-between; gap: var(--mw-s-3); min-height: 44px; cursor: pointer; font-weight: 600; color: var(--mw-text); list-style: none; }
.mw-vit-partner__terms summary::-webkit-details-marker { display: none; }
.mw-vit-partner__terms summary .mw-icon { width: 18px; height: 18px; transition: transform var(--mw-dur) var(--mw-ease); }
.mw-vit-partner__terms[open] summary .mw-icon { transform: rotate(180deg); }
.mw-vit-partner__terms p { color: var(--mw-text-2); padding-bottom: var(--mw-s-2); }
.mw-vit-partner__actions { display: flex; flex-wrap: wrap; gap: var(--mw-s-2); margin-top: auto; padding-top: var(--mw-s-2); }
.mw-vit-nomatch { padding: var(--mw-s-4); border: 1px dashed var(--mw-line-strong); border-radius: var(--mw-r-md); color: var(--mw-text-2); }

.mw-vit-adminpreview {
  display: flex; flex-direction: column; gap: var(--mw-s-4);
  padding: var(--mw-s-5);
  border-radius: var(--mw-r-xl);
  border: 1px dashed color-mix(in srgb, var(--mw-warn) 60%, transparent);
  background: linear-gradient(var(--mw-warn-soft), transparent 40%), var(--mw-bg-2);
}
@media (min-width: 48rem) { .mw-vit-adminpreview { padding: var(--mw-s-6); } }
.mw-vit-adminpreview__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mw-s-3); }
.mw-vit-adminpreview__head h3 { font-size: var(--mw-fs-lg); }

.mw-vit-how { margin-top: 0; }
.mw-vit-how__more { display: grid; gap: var(--mw-s-5); margin-top: var(--mw-s-6); }
@media (min-width: 64rem) { .mw-vit-how__more { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.mw-theme-light .mw-checklist .mw-icon { color: var(--mw-accent-2); }

/* -----------------------------------------------------------------------------
   7. /a-propos/
   -------------------------------------------------------------------------- */
.mw-vit-mission { align-items: start; }
.mw-vit-keyfacts { display: grid; gap: var(--mw-s-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .mw-vit-keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mw-vit-keyfacts > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--mw-s-5);
  border-radius: var(--mw-r-lg);
  border: 1px solid var(--mw-line);
  background: var(--mw-surface);
  box-shadow: var(--mw-highlight);
  min-width: 0;
}
.mw-vit-keyfacts dd { order: 1; font-family: var(--mw-font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; color: var(--mw-text); overflow-wrap: anywhere; }
.mw-vit-keyfacts dt { order: 2; font-size: var(--mw-fs-sm); color: var(--mw-text-2); line-height: 1.4; }

.mw-vit-commit__list { display: grid; gap: var(--mw-s-4); }
@media (min-width: 48rem) { .mw-vit-commit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .mw-vit-commit__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mw-vit-commit__list li {
  display: flex; gap: var(--mw-s-4); align-items: flex-start;
  padding: var(--mw-s-5);
  border-radius: var(--mw-r-lg);
  border: 1px solid var(--mw-line);
  background: var(--mw-surface);
  box-shadow: var(--mw-highlight), var(--mw-shadow-1);
}
.mw-vit-commit__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mw-accent-soft); color: var(--mw-accent); }
.mw-vit-commit__icon .mw-icon { width: 22px; height: 22px; }
.mw-vit-commit__list h3 { font-size: var(--mw-fs-md); margin-bottom: 4px; }
.mw-vit-commit__list p { color: var(--mw-text-2); font-size: var(--mw-fs-sm); }
.mw-vit-commit__risk { margin-top: var(--mw-s-6); }

.mw-vit-team { align-items: flex-start; gap: var(--mw-s-3); }
.mw-vit-team__photo {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  border: 1px dashed var(--mw-line-strong); background: var(--mw-surface-2); color: var(--mw-text-3);
}
.mw-vit-team__photo .mw-icon { width: 30px; height: 30px; }
.mw-vit-team__todo {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--mw-warn) 60%, transparent);
  border-radius: var(--mw-r-sm);
  background: var(--mw-warn-soft);
  color: var(--mw-text);
  font-size: var(--mw-fs-sm);
  overflow-wrap: anywhere;
}
.mw-vit-contact { display: flex; flex-direction: column; gap: var(--mw-s-5); }
.mw-vit-contact .mw-section-head { margin-bottom: 0; }

/* -----------------------------------------------------------------------------
   8. Mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mw-vit-bar, .mw-vit-partner__terms summary .mw-icon { transition: none; }
}
