/* =========================================================
   PRICING.CSS — AGON SALES MACHINE (REFONTE)
   ✅ Utilise le :root "SINGLE SOURCE OF TRUTH" fourni
   ✅ Compatible dark + [data-theme="agon-light"]
   ✅ Conserve tes classes existantes: .pricing-container .card .btn...
   ✅ Ajoute: .promo-bar .agon-hero .agon-value .agon-compare .agon-faq
   ========================================================= */

/* ========== 0) BASE ========== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a{ color:inherit; text-decoration:none; }
img,svg{ display:block; }
button{ font-family:inherit; }

/* Wrap */
.agon-wrap{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Petit glow doux (respecte light/dark) */
body::before{
  content:"";
  position: fixed;
  inset: -200px;
  pointer-events:none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(208,0,0,.16), transparent 55%),
    radial-gradient(700px 360px at 10% 18%, rgba(255,255,255,.06), transparent 55%);
  opacity: .9;
}

/* Assure contenu au-dessus (si ton inline style existe déjà, ça reste OK) */
body > *{ position: relative; z-index: 1; }

/* ========== 1) FIXED TOP UI ========== */
.currency-switch{
  position:fixed;
  top:18px;
  right:18px;
  z-index:50;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border: 1px solid var(--agon-border-color);
  background: color-mix(in srgb, var(--bg-body) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  font-weight:800;
  font-size:13px;
  letter-spacing:.2px;
}
.currency-switch:hover{
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.top-nav{
  position:fixed;
  top:18px;
  left:18px;
  z-index:50;
}
.login-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border: 1px solid var(--agon-border-color);
  background: color-mix(in srgb, var(--bg-body) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
  font-weight:800;
  font-size:13px;
  letter-spacing:.2px;
}


.login-icon{
  width:18px; height:18px;
  fill: color-mix(in srgb, var(--text-main) 90%, transparent);
}
.login-link:hover{
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* ========== 2) PROMO BAR ========== */
.promo-bar{
  position:relative;
  z-index:5;
  width: min(1120px, calc(100% - 40px));
  margin: 86px auto 10px; /* ✅ sous les boutons fixes */
}
.promo-inner{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  border-radius: 999px;
  border: 1px solid var(--agon-border-color);
  background: color-mix(in srgb, var(--surface-color) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.promo-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border: 1px solid color-mix(in srgb, var(--agon-red) 60%, var(--agon-border-color));
  background: color-mix(in srgb, var(--agon-red) 18%, transparent);
  color: var(--text-main);
  font-family: var(--font-title);
  letter-spacing:.8px;
  font-size:12px;
  text-transform:uppercase;
  white-space:nowrap;
}
.promo-text{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:baseline;
  font-weight:800;
  font-size:13px;
  color: color-mix(in srgb, var(--text-main) 92%, transparent);
}
.promo-sub{
  color: var(--text-dim);
  font-weight:700;
}

/* ========== 3) HERO ========== */
.agon-hero{ padding: 26px 0 10px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:22px;
  align-items:stretch;
}

.agon-kicker{
  display:inline-block;
  margin-bottom:10px;
  color: var(--text-dim);
  text-transform:uppercase;
  letter-spacing:1.6px;
  font-weight:900;
  font-size:12px;
}
.agon-headline{
  margin:0;
  font-family: var(--font-title);
  letter-spacing:.6px;
  text-transform:uppercase;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height:1.03;
  color: var(--text-main);
}
.agon-sub{
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 62ch;
}

.agon-proof{
  margin-top: 16px;
  display:grid;
  gap:8px;
  color: color-mix(in srgb, var(--text-main) 86%, transparent);
  font-weight:800;
  font-size:13px;
}
.agon-proof > div{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.agon-proof > div::before{
  content:"•";
  color: var(--agon-red);
  margin-top:-1px;
}

.agon-cta-row{
  margin-top: 18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 100px;
}

/* panel */
.agon-panel{
  border-radius: var(--radius);
  border: 1px solid var(--agon-border-color);
  background:
    radial-gradient(600px 260px at 50% 0%, color-mix(in srgb, var(--agon-red) 18%, transparent), transparent 62%),
    var(--surface-color);
  padding: 18px 18px 16px;
}

/* ========== 4) BUTTONS (keep classes) ========== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight:900;
  letter-spacing:.2px;
  font-size:14px;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease, background .12s ease;
  min-height: 44px;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn-outline{
  border-color: var(--agon-border-color);
  background: color-mix(in srgb, var(--surface-color) 65%, transparent);
  color: var(--text-main);
}
.btn-outline:hover{
  border-color: var(--border-strong);
}

.btn-fill{
  border-color: color-mix(in srgb, var(--agon-red) 60%, var(--agon-border-color));
  background: color-mix(in srgb, var(--agon-red) 22%, var(--surface-color));
  color: var(--text-main);
}
.btn-fill:hover{
  filter: brightness(1.06);
  border-color: color-mix(in srgb, var(--agon-red) 78%, var(--agon-border-color));
}

/* ========== 5) VALUE BLOCKS ========== */
.agon-value{ padding: 30px 0 10px; }

.value-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.agon-card{
  border-radius: var(--radius);
  border: 1px solid var(--agon-border-color);
  background: var(--surface-color);
  padding: 16px;
}
.agon-card .agon-kicker{
  margin:0 0 10px;
  color: var(--text-main);
}
.agon-card .agon-sub{
  margin:0;
  max-width:none;
  color: var(--text-dim);
}

/* ========== 6) COMPARE ========== */
.agon-compare{ padding: 34px 0 6px; }

.compare-table{
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--agon-border-color);
  background: var(--surface-color);
  overflow:hidden;
}

.ct-head, .ct-row{
  display:grid;
  grid-template-columns: 1.25fr .55fr .55fr .55fr;
  gap: 10px;
  align-items:center;
  padding: 12px 14px;
}
.ct-head{
  background: var(--bg-surface);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  color: var(--text-main);
  border-bottom: 1px solid var(--agon-border-color);
}
.ct-row{
  border-bottom: 1px solid var(--border-subtle);
  color: color-mix(in srgb, var(--text-main) 88%, transparent);
  font-weight: 800;
  font-size: 13px;
}
.ct-row:last-of-type{ border-bottom:none; }

.ct-dot{
  display:inline-flex;
  width:28px;
  height:28px;
  border-radius: var(--radius);
  align-items:center;
  justify-content:center;
  border: 1px solid var(--agon-border-color);
  background: var(--bg-surface);
  font-weight: 900;
}
.ct-dot.ok{
  border-color: color-mix(in srgb, var(--success-color) 55%, var(--agon-border-color));
  background: color-mix(in srgb, var(--success-color) 16%, var(--bg-surface));
}
.ct-dot.no{
  opacity:.75;
}

.ct-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  padding: 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--agon-border-color);
}

/* ========== 7) PRICING TITLE ========== */
.page-title{
  width: min(1120px, calc(100% - 40px));
  margin: 40px auto;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: clamp(34px, 4.4vw, 56px); 
  line-height: 1.03;
  color: var(--text-main);
  border-bottom: 0;
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pricing-container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 50px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.card{
  position:relative;
  border-radius: var(--radius);
  border: 1px solid var(--agon-border-color);
  background: var(--surface-color);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 520px;
}

.card.pro{
  border-color: color-mix(in srgb, var(--agon-red) 55%, var(--agon-border-color));
  background:
    radial-gradient(700px 260px at 50% 0%, color-mix(in srgb, var(--agon-red) 18%, transparent), transparent 62%),
    var(--surface-color);
}

.badge, .badge-2{
  position:absolute;
  top:14px;
  left:14px;
  padding: 7px 10px;
  border-radius: 999px;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .9px;
  font-size: 12px;
  border: 1px solid var(--agon-border-color);
  background: var(--bg-surface);
  color: var(--text-main);
}
.badge{
  border-color: color-mix(in srgb, var(--agon-red) 55%, var(--agon-border-color));
  background: color-mix(in srgb, var(--agon-red) 16%, var(--bg-surface));
}

.card-header{ padding: 56px 18px 14px; }

.plan-name{
  margin:0;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 22px;
  color: var(--text-main);
}

.price{
  margin-top: 10px;
  display:flex;
  align-items:baseline;
  gap: 10px;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 40px;
  line-height:1;
  color: var(--text-main);
}
.price span{
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  color: var(--text-dim);
  letter-spacing:.2px;
  text-transform:none;
}

.card-body{
  padding: 0 18px 14px;
  flex: 1;
}

.features{
  list-style:none;
  padding:0;
  margin: 10px 0 0;
  display:grid;
  gap: 10px;
}
.features li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-weight:800;
  font-size: 13px;
  color: color-mix(in srgb, var(--text-main) 86%, transparent);
}
.features li:not(.active){
  color: var(--text-muted);
}

.icon{
  width:20px; height:20px;
  flex:0 0 20px;
  fill: color-mix(in srgb, var(--text-main) 35%, transparent);
}
.icon.active{ fill: var(--success-color); }

.card-footer{
  padding: 14px 18px 18px;
  border-top: 1px solid var(--agon-border-color);
  background: var(--bg-surface);
}
.card-footer .btn{ width:100%; }

/* ========== 8) FAQ ========== */
.agon-faq{ padding: 40px 0 64px; }

.faq-list{
  margin-top: 18px;
  display:grid;
  gap: 12px;
}
.faq-item{
  border-radius: var(--radius);
  border: 1px solid var(--agon-border-color);
  background: var(--surface-color);
  overflow:hidden;
}
.faq-q{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
  padding: 14px 16px;
  background: transparent;
  border:0;
  color: color-mix(in srgb, var(--text-main) 92%, transparent);
  font-weight: 900;
  letter-spacing:.2px;
  cursor:pointer;
  text-align:left;
}
.faq-ic{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: var(--radius);
  border: 1px solid var(--agon-border-color);
  background: var(--bg-surface);
  font-weight: 900;
  color: var(--text-main);
}
.faq-a{
  padding: 0 16px 14px;
  color: var(--text-dim);
  font-weight: 800;
  font-size: 13.5px;
}
.faq-item.is-open{
  border-color: color-mix(in srgb, var(--agon-red) 55%, var(--agon-border-color));
  background:
    radial-gradient(700px 240px at 50% 0%, color-mix(in srgb, var(--agon-red) 14%, transparent), transparent 62%),
    var(--surface-color);
}
.faq-item.is-open .faq-ic{
  border-color: color-mix(in srgb, var(--agon-red) 55%, var(--agon-border-color));
  background: color-mix(in srgb, var(--agon-red) 14%, var(--bg-surface));
}

/* ========== 9) ANCHOR OFFSET ========== */
#pricing, #faq{ scroll-margin-top: 90px; }

/* ========== 10) RESPONSIVE ========== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .value-grid{ grid-template-columns: 1fr; }
  .pricing-container{ grid-template-columns: 1fr; }
  .card{ min-height: unset; }
  .page-title{ font-size: 34px; }
  .promo-inner{ border-radius: 12px; }
}

@media (max-width: 520px){
  .currency-switch{ top:12px; right:12px; padding:9px 12px; }
  .top-nav{ top:12px; left:12px; }
  .login-link{ padding:9px 12px; }
  .promo-bar{ margin-top: 76px; }
  .agon-headline{ font-size: 38px; }
  .btn{ width:100%; }
}
