/* ==========================================================================
   PROGRAMMES — cartes Starter / Premium / Elite + tableau comparatif
   ========================================================================== */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: 24px; background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s; }
.plan > * { position: relative; }
.plan.hot {
  background: linear-gradient(180deg, var(--card2), var(--card)) padding-box, linear-gradient(160deg, var(--acc), rgba(111,168,255,.6) 45%, rgba(25,211,162,.15)) border-box;
  border: 1.5px solid transparent; box-shadow: 0 40px 90px -40px rgba(25,211,162,.6);
}
.plan.hot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 50% 0%, rgba(25,211,162,.16), transparent 55%); }
.plan-badge { position: absolute !important; top: -13px; left: 50%; transform: translateX(-50%); background: var(--acc); color: #03130A; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 24px -6px rgba(25,211,162,.6); white-space: nowrap; }
.plan-name { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .16em; color: var(--acc); }
.plan-head p { color: var(--mut); font-size: 14.5px; margin-top: 8px; min-height: 44px; }
.plan-amt { font-family: var(--display); font-weight: 800; font-size: 48px; letter-spacing: -.03em; line-height: 1; margin: 20px 0 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.plan-amt span { font-size: 26px; color: var(--mut); }
.plan-amt small { flex-basis: 100%; font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--mut); margin-top: 8px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin: 22px 0 24px; padding-top: 22px; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: #C9D0DD; line-height: 1.45; }
.plan li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(25,211,162,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319D3A2' stroke-width='3.5'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.plan li:first-child { color: var(--txt); font-weight: 600; }
.plan-note { font-size: 12.5px; color: var(--gold); margin: -10px 0 18px; }
.plan .btn { width: 100%; }
@media (hover: hover) { .plan:hover { transform: translateY(-8px); border-color: rgba(25,211,162,.45); box-shadow: 0 30px 70px -30px rgba(25,211,162,.45); } }

.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: var(--mut); font-size: 13.5px; text-align: center; }

/* ---------- Tableau comparatif */
.cmp { margin-top: 56px; }
.cmp-title { font-family: var(--display); font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 20px; }
.cmp-toggle, .cmp-hint { display: none; }
.cmp-scroll { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
.cmp table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 14px 18px; border-bottom: 1px solid rgba(38,52,73,.6); text-align: center; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { text-align: left; font-weight: 600; color: #C9D0DD; }
.cmp thead th { font-family: var(--display); font-size: 15px; font-weight: 700; padding-top: 20px; padding-bottom: 16px; background: var(--bg2); }
.cmp thead th small { display: block; font-family: var(--body); font-size: 12.5px; color: var(--mut); font-weight: 600; margin-top: 4px; }
.cmp thead th.hot { color: var(--acc); }
.cmp td:nth-child(3) { background: rgba(25,211,162,.045); }
.cmp tbody tr { transition: background .2s; }
.cmp tbody tr:hover { background: rgba(255,255,255,.02); }
.cmp .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(25,211,162,.14); color: var(--acc); font-weight: 800; font-size: 13px; }
.cmp .no { color: #4A5670; }
.cmp td.txt { font-weight: 700; font-size: 13.5px; color: var(--txt); }

/* ---------- Responsive */
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; gap: 26px; }
  .plan-head p { min-height: 0; }
}
/* Bouton "Voir ce qui est inclus" : seulement sur mobile */
.plan-more { display: none; }

@media (max-width: 700px) {
  /* Programmes empilés, Premium (recommandé) en premier, détail repliable */
  .plans { gap: 18px; margin-top: 34px; max-width: none; }
  .plan { padding: 26px 20px 20px; border-radius: 22px; }
  .plan.hot { order: -1; margin-top: 10px; }
  .plan-head p { font-size: 14px; margin-top: 6px; }
  .plan-amt { font-size: 40px; margin: 16px 0 2px; }
  .plan-amt span { font-size: 22px; }
  .plan-amt small { margin-top: 6px; }
  .plan-badge { font-size: 12px; }

  .plan-more {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    margin: 18px 0 14px; padding: 12px 16px; border-radius: 14px;
    border: 1px solid var(--line); background: rgba(255,255,255,.03);
    font-weight: 700; font-size: 14px; color: var(--txt);
  }
  .plan-more::after { content: '+'; font-family: var(--display); color: var(--acc); font-size: 20px; line-height: 1; transition: transform .25s; }
  .plan.open .plan-more::after { transform: rotate(45deg); }
  .plan ul { flex: none; margin: 0 0 18px; padding-top: 0; border-top: 0; gap: 10px; }
  .plan:not(.open) ul { display: none; }
  .plan-note { margin: -6px 0 14px; }
  .plan:not(.open) .plan-note { margin-top: 0; }
  .plan .btn { padding: 15px 22px; }
  /* Tableau replié derrière un bouton */
  .cmp { margin-top: 36px; text-align: center; }
  .cmp-title { font-size: 19px; margin-bottom: 14px; }
  .cmp-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(25,211,162,.35); color: var(--acc); font-weight: 700; font-size: 14px; background: rgba(25,211,162,.06); }
  .cmp.open .cmp-toggle { margin-bottom: 16px; }
  .cmp.open .cmp-hint { display: block; text-align: center; font-size: 12.5px; color: var(--mut); margin: -4px 0 12px; }
  .cmp:not(.open) .cmp-scroll { display: none; }
  /* Première colonne figée pendant le défilement */
  .cmp tbody th, .cmp thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
  .cmp thead th:first-child { background: var(--bg2); }
}
