/* Accueil bureau seulement (min-width: 1024px).
   Regles d'echelle et d'espacement reprises de d5efe14 (desktop-echelle.css),
   sans scroll-snap et sans les changements Tarifs.
   Complements: le hero doit tenir entierement dans le viewport (en-tete compris)
   a 1280x720, 1366x768, 1440x900 et 1920x1080. Pas de zoom/scale/transform global. */

@media (min-width: 1024px) {
  /* d5efe14: largeur du wrap 1160. Non applique a l'en-tete ni au pied:
     a 1280 px, le bandeau (nav + FR/EN + bouton) depasse un wrap de 1160. */
  main .wrap {
    max-width: 1160px;
  }

  /* d5efe14: padding des sections, etendu a toutes les sections d'accueil hors hero */
  main > section:not(.hero),
  main > .final,
  .sec,
  .final {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Hero: d5efe14 mettait padding 32/88, ce qui passe sous l'en-tete sticky (~93px).
     On garde l'intention (reduire le vide) mais on degage l'en-tete et on annule
     min-height: min(100svh, 940px) qui allongeait le hero au-dela du contenu. */
  .hero {
    min-height: 0;
    min-height: calc(100vh - 2px);
    min-height: calc(100dvh - 2px);
    padding-top: 108px;
    padding-bottom: 28px;
    justify-content: center;
  }

  /* d5efe14: H1 clamp(48px, 5vw, 68px) et margin-top 16. Un peu plus serre
     pour laisser la place a l'en-tete et au formulaire. */
  .hero h1 {
    font-size: clamp(44px, 4.2vw, 58px);
    margin-top: 10px;
  }

  .hero h1 .h1-eyebrow,
  .hero .h1-eyebrow {
    margin-bottom: 8px;
  }

  .hero__rate {
    margin-bottom: 10px;
  }

  .hero__sub {
    margin-top: 12px;
    font-size: 16px;
  }

  .hero__text.lead,
  .hero__text {
    margin-top: 8px;
    font-size: 15px;
  }

  .zip--hero {
    margin-top: 16px;
  }

  .zip--hero .zip__lbl {
    margin-bottom: 6px;
  }

  .zip--hero .zip__in,
  .zip--hero .zip__go {
    min-height: 44px;
  }

  .hero__alt {
    margin-top: 10px;
  }

  .hero__pts {
    margin-top: 16px;
  }

  /* d5efe14: titres de sections et cartes */
  h2,
  .h2,
  .sec__head h2,
  .pband h2,
  .final__box h2 {
    font-size: clamp(32px, 3.2vw, 44px);
  }

  .tiles__grid h3,
  .etapes h3 {
    font-size: 20px;
  }

  .lead {
    font-size: 17px;
  }

  .btn {
    min-height: 48px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .btn--sm {
    min-height: 40px;
  }

  .tiles__grid {
    margin-top: 20px;
    gap: 10px;
  }

  .tiles__grid li {
    padding: 16px;
  }

  .card {
    padding: 22px;
  }

  .card__ic {
    margin-bottom: 32px;
  }

  .forfaits__intro {
    margin: 24px 0 20px;
  }

  .cards {
    gap: 1px;
  }
}

/* Ecrans bas (720 et 768): resserrer encore typo et marges du hero, sans scale. */
@media (min-width: 1024px) and (max-height: 800px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(38px, 3.6vw, 48px);
    margin-top: 6px;
  }

  .hero h1 .h1-eyebrow,
  .hero .h1-eyebrow {
    margin-bottom: 6px;
    font-size: 10.5px;
    line-height: 1.4;
  }

  .hero__rate {
    margin-bottom: 6px;
  }

  .hero__sub {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.35;
  }

  .hero__text.lead,
  .hero__text {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.35;
  }

  .zip--hero {
    margin-top: 12px;
  }

  .zip--hero .zip__in,
  .zip--hero .zip__go {
    min-height: 40px;
  }

  .hero__alt {
    margin-top: 8px;
  }

  .hero__pts {
    margin-top: 10px;
  }
}

/* Bouton orange de « Commencer, c'est simple » centre horizontalement sur la page.
   Le lien texte reste a droite du bouton. Sous 1024 px, rien ne change. */
@media (min-width: 1024px) {
  #etapes .etapes__cta {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px 24px;
  }

  #etapes .etapes__cta .btn {
    grid-column: 2;
    justify-self: center;
  }

  #etapes .etapes__cta .etapes__link {
    grid-column: 3;
    justify-self: start;
  }
}

/* Notre promesse + boite avant/apres = une seule section.
   Titre en haut, 3 points empiles a gauche, boite a droite.
   Tient sous l'en-tete, sans defilement, aux 4 tailles. */
@media (min-width: 1024px) {
  #promesse.sec {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  #promesse .sec__head {
    gap: 8px;
    margin-bottom: 16px;
  }

  #promesse .sec__head h2 {
    font-size: clamp(28px, 2.6vw, 36px);
  }

  #promesse .promesse__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 32px;
    align-items: center;
  }

  #promesse .promesse__list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
  }

  #promesse .promesse__list li {
    padding: 16px 18px;
    column-gap: 16px;
  }

  #promesse .promesse__list h3 {
    font-size: 24px;
    margin: 0 0 6px;
  }

  #promesse .promesse__list p {
    font-size: 18px;
    line-height: 1.45;
  }

  #promesse .promesse__ic {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  #promesse .promesse__ic svg {
    width: 26px;
    height: 26px;
  }

  #promesse .avap__art {
    width: 100%;
  }

  #promesse .ba,
  #avant-apres .ba {
    aspect-ratio: 1080 / 1000;
    width: min(100%, calc(min(56vh, calc(100dvh - 16rem)) * 1080 / 1000));
    max-width: 100%;
    max-height: min(56vh, calc(100dvh - 16rem));
    height: auto;
    margin: 0;
  }

  #promesse .ba__layer,
  #promesse .ba__layer picture,
  #promesse .ba__layer img {
    object-fit: cover;
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  #promesse.sec {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  #promesse .sec__head {
    gap: 6px;
    margin-bottom: 10px;
  }

  #promesse .sec__head h2 {
    font-size: clamp(22px, 2vw, 28px);
  }

  #promesse .promesse__body {
    gap: 12px 24px;
  }

  #promesse .promesse__list {
    gap: 8px;
  }

  #promesse .promesse__list li {
    padding: 12px 14px;
    column-gap: 14px;
  }

  #promesse .promesse__list h3 {
    font-size: 22px;
    margin: 0 0 4px;
  }

  #promesse .promesse__list p {
    font-size: 17px;
    line-height: 1.4;
  }

  #promesse .promesse__ic {
    width: 46px;
    height: 46px;
  }

  #promesse .promesse__ic svg {
    width: 22px;
    height: 22px;
  }

  #promesse .ba,
  #avant-apres .ba {
    width: min(100%, calc(min(48vh, calc(100dvh - 13rem)) * 1080 / 1000));
    max-height: min(48vh, calc(100dvh - 13rem));
  }
}

/* Notre promesse : cadrage aux grands ecrans (1600 px et plus),
   proportionnel a celui de 1280x720 (largeur du contenu, taille de la
   boite avant/apres, vides, position sous l'en-tete de 93 px).
   Sous 1600 px, rien ne change. */
@media (min-width: 1600px) {
  #promesse .wrap {
    max-width: 90.625vw;
  }

  #promesse.sec {
    padding-top: calc((100dvh - 93px) * 16 / 627);
    padding-bottom: calc((100dvh - 93px) * 16 / 627);
  }

  #promesse .sec__head {
    gap: calc((100dvh - 93px) * 6 / 627);
    margin-bottom: calc((100dvh - 93px) * 10 / 627);
  }

  #promesse .sec__head h2 {
    font-size: clamp(28px, calc(25.6px * 100vmin / 720px), 52px);
  }

  #promesse .promesse__body {
    gap: calc((100dvh - 93px) * 12 / 627) 1.875vw;
    align-items: center;
  }

  #promesse .promesse__list {
    gap: calc((100dvh - 93px) * 8 / 627);
  }

  #promesse .promesse__list li {
    padding: calc((100dvh - 93px) * 12 / 627) calc(14 * 100vw / 1280);
    column-gap: calc(14 * 100vw / 1280);
  }

  #promesse .promesse__list h3 {
    font-size: clamp(22px, calc(22px * 100vmin / 720px), 44px);
    margin: 0 0 calc((100dvh - 93px) * 4 / 627);
  }

  #promesse .promesse__list p {
    font-size: clamp(17px, calc(17px * 100vmin / 720px), 34px);
    line-height: 1.4;
  }

  #promesse .promesse__ic {
    width: clamp(46px, calc(46px * 100vmin / 720px), 92px);
    height: clamp(46px, calc(46px * 100vmin / 720px), 92px);
    border-radius: calc(14px * 100vmin / 720px);
  }

  #promesse .promesse__ic svg {
    width: clamp(22px, calc(22px * 100vmin / 720px), 44px);
    height: clamp(22px, calc(22px * 100vmin / 720px), 44px);
  }

  #promesse .ba,
  #avant-apres .ba {
    width: min(100%, calc((100dvh - 93px) * 0.551 * 1080 / 1000));
    max-height: calc((100dvh - 93px) * 0.551);
  }
}

/* Secteur desservi : toute la section (titre, texte, carte, 29 villes, encadre)
   tient sous l'en-tete, sans defilement. Liste en 3 ou 4 colonnes. */
@media (min-width: 1024px) {
  #secteurs.sec {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  #secteurs .sec__head {
    gap: 8px;
    margin-bottom: 16px;
  }

  #secteurs .sec__head h2 {
    font-size: clamp(28px, 2.6vw, 36px);
  }

  #secteurs .sec__head .lead {
    font-size: 15px;
    margin-top: 0;
    max-width: 72ch;
  }

  #secteurs .sect__grid {
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
    gap: 20px 24px;
    align-items: start;
  }

  #secteurs .mapcard {
    position: static;
    padding: 12px;
  }

  #secteurs .mapcard svg {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(280px, 36vh);
    margin: 0 auto;
  }

  #secteurs .mapcard p {
    margin-top: 8px;
    padding-top: 8px;
  }

  #secteurs .cities-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-template-rows: repeat(10, auto);
    gap: 0 16px;
  }

  #secteurs .cities-col,
  #secteurs .cities {
    display: contents;
  }

  #secteurs .cities li {
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.3;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  #secteurs .notcity {
    margin-top: 14px;
    padding: 12px 16px;
    gap: 6px 16px;
  }

  #secteurs .notcity p {
    font-size: 16px;
  }
}

@media (min-width: 1440px) {
  #secteurs .cities-wrap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(8, auto);
  }

  #secteurs .mapcard svg {
    max-height: min(320px, 38vh);
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  #secteurs.sec {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  #secteurs .sec__head {
    gap: 4px;
    margin-bottom: 10px;
  }

  #secteurs .sec__head h2 {
    font-size: clamp(22px, 2vw, 28px);
  }

  #secteurs .sec__head .lead {
    font-size: 15px;
  }

  #secteurs .sect__grid {
    gap: 12px 20px;
  }

  #secteurs .mapcard {
    padding: 8px;
  }

  #secteurs .mapcard svg {
    max-height: min(200px, 30vh);
  }

  #secteurs .mapcard p {
    margin-top: 6px;
    padding-top: 6px;
  }

  #secteurs .cities-wrap {
    gap: 0 12px;
  }

  #secteurs .cities li {
    padding: 4px 0;
    font-size: 14px;
  }

  #secteurs .notcity {
    margin-top: 10px;
    padding: 8px 12px;
  }

  #secteurs .notcity p {
    font-size: 15px;
  }
}

/* Carte « Le plus populaire » (Nettoyage regulier), accueil FR et EN.
   Bureau et mobile. Pas de nouvelle animation ni de transition au survol.
   Le badge passe a #1A1A1A sur #FF7900 (AA 6,62:1) : choix a confirmer
   (Nicolas a garde le blanc sur orange pour les BOUTONS). */
#forfaits .card--pop {
  border: 3px solid #FF7900;
  box-shadow:
    0 22px 48px -16px rgba(11, 36, 25, 0.28),
    0 10px 24px -10px rgba(255, 121, 0, 0.28);
  background: #FFF8F2;
}

#forfaits .card--pop:hover {
  background: #FFF8F2;
}

#forfaits .card--pop .card__badge {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  color: #1A1A1A;
  background: #FF7900;
}

@media (min-width: 1024px) {
  #forfaits .cards {
    gap: 16px;
    padding: 12px 10px;
    overflow: visible;
  }

  /* Specificite haute : .js .rv.in met transform:none, y compris
     sous prefers-reduced-motion (avec !important). L'echelle est statique. */
  #forfaits .card--pop,
  #forfaits .card--pop.rv,
  .js #forfaits .card--pop.rv,
  .js #forfaits .card--pop.rv.in {
    transform: scale(1.04) !important;
    transform-origin: center center;
    z-index: 1;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  #forfaits .card--pop,
  #forfaits .card--pop.rv,
  .js #forfaits .card--pop.rv,
  .js #forfaits .card--pop.rv.in {
    transform: scale(1.04) !important;
  }
}

/* Services commerciaux : toute la section (titre, texte, bouton, photo)
   tient sous l'en-tete, sans defilement. Photo : ratio conserve, object-fit,
   hauteur max liee au viewport. Sous 1024 px, rien ne change. */
@media (min-width: 1024px) {
  #services.comsec {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  #services .sec__head {
    gap: 8px;
    margin-bottom: 12px;
  }

  #services .sec__head h2 {
    font-size: clamp(28px, 2.6vw, 36px);
  }

  #services .comsec__grid {
    gap: 24px 32px;
    margin-top: 8px;
    align-items: center;
  }

  #services .comsec__fig {
    width: min(100%, calc(min(46vh, calc(100dvh - 14rem)) * 387 / 516));
    max-width: 340px;
    margin-inline: 0;
  }

  #services .comsec__fig img,
  #services .comsec__fig img[width] {
    width: 100%;
    height: auto !important;
    aspect-ratio: 387 / 516 !important;
    object-fit: cover !important;
    object-position: 50% 15% !important;
    max-height: min(46vh, calc(100dvh - 14rem));
  }

  #services .comsec__txt .lead {
    margin: 0 0 16px;
    font-size: 16px;
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  #services.comsec {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  #services .sec__head {
    gap: 4px;
    margin-bottom: 8px;
  }

  #services .sec__head h2 {
    font-size: clamp(22px, 2vw, 28px);
  }

  #services .comsec__grid {
    gap: 16px 24px;
    margin-top: 4px;
  }

  #services .comsec__fig {
    width: min(100%, calc(min(42vh, calc(100dvh - 13rem)) * 387 / 516));
    max-width: 260px;
  }

  #services .comsec__fig img,
  #services .comsec__fig img[width] {
    max-height: min(42vh, calc(100dvh - 13rem));
  }

  #services .comsec__txt .lead {
    margin: 0 0 12px;
    font-size: 15px;
  }
}

/* CTA du bas : sourcil en haut, titre et points alignes,
   champ+bouton centres sur toute la carte, en bas. Bureau seulement. */
@media (min-width: 1024px) {
  .final__box {
    padding: 36px 56px 40px;
  }

  .final__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 40px;
    row-gap: 14px;
    align-items: start;
  }

  /* Les enveloppes cèdent la place : sourcil, titre, liste,
     formulaire et lien deviennent des cases de la grille. */
  .final__inner > div:not(.final__act),
  .final__act {
    display: contents;
  }

  .final__box .eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
    max-width: 100%;
  }

  .final__box h2 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(46px, 4vw, 58px);
    max-width: none;
    margin-top: 0;
    line-height: 1.05;
    align-self: start;
  }

  .final__box h2 em,
  [data-theme="dark"] .final__box h2 em {
    font-style: normal;
    font-weight: inherit;
  }

  /* Decale visuellement seulement (position relative) pour ne pas
     pousser le formulaire ni agrandir la carte. */
  .final .final__list {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: max-content;
    gap: 16px;
    width: max-content;
    max-width: 100%;
    margin: 0;
    justify-self: start;
    align-self: start;
    position: relative;
    left: 60px;
    top: 20px;
  }

  .final .final__list li {
    font-size: 15px;
    letter-spacing: 0.08em;
    gap: 10px;
    line-height: 1.3;
  }

  .final .final__list li::before {
    width: 22px;
    height: 22px;
    flex: none;
  }

  /* Filet conserve : il separe le rang titre/points du champ,
     centre au-dessus du formulaire (axe de la carte). */
  .final__act .zipx {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    position: relative;
    margin-top: 4px;
    padding-top: 18px;
    width: auto;
    max-width: min(100%, 320px);
  }

  .final__act .zipx::before {
    content: "";
    display: block;
    width: 56px;
    height: 1px;
    margin: 0 auto 16px;
    background: rgba(244, 248, 241, 0.35);
    pointer-events: none;
  }

  .final__act .zipx__row {
    width: 100%;
    max-width: 100%;
  }

  .final__act .zipx__in {
    flex: 1 1 auto;
    width: auto;
    min-width: 8ch;
  }

  .final__alt {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    text-align: center;
    margin: 0;
  }
}
