/* =========================================================
   SIFRANCE — Page d'accueil
   Reproduction de la maquette validée (sifrance.pixelweb.be)
   ========================================================= */

.page-home {
  --poppins: "Poppins", "Montserrat", sans-serif;
  --w-wide: 1120px;   /* atouts, showroom, histoire */
  --w-narrow: 1040px; /* bandeau « solutions » */
}

/* L'en-tête de l'accueil se superpose au hero et ne suit pas le défilement */
.page-home .site-header { position: absolute; }
.page-home .site-header.is-scrolled { --header-h: 106px; background: none; backdrop-filter: none; box-shadow: none; }
.page-home .header-logo { opacity: 0; pointer-events: none; }

/* ---------- Titres & boutons ---------- */
.hm-title {
  margin: 0;
  font-family: var(--poppins);
  font-weight: 100;
  font-size: 55px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.hm-btn {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--white);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  transition: background .3s, color .3s;
}
.hm-btn svg { width: 15px; height: 15px; fill: currentColor; transition: transform .3s; }
.hm-btn:hover { background: var(--white); color: var(--black); }
.hm-btn:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hm-hero {
  display: flex;
  align-items: center;
  min-height: 861px;
  padding-bottom: 38px;
  background-color: #000;
  background-image:
    linear-gradient(90deg, #000 28%, rgba(255,255,255,.1) 48%),
    url("../images/accueil/slide-V5.jpg");
  background-repeat: no-repeat;
  background-position: 0 0, 100% 50%;
  background-size: auto, contain;
}
.hm-hero-inner { width: 100%; padding: 0 100px; }
.hm-hero-logo { width: 390px; height: auto; margin-bottom: 20px; }
.hm-hero-title {
  margin: 0 0 20px;
  font-family: var(--poppins);
  font-weight: 100;
  font-size: 60px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.hm-hero-sub {
  margin: 0 0 21px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}
.hm-hero-inner > * { opacity: 0; animation: hmFadeUp 1s var(--ease) forwards; }
.hm-hero-inner > :nth-child(2) { animation-delay: .15s; }
.hm-hero-inner > :nth-child(3) { animation-delay: .3s; }
.hm-hero-inner > :nth-child(4) { animation-delay: .45s; }

/* ---------- Bandeau atouts ---------- */
.hm-bar { display: flex; align-items: center; min-height: 106px; padding: 10px; background: #1e1e1e; }
.hm-bar-list {
  display: grid;
  grid-template-columns: repeat(5, 192px);
  justify-content: center;
  gap: 20px 40px;
  width: 100%;
}
.hm-bar h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 23px;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- Gammes ---------- */
.hm-gammes { padding: 140px 50px 150px; }
.hm-cards { padding-top: 0; }
.hm-gammes-head { max-width: 920px; margin: 0 auto 44px; text-align: center; }
.hm-gammes-head .hm-title { margin-bottom: 30px; }
.hm-gammes-head p { max-width: 843px; margin: 0 auto; font-size: 18px; line-height: 27px; font-weight: 300; color: var(--white); }
.hm-gammes-head strong { font-weight: 400; }

.hm-cards {
  display: grid;
  grid-template-columns: repeat(4, 311px);
  justify-content: center;
  gap: 20px;
}
.hm-card {
  position: relative;
  display: block;
  height: 355px;
  padding: 20px;
  border: 1px solid #f1f1f1;
  background-size: cover;
  background-position: 50% 50%;
  isolation: isolate;
}
.hm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #000 0%, rgba(255,255,255,0) 40%);
  transition: opacity .4s;
}
.hm-card:hover::before { opacity: .5; }
.hm-card-head { display: flex; flex-direction: column; gap: 10px; }
.hm-card-head span {
  font-family: var(--poppins);
  font-weight: 200;
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}
.hm-card-arrow {
  position: absolute;
  left: 20px;
  bottom: 28px;
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: transform .3s;
}
.hm-card:hover .hm-card-arrow { transform: translateX(6px); }

/* ---------- Bandeaux image ---------- */
.hm-band {
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}
.hm-band-inner { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 24px; box-sizing: content-box; }
.hm-band-inner > * { max-width: 550px; }
.hm-band-inner--narrow { max-width: var(--w-narrow); }
.hm-band-inner--narrow > * { max-width: 481px; }
.hm-band .hm-title { margin-bottom: 20px; }
.hm-band p,
.hm-showroom p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  text-align: justify;
  color: var(--white);
}
.hm-band .hm-btn,
.hm-showroom .hm-btn { margin-top: 22px; }

.hm-band--solutions { min-height: 748px; background-position: 50% 100%; }
.hm-band--solutions::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0) 77%);
}
.hm-band--story { min-height: 709px; background-position: 100% 50%; }

/* ---------- Showroom ---------- */
.hm-showroom { padding: 150px 24px; }
.hm-showroom-inner {
  display: grid;
  grid-template-columns: 540px 540px;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: var(--w-wide);
  margin: 0 auto;
}
.hm-showroom-img { width: 540px; height: 500px; object-fit: cover; }
.hm-showroom-text .hm-title { margin-bottom: 20px; }

/* ---------- Apparition au défilement ---------- */
.hm-anim { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hm-anim.is-visible { opacity: 1; transform: none; }
.hm-cards .hm-anim:nth-child(2) { transition-delay: .1s; }
.hm-cards .hm-anim:nth-child(3) { transition-delay: .2s; }
.hm-cards .hm-anim:nth-child(4) { transition-delay: .3s; }
.hm-showroom-text.hm-anim { transition-delay: .15s; }

@keyframes hmFadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hm-anim, .hm-hero-inner > * { opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1365px) {
  .hm-cards { grid-template-columns: repeat(4, minmax(0, 311px)); }
}

@media (max-width: 1199px) {
  .hm-showroom-inner { grid-template-columns: 1fr 1fr; }
  .hm-showroom-img { width: 100%; height: auto; aspect-ratio: 540 / 500; }
  .hm-bar-list { grid-template-columns: repeat(5, minmax(0, 192px)); gap: 20px 24px; }
}

@media (max-width: 991px) {
  .hm-hero { min-height: 760px; background-position: 0 0, 70% 50%; background-size: auto, cover; }
  .hm-hero { background-image: linear-gradient(90deg, #000 10%, rgba(0,0,0,.35) 100%), url("../images/accueil/slide-V5.jpg"); }
  .hm-hero-inner { padding: 120px 40px 0; }
  .hm-hero-logo { width: 300px; }
  .hm-hero-title { font-size: 48px; }
  .hm-hero-sub { font-size: 22px; }
  .hm-title { font-size: 44px; }
  .hm-bar-list { grid-template-columns: repeat(3, minmax(0, 200px)); }
  .hm-gammes { padding: 100px 30px; }
  .hm-cards { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .hm-band--solutions::before { background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 100%); }
  .hm-band--story::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.55); }
  .hm-band--solutions, .hm-band--story { min-height: 600px; padding: 80px 0; }
  .hm-showroom { padding: 100px 30px; }
  .hm-showroom-inner { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 767px) {
  .hm-hero { min-height: 680px; }
  .hm-hero-inner { padding: 100px 20px 0; }
  .hm-hero-logo { width: 240px; }
  .hm-hero-title { font-size: 38px; }
  .hm-hero-sub { font-size: 18px; }
  .hm-title { font-size: 34px; }
  .hm-btn { font-size: 13px; }
  .hm-bar { padding: 30px 16px; }
  .hm-bar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .hm-bar h3 { font-size: 16px; line-height: 20px; }
  .hm-bar li:last-child { grid-column: 1 / -1; }
  .hm-gammes { padding: 80px 16px; }
  .hm-gammes-head p, .hm-band p, .hm-showroom p { font-size: 16px; line-height: 25px; text-align: left; }
  .hm-cards { grid-template-columns: minmax(0, 420px); }
  .hm-card { height: 300px; }
  .hm-band-inner { padding: 0 16px; }
  .hm-showroom { padding: 80px 16px; }
}
