/**
 * Home composée — habillage front porté de la maquette Claude Design
 * « V1 — Éditorial (Hero brand) » (_docs/maquettes/home-v1-editorial.html).
 * Tout est préfixé mh- et scopé sous #mh-home pour ne rien heurter du thème.
 * Les cards produit (.pcard) restent 100 % au thème — seule la grille est ici.
 * Chargé UNIQUEMENT sur la home (actionFrontControllerSetMedia).
 */
#mh-home{
  --mh-green:var(--c-green); --mh-green-text:#4F7530; --mh-green-dark:var(--c-green-dark); --mh-green-light:#C5D199;
  --mh-green-pale:#eef2dc; --mh-cream:#FAF8F4; --mh-cream-warm:#f3eddf;
  --mh-text:#2A2A2A; --mh-muted:#6b6a64; --mh-soft:#908e87;
  --mh-red:#C24A3A; --mh-line:#e8e3d6; --mh-line-soft:#efece3;
  --mh-sans:'Poppins',system-ui,-apple-system,"Segoe UI",sans-serif;
  --mh-display:'Fraunces','Poppins',Georgia,serif;
  --mh-r-sm:6px; --mh-r-md:12px; --mh-r-lg:20px; --mh-r-xl:28px;
  --mh-shadow-sm:0 1px 2px rgba(42,42,42,.04),0 2px 8px rgba(42,42,42,.04);
  --mh-shadow-md:0 4px 12px rgba(42,42,42,.06),0 12px 28px rgba(42,42,42,.06);
  /* conteneur maquette (--max-w / --pad-x) : la home du thème n'encadre pas,
     le module fournit son propre cadre 1700px — aligné header/footer/PDP */
  --mh-pad-x:clamp(20px,4vw,64px);
  /* width:100% (v0.10.3) : #mh-home suit EXACTEMENT sa colonne — avec
     margin:auto seul, un grid item se dimensionne « fit-content » et suivait
     la largeur de son contenu (mesures iframe : 650px sur 391 de viewport) */
  width:100%; max-width:1700px; margin-inline:auto; padding-inline:var(--mh-pad-x);
  margin-bottom:64px;
  /* FIX RACINE v0.10.3 (mesures iframe) : #mh-home est un GRID ITEM de
     #content → min-width:auto le laissait s'élargir à la min-content de
     n'importe quel contenu (rangée dynamique 610px) → toute la home
     débordait. min-width:0 = il ne dépasse JAMAIS sa colonne. */
  min-width:0;
  overflow-x:clip; /* garde-fou v0.10.1 : un enfant trop large ne crée plus
                      d'ascenseur horizontal global (constat Léonard 412px) */
  font-family:var(--mh-sans); color:var(--mh-text);
}
#mh-home a{text-decoration:none;}
#mh-home h1,#mh-home h2,#mh-home h3{color:var(--mh-text);}

/* ── primitives partagées ── */
#mh-home .mh-eyebrow{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--mh-green-text);}
#mh-home .mh-btn{display:inline-flex;align-items:center;gap:10px;padding:14px 26px;border-radius:999px;font-weight:600;font-size:14px;letter-spacing:.04em;border:1px solid transparent;transition:transform .15s,background .2s,color .2s,border-color .2s;}
#mh-home .mh-btn:active{transform:translateY(1px);}
#mh-home .mh-btn svg{stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
#mh-home .mh-btn--primary{background:var(--mh-green-text);color:#fff;}
#mh-home .mh-btn--primary:hover{background:var(--mh-green-dark);color:#fff;}
#mh-home .mh-btn--outline{background:transparent;border-color:var(--mh-text);color:var(--mh-text);}
#mh-home .mh-btn--outline:hover{background:var(--mh-text);color:#fff;}
#mh-home .mh-btn--outline-green{background:transparent;border-color:var(--mh-green);color:var(--mh-green-text);}
#mh-home .mh-btn--outline-green:hover{background:var(--mh-green-text);color:#fff;}
#mh-home .mh-btn--lg{padding:18px 32px;font-size:15px;}

/* icônes du sprite : trait fin arrondi (bloc icônes maquette) */
#mh-home svg use{stroke:inherit;}
#mh-home .mh-pillar__icon svg,#mh-home .mh-section__link svg{stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* ── HERO (maquette .v1-hero-brand) ── */
#mh-home .mh-hero{margin-top:28px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:center;position:relative;padding:clamp(24px,4vw,56px) 0 clamp(36px,5vw,64px);}
#mh-home .mh-hero__text .mh-eyebrow{display:inline-block;margin-bottom:18px;}
#mh-home .mh-hero__text h1{font-family:var(--mh-display);font-weight:500;font-size:clamp(40px,5.6vw,78px);line-height:.98;letter-spacing:-.02em;margin:0 0 22px;text-wrap:balance;}
#mh-home .mh-hero__text h1 em{font-style:italic;color:var(--mh-green);font-weight:500;}
#mh-home .mh-hero__text p{font-size:17px;color:var(--mh-muted);max-width:50ch;margin:0 0 32px;}
#mh-home .mh-hero__cta{display:flex;gap:14px;flex-wrap:wrap;}
#mh-home .mh-hero__stats{display:flex;gap:28px;margin-top:36px;padding-top:28px;border-top:1px solid rgba(42,42,42,.08);}
#mh-home .mh-stat strong{font-family:var(--mh-display);display:block;font-size:28px;font-weight:600;color:var(--mh-green-text);line-height:1;} /* LOT 5 a11y : 22px mobile <24 -> vert TEXTE (marque 4,02 KO sous 24px ; 4F7530 = 5,36) */
#mh-home .mh-stat span{font-size:12px;color:var(--mh-muted);text-transform:uppercase;letter-spacing:.08em;margin-top:4px;display:inline-block;}
#mh-home .mh-hero__stage{position:relative;aspect-ratio:1/1;min-height:420px;margin:6%;}
#mh-home .mh-hero__main{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:var(--mh-r-xl);}
#mh-home .mh-hero__tile{position:absolute;width:38%;aspect-ratio:1/1;border-radius:var(--mh-r-lg);overflow:hidden;box-shadow:var(--mh-shadow-md);}
#mh-home .mh-hero__tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
#mh-home .mh-hero__tile--tl{top:-6%;left:-6%;}
#mh-home .mh-hero__tile--br{bottom:-6%;right:-6%;}
#mh-home .mh-hero__badge{position:absolute;top:14px;right:14px;display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.95);color:var(--mh-text);padding:10px 14px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;box-shadow:var(--mh-shadow-sm);z-index:3;}
@media (max-width:991px){
  #mh-home .mh-hero{grid-template-columns:minmax(0,1fr);}
  #mh-home .mh-hero__stage{aspect-ratio:4/3;min-height:320px;margin:0;}
  #mh-home .mh-hero__stats{gap:22px;}
  /* mobile-first v0.10.0 : les tuiles flottantes reviennent DANS le cadre
     (les positions négatives sortaient de l'écran → scroll horizontal) */
  #mh-home .mh-hero__tile--tl{top:10px;left:10px;}
  #mh-home .mh-hero__tile--br{bottom:10px;right:10px;}
  /* v0.10.1 : réduites (38% se chevauchaient en tablette, capture Léonard) */
  #mh-home .mh-hero__tile{width:24%;}
}
@media (max-width:640px){
  #mh-home .mh-hero{margin-top:12px;padding-top:12px;}
  #mh-home .mh-hero__stage{min-height:240px;}
  #mh-home .mh-hero__tile{width:34%;}
  #mh-home .mh-hero__stats{flex-wrap:wrap;row-gap:14px;}
  #mh-home .mh-section{margin-top:44px;}
  #mh-home .mh-dyn-wrap,#mh-home .mh-coup,#mh-home .mh-story,#mh-home .mh-band,#mh-home .mh-promos{margin-top:44px;}
}

/* ── en-tête de SECTION (maquette .section) ── */
#mh-home .mh-section{margin-top:64px;}
#mh-home .mh-section__head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:36px;flex-wrap:wrap;}
#mh-home .mh-section__title{font-family:var(--mh-display);font-weight:500;font-size:clamp(28px,3.4vw,44px);line-height:1.1;letter-spacing:-.01em;margin:0;}
#mh-home .mh-section__title em{font-style:italic;color:var(--mh-green);font-weight:500;}
#mh-home .mh-section__sub{color:var(--mh-muted);margin:12px 0 0;max-width:64ch;}
#mh-home .mh-section__link{font-size:14px;font-weight:600;color:var(--mh-green-text);display:inline-flex;align-items:center;gap:6px;}
#mh-home .mh-section__link:hover{color:var(--mh-green-dark);}

/* ── grille PRODUITS (maquette .products-2x5 — cards .pcard du thème) ── */
#mh-home .mh-products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;}
#mh-home .mh-products--4{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:1199px){#mh-home .mh-products,#mh-home .mh-products--4{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (max-width:900px){#mh-home .mh-products,#mh-home .mh-products--4{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:640px){#mh-home .mh-products,#mh-home .mh-products--4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}}

/* ── BANDE éditoriale « Made in Switzerland » (maquette .swiss-band) ── */
/* full-bleed : la bande sort du cadre 1700px (marges négatives 50vw), son
   contenu revient dans le conteneur via __inner */
#mh-home .mh-band{margin-top:64px;margin-inline:calc(var(--mh-pad-x) * -1);background:linear-gradient(180deg,#fff 0%,var(--mh-cream) 100%);border-top:1px solid var(--mh-line-soft);border-bottom:1px solid var(--mh-line-soft);position:relative;overflow:hidden;}
#mh-home .mh-band__inner{max-width:1700px;margin:0 auto;padding:clamp(36px,5vw,56px) var(--mh-pad-x);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(24px,4vw,56px);position:relative;z-index:2;}
#mh-home .mh-band__stamp{display:inline-flex;flex-direction:column;align-items:center;gap:8px;padding:20px 24px;background:var(--mh-red);color:#fff;border-radius:var(--mh-r-md);box-shadow:var(--mh-shadow-md);transform:rotate(-4deg);flex:0 0 auto;}
#mh-home .mh-band__flag{width:48px;height:32px;background:#d52b1e;border:2px solid #fff;border-radius:2px;position:relative;display:block;}
#mh-home .mh-band__flag::before,#mh-home .mh-band__flag::after{content:"";position:absolute;background:#fff;}
#mh-home .mh-band__flag::before{top:50%;left:22%;right:22%;height:4px;transform:translateY(-50%);}
#mh-home .mh-band__flag::after{top:22%;bottom:22%;left:50%;width:4px;transform:translateX(-50%);}
#mh-home .mh-band__lbl{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;}
#mh-home .mh-band__text h3{font-family:var(--mh-display);font-weight:500;font-size:clamp(26px,3.4vw,40px);line-height:1.1;margin:0 0 8px;max-width:22ch;}
#mh-home .mh-band__text h3 em{font-style:italic;color:var(--mh-green);font-weight:500;}
#mh-home .mh-band__text p{color:var(--mh-muted);margin:0;max-width:52ch;font-size:15px;}
#mh-home .mh-band__cta{flex:0 0 auto;}
@media (max-width:991px){
  #mh-home .mh-band__inner{grid-template-columns:minmax(0,1fr);text-align:center;justify-items:center;}
  #mh-home .mh-band__stamp{transform:rotate(-3deg);}
  #mh-home .mh-band__text h3{margin-inline:auto;}
}

/* ── STORY engagement (maquette .v1-story) ── */
#mh-home .mh-story{margin-top:64px;background:var(--mh-cream-warm);border-radius:var(--mh-r-xl);padding:clamp(40px,5vw,64px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(24px,5vw,56px);align-items:center;}
#mh-home .mh-story__img{aspect-ratio:4/3;width:100%;object-fit:cover;border-radius:var(--mh-r-lg);}
#mh-home .mh-story h2{font-family:var(--mh-display);font-weight:500;font-size:clamp(28px,3.5vw,44px);line-height:1.1;margin:12px 0 18px;}
#mh-home .mh-story h2 em{font-style:italic;color:var(--mh-green);font-weight:500;}
#mh-home .mh-story p{color:var(--mh-muted);font-size:16px;margin:0 0 28px;max-width:52ch;}
#mh-home .mh-story__pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:32px;}
#mh-home .mh-pillar{display:flex;flex-direction:column;gap:8px;}
#mh-home .mh-pillar__icon{width:38px;height:38px;border-radius:50%;background:#fff;color:var(--mh-green);display:grid;place-items:center;}
#mh-home .mh-pillar strong{font-size:14px;font-weight:700;color:var(--mh-text);}
#mh-home .mh-pillar span:not(.mh-pillar__icon){font-size:13px;color:var(--mh-muted);}
@media (max-width:991px){#mh-home .mh-story{grid-template-columns:minmax(0,1fr);}}


/* ── CARTES PROMO (maquette .v2-promos) ── */
#mh-home .mh-promos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:64px;}
#mh-home .mh-promos--2{grid-template-columns:repeat(2,minmax(0,1fr));}
#mh-home .mh-promos--4{grid-template-columns:repeat(4,minmax(0,1fr));}
#mh-home .mh-promo{position:relative;border-radius:var(--mh-r-lg);padding:28px;min-height:200px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;}
#mh-home .mh-promo--a{background:linear-gradient(135deg,#C5D199 0%,#a4b76b 100%);color:#2c3520;}
#mh-home .mh-promo--b{background:linear-gradient(135deg,var(--mh-cream-warm) 0%,#e3d9c0 100%);color:var(--mh-text);}
#mh-home .mh-promo--c{background:linear-gradient(135deg,#2c3520 0%,#455c2e 100%);color:#fff;}
#mh-home .mh-promo--c h3{color:#fff;}
#mh-home .mh-promo--c .mh-promo__tag{color:var(--mh-green-light);opacity:1;}
#mh-home .mh-promo--img{background-size:cover;background-position:center;}
#mh-home .mh-promo--img::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,24,12,.15),rgba(20,24,12,.55));}
#mh-home .mh-promo--img > *{position:relative;z-index:1;}
#mh-home .mh-promo--img,#mh-home .mh-promo--img h3{color:#fff;}
#mh-home .mh-promo__tag{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.7;}
#mh-home .mh-promo h3{font-family:var(--mh-display);font-weight:500;font-size:26px;margin:4px 0 0;line-height:1.1;max-width:14ch;}
#mh-home .mh-promo h3 em{font-style:italic;}
#mh-home .mh-promo__num{font-family:var(--mh-display);font-size:56px;font-weight:600;line-height:1;align-self:flex-end;opacity:.9;}
#mh-home .mh-promo__cta{align-self:flex-start;padding:10px 20px;font-size:13px;}
#mh-home .mh-promo--a .mh-promo__cta,#mh-home .mh-promo--b .mh-promo__cta{background:transparent;border-color:currentColor;color:inherit;}
#mh-home .mh-promo--a .mh-promo__cta:hover,#mh-home .mh-promo--b .mh-promo__cta:hover{background:rgba(42,42,42,.85);border-color:transparent;color:#fff;}
#mh-home .mh-promo--c .mh-promo__cta,#mh-home .mh-promo--img .mh-promo__cta{background:#fff;color:var(--mh-text);}
#mh-home .mh-promo--c .mh-promo__cta:hover,#mh-home .mh-promo--img .mh-promo__cta:hover{background:var(--mh-green-pale);}
#mh-home .mh-promo__cover{position:absolute;inset:0;z-index:2;}
@media (max-width:991px){#mh-home .mh-promos,#mh-home .mh-promos--2,#mh-home .mh-promos--4{grid-template-columns:minmax(0,1fr);}}

/* ── v0.3.0 : bandeau APERÇU (modèle non public, lien admin tokenisé) ── */
#mh-home .mh-preview-bar{position:sticky;top:0;z-index:50;margin:12px calc(var(--mh-pad-x) * -1) 0;padding:10px 18px;text-align:center;background:#2c3520;color:#fff;font:600 13px var(--mh-sans);letter-spacing:.04em;}
#mh-home .mh-preview-bar a{color:var(--mh-green-light);text-decoration:underline;}

/* ── v0.3.0 : EFFETS de mise en valeur (opt-in par bloc, classe mh-fx-*) ──
   Tout mouvement est sous .mh-js (posé par home.js, qui s'abstient si
   prefers-reduced-motion) → sans JS ou en motion réduit : rendu statique. */

/* Balayage lumineux (repris de l'esprit tuiles) : bande de lumière qui
   traverse les VISUELS du bloc toutes les ~7 s */
#mh-home .mh-fx-sweep .mh-hero__stage,
#mh-home .mh-fx-sweep .mh-promo,
#mh-home .mh-fx-sweep .mh-story__img,
#mh-home .mh-fx-sweep .mh-band__stamp{position:relative;overflow:hidden;}
#mh-home .mh-fx-sweep .mh-story__img{display:block;}
#mh-home.mh-js .mh-fx-sweep .mh-hero__stage::after,
#mh-home.mh-js .mh-fx-sweep .mh-promo::after,
#mh-home.mh-js .mh-fx-sweep .mh-band__stamp::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.28) 50%,transparent 60%);
  background-size:280% 100%;background-position:120% 0;background-repeat:no-repeat;
  animation:mhSweep 7s ease-in-out infinite;
}
@keyframes mhSweep{
  0%{background-position:120% 0;}
  18%{background-position:-60% 0;}
  100%{background-position:-60% 0;}
}

/* Fondu à l'apparition (IntersectionObserver ajoute .mh-in) */
#mh-home.mh-js .mh-fx-fade{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease;}
#mh-home.mh-js .mh-fx-fade.mh-in{opacity:1;transform:none;}

/* Parallaxe (hero) : la maquette prévoyait --p-y — multipliers d'origine */
#mh-home.mh-js .mh-fx-parallax .mh-hero__main{transform:translateY(var(--p-y,0px));transition:transform .1s linear;}
#mh-home.mh-js .mh-fx-parallax .mh-hero__tile--tl{transform:translateY(calc(var(--p-y,0px) * -0.6));transition:transform .1s linear;}
#mh-home.mh-js .mh-fx-parallax .mh-hero__tile--br{transform:translateY(calc(var(--p-y,0px) * 0.4));transition:transform .1s linear;}
#mh-home.mh-js .mh-fx-parallax .mh-story__img{transform:translateY(calc(var(--p-y,0px) * 0.5));transition:transform .1s linear;}

@media (prefers-reduced-motion: reduce){
  #mh-home .mh-fx-fade{opacity:1 !important;transform:none !important;}
  #mh-home [class*="mh-fx-"] *::after{animation:none !important;}
}

/* v0.4.0 : stage hero sans grande image (tuiles seules) — fond crème doux */
#mh-home .mh-hero__stage--empty{background:radial-gradient(circle at 35% 30%,var(--mh-green-pale),var(--mh-cream) 70%);border-radius:var(--mh-r-xl);}

/* ═══ V2 (v0.7.0) — marques, univers, blog, newsletter (portés maquette) ═══ */

/* MARQUE EN VEDETTE (maquette .v1-coup) */
#mh-home .mh-coup{margin-top:64px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(28px,4vw,56px);align-items:center;background:var(--mh-cream-warm);border-radius:var(--mh-r-xl);padding:clamp(28px,4vw,48px);position:relative;overflow:hidden;}
#mh-home .mh-coup__stage{position:relative;aspect-ratio:5/4;}
#mh-home .mh-coup__stage img,#mh-home .mh-coup__ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:var(--mh-r-lg);}
#mh-home .mh-coup__ph{background:radial-gradient(circle at 35% 30%,#fff,var(--mh-cream) 70%);}
#mh-home .mh-coup__ribbon{position:absolute;top:16px;left:16px;background:var(--mh-red);color:#fff;padding:8px 14px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;box-shadow:var(--mh-shadow-sm);}
#mh-home .mh-coup__text h2{font-family:var(--mh-display);font-weight:500;font-size:clamp(28px,3.4vw,44px);line-height:1.05;margin:12px 0 14px;}
#mh-home .mh-coup__text h2 em{font-style:italic;color:var(--mh-green);font-weight:500;}
#mh-home .mh-coup__text p{color:var(--mh-muted);margin:0 0 22px;max-width:44ch;}
@media (max-width:800px){#mh-home .mh-coup{grid-template-columns:minmax(0,1fr);}}

/* MARQUES À DÉCOUVRIR (maquette .featured-brands) */
#mh-home .mh-brands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
#mh-home .mh-brands--2{grid-template-columns:repeat(2,minmax(0,1fr));}
#mh-home .mh-brands--4{grid-template-columns:repeat(4,minmax(0,1fr));}
#mh-home .mh-brand{background:#fff;border:1px solid var(--mh-line-soft);border-radius:var(--mh-r-lg);overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s;display:flex;flex-direction:column;}
#mh-home .mh-brand:hover{transform:translateY(-4px);box-shadow:var(--mh-shadow-md);border-color:transparent;}
#mh-home .mh-brand__img{aspect-ratio:16/10;display:block;background:var(--mh-cream);overflow:hidden;}
#mh-home .mh-brand__img img{width:100%;height:100%;object-fit:cover;display:block;}
#mh-home .mh-brand__body{padding:24px 26px 28px;display:block;}
#mh-home .mh-brand h3{font-family:var(--mh-display);font-weight:500;font-size:24px;margin:0 0 6px;line-height:1.15;color:var(--mh-text);}
#mh-home .mh-brand p{color:var(--mh-muted);font-size:14px;margin:0 0 14px;}
#mh-home .mh-brand__link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--mh-green-text);letter-spacing:.04em;}
#mh-home .mh-brand__link svg{stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
#mh-home .mh-brand:hover .mh-brand__link{color:var(--mh-green-dark);}
@media (max-width:1024px){#mh-home .mh-brands,#mh-home .mh-brands--2,#mh-home .mh-brands--4{grid-template-columns:minmax(0,1fr);}}

/* Drapeaux CSS (maquette .flag-*) — étendus à 8 pays */
#mh-home .mh-flag{width:18px;height:12px;display:inline-block;border-radius:2px;overflow:hidden;vertical-align:middle;margin-bottom:10px;box-shadow:0 0 0 1px rgba(42,42,42,.08);}
#mh-home .mh-flag--ch{background:#d52b1e;position:relative;}
#mh-home .mh-flag--ch::before,#mh-home .mh-flag--ch::after{content:"";position:absolute;background:#fff;}
#mh-home .mh-flag--ch::before{top:50%;left:25%;right:25%;height:2px;transform:translateY(-50%);}
#mh-home .mh-flag--ch::after{top:25%;bottom:25%;left:50%;width:2px;transform:translateX(-50%);}
#mh-home .mh-flag--fr{background:linear-gradient(to right,#002395 33%,#fff 33% 66%,#ed2939 66%);}
#mh-home .mh-flag--it{background:linear-gradient(to right,#159a54 33%,#fff 33% 66%,#cf2734 66%);}
#mh-home .mh-flag--be{background:linear-gradient(to right,#111 33%,#fae042 33% 66%,#ed2939 66%);}
#mh-home .mh-flag--de{background:linear-gradient(to bottom,#111 33%,#dd0000 33% 66%,#ffce00 66%);}
#mh-home .mh-flag--at{background:linear-gradient(to bottom,#ed2939 33%,#fff 33% 66%,#ed2939 66%);}
#mh-home .mh-flag--nl{background:linear-gradient(to bottom,#ae1c28 33%,#fff 33% 66%,#21468b 66%);}
#mh-home .mh-flag--es{background:linear-gradient(to bottom,#aa151b 25%,#f1bf00 25% 75%,#aa151b 75%);}

/* UNIVERS (maquette .universes / .universe-card) */
#mh-home .mh-universes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;}
#mh-home .mh-universes--7,#mh-home .mh-universes--8{grid-template-columns:repeat(7,minmax(0,1fr));}
#mh-home .mh-universe{background:var(--mh-cream);border-radius:var(--mh-r-lg);padding:14px 14px 18px;text-align:center;transition:transform .2s,background .2s;border:1px solid transparent;display:block;}
#mh-home .mh-universe:hover{transform:translateY(-4px);background:var(--mh-green-pale);border-color:rgba(94,139,58,.15);}
#mh-home .mh-universe__img{display:block;aspect-ratio:1/1;border-radius:var(--mh-r-md);margin-bottom:12px;background:#fff;overflow:hidden;}
#mh-home .mh-universe__img img{width:100%;height:100%;object-fit:cover;display:block;}
#mh-home .mh-universe__name{font-weight:600;font-size:14px;color:var(--mh-text);display:block;}
#mh-home .mh-universe__count{font-size:12px;color:var(--mh-muted);margin-top:2px;display:block;}
@media (max-width:1199px){#mh-home .mh-universes,#mh-home .mh-universes--7,#mh-home .mh-universes--8{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:640px){#mh-home .mh-universes,#mh-home .mh-universes--7,#mh-home .mh-universes--8{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* BLOG (maquette .blog-card) */
#mh-home .mh-blog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
#mh-home .mh-blog--2{grid-template-columns:repeat(2,minmax(0,1fr));}
#mh-home .mh-blog--4,#mh-home .mh-blog--5,#mh-home .mh-blog--6{grid-template-columns:repeat(3,minmax(0,1fr));}
#mh-home .mh-blog-card{background:#fff;border:1px solid var(--mh-line-soft);border-radius:var(--mh-r-lg);overflow:hidden;transition:transform .2s,box-shadow .2s;display:block;}
#mh-home .mh-blog-card:hover{transform:translateY(-4px);box-shadow:var(--mh-shadow-md);}
#mh-home .mh-blog-card__img{display:block;aspect-ratio:5/3;background:var(--mh-cream);overflow:hidden;}
#mh-home .mh-blog-card__img img{width:100%;height:100%;object-fit:cover;display:block;}
#mh-home .mh-blog-card__body{display:block;padding:22px;}
#mh-home .mh-blog-card__meta{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mh-green-text);font-weight:600;}
#mh-home .mh-blog-card h3{font-family:var(--mh-display);font-weight:500;font-size:22px;margin:10px 0 6px;line-height:1.2;color:var(--mh-text);}
#mh-home .mh-blog-card p{font-size:14px;color:var(--mh-muted);margin:0;}
@media (max-width:1024px){#mh-home .mh-blog,#mh-home .mh-blog--2,#mh-home .mh-blog--4,#mh-home .mh-blog--5,#mh-home .mh-blog--6{grid-template-columns:minmax(0,1fr);}}

/* NEWSLETTER (maquette .newsletter) */
#mh-home .mh-newsletter{margin-top:56px;background:var(--mh-green-pale);border-radius:var(--mh-r-xl);padding:clamp(36px,5vw,56px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:center;position:relative;overflow:hidden;}
#mh-home .mh-newsletter h3{font-family:var(--mh-display);font-weight:500;font-size:clamp(26px,3vw,36px);line-height:1.1;margin:0 0 10px;}
#mh-home .mh-newsletter h3 em{font-style:italic;color:var(--mh-green);font-weight:500;}
#mh-home .mh-newsletter p{color:var(--mh-muted);margin:0;}
#mh-home .mh-newsletter form{display:flex;gap:0;max-width:480px;margin-left:auto;width:100%;}
#mh-home .mh-newsletter input[type="email"]{flex:1;height:52px;padding:0 22px;border:1px solid var(--mh-line);background:#fff;border-radius:999px 0 0 999px;font:400 15px var(--mh-sans);outline:none;min-width:0;}
#mh-home .mh-newsletter input[type="email"]:focus{border-color:var(--mh-green);}
#mh-home .mh-newsletter button{border:0;background:var(--mh-green-text);color:#fff;padding:0 28px;height:52px;border-radius:0 999px 999px 0;font:600 13px var(--mh-sans);letter-spacing:.1em;text-transform:uppercase;cursor:pointer;}
#mh-home .mh-newsletter button:hover{background:var(--mh-green-dark);}
@media (max-width:800px){#mh-home .mh-newsletter{grid-template-columns:minmax(0,1fr);}#mh-home .mh-newsletter form{margin-left:0;}}

/* effets sweep : les nouveaux visuels y participent */
#mh-home .mh-fx-sweep .mh-coup__stage,
#mh-home .mh-fx-sweep .mh-brand__img,
#mh-home .mh-fx-sweep .mh-universe__img,
#mh-home .mh-fx-sweep .mh-blog-card__img{position:relative;overflow:hidden;}
#mh-home.mh-js .mh-fx-sweep .mh-coup__stage::after,
#mh-home.mh-js .mh-fx-sweep .mh-brand__img::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.28) 50%,transparent 60%);
  background-size:280% 100%;background-position:120% 0;background-repeat:no-repeat;
  animation:mhSweep 7s ease-in-out infinite;
}

/* ═══ v0.8.0/0.9.0 : bloc CONTENU DYNAMIQUE — RANGÉE de 1-5 cases (pont Tuiles,
   look V1 à affiner). Chaque case a la largeur de sa forme ; les bandes
   prennent toute la ligne. ═══ */
#mh-home .mh-dyn-wrap{margin-top:64px;}
#mh-home .mh-dyn-row{display:flex;flex-wrap:wrap;gap:18px;align-items:stretch;}
#mh-home .mh-dyn-row--center{justify-content:center;}
#mh-home .mh-dyn-row--left{justify-content:flex-start;}
#mh-home .mh-dyn-cell{display:flex;flex-direction:column;min-width:0;}
#mh-home .mh-dyn-cell > *{flex:1;}
/* v0.11.0 : 3 FORMATS RÉELS pilotés PAR APPAREIL (roadmap §12.9, règles auto par
   forme — un seul HTML, cache JPresta intact) :
   · one   = Carte 1×1 — petite tuile, plusieurs par ligne
   · w2    = 2×1 Produit vedette — grande tuile (product-vedette.tpl)
   · band  = Bannière — pleine largeur partout
   Desktop (>1024) : la 1×1 reste compacte, le 2×1 coule dans la rangée. */
#mh-home .mh-dyn-cell--one{flex:0 1 300px;max-width:340px;}
#mh-home .mh-dyn-cell--w2{flex:1 1 480px;max-width:760px;}
#mh-home .mh-dyn-cell--band{flex:1 1 100%;max-width:none;}

/* Tablette (641–1024) : le 2×1 vedette = EXACTEMENT 2 grandes tuiles côte à côte
   (retour Léonard — sans ça une seule tuile par ligne, gâchis de largeur). */
@media (min-width:641px) and (max-width:1024px){
  #mh-home .mh-dyn-cell--w2{flex:0 1 calc(50% - 9px);max-width:none;}
}

/* Mobile (≤640) : tout passe à 1 par ligne. */
@media (max-width:640px){#mh-home .mh-dyn-cell{flex:1 1 100% !important;max-width:none;}}

/* ═══ v0.11.3 : passe LOOK de la rangée — calage vertical des petites cases ═══
   Une 1×1 (œuf, avis, blog…) côtoyant une grande 2×1/bannière s'étirait à la
   hauteur de la grande → boîte quasi vide (« l'œuf mal posé »). On garde sa
   HAUTEUR NATURELLE, centrée verticalement, seulement dans ce cas mixte :
   - rangée homogène 1×1 → INCHANGÉ (cartes de même hauteur, alignées) ;
   - l'œuf (jeu) est toujours compact où qu'il soit.
   :has() dégrade proprement (repli = étirement d'avant) si non supporté. */
#mh-home .mh-dyn-row:has(.mh-dyn-cell--w2, .mh-dyn-cell--band) .mh-dyn-cell--one{align-self:center;}
#mh-home .mh-dyn-cell:has(.tile-egg){align-self:center;}
/* la tuile ne remplit alors plus une hauteur imposée → elle prend sa hauteur propre */
#mh-home .mh-dyn-cell--one:has(.tile-egg) > *{flex:0 0 auto;}

/* ═══ v0.10.0 : VISIBILITÉ PAR APPAREIL (mobile-first — cases « Visible sur »
   des blocs). Piloté en CSS : un seul HTML → cache JPresta intact. ═══ */
@media (min-width:1025px){#mh-home .mh-hide-desktop{display:none !important;}}
@media (min-width:641px) and (max-width:1024px){#mh-home .mh-hide-tablet{display:none !important;}}
@media (max-width:640px){#mh-home .mh-hide-mobile{display:none !important;}}

/* ═══ v0.10.1 : LIGNES PLEINES (retour Léonard : « une 3e ligne avec un seul
   produit ») — on masque les orphelins de fin de grille selon les colonnes
   du palier. Le « Nombre de produits » du bloc reste le maximum (desktop). ═══ */
@media (min-width:901px) and (max-width:1199px){
  /* 4 colonnes → 8 produits max (2 lignes pleines) */
  #mh-home .mh-products > :nth-child(n+9){display:none;}
}
@media (min-width:641px) and (max-width:900px){
  /* 3 colonnes → 6 produits max */
  #mh-home .mh-products > :nth-child(n+7){display:none;}
}
@media (max-width:640px){
  /* 2 colonnes → 6 produits max (3 lignes pleines) */
  #mh-home .mh-products > :nth-child(n+7){display:none;}
}

/* v0.10.1b : filet de sécurité images (aucune image du module ne peut forcer
   une largeur supérieure à sa case) */
#mh-home img{max-width:100%;height:auto;}

/* ═══ v0.10.2 : GARDE-FOU PAGE (diagnostic mh_debug de Léonard, 7 juil.) ═══
   Le débordement mobile ne venait PAS de la home : le tiroir mobile du MENU
   ETS (ul.mm_menus_ul, 651px sur 400px de viewport) élargit la page → scroll
   horizontal global. home.css n'étant chargé QUE sur la home, ce clip ne
   s'applique qu'ici (le fix global du menu appartient au thème/futur module
   menu). clip (pas hidden) : ne casse pas position:sticky. */
body{overflow-x:clip;}

/* ═══ v0.10.5/0.10.6 : PASSE MOBILE + TABLETTE (retours Léonard) — les
   traitements validés sur mobile montent en ≤1024 (images trop grandes en
   tablette aussi) ; le design repensé du collage = brief Claude Design ═══ */
@media (max-width:1024px){
  /* HERO : image principale SEULE + « filigrane » (les tuiles empilées =
     moches — masquées dès la tablette, décision Léonard) */
  #mh-home .mh-hero__tile{display:none;}
  #mh-home .mh-hero__main{border-radius:var(--mh-r-lg);box-shadow:0 0 0 5px var(--mh-green-pale),0 0 0 6px rgba(94,139,58,.28);}
  #mh-home .mh-hero__stage--empty{border-radius:var(--mh-r-lg);}

  /* MARQUES À DÉCOUVRIR : carte HORIZONTALE compacte (vignette carrée + texte) */
  #mh-home .mh-brand{flex-direction:row;align-items:center;}
  #mh-home .mh-brand__img{flex:0 0 118px;aspect-ratio:1/1;align-self:stretch;min-height:118px;}
  #mh-home .mh-brand__body{padding:12px 16px;min-width:0;}
  #mh-home .mh-brand h3{font-size:19px;margin-bottom:2px;}
  #mh-home .mh-brand p{font-size:12.5px;margin-bottom:8px;}
  #mh-home .mh-brand .mh-flag{margin-bottom:6px;}

  /* BLOG : même traitement — vignette à gauche, texte à droite */
  #mh-home .mh-blog-card{display:flex;flex-direction:row;align-items:stretch;}
  #mh-home .mh-blog-card__img{flex:0 0 118px;aspect-ratio:1/1;min-height:118px;}
  #mh-home .mh-blog-card__body{padding:12px 16px;min-width:0;}
  #mh-home .mh-blog-card h3{font-size:17px;margin:6px 0 4px;}
  #mh-home .mh-blog-card p{font-size:12.5px;}
}
@media (max-width:640px){
  /* HERO : plus court, boutons plus discrets */
  #mh-home .mh-hero{gap:20px;padding-bottom:20px;}
  #mh-home .mh-hero__text h1{font-size:34px;margin-bottom:14px;}
  #mh-home .mh-hero__text p{font-size:15px;margin-bottom:20px;}
  #mh-home .mh-btn--lg{padding:12px 20px;font-size:13.5px;}
  #mh-home .mh-hero__stats{margin-top:22px;padding-top:18px;}
  #mh-home .mh-stat strong{font-size:22px;}
  #mh-home .mh-hero__stage{aspect-ratio:16/10;min-height:200px;}

  /* STORY « engagement » : compacté (retour Léonard : massif/long) —
     textes resserrés + les 3 mini-features SUR UNE LIGNE (icône + titre) */
  #mh-home .mh-story{padding:24px 20px;gap:18px;}
  #mh-home .mh-story__img{aspect-ratio:16/9;}
  #mh-home .mh-story h2{font-size:24px;margin:8px 0 12px;}
  #mh-home .mh-story p{font-size:14px;margin-bottom:18px;}
  #mh-home .mh-story__pillars{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px;}
  #mh-home .mh-pillar{align-items:center;text-align:center;gap:6px;}
  #mh-home .mh-pillar__icon{width:32px;height:32px;}
  #mh-home .mh-pillar strong{font-size:11.5px;line-height:1.25;}
  #mh-home .mh-pillar span:not(.mh-pillar__icon){display:none;}
}
