/* ==========================================================================
   Maison Zemmouri — sections d'accueil reprises du site d'origine
   1. .mzh-hero    « Cheminées électriques modernes à votre intérieur »
   2. .mzh-styles  style moderne / Meubles élégants / Élégance et confort
   3. .mzh-about   « Nous établissons un nouveau standard… » + Inspirez-vous
   Toutes les classes sont préfixées « mzh- » : rien d'autre n'est affecté.
   Chargé uniquement par index.html.
   ========================================================================== */

.mzh-hero, .mzh-styles, .mzh-about {
  --mzh-orange: #F27B38;        /* orange des cartes (site d'origine) */
  --mzh-orange-vif: #FC6C25;    /* orange des boutons et de « Inspirez-vous » */
  --mzh-orange-texte: #B5460F;  /* orange lisible pour du texte sur fond clair (contraste AA) */
  /* Texte posé sur l'orange. Le site d'origine utilisait du blanc ; le noir
     garantit la lisibilité (contraste 6:1). Mettez #FFFFFF pour l'effet d'origine. */
  --mzh-on-orange: #1E1A16;
  --mzh-beige: #ECE6D8;
  --mzh-gris: #F6F6F6;
  --mzh-texte: #3C3C3C;
  --mzh-radius: 28px;
  --mzh-radius-sm: 22px;
}

/* ---------- Composants communs ---------- */
.mzh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 34px; border-radius: 999px;
  background: var(--mzh-orange-vif); color: var(--mzh-on-orange);
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 12px 22px -10px rgba(60, 30, 10, .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.mzh-btn:hover { color: var(--mzh-on-orange); background: var(--mzh-orange); transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(60, 30, 10, .6); }

.mzh-link {
  display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase;
  color: var(--mzh-orange-texte); text-decoration: none; border-bottom: 2px solid var(--mzh-orange);
}
.mzh-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.mzh-link:hover { color: var(--mzh-orange-texte); }
.mzh-link:hover .icon { transform: translate(3px, -3px); }
.mzh-link--on-orange, .mzh-link--on-orange:hover { color: var(--mzh-on-orange); border-bottom-color: currentColor; }

/* ---------- 1. Héros ---------- */
.mzh-hero { background: var(--mzh-beige); padding: clamp(32px, 4vw, 64px) 0 clamp(40px, 5vw, 80px); overflow: hidden; }
.mzh-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.mzh-hero__media { position: relative; }
.mzh-hero__img { width: 100%; max-width: 640px; height: auto; aspect-ratio: 1082 / 947; object-fit: contain; margin-inline: auto; }
.mzh-hero__eyebrow { font-family: var(--font-body); font-size: 1.05rem; color: #222; margin: 0 0 14px; }
.mzh-hero__title {
  font-family: var(--font-head); font-weight: 400; color: #2B2B2B; letter-spacing: 0;
  font-size: clamp(1.85rem, 1.1rem + 1.4vw, 2.35rem); line-height: 1.2; margin: 0 0 18px;
}
.mzh-hero__lead { font-family: var(--font-body); font-size: clamp(1rem, .92rem + .3vw, 1.125rem); line-height: 1.55; color: var(--mzh-texte); letter-spacing: .01em; margin: 0 0 32px; max-width: 30em; }
.mzh-hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.mzh-play {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #fff; color: #E8601C; text-decoration: none; flex: none;
  box-shadow: 0 0 0 9px rgba(150, 175, 232, .55);
  transition: transform .2s var(--ease);
}
.mzh-play:hover { transform: scale(1.06); color: #E8601C; }
.mzh-play__icon { width: 24px; height: 24px; margin-left: 3px; position: relative; z-index: 1; }
.mzh-play__ring { position: absolute; inset: -9px; border-radius: 50%; background: rgba(150, 175, 232, .35); animation: mzhPulse 2.4s ease-out infinite; }
@keyframes mzhPulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mzh-play__ring { animation: none; } }

/* ---------- 2. Styles (cartes orange / grises) ---------- */
.mzh-styles { background: #fff; padding: clamp(40px, 5vw, 72px) 0; }
.mzh-styles__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 22px; align-items: stretch; }
.mzh-styles__stack { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.mzh-styles__card { border-radius: var(--mzh-radius); overflow: hidden; }
.mzh-styles__title {
  font-family: var(--font-head); font-weight: 400; letter-spacing: 0; text-transform: none;
  font-size: clamp(1.6rem, 1.15rem + 1.2vw, 2.25rem); line-height: 1.15; margin: 0 0 14px;
}
.mzh-styles__text p { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.6; margin: 0 0 26px; }

.mzh-styles__card--orange { display: flex; flex-direction: column; background: var(--mzh-orange); color: var(--mzh-on-orange); padding: clamp(28px, 3.2vw, 46px) clamp(26px, 3.2vw, 48px) 0; }
.mzh-styles__card--orange .mzh-styles__title, .mzh-styles__card--orange p { color: var(--mzh-on-orange); }
.mzh-styles__card--orange .mzh-styles__media { margin-top: auto; padding-top: 28px; }
.mzh-styles__card--orange .mzh-styles__media img { width: 100%; height: auto; object-fit: contain; }

.mzh-styles__card--light {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 20px;
  background: var(--mzh-gris); padding: clamp(26px, 3vw, 44px) clamp(26px, 3vw, 48px);
}
.mzh-styles__card--light .mzh-styles__title { color: #2B2B2B; }
.mzh-styles__card--light p { color: var(--mzh-texte); }
.mzh-styles__card--light .mzh-styles__media img { width: 100%; max-height: 260px; object-fit: contain; margin-left: auto; }
.mzh-styles__card img { transition: transform .6s var(--ease); }
.mzh-styles__card:hover img { transform: scale(1.03); }

/* ---------- 3. À propos ---------- */
.mzh-about { background: #fff; padding: clamp(48px, 6vw, 96px) 0; }
.mzh-about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.mzh-about__media { display: grid; gap: 22px; }
.mzh-about__main img, .mzh-about__small img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--mzh-radius); background: var(--mzh-beige);
}
.mzh-about__main img { aspect-ratio: 2 / 1; box-shadow: 0 22px 36px -22px rgba(30, 20, 10, .55); }
.mzh-about__row { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; }
.mzh-about__small img { aspect-ratio: 1 / 1.05; }
.mzh-about__cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
  background: var(--mzh-orange-vif); color: var(--mzh-on-orange); border-radius: var(--mzh-radius); padding: 28px 20px;
}
.mzh-about__cta-title { font-family: var(--font-head); font-size: clamp(1.1rem, .6rem + 1.9vw, 2rem); letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; margin: 0; color: var(--mzh-on-orange); }
.mzh-about__text { text-align: center; }
.mzh-about__eyebrow { font-family: var(--font-body); font-size: .85rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mzh-orange-texte); margin: 0 0 12px; }
.mzh-about__title { font-family: var(--font-head); font-weight: 700; color: #2B2B2B; letter-spacing: 0; font-size: clamp(1.75rem, 1.15rem + 1.7vw, 2.6rem); line-height: 1.2; margin: 0 0 24px; }
.mzh-about__text p:not(.mzh-about__eyebrow) { font-family: var(--font-body); font-size: 1.02rem; line-height: 2; color: var(--mzh-texte); margin: 0 0 18px; }
.mzh-about__text strong { color: #2B2B2B; font-weight: 600; }
.mzh-about__text .mzh-link { margin-top: 10px; }

/* ---------- Fenêtre vidéo (si une vidéo est renseignée dans products.js) ---------- */
.mzh-video { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 56px 16px; background: rgba(12, 10, 8, .9); }
.mzh-video[hidden] { display: none; }
.mzh-video__box { position: relative; width: min(960px, 100%); }
.mzh-video__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.mzh-video__frame iframe, .mzh-video__frame video { width: 100%; height: 100%; border: 0; display: block; }
.mzh-video__close { position: absolute; top: -50px; right: 0; color: #fff; background: rgba(255, 255, 255, .1); }
.mzh-video__close:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .mzh-styles__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .mzh-styles__card--light { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

@media (max-width: 960px) {
  .mzh-hero__inner { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .mzh-hero__media { order: 2; max-width: 520px; margin: 0 auto; }
  .mzh-styles__grid { grid-template-columns: minmax(0, 1fr); }
  .mzh-styles__card--orange { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 20px; padding-bottom: 0; }
  .mzh-styles__card--orange .mzh-styles__text { align-self: center; padding-bottom: 28px; }
  .mzh-styles__card--orange .mzh-styles__media { padding-top: 0; }
  .mzh-about__inner { grid-template-columns: minmax(0, 1fr); }
  .mzh-about__media { max-width: 640px; margin: 0 auto; width: 100%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .mzh-hero, .mzh-styles, .mzh-about { --mzh-radius: 22px; }
  .mzh-btn { min-height: 54px; padding: 0 30px; }
  .mzh-styles__card--orange { display: flex; padding-bottom: 0; }
  .mzh-styles__card--orange .mzh-styles__text { padding-bottom: 0; }
  .mzh-styles__card--orange .mzh-styles__media { padding-top: 20px; }
  .mzh-styles__card--light { grid-template-columns: minmax(0, 1fr); }
  .mzh-styles__card--light .mzh-styles__media img { max-height: 210px; margin: 0 auto; }
  .mzh-styles__stack { grid-template-rows: auto; }
  .mzh-about__row { gap: 14px; }
  .mzh-about__cta { padding: 20px 12px; gap: 16px; }
  .mzh-about__cta .mzh-link { font-size: .9rem; gap: 8px; }
  .mzh-about__text p:not(.mzh-about__eyebrow) { line-height: 1.85; }
}

/* Ligne de confiance sous les boutons du héros */
.mzh-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; font-family: var(--font-body); font-size: .92rem; color: var(--mzh-texte); }
.mzh-hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.mzh-hero__trust .icon { width: 18px; height: 18px; color: #11692F; }
@media (max-width: 640px) { .mzh-hero__trust { flex-direction: column; gap: 8px; margin-top: 22px; } }
