/* --- HERO SECTION (Version Compacte) --- */
section.page-hero {
    min-height: auto !important; height: auto !important;
    padding-top: 140px; padding-bottom: 20px;
    text-align: center; background: transparent !important;
    position: relative; z-index: 2;
}
section.page-hero .hero-badge {
    display: inline-block; padding: 6px 16px; margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px; font-size: 0.8rem; text-transform: uppercase; color: #aaa;
}
section.page-hero .page-title { font-size: 3.5rem; font-weight: 400; color: #fff; margin-bottom: 10px; }
section.page-hero .text-gradient {
    background: linear-gradient(135deg, #fff 30%, #9b30ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
section.page-hero .page-subtitle { color: #bbb; max-width: 600px; margin: 0 auto; }


/* --- PRICING GRID --- */
.pricing-container {
    max-width: 1200px; 
    
    /* CORRECTION 1 : On annule la hauteur écran obligatoire (le "truc invisible") */
    min-height: auto !important;
    height: auto !important;
    display: grid !important;
    
    /* CORRECTION 2 : Marges serrées */
    margin: 40px auto 0 !important; 
    padding: 0 2% 20px 2% !important;
    
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
    align-items: start;
    position: relative; z-index: 2;
}

/* LA CARTE (Style FUSEA : Glassmorphism) */
.pricing-card {
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px);            
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 24px; 
    padding: 30px; 
    display: flex; flex-direction: column; 
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.pricing-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(155, 48, 255, 0.4); 
    background: rgba(255, 255, 255, 0.05);
}

/* CARTE SCALE (Mise en avant) */
.pricing-card.featured {
    border-color: #9b30ff; 
    background: rgba(155, 48, 255, 0.05); 
    box-shadow: 0 0 50px rgba(155, 48, 255, 0.15); 
    z-index: 3;
}

/* --- HEADER (Titre + Badge alignés) --- */
.card-header-flex {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 10px;
    min-height: 35px; 
}

.pricing-card h3 {
    font-size: 1.8rem; 
    font-weight: 400; 
    color: #fff; 
    margin: 0; 
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Badge Populaire */
.badge-populaire {
    background: rgba(155, 48, 255, 0.15);
    color: #9b30ff;
    border: 1px solid rgba(155, 48, 255, 0.3);
    padding: 4px 12px;
    font-size: 0.7rem; font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(155, 48, 255, 0.2);
}

/* Description grise */
.desc { 
    color: #aaa; 
    font-size: 0.95rem; 
    line-height: 1.5; 
    margin-bottom: 25px;
    min-height: 45px; 
    display: flex;    
    align-items: start;
}

/* --- PRIX --- */
.price-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 25px;
}

.price-block { display: flex; align-items: baseline; gap: 5px; }

.amount { 
    font-size: 2.5rem; 
    font-weight: 400; 
    color: #fff; 
    letter-spacing: -1px; 
}
.period { font-size: 0.9rem; color: #777; font-weight: 400; }

.trial-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.7rem; font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
}

/* --- LE BOUTON --- */
.btn-price {
    display: block; width: 100%; text-align: center;
    padding: 14px 0; border-radius: 50px;
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: #fff;
    font-weight: 700; text-decoration: none; 
    transition: all 0.3s ease;
    margin-bottom: 30px; 
    text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
}
.btn-price:hover { 
    border-color: #fff; background: #fff; color: #000; 
}

/* Bouton Featured */
.featured-btn {
    background: #9b30ff; 
    border-color: #9b30ff;
    color: #fff;
    box-shadow: 0 5px 20px rgba(155, 48, 255, 0.3);
}
.featured-btn:hover {
    background: #b05aff; border-color: #b05aff; color: #fff;
    box-shadow: 0 5px 30px rgba(155, 48, 255, 0.5);
    transform: translateY(-2px);
}

/* --- LISTE DES FEATURES --- */
.features-list { list-style: none; padding: 0; margin: 0; }

.features-list li {
    display: flex; align-items: center; gap: 12px;
    color: #ccc; font-size: 0.9rem; margin-bottom: 12px;
}

.features-list li strong { color: #fff; font-weight: 600; }

.icon-check, .icon-cross {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.6rem; font-weight: bold;
}
.icon-check { 
    background: rgba(155, 48, 255, 0.2); 
    color: #9b30ff; 
    border: 1px solid rgba(155, 48, 255, 0.3);
} 
.icon-cross { 
    background: rgba(255, 255, 255, 0.05); 
    color: #555; 
}
.excluded { opacity: 0.5; }

@media (max-width: 900px) {
    .pricing-container { grid-template-columns: 1fr; max-width: 450px; }
}

/* --- TOGGLE SWITCH STYLE --- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    transition: color 0.3s;
    cursor: pointer;
}

.toggle-label.active { color: #fff; }

.discount-badge {
    background: #9b30ff;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #9b30ff;
    border-color: #9b30ff;
}

input:checked + .slider:before {
    transform: translateX(22px);
}