/* WebProxyCache - Variables et Reset */

@font-face {
    font-family: 'Abel';
    src: url('../fonts/Abel-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #4572A7;
    --primary-light: #5a8ac4;
    --primary-dark: #1a2e4a;
    --secondary: #89A54E;
    --accent: #3D96AE;
    --danger: #AA4643;
    --warning: #DB843D;
    --light: #f8f9fa;
    --dark: #121212;
    --text: #333;
    --text-light: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Abel', sans-serif;
}

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

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--text-light);
    box-shadow: var(--box-shadow);
    padding: 1rem 3rem;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 18px;
    max-width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.4rem;
}

.logo img {
    height: 32px;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

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

.nav-links a.btn-primary {
    color: var(--text-light);
}

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

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

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--text-light);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 2rem 50px;
    background: linear-gradient(135deg, rgba(26, 46, 74, 0.88), rgba(69, 114, 167, 0.82)), url('WebProxyCache-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
    flex: 1;
    max-width: 1100px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    display: block;
    opacity: 0.9;
    font-size: 1.1rem;
    margin-top: 0.3rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

/* Features */
.features {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--text-light);
}

.features h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.features > p {
    max-width: 700px;
    margin: 0 auto 4rem;
    opacity: 0.8;
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: left;
    border-left: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.feature-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

/* Features List */
.features-list {
    text-align: left;
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 3rem;
    background: var(--primary-dark);
    border-radius: 12px;
    color: var(--text-light);
}

.features-list h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.features-columns {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.features-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.features-columns li {
    padding: 0.6rem 0;
    padding-left: 1.8em;
    position: relative;
    font-size: 1.05rem;
}

.features-columns li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

.features-columns li strong {
    color: var(--secondary);
}

/* Technology */
.technology {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--light);
}

.technology h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.technology > p {
    max-width: 600px;
    margin: 0 auto 4rem;
    opacity: 0.8;
    font-size: 1.2rem;
}

.technology-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(69, 114, 167, 0.4);
}

.step h3 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.step p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

/* Architecture Box */
.architecture-box {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--text-light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
}

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 2rem;
    background: var(--light);
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    min-width: 120px;
}

.arch-node.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(69, 114, 167, 0.4);
}

.arch-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.arch-label {
    font-weight: 600;
    font-size: 1rem;
}

.arch-arrow {
    font-size: 2.5rem;
    color: var(--primary);
}

.arch-info {
    text-align: left;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary);
}

.arch-info p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
}

/* Use Cases */
.use-cases {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--text-light);
}

.use-cases h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.use-cases > p {
    max-width: 700px;
    margin: 0 auto 4rem;
    opacity: 0.8;
    font-size: 1.2rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.use-case-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.use-case-card .icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.use-case-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.use-case-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Comparison Table */
.comparison-section {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--light);
}

.comparison-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.comparison-section > p {
    margin: 0 auto 3rem;
    opacity: 0.8;
    font-size: 1.2rem;
}

.table-wrapper {
    overflow-x: auto;
    max-width: 1400px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--primary-dark);
    color: var(--text-light);
    font-weight: 600;
}

.comparison-table th.highlight {
    background: var(--primary);
    color: var(--text-light);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #fafafa;
    padding-left: 1.5rem;
}

.comparison-table tr:hover {
    background: #f5f5f5;
}

.comparison-table td.highlight {
    background: rgba(69, 114, 167, 0.1);
    font-weight: 600;
}

.comparison-table td.yes {
    color: var(--secondary);
    font-weight: 600;
}

.comparison-table td.no {
    color: var(--danger);
}

.comparison-table td.partial {
    color: var(--warning);
}

/* Pricing */
.pricing {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--text-light);
}

.pricing h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.pricing > p {
    max-width: 600px;
    margin: 0 auto 4rem;
    opacity: 0.8;
    font-size: 1.2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-light);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.price span {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.7;
    color: var(--text);
}

.pricing-card > p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card li {
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    padding-left: 1.5em;
    position: relative;
}

.pricing-card li:before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Final CTA */
.final-cta {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-light);
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .btn-primary {
    background: var(--secondary);
    color: var(--text);
}

.final-cta .btn-primary:hover {
    background: #6f8a3e;
    color: var(--text-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

footer p {
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-item {
        padding: 1rem 1.5rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 1.5rem 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--text-light);
        padding: 1.5rem;
        box-shadow: var(--box-shadow);
        gap: 1rem;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .features-columns {
        flex-direction: column;
        gap: 1rem;
    }

    .arch-flow {
        flex-direction: column;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }
    
    .features h2,
    .technology h2,
    .comparison-section h2,
    .pricing h2,
    .use-cases h2 {
        font-size: 2.2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card,
.step,
.use-case-card,
.pricing-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.arch-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.arch-arrow-down {
    color: var(--primary);
    font-size: 1.5rem;
}

.arch-flow-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}
