/* Page Formules (plans.js) : simple, centrée sur les 4 cartes, Premium mise en avant */

.plans-page { max-width: 1120px; margin: 0 auto; padding: 8px 4px 40px; }

/* Promesse */
.plans-hero { text-align: center; padding: 28px 12px 26px; }
.plans-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: rgb(var(--brand-1-rgb) / .14); color: var(--accent); font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
}
.plans-eyebrow .ic { width: 14px; height: 14px; }
.plans-hero h1 { margin: 16px 0 12px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.02em; }
.plans-hero .grad { background: linear-gradient(90deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plans-lead { max-width: 560px; margin: 0 auto 24px; color: var(--muted); font-size: 16.5px; line-height: 1.55; }

.plans-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); }
.plans-toggle button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .2s, color .2s;
}
.plans-toggle button.active { background: var(--panel); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.plan-save { padding: 2px 8px; border-radius: 999px; background: rgba(34, 197, 94, .16); color: var(--up); font-size: 11px; font-weight: 800; }

/* Cartes */
.plans-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 22px 24px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--border);
  animation: plan-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms);
  transition: transform .25s, box-shadow .25s;
}
.no-anim .plan-card { animation: none; }
@keyframes plan-in { from { opacity: 0; transform: translateY(18px); } }
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.plan-card h3 { margin: 0; font-size: 19px; }
.plan-tagline { margin: 4px 0 18px; color: var(--muted); font-size: 13.5px; }
.plan-price { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.plan-price b { font-size: 38px; line-height: 1; letter-spacing: -.02em; }
.plan-price small { color: var(--muted); font-size: 12.5px; }
.plan-card ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.plan-card li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.plan-card li .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--accent); flex-shrink: 0; }

/* Premium : bordure dégradée, halo, légèrement surélevée */
.plan-card.featured {
  border: 2px solid transparent; transform: translateY(-10px);
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3)) border-box;
  box-shadow: 0 22px 60px rgb(var(--brand-1-rgb) / .28);
}
.plan-card.featured:hover { transform: translateY(-14px); }
.plan-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); color: #fff;
  font-size: 11.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 18px rgb(var(--brand-1-rgb) / .45);
}
.plan-ribbon .ic { width: 13px; height: 13px; }

/* Ultra : sombre et doré, dans les deux thèmes */
.plan-card.dark { background: linear-gradient(160deg, #22151a, #120b0e); border-color: #3a3220; color: #f1ead8; }
.plan-card.dark .plan-tagline, .plan-card.dark .plan-price small { color: #b6ab8f; }
.plan-card.dark li .ic { color: #e5c06a; }
.plan-card.dark h3 { color: #e5c06a; }

/* Boutons */
.plan-cta {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s;
}
.plan-cta:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--accent); }
.plan-cta:disabled { opacity: .6; cursor: default; }
.plan-cta.glow {
  border: 0; color: #fff; background: linear-gradient(90deg, var(--brand-1), var(--brand-2) 60%, var(--brand-1)); background-size: 200% 100%;
  box-shadow: 0 10px 26px rgb(var(--brand-1-rgb) / .42); animation: cta-shine 4s ease-in-out infinite;
}
.plan-cta.glow:hover { filter: brightness(1.08); box-shadow: 0 14px 32px rgb(var(--brand-1-rgb) / .55); }
@keyframes cta-shine { 50% { background-position: 100% 0; } }
.plan-cta.gold { border: 0; color: #1d1608; background: linear-gradient(90deg, #f0d48a, #d9a944); }

.plans-trust { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.plans-trust .ic { width: 15px; height: 15px; color: var(--up); flex-shrink: 0; }

/* Aperçu de l'analyse de portefeuille */
.xray {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; margin: 48px 0 28px; padding: 30px 34px;
  border-radius: 22px; border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 0% 0%, rgb(var(--brand-1-rgb) / .14), transparent 55%), var(--panel);
}
.xr-score { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.xr-gauge { position: relative; width: 190px; }
.xr-gauge svg { width: 100%; display: block; }
.xr-arc-bg, .xr-arc { fill: none; stroke-width: 10; stroke-linecap: round; }
.xr-arc-bg { stroke: var(--panel-2); }
.xr-arc { stroke: var(--wait); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.xray.in .xr-arc { stroke-dashoffset: calc(100 - var(--v)); }
.xr-num { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.xr-num b { font-size: 40px; line-height: 1; }
.xr-num small { color: var(--muted); font-size: 14px; }
.xr-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(245, 158, 11, .15); color: var(--wait); font-size: 12.5px; font-weight: 800; }
.xr-status .ic { width: 14px; height: 14px; }
.xr-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.xr-body h2 { margin: 6px 0 16px; font-size: 24px; letter-spacing: -.01em; }
.xr-alerts { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.xr-alerts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.xr-alerts li .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--wait); flex-shrink: 0; }
.xr-alerts li.locked span { filter: blur(5px); user-select: none; }
.xr-alerts li.locked .ic { color: var(--accent); }
.xr-body .plan-cta { width: auto; padding: 0 24px; margin-right: 12px; }

/* Comparatif et questions, repliés */
.plans-more, .plans-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.plans-more { margin-bottom: 14px; }
.plans-more summary, .plans-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px;
  font-weight: 700; cursor: pointer; list-style: none;
}
.plans-more summary::-webkit-details-marker, .plans-faq summary::-webkit-details-marker { display: none; }
.plans-more summary .ic, .plans-faq summary .ic { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
details[open] > summary .ic { transform: rotate(180deg); }
.plans-table-scroll { overflow-x: auto; padding: 0 12px 14px; }
.plans-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.plans-table th, .plans-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.plans-table thead th { font-size: 14px; }
.plans-table tbody th { text-align: left; font-weight: 500; }
.plans-table .featured { background: rgb(var(--brand-1-rgb) / .07); }
.pt-yes .ic { width: 17px; height: 17px; color: var(--up); }
.pt-no { color: var(--muted); }
.plans-faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.plans-faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.plans-legal { margin: 26px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.5; }

/* Lien Orpaille+ du menu du haut */
#top-nav a.nav-plus {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); color: #fff; border-radius: 999px; padding-left: 12px; padding-right: 12px; font-weight: 800;
}
#top-nav a.nav-plus.active { box-shadow: 0 0 0 2px rgb(var(--brand-1-rgb) / .4); }

@media (max-width: 1000px) {
  .plans-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .plan-card.featured { transform: none; }
  .plans-faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plans-cards { grid-template-columns: 1fr; }
  .xray { grid-template-columns: 1fr; padding: 24px 18px; text-align: left; }
  .plans-trust { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-card, .plan-cta.glow { animation: none; }
  .xr-arc { transition: none; }
}
