/* hoummi-home.css : composants propres à produits/product-home.html.
   Les composants partagés (bande des plans, vignettes de modèles, boutons)
   restent dans hoummi-branches.css ; ne rien y dupliquer ici. */

/* Modèles : huit vignettes, quatre par rang, pour qu'aucune case ne reste
   vide (la grille partagée en auto-fill en laissait trois sur cinq). */
.hm-modeles--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-modeles--quatre .hm-modele__c { margin: 0 18px 8px; }
@media (max-width: 991px) { .hm-modeles--quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .hm-modeles--quatre { grid-template-columns: 1fr; } }

/* Le bouton sort du paragraphe .hm-note, dont la couleur de lien
   l'emportait et rendait le texte illisible sur le fond noir. */
.hm-home-actions { margin-top: clamp(24px, 3vw, 40px); }

/* Les quatre niveaux de finition : une échelle, plutôt que des pages PDF
   réduites et illisibles. */
.hm-niveaux {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--hm-trait);
  border-radius: var(--hm-r);
}
.hm-niveau {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--hm-trait);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hm-niveau:last-child { border-right: 0; }
.hm-niveau__jauge { display: flex; gap: 4px; margin-bottom: 6px; }
.hm-niveau__jauge i { flex: 1; height: 6px; background: var(--hm-trait); }
.hm-niveau__jauge i.on { background: var(--hm-vert); }
.hm-niveau__t {
  margin: 0;
  font-family: Ranua, sans-serif;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.15;
  color: var(--hm-encre);
}
.hm-niveau__d { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--hm-encre-douce); }
@media (max-width: 991px) {
  .hm-niveaux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-niveau:nth-child(2) { border-right: 0; }
  .hm-niveau:nth-child(-n + 2) { border-bottom: 1px solid var(--hm-trait); }
}
@media (max-width: 479px) {
  .hm-niveaux { grid-template-columns: 1fr; }
  .hm-niveau { border-right: 0; border-bottom: 1px solid var(--hm-trait); }
  .hm-niveau:last-child { border-bottom: 0; }
}

/* Pour aller plus loin : chaque lien dit ce qu'on y trouve. Le titre a sa
   propre colonne, la flèche ne peut plus passer dessus. */
.hm-renvois {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hm-noir);
  border: 1px solid var(--hm-noir);
  border-radius: var(--hm-r);
  overflow: hidden;
}
.hm-renvoi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  row-gap: 6px;
  align-items: center;
  padding: 24px 26px;
  background: var(--hm-vert);
  color: var(--hm-noir);
  text-decoration: none;
  transition: background-color .18s linear;
}
.hm-renvoi:hover, .hm-renvoi:focus-visible { background: #62c095; }
.hm-renvoi:focus-visible { outline: 2px solid var(--hm-noir); outline-offset: -4px; }
.hm-renvoi__e, .hm-renvoi__n, .hm-renvoi__d { grid-column: 1; }
.hm-renvoi__e { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hm-renvoi__n { font-family: Ranua, sans-serif; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.hm-renvoi__d { font-size: 14.5px; line-height: 1.45; opacity: .85; }
.hm-renvoi__f {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  border: 1px solid var(--hm-noir);
  border-radius: 50%;
  transition: transform .18s ease;
}
.hm-renvoi:hover .hm-renvoi__f { transform: translate(3px, -3px); }
@media (max-width: 767px) { .hm-renvois { grid-template-columns: 1fr; } }

/* Dernier appel : configurer, ou en parler d'abord, à poids égal. */
.hm-appel2 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: var(--hm-r);
  overflow: hidden;
}
.hm-appel2__a, .hm-appel2__b {
  padding: clamp(32px, 4.6vw, 64px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hm-appel2__a { background: var(--hm-vert); }
.hm-appel2__b { background: var(--hm-beige); }
.hm-appel2 h2 {
  font-family: Ranua, sans-serif;
  font-weight: 200;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--hm-noir);
  margin: 0;
}
.hm-appel2 h3 {
  font-family: Ranua, sans-serif;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.15;
  color: var(--hm-noir);
  margin: 0;
}
.hm-appel2 p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--hm-noir); max-width: 46ch; }
.hm-appel2__jpo { margin-top: auto !important; padding-top: 16px; border-top: 1px solid var(--hm-trait); font-size: 14.5px !important; width: 100%; }
.hm-appel2__jpo a { color: var(--hm-noir); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .hm-appel2 { grid-template-columns: 1fr; } }
