/* ==========================================================================
   nettoyage-ventilation.fr — composants propres au site
   Complète la feuille de style de la charte AGM TEC (style.css).
   ========================================================================== */

.nav__item > a { white-space: nowrap; }

/* ------------------------------------------------- bandeau d'accueil
   La grande photographie de terrain, reprise de l'ancien site, avec les
   deux entrées de gamme posées dessus. Le voile sombre est plus léger que
   sur les autres pages : la photo doit rester lisible. */

.hero--accueil { min-height: min(84vh, 760px); display: flex; align-items: center; }
.hero--accueil .hero__inner { padding-block: clamp(3.4rem, 8vw, 6rem); }
.hero--accueil .hero__media img { opacity: .62; object-position: center 40%; }
.hero--accueil::after {
  background:
    linear-gradient(100deg, rgba(14, 27, 49, .93) 0%, rgba(14, 27, 49, .74) 46%, rgba(14, 27, 49, .3) 100%),
    linear-gradient(to top, rgba(14, 27, 49, .75) 0%, rgba(14, 27, 49, 0) 45%);
}
.hero--accueil .hero__text { max-width: 940px; }
.hero--accueil .hero__intro { margin-bottom: 2.4rem; }

/* Les deux boutons d'entrée de gamme : une image, un intitulé, un renvoi. */
.hero__choix {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr));
  max-width: 720px;
}

.choix {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem .9rem .9rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  color: #fff; text-decoration: none;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.choix:hover {
  transform: translateY(-3px); text-decoration: none; color: #fff;
  background: rgba(236, 108, 43, .18);
  border-color: var(--primary);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .32);
}
.choix__media {
  flex: none; width: 84px; height: 72px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); border-radius: var(--radius-sm);
  overflow: hidden;
}
.choix__media img { width: 100%; height: 100%; object-fit: contain; padding: .3rem; }
.choix__corps { display: block; min-width: 0; }
.choix__titre {
  display: block; font-family: var(--font); font-weight: 700; font-size: 1.04rem;
  line-height: 1.25; margin-bottom: .2rem;
}
.choix__desc {
  display: block; font-size: .855rem; line-height: 1.45;
  color: rgba(255, 255, 255, .76);
}
.choix__cta {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem;
  font-family: var(--font); font-weight: 600; font-size: .84rem; color: var(--primary);
}
.choix__cta::after { content: "→"; transition: transform .2s ease; }
.choix:hover .choix__cta { color: #fff; }
.choix:hover .choix__cta::after { transform: translateX(4px); }

/* Valeur longue dans le bandeau de chiffres : on resserre plutot que de couper. */
.stats__list strong.is-wide { font-size: clamp(1.35rem, 2.3vw, 1.95rem); white-space: nowrap; }

/* ---------------------------------------------------------- services */

.services {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr));
}
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.8rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__icone {
  width: 44px; height: 44px; margin-bottom: 1rem;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
}
.service__icone svg { width: 22px; height: 22px; }
.service h3 { font-size: 1.06rem; margin-bottom: .5rem; }
.service p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------- texte éditorial */

.chapo {
  font-size: 1.12rem; line-height: 1.68; color: var(--ink);
  padding-left: 1.1rem; border-left: 4px solid var(--primary);
  margin-bottom: 2.2rem;
}

.bloc-intro { max-width: 74ch; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); text-align: center; }
.bloc-intro h2::after { margin-inline: auto; }

.prose figure { margin: 2rem 0; }
.prose figure img { margin: 0 auto .7rem; }
.prose figcaption {
  font-size: .87rem; color: var(--muted); text-align: center;
  line-height: 1.55; max-width: 62ch; margin-inline: auto;
}

.usage h3 a { color: inherit; }
.usage h3 a:hover { color: var(--primary); text-decoration: none; }

/* --------------------------------------------- gabarit contenu + colonne */

.fiche {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(2rem, 4vw, 3.4rem); align-items: start;
}
/* Un tableau large ne doit pas élargir sa colonne : il défile à l'intérieur. */
.fiche__texte, .fiche__cote { min-width: 0; }
.fiche__cote { position: sticky; top: 5.6rem; display: grid; gap: 1.4rem; }

/* --------------------------------------------------------- blocs de côté */

.encart {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
  color: rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg); padding: 1.7rem 1.6rem 1.8rem;
}
.encart__titre { color: #fff; font-size: 1.08rem; margin-bottom: .7rem; }
.encart p { font-size: .93rem; margin-bottom: 1rem; }
.encart__tel { margin-bottom: 1.1rem; }
.encart__tel a { font-family: var(--font); font-size: 1.32rem; font-weight: 700; color: #fff; }
.encart__tel a:hover { color: var(--primary); text-decoration: none; }
.encart .btn { width: 100%; }

.fiche-pdf {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.fiche-pdf__titre { font-size: 1rem; margin-bottom: .6rem; }
.fiche-pdf__titre::after { display: none; }
.fiche-pdf p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.fiche-pdf .btn { width: 100%; }

.sommaire {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.sommaire__titre { font-size: .96rem; margin-bottom: .9rem; }
.sommaire__titre::after { display: none; }
.sommaire ul { list-style: none; margin: 0; padding: 0; }
.sommaire li { margin-bottom: .55rem; font-size: .93rem; }
.sommaire li:last-child { margin-bottom: 0; }
.sommaire a { color: var(--ink); }
.sommaire a:hover { color: var(--primary); }

/* ------------------------------------------- caractéristiques produit */

.specs {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow);
}
.specs + .specs { margin-top: 0; }
.specs__titre { font-size: 1.02rem; margin-bottom: 1.1rem; }
.specs__titre::after { display: none; }
.specs__groupe {
  font-family: var(--font); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
  margin: 1.4rem 0 .6rem;
}
.specs__groupe:first-of-type { margin-top: 0; }
.specs dl { margin: 0; }
.specs__ligne {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .62rem 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem;
}
.specs__ligne:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-family: var(--font); font-weight: 600; color: var(--ink); text-align: right; }

/* ------------------------------------------------ chiffres d'un appareil */

.mesures {
  display: grid; gap: 1px; list-style: none; margin: 0 0 2rem; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.mesures li { margin: 0; padding: 1.15rem 1rem; background: #fff; text-align: center; }
.mesures strong {
  display: block; font-family: var(--font); font-size: 1.28rem; font-weight: 800;
  color: var(--primary); line-height: 1.2; margin-bottom: .2rem;
}
.mesures span { font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* ---------------------------------------------------- contenu du pack */

/* Les puces orange de .prose ne s'appliquent pas a cette liste : chaque ligne
   porte deja sa quantite. */
.pack, .prose ul.pack { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .5rem; }
.prose ul.pack > li { padding-left: .95rem; }
.prose ul.pack > li::before { display: none; }
.pack li {
  display: flex; align-items: flex-start; gap: .85rem; margin: 0;
  padding: .72rem .95rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .94rem; line-height: 1.5;
}
.pack__qte {
  flex: none; min-width: 2.1rem; text-align: center;
  font-family: var(--font); font-weight: 700; font-size: .86rem;
  color: var(--primary); background: var(--primary-soft);
  border-radius: 999px; padding: .16rem .5rem;
}

/* --------------------------------------------------------- les étapes */

.etapes {
  display: grid; gap: 1.2rem; list-style: none; margin: 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  counter-reset: etape;
}
.etapes li {
  position: relative; margin: 0; padding: 1.5rem 1.4rem 1.5rem;
  background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--primary); border-radius: var(--radius);
}
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-family: var(--font); font-size: 1.9rem; font-weight: 800;
  color: var(--primary); opacity: .22; line-height: 1;
}
.etapes strong {
  display: block; font-family: var(--font); font-size: 1.05rem;
  color: var(--ink); margin-bottom: .4rem;
}
.etapes p { font-size: .93rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------- blocs deux colonnes */

.duo {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 3.6rem); align-items: center;
}
.duo--inverse .duo__media { order: -1; }
.duo__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: var(--surface-2);
}

/* ------------------------------------------------------------- grilles */

.grille-usages {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}
.usage {
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.usage h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.usage p { font-size: .93rem; color: var(--muted); margin: 0; }

.grille-atouts {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  counter-reset: atout;
}
.atout { position: relative; padding-top: 2.6rem; }
.atout::before {
  counter-increment: atout; content: counter(atout, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font); font-size: 1.5rem; font-weight: 800;
  color: var(--primary); opacity: .35;
}
.atout strong {
  display: block; font-family: var(--font); font-size: 1.04rem;
  color: var(--ink); margin-bottom: .45rem;
}
.atout p { font-size: .93rem; color: var(--muted); margin: 0; }

/* -------------------------------------------------- présentation gamme */

.produit-ligne {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.produit-ligne:last-child { border-bottom: 0; }
.produit-ligne:nth-child(even) .produit-ligne__media { order: 2; }
.produit-ligne__media {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.8rem;
}
.produit-ligne__media img { max-height: 320px; width: auto; margin-inline: auto; object-fit: contain; }
.produit-ligne__corps h2 { margin-bottom: .25rem; }
.produit-ligne__sous {
  font-family: var(--font); font-weight: 500; color: var(--muted); margin-bottom: 1rem;
}

/* ------------------------------------------------------ tableau comparatif */

.comparatif { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.comparatif th, .comparatif td {
  padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line);
}
.comparatif thead th { background: var(--dark); color: #fff; font-family: var(--font); }
.comparatif tbody th { font-family: var(--font-text); font-weight: 400; color: var(--muted); width: 32%; }
.comparatif tbody tr:nth-child(even) { background: var(--surface-2); }
.comparatif td { font-family: var(--font); font-weight: 600; color: var(--ink); }
.comparatif__boite {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.8rem 0;
}
.comparatif__boite table { min-width: 620px; margin: 0; }

/* Sous 700 px, deux colonnes de valeurs ne tiennent plus : le défilement
   latéral cachait la seconde machine. Chaque ligne devient donc une carte,
   avec le critère en tête et les valeurs annoncées par leur colonne. */
@media (max-width: 700px) {
  .comparatif__boite {
    overflow: visible; border: 0; border-radius: 0;
    box-shadow: none; background: none; margin: 1.5rem 0;
  }
  .comparatif__boite table,
  .comparatif { min-width: 0; width: 100%; display: block; }
  .comparatif tbody { display: block; }

  /* Les intitulés de colonnes sont repris ligne par ligne, en tête de valeur. */
  .comparatif thead { display: none; }

  .comparatif tbody tr,
  .comparatif tbody tr:nth-child(even) {
    display: block; margin-bottom: .9rem; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
  }
  .comparatif tbody tr:last-child { margin-bottom: 0; }

  .comparatif tbody th {
    display: block; width: auto; padding: .8rem 1.05rem;
    background: var(--surface-2); border-bottom: 1px solid var(--line);
    font-family: var(--font); font-weight: 600; font-size: .96rem;
    color: var(--ink); line-height: 1.4;
  }

  .comparatif tbody td {
    display: block; padding: .72rem 1.05rem;
    border-bottom: 1px solid var(--line-soft); font-size: .95rem;
  }
  .comparatif tbody td:last-child { border-bottom: 0; }
  .comparatif tbody td::before {
    content: attr(data-col); display: block;
    font-family: var(--font); font-size: .71rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary); margin-bottom: .12rem;
  }
  /* Une ligne sans intitulé de colonne garde sa valeur seule. */
  .comparatif tbody td:not([data-col])::before { display: none; }
}

/* --------------------------------------------------------- fiche produit */

.product h1 { font-size: clamp(1.7rem, 2.9vw, 2.35rem); }
.product__labels {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0 0 1.4rem; padding: 0;
}
.product__labels li { margin: 0; }
.label-tech {
  font-family: var(--font); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--mint);
  border-radius: 999px; padding: .34rem .8rem;
}

.video-produit {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: var(--dark); display: block;
}

/* --------------------------------------------------------------- article */

.article-tete { margin-bottom: 2.4rem; }
.article-tete__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  font-size: .86rem; color: var(--muted); margin-bottom: 1rem;
}
.article-tete__meta .card__tag { margin: 0; }
.article-tete h1 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
.article-tete__chapo { font-size: 1.06rem; color: var(--muted); margin: 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.4rem 0 0; }
.etiquette {
  font-size: .82rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .8rem;
}

.galerie {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.galerie figure { margin: 0; display: flex; flex-direction: column; }
.galerie img {
  margin: 0 0 .5rem; width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  border-radius: var(--radius); background: var(--surface-2); padding: .4rem;
}
.galerie figcaption { font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------ formulaire */

.formulaire__duo {
  display: grid; gap: 0 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}
.champ { display: block; margin-bottom: 1.2rem; }
.champ label {
  display: block; font-family: var(--font); font-weight: 500;
  font-size: .92rem; color: var(--ink); margin-bottom: .38rem;
}
.champ input, .champ select, .champ textarea {
  width: 100%; padding: .78rem .95rem;
  font: inherit; font-size: .97rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.champ textarea { resize: vertical; min-height: 9rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 0; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(236, 108, 43, .16);
}
.champ__erreur { display: block; margin-top: .35rem; font-size: .86rem; color: #c0392b; }
.champ--piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire__mention { font-size: .86rem; color: var(--muted); }

.alerte { border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.8rem; }
.alerte p:last-child { margin-bottom: 0; }
.alerte--ok { background: var(--mint); border: 1px solid rgba(20, 176, 144, .35); }
.alerte--ok h2 { color: var(--accent); margin-bottom: .5rem; }
.alerte--ok h2::after { display: none; }
.alerte--ko { background: #fdecea; border: 1px solid rgba(192, 57, 43, .3); color: #8e2a20; }

.coordonnees {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.7rem;
}
.coordonnees__titre { font-size: 1.05rem; margin-bottom: 1rem; }
.coordonnees__titre::after { display: none; }
.coordonnees h3 { font-size: .96rem; margin: 1.4rem 0 .5rem; }
.coordonnees__tel { margin-bottom: .3rem; }
.coordonnees__tel a { font-family: var(--font); font-size: 1.42rem; font-weight: 700; }
.coordonnees address { font-style: normal; line-height: 1.7; }
.coordonnees__note {
  font-size: .86rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.2rem;
}

/* ------------------------------------------------------------- label */

.label-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.2rem); align-items: center;
}
.label-band img { width: 100%; border-radius: var(--radius); }

/* --------------------------------------------------------- plan du site */

.plan {
  display: grid; gap: 2.4rem;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}
.plan__bloc--large { grid-column: 1 / -1; }
.plan h2 { font-size: 1.24rem; margin-bottom: 1rem; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { margin-bottom: .7rem; line-height: 1.5; }
.plan a { color: var(--ink); font-family: var(--font); font-weight: 500; font-size: .96rem; }
.plan a:hover { color: var(--primary); }
.plan__note { display: block; font-size: .84rem; color: var(--muted); }

/* ------------------------------------------------------------- adaptatif */

@media (min-width: 961px) and (max-width: 1200px) {
  .masthead__inner { gap: 1rem; }
  .nav__item > a { padding: .7rem .58rem; font-size: .89rem; }
  .masthead__cta { padding: .72rem 1.1rem; font-size: .86rem; }
}

@media (max-width: 1000px) {
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .fiche__cote { position: static; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
}

@media (max-width: 860px) {
  .duo, .produit-ligne, .label-band { grid-template-columns: minmax(0, 1fr); }
  .duo--inverse .duo__media,
  .produit-ligne:nth-child(even) .produit-ligne__media { order: -1; }
}

@media (max-width: 640px) {
  .hero--accueil { min-height: 0; }
  .hero--accueil .hero__media img { object-position: center 32%; }
  .choix { padding: .8rem .9rem; }
  .choix__media { width: 68px; height: 60px; }
}

@media (max-width: 520px) {
  .chapo { padding-left: .9rem; font-size: 1.05rem; }
  .produit-ligne__media { padding: 1.1rem; }
  .specs__ligne { flex-direction: column; gap: .15rem; }
  .specs dd { text-align: left; }
  .mesures { grid-template-columns: repeat(2, 1fr); }
}
