:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem 20px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand .brand-link {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-brand a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a:not(.btn) {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:not(.btn):hover {
    color: var(--primary-color);
}

.nav-menu .btn {
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1001;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12.5px 30px;
    border: 0;
    border-radius: 100px;
    text-decoration: none !important;
    font-weight: bold;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    cursor: pointer;
    text-align: center;
}

.btn:hover,
.btn:active,
.btn:focus,
.btn:visited {
    text-decoration: none !important;
}

.btn-primary {
    background-color: #2ba8fb;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #6fc5ff;
    box-shadow: 0 0 20px #6fc5ff50;
    transform: scale(1.1);
}

.btn-primary:active {
    background-color: #3d94cf;
    transition: all 0.25s;
    -webkit-transition: all 0.25s;
    box-shadow: none;
    transform: scale(0.98);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--bg-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-price {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 3rem;
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.step-number {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Features */
.features.section {
    position: relative;
    overflow: hidden;
}

.grid-wrapper {
    min-height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-image: linear-gradient(to right, #e2e8f0 1px, transparent 1px),
        linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
    background-size: 20px 30px;
    -webkit-mask-image: radial-gradient(
        ellipse 100% 120% at 50% 0%,
        #000 50%,
        rgba(0,0,0,0.75) 65%,
        rgba(0,0,0,0.5) 80%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 100% 120% at 50% 0%,
        #000 50%,
        rgba(0,0,0,0.75) 65%,
        rgba(0,0,0,0.5) 80%,
        transparent 100%
    );
}

.features .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    position: relative;
    width: 100%;
    min-height: 280px;
    border-radius: 14px;
    z-index: 1111;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
}

.feature-card .bg {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    z-index: 2;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(24px);
    border-radius: 10px;
    overflow: hidden;
    outline: 2px solid white;
}

.feature-card .blob {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #2ba8fb;
    opacity: 1;
    filter: blur(12px);
    animation: blob-bounce 5s infinite ease;
}

@keyframes blob-bounce {
    0% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
    25% {
        transform: translate(-100%, -100%) translate3d(100%, 0, 0);
    }
    50% {
        transform: translate(-100%, -100%) translate3d(100%, 100%, 0);
    }
    75% {
        transform: translate(-100%, -100%) translate3d(0, 100%, 0);
    }
    100% {
        transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
}

.feature-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
}

/* Templates */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.template-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    padding: 3px;
    background: linear-gradient(45deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.4s ease;
    z-index: 0;
}

.template-card:nth-child(1)::before {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.template-card:nth-child(2)::before {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.template-card:nth-child(3)::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.template-card:nth-child(4)::before {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.template-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.template-card:hover::before {
    padding: 4px;
}

.template-preview {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.template-preview::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.template-icon {
    font-size: 7rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.template-card:nth-child(1) .template-icon {
    color: #10b981;
}

.template-card:nth-child(2) .template-icon {
    color: #3b82f6;
}

.template-card:nth-child(3) .template-icon {
    color: #f59e0b;
}

.template-card:nth-child(4) .template-icon {
    color: #8b5cf6;
}

.template-card:hover .template-icon {
    transform: scale(1.15) rotate(5deg);
}

.template-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 4;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.template-badge i {
    font-size: 0.85rem;
}

.template-info {
    position: relative;
    padding: 1.5rem;
    text-align: center;
    background: white;
}

.template-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.template-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.template-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.template-link:hover {
    text-decoration: underline;
}

/* Testimonials */
.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.rating span {
    color: var(--text-light);
    font-size: 1rem;
    margin-left: 0.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-price {
    margin-top: 1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .conseils-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar.container {
        padding: 0.75rem 15px;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 0;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 0;
        border-radius: 0.5rem;
        overflow: hidden;
        margin: 0 15px;
        width: calc(100% - 30px);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .btn-nav {
        border-radius: 0 !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .login-container,
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .login-box,
    .payment-form,
    .order-summary {
        padding: 1.5rem;
    }

    .pricing-hero h1 {
        font-size: 1.75rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .features-grid,
    .conseils-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 0;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar.container {
        padding: 0.5rem 10px;
    }

    .nav-menu {
        margin: 0 10px;
        width: calc(100% - 20px);
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .pricing-card {
        padding: 1.5rem;
        width: 100%;
    }

    .price .amount {
        font-size: 2.5rem;
    }

    .price .amount-original {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 2.5rem 0;
    }
}

/* Additional Navigation Styles */
.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
}

.btn-full {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Login Section */
.login-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    min-height: calc(100vh - 80px);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.login-box {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
}

.login-form {
    margin-bottom: 2rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: var(--success-color);
    color: white;
    border-radius: 0.5rem;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.login-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-list i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-list strong {
    display: block;
    margin-bottom: 0.25rem;
}

.info-list p {
    color: var(--text-light);
    margin: 0;
}

/* Pricing Section */
.pricing-hero {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0284c7 100%);
    color: white;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-section {
    padding: 3rem 0;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 400px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price .amount-original {
    font-size: 1.5rem;
    font-weight: 500;
    color: #9ca3af;
    position: relative;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.price .amount-original::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: #dc2626;
    transform: translateY(-50%) rotate(-8deg);
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price .period {
    color: var(--text-light);
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features .fa-check {
    color: var(--success-color);
}

.pricing-features .fa-times {
    color: var(--text-light);
}

.stripe-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
    text-align: center;
}

.stripe-button-center {
    display: table;
    margin: 0 auto;
    text-align: center;
}

stripe-buy-button {
    margin: 0 auto !important;
    display: block !important;
}

/* Force centering of Stripe iframe */
stripe-buy-button iframe {
    margin: 0 auto !important;
    display: block !important;
}

.secure-payment {
    text-align: center;
    font-size: 0.9rem;
    color: var(--success-color);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.secure-payment .fa-lock {
    margin-right: 0.35rem;
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.faq-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item i {
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Checkout Section */
.checkout-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.order-summary {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.order-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-details {
    margin-bottom: 1.5rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-header h3 {
    font-size: 1.2rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    margin-top: 1rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.plan-features .fa-check {
    color: var(--success-color);
}

.trial-info {
    display: flex;
    gap: 1rem;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.trial-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trial-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.trial-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.total-amount {
    font-size: 2rem;
    color: var(--primary-color);
}

.payment-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.payment-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.stripe-element {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-white);
}

#card-errors {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.security-note i {
    color: var(--success-color);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.terms {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.terms a {
    color: var(--primary-color);
    text-decoration: underline;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.payment-methods img {
    width: 48px;
    height: 48px;
    opacity: 0.7;
}

/* Additional Footer Styles */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Template Filters */
.template-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Template Card Enhancements */
.templates-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.template-preview {
    position: relative;
    overflow: hidden;
}

.template-image {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.template-placeholder {
    text-align: center;
    color: var(--text-light);
}

.template-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.template-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Tips Container */
.tips-container {
    max-width: 900px;
    margin: 0 auto;
}

.tip-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.tip-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-icon i {
    font-size: 1.75rem;
    color: white;
}

.tip-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.tip-content {
    color: var(--text-dark);
    line-height: 1.8;
}

.tip-content p {
    margin-bottom: 1rem;
}

.tip-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tip-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.tip-list li i {
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--success-color);
}

.tip-list li i.fa-times {
    color: var(--danger-color);
}

/* Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.checklist-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.checklist-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checklist-card h3 i {
    font-size: 1.5rem;
}

.checklist-card h3 i.fa-check-circle {
    color: var(--success-color);
}

.checklist-card h3 i.fa-times-circle {
    color: var(--danger-color);
}

.checklist-card h3 i.fa-star {
    color: var(--warning-color);
}

.checklist-card ul {
    list-style: none;
    padding: 0;
}

.checklist-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.checklist-card ul li:last-child {
    border-bottom: none;
}

/* CTA Section Enhancements */
.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mini CV Previews for Templates Page */
.mini-cv {
    width: 200px;
    height: 280px;
    background: white;
    padding: 15px;
    font-size: 7px;
    line-height: 1.4;
    transform: scale(0.95);
    transform-origin: top center;
    color: #1f2937;
}

.mini-header {
    border-bottom: 2px solid #1f2937;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.mini-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1f2937;
}

.mini-title {
    font-size: 9px;
    color: #64748b;
}

.mini-section {
    margin-bottom: 10px;
}

.mini-section-title {
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1f2937;
}

.mini-item {
    height: 20px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-bottom: 4px;
}

/* Classique Template Preview */
.template-preview-classique {
    background: white !important;
    padding: 10px;
    height: 280px;
    overflow: hidden;
    color: #1f2937;
}

.classic-header {
    border-bottom: 2px solid #1f2937;
}

.classic-title {
    border-bottom: 1.5px solid #1f2937;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #1f2937;
}

.classic-item {
    border-left: 2px solid #e5e7eb;
    padding-left: 5px;
    margin-left: 3px;
}

/* Moderne Template Preview */
.template-preview-moderne {
    background: white !important;
    padding: 0;
}

.moderne-layout {
    display: grid;
    grid-template-columns: 70px 1fr;
    height: 280px;
    width: 200px;
    transform: scale(0.95);
    transform-origin: top center;
}

.moderne-header {
    display: none;
}

.moderne-sidebar {
    background: linear-gradient(180deg, #1e3a5f, #152d47);
    padding: 10px 8px;
    font-size: 7px;
    color: white;
}

.moderne-sidebar .mini-section-title {
    color: white;
    font-size: 7px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

.moderne-sidebar .mini-name {
    color: white;
    font-size: 11px;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.2;
}

.moderne-main {
    padding: 10px;
    background: white;
    color: #1f2937;
}

.moderne-main .mini-section-title {
    color: #1e3a5f;
    font-size: 8px;
    border-bottom: 1px solid #1e3a5f;
    padding-bottom: 2px;
    margin-bottom: 5px;
    font-weight: 700;
}

.mini-skill {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 3px;
}

/* Créatif Template Preview */
.template-preview-creatif {
    background: linear-gradient(to bottom right, #fef3c7, #fecaca, #ddd6fe) !important;
    padding: 10px;
    height: 280px;
    overflow: hidden;
}

.creatif-header {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    position: relative;
}

.creatif-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #f59e0b, #ec4899, #8b5cf6);
    border-radius: 8px 8px 0 0;
}

.creatif-name {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.creatif-title {
    color: #8b5cf6;
}

.creatif-section {
    background: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
}

.creatif-section-title {
    color: #8b5cf6;
    font-size: 8px;
}

.creatif-item {
    background: #faf5ff;
    border-left: 3px solid #8b5cf6;
    padding-left: 5px;
    border-radius: 3px;
}

.creatif-skills {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.creatif-skill {
    height: 12px;
    width: 30%;
    background: linear-gradient(135deg, #fef3c7, #fce7f3);
    border-radius: 10px;
    border: 1px solid #f3e8ff;
}

/* Minimaliste Template Preview */
.template-preview-minimaliste {
    background: white !important;
    padding: 10px;
    height: 280px;
    overflow: hidden;
    color: #1f2937;
}

.minimal-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.minimal-name {
    font-weight: 300;
    font-size: 16px;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.minimal-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 7px;
    color: #64748b;
}

.minimal-item {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .template-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .templates-grid-2col {
        grid-template-columns: 1fr;
    }

    .tip-header {
        flex-direction: column;
        text-align: center;
    }

    .tip-title {
        font-size: 1.25rem;
    }

    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ============================================
   Legal Pages Styles
   ============================================ */

.legal-page {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-content .last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.legal-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-content em {
    color: var(--text-light);
}

/* Highlight important sections */
.legal-content section h3 + ul {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 2rem 0;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 0;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-content ul,
    .legal-content ol {
        margin-left: 1.5rem;
    }
}

