
.rates-hero {
  position: relative;
  min-height: 430px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(26, 31, 23, .58), rgba(29, 28, 19, .62)),
    url("../imgs/accueil/accueil-001.jpg") center 42% / cover no-repeat;
}

.rates-hero-content {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: center;
  padding: 55px 0 75px;
  text-align: center;
}

.rates-hero h1 {
  margin: 4px 0 14px;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: .95;
}

.rates-hero-content p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}

.rates-main {
  position: relative;
  padding: 76px 0 86px;
  background: var(--cream);
}

.rates-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.rates-heading h2 { margin-bottom: 14px; }
.rates-heading p { margin: 18px 0 0; color: var(--muted); }
.divider { display: block; width: 64px; height: 2px; margin: 0 auto; background: var(--gold); }

.rates-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rates-card-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 3px 4px 24px;
}

.rates-card-intro h3 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.rates-card-intro p { max-width: 340px; margin: 0; color: var(--muted); font-size: .88rem; text-align: right; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  scrollbar-color: var(--olive) var(--sand);
  scrollbar-width: thin;
}

.table-scroll:focus { outline: 3px solid rgba(125, 134, 84, .22); outline-offset: 3px; }

.pricing-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
  color: var(--ink);
  font-size: .87rem;
}

.pricing-table col.label-col {
  width: 220px;
}

.pricing-table col.price-col {
  width: auto;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.pricing-table tr > *:last-child { border-right: 0; }
.pricing-table tbody tr:last-child > * { border-bottom: 0; }

.pricing-table thead th {
  color: #fff;
  background: var(--olive-deep);
  font-size: .78rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.pricing-table thead tr:first-child th:not(:first-child) {
  width: calc((100% - 220px) / 5);
}

.pricing-table thead tr:nth-child(2) th {
  color: rgba(255, 255, 255, .82);
  background: var(--olive-dark);
  font-size: .73rem;
  font-weight: 600;
  text-transform: none;
}

.pricing-table thead th:first-child,
.pricing-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 220px;
  min-width: 220px;
  text-align: left;
}

.pricing-table thead th:first-child { z-index: 4; background: var(--olive-deep); }
.pricing-table tbody td:first-child { background: #fff; font-weight: 600; }
.pricing-table tbody tr:nth-child(even):not(.category) td { background: #fcfaf6; }
.pricing-table tbody tr:nth-child(even):not(.category) td:first-child { background: #fcfaf6; }

.pricing-table .category td {
  padding-top: 13px;
  padding-bottom: 13px;
  color: var(--olive-deep);
  background: var(--sand);
  font-weight: 700;
}

.pricing-table .category td:first-child {
  background: var(--sand);
  font-family: var(--serif);
  font-size: .98rem;
}

.pricing-table tbody tr > th[colspan] {
  padding: 15px;
  color: #fff;
  background: var(--gold);
  font-size: .8rem;
  letter-spacing: .1em;
}

.rates-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 6px 0;
  color: var(--muted);
}

.rates-note i { margin-top: 5px; color: var(--olive); }
.rates-note p { margin: 0; font-size: .88rem; }

.contract-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-top: 38px;
  padding: 34px 38px;
  border-radius: 18px;
  color: #fff;
  background: var(--olive-deep);
  box-shadow: var(--shadow);
}

.contract-card h2 { margin-bottom: 9px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.contract-card p { margin: 0; color: rgba(255, 255, 255, .78); }
.contract-card .eyebrow { color: #d5c5a8; }
.contract-card .btn { flex: 0 0 auto; background: #fff; color: var(--olive-deep); }
.contract-card .btn:hover { background: var(--sand); }

.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }

@media (max-width: 900px) {
  .rates-card-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
  .rates-card-intro p { text-align: left; }
  .contract-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .rates-hero { min-height: 380px; }
  .rates-hero-content { min-height: 285px; padding: 48px 0 60px; }
  .rates-main { padding: 54px 0 62px; }
  .rates-main > .container { width: min(100% - 16px, 1180px); }

  .rates-card {
    padding: 14px 8px 18px;
    border-radius: 15px;
  }

  .rates-card-intro { padding: 4px 7px 16px; }

  .table-scroll {
    margin-inline: 0;
    border-radius: 11px;
  }

  .pricing-table {
    min-width: 790px;
    font-size: .76rem;
  }

  .pricing-table col.label-col {
    width: 170px;
  }

  .pricing-table thead tr:first-child th:not(:first-child) {
    width: calc((100% - 170px) / 5);
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 7px;
  }

  .pricing-table thead th {
    font-size: .68rem;
    letter-spacing: .015em;
  }

  .pricing-table thead tr:nth-child(2) th {
    font-size: .65rem;
  }

  .pricing-table thead th:first-child,
  .pricing-table tbody td:first-child {
    width: 170px;
    min-width: 170px;
  }

  .pricing-table .category td:first-child {
    font-size: .88rem;
  }

  .stay-conditions {
    font-size: .95rem !important;
    line-height: 1.5 !important;
    padding: 1rem .85rem !important;
  }

  .stay-conditions strong {
    font-size: 1.05rem !important;
  }

  .contract-card { padding: 28px 24px; }
  .contract-card .btn { width: 100%; }
}

@media (max-width: 480px) {
  .pricing-table {
    min-width: 740px;
    font-size: .72rem;
  }

  .pricing-table col.label-col {
    width: 155px;
  }

  .pricing-table thead tr:first-child th:not(:first-child) {
    width: calc((100% - 155px) / 5);
  }

  .pricing-table thead th:first-child,
  .pricing-table tbody td:first-child {
    width: 155px;
    min-width: 155px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 9px 6px;
  }
}


.back-home {
    text-align: center;
    margin: 3rem 0 1rem;
}

.back-home .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}