/* Variables & Reset */
:root {
    --primary: #1e3a8a;       /* Bleu marine profond pro */
    --accent: #2563eb;        /* Bleu dynamique pour les boutons */
    --accent-hover: #1d4ed8;
    --dark: #0f172a;          /* Texte principal */
    --muted: #475569;         /* Texte secondaire */
    --bg-light: #f8fafc;      /* Fond léger */
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --gold: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bandeau Supérieur */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.disclosure-link {
    color: #cbd5e1;
    text-decoration: underline;
    font-size: 0.75rem;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.logo .tld {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 600;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -0.8px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Section Reviews */
.reviews-section {
    padding: 50px 0;
}

.section-header {
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--muted);
    font-size: 1rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.card-image-placeholder {
    height: 180px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-body p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read {
    display: inline-block;
    text-align: center;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-read:hover {
    background: var(--accent-hover);
}

/* Trust Section */
.trust-section {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 50px 0;
    margin-top: 30px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.trust-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Footer */
.footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: #ffffff;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 10px;
    max-width: 320px;
}

.footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-disclaimer {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.6;
}

.copyright {
    margin-top: 15px;
    color: #475569;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .header-container {
        flex-direction: column;
        gap: 12px;
    }
    .nav a {
        margin: 0 10px;
    }
}

/* ========================================= */
/* STYLES DES FENÊTRES MODALES / POP-UPS     */
/* ========================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(20px) scale(0.98);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--dark);
}

.modal-body {
    padding: 35px 30px;
    overflow-y: auto;
}

.modal-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.modal-updated {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modal-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 20px;
    margin-bottom: 8px;
}

.modal-body p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
    font-size: 0.92rem;
    color: #475569;
}

.modal-body li {
    margin-bottom: 6px;
}

/* Formulaire Contact dans la Modal */
.contact-info-block {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.modal-form .form-group {
    margin-bottom: 15px;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--dark);
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ========================================= */
/* STYLES DE LA PAGE REVIEW & ADVERTORIAL   */
/* ========================================= */

.review-page {
    background: #f1f5f9;
}

.page-layout {
    max-width: 900px;
    margin: 30px auto;
}

.article-header {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.meta-tag {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 15px;
}

.article-sub {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.author-avatar {
    font-size: 2rem;
    background: #f8fafc;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-details span {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.author-details small {
    color: var(--muted);
    font-size: 0.8rem;
}

/* CARTES DU CLASSEMENT TOP 5 */
.product-rank-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Mise en avant Produit #1 */
.winner-card {
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 20px -3px rgba(245, 158, 11, 0.15);
}

.card-ribbon {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 8px 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-rank-badge {
    background: #64748b;
    color: #ffffff;
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-bottom-right-radius: 8px;
}

.rank-card-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    padding: 25px;
}

.rank-card-img {
    text-align: center;
}

.product-mockup {
    background: #f8fafc;
    border: 1px dashed var(--border);
    height: 180px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--muted);
}

.guarantee-badge {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #15803d;
    font-weight: 700;
    background: #dcfce7;
    padding: 4px 8px;
    border-radius: 4px;
}

.score-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.rating-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    font-weight: 700;
}

.score-num {
    color: var(--dark);
    font-size: 0.95rem;
    margin-left: 5px;
}

.product-highlight-text {
    font-size: 0.95rem;
    margin: 12px 0;
    color: #334155;
}

.pros-list, .cons-list {
    list-style: none;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.pros-list li {
    color: #166534;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.pros-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 800;
}

.cons-list li {
    color: #991b1b;
    margin-bottom: 6px;
}

/* BOUTONS CTA */
.cta-action-box {
    margin-top: 18px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.deal-tag {
    font-size: 0.85rem;
    color: #b91c1c;
    margin-bottom: 8px;
}

.btn-cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s, background 0.2s;
}

.winner-btn {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.winner-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.secondary-btn {
    background: #f1f5f9;
    color: var(--dark);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    padding: 10px 15px;
}

.secondary-btn:hover {
    background: #e2e8f0;
}

.secure-checkout {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 8px;
}

/* TOGGLE POUR #4 ET #5 */
.hidden-ranks {
    display: none;
}

.toggle-container {
    text-align: center;
    margin: 25px 0 40px;
}

.btn-toggle-more {
    background: #ffffff;
    border: 2px dashed #94a3b8;
    color: #475569;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-toggle-more:hover {
    background: #f8fafc;
    border-color: var(--accent);
    color: var(--accent);
}

/* ADVERTORIAL SECTION */
.advertorial-section {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 40px;
    margin-top: 20px;
}

.advertorial-badge {
    background: #dbeafe;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.advertorial-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.lead-paragraph {
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 25px;
}

.callout-danger {
    background: #fff1f2;
    border-left: 4px solid #e11d48;
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
}

.callout-danger h3 {
    color: #9f1239;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.feat-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 10px;
}

.feat-box h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.testimonials-block {
    margin: 40px 0;
}

.testimonial-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.verified {
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 8px;
}

/* BOITE OFFRE FINALE */
.final-offer-box {
    background: linear-gradient(180deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #facc15;
    border-radius: 14px;
    padding: 35px;
    text-align: center;
    margin-top: 40px;
}

.discount-pill {
    background: #dc2626;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.urgency-checklist {
    max-width: 450px;
    margin: 20px auto;
    text-align: left;
    font-size: 0.95rem;
    color: #713f12;
}

.urgency-checklist div {
    margin-bottom: 6px;
}

.stock-alert {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #b91c1c;
    font-weight: 600;
}

/* RESPONSIVE SMARTPHONE */
@media (max-width: 768px) {
    .rank-card-grid {
        grid-template-columns: 1fr;
    }
    .feature-highlight-grid {
        grid-template-columns: 1fr;
    }
    .article-header {
        padding: 20px;
    }
    .advertorial-section {
        padding: 20px;
    }
    .article-header h1 {
        font-size: 1.7rem;
    }
}