/* ------------------------------------------------------------------ */
/* MyVeolia · piste C · page d'accueil en widgets LumApps NATIFS.       */
/*                                                                      */
/* Regle : chaque bloc est le rendu d'un widget natif (panel-widget-*)  */
/* ou d'une cible de personnalisation (HEADER, NAVIGATION, APP...).     */
/* Ce fichier ne dessine aucun composant : il reproduit le rendu natif  */
/* (carte blanche, rayon 12, ombre lifted) et l'habille avec les        */
/* classes mv-* de la doc Ouidou (ref-widgets-nicolas.html).            */
/*                                                                      */
/* Aucune couleur en dur : tout vient de palettes.css (--pal-*, --mv-*) */
/* pour que les jeux Eau / Dechets / Energie s'appliquent partout.      */
/* ------------------------------------------------------------------ */

/* ---- 1. tokens derives des palettes ------------------------------ */
:root {
  --mv-rayon: 12px;
  --mv-ombre: 0 1px 2px color-mix(in srgb, var(--pal-deep) 6%, transparent),
              0 10px 28px -8px color-mix(in srgb, var(--pal-deep) 16%, transparent);
  --mv-ombre-haute: 0 2px 6px color-mix(in srgb, var(--pal-deep) 8%, transparent),
                    0 22px 48px -14px color-mix(in srgb, var(--pal-deep) 30%, transparent);
  --mv-filet-doux: color-mix(in srgb, var(--pal-deep) 9%, transparent);
  --mv-teinte: color-mix(in srgb, var(--pal-bright) 11%, var(--mv-surface));
  --mv-rail: 224px;
  /* LumX : nuances claires recalculees a partir de la couleur du jeu actif */
  --lumx-color-primary-L1: color-mix(in srgb, var(--lumx-color-primary-N) 80%, transparent);
  --lumx-color-primary-L2: color-mix(in srgb, var(--lumx-color-primary-N) 60%, transparent);
  --lumx-color-primary-L3: color-mix(in srgb, var(--lumx-color-primary-N) 40%, transparent);
  --lumx-color-primary-L4: color-mix(in srgb, var(--lumx-color-primary-N) 20%, transparent);
  --lumx-color-primary-L5: color-mix(in srgb, var(--lumx-color-primary-N) 10%, transparent);
  --lumx-color-primary-L6: color-mix(in srgb, var(--lumx-color-primary-N) 5%, transparent);
  --lumx-color-red-L5: color-mix(in srgb, var(--mv-alerte) 10%, transparent);
  --lumx-color-red-D2: color-mix(in srgb, var(--mv-alerte) 72%, black);
  --lumx-border-radius: 8px;
  --lumx-button-border-radius: 8px;
}

/* ---- 2. PAGE : fond degrade aux couleurs du jeu ------------------- */
.mv-page {
  margin: 0; min-height: 100vh; color: var(--mv-encre);
  font-family: var(--lumx-typography-font-family);
  background-color: var(--pal-page);
  background:
    radial-gradient(80% 60% at 88% -10%, var(--pal-page-a) 0%, transparent 58%),
    radial-gradient(70% 55% at 4% 6%, var(--pal-page-b) 0%, transparent 60%),
    var(--pal-page);
  background-attachment: fixed;
}
.mv-page :is(a, button, input, summary):focus-visible { outline: 2px solid var(--pal-link); outline-offset: 2px; }
.mv-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pal-deep); color: white; padding: 12px 20px; font-size: 14px; text-decoration: none;
}
.mv-skip:focus { left: 0; }
.material-symbols-rounded { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }

/* ---- 3. HEADER : en-tete natif, transparent sur le degrade -------- */
.header { position: relative; z-index: 5; }
.header-top__wrapper { display: flex; align-items: center; gap: 16px; padding: 14px 26px 10px; }
.header-top__logo { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--pal-deep); flex: none; }
.header-top__search { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 8px; }
.mv-recherche {
  flex: 1; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  background: color-mix(in srgb, var(--mv-surface) 85%, transparent);
  border: 1px solid var(--mv-filet-doux); border-radius: 8px; color: var(--mv-gris);
}
.mv-recherche input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--mv-encre); }
.mv-recherche input::placeholder { color: var(--mv-gris); }
.mv-recherche input:focus { outline: none; }
.mv-recherche:focus-within { outline: 2px solid var(--pal-link); outline-offset: 2px; }
.mv-recherche-ia {
  flex: none; width: 42px; height: 42px; border-radius: 8px; cursor: pointer; color: var(--pal-link);
  background: color-mix(in srgb, var(--mv-surface) 85%, transparent); border: 1px solid var(--mv-filet-doux);
  display: inline-flex; align-items: center; justify-content: center;
}
.mv-creer {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 20px 0 14px;
  border: 0; border-radius: 8px; cursor: pointer; background: var(--pal-deep); color: white;
  font-size: 14px; font-weight: 700;
}
.mv-creer .material-symbols-rounded { font-size: 20px; }
.header-top__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.header-top__action, .header-top__user-settings {
  position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--pal-deep); display: inline-flex; align-items: center; justify-content: center;
}
.header-top__action:hover { background: color-mix(in srgb, var(--pal-deep) 7%, transparent); }
.header-top__action .lumx-badge { position: absolute; top: 2px; right: 0; width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--pal-page); }
.header-top__user-settings { margin-left: 4px; border-radius: 50%; }
.header-top__user-settings .lumx-avatar,
.lumx-avatar__thumbnail, .lumx-avatar__thumbnail .lumx-thumbnail__background { display: block; width: 100%; height: 100%; border-radius: 50%; }
.header-top__user-settings .lumx-avatar { width: 36px; height: 36px; }
.lumx-avatar__thumbnail .lumx-thumbnail__image { height: 100%; aspect-ratio: 1; }

/* bandeau d'alerte : cible HEADER, classe mv-alert */
.mv-alert {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 26px 6px; padding: 9px 16px; border-radius: 10px;
  background: var(--mv-alerte-fond); border: 1px solid color-mix(in srgb, var(--mv-alerte) 22%, transparent);
  border-left: 3px solid var(--mv-alerte); color: var(--mv-encre); font-size: 13px;
}
.mv-alert > .material-symbols-rounded { color: var(--mv-alerte); font-size: 20px; }
.mv-alert__etiq { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pal-deep); }
.mv-alert__texte { flex: 1; min-width: 200px; margin: 0; font-weight: 600; }
.mv-alert__lien { font-weight: 700; color: var(--pal-link); white-space: nowrap; }

/* ---- 4. cadre : rail + contenu ------------------------------------ */
.mv-cadre { display: flex; align-items: flex-start; }
.mv-main { flex: 1; min-width: 0; padding: 8px 26px 120px 14px; }

/* ---- 5. SUB_NAVIGATION : rail de page, classe mv-rail ------------- */
.mv-rail {
  position: sticky; top: 0; flex: none; width: var(--mv-rail); max-height: 100vh; overflow-y: auto;
  padding: 14px 12px 18px; box-sizing: border-box; transition: width .24s ease;
}
.mv-rail__barre { display: none; }
.mv-rail__panneau { display: flex; flex-direction: column; gap: 2px; }
.mv-rail__replier {
  align-self: flex-end; width: 32px; height: 32px; margin: 0 2px 6px; border: 0; border-radius: 8px;
  background: transparent; color: var(--mv-gris); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mv-rail__replier:hover { background: color-mix(in srgb, var(--mv-surface) 60%, transparent); color: var(--pal-deep); }
.mv-rail__titre { margin: 16px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mv-gris); }
.mv-rail__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mv-rail__item, .mv-rail__groupe {
  position: relative; width: 100%; box-sizing: border-box; min-height: 40px; padding: 6px 10px;
  display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--mv-gris); font: inherit; font-size: 13px; font-weight: 500;
  text-align: left; text-decoration: none; transition: background .18s ease, color .18s ease;
}
.mv-rail__item:hover, .mv-rail__groupe:hover { background: color-mix(in srgb, var(--mv-surface) 65%, transparent); color: var(--pal-deep); }
.mv-rail__groupe { color: var(--pal-deep); font-weight: 700; background: color-mix(in srgb, var(--mv-surface) 75%, transparent); box-shadow: var(--mv-ombre); }
.mv-rail__groupe[aria-expanded="true"] { background: var(--pal-deep); color: white; }
.mv-rail__groupe[aria-expanded="true"] .mv-rail__puce { background: color-mix(in srgb, white 18%, transparent); color: white; border-color: transparent; }
.mv-rail__puce {
  flex: none; width: 28px; height: 28px; border-radius: 8px; color: var(--pal-link);
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--mv-surface) 75%, transparent); border: 1px solid color-mix(in srgb, var(--mv-surface) 85%, transparent);
  transition: background .18s ease, box-shadow .18s ease;
}
.mv-rail__puce .material-symbols-rounded { font-size: 19px; }
.mv-rail__lib { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* onglet actif : il suit la section a l'ecran (scroll-spy) */
.mv-rail__item[aria-current="true"] { color: var(--pal-deep); font-weight: 700; }
.mv-rail__item[aria-current="true"] .mv-rail__puce {
  color: white;
  background: linear-gradient(145deg, var(--pal-bright) 0%, var(--pal-deep) 78%);
  border-color: color-mix(in srgb, var(--pal-accent) 70%, white);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .38),
              0 0 0 3px color-mix(in srgb, var(--pal-accent) 30%, transparent),
              0 0 16px 2px color-mix(in srgb, var(--pal-accent) 55%, transparent);
}
/* rail replie : icones seules, libelle en infobulle */
@media (min-width: 901px) {
  .mv-rail[data-replie="true"] { width: 68px; }
  .mv-rail[data-replie="true"] .mv-rail__replier { align-self: center; transform: scaleX(-1); }
  .mv-rail[data-replie="true"] .mv-rail__titre { visibility: hidden; height: 1px; margin: 10px 0; }
  .mv-rail[data-replie="true"] :is(.mv-rail__item, .mv-rail__groupe) { justify-content: center; padding: 6px 0; gap: 0; }
  .mv-rail[data-replie="true"] .mv-rail__lib { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---- 6. sections et grille de page --------------------------------- */
.mv-section { scroll-margin-top: 16px; padding-top: 28px; }
.mv-section + .mv-section { margin-top: 28px; border-top: 1px solid var(--mv-filet-doux); }
.mv-grille { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.mv-l2 { grid-column: span 2; }
.mv-l3 { grid-column: 1 / -1; }
.mv-h2 { grid-row: span 2; }

/* ---- 7. widget natif : carte blanche, rayon 12, ombre lifted ------ */
.widget { position: relative; background: var(--mv-surface); border-radius: var(--mv-rayon); box-shadow: var(--mv-ombre); min-width: 0; scroll-margin-top: 20px; }
.widget-header { display: flex; align-items: center; gap: 8px; padding: 14px 10px 0 20px; }
.widget-header__title { flex: 1; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--pal-deep); }
.widget-header__options {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--mv-gris); display: inline-flex; align-items: center; justify-content: center;
}
.widget-header__options:hover, .widget-header__options[aria-expanded="true"] { background: var(--lumx-color-primary-L5); color: var(--pal-deep); }
.widget-content { padding: 8px 20px 18px; }
.widget-content > .lumx-list { padding: 0; }

/* composants LumX communs */
.widget .lumx-list-item + .lumx-list-item { border-top: 1px solid var(--mv-filet-doux); }
.widget .lumx-list-item__wrapper { padding-left: 0; padding-right: 0; }
.widget label.lumx-list-item__wrapper { cursor: pointer; }
.mv-ligne__titre { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--mv-encre); }
.mv-ligne__sous { display: block; font-size: 12.5px; line-height: 1.4; color: var(--mv-gris); }
.mv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.lumx-chip { font-weight: 600; }
.lumx-chip--color-red.lumx-chip--is-unselected { background: var(--lumx-color-red-L5); color: var(--lumx-color-red-D2); }
.lumx-badge span { font-weight: 700; }
.lumx-icon--has-shape { background: var(--lumx-color-primary-L5); color: var(--pal-deep); }
.mv-initiales {
  flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 12.5px; font-weight: 700; background: var(--lumx-color-primary-L5); color: var(--pal-deep);
}
.lumx-thumbnail__background { border-radius: var(--lumx-border-radius); }
.lumx-thumbnail__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mv-vignette { width: 48px; }
.mv-vignette .lumx-thumbnail__image { aspect-ratio: 1; }
.lumx-button { gap: 6px; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; }
.lumx-button--size-s.lumx-button--variant-button { min-height: 32px; padding: 0 14px; border-radius: var(--lumx-button-border-radius); }
.lumx-button--color-primary.lumx-button--emphasis-high.lumx-button--theme-light { background: var(--pal-deep); color: white; }
.lumx-button--color-primary.lumx-button--emphasis-high.lumx-button--theme-light:hover:not([aria-disabled=true]) { background: var(--pal-deep2); color: white; }
.mv-social { display: flex; gap: 14px; margin: 8px 0 0; font-size: 12.5px; color: var(--mv-gris); }
.mv-social > span { display: inline-flex; align-items: center; gap: 4px; }
.mv-social .material-symbols-rounded { font-size: 17px; }
.mv-total { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--mv-gris); }
.mv-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pal-link); }

/* ---- 8. habillages mv-* (systeme de classes de la doc Ouidou) ----- */

/* title : titre de section sans carte */
.mv-title-xl { background: transparent; box-shadow: none; margin: 0 0 16px; }
.mv-title-xl .widget-content { padding: 0 2px; }
.mv-title-xl :is(h1, h2) { margin: 0; font-size: 30px; font-weight: 400; line-height: 1.12; letter-spacing: -.026em; color: var(--pal-deep); }
.mv-title-xl p:not(.mv-kicker) { margin: 6px 0 0; font-size: 13.5px; color: var(--mv-gris); }

/* mandatory-read */
.mv-lecture__titre { margin: 10px 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--pal-deep); }
.mv-lecture__texte { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mv-gris); }
.mv-lecture__pied { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.mv-lecture__etat { font-size: 12.5px; color: var(--mv-gris); }
#mv-lu[aria-pressed="true"] { background: var(--mv-succes); }

/* mv-aplat : weather et stock sur degrade de palette */
.mv-aplat { background: linear-gradient(160deg, var(--pal-bright) 0%, var(--pal-mid) 55%, var(--pal-deep) 100%); color: white; }
.mv-aplat .widget-header__title, .mv-aplat .widget-header__options { color: white; }
.mv-aplat .widget-header__options:hover, .mv-aplat .widget-header__options[aria-expanded="true"] { background: color-mix(in srgb, white 16%, transparent); color: white; }
.mv-meteo__actuel { display: flex; align-items: center; gap: 12px; }
.mv-meteo__icone { font-size: 46px; }
.mv-meteo__temp { font-size: 48px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.mv-meteo__desc { font-size: 13px; line-height: 1.45; color: color-mix(in srgb, white 85%, transparent); }
.mv-meteo__jours { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mv-meteo__jours li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px;
  background: color-mix(in srgb, white 14%, transparent); font-size: 12.5px; font-weight: 600;
}

/* mv-agenda : calendar */
.mv-agenda .mv-heure { min-width: 48px; font-size: 14px; font-weight: 800; color: var(--pal-link); }
.mv-agenda .lumx-list-item__before { width: auto; justify-content: flex-start; }

/* mv-tags : etiquettes a la couleur du jeu */
.mv-tags .lumx-chip--color-primary.lumx-chip--is-unselected { background: color-mix(in srgb, var(--pal-accent) 18%, var(--mv-surface)); color: var(--pal-deep); }

/* mv-directory : avatars a initiales en cycle de nuances du jeu */
.mv-directory li:nth-child(4n+1) .mv-initiales { background: var(--lumx-color-primary-L5); color: var(--pal-deep); }
.mv-directory li:nth-child(4n+2) .mv-initiales { background: color-mix(in srgb, var(--pal-accent) 24%, white); color: var(--pal-deep); }
.mv-directory li:nth-child(4n+3) .mv-initiales { background: var(--pal-deep); color: white; }
.mv-directory li:nth-child(4n+4) .mv-initiales { background: var(--pal-light); color: var(--pal-deep); }
.mv-membres { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.mv-membres .lumx-user-block__name { font-size: 13px; font-weight: 600; color: var(--mv-encre); }
.mv-membres .lumx-user-block__field { font-size: 12px; color: var(--mv-gris); }

/* mv-tiles : micro-apps (APP) en tuiles pastel */
.mv-apps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mv-app {
  width: 100%; height: 100%; min-height: 128px; box-sizing: border-box; padding: 16px; border: 0; border-radius: 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit;
  background: var(--mv-teinte); color: var(--pal-deep); transition: background .16s ease;
}
.mv-app:hover { background: color-mix(in srgb, var(--pal-bright) 20%, var(--mv-surface)); }
.mv-app .lumx-icon--has-shape { margin-bottom: 8px; background: var(--pal-deep); color: white; border-radius: 10px; }
.mv-app__nom { font-size: 14px; font-weight: 700; }
.mv-app__info { font-size: 12.5px; color: var(--mv-gris); }

/* content-list en grille */
.mv-cartes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mv-carte { display: flex; flex-direction: column; gap: 4px; }
.mv-carte .lumx-thumbnail { margin-bottom: 6px; }
.mv-carte__titre { margin: 4px 0 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--mv-encre); }
.mv-carte__meta { margin: 0; font-size: 12.5px; color: var(--mv-gris); }
.mv-une { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: center; margin: 4px 0 8px; }

/* mv-list-dark : content-list sur fond profond du jeu */
.mv-list-dark { background: linear-gradient(158deg, var(--pal-deep) 0%, var(--pal-deep2) 100%); }
.mv-list-dark .widget-header__title, .mv-list-dark .widget-header__options, .mv-list-dark .mv-ligne__titre { color: white; }
.mv-list-dark .mv-ligne__sous { color: color-mix(in srgb, var(--pal-accent) 55%, white); }
.mv-list-dark .lumx-list-item + .lumx-list-item { border-top-color: color-mix(in srgb, white 16%, transparent); }
.mv-list-dark .lumx-icon--has-shape { background: color-mix(in srgb, white 14%, transparent); color: white; }
.mv-list-dark .widget-header__options:hover, .mv-list-dark .widget-header__options[aria-expanded="true"] { background: color-mix(in srgb, white 14%, transparent); color: white; }

/* mv-posts : posts-list */
.mv-posts__liste { list-style: none; margin: 0; padding: 0; }
.mv-post { padding: 14px 0; }
.mv-post + .mv-post { border-top: 1px solid var(--mv-filet-doux); }
.mv-post:first-child { padding-top: 6px; }
.mv-post .lumx-user-block__name { font-weight: 700; color: var(--mv-encre); }
.mv-post .lumx-user-block__field { font-size: 12.5px; color: var(--mv-gris); }
.mv-post__texte { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--mv-encre); }
.mv-posts .mv-initiales { background: var(--lumx-color-primary-L5); color: var(--pal-deep); }
.mv-posts .mv-social .material-symbols-rounded { color: var(--pal-link); }

/* mv-community : bouton d'adhesion */
.mv-community .lumx-button[aria-pressed="false"] { box-shadow: inset 0 0 0 1px var(--pal-deep); }

/* ---- 9. options de widget (popover) -------------------------------- */
.mv-options {
  position: absolute; z-index: 60; width: 248px; padding: 12px 14px; border-radius: 10px;
  background: var(--mv-surface); box-shadow: var(--mv-ombre-haute); font-size: 13px; color: var(--mv-encre);
}
.mv-options__ligne { margin: 0; line-height: 1.5; }
.mv-options__ligne + .mv-options__ligne { margin-top: 4px; color: var(--mv-gris); }

/* ---- 10. NAVIGATION : mega menu Groupe, classe mv-mega ------------- */
.mv-mega {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto; padding: 16px 24px 32px;
  background: color-mix(in srgb, var(--pal-deep2) 42%, transparent); backdrop-filter: blur(2px);
}
.mv-mega[hidden] { display: none; }
.mv-mega__boite { max-width: 1240px; margin: 0 auto; background: var(--mv-surface); border-radius: var(--mv-rayon); box-shadow: var(--mv-ombre-haute); }
.mv-mega__entete { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 24px; border-bottom: 1px solid var(--mv-filet-doux); }
.mv-mega__titre { margin: 0; font-size: 18px; font-weight: 700; color: var(--pal-deep); }
.mv-mega__fermer {
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: transparent; color: var(--pal-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.mv-mega__fermer:hover { background: var(--lumx-color-primary-L5); }
.mv-mega__corps { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; }
.mv-mega__rubriques { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: var(--pal-clair-1); border-radius: 0 0 0 var(--mv-rayon); }
.mv-mega__rubrique {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--mv-encre); font: inherit; font-size: 14px; font-weight: 600; text-align: left;
}
.mv-mega__rubrique .material-symbols-rounded { color: var(--pal-link); font-size: 20px; }
.mv-mega__rubrique:hover { background: color-mix(in srgb, var(--mv-surface) 70%, transparent); }
.mv-mega__rubrique[aria-selected="true"] { background: var(--mv-surface); color: var(--pal-deep); box-shadow: var(--mv-ombre); }
.mv-mega__panneau { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; padding: 22px 26px; }
.mv-mega__panneau[hidden] { display: none; }
.mv-mega__ctitre { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pal-link); }
.mv-mega__liens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mv-mega__liens li { padding: 7px 0; font-size: 14px; color: var(--mv-gris); }
.mv-mega__liens a { color: var(--pal-deep); font-weight: 600; text-decoration: none; }
.mv-mega__liens a:hover { text-decoration: underline; }
.mv-mega__encarts { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 18px 0; }
.mv-mega__encart { padding: 14px; border-radius: 10px; background: var(--pal-clair-1); display: flex; flex-direction: column; gap: 8px; }
.mv-mega__encart .mv-mega__ctitre { margin: 0; }
.mv-mega__encart .lumx-user-block__name { font-weight: 700; color: var(--mv-encre); }
.mv-mega__encart .lumx-user-block__field { font-size: 12.5px; color: var(--mv-gris); }
.mv-mega__lien { font-size: 13.5px; font-weight: 700; color: var(--pal-link); }
.mv-mega__note { margin: 0; padding: 12px 24px 16px; border-top: 1px solid var(--mv-filet-doux); font-size: 12.5px; color: var(--mv-gris); }

/* ---- 11. APP : fenetre de micro-app -------------------------------- */
.mv-dialog { width: min(440px, calc(100vw - 32px)); padding: 24px 26px 20px; border: 0; border-radius: var(--mv-rayon); box-shadow: var(--mv-ombre-haute); color: var(--mv-encre); }
.mv-dialog::backdrop { background: color-mix(in srgb, var(--pal-deep2) 45%, transparent); }
.mv-dialog__titre { margin: 0 0 10px; font-size: 21px; font-weight: 700; color: var(--pal-deep); }
.mv-dialog__texte { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--mv-gris); }
.mv-dialog__actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ---- 12. responsive ----------------------------------------------- */
@media (max-width: 1200px) {
  .mv-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-l2, .mv-l3 { grid-column: 1 / -1; }
  .mv-h2 { grid-row: auto; }
  .mv-mega__corps { grid-template-columns: 220px minmax(0, 1fr); }
  .mv-mega__encarts { grid-column: 1 / -1; flex-direction: row; padding: 0 18px 18px; }
  .mv-mega__encart { flex: 1; }
  .header-top__action, .header-top__user-settings { width: 44px; height: 44px; }
}
@media (max-width: 900px) {
  .header-top__wrapper { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .header-top__search { order: 3; flex-basis: 100%; max-width: none; }
  .header-top__action:nth-child(-n+4) { display: none; }
  .mv-recherche, .mv-recherche-ia, .mv-creer { min-height: 44px; }
  .mv-recherche-ia { width: 44px; height: 44px; }
  .mv-alert { margin: 0 14px 6px; }

  .mv-cadre { display: block; }
  .mv-main { padding: 0 14px 120px; }
  .mv-section, .widget { scroll-margin-top: 76px; }

  /* rail -> barre collante avec burger */
  .mv-rail { position: sticky; top: 0; z-index: 30; width: auto; max-height: none; overflow: visible; padding: 8px 14px; background: color-mix(in srgb, var(--pal-page) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mv-filet-doux); }
  .mv-rail__barre { display: flex; align-items: center; gap: 12px; }
  .mv-burger {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--mv-surface); color: var(--pal-deep); font: inherit; font-size: 13px; font-weight: 700; box-shadow: var(--mv-ombre);
  }
  .mv-burger[aria-expanded="true"] { background: var(--pal-deep); color: white; }
  .mv-rail__courant { font-size: 14px; font-weight: 700; color: var(--pal-deep); }
  .mv-rail__panneau {
    position: absolute; left: 0; right: 0; top: 100%; padding: 10px 14px 16px;
    background: var(--mv-surface); box-shadow: var(--mv-ombre-haute); border-radius: 0 0 var(--mv-rayon) var(--mv-rayon);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .mv-rail__panneau:not([data-ouvert="true"]) { display: none; }
  .mv-rail__replier { display: none; }
  .mv-rail__item, .mv-rail__groupe { min-height: 46px; }

  .mv-mega { padding: 0; }
  .mv-mega__boite { border-radius: 0; min-height: 100%; }
  .mv-mega__corps { display: block; }
  .mv-mega__rubriques { flex-direction: row; overflow-x: auto; border-radius: 0; padding: 10px 14px; }
  .mv-mega__rubrique { flex: none; }
  .mv-mega__panneau { grid-template-columns: 1fr 1fr; padding: 18px; }
  .mv-mega__encarts { flex-direction: column; padding: 0 18px 18px; }
}
@media (max-width: 600px) {
  .mv-grille { grid-template-columns: minmax(0, 1fr); }
  .mv-cartes, .mv-une { grid-template-columns: minmax(0, 1fr); }
  .mv-mega__panneau { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mv-title-xl :is(h1, h2) { font-size: 25px; }
  .widget-header { padding-left: 16px; }
  .widget-content { padding: 8px 16px 16px; }
  .header-top__logo { font-size: 19px; }
  .mv-creer { padding: 0 14px 0 10px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .mv-rail, .mv-rail__item, .mv-rail__puce, .mv-app { transition: none; }
}

/* ---- experience plein ecran (bureau) : une section = un ecran -------- */
/* Mode de presentation de la maquette, pilote par ecrans.js.            */
html.mv-ecrans, html.mv-ecrans body { height: 100%; overflow: hidden; }
.mv-ecrans .mv-cadre { height: calc(100vh - var(--mv-haut, 0px)); height: calc(100dvh - var(--mv-haut, 0px)); align-items: stretch; }
.mv-ecrans .mv-rail { max-height: 100%; }
.mv-ecrans .mv-main { position: relative; height: 100%; overflow: hidden; padding: 0; }
.mv-ecrans .mv-section {
  position: absolute; inset: 0; margin: 0; border: 0;
  padding: 26px 26px 76px 14px; box-sizing: border-box;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  opacity: 0; visibility: hidden; transform: translateY(5%);
  transition: opacity .5s ease, transform .65s cubic-bezier(.2,.75,.2,1), visibility 0s linear .65s;
}
.mv-ecrans .mv-section[data-ecran="avant"] { transform: translateY(-5%); }
/* pas d'animation tant que le premier ecran n'est pas pose */
.mv-ecrans:not(.mv-ecrans-pret) .mv-section { transition: none !important; }
/* sortie immediate : seul l'ecran entrant s'anime */
.mv-ecrans .mv-section:not([data-ecran="actif"]) { transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.mv-ecrans .mv-section[data-ecran="actif"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mv-ecrans .mv-section + .mv-section { margin-top: 0; border-top: 0; }
.mv-ecran-compteur { display: none; }
.mv-ecrans .mv-ecran-compteur {
  display: block; position: absolute; left: 14px; bottom: 18px; z-index: 4; margin: 0;
  padding: 6px 12px; border-radius: 999px; background: var(--mv-surface); box-shadow: var(--mv-ombre);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--pal-deep); font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .mv-ecrans .mv-section { transition: none; transform: none; }
}

/* ---- rail fin (reprise de la piste C d'origine) ---------------------- */
/* Replie par defaut : 60 px, icones seules, info-bulle au survol.        */
@media (min-width: 901px) {
  .mv-rail { padding: 8px 10px 18px; }
  .mv-rail__puce { width: 26px; height: 26px; border-radius: 8px; backdrop-filter: blur(8px);
    background: rgb(255 255 255 / .7); border: 1px solid rgb(255 255 255 / .8); box-shadow: none; }
  .mv-rail__puce .material-symbols-rounded { font-size: 17px; }
  .mv-rail__item, .mv-rail__groupe { min-height: 36px; padding: 5px 8px; font-size: 12.5px; font-weight: 500; color: #55555A; }
  .mv-rail__item[aria-current="true"] { font-weight: 600; }
  .mv-rail__item[aria-current="true"] .mv-rail__puce { color: white; background: var(--pal-deep); border-color: transparent;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--pal-deep) 30%, transparent); }
  /* Groupe Veolia : discret, comme une entree de navigation */
  .mv-rail__groupe { background: transparent; box-shadow: none; color: #55555A; font-weight: 500; }
  .mv-rail__groupe .mv-rail__puce { background: transparent; border-color: transparent; color: var(--pal-deep); }
  .mv-rail__groupe:hover { background: rgb(255 255 255 / .6); }
  .mv-rail__titre { margin: 12px 8px 6px; font-size: 10px; }
  .mv-rail__replier { width: 26px; height: 26px; color: #55555A; }

  .mv-rail[data-replie="true"] { width: 60px; padding-left: 8px; padding-right: 8px; }
  .mv-rail[data-replie="true"] .mv-rail__replier { align-self: center; }
  .mv-rail[data-replie="true"] .mv-rail__titre { visibility: visible; height: 1px; margin: 12px 8px; font-size: 0;
    background: color-mix(in srgb, var(--pal-deep) 10%, transparent); }
  .mv-rail[data-replie="true"] .mv-rail__liste { gap: 6px; }
  .mv-rail[data-replie="true"] :is(.mv-rail__item, .mv-rail__groupe) { padding: 4px 0; min-height: 34px; }
  .mv-rail[data-replie="true"] .mv-rail__item .mv-rail__puce { width: 32px; height: 32px; border-radius: 9px; }
  .mv-rail[data-replie="true"] .mv-rail__item .mv-rail__puce .material-symbols-rounded { font-size: 18px; }
  /* info-bulle */
  .mv-rail[data-replie="true"] [data-lib]::after { content: attr(data-lib); position: absolute; left: calc(100% + 10px); top: 50%;
    transform: translate(-4px, -50%); opacity: 0; pointer-events: none; z-index: 40; padding: 5px 9px; border-radius: 7px;
    background: var(--pal-deep); color: #fff; font-size: 11.5px; font-weight: 500; white-space: nowrap;
    transition: opacity .14s ease, transform .14s ease; }
  .mv-rail[data-replie="true"] [data-lib]:hover::after,
  .mv-rail[data-replie="true"] [data-lib]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  .mv-rail[data-replie="true"] { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .mv-rail [data-lib]::after { transition: none; } }

/* ---- plein ecran sans defilement : la grille remplit l'ecran ---------- */
.mv-ecrans .mv-section { display: flex; flex-direction: column; overflow: hidden; padding-top: 18px; padding-bottom: 72px; }
.mv-ecrans .mv-section > .mv-title-xl { flex: none; margin-bottom: 14px; }
.mv-ecrans .mv-section > .mv-grille { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(0, 1fr); align-content: stretch; }
.mv-ecrans .mv-grille > .widget { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.mv-ecrans .mv-grille > .widget > .widget-header { flex: none; }
.mv-ecrans .mv-grille > .widget > .widget-content { flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* images des cartes : s'adaptent a la hauteur disponible */
.mv-ecrans .mv-cartes .lumx-thumbnail__image, .mv-ecrans .mv-une .lumx-thumbnail__image { display: block; height: auto; max-height: 26vh; object-fit: cover; }
/* densite : posee par ecrans.js quand l'ecran est trop court */
.mv-ecrans .mv-section[data-densite="1"] { padding-top: 12px; }
.mv-ecrans .mv-section[data-densite="1"] > .mv-grille { gap: 12px; }
.mv-ecrans .mv-section[data-densite="1"] .widget-header { padding-top: 12px; padding-bottom: 6px; }
.mv-ecrans .mv-section[data-densite="1"] .widget-content { padding-top: 4px; padding-bottom: 12px; }
.mv-ecrans .mv-section[data-densite="1"] .mv-title-xl :is(h1, h2) { font-size: 26px; }
.mv-ecrans .mv-section[data-densite="1"] .lumx-list-item--size-big .lumx-list-item__wrapper { padding-top: 6px; padding-bottom: 6px; }
.mv-ecrans .mv-section[data-densite="1"] :is(.mv-cartes, .mv-une) .lumx-thumbnail__image { max-height: 19vh; }
.mv-ecrans .mv-section[data-densite="1"] .mv-post__texte { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
/* elements retires de l'affichage : le widget LumApps regle son nombre d'elements */
.mv-ecrans [data-masque-hauteur] { display: none !important; }

/* hauteur exacte : la page est une colonne, le cadre prend tout le reste */
html.mv-ecrans body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
html.mv-ecrans body > .header { flex: none; }
html.mv-ecrans .mv-cadre { flex: 1 1 auto; min-height: 0; height: auto; }
/* lecture obligatoire : le bouton reste visible, le texte se resserre */
.mv-ecrans .panel-widget-mandatory-read .mv-lecture__texte { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mv-ecrans .mv-section[data-densite="1"] .panel-widget-mandatory-read .mv-lecture__texte { -webkit-line-clamp: 1; }

.mv-ecrans .widget[data-serre] :is(.mv-lecture__texte, .mv-meteo__jours, .mv-social, .mv-chips, .mv-ligne__sous, .lumx-user-block__field) { display: none; }
.mv-ecrans .widget[data-serre] .widget-header { padding-top: 10px; padding-bottom: 4px; }

/* ---- alerte : pastille a droite du titre de Ma journee --------------- */
.mv-bandeau { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 0 16px; }
.mv-bandeau > .mv-title-xl { flex: 1; min-width: 0; margin: 0; }
.mv-ecrans .mv-section > .mv-bandeau { flex: none; margin-bottom: 14px; }
.mv-bandeau .mv-alert {
  display: inline-flex; flex-wrap: nowrap; flex: none; margin: 0 0 0 auto; max-width: 100%;
  padding: 7px 15px 7px 11px; gap: 9px; border-radius: 9px; font-size: 12.5px;
  background: rgb(254 242 242 / .9); border: 1px solid rgb(226 6 19 / .2); border-left: 3px solid var(--mv-alerte);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--mv-alerte) 8%, transparent);
}
.mv-bandeau .mv-alert > .material-symbols-rounded { font-size: 17px; }
.mv-bandeau .mv-alert__etiq { font-size: 9.5px; font-weight: 700; }
.mv-bandeau .mv-alert__texte { flex: none; min-width: 0; font-weight: 600; white-space: nowrap; }
.mv-bandeau .mv-alert__lien { font-size: 12px; }
@media (max-width: 1100px) { .mv-bandeau .mv-alert__lien { display: none; } }
@media (max-width: 900px) {
  .mv-bandeau { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mv-bandeau .mv-alert { margin-left: 0; }
  .mv-bandeau .mv-alert__texte { white-space: normal; }
}

.mv-ecrans :is(.mv-cartes, .mv-une) .lumx-thumbnail__background { display: block; overflow: hidden; }

/* ---- pied de widget « Tous mes services » + lanceur BOOKMARKS ------- */
.widget-footer { padding: 0 20px 16px; }
.mv-tous { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--pal-deep);
  border-radius: 999px; background: transparent; color: var(--pal-deep); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mv-tous:hover, .mv-tous[aria-expanded="true"] { background: var(--pal-deep); color: white; }
.mv-tous .material-symbols-rounded { font-size: 18px; }
.mv-ecrans .mv-grille > .widget > .widget-footer { flex: none; }
.mv-lanceur { position: fixed; inset: 0; z-index: 1200; background: color-mix(in srgb, var(--pal-deep) 28%, transparent);
  display: flex; justify-content: flex-end; align-items: flex-start; padding: 64px 22px 22px; }
.mv-lanceur[hidden] { display: none; }
.mv-lanceur__boite { width: min(520px, 100%); max-height: calc(100vh - 90px); overflow: auto; background: var(--mv-surface);
  border-radius: var(--mv-rayon); box-shadow: var(--mv-ombre-haute); padding: 18px 20px 16px; }
.mv-lanceur__entete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mv-lanceur__entete h2 { margin: 0; font-size: 17px; color: var(--pal-deep); }
.mv-lanceur__fermer { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--pal-deep); cursor: pointer; }
.mv-lanceur__fermer:hover { background: var(--mv-teinte); }
.mv-lanceur__grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mv-lanceur__app { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px;
  text-align: center; text-decoration: none; color: var(--mv-encre); }
.mv-lanceur__app:hover { background: var(--mv-teinte); }
.mv-lanceur__app .lumx-icon--has-shape { background: var(--mv-teinte); color: var(--pal-deep); border-radius: 10px; }
.mv-lanceur__nom { font-size: 12px; font-weight: 600; line-height: 1.25; }
.mv-lanceur__cat { font-size: 10.5px; color: var(--mv-gris); }
.mv-lanceur__note { margin: 12px 0 0; font-size: 11.5px; color: var(--mv-gris); }
@media (max-width: 600px) { .mv-lanceur { padding: 0; } .mv-lanceur__boite { max-height: 100vh; border-radius: 0; } .mv-lanceur__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mv-app--tous { background: var(--pal-deep); color: white; }
.mv-app--tous:hover { background: color-mix(in srgb, var(--pal-deep) 85%, black); }
.mv-app--tous .lumx-icon--has-shape { background: color-mix(in srgb, white 18%, transparent); }
.mv-app--tous .mv-app__info { color: color-mix(in srgb, white 80%, transparent); display: inline-flex; align-items: center; gap: 4px; }
.mv-app--tous .mv-app__info .material-symbols-rounded { font-size: 16px; }
/* les tuiles occupent la hauteur du bloc en plein ecran */
.mv-ecrans #w-demarches > .widget-content { display: flex; }
.mv-ecrans #w-demarches .mv-apps { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.mv-ecrans #w-demarches .mv-app { min-height: 0; justify-content: flex-end; }

/* ==== retours Florian 01/10 ========================================== */
.mv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* sous-titre des ecrans */
.mv-title-xl .widget-content > p:last-child { margin: 4px 0 0; font-size: 13px; color: var(--mv-gris); }
/* A la une : diaporama (content-list vue diaporama) */
.mv-une-slider > .widget-content { padding: 0 20px 16px; display: flex; }
.mv-slider { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 220px; }
.mv-slides { list-style: none; margin: 0; padding: 0; position: relative; flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; }
.mv-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.mv-slide[data-actif="true"] { opacity: 1; visibility: visible; transition-delay: 0s; }
.mv-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--pal-deep) 88%, transparent) 0%, color-mix(in srgb, var(--pal-deep) 55%, transparent) 48%, transparent 80%); }
.mv-slide__texte { position: absolute; z-index: 1; left: 24px; bottom: 22px; max-width: min(520px, 62%); color: white; }
.mv-slide__texte .lumx-chip { background: rgb(255 255 255 / .2); color: white; }
.mv-slide__titre { margin: 8px 0 6px; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.2; font-weight: 700; }
.mv-slide__lede { margin: 0 0 12px; font-size: 13px; opacity: .9; }
.mv-slide__lien { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: white; color: var(--pal-deep); font-size: 13px; font-weight: 700; text-decoration: none; }
.mv-slide__lien .material-symbols-rounded { font-size: 17px; }
.mv-slider__nav { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 10px; flex: none; }
.mv-slider__fleche { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--mv-teinte); color: var(--pal-deep); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mv-slider__point { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--pal-deep) 25%, transparent); cursor: pointer; transition: width .2s ease; }
.mv-slider__point[aria-current="true"] { width: 22px; background: var(--pal-deep); }
/* tuiles photo de Mon quotidien */
.mv-app--photo { position: relative; overflow: hidden; isolation: isolate; color: white; justify-content: flex-end;
  background: var(--pal-deep) var(--mv-photo) center / cover no-repeat; text-decoration: none; }
.mv-app--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--pal-deep) 10%, transparent) 20%, color-mix(in srgb, var(--pal-deep) 88%, transparent) 100%); }
.mv-app--photo:hover { background: var(--pal-deep) var(--mv-photo) center / cover no-repeat; }
.mv-app--photo:hover::before { background: linear-gradient(180deg, color-mix(in srgb, var(--pal-deep) 25%, transparent) 10%, var(--pal-deep) 100%); }
.mv-app--photo .lumx-icon--has-shape { background: rgb(255 255 255 / .2); backdrop-filter: blur(6px); }
.mv-app--photo .mv-app__info { color: rgb(255 255 255 / .85); }
.mv-ecrans #w-demarches .mv-apps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .mv-ecrans #w-demarches .mv-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* blocs photo (featured-image) */
.mv-photo { position: relative; overflow: hidden; min-height: 180px; padding: 0; isolation: isolate; }
.mv-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mv-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--pal-deep) 85%, transparent) 100%); }
.mv-photo__legende { position: absolute; left: 20px; right: 20px; bottom: 18px; color: white; }
.mv-photo__legende .mv-kicker { color: rgb(255 255 255 / .85); margin: 0 0 4px; }
.mv-photo__legende h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.2; }
.mv-photo__lien { display: inline-flex; align-items: center; gap: 6px; color: white; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .5); }
.mv-photo__lien .material-symbols-rounded { font-size: 16px; }
.mv-photo.mv-l2.mv-h2 .mv-photo__legende h3 { font-size: clamp(24px, 2.4vw, 34px); }
/* lien de fin de liste */
.mv-lien-fin { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--pal-link); cursor: pointer; text-decoration: none; }
.mv-list-dark .mv-lien-fin { color: white; }
.mv-lien-fin .material-symbols-rounded { font-size: 17px; }
/* le selecteur de couleurs n'existe plus : on reste en bleu */
.pal-sw { display: none !important; }

/* Actualites : 3 + 3 cartes, image a gauche, tiennent sur un ecran */
.mv-ecrans #actus .mv-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mv-ecrans #actus .mv-carte { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 12px; align-items: start; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail { grid-row: 1 / span 4; margin: 0; height: 100%; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail__background { height: 100%; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail__image { height: 100%; max-height: none; aspect-ratio: auto; min-height: 92px; }
.mv-ecrans #actus .mv-carte__titre { font-size: 14px; line-height: 1.3; margin: 4px 0 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.mv-ecrans #actus .mv-carte__meta { margin: 0; }
.mv-ecrans #actus .mv-social { margin: 4px 0 0; }
/* A la une : la hauteur suit l'ecran */
.mv-ecrans #w-une .mv-slider { min-height: 0; }
.mv-ecrans #w-une .mv-slide__lede { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Ma journee : A la une sur 2 colonnes, meteo + 3 widgets en dessous, sans trou */
.mv-ecrans #espace .mv-grille { grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr); }

/* Mon quotidien : des CARTES (photo en haut, texte dessous), pas des bandes */
.mv-ecrans #w-demarches .mv-apps,
#w-demarches .mv-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 14px; }
#w-demarches .mv-app--photo {
  display: grid; grid-template-rows: minmax(56px, 1fr) auto auto; align-items: end; gap: 2px;
  padding: 0; color: var(--pal-deep); background: var(--mv-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--pal-deep) 12%, transparent); border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 20 60 / .06); transition: box-shadow .16s ease, transform .16s ease;
}
#w-demarches .mv-app--photo::before {
  position: static; inset: auto; z-index: auto; grid-row: 1; align-self: stretch;
  background: var(--pal-deep) var(--mv-photo) center / cover no-repeat; border-radius: 11px 11px 0 0;
}
#w-demarches .mv-app--photo:hover { background: var(--mv-surface, #fff); box-shadow: 0 6px 18px rgb(0 20 60 / .14); transform: translateY(-2px); }
#w-demarches .mv-app--photo:hover::before { background: var(--pal-deep) var(--mv-photo) center / cover no-repeat; }
#w-demarches .mv-app--photo .lumx-icon--has-shape {
  grid-row: 1; justify-self: start; align-self: end; margin: 0 0 -18px 14px; position: relative; z-index: 1;
  background: var(--mv-surface, #fff); color: var(--pal-deep); backdrop-filter: none; box-shadow: 0 2px 6px rgb(0 20 60 / .18);
}
#w-demarches .mv-app--photo .mv-app__nom { grid-row: 2; padding: 22px 14px 0; font-weight: 600; }
#w-demarches .mv-app--photo .mv-app__info { grid-row: 3; padding: 0 14px 14px; color: color-mix(in srgb, var(--pal-deep) 70%, transparent); }
#w-demarches .mv-app--tous { border-radius: 12px; justify-content: center; }
@media (max-width: 700px) { #w-demarches .mv-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; } }

#w-demarches .mv-app--photo { grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: stretch; text-align: left; }
#w-demarches .mv-app--photo::before { justify-self: stretch; width: 100%; }
#w-demarches .mv-apps > li:last-child { grid-column: span 2; }
#w-demarches .mv-app--tous { align-items: flex-start; justify-content: flex-end; padding: 20px; }
@media (max-width: 700px) { #w-demarches .mv-apps > li:last-child { grid-column: span 2; } }

/* photo pleine largeur, en haut de carte */
#w-demarches .mv-app--photo { position: relative; padding-top: 0; }
#w-demarches .mv-app--photo::before { position: absolute !important; top: 0; left: 0; right: 0; bottom: 74px; width: auto !important; max-width: none !important; inset: 0 0 74px 0 !important; }
#w-demarches .mv-app--photo .lumx-icon--has-shape { grid-row: 1; position: relative; z-index: 1; margin: 0 0 -18px 14px; }

/* A la une : diaporama plein cadre, sans marge blanche */
#w-une { position: relative; padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
#w-une > .widget-content { flex: 1; display: flex; padding: 0 !important; margin: 0 !important; min-height: 0; }
#w-une .mv-slider { flex: 1; min-height: 240px; }
#w-une .mv-slides { border-radius: 0; }
#w-une > .widget-header { position: absolute; z-index: 3; top: 0; left: 0; right: 0; margin: 0; padding: 16px 20px; background: linear-gradient(180deg, rgb(0 20 60 / .45), transparent); }
#w-une > .widget-header .widget-header__title,
#w-une > .widget-header .widget-header__options { color: white; }
#w-une .mv-slide__texte { left: 28px; bottom: 28px; }
#w-une .mv-slider__nav { position: absolute; z-index: 3; right: 20px; bottom: 20px; padding: 0; }
#w-une .mv-slider__fleche { background: rgb(255 255 255 / .2); color: white; backdrop-filter: blur(6px); }
#w-une .mv-slider__fleche:hover { background: rgb(255 255 255 / .35); }
#w-une .mv-slider__point { background: rgb(255 255 255 / .45); }
#w-une .mv-slider__point[aria-current="true"] { background: white; }
.mv-ecrans #w-une .mv-slider { min-height: 0; }

/* ── Météo du jour : fond de ciel selon l'état et la température ──
   data-ciel = soleil | eclaircies | nuageux | pluie
   data-temp = froid (< 8°) | doux (8–22°) | chaud (> 22°)
   Le widget natif weather fournit l'état et la température : seule la classe d'habillage change le fond. */
.mv-meteo { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.mv-meteo > .widget-content { flex: 1; display: flex; align-items: flex-end; position: relative; z-index: 2; }
.mv-meteo > .widget-header { position: relative; z-index: 2; }
.mv-meteo .mv-meteo__actuel { align-items: flex-end; gap: 14px; text-shadow: 0 1px 8px rgb(0 30 70 / .35); }
.mv-meteo .mv-meteo__temp { font-size: clamp(56px, 5vw, 84px); font-weight: 300; }
.mv-meteo .mv-meteo__desc { font-size: 14px; color: white; padding-bottom: 8px; }
.mv-meteo .mv-meteo__desc strong { font-weight: 600; }

.mv-ciel { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ciel-haut) 0%, var(--ciel-bas) 100%); }
.mv-ciel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 25 60 / .45) 100%); }

/* température : teinte du ciel */
.mv-meteo[data-temp="froid"] { --ciel-haut: #5b86b8; --ciel-bas: #a9c4dd; --soleil: #fff4d6; }
.mv-meteo[data-temp="doux"]  { --ciel-haut: #2f7fd1; --ciel-bas: #8cc4ee; --soleil: #ffe08a; }
.mv-meteo[data-temp="chaud"] { --ciel-haut: #1f6fd6; --ciel-bas: #ffc98a; --soleil: #ffcf4d; }

/* soleil */
.mv-ciel__soleil { position: absolute; top: 14%; right: 14%; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--soleil) 45%, color-mix(in srgb, var(--soleil) 0%, transparent) 72%);
  box-shadow: 0 0 60px 24px color-mix(in srgb, var(--soleil) 55%, transparent); }

/* nuages : bulles en CSS */
.mv-ciel__nuage { position: absolute; height: 34px; border-radius: 40px; background: rgb(255 255 255 / .92);
  filter: drop-shadow(0 6px 10px rgb(0 40 90 / .18)); animation: mv-nuage 38s linear infinite alternate; }
.mv-ciel__nuage::before, .mv-ciel__nuage::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.mv-ciel__nuage::before { width: 52%; height: 170%; left: 14%; bottom: 20%; }
.mv-ciel__nuage::after  { width: 38%; height: 130%; right: 12%; bottom: 25%; }
.mv-ciel__nuage--1 { width: 150px; top: 30%; right: 4%; }
.mv-ciel__nuage--2 { width: 110px; top: 16%; left: 12%; opacity: .75; transform: scale(.8); animation-duration: 52s; }
.mv-ciel__nuage--3 { width: 180px; top: 46%; left: -30px; opacity: .55; animation-duration: 64s; }
@keyframes mv-nuage { to { translate: 26px 0; } }

/* pluie */
.mv-ciel__pluie { position: absolute; inset: 0; display: none;
  background-image: repeating-linear-gradient(105deg, transparent 0 14px, rgb(255 255 255 / .35) 14px 15px, transparent 15px 28px);
  mask-image: linear-gradient(180deg, transparent 30%, #000 50%, #000 80%, transparent);
  animation: mv-pluie .8s linear infinite; }
@keyframes mv-pluie { to { background-position: -10px 40px; } }

/* états */
.mv-meteo[data-ciel="soleil"] .mv-ciel__nuage { display: none; }
.mv-meteo[data-ciel="soleil"] .mv-ciel__soleil { width: 120px; height: 120px; }
.mv-meteo[data-ciel="nuageux"] { --ciel-haut: #6f87a3; --ciel-bas: #b7c6d6; }
.mv-meteo[data-ciel="nuageux"] .mv-ciel__soleil { display: none; }
.mv-meteo[data-ciel="nuageux"] .mv-ciel__nuage { background: rgb(240 244 249 / .95); }
.mv-meteo[data-ciel="pluie"] { --ciel-haut: #3d5470; --ciel-bas: #7c8fa6; }
.mv-meteo[data-ciel="pluie"] .mv-ciel__soleil { display: none; }
.mv-meteo[data-ciel="pluie"] .mv-ciel__nuage { background: rgb(205 214 226 / .95); }
.mv-meteo[data-ciel="pluie"] .mv-ciel__pluie { display: block; }

@media (prefers-reduced-motion: reduce) { .mv-ciel__nuage, .mv-ciel__pluie { animation: none; } }

/* soleil sans liseré : halo par dégradé seul */
.mv-ciel__soleil { box-shadow: none; width: 150px; height: 150px; top: 6%; right: 8%;
  background: radial-gradient(circle closest-side, #fffbe9 0 22%, var(--soleil) 36%, rgb(255 214 110 / .35) 58%, rgb(255 214 110 / 0) 100%); }
.mv-meteo[data-ciel="soleil"] .mv-ciel__soleil { width: 190px; height: 190px; }
.mv-meteo .mv-meteo__temp[role="button"] { cursor: pointer; }

/* Logo Veolia (fichier officiel repris de la V1 de Nicolas) + nom du produit */
.header-top__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pal-deep); flex: none; }
.header-top__logo-img { height: 22px; width: auto; display: block; }
.header-top__produit { font-size: 18px; font-weight: 800; letter-spacing: -.01em; padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--pal-deep) 18%, transparent); line-height: 22px; }
@media (max-width: 700px) { .header-top__produit { display: none; } .header-top__logo-img { height: 18px; } }

/* ── Signature Veolia : deux coins opposés très arrondis, deux coins droits ──
   Classe d'habillage réutilisable : à poser sur un widget LumApps (champ « classe CSS »).
   Un bloc par écran au maximum, pour rester un rappel et pas un motif. */
:root { --mv-signature: clamp(18px, 1.8vw, 30px); }
.mv-signature { border-radius: var(--mv-signature) 0 var(--mv-signature) 0 !important; overflow: hidden; }
.mv-signature .mv-slides,
.mv-signature .mv-photo__img { border-radius: 0 !important; }
.mv-app--tous.mv-signature { border-radius: calc(var(--mv-signature) * .7) 0 calc(var(--mv-signature) * .7) 0 !important; }

/* Rail : toujours au-dessus des blocs, sinon les info-bulles passent dessous */
@media (min-width: 901px) {
  .mv-rail { position: sticky; z-index: 40; }
  .mv-rail[data-replie="true"] [data-lib] { position: relative; }
  .mv-rail[data-replie="true"] [data-lib]::after { z-index: 1000; box-shadow: 0 6px 16px rgb(0 20 60 / .22); }
}

/* Actualités : cartes VERTICALES (photo en haut, texte dessous) qui remplissent le bloc */
.mv-ecrans #actus #w-actus-site > .widget-content,
.mv-ecrans #actus #w-actus-france > .widget-content { display: flex; flex-direction: column; }
.mv-ecrans #actus .mv-cartes { flex: 1; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 16px; }
.mv-ecrans #actus .mv-carte { display: flex; flex-direction: column; min-height: 0; column-gap: 0; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail { flex: 1 1 auto; min-height: 70px; height: auto; margin: 0 0 10px; grid-row: auto; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail__background { height: 100%; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail__image { width: 100%; height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; object-fit: cover; }
.mv-ecrans #actus .mv-carte > :not(.lumx-thumbnail) { flex: none; }
.mv-ecrans #actus .mv-carte__titre { -webkit-line-clamp: 2; margin: 6px 0 2px; }
.mv-ecrans #actus .mv-carte .mv-chips { margin: 0; }

/* cartes verticales : photo pleine largeur, hauteur = reste du bloc */
.mv-ecrans #actus .mv-carte { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto auto auto; align-content: stretch; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail { display: block; width: 100%; height: 100%; min-height: 0; margin: 0 0 8px; grid-row: 1; grid-column: 1; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail__background { display: block; width: 100%; height: 100%; }
.mv-ecrans #actus .mv-carte .lumx-thumbnail__image { display: block; width: 100%; height: 100%; }
.mv-ecrans #actus .mv-carte > :not(.lumx-thumbnail) { grid-column: 1; }

/* écrans bas : on garde photo + titre + date, on masque étiquette et réactions */
@media (max-height: 860px) {
  .mv-ecrans #actus .mv-carte .mv-chips,
  .mv-ecrans #actus .mv-carte .mv-social { display: none; }
  .mv-ecrans #actus .mv-carte .lumx-thumbnail { min-height: 64px; margin-bottom: 6px; }
  .mv-ecrans #actus .mv-carte__titre { font-size: 13px; margin: 0 0 2px; }
  .mv-ecrans #actus .mv-carte__meta { font-size: 12px; }
  .mv-ecrans #actus .mv-cartes { gap: 12px; }
  .mv-ecrans #actus #w-actus-site > .widget-header,
  .mv-ecrans #actus #w-actus-france > .widget-header { padding-bottom: 6px; }
}

@media (max-height: 860px) {
  .mv-ecrans #actus .mv-carte { grid-template-rows: minmax(56px, 1fr) auto auto auto auto; }
  .mv-ecrans #actus .mv-carte .lumx-thumbnail { min-height: 0; }
  .mv-ecrans #actus .mv-carte__titre { -webkit-line-clamp: 1; }
}

/* même hauteur d'image partout : le titre réserve toujours 2 lignes,
   donc la photo ne dépend plus de la longueur du titre */
.mv-ecrans #actus .mv-carte__titre { line-height: 1.3; height: calc(2 * 1.3em); }
@media (max-height: 860px) { .mv-ecrans #actus .mv-carte__titre { height: 1.3em; } }

/* logo seul : la zone garde sa largeur, la recherche reste au même endroit */
.header-top__logo { width: 196px; }
@media (max-width: 700px) { .header-top__logo { width: auto; } }

/* À la une : titre, étiquette, titre d'article et bouton sur le même axe (20 px, comme les autres widgets) */
#w-une > .widget-header { padding: 18px 20px; }
#w-une .mv-slide__texte { left: 20px; bottom: 20px; }
#w-une .mv-slider__nav { right: 20px; bottom: 20px; }

/* Rail : effet lumineux sur l'icône de la section affichée
   (anneau clair + éclat en haut à droite, en écho au symbole Veolia) */
.mv-rail__item[aria-current="true"] .mv-rail__puce { position: relative; overflow: visible;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--pal-bright) 85%, white) 0%, var(--pal-deep) 70%) !important;
  box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 0 0 4px color-mix(in srgb, var(--pal-bright) 55%, transparent),
              0 0 18px 4px color-mix(in srgb, var(--pal-bright) 55%, transparent) !important;
  animation: mv-halo 2.8s ease-in-out infinite; }
.mv-rail__item[aria-current="true"] .mv-rail__puce .material-symbols-rounded { text-shadow: 0 0 8px rgb(255 255 255 / .85); font-variation-settings: "FILL" 1; }
.mv-rail__item[aria-current="true"] .mv-rail__puce::before { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  background: white; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px color-mix(in srgb, var(--pal-bright) 80%, white)); animation: mv-eclat 2.8s ease-in-out infinite; }
@keyframes mv-halo { 50% { box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 0 0 5px color-mix(in srgb, var(--pal-bright) 35%, transparent), 0 0 26px 8px color-mix(in srgb, var(--pal-bright) 45%, transparent); } }
@keyframes mv-eclat { 50% { transform: scale(1.25) rotate(20deg); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .mv-rail__item[aria-current="true"] .mv-rail__puce, .mv-rail__item[aria-current="true"] .mv-rail__puce::before { animation: none; } }

/* Rail actif : fond #2c2c2c, pas de halo autour du carré, la lumière est sur l'icône seule */
.mv-rail__item[aria-current="true"] .mv-rail__puce {
  background: #2c2c2c !important; border-color: transparent !important;
  box-shadow: none !important; animation: none !important; }
.mv-rail__item[aria-current="true"] .mv-rail__puce::before { content: none !important; }
.mv-rail__item[aria-current="true"] .mv-rail__puce .material-symbols-rounded {
  color: #fff; font-variation-settings: "FILL" 1;
  text-shadow: 0 0 4px #fff, 0 0 10px rgb(255 255 255 / .75), 0 0 18px rgb(140 200 255 / .6);
  animation: mv-lueur 2.8s ease-in-out infinite; }
@keyframes mv-lueur { 50% { text-shadow: 0 0 3px #fff, 0 0 7px rgb(255 255 255 / .55), 0 0 12px rgb(140 200 255 / .4); } }
@media (prefers-reduced-motion: reduce) { .mv-rail__item[aria-current="true"] .mv-rail__puce .material-symbols-rounded { animation: none; } }

/* Rail actif : lumière adoucie + légère ombre portée sous le carré */
.mv-rail__item[aria-current="true"] .mv-rail__puce {
  box-shadow: 0 3px 8px rgb(0 0 0 / .22), 0 1px 2px rgb(0 0 0 / .18) !important; }
.mv-rail__item[aria-current="true"] .mv-rail__puce .material-symbols-rounded {
  text-shadow: 0 0 3px rgb(255 255 255 / .7), 0 0 8px rgb(140 200 255 / .35);
  animation: mv-lueur-douce 2.8s ease-in-out infinite; }
@keyframes mv-lueur-douce { 50% { text-shadow: 0 0 2px rgb(255 255 255 / .5), 0 0 5px rgb(140 200 255 / .22); } }
@media (prefers-reduced-motion: reduce) { .mv-rail__item[aria-current="true"] .mv-rail__puce .material-symbols-rounded { animation: none; } }

/* ── Conteneur max pour les très grands écrans ──
   Le fond reste plein écran ; l'en-tête, le rail et le contenu sont centrés dans 1920 px (rien ne change jusqu'au Full HD).
   En plein écran, la hauteur utile est plafonnée à 1100 px et centrée verticalement,
   pour éviter des blocs démesurés sur 2K/4K. Équivalent LumApps : largeur max du thème. */
:root { --mv-max: 1920px; --mv-max-h: 1100px; }
.header-top__wrapper { max-width: var(--mv-max); margin-inline: auto; box-sizing: border-box; }
.mv-cadre { max-width: var(--mv-max); margin-inline: auto; width: 100%; box-sizing: border-box; }
@media (min-height: 1240px) {
  html.mv-ecrans body { justify-content: center; }
  html.mv-ecrans .mv-cadre { flex: 0 1 var(--mv-max-h); max-height: var(--mv-max-h); }
}

/* Derniers posts : la liste défile dans le bloc (barre de défilement fine aux couleurs Veolia) */
#w-sujets > .widget-content { display: flex; flex-direction: column; min-height: 0; }
#w-sujets .mv-posts__liste { flex: 1 1 auto; min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding-right: 10px; margin-right: -6px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--pal-deep) 35%, transparent) transparent; }
#w-sujets .mv-posts__liste::-webkit-scrollbar { width: 6px; }
#w-sujets .mv-posts__liste::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--pal-deep) 35%, transparent); border-radius: 6px; }
#w-sujets .mv-posts__liste::-webkit-scrollbar-track { background: transparent; }
#w-sujets .mv-posts__liste:focus-visible { outline: 2px solid var(--pal-link); outline-offset: 2px; border-radius: 6px; }
#w-sujets .mv-posts__liste > li[data-masque-hauteur] { display: list-item !important; }
html:not(.mv-ecrans) #w-sujets .mv-posts__liste { max-height: 520px; }

/* barre toujours visible pour signaler qu'il y a une suite */
#w-sujets .mv-posts__liste { scrollbar-gutter: stable; }

/* Posts avec image (rendu natif du widget posts-list : image jointe sous le texte) */
.mv-post__image { display: block; margin: 8px 0 6px; max-width: 520px; border-radius: 10px; overflow: hidden; }
.mv-post__image .lumx-thumbnail__background { display: block; }
.mv-post__image .lumx-thumbnail__image { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }

/* Posts avec image : photo à gauche, texte à droite */
.mv-post--image { display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.mv-post--image .mv-post__image { grid-column: 1; grid-row: 1; margin: 2px 0 0; max-width: none; width: 168px; border-radius: 10px; }
.mv-post--image .mv-post__image .lumx-thumbnail__image { aspect-ratio: 4 / 3; }
.mv-post--image .mv-post__corps { grid-column: 2; grid-row: 1; min-width: 0; }
.mv-post--image .mv-post__texte { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (max-width: 700px) { .mv-post--image { grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; } .mv-post--image .mv-post__image { width: 96px; } }

/* Post illustré : auteur en haut (aligné comme les autres), puis photo à gauche / texte à droite */
.mv-post--image { display: block; }
.mv-post__media { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 18px; align-items: start; margin-top: 10px; }
.mv-post__media .mv-post__image { width: 200px; margin: 0; }
.mv-post__media .mv-post__image .lumx-thumbnail__image { aspect-ratio: 16 / 10; }
.mv-post__media .mv-post__corps { display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.mv-post__media .mv-post__texte { margin: 0; }
.mv-post__media .mv-social { margin-top: auto; }
@media (max-width: 700px) { .mv-post__media { grid-template-columns: 110px minmax(0, 1fr); column-gap: 12px; } .mv-post__media .mv-post__image { width: 110px; } }

/* ---- 2e couleur de la charte : le turquoise (--pal-accent, #05C3DD) ----------------
 * Toujours en APLAT ou en FILET, jamais en texte sur fond clair (contraste 1,9:1 insuffisant).
 * Texte pose dessus : marine --pal-deep (6,3:1, AA). */
/* trait turquoise devant les surtitres : retire a la demande de JM (01/10) */
.mv-slide__lien { background: var(--pal-accent); color: var(--pal-deep); }
.mv-slide__lien:hover { background: color-mix(in srgb, var(--pal-accent) 82%, white); }
#w-une .mv-slider__point[aria-current="true"], .mv-slider__point[aria-current="true"] { background: var(--pal-accent); }
.mv-app--tous .lumx-icon--has-shape { background: var(--pal-accent); color: var(--pal-deep); }
.mv-app--tous .mv-app__info .material-symbols-rounded { color: var(--pal-accent); }
.mv-photo__lien { border-bottom-color: var(--pal-accent); }
.mv-photo__lien .material-symbols-rounded, .mv-list-dark .mv-lien-fin .material-symbols-rounded { color: var(--pal-accent); }

/* ---- Mobile : slider « À la une » et météo sans superposition (01/10) ---- */
.mv-meteo > .widget-header .widget-header__title { text-shadow: 0 1px 6px rgb(0 30 70 / .45); }
@media (max-width: 600px) {
  #w-une .mv-slider { min-height: 400px; }
  #w-une .mv-slide__texte { left: 20px; right: 20px; bottom: 76px; max-width: none; }
  #w-une .mv-slide__titre { font-size: 21px; }
  #w-une .mv-slider__nav { left: 20px; right: 20px; bottom: 20px; justify-content: flex-end; }
  #w-une > .widget-header { padding: 16px 20px 28px; }
  .mv-meteo .mv-ciel__nuage { opacity: .55; }
  .mv-meteo > .widget-header .widget-header__title { text-shadow: 0 1px 8px rgb(0 30 70 / .6); }
  .mv-meteo .mv-meteo__temp { font-size: 64px; }
}

/* ---- Tous mes services : motif "lanceur" + anneau Veolia sur le fond bleu (01/10) ----
 * Motif defini dans palettes.css (--mv-motif-apps), seul fichier a contenir des couleurs. */
.mv-app--tous { position: relative; overflow: hidden; isolation: isolate; }
.mv-app--tous::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--mv-motif-apps) right top / auto 100% no-repeat; transition: transform .5s ease; }
.mv-app--tous::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(75deg, var(--pal-deep) 18%, color-mix(in srgb, var(--pal-deep) 60%, transparent) 48%, transparent 78%); }
.mv-app--tous:hover::before { transform: scale(1.04) translateX(-6px); }
@media (prefers-reduced-motion: reduce) { .mv-app--tous::before { transition: none; } .mv-app--tous:hover::before { transform: none; } }

/* ---- Posts illustres : photo a gauche, auteur + texte + reactions a droite (01/10) ---- */
.mv-post__media { margin-top: 0; align-items: stretch; }
.mv-post__media .mv-post__image .lumx-thumbnail__background,
.mv-post__media .mv-post__image .lumx-thumbnail__image { height: 100%; }
.mv-post__media .mv-post__image .lumx-thumbnail__image { aspect-ratio: 4 / 3; }
.mv-post__media .mv-post__corps { gap: 6px; }
.mv-post__media .mv-post__corps .lumx-user-block { margin-bottom: 2px; }
@media (max-width: 700px) { .mv-post__media .mv-post__corps .lumx-user-block__avatar { display: none; } .mv-post__media .lumx-user-block__fields { line-height: 1.35; } }

/* ---- Widget stock natif (panel-widget-stock) : cours de l'action Veolia (02/10) ----
 * Rendu sobre du widget LumApps : symbole, nom, cours, variation. Aucun graphique. */
.mv-stock > .widget-content { display: flex; flex-direction: column; justify-content: center; }
.mv-stock__corps { text-align: center; padding: 4px 0 6px; }
.mv-stock__corps p { margin: 0; }
.mv-stock__symbole { font-size: clamp(26px, 2.2vw, 34px); font-weight: 800; letter-spacing: .02em; color: var(--pal-deep); line-height: 1.05; }
.mv-stock__nom { margin-top: 4px !important; font-size: 13.5px; color: var(--mv-gris); }
.mv-stock__cours { margin-top: 12px !important; font-size: clamp(30px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.01em; color: var(--mv-encre); line-height: 1; font-variant-numeric: tabular-nums; }
.mv-stock__var { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px !important; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mv-stock__var .material-symbols-rounded { font-size: 20px; }
.mv-stock__var--baisse { color: #C8102E; }
.mv-stock__var--hausse { color: #2E7D32; }
.mv-stock__source { margin: 6px 0 0; text-align: center; font-size: 11.5px; color: var(--mv-gris); }
.mv-ecrans .mv-stock[data-serre] .mv-stock__nom, .mv-ecrans .mv-stock[data-serre] .mv-stock__source { display: none; }
.lumx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (min-width: 1201px) { #actus #w-actus-france { grid-column: 1 / span 2; grid-row: 2; } #actus #w-stock { grid-column: 3; grid-row: 2; } }
/* ---- Veolia en bourse : bloc colore turquoise (2e couleur de la charte), texte marine (6,4:1) ---- */
.mv-stock { background: var(--pal-accent); border-color: transparent; }
.mv-stock > .widget-header .widget-header__title,
.mv-stock .mv-stock__symbole, .mv-stock .mv-stock__nom, .mv-stock .mv-stock__cours, .mv-stock .mv-stock__source { color: var(--pal-deep); }
.mv-stock .mv-stock__nom, .mv-stock .mv-stock__source { opacity: .85; }
.mv-stock .mv-stock__var { padding: 3px 10px; border-radius: 999px; background: var(--pal-deep); color: #fff; }
.mv-stock .mv-stock__var--baisse .material-symbols-rounded { color: #FF8A8A; }
.mv-stock .mv-stock__var--hausse .material-symbols-rounded { color: #8FE3A0; }
