/* Page Tarifs : reprend les polices/couleurs déjà utilisées dans style.css */

.page-tarifs main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.tarifs-hero {
  text-align: center;
  margin: -6px 0 10px;
}

.tarifs-hero-inner h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 5.8vw, 2.6rem);
  line-height: 1.25;
}

@media (max-width: 480px) {
  .tarifs-hero-inner h1 {
    font-size: 1.35rem;
  }
}

.tarifs-subtitle {
  margin: -4px 0 0;
  color: #55677e;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.45;
  font-weight: 400;
}

.tarifs-packages {
  margin-top: 18px;
  margin-bottom: 0;
}

.tarifs-asavoir {
  margin: 0 0 clamp(18px, 3vw, 34px);
}

.tarifs-asavoir-inner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  row-gap: 6px;
  padding: 0;
}

.tarifs-asavoir-icon {
  width: 44px;
  height: 44px;
  color: #34527c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  margin-top: 0;
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

.tarifs-asavoir-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.tarifs-asavoir-content {
  min-width: 0;
  text-align: left;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.tarifs-asavoir-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.tarifs-asavoir-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tarifs-asavoir-text p + p {
  margin-top: 8px;
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(12px, 1.6vw, 18px);
  align-items: stretch;
}

.tarifs-card {
  min-width: 0;
  /* un peu plus grand + contenu légèrement plus bas (réserve pour les badges) */
  padding: clamp(26px, 3vw, 34px) clamp(16px, 2.2vw, 22px) clamp(22px, 2.8vw, 28px);
  position: relative;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(121, 145, 174, 0.22);
  box-shadow: 0 10px 30px rgba(36, 51, 71, 0.06);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  min-height: 390px;
}

.tarifs-card-head {
  display: contents;
}

.tarifs-card-pricing {
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: -8px 0 4px;
  text-align: center;
}

.tarifs-card-pricing .tarifs-card-qtyline {
  grid-row: unset;
  margin: 0;
}

.tarifs-card-title {
  grid-row: 1;
  align-self: end;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1a2b48;
  margin: 2px 0 0;
  text-align: center;
}

.tarifs-card-subtitle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  color: #55677e;
}

.tarifs-card-qtyline {
  grid-row: 2;
  margin: -8px 0 10px;
  text-align: center;
  color: #55677e;
  font-weight: 500;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@supports not (grid-template-rows: subgrid) {
  .tarifs-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .tarifs-card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tarifs-card-title {
    grid-row: auto;
    min-height: 2.3em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .tarifs-card-qtyline {
    grid-row: auto;
  }

  .tarifs-features {
    grid-row: auto;
  }

  .tarifs-cta {
    grid-row: auto;
    margin-top: auto;
  }
}

.tarifs-card-price {
  margin: 0 0 16px;
  text-align: center;
  color: #55677e;
  font-weight: 500;
  font-size: 1.05rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tarifs-card-amount {
  color: #1a2b48;
  font-weight: 700;
}

.tarifs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(149, 164, 184, 0.18);
  border: 1px solid rgba(149, 164, 184, 0.55);
  color: #55677e;
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 12px;
  transform: none;
}

.tarifs-badge-strong {
  background: rgba(104, 136, 177, 0.18);
  border-color: rgba(104, 136, 177, 0.55);
  color: #34527c;
}

.tarifs-features {
  grid-row: 3;
  align-self: start;
  justify-self: center;
  width: min(100%, 18rem);
  max-width: 18rem;
  list-style: none;
  margin: -10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tarifs-features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  width: 100%;
  color: #3f4650;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: left;
}

.tarifs-cta {
  grid-row: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  justify-self: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: #7991ae;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.tarifs-cta:hover {
  background: #5c789c;
  transform: translateY(-1px);
}

.tarifs-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  background: rgba(199, 168, 120, 0.18);
  border: 1px solid rgba(199, 168, 120, 0.45);
  color: rgba(199, 168, 120, 0.95);
  font-weight: 900;
  font-size: 0.72rem;
  transform: translateY(1px);
}

/* Bannière « besoins spécifiques » */
.page-tarifs .cours-contact-hotel-banner-visual img {
  object-position: 72% center;
  transform: scale(0.9);
  transform-origin: 78% center;
}

@media (max-width: 900px) {
  .page-tarifs .cours-contact-hotel-banner-visual img {
    object-position: center center;
  }
}

@media (max-width: 900px) {
  .tarifs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tarifs-card {
    padding: 26px 18px 22px;
    min-height: 0;
  }

}

/* Offre « à l’unité » : bloc texte */
.tarifs-unit {
  margin: clamp(40px, 6vw, 64px) 0;
}

.tarifs-unit-inner {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.tarifs-unit-title {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1a2b48;
}

.tarifs-unit-price {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #55677e;
}

.tarifs-unit-amount {
  color: #1a2b48;
  font-weight: 700;
}

.tarifs-unit-lead {
  margin: 0 0 18px;
  color: #3f4650;
  line-height: 1.55;
  font-size: 0.98rem;
}

.tarifs-unit-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tarifs-unit-features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  color: #3f4650;
  font-size: 0.98rem;
  line-height: 1.3;
}

.tarifs-unit-closing {
  margin: 0;
  font-weight: 700;
  color: #34527c;
}

.tarifs-unit-link {
  color: #34527c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tarifs-unit-link:hover {
  color: #5c789c;
}

