/* =====================================================
   MOVAWAY — PAGE TARIFS
   (header/footer/components/base sont chargés en amont)
   ===================================================== */

/* ============ HERO : H1 centré PAR-DESSUS l'image ============ */
.tarifs-hero {
  padding: 0;
  /* Pas de background explicite : sinon le z-index:-1 d'éventuels
     soulignements passerait derrière. */
}
.tarifs-hero .container {
  position: relative;
}
.tarifs-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.tarifs-hero-title {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  pointer-events: none;
  z-index: 2;
}
.tarifs-hero-title h1 {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

/* ============ INTRO ============ */
.tarifs-intro {
  background: #EFF1F4;
  padding: 100px 0 60px;
}
.tarifs-intro h2 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 24px;
}
.tarifs-intro p {
  max-width: 55%;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.tarifs-intro p u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ============ SECTIONS RÉSERVATION + PACKS (fond gris-bleu) ============ */
.tarifs-section {
  background: #EFF1F4;
  padding: 0 0 60px;
}
.tarifs-section.tarifs-packs {
  padding-bottom: 100px;
}
.tarifs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* ============ CARTE TARIF (blanche, header bleu) ============ */
.tarif-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.tarif-card-head {
  background: #297CFF;
  color: #fff;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
/* .txt-circle : décoration SVG ovale dessinée autour du texte
   (image officielle Movaway : trait "à la main" derrière le texte).
   isolation:isolate crée un contexte d'empilement local pour que
   le z-index:-1 du ::after reste DEVANT le fond bleu du header
   tout en passant derrière le texte. */
.tarif-card-head .txt-circle {
  position: relative;
  display: inline-block;
  padding: 5px 15px;
  line-height: 1.1em;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  isolation: isolate;
}
.tarif-card-head .txt-circle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 140%;
  background: url('https://movaway.fr/wp-content/themes/salient-child/img/txt-circle.svg') center/contain no-repeat;
  pointer-events: none;
  z-index: -1;
}
/* Quand le txt-circle est un <h6> (cas Pack Easy / Pack Premium) :
   on garde la déco SVG mais avec une typo de titre légèrement plus marquée */
h6.txt-circle,
.tarif-card-head h6.txt-circle {
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 800;
}
h6.tarif-card-price,
.tarif-card-price {
  color: #fff;
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.4rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  text-align: right;
}
.tarif-card-subprice {
  color: #fff;
  font-size: 1rem;
  margin: 0;
  text-align: right;
}
.tarif-card-subprice strong { font-weight: 700; }
.tarif-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tarif-card-body > p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.tarif-card-body > p strong { font-weight: 700; }

/* ============ LISTE DES CHARGES (réutilisée depuis detail.css) ============ */
.tarif-card-body .logement-charges-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.tarif-card-body .logement-charge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.tarif-card-body .logement-charge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============ ITEM ICÔNE + TEXTE (.iwithtext) — packs Easy & Premium
   Réplique du style WP : icône blanche centrée dans un rond bleu 60×60,
   texte décalé à droite via padding-left (icône en position:absolute). */
.tarif-card-body .iwithtext {
  position: relative;
  padding: 6px 0 6px 77px;
  min-height: 60px;
}
.tarif-card-body .iwithtext + .iwithtext {
  border-top: 1px dashed var(--border);
  padding-top: 18px;
  margin-top: 4px;
}
.tarif-card-body .iwt-icon {
  position: absolute;
  left: 0;
  top: 6px;
  width: 60px;
  height: 60px;
}
.tarif-card-body .iwithtext + .iwithtext .iwt-icon {
  top: 22px;
}
/* Rond bleu plein derrière l'icône SVG */
.tarif-card-body .iwt-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: 50%;
}
/* Icône SVG noire → blanche via filter ; padding 16px pour la marge interne */
.tarif-card-body .iwt-icon img {
  position: relative;
  width: 60px;
  height: 60px;
  padding: 16px;
  display: block;
  filter: var(--filter-light);
}
.tarif-card-body .iwt-text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tarif-card-body .iwt-text strong {
  display: inline-block;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 999px) {
  .tarifs-hero { padding: 0; }
  .tarifs-hero-title h1 {
    font-size: clamp(1.8rem, 1.2rem + 3vw, 2.8rem);
  }
  .tarifs-intro {
    padding: 60px 0 40px;
  }
  .tarifs-intro p { max-width: 100%; }
  .tarifs-section { padding: 0 0 40px; }
  .tarifs-section.tarifs-packs { padding-bottom: 60px; }

  .tarifs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tarif-card-body { padding: 24px; }
  .tarif-card-body .logement-charges-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .tarif-card-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px;
  }
  h6.tarif-card-price,
  .tarif-card-price,
  .tarif-card-subprice { text-align: left; }
  .tarif-card-body .logement-charges-list {
    grid-template-columns: 1fr;
  }
  .tarif-card-body .iwithtext {
    padding-left: 62px;
    min-height: 50px;
  }
  .tarif-card-body .iwt-icon {
    width: 50px;
    height: 50px;
  }
  .tarif-card-body .iwt-icon img {
    width: 50px;
    height: 50px;
    padding: 13px;
  }
}
