/* Home page sections — self-contained (only uses the colour tokens, with fallbacks) */
.hm-sec {
  padding: 84px 0;
  background: var(--bg, #f8f6ef);
  color: var(--fg, #1d2a24);
}

.hm-alt {
  background: var(--card, #fff);
}

.hm-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.hm-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.hm-h {
  font:
    600 clamp(30px, 4vw, 46px)/1.15 Cormorant,
    Georgia,
    serif;
  margin: 12px 0 0;
}

.hm-p {
  color: var(--muted, #5b6660);
  margin: 14px 0 0;
  max-width: 56ch;
}

.hm-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hm-ul {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hm-ul li {
  padding-left: 28px;
  position: relative;
}

.hm-ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--gold, #d4af7c);
  border-bottom: 2px solid var(--gold, #d4af7c);
  transform: rotate(-45deg);
}

.hm-btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--green, #0f4d3a);
  color: var(--green, #0f4d3a);
  font:
    600 13px Montserrat,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 44px;
  transition:
    background 0.25s,
    color 0.25s;
}

.hm-btn:hover {
  background: var(--green, #0f4d3a);
  color: #f8f6ef;
}

.hm-btn.gold {
  background: var(--gold, #d4af7c);
  border-color: var(--gold, #d4af7c);
  color: #16251d;
}

.hm-btn.gold:hover {
  background: #e4c597;
  color: #16251d;
}

/* image frames: placeholders (.ph) and real images share the same box */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ar, 4/3);
  background: linear-gradient(135deg, #0f4d3a, #6b4a2e);
}

.media > img,
.media > .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
}

.media > .ph {
  background: linear-gradient(135deg, #0f4d3a, #124a3a 50%, #6b4a2e);
  outline: 2px dashed rgba(212, 175, 124, 0.55);
  outline-offset: -14px;
}

.media > .ph::after {
  content: attr(data-hint);
  position: absolute;
  left: 26px;
  bottom: 24px;
  font:
    500 12px Montserrat,
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 246, 239, 0.85);
}

.hm-frame {
  box-shadow: 18px 18px 0 -2px rgba(212, 175, 124, 0.35);
}

/* product families */
.hm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.hm-card {
  display: flex;
  flex-direction: column;
  background: var(--bg, #f8f6ef);
  border: 1px solid var(--line, #e3ddcc);
  color: inherit;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.hm-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold, #d4af7c);
}

.hm-cb {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hm-cb h3 {
  font:
    600 26px Cormorant,
    Georgia,
    serif;
  margin: 0;
}

.hm-cb p {
  margin: 0;
  color: var(--muted, #5b6660);
  font-size: 15px;
}

.hm-more {
  margin-top: auto;
  padding-top: 8px;
  font:
    600 12px Montserrat,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text, #8a6a38);
}

/* value + services blocks */
.hm-four {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.hm-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.hm-ico {
  display: block;
  padding: 28px 24px;
  border: 1px solid var(--line, #e3ddcc);
  background: var(--bg, #f8f6ef);
  color: inherit;
}

.hm-alt .hm-ico {
  background: var(--bg, #f8f6ef);
}

.hm-ico svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--green, #0f4d3a);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hm-ico h3 {
  font:
    600 24px Cormorant,
    Georgia,
    serif;
  margin: 12px 0 6px;
}

.hm-ico p {
  margin: 0;
  color: var(--muted, #5b6660);
  font-size: 15px;
}

.hm-lnk {
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.hm-lnk:hover {
  border-color: var(--gold, #d4af7c);
  transform: translateY(-3px);
}

/* mass timber band */
.hm-band {
  background: var(--walnut, #6b4a2e);
  color: #f8f6ef;
}

.hm-band .eyebrow {
  color: var(--gold, #d4af7c);
}

.hm-band .hm-p {
  color: rgba(248, 246, 239, 0.9);
}

.hm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
}

.hm-tags li {
  border: 1px solid rgba(212, 175, 124, 0.6);
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* gallery mosaic */
.hm-gal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
}

.hm-tile {
  aspect-ratio: auto;
}

.hm-tile.t1 {
  grid-column: span 2;
  grid-row: span 2;
}

.hm-tile.t4 {
  grid-column: span 2;
}

.hm-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 16px 12px;
  color: #f8f6ef;
  font:
    600 13px Montserrat,
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(8, 40, 30, 0.8), transparent);
  pointer-events: none;
}

.hm-tile > .ph::after {
  bottom: 46px;
}

/* downloads */
.hm-dl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line, #e3ddcc);
  background: var(--card, #fff);
  padding: 40px;
}

@media (max-width: 900px) {
  .hm-sec {
    padding: 60px 0;
  }

  .hm-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hm-frame {
    box-shadow: none;
  }

  .hm-gal {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }

  .hm-tile.t1 {
    grid-column: span 2;
  }

  .hm-tile.t4 {
    grid-column: span 2;
    grid-row: auto;
  }

  .hm-dl {
    padding: 28px;
  }
}

/* ===== Site plus large et plus aéré ===== */
:root {
  --wrap-max: 1800px;
}

.wrap,
.hm-wrap {
  max-width: var(--wrap-max);
  padding: 0 32px;
}

/* Navigation : chaque entrée sur une seule ligne (écrans larges uniquement) */
@media (min-width: 1200px) {
  nav a,
  nav button {
    white-space: nowrap;
    padding: 12px 14px;
  }

  nav ul {
    gap: 6px;
  }
}

/* Cartes produits : plus d'espace entre elles */
.cols {
  gap: 40px;
}

/* Features : les 6 cartes sur une seule ligne */
@media (min-width: 1100px) {
  .feat {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }

  .feat h3 {
    font-size: 20px;
  }
}

/* Galerie : 4 vignettes par ligne */
@media (min-width: 1100px) {
  .gal {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* Sections un peu plus respirantes */
@media (min-width: 1100px) {
  section {
    padding: 88px 0;
  }
}

/* ===== Bouton WhatsApp flottant ===== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 100px; /* au-dessus de la bulle du widget de chat */
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.wa-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Léger halo pulsé, désactivé si l'utilisateur réduit les animations */
@media (prefers-reduced-motion: no-preference) {
  .wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: waPulse 2.4s ease-out infinite;
  }

  @keyframes waPulse {
    from {
      transform: scale(1);
      opacity: 0.7;
    }
    to {
      transform: scale(1.5);
      opacity: 0;
    }
  }
}

@media (max-width: 600px) {
  .wa-float {
    right: 14px;
    bottom: 92px;
    width: 52px;
    height: 52px;
  }
}
/* Cartes du blog cliquables */
.cols article > a {
  display: block;
  color: inherit;
}

.cols article > a:hover h3 {
  color: var(--gold-text, #8a6a38);
}

.read-more {
  display: inline-block;
  margin-top: 6px;
  font:
    600 12px Montserrat,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text, #8a6a38);
}
