/* ============================================================
   LE LABO SEO — Feuille de style commune (style.css)
   Tronc partagé par les 7 pages. Chaque page ne garde qu'un
   petit <style> avec SES variables de thème (voir instructions).
   ============================================================ */

:root {
    --primary: #0055FF;
    --primary-dark: #0044CC;
    --accent: #00F0FF;
    --brand-blue: #0F172A;
    --surface-1: #FFFFFF;
    --surface-2: #F7F9FC;
    --surface-3: #EDF2F7;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.02), 0 10px 15px -3px rgba(0,0,0,0.05);
    --shadow-float: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.01);
    --container: 1000px;
    --radius: 16px;
    --article-width: 780px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { scroll-behavior: smooth; font-size: 16px; width: 100%; max-width: 100%; overflow-x: hidden; position: relative; background: var(--surface-1); }
body { font-family: 'Inter', sans-serif; color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-main); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
p { color: var(--text-muted); font-size: 1.05rem; }
strong { color: var(--text-main); font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section-padding { padding: 100px 0; }
.bg-surface { background-color: var(--surface-2); }
.text-center { text-align: center; }

.badge { display: inline-block; background: rgba(0,85,255,0.08); color: var(--primary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 14px; border-radius: 100px; margin-bottom: 20px; border: 1px solid rgba(0,85,255,0.1); }

/* Boutons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--text-main); color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; padding: 16px 32px; border-radius: 12px; text-decoration: none; transition: all 0.3s cubic-bezier(0.25,1,0.5,1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: 1px solid transparent; }
.btn-primary:hover { transform: translateY(-2px); background: #000; box-shadow: 0 12px 24px rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.2); }
.btn-primary.blue, .theme-color { background: var(--primary); box-shadow: 0 4px 20px rgba(0,85,255,0.3); }
.btn-primary.blue:hover, .theme-color:hover { background: var(--primary-dark); box-shadow: 0 12px 30px rgba(0,85,255,0.5); }
.btn-soft { display: inline-flex; justify-content: center; align-items: center; padding: 14px 28px; background: var(--surface-1); color: var(--text-main); font-weight: 700; font-size: 0.95rem; text-decoration: none; border-radius: 12px; border: 1px solid var(--surface-3); box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: all 0.2s ease; }
.btn-soft:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 12px rgba(0,85,255,0.1); transform: translateY(-2px); }

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Barre de progression (pages articles) */
#progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 5px; background: transparent; z-index: 1000; }
#progress-bar { height: 100%; background: var(--primary); width: 0%; border-radius: 0 2px 2px 0; transition: width 0.1s; }

/* NAV */
nav, nav.main-nav { padding: 14px 0; position: sticky; top: 0; width: 100%; z-index: 200; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--surface-3); }
nav.main-nav { top: 5px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 9px 18px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,85,255,0.25); }
.nav-cta:hover { background: var(--primary-dark); }
.dropdown { position: relative; }
.dropdown > .dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--text-main); font-weight: 600; font-size: 0.95rem; }
.dropdown-toggle svg { width: 14px; height: 14px; transition: transform 0.25s; }
.dropdown-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-8px); background: #fff; border: 1px solid var(--surface-3); border-radius: 14px; box-shadow: var(--shadow-float); padding: 8px; min-width: 230px; opacity: 0; visibility: hidden; transition: all 0.22s ease; z-index: 210; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--surface-2); }
.dropdown-menu a strong { display: block; color: var(--text-main); font-size: 0.9rem; }
.dropdown-menu a small { color: var(--text-muted); font-size: 0.78rem; font-weight: 400; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--text-main); }
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--surface-3); padding: 0 20px; box-shadow: var(--shadow-card); max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
    .nav-menu.open { max-height: 600px; padding-top: 10px; padding-bottom: 20px; }
    .nav-menu a { padding: 12px 4px; border-bottom: 1px solid var(--surface-3); }
    .nav-cta { margin-top: 12px; text-align: center; border-bottom: none !important; }
    .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 0 14px; min-width: 0; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
    .dropdown.open .dropdown-menu { max-height: 400px; }
    .dropdown:hover .dropdown-menu { transform: none; }
}

/* LOGO */
.logo { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--text-main); letter-spacing: -0.04em; }
.logo a { text-decoration: none; color: inherit; font-weight: 800 !important; }
.logo span { color: var(--primary); font-size: 2rem; line-height: 0; position: relative; top: 4px; margin-left: 2px; }

/* FAQ (details/summary) — commun à toutes les pages */
details { background: #fff; border: 1px solid var(--surface-3); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: all 0.3s ease; }
details:hover { border-color: #cbd5e1; }
details[open] { border-color: var(--primary); box-shadow: var(--shadow-card); }
summary { padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--text-muted); }
details[open] summary::after { content: '−'; color: var(--primary); }
.faq-body { padding: 0 24px 24px 24px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.faq-grid { max-width: 700px; margin: 50px auto 0; text-align: left; }

/* FOOTER */
footer { background: var(--surface-1); border-top: 1px solid var(--surface-3); padding: 60px 0 140px 0; color: var(--text-muted); font-size: 0.9rem; text-align: center; }

/* STICKY BAR "pilule" */
.sticky-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: rgba(15,23,42,0.95); backdrop-filter: blur(12px); padding: 8px 8px 8px 24px; border-radius: 100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); z-index: 100; border: 1px solid rgba(255,255,255,0.15); width: 90%; max-width: 450px; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease; }
.sticky-bar.hidden { transform: translate(-50%, 150%); opacity: 0; pointer-events: none; }
.sticky-text { color: white; font-weight: 700; font-size: 1rem; white-space: nowrap; display: flex; align-items: baseline; gap: 6px; }
.sticky-text span { color: #94A3B8; font-weight: 400; font-size: 0.85rem; }
.sticky-bar .btn-primary { padding: 10px 24px; font-size: 0.95rem; border-radius: 50px; margin: 0; box-shadow: none; }

code { background: var(--surface-3); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; font-family: monospace; color: var(--primary); }

/* ===== Spécifique PAGES ARTICLE (guide + 3 articles) ===== */
.article-header { background: var(--surface-2); padding: 80px 20px 60px; text-align: center; }
.article-container { max-width: var(--article-width); margin: -40px auto 100px; background: var(--surface-1); padding: 50px 60px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); border: 1px solid var(--surface-3); position: relative; z-index: 10; }
.article-container h2 { font-size: 1.8rem; margin: 60px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--surface-2); scroll-margin-top: 100px; }
.article-container h3 { font-size: 1.4rem; font-weight: 700; margin: 40px 0 15px; color: var(--primary-dark); }
.article-container p { font-size: 1.1rem; margin-bottom: 24px; line-height: 1.7; }
.article-container ul, .article-container ol { margin-bottom: 24px; padding-left: 24px; color: var(--text-muted); font-size: 1.1rem; }
.article-container li { margin-bottom: 10px; }
.article-container a { color: var(--primary); text-decoration: none; font-weight: 500; }
.article-container a:hover { color: var(--primary-dark); text-decoration: underline; }
.meta-info { display: inline-flex; gap: 15px; align-items: center; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; margin-bottom: 30px; justify-content: center; flex-wrap: wrap; }
.callout-box { background: var(--surface-2); border-left: 4px solid var(--primary); padding: 25px; border-radius: 0 12px 12px 0; margin: 30px 0; }
.callout-box h4 { margin-top: 0; color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 10px; }
.callout-box p { margin-bottom: 0; font-size: 1.05rem; }
.tldr-box { background: #F0FDF4; border: 1px solid #BBF7D0; padding: 25px; border-radius: 12px; margin: 30px 0; }
.tldr-box strong { color: #166534; }
.tldr-box p { color: #15803D; margin-bottom: 0; font-size: 1.05rem; }
.toc { background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: 12px; padding: 25px 30px; margin: 40px 0; }
.toc-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 15px; color: var(--text-main); }
.toc ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.toc li { margin-bottom: 12px; font-size: 1rem; }
.toc a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.seo-table { width: 100%; border-collapse: collapse; margin: 30px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--surface-3); }
.seo-table th, .seo-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--surface-3); font-size: 1.05rem; }
.seo-table th { background: var(--text-main); color: white; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.seo-table tr:last-child td { border-bottom: none; }
.seo-table td { color: var(--text-muted); background: white; }
.faq-section { margin-top: 40px; }
.article-container summary { font-size: 1.1rem; }
.article-container .faq-body { font-size: 1.05rem; }

/* ===== Spécifique PAGES LANDING (hero, pricing, battle) ===== */
.hero { padding-top: 60px; padding-bottom: 100px; position: relative; overflow: hidden; }
.hero h1 { font-size: 3.8rem; margin-bottom: 24px; background: linear-gradient(180deg, #0F172A 0%, #334155 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 40px; color: var(--text-muted); }
.bg-glow { position: absolute; width: 800px; height: 800px; max-width: 100vw; background: radial-gradient(circle, rgba(0,85,255,0.06) 0%, rgba(255,255,255,0) 70%); top: -200px; left: 50%; transform: translateX(-50%); z-index: 0; pointer-events: none; }
.video-box { margin-top: 60px; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.05); background: #000; position: relative; z-index: 10; }
.aspect-ratio { position: relative; padding-bottom: 56.25%; height: 0; }
.aspect-ratio iframe, .aspect-ratio img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.battle-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0; margin-top: 60px; align-items: center; }
.col { padding: 30px; text-align: center; border-top: 1px solid var(--surface-3); border-bottom: 1px solid var(--surface-3); }
.col-header { font-weight: 700; font-size: 1.1rem; margin-bottom: 20px; color: var(--text-main); }
.col-row { padding: 15px 0; border-bottom: 1px dashed var(--surface-3); font-size: 0.95rem; color: var(--text-muted); }
.col-row:last-child { border-bottom: none; }
.col-loser { background: var(--surface-1); opacity: 0.7; }
.col-winner { background: #fff; border: 2px solid var(--primary); border-radius: 20px; box-shadow: var(--shadow-float); position: relative; z-index: 10; padding: 40px 30px; transform: scale(1.05); }
.winner-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,85,255,0.3); }
.icon-check { color: #10B981; font-weight: 700; }
.icon-cross { color: #EF4444; }
.pricing-section { background: #0F172A; color: white; position: relative; overflow: hidden; }
.glow-blob { position: absolute; width: 800px; height: 800px; max-width: 100vw; background: radial-gradient(circle, rgba(0,85,255,0.25) 0%, rgba(0,0,0,0) 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: 1; }
.pricing-wrapper { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 980px; margin: 60px auto 0; position: relative; z-index: 2; align-items: center; }
.pricing-card { background: rgba(30,41,59,0.6); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); border-radius: 24px; padding: 36px 28px; transition: transform 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; }
.pricing-card:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-5px); }
.pricing-card h3 { color: white; opacity: 0.9; font-size: 1.5rem; margin-bottom: 5px; }
.pricing-card:not(.popular) strong { color: white !important; }
.pricing-card.popular { background: #FFFFFF; color: var(--text-main); transform: scale(1.06); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: none; position: relative; z-index: 10; padding-top: 44px; }
.pricing-card.popular:hover { transform: scale(1.07); }
.pricing-card.popular h3 { color: var(--primary); margin-top: 0; }
.pricing-card.popular strong { color: #0F172A !important; }
.pop-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 16px; border-radius: 100px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,85,255,0.35); }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -2px; line-height: 1; margin: 20px 0 10px; color: white; }
.price span { font-size: 1rem; font-weight: 500; color: #94A3B8; letter-spacing: 0; }
.price small { display: block; font-size: 0.9rem; font-weight: 600; color: #34D399; letter-spacing: 0; margin-top: 6px; }
.pricing-card.popular .price { color: var(--text-main); }
.pricing-card.popular .price span { color: var(--text-muted); }
.price-desc { font-size: 0.95rem; margin-bottom: 30px; color: #CBD5E1; }
.pricing-card.popular .price-desc { color: var(--text-muted); }
.features { margin-bottom: auto; list-style: none; }
.features li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.92rem; font-weight: 500; color: #E2E8F0; }
.pricing-card.popular .features li { color: var(--text-main); }
.features svg { width: 20px; height: 20px; flex-shrink: 0; }
.tick-blue, .tick-theme { color: var(--primary); }
.tick-white { color: #fff; }
.btn-outline { display: flex; justify-content: center; align-items: center; width: 100%; padding: 16px; margin-top: 30px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: all 0.2s; background: transparent; border: 1px solid rgba(255,255,255,0.4); color: white; }
.btn-outline:hover { background: white; color: var(--text-main); border-color: white; }
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.toc-sticky { position: fixed; top: 90px; left: 24px; z-index: 90; width: 215px; padding: 18px 18px 16px; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border: 1px solid var(--surface-3); border-radius: 14px; box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateX(-10px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; }
.toc-sticky.visible { opacity: 1; visibility: visible; transform: translateX(0); }
.toc-sticky p { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
.toc-sticky a { display: block; font-size: 0.82rem; color: var(--text-muted); text-decoration: none; padding: 5px 0 5px 10px; border-left: 2px solid transparent; transition: all 0.2s; line-height: 1.35; }
.toc-sticky a:hover { color: var(--primary); }
.toc-sticky a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
@media (max-width: 1320px) { .toc-sticky { display: none; } }

/* RESPONSIVE commun */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    h1 { font-size: 2.2rem !important; }
    .hero { padding-top: 70px; padding-bottom: 60px; }
    .hero p { font-size: 1.05rem; }
    .section-padding { padding: 60px 0; }
    .battle-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
    .col { border: 1px solid var(--surface-3); border-radius: 16px; }
    .pricing-wrapper { grid-template-columns: 1fr; gap: 24px; }
    .pricing-card { padding: 30px 24px; }
    .pricing-card.popular { transform: scale(1); order: -1; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .price { font-size: 2.8rem; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    .pop-tag { top: -14px; left: 50%; right: auto; transform: translateX(-50%); }
    .pros-cons-grid { grid-template-columns: 1fr !important; }
    .article-header { padding: 50px 20px 80px; }
    .article-container { margin: -60px 15px 60px; padding: 30px 20px; border-radius: 16px; }
    .seo-table, .seo-table tbody, .seo-table tr, .seo-table td { display: block; width: 100%; }
    .seo-table thead { display: none; }
    .seo-table tr { margin-bottom: 20px; border: 1px solid var(--surface-3); border-radius: 12px; padding: 15px; background: var(--surface-1); }
    .seo-table td { border-bottom: 1px dashed var(--surface-3); padding: 12px 0; }
    .seo-table td:last-child { border-bottom: none; padding-bottom: 0; }
    .sticky-bar { bottom: 20px; width: 92%; padding: 6px 6px 6px 20px; }
    .sticky-text { font-size: 0.95rem; }
    .sticky-bar .btn-primary { padding: 10px 20px; font-size: 0.9rem; }
}