/* =====================================================
   MESKI — CSS page d'accueil  (v1.1 — hero mobile)
   Fichier : meski-home.css — RACINE du thème enfant
   Chargé par la section 8 du functions.php,
   uniquement sur la page d'accueil.
   Fonctionne avec front-page.php.
===================================================== */

:root {
  --meski-noir:      #151009;
  --meski-noir2:     #0d1712;
  --meski-blanc:     #fbfaf7;
  --meski-or:        #c3a04e;
  --meski-or-clair:  #e7d191;
  --meski-ambre:     #9a6a20;
  --meski-vert:      #2f5544;
  --meski-vert-fond: #16281e;
  --meski-texte:     #2b2115;
  --meski-hairline:  rgba(195,160,78,.45);
}

.meski-home {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--meski-texte);
  background: var(--meski-blanc);
  line-height: 1.65;
}
.meski-home img { max-width: 100%; display: block; }

/* ---------- éléments communs ---------- */
.mh-eyebrow {
  font-size: .7rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--meski-vert);
  display: block;
}
.mh-eyebrow.gold { color: var(--meski-or); }

.mh-sect-head { text-align: center; margin-bottom: 3rem; }
.mh-sect-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--meski-noir);
  margin-top: .9rem;
}
.mh-rule { width: 56px; height: 1px; background: var(--meski-or); margin: 1.3rem auto 0; }

.mh-cta {
  display: inline-block;
  text-decoration: none;
  background: var(--meski-noir);
  color: var(--meski-or-clair) !important;
  border: 1px solid var(--meski-noir);
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  transition: all .4s ease;
}
.mh-cta:hover {
  background: transparent;
  color: var(--meski-vert) !important;
  border-color: var(--meski-vert);
}
.mh-cta.light {
  background: transparent;
  color: var(--meski-or-clair) !important;
  border-color: var(--meski-or-clair);
}
.mh-cta.light:hover {
  background: var(--meski-or-clair);
  color: var(--meski-noir) !important;
  border-color: var(--meski-or-clair);
}

/* =====================================================
   1. HERO SLIDER
===================================================== */
.mh-hero {
  position: relative;
  min-height: 88vh;
  background: var(--meski-noir2);
  overflow: hidden;
}
.mh-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;   /* fondu lent = code du luxe */
  pointer-events: none;
  display: flex;
  align-items: center;
}
.mh-slide.is-active { opacity: 1; pointer-events: auto; }
.mh-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: .92;
}
.mh-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,23,18,.86) 0%, rgba(13,23,18,.55) 45%, rgba(13,23,18,.15) 75%);
}
.mh-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem clamp(1.5rem, 6vw, 4rem);
}
.mh-slide .mh-eyebrow { color: var(--meski-or); }
.mh-slide h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  color: var(--meski-blanc);
  margin: 1rem 0 .9rem;
  max-width: 15ch;
}
.mh-slide h1 em { font-style: italic; color: var(--meski-or-clair); }
.mh-slide p {
  max-width: 44ch;
  color: #cfc6ae;
  font-size: 1rem;
  margin-bottom: 2.2rem;
}
.mh-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .8rem;
}
.mh-dots button {
  width: 34px;
  height: 2px;
  border: none;
  background: rgba(231,209,145,.3);
  cursor: pointer;
  transition: background .4s;
  padding: 0;
}
.mh-dots button.is-active { background: var(--meski-or-clair); }
.mh-hero-ar {
  position: absolute;
  bottom: 1.8rem;
  right: 2.5rem;
  z-index: 3;
  font-family: 'Amiri', serif;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: rgba(231,209,145,.35);
  pointer-events: none;
}

/* =====================================================
   2. TRIO COLLECTIONS
===================================================== */
.mh-collections {
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
}
.mh-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.mh-trio > a {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--meski-noir2);
  aspect-ratio: 4/5;
  border: 1px solid var(--meski-hairline);
  text-decoration: none;
}
.mh-trio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  transition: transform 1.2s ease;
}
.mh-trio > a:hover img { transform: scale(1.05); }
.mh-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,23,18,.88) 0%, rgba(13,23,18,.25) 45%, transparent 70%);
}
.mh-trio-txt {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.8rem;
  text-align: center;
}
.mh-trio-txt span { display: block; }
.mh-trio-txt .k {
  font-size: .62rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--meski-or);
}
.mh-trio-txt .t {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--meski-blanc);
  margin: .5rem 0 .3rem;
}
.mh-trio-txt .d { font-size: .82rem; color: #cfc6ae; }
.mh-trio-txt .go {
  display: inline-block;
  margin-top: .9rem;
  font-size: .6rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--meski-or-clair);
  border-bottom: 1px solid var(--meski-or);
  padding-bottom: .3rem;
  transition: color .3s;
}
.mh-trio > a:hover .go { color: #fff; }

/* =====================================================
   3. SÉLECTION BOUTIQUE (grille WooCommerce)
===================================================== */
.mh-shop {
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem);
  max-width: 1320px;
  margin: 0 auto;
}
.mh-shop .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 400;
  font-size: 1.15rem !important;
  color: var(--meski-noir);
  line-height: 1.3;
}
.mh-shop .woocommerce ul.products li.product .price {
  font-family: 'Cormorant Garamond', serif;
  color: var(--meski-ambre) !important;   /* fin du vert pomme */
  font-size: 1.05rem;
}
.mh-shop .woocommerce ul.products li.product img {
  border: 1px solid var(--meski-hairline);
  transition: transform .6s ease;
}
.mh-shop .woocommerce ul.products li.product:hover img { transform: scale(1.02); }
.mh-shop .woocommerce ul.products li.product .button {
  background: transparent !important;
  color: var(--meski-vert) !important;
  border: 1px solid var(--meski-hairline) !important;
  border-radius: 0 !important;
  font-size: .62rem !important;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 400 !important;
}
.mh-shop .woocommerce ul.products li.product .button:hover {
  background: var(--meski-noir) !important;
  color: var(--meski-or-clair) !important;
  border-color: var(--meski-noir) !important;
}
.mh-shop-more { text-align: center; margin-top: 2.5rem; }

/* =====================================================
   4. MANIFESTE (fond vert Meski)
===================================================== */
.mh-manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--meski-vert-fond);
}
.mh-manifesto-img { position: relative; min-height: 480px; }
.mh-manifesto-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .95;
}
.mh-manifesto-txt {
  padding: clamp(3rem, 6vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mh-manifesto blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  color: var(--meski-blanc);
  margin: 1.2rem 0 1.6rem;
  border: none;
  padding: 0;
}
.mh-manifesto blockquote em { color: var(--meski-or-clair); font-style: italic; }
.mh-sig {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: rgba(231,209,145,.5);
  margin-bottom: 1.8rem;
}

/* =====================================================
   5. THE MESKI JOURNAL
===================================================== */
.mh-journal {
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
}
.mh-journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.mh-jcard {
  border: 1px solid var(--meski-hairline);
  background: #fff;
  text-decoration: none;
  display: block;
  transition: border-color .3s;
}
.mh-jcard:hover { border-color: var(--meski-vert); }
.mh-jcard .ph { display: block; height: 210px; overflow: hidden; background: var(--meski-vert-fond); }
.mh-jcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mh-jcard:hover .ph img { transform: scale(1.04); }
.mh-jcard .body { display: block; padding: 1.4rem 1.6rem; }
.mh-jcard .k {
  display: block;
  font-size: .58rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--meski-vert);
}
.mh-jcard .t {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--meski-noir);
  margin: .5rem 0 .4rem;
  line-height: 1.3;
}
.mh-jcard .d { display: block; font-size: .85rem; color: #6a5a42; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .mh-hero { min-height: 78vh; }
  .mh-slide h1 { max-width: none; }
  .mh-trio { grid-template-columns: 1fr; }
  .mh-trio > a { aspect-ratio: 16/10; }
  .mh-manifesto { grid-template-columns: 1fr; }
  .mh-manifesto-img { min-height: 320px; }
  .mh-journal-grid { grid-template-columns: 1fr; }
}

/* ---------- HERO MOBILE ---------- */
@media (max-width: 640px) {
  .mh-hero { min-height: 72vh; }

  /* image : recadrage recentré sur le sujet (tiers droit en 16:9
     devient centre en portrait d'écran) */
  .mh-slide > img { object-position: 68% center; }

  /* voile renforcé : le texte passe devant l'image, il doit rester lisible */
  .mh-slide::after {
    background: linear-gradient(to top,
      rgba(13,23,18,.92) 0%,
      rgba(13,23,18,.65) 55%,
      rgba(13,23,18,.25) 100%);
  }

  /* texte : ancré en bas, tailles mobiles */
  .mh-slide { align-items: flex-end; }
  .mh-slide-inner { padding: 0 1.4rem 4.5rem; }
  .mh-slide .mh-eyebrow { font-size: .6rem; letter-spacing: .32em; }
  .mh-slide h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin: .7rem 0 .6rem; }
  .mh-slide h1 br { display: none; }
  .mh-slide p { font-size: .9rem; margin-bottom: 1.5rem; max-width: none; }

  /* bouton : pleine largeur, tactile */
  .mh-slide .mh-cta {
    display: block;
    text-align: center;
    padding: 1rem 1.2rem;
    font-size: .66rem;
    letter-spacing: .34em;
  }

  /* points du slider : au-dessus du bord bas */
  .mh-dots { bottom: 1.4rem; }
  .mh-dots button { width: 28px; }

  /* calligraphie : discrète, ne gêne pas les points */
  .mh-hero-ar { display: none; }
}