/* tarifs.css — Tom Web Studio V5 */

/* ── Tarifs hero ──────────────────────────────────────────── */
.tarifs-hero {
  background: var(--bg-green);
  padding: clamp(6rem, 12vw, 9rem) var(--px) clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
}
.tarifs-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 1.25rem; max-width: 640px;
}
.tarifs-hero-sub {
  font-size: 1.05rem; line-height: 1.8; color: var(--text-muted);
  max-width: 560px;
}

/* ── Cards tarifs ─────────────────────────────────────────── */
.tarifs-cards-section {
  padding: var(--py) var(--px);
  background: var(--bg);
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  align-items: start;
}

.tarif-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.tarif-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Featured (Sur Mesure) */
.tarif-card--featured {
  background: var(--khaki-dark);
  border-color: transparent;
  color: #fff;
}

/* Card head */
.tarif-card-head { margin-bottom: 2rem; }

.tarif-badge {
  display: inline-block;
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--khaki); margin-bottom: 1.5rem;
}
.tarif-badge--featured { color: rgba(168,197,160,0.85); }

.tarif-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}
.tarif-amount {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
}
.tarif-card--featured .tarif-amount { color: #fff; }
.tarif-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: 0.6rem;
}
.tarif-card--featured .tarif-currency { color: rgba(255,255,255,0.5); }
.tarif-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.15rem;
}
.tarif-card--featured .tarif-period { color: rgba(255,255,255,0.4); }

.tarif-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.tarif-card--featured .tarif-tagline { color: rgba(255,255,255,0.58); }

/* Features list */
.tarif-features {
  list-style: none;
  padding: 0; margin: 0 0 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  flex: 1;
}
.tarif-features li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.87rem; line-height: 1.55; color: var(--text-muted);
}
.tarif-card--featured .tarif-features li { color: rgba(255,255,255,0.65); }
.tarif-features li svg { flex-shrink: 0; margin-top: 0.15em; color: var(--khaki); }
.tarif-card--featured .tarif-features li svg { color: #a8c5a0; }

.tarif-feature--muted { opacity: 0.4; }
.tarif-feature--muted svg { color: var(--border-med) !important; }

/* Card foot */
.tarif-card-foot { margin-top: auto; }
.tarif-card-foot .btn { display: block; text-align: center; }
.tarif-card--featured .btn-primary {
  background: #fff;
  color: var(--khaki-dark);
}
.tarif-card--featured .btn-primary:hover {
  background: var(--bg-green);
  box-shadow: none;
  transform: translateY(-1px);
}

.tarif-note {
  text-align: center;
  font-size: 0.77rem;
  color: var(--text-light);
  margin-top: 0.85rem;
}
.tarif-card--featured .tarif-note { color: rgba(255,255,255,0.35); }

.tarifs-note-global {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Comparatif ───────────────────────────────────────────── */
.comparatif-section {
  background: var(--bg-alt);
  padding: var(--py) var(--px);
}

.comparatif-wrap {
  max-width: 860px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.comparatif {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg);
}

.comparatif thead tr { background: var(--khaki-dark); }

.comparatif th {
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: none; white-space: nowrap;
}
.comparatif .col-critere {
  color: rgba(255,255,255,0.5);
  font-weight: 500; font-size: 0.66rem;
}
.comparatif .col-surmesure { color: #a8c5a0; }
.comparatif th span {
  display: block;
  font-size: 0.64rem; font-weight: 400;
  letter-spacing: 0.03em; text-transform: none;
  margin-top: 2px;
  color: rgba(255,255,255,0.4);
}
.comparatif .col-surmesure span { color: rgba(168,197,160,0.55); }

.comparatif td, .comparatif tbody th {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-muted);
}
.comparatif tr:last-child td,
.comparatif tr:last-child th { border-bottom: none; }
.comparatif tr:nth-child(even) td,
.comparatif tr:nth-child(even) th { background: var(--bg-alt); }

.comparatif tbody th {
  font-weight: 600; font-size: 0.85rem;
  color: var(--text); min-width: 200px;
  text-align: left;
}
.comparatif td {
  text-align: center;
  min-width: 150px;
  font-size: 0.85rem;
}
.comparatif td:last-child { color: var(--khaki); font-weight: 600; }

.icon-yes { color: var(--khaki); }
.icon-no  { color: var(--border-med); opacity: 0.7; }

/* ── FAQ Tarifs ───────────────────────────────────────────── */
.tarifs-faq-section {
  background: var(--bg);
  padding: var(--py) var(--px);
}

/* ── CTA final ────────────────────────────────────────────── */
.tarifs-cta-section {
  background: var(--khaki-dark);
  padding: var(--py) var(--px);
}
.tarifs-cta {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.tarifs-cta .section-eyebrow { color: rgba(168,197,160,0.75); margin-bottom: 1rem; }
.tarifs-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 1.1rem;
}
.tarifs-cta p {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  line-height: 1.75; margin-bottom: 2.25rem;
}
.tarifs-cta .btn-primary {
  background: #fff;
  color: var(--khaki-dark);
  display: inline-flex; justify-content: center;
}
.tarifs-cta .btn-primary:hover {
  background: var(--bg-green);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ── Mobile comparatif (hidden by default, shown < 768px) ──── */
.comparatif-mobile { display: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .tarifs-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 2rem; }

  /* Table masquée, fiches verticales affichées */
  .comparatif-wrap { display: none; }
  .comparatif-mobile {
    display: flex; flex-direction: column; gap: 1rem;
    max-width: 480px; margin: 0 auto;
  }
  .cm-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .cm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }
  .cm-badge {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--khaki);
  }
  .cm-price {
    font-size: 1.1rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em;
  }
  .cm-card--featured .cm-header { background: var(--khaki-dark); border-color: transparent; }
  .cm-card--featured .cm-badge { color: rgba(168,197,160,0.85); }
  .cm-card--featured .cm-price { color: #fff; }
  .cm-list { list-style: none; padding: 0; margin: 0; }
  .cm-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border);
    font-size: 0.83rem; gap: 0.5rem;
  }
  .cm-list li:last-child { border-bottom: none; }
  .cm-key { color: var(--text-muted); flex-shrink: 0; }
  .cm-val { font-weight: 600; color: var(--text); text-align: right; }
  .cm-val.cm-yes { color: var(--khaki); }
  .cm-val.cm-no  { color: var(--text-light); font-weight: 400; }
  .cm-card--featured .cm-list li { border-color: rgba(255,255,255,0.07); }
  .cm-card--featured .cm-key { color: rgba(255,255,255,0.50); }
  .cm-card--featured .cm-val { color: #fff; }
  .cm-card--featured .cm-val.cm-yes { color: #a8c5a0; }
  .cm-card--featured .cm-val.cm-no  { color: rgba(255,255,255,0.28); font-weight: 400; }
}

@media (max-width: 480px) {
  .tarif-card { padding: 2rem 1.5rem; }
  .tarif-amount { font-size: 2.8rem; }
  .tarifs-cta .btn-primary { width: 100%; }
}
