/* ==========================================================================
   THE ICON MARKETING : pages « Offres »
   Chargée après style.css et service.css, sur les quatre pages de formats.

   Même principe que calculateur.css : le gabarit, l'en-tête, le hero, la
   bannière, la FAQ et le formulaire viennent des deux feuilles précédentes.
   Ne vivent ici que les blocs qui n'existent nulle part ailleurs : la ligne
   de prix, le comparatif, le détail d'un format, le avant / après.

   La page porte body.page-service comme les pages de service : c'est ce qui
   lui donne l'en-tête, les champs de formulaire et le pied de page.
   ========================================================================== */

/* ==========================================================================
   TÊTES DE SECTION
   Communes aux quatre pages, sur fond clair comme sur fond sombre.
   ========================================================================== */
.fmt-head { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); max-width: 62rem; }
.fmt-title {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-top: 0.9rem;
  max-width: 24ch;
}
.fmt-lede {
  margin-top: 1.1rem;
  color: var(--anthracite);
  line-height: 1.6;
  max-width: 62ch;
}
.fmt-note {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--steel);
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  max-width: 74ch;
}

/* ==========================================================================
   LE PRIX
   Seul endroit du site où un tarif s'affiche. Les pages de service et
   l'accueil renvoient ici, et n'annoncent aucun montant.

   « À partir de » est porté par la ligne d'unité, sous le montant : mis
   devant, il se lit avant le chiffre et le chiffre perd sa force ; omis, le
   montant se lit comme un prix ferme, ce qu'il n'est pas.
   ========================================================================== */
.price-amount {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.9rem 0 0.2rem;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--onyx);
  font-variant-numeric: tabular-nums;
}
.price-unit {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  font-variant-numeric: normal;
}
/* ICON n'a pas de montant : « Sur devis » est un appel à l'action, pas une
   case vide. La taille descend pour que le mot ne dépasse pas la carte. */
.price-card [data-quote] .price-amount,
.price-amount.price-quote { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ==========================================================================
   COMPARATIF
   Le seul endroit où les trois formats se lisent côte à côte. Quatre colonnes
   sur fond sombre ; la mécanique est celle de .ba-table, pas ses classes :
   son repli mobile est écrit pour un avant / après et ne transpose pas à
   trois colonnes de formats.
   ========================================================================== */
.cmp-head-block { margin-bottom: clamp(2.2rem, 4vw, 3.2rem); max-width: 62rem; }
.cmp-title {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-top: 0.9rem;
  max-width: 26ch;
}
.cmp-lede { margin-top: 1.1rem; color: var(--silver); line-height: 1.6; max-width: 62ch; }

.cmp-table { border-top: 1px solid var(--line-dark); }
.cmp-head, .cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 0.7fr));
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--line-dark);
}
.cmp-head {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
}
.cmp-head span:not(:first-child) { text-align: center; }
.cmp-row { transition: background 0.3s ease, padding-left 0.3s ease; }
.cmp-row:hover { background: rgba(255, 255, 255, 0.03); padding-left: 1.2rem; }
.cmp-what { font-size: 0.92rem; line-height: 1.45; }
.cmp-cell { text-align: center; }
.cmp-on { color: var(--champagne); font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; }
.cmp-off { color: var(--steel); opacity: 0.65; font-size: 1.1rem; }

.cmp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.cmp-note { color: var(--silver); font-size: 0.9rem; line-height: 1.6; max-width: 56ch; }

/* ==========================================================================
   LE DÉTAIL D'UN FORMAT
   Trois ou quatre volets, chacun avec sa liste. .offer-list vient de
   service.css : même puce, même filet, la page reste de la même famille.
   ========================================================================== */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.6rem, 3vw, 2.8rem);
}
.pack-block { position: relative; }
.pack-num {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--onyx);
  background: var(--champagne);
  border-radius: 2px;
  padding: 0.2rem 0.45rem;
  width: max-content;
  margin-bottom: 0.85rem;
}
.pack-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.pack-block .offer-list { margin-bottom: 0; }

/* ==========================================================================
   CE QUI VIENT DU FORMAT PRÉCÉDENT
   ========================================================================== */
.herit { padding-top: 0; }
.herit-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--card-radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.herit-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.9rem;
}
.herit-title {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  max-width: 22ch;
}
.herit-text { color: var(--anthracite); font-size: 0.93rem; line-height: 1.6; margin-bottom: 1.2rem; max-width: 52ch; }
.herit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--onyx);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.25rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.herit-link:hover { color: var(--champagne); border-bottom-color: var(--champagne); }
.herit-list { border-top: 1px solid var(--line-light); }
.herit-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--anthracite);
}

/* ==========================================================================
   COMMENT CHOISIR
   ========================================================================== */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.pick-card {
  background: var(--white);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.pick-num { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: var(--steel); }
.pick-q { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.pick-a { color: var(--anthracite); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.pick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--onyx);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.25rem;
  width: max-content;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.pick-link:hover { color: var(--champagne); border-bottom-color: var(--champagne); }

/* ==========================================================================
   CE QUI BASCULE
   Les transformations décrites dans la présentation, sur fond sombre.
   ========================================================================== */
.shift-table { border-top: 1px solid var(--line-dark); }
.shift-head, .shift-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--line-dark);
}
.shift-head {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
}
.shift-before { color: var(--steel); font-size: 0.92rem; line-height: 1.45; }
.shift-arrow { color: var(--champagne); text-align: center; font-family: var(--font-mono); }
.shift-after { font-size: 0.92rem; font-weight: 700; line-height: 1.45; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .pick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .herit-card { grid-template-columns: 1fr; }
  .cmp-foot { flex-direction: column; align-items: flex-start; }

  /* La matrice se replie : le service passe sur sa propre ligne, les trois
     marques se rangent en dessous, chacune sous le nom de son format. Trois
     colonnes de symboles sans en-tête ne se liraient plus. */
  .cmp-head { display: none; }
  .cmp-row {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 0.5rem;
    padding: 1rem 0.3rem;
  }
  .cmp-what { grid-column: 1 / -1; font-weight: 700; }
  .cmp-cell { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
  .cmp-cell::before {
    content: attr(data-fmt);
    font-family: var(--font-mono);
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel);
  }

  /* Le avant / après passe à la verticale : la flèche devient un préfixe. */
  .shift-head { display: none; }
  .shift-row { grid-template-columns: 1fr; row-gap: 0.35rem; padding: 1rem 0.3rem; }
  .shift-arrow { display: none; }
  .shift-before::before,
  .shift-after::before {
    font-family: var(--font-mono);
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    margin-right: 0.4rem;
    color: var(--steel);
  }
  .shift-before::before { content: 'AUJOURD\0027HUI · '; }
  .shift-after::before { content: 'APRÈS · '; }
}

@media (max-width: 520px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-row, .pick-link, .herit-link { transition: none; }
}
