/* ======================================================================
   Azura — accueil éditorial « hyper chic » (brief d'Eric du 2026-11-02).
   PRÉ-PROD UNIQUEMENT. Chargée par _partials/head.tpl, page d'accueil seule.

   Palette : noir, blanc, beige (--az-lin de la charte). Typographies fines
   (Source Sans 3, graisses 200 et 300). Boutons éditoriaux en noir sobre ;
   le vert de la production (--az-vert) reste réservé aux boutons d'achat.

   Les sélecteurs sont préfixés par #content pour passer devant les règles
   de custom.css à spécificité égale (piège connu du thème enfant).
   ====================================================================== */

:root {
  --azh-noir: #121212;
  --azh-blanc: #FFFFFF;
  --azh-beige: #F2EFE9;
  --azh-gris: #9A9A96;
}

/* La page d'accueil sort du conteneur : les bandes vont d'un bord à l'autre.
   Aucun 100vw, donc aucun ascenseur horizontal quand la barre de défilement
   est visible. */
body#index #inner-wrapper.container { max-width: none; padding-left: 0; padding-right: 0; }
body#index #content.azh-accueil { display: block; gap: 0; padding-bottom: 0; }

/* ---------------------------------------------------------------- boutons
   Correction du 03/11 : le texte reste BLANC en toutes circonstances, survol
   compris.

   Piege rencontre : la regle D32 de custom.css
     #content a:not(.btn):not(.nav-link):not(.product-flag):not(.dropdown-item)
   pese (1 id, 4 classes, 1 element) et custom.css est charge APRES cette
   feuille. Il faut donc depasser (1,4,1) : la classe du bouton est repetee,
   procede usuel, sans effet de bord et sans aucun !important. */
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn,
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn:link,
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn:visited,
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn:hover,
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn:focus,
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn:active {
  display: inline-block; padding: 14px 32px;
  background: var(--azh-noir); color: var(--azh-blanc);
  border: 1px solid var(--azh-noir);
  font-size: 14px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  line-height: 1.2; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
/* declare apres : un gris tres sombre au survol, le texte ne bouge pas */
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn:hover,
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn:focus,
#content.azh-accueil a.azh-btn.azh-btn.azh-btn.azh-btn:active {
  background: #333331; border-color: #333331; color: var(--azh-blanc);
}
/* Lien secondaire (« Portails ») : noir et souligne, pas le bleu de marque.
   Meme contrainte de specificite que les boutons (regle D32 de custom.css,
   (1,4,1), chargee apres) : la classe est repetee pour atteindre (1,5,1). */
#content.azh-accueil a.azh-lien.azh-lien.azh-lien.azh-lien,
#content.azh-accueil a.azh-lien.azh-lien.azh-lien.azh-lien:link,
#content.azh-accueil a.azh-lien.azh-lien.azh-lien.azh-lien:visited,
#content.azh-accueil a.azh-lien.azh-lien.azh-lien.azh-lien:hover,
#content.azh-accueil a.azh-lien.azh-lien.azh-lien.azh-lien:focus {
  display: inline-block; margin-left: 20px; font-size: 15px;
  color: var(--azh-noir); text-decoration: underline; text-underline-offset: 4px;
}

/* ------------------------------------------------------------ grand visuel */
#content.azh-accueil .azh-hero { position: relative; overflow: hidden; background: var(--azh-noir); }
#content.azh-accueil .azh-hero__media { display: block; }
/* Hauteur du grand visuel : bornée pour que le TITRE DE PAGE reste visible sans
   défiler. Mesuré le 03/11 — l'en-tête occupe 207 px ; 600 px de visuel laissent
   le titre au-dessus de la ligne de flottaison dès 1440 x 900. */
#content.azh-accueil .azh-hero__img,
#content.azh-accueil .azh-hero__video {
  display: block; width: 100%; height: clamp(400px, calc(100vh - 320px), 600px); object-fit: cover;
}
/* Le zoom est encodé dans la vidéo : aucune animation CSS, donc rien à neutraliser. */
#content.azh-accueil .azh-hero__video--portrait { display: none; }
#content.azh-accueil .azh-hero__fixe { display: none; }

/* « Moins d'animations » : la vidéo est retirée (un élément masqué ne joue pas) et
   l'affiche fixe prend sa place. */
@media (prefers-reduced-motion: reduce) {
  #content.azh-accueil .azh-hero__video { display: none; }
  #content.azh-accueil .azh-hero__fixe { display: block; }
}
/* 04/11 — PLUS AUCUN VOILE SUR TOUTE L IMAGE (constat d Eric : le visuel
   paraissait gris sur toute sa surface).
   Il y avait deux calques qui se cumulaient : un par le bas sur TOUTE la
   largeur (jusqu a 50 % de noir, donc sur le feu et la lampe), un par la gauche
   qui courait jusqu a 84 % de la largeur. En bas a gauche le cumul atteignait
   86 % de noir, au milieu 61 %, a droite 50 %.
   Le calque du bas est supprime. Il ne reste qu un degrade par la gauche, eteint
   a 46 % de la largeur — avant le milieu. La moitie droite de l image n est plus
   touchee du tout. La lisibilite du texte au-dela est assuree par une ombre
   portee sur le texte lui-meme, pas par un voile. */
#content.azh-accueil .azh-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.58) 20%, rgba(0,0,0,.34) 34%, rgba(0,0,0,.10) 43%, rgba(0,0,0,0) 48%);
}
#content.azh-accueil .azh-hero__texte {
  position: absolute; z-index: 1;
  left: clamp(20px, 6vw, 92px); bottom: clamp(28px, 5vw, 76px);
  max-width: 860px; color: var(--azh-blanc);
}
#content.azh-accueil .azh-hero__titre {
  margin: 0; font-weight: 300; font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.05; letter-spacing: -.5px; color: var(--azh-blanc);
  text-wrap: balance;
  /* le titre court jusqu a 65 % de la largeur a 1366, bien au-dela du degrade :
     c est l ombre qui le tient lisible, et elle ne touche pas la photo. */
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 14px rgba(0,0,0,.40);
}
#content.azh-accueil .azh-hero__chapeau {
  margin: 16px 0 28px; font-weight: 300; font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55; max-width: 32em; color: var(--azh-blanc);
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.35);
}

/* ------------------------------------------------------------ titre de page */
#content.azh-accueil .azh-titre-page {
  margin: clamp(20px, 2vw, 32px) auto clamp(6px, 1vw, 14px);
  max-width: 900px; padding: 0 20px; text-align: center;
  font-weight: 200; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3;
  color: var(--azh-noir);
}
#content.azh-accueil .azh-titre-section {
  margin: 0 0 30px; text-align: center;
  font-weight: 200; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2;
  color: var(--azh-noir);
}

/* ------------------------------------------------------- bandes des univers */
#content.azh-accueil .azh-bande { position: relative; margin-top: clamp(40px, 5.5vw, 88px); }
#content.azh-accueil .azh-bande__media { display: block; }
#content.azh-accueil .azh-bande__media img {
  display: block; width: 100%; height: clamp(380px, 42vw, 560px); object-fit: cover;
}
#content.azh-accueil .azh-bande--haute .azh-bande__media img { height: clamp(420px, 48vw, 640px); }
#content.azh-accueil .azh-bande--petite .azh-bande__media img { height: clamp(260px, 30vw, 400px); }
#content.azh-accueil .azh-bande__panneau {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--azh-blanc); padding: clamp(28px, 3vw, 46px);
  width: min(430px, 38vw);
}
#content.azh-accueil .azh-bande--gauche .azh-bande__panneau { left: clamp(24px, 5vw, 96px); }
#content.azh-accueil .azh-bande--droite .azh-bande__panneau { right: clamp(24px, 5vw, 96px); }
#content.azh-accueil .azh-bande--petite .azh-bande__panneau { width: min(370px, 34vw); padding: clamp(22px, 2.4vw, 34px); }
#content.azh-accueil .azh-bande__rang {
  margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--azh-gris);
}
#content.azh-accueil .azh-bande__titre {
  margin: 0 0 14px; font-weight: 200; font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.1; color: var(--azh-noir);
}
#content.azh-accueil .azh-bande__texte {
  margin: 0 0 26px; font-size: 16px; line-height: 1.6; color: var(--az-gris-texte);
}

/* ------------------------------------------------------- rangée de produits
   03/11 : on NE force plus de grille CSS. Le module rend exactement le gabarit
   des pages categorie (`.products.row.products-grid` puis des colonnes
   `col-6 col-md-4 col-lg-3`), qui donne deja 2 colonnes sur mobile, 3 en
   tablette et 4 sur ordinateur. La grille maison ecrasait les cartes a 55 px,
   parce que chaque colonne gardait ses 25 % a l interieur d une cellule deja
   au quart de la largeur. */
#content.azh-accueil .azh-produits {
  margin: clamp(56px, 7vw, 104px) auto 0; max-width: 1320px; padding: 0 20px;
}
#content.azh-accueil .azh-produits .dm-section { margin: 0; }
/* le titre du module reprend la typographie fine des autres titres de la page */
#content.azh-accueil .azh-produits .dm-titre-section {
  margin: 0 0 30px; text-align: center;
  font-weight: 200; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2;
  color: var(--azh-noir);
}
/* Vignettes : un cadre au ratio de `home_default` (720 x 558), l image entiere
   a l interieur (`contain`, jamais `cover` : on ne coupe pas un produit). Sans
   cela les fichiers, qui gardent chacun leur ratio, donnaient des hauteurs
   inegales et un grand vide sous les images les plus etroites. */
#content.azh-accueil .azh-produits .thumbnail-container .product-thumbnail {
  display: block; aspect-ratio: 720 / 558; background: #FFFFFF;
}
#content.azh-accueil .azh-produits .thumbnail-container .product-thumbnail img {
  width: 100%; height: 100%; max-height: none; object-fit: contain; display: block;
}
/* 03/11 : marge interieure autour du nom ET du prix — le texte collait au
   bord gauche de la carte. 16 px sur ordinateur, 12 px sur mobile (plus bas). */
#content.azh-accueil .azh-produits .product-description { padding: 16px; }
#content.azh-accueil .azh-produits .product-description .product-title,
#content.azh-accueil .azh-produits .product-description .product-price-and-shipping { padding-left: 0; padding-right: 0; }

/* noms de produits en noir : la regle D32 de custom.css pese (1,4,1) et est
   chargee apres, d ou la classe repetee pour atteindre (1,5,1). */
#content.azh-accueil .azh-produits .product-title.product-title.product-title a,
#content.azh-accueil .azh-produits .product-title.product-title.product-title a:link,
#content.azh-accueil .azh-produits .product-title.product-title.product-title a:visited,
#content.azh-accueil .azh-produits .product-title.product-title.product-title a:hover,
#content.azh-accueil .azh-produits .product-title.product-title.product-title a:focus {
  color: var(--azh-noir); text-decoration: none;
}
#content.azh-accueil .azh-produits .product-title.product-title.product-title a:hover {
  text-decoration: underline; text-underline-offset: 3px;
}
/* pastille de remise : le rouge de la charte, pas le marron de l editeur de theme */
#content.azh-accueil .azh-produits .product-flags .product-flag.discount,
#content.azh-accueil .azh-produits .product-flags .discount {
  background: var(--az-rouge); border-color: var(--az-rouge); color: #FFFFFF;
}
/* décision K1 : les boutons d'ACHAT gardent le vert de la production */
#content.azh-accueil .azh-produits .add-to-cart,
#content.azh-accueil .azh-produits .btn-add-to-cart {
  background: var(--az-vert); border-color: var(--az-vert); color: var(--azh-blanc);
}

/* --------------------------------------------------------------- bandeau
   03/11 : refait en ligne fine, style Sklum / Miliboo. Fond blanc, un filet
   gris clair au-dessus et en dessous, quatre mentions en petites capitales
   espacées séparées par un filet vertical. Aucune icône.
   La page d'accueil sort déjà du conteneur (voir plus haut) : la section est
   donc pleine largeur sans aucune astuce de débordement. */
#content.azh-accueil .azh-bandeau {
  margin-top: clamp(40px, 5vw, 72px);
  padding: 0 20px; background: var(--azh-blanc);
  border-top: 1px solid var(--az-gris-ligne);
  border-bottom: 1px solid var(--az-gris-ligne);
}
#content.azh-accueil .azh-bandeau__liste {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1320px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
#content.azh-accueil .azh-bandeau__item {
  margin: 0; padding: 20px 14px; text-align: center;
  font-size: 12.5px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.45; color: #3A3A38;
  border-left: 1px solid var(--az-gris-ligne);
  display: flex; align-items: center; justify-content: center;
}
#content.azh-accueil .azh-bandeau__item:first-child { border-left: 0; }
#content.azh-accueil .azh-bandeau__item::before { content: none; }
/* le téléphone reste gris foncé, pas bleu de marque : même contrainte de
   spécificité que les boutons (règle D32 de custom.css, (1,4,1)). */
#content.azh-accueil a.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel,
#content.azh-accueil a.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel:link,
#content.azh-accueil a.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel:visited,
#content.azh-accueil a.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel:hover,
#content.azh-accueil a.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel.azh-bandeau__tel:focus {
  color: #3A3A38; text-decoration: none; letter-spacing: inherit;
}

/* ==================================================================== mobile
   Règle maison du 11/10 : sur mobile, la photo EN HAUT, le texte EN DESSOUS
   sur fond uni. Aucune surimpression. */
@media (max-width: 767.98px) {
  #content.azh-accueil .azh-hero { background: var(--azh-blanc); }
  #content.azh-accueil .azh-hero::after { display: none; }
  #content.azh-accueil .azh-hero__img { height: auto; aspect-ratio: 3 / 4; }
  #content.azh-accueil .azh-hero__video--paysage { display: none; }
  #content.azh-accueil .azh-hero__video--portrait { display: block; height: auto; aspect-ratio: 3 / 4; }
  #content.azh-accueil .azh-hero__texte {
    position: static; max-width: none; padding: 24px 20px 32px; color: var(--azh-noir);
  }
  /* mobile : le texte n est pas sur l image mais dessous, en noir sur blanc.
     Ni voile ni ombre ne s y appliquent. */
  #content.azh-accueil .azh-hero__titre { color: var(--azh-noir); font-size: 32px; text-shadow: none; }
  #content.azh-accueil .azh-hero__chapeau { text-shadow: none; }
  #content.azh-accueil .azh-hero__chapeau { color: var(--az-gris-texte); font-size: 16px; margin: 12px 0 24px; }

  #content.azh-accueil .azh-bande__media img,
  #content.azh-accueil .azh-bande--haute .azh-bande__media img,
  #content.azh-accueil .azh-bande--petite .azh-bande__media img { height: auto; aspect-ratio: 4 / 3; }
  /* les variantes --petite et --haute sont plus specifiques : il faut les
     nommer ici aussi, sinon le panneau reste a 34 vw et le texte s'empile. */
  #content.azh-accueil .azh-bande__panneau,
  #content.azh-accueil .azh-bande--petite .azh-bande__panneau,
  #content.azh-accueil .azh-bande--haute .azh-bande__panneau {
    position: static; transform: none; width: auto; padding: 24px 20px 8px;
  }

  /* cartes : meme marge interieure, 12 px */
  #content.azh-accueil .azh-produits .product-description { padding: 12px; }

  /* bandeau : 2 x 2, jamais en colonne */
  #content.azh-accueil .azh-bandeau__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #content.azh-accueil .azh-bandeau__item { padding: 16px 10px; font-size: 11.5px; }
  #content.azh-accueil .azh-bandeau__item:nth-child(odd) { border-left: 0; }
  #content.azh-accueil .azh-bandeau__item:nth-child(n+3) { border-top: 1px solid var(--az-gris-ligne); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #content.azh-accueil .azh-bande__panneau { width: min(360px, 46vw); }
}
