.page-tarifs {
  --tarifs-bg: #ffffff;
  --tarifs-bg-soft: #f6f7f5;
  --tarifs-surface: #ffffff;
  --tarifs-text: #161616;
  --tarifs-muted: #4b4b4b;
  --tarifs-border: #dfe3dd;
  --tarifs-accent: #1f8f5f;
  --tarifs-accent-dark: #14724b;
  --tarifs-shadow: 0 12px 32px rgba(15, 18, 15, 0.08);
  color: var(--tarifs-text);
  background: var(--tarifs-bg);
}

.page-tarifs .tarifs-container { max-width: 1180px; margin: 0 auto; }
.page-tarifs h1, .page-tarifs h2, .page-tarifs h3 { color: var(--tarifs-text); letter-spacing: -0.02em; }
.page-tarifs p, .page-tarifs li, .page-tarifs td, .page-tarifs th { color: var(--tarifs-muted); }
.page-tarifs .tarifs-hero, .page-tarifs .tarifs-section, .page-tarifs .tarifs-final-cta { padding: 52px 0; }
.page-tarifs .tarifs-section, .page-tarifs .tarifs-final-cta { background: #fff; }
.page-tarifs .tarifs-hero { background: var(--anthracite); }
.page-tarifs #tarifs-explication { background: var(--anthracite); }
.page-tarifs #tarifs-simulateur { background: var(--tarifs-bg-soft); }
.page-tarifs #tarifs-reassurance { background: var(--anthracite); }
.page-tarifs .tarifs-final-cta { background: var(--tarifs-bg-soft); }
.page-tarifs .tarifs-hero .tarifs-hero-copy h1,
.page-tarifs .tarifs-hero .tarifs-hero-copy p {
  color: #f5f5f5;
}
.page-tarifs .tarifs-hero .tarifs-hero-copy {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
}
.page-tarifs .tarifs-hero .tarifs-eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f5f5f5;
}
.page-tarifs .tarifs-hero .tarifs-hero-media {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
.page-tarifs #tarifs-explication > .tarifs-container > h2,
.page-tarifs #tarifs-explication > .tarifs-container > p {
  color: #f5f5f5;
}
.page-tarifs #tarifs-reassurance > .tarifs-container > h2 {
  color: #f5f5f5;
}
.page-tarifs .tarifs-eyebrow { display: inline-flex; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--tarifs-border); background: #fff; font-size: .83rem; color: var(--tarifs-text); font-weight: 700; margin: 0 0 14px; }
.page-tarifs .tarifs-icon { margin-right: 8px; vertical-align: middle; }
.page-tarifs .tarifs-hero-grid { display: grid; gap: 20px; }
.page-tarifs .tarifs-hero-copy, .page-tarifs .tarifs-hero-media, .page-tarifs .tarifs-sim-card, .page-tarifs .tarifs-final-card, .page-tarifs .tarifs-reassurance-card, .page-tarifs .tarifs-factor-card { background: var(--tarifs-surface); border: 1px solid var(--tarifs-border); border-radius: 22px; box-shadow: var(--tarifs-shadow); }
.page-tarifs .tarifs-hero-copy, .page-tarifs .tarifs-sim-card, .page-tarifs .tarifs-final-card { padding: 26px; }
.page-tarifs .tarifs-hero h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.1; margin-bottom: 10px; }
.page-tarifs .tarifs-hero-subtitle { font-size: 1.08rem; line-height: 1.6; margin-bottom: 0; }
.page-tarifs .tarifs-hero-proof { margin: 12px 0 0; font-weight: 700; color: #f5f5f5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-tarifs .tarifs-hero-proof .tarifs-icon { color: #66d19c; }
.page-tarifs .tarifs-hero .tarifs-sim-form { margin-top: 18px; }
.page-tarifs .tarifs-hero-media { overflow: hidden; display: flex; }
.page-tarifs .tarifs-hero-media picture { display: block; width: 100%; height: 100%; }
.page-tarifs .tarifs-hero-media img { width: 100%; height: 100%; min-height: clamp(260px, 44vw, 430px); object-fit: cover; display: block; }
.page-tarifs .tarifs-cta-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-tarifs .tarifs-cta-row--hero .tarifs-btn { flex: 1 1 220px; }

.page-tarifs .tarifs-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; border-radius: 999px; padding: 12px 20px; border: 1px solid transparent; font-weight: 700; text-decoration: none; line-height: 1.15; transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.page-tarifs .tarifs-btn:hover { transform: translateY(-1px); }
.page-tarifs .tarifs-btn-primary { background: var(--tarifs-accent); color: #fff; border-color: var(--tarifs-accent); }
.page-tarifs .tarifs-btn-primary:hover { background: var(--tarifs-accent-dark); border-color: var(--tarifs-accent-dark); color: #fff; }
.page-tarifs #tarifs-btn-calcul { background: var(--anthracite); border-color: var(--anthracite); }
.page-tarifs #tarifs-btn-calcul:hover { background: #000; border-color: #000; }
.page-tarifs .tarifs-btn-secondary { background: #fff; color: var(--tarifs-text); border-color: var(--tarifs-text); }
.page-tarifs .tarifs-btn-secondary:hover { background: var(--tarifs-text); color: #fff; border-color: var(--tarifs-text); }
.page-tarifs .tarifs-btn-large { width: 100%; }

.page-tarifs .tarifs-section h2, .page-tarifs .tarifs-final-cta h2 { font-size: clamp(1.5rem, 2.8vw, 2.35rem); margin-bottom: 14px; }
.page-tarifs .tarifs-table-title { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin: 34px 0 14px; color: var(--tarifs-text); }
.page-tarifs .tarifs-table-title .tarifs-icon { color: #2aa7d6; }
.page-tarifs .tarifs-table-wrap { margin-top: 16px; border: 1px solid var(--tarifs-border); border-radius: 18px; background: #fff; box-shadow: var(--tarifs-shadow); overflow: auto; }
.page-tarifs .tarifs-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.page-tarifs .tarifs-table thead { background: #171717; }
.page-tarifs .tarifs-table th, .page-tarifs .tarifs-table td { padding: 20px 22px; text-align: left; border-bottom: 1px solid #ecefec; font-size: 1rem; line-height: 1.55; }
.page-tarifs .tarifs-table thead th { color: #fff; border-bottom: 0; font-weight: 700; font-size: .98rem; }
.page-tarifs .tarifs-table tbody th { font-weight: 700; color: var(--tarifs-text); }
.page-tarifs .tarifs-table tbody tr:nth-child(even) { background: #f9faf8; }
.page-tarifs .tarifs-table tbody tr { transition: background-color .2s ease; }
.page-tarifs .tarifs-table tbody tr:hover { background: #f0f5f1; }
.page-tarifs .tarifs-price-cell { font-weight: 700; color: var(--tarifs-text); }
.page-tarifs .tarifs-table-note { margin-top: 16px; margin-bottom: 14px; font-size: 1rem; line-height: 1.6; padding: 16px 18px; border-left: 4px solid #c4a76c; background: #fff; border-radius: 12px; border: 1px solid var(--tarifs-border); }

.page-tarifs .tarifs-factors-grid, .page-tarifs .tarifs-reassurance-grid { display: grid; gap: 14px; }
.page-tarifs .tarifs-factor-card, .page-tarifs .tarifs-reassurance-card { padding: 18px; }
.page-tarifs .tarifs-factor-card h3, .page-tarifs .tarifs-reassurance-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.page-tarifs .tarifs-factor-card p, .page-tarifs .tarifs-reassurance-card p { margin: 0; line-height: 1.58; }
.page-tarifs .tarifs-sim-card p { margin-top: 0; }
.page-tarifs .tarifs-sim-card { box-shadow: 0 24px 60px rgba(22, 22, 22, 0.18); }
.page-tarifs .tarifs-sim-form { margin-top: 16px; }
.page-tarifs .tarifs-sim-modes { border: 1px solid var(--tarifs-border); border-radius: 14px; background: #fff; padding: 12px; margin: 0 0 14px; display: grid; gap: 8px; }
.page-tarifs .tarifs-sim-modes legend { color: var(--tarifs-text); font-weight: 700; margin-bottom: 6px; }
.page-tarifs .tarifs-sim-modes label { display: flex; align-items: center; gap: 8px; color: var(--tarifs-text); font-weight: 500; }
.page-tarifs .tarifs-sim-input { display: grid; gap: 8px; color: var(--tarifs-text); font-weight: 600; margin-bottom: 12px; }
.page-tarifs .tarifs-sim-input input { min-height: 48px; border: 1px solid var(--tarifs-border); border-radius: 12px; padding: 10px 12px; font-size: 1rem; color: var(--tarifs-text); }
.page-tarifs .tarifs-sim-input input:focus { outline: 2px solid rgba(31, 143, 95, 0.24); outline-offset: 1px; }
.page-tarifs .tarifs-sim-result { margin-top: 14px; border: 1px solid #cde6d8; border-radius: 12px; background: #edf8f1; color: #0e643f; font-weight: 700; padding: 12px; }
.page-tarifs .tarifs-sim-result.is-error { border-color: #e1b8b8; background: #fff2f2; color: #8e2525; }
.page-tarifs .tarifs-sim-note { margin: 10px 0 0; font-weight: 600; color: var(--tarifs-text); }
.page-tarifs .tarifs-sim-disclaimer { margin-top: 8px; margin-bottom: 0; font-size: .95rem; }
.page-tarifs .tarifs-sim-cta { margin-top: 16px; }
.page-tarifs .tarifs-sim-cta--hidden { display: none; }
.page-tarifs .tarifs-final-card { text-align: center; }
.page-tarifs .tarifs-final-card p { max-width: 680px; margin: 0 auto; }
.page-tarifs .tarifs-final-card .tarifs-cta-row { justify-content: center; }
.page-tarifs .tarifs-hero .tarifs-sim-modes { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.page-tarifs .tarifs-hero .tarifs-sim-modes legend,
.page-tarifs .tarifs-hero .tarifs-sim-modes label,
.page-tarifs .tarifs-hero .tarifs-sim-input,
.page-tarifs .tarifs-hero .tarifs-sim-disclaimer,
.page-tarifs .tarifs-hero .tarifs-sim-note { color: #f5f5f5; }
.page-tarifs .tarifs-hero .tarifs-sim-disclaimer .tarifs-icon { color: #ffd88a; }
.page-tarifs .tarifs-hero .tarifs-sim-note .tarifs-icon { color: #ffd88a; }
.page-tarifs .tarifs-hero .tarifs-sim-modes legend { font-size: .98rem; }
.page-tarifs .tarifs-hero .tarifs-sim-modes label { font-size: 1rem; line-height: 1.45; padding: 2px 0; }
.page-tarifs .tarifs-hero .tarifs-sim-modes input[type="radio"] { accent-color: #45c082; width: 16px; height: 16px; }
.page-tarifs .tarifs-hero .tarifs-sim-input input { background: #fff; color: var(--tarifs-text); border-color: rgba(255, 255, 255, 0.35); }
.page-tarifs .tarifs-hero .tarifs-sim-input input::placeholder { color: #5d5d5d; }
.page-tarifs .tarifs-hero .tarifs-sim-input input { min-height: 52px; font-size: 1rem; }
.page-tarifs .tarifs-hero #tarifs-resultat { font-size: 1.04rem; line-height: 1.45; padding: 14px 15px; }
.page-tarifs .tarifs-hero .tarifs-btn { min-height: 52px; font-size: .98rem; }
.page-tarifs .tarifs-hero .tarifs-sim-disclaimer,
.page-tarifs .tarifs-hero .tarifs-sim-note { line-height: 1.55; }

.page-tarifs .pd-proof {
  background: #fff;
}

.page-tarifs .pd-proof-header {
  text-align: center;
  margin-bottom: 28px;
}

.page-tarifs .pd-proof-header h2 {
  margin-bottom: 10px;
}

.page-tarifs .pd-proof-header p {
  margin: 0 auto;
  max-width: 680px;
}

.page-tarifs .pd-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-tarifs .pd-gallery-card {
  background: #fff;
  border: 1px solid var(--tarifs-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--tarifs-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.page-tarifs .pd-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(18, 18, 18, 0.12);
}

.page-tarifs .pd-gallery-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #151515;
}

.page-tarifs .pd-gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.page-tarifs .pd-gallery-card:hover .pd-gallery-photo {
  transform: scale(1.02);
}

.page-tarifs .pd-gallery-meta {
  padding: 14px 14px 16px;
}

.page-tarifs .pd-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #6f5524;
  background: rgba(196, 167, 108, 0.2);
}

.page-tarifs .pd-gallery-meta p {
  margin: 0;
  line-height: 1.5;
}

.page-tarifs .pd-reviews-wrap {
  margin-top: 24px;
}

.page-tarifs .pd-social-proof {
  display: grid;
  gap: 12px;
  border: 1px solid var(--tarifs-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--tarifs-shadow);
  padding: 14px;
}

.page-tarifs .pd-social-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-tarifs .pd-social-main img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.page-tarifs .pd-note {
  margin: 0;
  color: #161616;
  font-size: .97rem;
}

.page-tarifs .pd-note strong {
  color: #111;
}

.page-tarifs .pd-count {
  margin: 4px 0 0;
  color: #5f5f5f;
  font-size: .92rem;
  font-weight: 700;
  color: #c4a76c;
}

.page-tarifs .pd-reviews-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-tarifs .pd-review-card {
  background: #fff;
  border: 1px solid var(--tarifs-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--tarifs-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.page-tarifs .pd-review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 167, 108, 0.65);
  box-shadow: 0 16px 34px rgba(19, 19, 19, 0.1);
}

.page-tarifs .pd-review-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-tarifs .pd-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #161616 0%, #404040 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .86rem;
  font-weight: 700;
}

.page-tarifs .pd-review-name {
  margin: 0;
  font-size: .94rem;
  color: #121212;
  font-weight: 700;
}

.page-tarifs .pd-review-date {
  margin: 0;
  font-size: .8rem;
  color: #797979;
}

.page-tarifs .pd-review-source {
  margin-left: auto;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6a6a6a;
  font-weight: 700;
}

.page-tarifs .pd-stars {
  margin: 9px 0 7px;
  font-size: .94rem;
  letter-spacing: 1px;
  color: #fbbc04;
  line-height: 1;
}

.page-tarifs .pd-review-text {
  margin: 0;
  line-height: 1.48;
  color: #2d2d2d;
  font-size: .92rem;
}

.page-tarifs .pd-cta-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .page-tarifs .tarifs-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: stretch; }
  .page-tarifs .tarifs-factors-grid, .page-tarifs .tarifs-reassurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-tarifs .tarifs-btn-large { width: auto; }
  .page-tarifs .pd-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-tarifs .pd-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-tarifs .pd-cta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .page-tarifs .tarifs-hero, .page-tarifs .tarifs-section, .page-tarifs .tarifs-final-cta { padding: 74px 0; }
  .page-tarifs .tarifs-factors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-tarifs .tarifs-reassurance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-tarifs .pd-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-tarifs .pd-social-proof {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 18px;
  }
  .page-tarifs .pd-social-proof .tarifs-btn {
    width: auto;
  }
  .page-tarifs .pd-reviews-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page-tarifs .tarifs-hero-copy, .page-tarifs .tarifs-sim-card, .page-tarifs .tarifs-final-card { padding: 20px; border-radius: 16px; }
  .page-tarifs .tarifs-factor-card, .page-tarifs .tarifs-reassurance-card { border-radius: 16px; }
  .page-tarifs .tarifs-table-title { margin-top: 26px; font-size: 1.22rem; }
  .page-tarifs .tarifs-table { min-width: 620px; }
  .page-tarifs .tarifs-table th, .page-tarifs .tarifs-table td { padding: 16px 14px; font-size: .95rem; }
}
