body { background: #fcfcfc; font-family: Inter, sans-serif; color: #333; }
.pricing-header { text-align: center; padding: 30px 20px; }
.pricing-header h1 { font-size: 2.3em; margin-bottom: 10px; line-height:55px;}
.pricing-header p { color: #666; font-size: 1.1em; }

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.plan-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px;
    width: 300px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.plan-card.popular { border: 2px solid #3970f4; position: relative; }
.popular-badge {
    position: absolute; top: -12px; right: 20px;
    background: #3970f4; color: #fff; padding: 4px 12px;
    border-radius: 99px; font-size: 0.8em; font-weight: 600;
}

.plan-name { font-size: 1.4em; font-weight: 600; margin-bottom: 10px; }
.plan-price { font-size: 2.5em; font-weight: 700; color: #111; margin-bottom: 20px; }
.plan-price span { font-size: 0.4em; color: #888; font-weight: 400; }

.plan-features { list-style: none; padding: 0; margin: 30px 0 0; flex: 1; }
.plan-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: #555; }
.plan-features li::before { content: "✓"; color: #2e8b57; font-weight: bold; }
.plan-features li.disabled { color: #aaa; text-decoration: line-through; }
.plan-features li.disabled::before { content: "×"; color: #ddd; }

/* Feature link (Pricing) */
.plan-features li.feature-memory { align-items: flex-start; }
.plan-features li.feature-memory .feature-memory-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.plan-features .feature-label { white-space: nowrap; }
.plan-features a.feature-link {
    display: block; /* force le lien à passer à la ligne */
    white-space: nowrap;
    font-weight: 600;
    color: #3970f4;
    text-decoration: none;
    border-bottom: 1px solid rgba(57, 112, 244, 0.35);
    padding-bottom: 1px;
    transition: color 0.15s, border-bottom-color 0.15s;
}
.plan-features a.feature-link:visited { color: #3970f4; }
.plan-features a.feature-link:hover { color: #2960e4; border-bottom-color: rgba(41, 96, 228, 0.8); }
.plan-features a.feature-link:focus-visible {
    outline: 2px solid rgba(57, 112, 244, 0.35);
    outline-offset: 2px;
    border-radius: 6px;
}

.plan-btn {
    display: block; box-sizing: border-box;
    width: 100%; padding: 14px; border-radius: 12px; border: none;
    font-size: 1em; font-weight: 600; cursor: pointer; text-align: center;
    text-decoration: none; transition: background 0.2s;
}
.btn-outline { background: #fff; border: 2px solid #ddd; color: #333; }
.btn-primary { background: #3970f4; color: #fff; }
.btn-primary:hover { background: #2960e4; }
.btn-dark { background: #111; color: #fff; }

.cancel-anytime {
    text-align: center;
    font-size: 0.8em;
    color: #888;
    margin-top: 10px;
}

.toggle-container {
    display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 30px; margin-bottom: 10px;
}
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #3970f4; }
input:checked + .slider:before { transform: translateX(22px); }
.save-badge { background: #e7f0ff; color: #3970f4; padding: 2px 8px; border-radius: 6px; font-size: 0.85em; font-weight: 600; }

/* Back Link Style */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.2s;
    z-index: 10;
}
.back-link:hover { color: #111; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pricing-header h1 {
        font-size: 1.7em; /* Réduit la taille du titre */
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .toggle-container {
        margin-top: 20px;
        margin-bottom: 0;
    }
    
    .pricing-header {
        padding-top: 60px; /* Espace pour le bouton retour */
    }
}
