:root {
    --primary-color: #16a34a;
    --secondary-color: #22c55e;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navbar Styles */
.navbar {
    background-color: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 4rem;
    opacity: 1;
    animation: subtle-fade 0.5s ease-out;
}

section.hero {
    animation-delay: 0s;
}

section.comparison-section {
    animation-delay: 0.2s;
}

section.features-section {
    animation-delay: 0.4s;
}

section.verdict-section {
    animation-delay: 0.6s;
}

section:target,
section.visible {
    animation-play-state: running;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

/* Product Cards */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-color);
}

.product-card h3 {
    color: var(--text-color);
    margin: 1rem 0;
    font-size: 1.25rem;
}

.product-card p {
    color: var(--text-color);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.product-card.featured {
    border: 2px solid var(--primary-color);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
}

.product-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.rating {
    color: #fbbf24;
}

/* Comparison Table */
.comparison-table {
    opacity: 1;
    transform: none;
    animation: none;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin: 2rem 0;
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Verdict Section */
.verdict-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.verdict-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.verdict-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-color);
}

.verdict-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.verdict-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Boutons d'achat */
.buy-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.buy-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Section de contenu */
.content-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.content-block {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.content-block h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-block h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.content-block p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-block ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-block li {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.content-block strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: white;
    margin-top: 4rem;
    box-shadow: var(--card-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        margin: 1rem -1rem;
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }
}

/* Ajout du défilement fluide pour toute la page */
html {
    scroll-behavior: smooth;
}

/* Animation subtile */
@keyframes subtle-fade {
    from {
        opacity: 0.95;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fa-check {
    color: #22c55e;
}

.fa-times {
    color: #ef4444;
}
