/* ==================== VARIABLES CSS ==================== */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #f57c00;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --spacing-unit: 8px;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== RESET & GÉNÉRAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.navbar {
    padding: 15px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo .tagline {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: white;
    font-weight: 500;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    border-bottom-color: white;
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
}

.cta-btn:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.cta-btn.primary:hover {
    background-color: #1665d8;
}

/* ==================== CAROUSEL ==================== */
.featured-carousel {
    margin: 60px 0;
    padding: 40px 0;
    text-align: center;
}

.featured-carousel h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.carousel-wrapper {
    flex: 1;
    max-width: 600px;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.carousel-slide:hover {
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.15);
    transform: translateY(-5px);
}

.carousel-slide img {
    width: 100%;
    max-width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.carousel-slide h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.carousel-slide .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.carousel-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.carousel-link:hover {
    background-color: #1665d8;
    transform: translateX(5px);
}

.carousel-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: #1665d8;
    transform: scale(1.1);
}

.carousel-btn.prev {
    order: -1;
}

.carousel-btn.next {
    order: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    width: 28px;
    border-radius: 6px;
}

.dot:hover {
    background-color: #cccccc;
}

/* ==================== PRODUCT CAROUSEL ==================== */
.product-carousel {
    margin: 30px 0 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.product-carousel .carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.product-carousel .carousel-wrapper {
    flex: 1;
    max-width: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.product-carousel .carousel-slide {
    display: none;
}

.product-carousel .carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.product-carousel .carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-carousel .carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.product-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.product-carousel .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-carousel .dot.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

/* ==================== FEATURED ARTICLE ==================== */
.featured-article {
    margin: 80px 0 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(245, 124, 0, 0.05) 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.article-preview {
    max-width: 800px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.date {
    color: var(--text-light);
    font-style: italic;
}

.featured-article h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.excerpt {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==================== WHY US SECTION ==================== */
.why-us {
    margin: 80px 0;
    text-align: center;
}

.why-us h3 {
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.benefit-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.benefit-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumb {
    background-color: #f9f9f9;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin: 20px 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: var(--text-light);
    font-weight: 600;
}

/* ==================== ARTICLE FULL ==================== */
.article-full {
    max-width: 900px;
    margin: 60px auto;
    line-height: 1.8;
}

.article-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-full h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.article-intro {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

/* Table of Contents */
.toc {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.toc h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.toc ul {
    list-style: none;
}

.toc li {
    padding: 8px 0;
}

.toc a {
    color: var(--primary-color);
}

/* ==================== PRODUCT REVIEW ==================== */
.product-review {
    margin: 60px 0;
    padding: 40px;
    background-color: #fafafa;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.product-header {
    margin-bottom: 30px;
}

.product-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.rating {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.stars {
    color: var(--secondary-color);
    font-size: 18px;
}

.score {
    color: var(--text-light);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 390px;
    height: 370px;
}

.product-image img {
    max-width: 90%;
    height: auto;
    border-radius: var(--border-radius);
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price {
    font-size: 16px;
    margin-bottom: 20px;
}

.amount {
    text-decoration: line-through;
    color: var(--text-light);
}

.sale-price {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 20px;
}

.specs {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
}

.specs p {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.specs p:last-child {
    border-bottom: none;
}

/* Product Pros/Cons Table */
.pros-cons-table {
    margin: 20px 0;
}

.pros-cons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pros-cons-col {
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: white;
}

.pros-cons-col:first-child {
    background-color: rgba(76, 175, 80, 0.05);
    border-left: 4px solid var(--success-color);
}

.pros-cons-col:last-child {
    background-color: rgba(244, 67, 54, 0.05);
    border-left: 4px solid var(--danger-color);
}

.pros-cons-col h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantages-compact,
.disadvantages-compact {
    list-style: none;
    padding: 0;
}

.advantages-compact li,
.disadvantages-compact li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.advantages-compact li:last-child,
.disadvantages-compact li:last-child {
    border-bottom: none;
}

.advantages-compact li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 16px;
}

.disadvantages-compact li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: bold;
    font-size: 16px;
}

@media (max-width: 768px) {
    .pros-cons-row {
        grid-template-columns: 1fr;
    }
}

/* Product Content */
.product-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.product-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    text-align: justify;
}

.advantages,
.disadvantages {
    list-style: none;
    margin-bottom: 25px;
}

.advantages li,
.disadvantages li {
    padding: 10px 0 10px 30px;
    position: relative;
    margin-bottom: 8px;
}

.advantages li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
}

.disadvantages li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: bold;
    font-size: 18px;
}

/* Reviews */
.reviews {
    margin: 20px 0;
}

.review {
    background-color: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.review p {
    color: var(--text-light);
    font-style: italic;
}

.recommendation {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin: 20px 0;
}

.affiliate-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.affiliate-btn:hover {
    background-color: #e86a00;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* ==================== COMPARISON TABLE ==================== */
.comparison-table {
    margin: 60px 0;
    padding: 40px;
    background-color: #fafafa;
    border-radius: var(--border-radius);
}

.comparison-table h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: #f9f9f9;
}

/* ==================== BUYING GUIDE ==================== */
.buying-guide {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(245, 124, 0, 0.05) 100%);
    border-radius: var(--border-radius);
}

.buying-guide h2 {
    margin-bottom: 40px;
    font-size: 28px;
}

.guide-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.guide-section h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.guide-section p {
    color: var(--text-light);
}

/* ==================== TIPS SECTION ==================== */
.tips-section {
    margin: 60px 0;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.tips-section h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 15px 0 15px 30px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== CONCLUSION & CTA ==================== */
.conclusion {
    margin: 60px 0;
    padding: 30px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
}

.conclusion h2 {
    margin-bottom: 20px;
}

.conclusion p {
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

.cta-section {
    margin: 60px 0;
    padding: 50px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius);
    text-align: center;
}

.cta-section h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.sidebar-widget {
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 8px 0;
}

.sidebar-widget a {
    color: var(--primary-color);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-section p {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #808080;
    font-size: 14px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .article-full {
        padding: 0 10px;
    }

    .featured-article {
        padding: 20px;
    }

    .product-review {
        padding: 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding: 10px;
        font-size: 14px;
    }

    .article-full h1 {
        font-size: 28px;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-section h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 24px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .rating {
        flex-direction: column;
        align-items: flex-start;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 8px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-review {
    animation: slideIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth scroll for anchors */
a[href^="#"] {
    scroll-behavior: smooth;
}
