/* ============================================================
   HENOQ — index.css
============================================================ */

/* ══ HERO ══ */
#hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Typo décorative en fond */
.hero-bg-text {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-track {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: -50%;
  right: 15%;
  transform-origin: top right;
  transform: rotate(-12deg);
  animation: bgSlideUp 18s linear infinite;
}
@keyframes bgSlideUp {
  from { transform: rotate(-12deg) translateY(0); }
  to   { transform: rotate(-12deg) translateY(-50%); }
}
.hero-bg-word {
  display: block;
  font-family: var(--condensed);
  font-weight: 900;
  font-size: 16vw;
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: transparent;
  white-space: nowrap;
  user-select: none;
  padding: .1em 0;
}
.hero-bg-word--maroon { -webkit-text-stroke: 1.5px rgba(89,49,55,.18); }
.hero-bg-word--dark   { -webkit-text-stroke: 1.5px rgba(47,47,47,.12); }

/* Ticker */
.hero-ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--maroon);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  z-index: 1;
  opacity: 0;
  animation: fadeUp .5s ease 0.1s both;
}
.hero-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.hero-ticker-item {
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--offwhite);
  opacity: .85;
  line-height: 1;
}
.hero-ticker-sep {
  color: rgba(246,244,241,.5);
  font-size: 1.8rem;
  padding: 0 4rem;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

/* Elevator */
.hero-elevator-wrap {
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  height: clamp(4rem, 10vw, 5.2rem);
  line-height: 1;
  width: auto;
}
.hero-elevator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.6s cubic-bezier(.76,0,.24,1);
}
.hero-elevator-item {
  font-family: var(--condensed);
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.5px;
  color: transparent;
  -webkit-text-stroke: 2px var(--maroon);
  white-space: nowrap;
  flex-shrink: 0;
  height: clamp(4rem, 10vw, 5.2rem);
  display: flex;
  align-items: center;
}

/* Hero content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 36px 32px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 70%;
  margin-top: -6rem;
  text-align: left;
}
.hero-content h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0;
  max-width: 52ch;
  margin-bottom: 2.4rem;
  color: rgba(47,47,47,.7);
  animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--d, 0s);
  text-align: left;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  opacity: 0;
  animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--d, 0s);
}

/* Stats */
.hero-stats {
  position: absolute;
  bottom: 38px;
  left: 0; right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp .65s cubic-bezier(.22,1,.36,1) 1.4s both;
  background: var(--offwhite);
}
.hero-stat {
  padding: 1.2rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--condensed);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--maroon);
  line-height: 1;
  margin-bottom: .3rem;
}
.hero-stat-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(47,47,47,.5);
}

/* ══ POURQUOI HENOQ ══ */
/* Augmente le padding-bottom sur les .lw des sec-title pour éviter la coupure des accents */
.sec-title .lw { overflow: visible; padding-bottom: .2em; }
#why { background: #242424; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(246,244,241,.08);
  position: relative;
}
.why-item {
  background: #242424;
  padding: 2.4rem 2rem;
  transition: background .4s;
  position: relative;
  overflow: hidden;
}
.why-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(246,244,241,.25);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.76,0,.24,1);
}
.why-item:hover::before { transform: scaleX(1); }
.why-item:hover { background: rgba(246,244,241,.06); }

.why-num {
  margin-bottom: 1.8rem;
  overflow: hidden;
  position: relative;
  height: 5.5rem;
}
.why-num .lw { overflow: hidden; padding-bottom: .05em; }
.why-num-inner {
  display: block;
  font-family: var(--condensed) !important;
  font-size: 6.4rem !important;
  font-weight: 900 !important;
  color: transparent !important;
  -webkit-text-stroke: 2px #f3edda74;
  line-height: 1;
  transition: -webkit-text-stroke-color .4s;
  animation: lineUp .75s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--d, 0s);
  position: absolute;
  top: 0; left: 0;
}
.why-item:hover .why-num-inner { -webkit-text-stroke-color: var(--offwhite); }

.why-item h3 {
  font-family: var(--condensed);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--offwhite);
  margin-bottom: .8rem;
  line-height: 1;
}
.why-item h3 .lw { overflow: hidden; padding-bottom: .15em; }
.why-item p {
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(246,244,241,.5);
  transition: color .4s;
}
.why-item:hover p { color: rgba(246,244,241,.7); }

.why-tag {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(246,244,241,.6);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}
.why-item:hover .why-tag { opacity: .8; transform: translateY(0); }

/* ══ SERVICES (carrousel) ══ */
#offers { background: var(--offwhite); }

.svc-header {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 3rem;
}
.svc-list {
  position: relative;
  border-top: 1px solid var(--border);
}
.svc-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.4rem;
  padding: 1.6rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.svc-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--svc-bg, var(--maroon));
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.76,0,.24,1);
  z-index: 0;
}
.svc-item:hover::before { transform: translateY(0); }

.svc-body, .svc-arrow { position: relative; z-index: 1; }
.svc-body { padding-left: 3.5rem; }

.svc-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
.svc-arrow-link {
  display: none;
  position: absolute;
  top: 1.6rem;
  right: 1rem;
  z-index: 3;
  font-size: 1.3rem;
  opacity: .25;
  transition: opacity .3s, transform .3s, color .3s;
  color: var(--dark);
}
.svc-arrow {
  font-size: 1.3rem;
  opacity: .25;
  transition: opacity .3s, transform .3s, color .3s;
  color: var(--dark);
  position: absolute;
  top: 1.6rem;
  right: 1rem;
  z-index: 1;
}
.svc-item:hover .svc-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
  color: var(--svc-accent, var(--offwhite));
}

.svc-title-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--maroon);
  transition: -webkit-text-stroke-color .3s;
}
.svc-item:hover .svc-title-outline,
.svc-item.active .svc-title-outline { -webkit-text-stroke-color: var(--offwhite); }

.svc-title {
  font-family: var(--condensed);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1;
  transition: color .3s;
  color: var(--dark);
}
.svc-item:hover .svc-title { color: var(--svc-accent, var(--offwhite)); }

.svc-hook {
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: opacity .25s ease .08s, max-height .3s ease, margin .3s ease, color .3s;
}
.svc-item:hover .svc-hook { opacity: .75; max-height: 60px; margin-top: .5rem; color: var(--svc-accent, var(--offwhite)); }

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: opacity .25s ease .12s, max-height .3s ease, margin .3s ease;
}
.svc-item:hover .svc-tags { opacity: 1; max-height: 120px; margin-top: .7rem; }

.svc-tags li {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid rgba(243,237,218,.3);
  color: var(--svc-accent, var(--offwhite));
  white-space: nowrap;
}

/* Carrousel logos */
.svc-carousel-wrap {
  position: relative;
  width: 100%;
  padding-left: 3.5rem;
  overflow: hidden;
  opacity: 0;
  height: 0;
  margin-top: 0;
  grid-column: 1 / -1;
  z-index: 1;
  transition: opacity .3s ease, height .3s ease, margin .3s ease;
}
.svc-item:hover .svc-carousel-wrap {
  opacity: 1;
  height: 56px;
  margin-top: 1.6rem;
  margin-bottom: 1rem;
  transition: height .3s ease, margin .3s ease, opacity .3s ease .3s;
}
.svc-carousel { overflow: hidden; width: 100%; }
.svc-carousel-wrap::before,
.svc-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.svc-carousel-wrap::before {
  left: 2rem;
  background: linear-gradient(to right, var(--svc-bg, #593137) 40%, transparent);
}
.svc-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--svc-bg, #593137) 40%, transparent);
}
.svc-carousel-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  will-change: transform;
}
.svc-carousel-track img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .7;
  flex-shrink: 0;
}

.svc-mobile-arrow { display: none; }

.svc-more {
  margin-top: 4rem;
  font-size: .88rem;
  font-weight: 400;
  color: rgba(47,47,47,.45);
  text-align: center;
}
.svc-more a {
  color: var(--maroon);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: opacity .2s;
}
.svc-more a:hover { opacity: .7; }

/* ══ AUDIT ══ */
#audit-section { background: var(--offwhite); padding-bottom: 5rem; }

.audit-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4rem;
  position: relative;
  min-height: 380px;
}

/* Flèche SVG zig-zag passant par chaque chiffre */
.audit-line {
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  height: 100%;
}
.audit-line svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Étapes — alternance haut/bas */
.audit-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 .3rem;
  position: relative;
  z-index: 1;
  background: var(--offwhite);
  width: 22%;
}

/* 01 et 03 : en haut */
.audit-step:nth-child(2),
.audit-step:nth-child(4) {
  align-self: flex-start;
}

/* 02 et 04 : en bas */
.audit-step:nth-child(3),
.audit-step:nth-child(5) {
  align-self: flex-end;
}

/* Gros chiffre — toujours en haut du texte */
.audit-step-num-wrap {
  position: relative;
  height: auto;
  min-height: 5rem;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: .8rem;
  z-index: 2;
  background: transparent;
}

.audit-big-num {
  display: block;
  font-family: var(--condensed) !important;
  font-size: 5rem !important;
  font-weight: 900 !important;
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(89,49,55,.22);
  line-height: 1;
  transition: -webkit-text-stroke-color .35s;
  animation: lineUp .75s cubic-bezier(.22,1,.36,1) both;
  background: var(--offwhite);
  padding: 0 .2em;
}
.audit-step:hover .audit-big-num {
  -webkit-text-stroke-color: rgba(89,49,55,.55);
}

/* Titre style page */
.audit-step-title {
  font-family: var(--condensed);
  font-weight: 900;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.2px;
  color: var(--dark);
  margin-bottom: .8rem;
}
.audit-step-title .lw { overflow: visible; padding-bottom: .2em; }
.audit-step-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--maroon); }

.audit-step p {
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(47,47,47,.55);
  max-width: 22ch;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .audit-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .audit-line { display: none; }
  .audit-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0;
    gap: 1.2rem;
  }
  .audit-step-num-wrap {
    height: auto;
    width: auto;
    flex-shrink: 0;
    overflow: visible;
    margin-bottom: 0;
  }
  .audit-big-num { font-size: 3.5rem !important; padding: 0; }
  .audit-step p { max-width: 100%; margin: 0; }
  .audit-step-title .lw { display: inline; }
}



/* ══ CTA FINAL ══ */
#cta-final {
  background: var(--maroon);
  position: relative;
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  padding-bottom: 80px;
  text-align: center;
  margin-top: 2rem;
}
#cta-final p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(246,244,241,.7);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  /* ── Hero ── */
  .hero-bg-text { display: none; }
  #hero {
    background: linear-gradient(180deg, rgba(89,49,55,.12) 0%, var(--offwhite) 40%);
  }
  .hero-content {
    padding: 0 28px;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    margin-top: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-65%);
    z-index: 2;
  }
  .hero-content h1 { align-items: flex-start; margin-bottom: 1.4rem; }
  .hero-sub { text-align: left; font-size: .95rem; margin-bottom: 2rem; max-width: 38ch; }
  .hero-btns { justify-content: center; flex-direction: row; width: 100%; }
  .hero-btns .btn-text { display: none; }
  .hero-btns .btn-fill { width: 100%; text-align: center; }
  .hero-elevator-wrap { justify-content: flex-start; }
  .hero-elevator { align-items: flex-start; }

  /* Stats restaurées en bas */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    bottom: 38px;
    background: var(--offwhite);
  }
  .hero-stat { padding: 1rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .hero-stat:nth-child(2n) { border-right: none; }
  .hero-stat:nth-child(3), .hero-stat:nth-child(4) { border-bottom: none; }
  .hero-stat-num { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .hero-stat-label { font-size: .6rem; }
  .hero-ticker { bottom: 0; }

  /* ── Why ── */
  .why-item { padding: 2.4rem 1.4rem; }
  .why-item h3 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .why-num-inner { font-size: 5rem !important; }

  /* ── Section titres ── */
  .sec-title { font-size: clamp(3rem, 11vw, 4rem); }
  .sec-eyebrow { margin-bottom: 1rem; }

  /* ── Services ── */
  .svc-item { padding: 1.4rem 1.2rem 0.8rem; }
  /* Cacher les flèches — remplacées par le texte "Appuyer pour découvrir" */
  .svc-mobile-arrow { display: none !important; }

  /* Indicateur visuel "tapez pour ouvrir" */
  .svc-item:not(.active) .svc-body::after {
    content: 'Appuyer pour découvrir';
    display: block;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(47,47,47,.3);
    margin-top: 1.2rem;
    text-align: center;
  }

  /* ── Audit ── */
  .audit-line { display: none; }
  .audit-flow {
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
  }
  .audit-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 2rem 0;
    background: transparent;
    width: 100%;
    gap: 1.2rem;
    position: relative;
  }
  /* Ligne verticale reliant les étapes */
  .audit-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3.25rem;
    top: 4.2rem;
    bottom: 0;
    width: 1.5px;
    background: rgba(89,49,55,.2);
    z-index: 0;
  }
  .audit-step-num-wrap {
    height: auto;
    width: auto;
    min-width: 6.5rem;
    flex-shrink: 0;
    overflow: visible;
    margin-bottom: 0;
    background: var(--offwhite);
    position: relative;
    z-index: 1;
  }
  .audit-big-num {
    font-size: 4rem !important;
    padding: 0 .3em;
    background: var(--offwhite);
  }
  .audit-step-body { margin-top: .4rem; }
  .audit-step-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: .5rem;
  }
  .audit-step-title .lw { display: inline; }
  .audit-step p { font-size: .88rem; max-width: 100%; margin: 0; }

  /* ── Sections — espacements ── */
  #why      { padding: 60px 0; }
  #offers   { padding: 60px 0; }
  #audit-section { padding: 60px 0 4rem; }

  /* ── CTA final ── */
  #cta-final {
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(60px + 60px);
    padding-bottom: 60px;
  }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-fill { width: 100%; text-align: center; }
}

@media (max-width: 1099px) {
  /* Services mobile */
  .svc-link { display: none; }
  .svc-arrow-link { display: block; }
  .svc-item.active .svc-arrow-link { opacity: 1; color: var(--svc-accent, var(--offwhite)); }
  .svc-body { padding-left: 1.2rem; }
  .svc-title { font-size: clamp(2.4rem, 9vw, 3.3rem); }
  .svc-carousel-wrap::before,
  .svc-carousel-wrap::after { display: none !important; }
  .svc-carousel-wrap { padding: 0 1.2rem; }
  .svc-mobile-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .4rem 0 0;
    margin-top: .2rem;
    color: var(--dark);
    opacity: .35;
    transition: opacity .25s, color .25s;
    pointer-events: none;
    grid-column: 1 / -1;
    z-index: 1;
  }
  .svc-mobile-arrow svg { transition: transform .35s cubic-bezier(.76,0,.24,1); }
  /* Désactiver hover sur mobile */
  .svc-item:hover::before { transform: translateY(101%) !important; }
  .svc-item:hover .svc-title { color: var(--dark) !important; }
  .svc-item:hover .svc-title-outline { -webkit-text-stroke-color: var(--maroon) !important; }
  .svc-item:hover .svc-hook { opacity: 0 !important; max-height: 0 !important; margin-top: 0 !important; }
  .svc-item:hover .svc-tags { opacity: 0 !important; max-height: 0 !important; margin-top: 0 !important; }
  .svc-item:hover .svc-carousel-wrap { opacity: 0 !important; height: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
  .svc-item:hover .svc-arrow { opacity: .25 !important; transform: none !important; color: var(--dark) !important; }
  .svc-item:not(.active) .svc-title-outline { -webkit-text-stroke-color: var(--maroon) !important; }
  /* État actif */
  .svc-item.active::before { transform: translateY(0) !important; }
  .svc-item.active .svc-title { color: var(--svc-accent, var(--offwhite)) !important; }
  .svc-item.active .svc-title-outline { -webkit-text-stroke-color: var(--offwhite) !important; }
  .svc-item.active .svc-hook { opacity: .75 !important; max-height: 60px !important; margin-top: .5rem !important; color: var(--svc-accent, var(--offwhite)); }
  .svc-item.active .svc-tags { opacity: 1 !important; max-height: 120px !important; margin-top: .7rem !important; }
  .svc-item.active .svc-carousel-wrap { opacity: 1 !important; height: 44px !important; margin-top: 1rem !important; margin-bottom: .6rem !important; }
  .svc-item.active .svc-arrow { opacity: 1 !important; color: var(--svc-accent, var(--offwhite)) !important; }
  .svc-item.active .svc-mobile-arrow { opacity: 1; color: var(--svc-accent, var(--offwhite)); }
  .svc-item.active .svc-mobile-arrow svg { transform: rotate(180deg); }
  .svc-item.active { padding-bottom: 1.2rem; }
}

@media (min-width: 1100px) {
  .hero-elevator-wrap { height: clamp(5rem, 7.5vw, 7.2rem); }
  .hero-elevator-item { font-size: clamp(4rem, 6.5vw, 6.2rem); height: clamp(5rem, 7.5vw, 7.2rem); }
  .hero-content .l { font-size: clamp(4rem, 6.5vw, 6.2rem); }
  .hero-sub { font-size: 1.2rem; }
  .why-item { padding: 3rem 2.4rem; }
  .stat-item { padding: 3.2rem 2rem; }
  .svc-item { padding: 2rem; }
  .svc-title { font-size: clamp(2rem, 3vw, 3rem); line-height: .92; }
}

/* ══ MEDIA QUERIES HAUTEUR D'ÉCRAN ══ */

/* Écrans très courts (< 600px de hauteur) — téléphones paysage, petits laptops */
@media (max-height: 600px) {
  #hero {
    height: auto;
    min-height: 100svh;
    padding-bottom: 38px; /* ticker */
  }
  .hero-content {
    margin-top: 0;
    padding-top: 90px;
    padding-bottom: 1rem;
  }
  .hero-content h1 { margin-bottom: 1rem; }
  .hero-sub { margin-bottom: 1.2rem; font-size: .95rem; }
  .hero-btns { gap: .8rem; }
  .hero-stats {
    position: static;
    grid-template-columns: repeat(4, 1fr);
    background: var(--offwhite);
    border-top: 1px solid var(--border);
    opacity: 1;
    animation: none;
  }
  .hero-stat { padding: .8rem 1rem; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-stat-label { font-size: .6rem; }
}

/* Écrans courts (600–750px de hauteur) — smartphones compacts, laptops 13" */
@media (min-height: 600px) and (max-height: 750px) {
  .hero-content {
    margin-top: -3rem;
    padding-top: 80px;
  }
  .hero-content h1 { margin-bottom: 1.2rem; }
  .hero-sub { margin-bottom: 1.6rem; }
  .hero-stat { padding: .9rem 1.2rem; }
  .hero-stat-num { font-size: clamp(1.6rem, 3vw, 2.2rem); }
}

/* Écrans moyens (750–850px de hauteur) */
@media (min-height: 750px) and (max-height: 850px) {
  .hero-content { margin-top: -4rem; }
  .hero-stat { padding: 1rem 1.5rem; }
}

/* Grand écran très court en paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    height: auto;
    min-height: unset;
    padding: 70px 0 38px;
  }
  .hero-content {
    margin-top: 0;
    padding: 0 36px 1rem;
  }
  .hero-bg-text { display: none; }
  .hero-stats {
    position: static;
    grid-template-columns: repeat(4, 1fr);
    opacity: 1;
    animation: none;
    background: var(--offwhite);
    border-top: 1px solid var(--border);
  }
  .hero-stat { padding: .6rem 1rem; }
  .hero-stat-num { font-size: 1.4rem; }
}

/* ══ HAUTEURS MAC (900–1100px) ══ */

/* MacBook 13" / Air — hauteur utile ~770–830px après barre navigateur */
@media (min-height: 750px) and (max-height: 900px) and (min-width: 1100px) {
  .hero-content {
    margin-top: -2rem;
    padding-top: 90px;
  }
  .hero-content h1 { margin-bottom: 1.4rem; }
  .hero-sub { margin-bottom: 1.8rem; font-size: 1rem; }
  .hero-stat { padding: 1rem 1.5rem; }
  .hero-stat-num { font-size: clamp(1.8rem, 3vw, 2.4rem); }
  .hero-stat-label { font-size: .62rem; }
}

/* MacBook Pro 14"/16" — hauteur utile ~900–980px */
@media (min-height: 900px) and (max-height: 1000px) and (min-width: 1100px) {
  .hero-content { margin-top: -4rem; }
  .hero-stat { padding: 1rem 1.8rem; }
}