/* Grille publique des offres (/offres).
   S'appuie sur les jetons et le squelette de home.css (topbar, page-width,
   demo-button, site-footer) : ce fichier n'ajoute que le tarifaire. */

.offres-hero {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
}

.offres-hero h1 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.9rem auto 0;
  max-width: 21ch;
}

.offres-hero h1 span {
  color: var(--violet-600);
}

.offres-hero p {
  color: var(--navy-700);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 1.15rem auto 0;
  max-width: 60ch;
}

/* ─── Les cartes ─── */

.offres-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3rem;
}

.offre {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(6, 20, 61, 0.04), 0 12px 30px -22px rgba(6, 20, 61, 0.35);
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 1.4rem;
  position: relative;
}

/* Le palier mis en avant : c'est la porte d'entrée, pas le plus cher. */
.offre-phare {
  border-color: var(--violet-200);
  box-shadow: 0 1px 2px rgba(67, 32, 232, 0.06), 0 18px 40px -24px rgba(67, 32, 232, 0.5);
}

.offre-badge {
  background: var(--violet-100);
  border-radius: 999px;
  color: var(--violet-700);
  font-size: 0.72rem;
  font-weight: 600;
  left: 1.4rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.7rem;
  position: absolute;
  top: -0.72rem;
}

.offre-nom {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.offre-cible {
  color: var(--gray-500);
  font-size: 0.86rem;
  line-height: 1.5;
  margin-top: 0.3rem;
  min-height: 2.6em;
}

/* Hauteur réservée sur la plus haute des quatre (Base : montant sur une ligne +
   unité sur deux). Les montants n'ont ni la même taille — « Sur devis » est plus
   petit — ni le même nombre de lignes d'unité : sans cette réserve, les listes
   des cartes ne démarrent pas à la même hauteur. */
.offre-prix {
  align-items: baseline;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.1rem;
  min-height: 4.25rem;
  padding-top: 1.1rem;
}

.offre-montant {
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.offre-montant-devis {
  font-size: 1.45rem;
}

.offre-unite {
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Deux lignes réservées : Base porte « ou 12,99 € HT avec engagement 12 mois »,
   qui passe à la ligne. Sans cette réserve, les listes des quatre cartes ne
   démarrent pas à la même hauteur. */
.offre-note-prix {
  color: var(--violet-700);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 0.45rem;
  min-height: 2.7em;
}

.offre-inclus {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.offre-inclus li {
  color: var(--navy-800);
  display: flex;
  font-size: 0.89rem;
  gap: 0.55rem;
  line-height: 1.5;
}

.offre-inclus svg {
  color: var(--violet-600);
  flex: none;
  height: 1.05rem;
  margin-top: 0.12rem;
  width: 1.05rem;
}

/* Une option n'est PAS incluse dans le palier : elle ne doit pas se lire comme
   les autres puces. Icône « + » et couleur atténuée pour marquer la différence
   sans ajouter une ligne d'avertissement. */
.offre-option {
  color: var(--gray-500);
}

.offre-option svg {
  color: var(--gray-500);
}

.offre-reprise {
  color: var(--gray-500);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.5;
}

.offre-action {
  margin-top: auto;
  padding-top: 1.5rem;
}

.offre-bouton {
  background: var(--violet-600);
  border-radius: 0.7rem;
  color: var(--white);
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.72rem 1rem;
  text-align: center;
  transition: background 0.18s ease;
}

.offre-bouton:hover {
  background: var(--violet-700);
}

.offre-bouton-secondaire {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--navy-900);
}

.offre-bouton-secondaire:hover {
  background: var(--gray-50);
  border-color: var(--violet-200);
}

/* Même raison côté bas de carte : la mention de Base tient sur deux lignes, et
   c'est le bouton juste au-dessus qui se décalait. */
.offre-mention {
  color: var(--gray-500);
  font-size: 0.76rem;
  line-height: 1.45;
  margin-top: 0.6rem;
  min-height: 2.9em;
  text-align: center;
}

/* ─── Les deux étages de facturation ─── */

.etages {
  margin-top: 4.5rem;
}

.etages-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.etage {
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: 1.1rem;
  padding: 1.5rem;
}

.etage h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.etage p {
  color: var(--navy-700);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.etage-paliers {
  color: var(--violet-700);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.85rem;
}

/* ─── Comparatif au siège / à l'établissement ─── */

.comparatif {
  margin-top: 4.5rem;
}

.comparatif-wrap {
  border: 1px solid var(--gray-200);
  border-radius: 1.1rem;
  margin-top: 1.8rem;
  overflow-x: auto;
}

.comparatif table {
  border-collapse: collapse;
  min-width: 34rem;
  width: 100%;
}

.comparatif th,
.comparatif td {
  padding: 0.85rem 1.2rem;
  text-align: left;
}

.comparatif thead th {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.comparatif tbody tr + tr td {
  border-top: 1px solid var(--gray-100);
}

.comparatif tbody td {
  font-size: 0.92rem;
}

.comparatif td:first-child {
  font-weight: 600;
}

.comparatif .col-temposia {
  background: var(--violet-50);
  color: var(--violet-700);
  font-weight: 600;
}

.comparatif-note {
  color: var(--gray-500);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 0.9rem;
}

/* ─── Bandeau commun à toutes les offres ─── */

.inclus-partout {
  background: var(--navy-950);
  border-radius: 1.25rem;
  color: var(--white);
  margin: 4.5rem 0 5rem;
  padding: 2.4rem 2rem;
}

.inclus-partout h2 {
  font-size: 1.32rem;
  font-weight: 700;
  text-align: center;
}

.inclus-partout ul {
  display: grid;
  gap: 1rem 1.6rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.inclus-partout li {
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-size: 0.89rem;
  gap: 0.55rem;
  line-height: 1.5;
}

.inclus-partout svg {
  color: var(--violet-500);
  flex: none;
  height: 1.05rem;
  margin-top: 0.12rem;
  width: 1.05rem;
}

/* ─── Adaptatif ─── */

@media (max-width: 1080px) {
  .offres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inclus-partout ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .offres-hero {
    padding: 3rem 0 1.5rem;
  }

  .etages-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .offres-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .offre-cible {
    min-height: 0;
  }

  .inclus-partout ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
