/* DataSAI - Cartes des formules des bootcamps (Essential, Professional, Career, Executive).
   Chaque formule a son identité (couleur, icône), les quatre cartes ont la même hauteur,
   boutons alignés en bas. Classes posées par le script formules_cartes.py.
   Direction A (.fx-a) : une couleur par formule. Direction B (.fx-b) : montée en gamme. */

.pricing-grid.fx-a, .pricing-grid.fx-b { align-items: stretch; }
.pricing-grid.fx-a .price-card, .pricing-grid.fx-b .price-card {
  display: flex; flex-direction: column; transform: none; border-radius: 20px;
}
.pricing-grid.fx-a .price-card:hover, .pricing-grid.fx-b .price-card:hover { transform: translateY(-6px); }
.pricing-grid.fx-a .price-card-body, .pricing-grid.fx-b .price-card-body {
  flex: 1; display: flex; flex-direction: column; padding: 30px 24px 26px;
}
.pricing-grid.fx-a .price-card.featured .price-card-body, .pricing-grid.fx-b .price-card.featured .price-card-body { padding-top: 30px; }
.pricing-grid .price-features { flex: 1; }
.pricing-grid.fx-a .price-features li.disabled, .pricing-grid.fx-b .price-features li.disabled { display: none; }

/* Couleur de chaque formule */
.price-card.f-essential    { --t: #34d399; --t2: 52,211,153; }
.price-card.f-professional { --t: #00d4ff; --t2: 0,212,255; }
.price-card.f-career       { --t: #f5dcb0; --t2: 245,220,176; }
.price-card.f-executive    { --t: #c084fc; --t2: 192,132,252; }

/* Bandeau du haut : « Formule recommandée » (Career) et « Formule complète » (Executive), même hauteur pour toutes */
.pricing-grid.fx-a .price-card-popular, .pricing-grid.fx-b .price-card-popular, .price-card .f-bandeau {
  position: static; box-sizing: border-box; height: 34px; line-height: 16px; padding: 9px; white-space: nowrap; overflow: hidden; font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; text-align: center;
}
.price-card .f-bandeau { color: transparent; background: transparent; user-select: none; }
.price-card.f-executive .f-bandeau { color: #1a0d2e; background: linear-gradient(90deg, #d8b4fe, #a855f7); border: 0; }

/* En-tête : icône + nom de la formule */
.f-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 74px; }
.f-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: var(--t); background: rgba(var(--t2), .12); border: 1px solid rgba(var(--t2), .32); }
.f-ico svg { width: 22px; height: 22px; }
.f-tete .price-tier { margin: 0 0 2px; color: var(--t) !important; }
.f-tete h3 { margin: 0 !important; font-size: 21px !important; line-height: 1.15; }
@media (max-width: 680px) { .f-tete { min-height: 0; } }

/* Prix et liste */
.pricing-grid.fx-a .price-card .price-new, .pricing-grid.fx-b .price-card .price-new { color: #fff; }
.pricing-grid .price-card .price-features li .check { color: var(--t); }
.price-features li.f-inclus { margin-bottom: 4px; padding: 9px 12px; border: 1px dashed rgba(var(--t2), .35); border-radius: 10px;
  background: rgba(var(--t2), .06); color: rgba(255,255,255,.85); font-weight: 600; }
.price-features li.f-inclus .check { font-size: 0; }
.price-features li.f-inclus .check::before { content: "+"; font-size: 17px; }

/* Boutons : chacun dans la couleur de sa formule */
html body .pricing-grid .price-card.f-essential .price-cta { background: transparent !important; border: 1.5px solid rgba(52,211,153,.55); color: #6ee7b7; }
html body .pricing-grid .price-card.f-essential .price-cta:hover { background: rgba(52,211,153,.1) !important; }
html body .pricing-grid .price-card.f-professional .price-cta { background: linear-gradient(135deg, #00d4ff, #0099cc) !important; color: #04131c; }
html body .pricing-grid .price-card.f-career .price-cta { background: linear-gradient(135deg, #f5dcb0, #e8c07d) !important; color: #1a1206; }
html body .pricing-grid .price-card.f-executive .price-cta { background: linear-gradient(135deg, #c084fc, #7c3aed) !important; color: #fff; }

/* ---------- Direction A : une couleur par formule ---------- */
.fx-a .price-card { background: radial-gradient(140% 60% at 50% 0%, rgba(var(--t2), .30), transparent 72%),
  linear-gradient(180deg, rgba(var(--t2), .10), rgba(var(--t2), 0) 55%), #13132a;
  border: 1px solid rgba(var(--t2), .30); box-shadow: 0 16px 40px rgba(15,21,35,.18); }
.fx-a .price-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--t); }
.fx-a .price-card.f-essential .price-new { color: #6ee7b7; }
.fx-a .price-card.f-professional .price-new { color: #67e8f9; }
.fx-a .price-card.f-executive .price-new { color: #e9d5ff; }
.fx-a .price-card.featured { border-color: transparent; box-shadow: 0 26px 60px rgba(15,21,35,.32); }
.fx-a .price-card.featured::after { display: none; }
.fx-a .price-card.f-career .price-new { color: #f5dcb0; }

/* ---------- Direction B : montée en gamme ---------- */
.fx-b .price-card { border: 1px solid rgba(255,255,255,.07); box-shadow: 0 16px 40px rgba(15,21,35,.18); }
.fx-b .price-card.f-essential    { background: #181830; }
.fx-b .price-card.f-professional { background: radial-gradient(120% 55% at 100% 0%, rgba(0,212,255,.16), transparent 65%), #141a32; border-color: rgba(0,212,255,.2); }
.fx-b .price-card.f-career       { background: linear-gradient(165deg, #2d2414 0%, #1b1626 55%, #15132a 100%); box-shadow: 0 26px 60px rgba(15,21,35,.34); }
.fx-b .price-card.f-executive    { background: radial-gradient(90% 50% at 0% 0%, rgba(192,132,252,.28), transparent 70%),
  linear-gradient(165deg, #2a1748 0%, #170e2e 60%, #120b24 100%); border-color: rgba(192,132,252,.35); overflow: hidden; }
.fx-b .price-card.f-executive::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%); background-size: 250% 100%;
  animation: f-reflet 5s ease-in-out infinite; }
@keyframes f-reflet { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }
.fx-b .price-card.f-career .price-new { color: #f5dcb0; }
.fx-b .price-card.f-executive .price-new { color: #e9d5ff; }

/* Jauge « Accompagnement » : 1 à 4 crans */
.f-jauge { display: none; }
.fx-b .f-jauge { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.f-jauge i { display: flex; gap: 4px; }
.f-jauge b { width: 16px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.f-jauge b.on { background: var(--t); box-shadow: 0 0 10px rgba(var(--t2), .45); }

@media (prefers-reduced-motion: reduce) { .fx-b .price-card.f-executive::after { animation: none; } }
@media (max-width: 680px) { .price-card .f-bandeau[aria-hidden="true"] { display: none; } }
@media (max-width: 680px) { .pricing-grid.fx-a .price-card-body, .pricing-grid.fx-b .price-card-body { padding: 26px 20px 22px; } }
