* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ffd93d;
    --accent-orange: #ff8c42;
    --accent-pink: #ff6b9d;
    --dark: #2d3436;
    --light: #fef9f3;
    --gray: #636e72;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    min-height: 100vh;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

/* Main Content */
.pricing-page {
    margin-top: 80px;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.pricing-header h1 .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Plan Type Tabs */
.plan-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 2rem auto;
    background: white;
    padding: 0.25rem;
    border-radius: 50px;
    max-width: fit-content;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.plan-tab {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}

.plan-tab:hover {
    color: var(--primary-color);
}

.plan-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Pricing Layout Container */
.pricing-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Left Side - Title and Duration Cards */
.pricing-left {
    display: flex;
    flex-direction: column;
}

.pricing-left-header {
    margin-bottom: 1.5rem;
}

.pricing-left-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.pricing-left-header h3 span {
    color: var(--primary-color);
}

.pricing-left-header .plan-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.pricing-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Duration Cards */
.duration-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.duration-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    padding-right: 3.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.duration-card:hover {
    border-color: var(--primary-color);
}

.duration-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.04), rgba(255, 107, 157, 0.04));
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.15);
}

.duration-card.active::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.duration-top-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.duration-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.duration-badge.best-price {
    background: var(--primary-color);
    color: white;
}

.duration-badge.recommended {
    background: #10b981;
    color: white;
}

.duration-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
}

.duration-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.duration-price {
    font-size: 1rem;
    color: var(--gray);
}

.duration-savings {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 700;
}

/* CTA Button in pricing */
.pricing-cta {
    margin-top: 2rem;
}

.pricing-cta-btn {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    color: white;
    padding: 1.15rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    text-align: center;
}

.pricing-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

/* Right Side - Features Table */
.pricing-right {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.features-table {
    width: 100%;
    border-collapse: collapse;
}

.features-table thead th {
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 2px solid #f1f1f1;
}

.features-table thead th:first-child {
    text-align: left;
}

.features-table thead .plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.features-table thead .plan-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.features-table thead .plan-header-icon.essentiel {
    background: #e8f5e9;
    color: #4caf50;
}

.features-table thead .plan-header-icon.premium {
    background: #fce4ec;
    color: var(--primary-color);
}

.features-table thead .plan-header-icon.prestige {
    background: #e3f2fd;
    color: #2196f3;
}

.features-table tbody tr {
    border-bottom: 1px solid #f5f5f5;
}

.features-table tbody tr:last-child {
    border-bottom: none;
}

.features-table tbody td {
    padding: 0.85rem 0.5rem;
    font-size: 0.95rem;
    color: var(--dark);
}

.features-table tbody td:first-child {
    text-align: left;
    color: var(--gray);
}

.features-table tbody td:not(:first-child) {
    text-align: center;
}

.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.85rem;
}

.feature-check.included {
    background: #e8f5e9;
    color: #4caf50;
}

.feature-check.not-included {
    background: #f5f5f5;
    color: #ccc;
}

/* Legal Text */
.pricing-legal {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.8;
}

.pricing-legal a {
    color: var(--primary-color);
    text-decoration: none;
}

.pricing-legal a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }

    .pricing-left {
        order: 2;
    }

    .pricing-right {
        order: 1;
    }

    .features-table {
        font-size: 0.85rem;
    }

    .features-table tbody td:first-child {
        max-width: 150px;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .plan-tabs {
        flex-wrap: wrap;
        border-radius: 15px;
        gap: 0.25rem;
    }

    .plan-tab {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    .pricing-right {
        padding: 1rem;
        overflow-x: auto;
    }

    .features-table {
        min-width: 450px;
    }

    .pricing-header h1 {
        font-size: 1.75rem;
    }
}
