/* Feuille de style commune - Bois-Bande.com
   Modifier ici plutot que dans chaque page. */

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

        :root {
            --bg: #FFFBF5;
            --bg-alt: #F5EFE6;
            --bg-green: #EAF2E6;
            --card: #FFFFFF;
            --primary: #1B4332;
            --primary-light: #2D6A4F;
            --gold: #B8860B;
            --gold-light: #D4A574;
            --accent: #C65D2A;
            --text: #2C1810;
            --text-light: #5C4A3D;
            --text-muted: #8B7D74;
            --border: #E5DDD3;
            --border-light: #F0EBE3;
            --shadow: 0 2px 12px rgba(44,24,16,.06);
            --shadow-md: 0 4px 24px rgba(44,24,16,.1);
            --radius: 12px;
            --radius-sm: 8px;
            --max-w: 1140px;
            --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
            --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
        }

        html { scroll-behavior: smooth; }
        body {
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--text);
            line-height: 1.7;
            font-size: 17px;
            -webkit-font-smoothing: antialiased;
        }

        a { color: var(--primary); text-decoration: none; transition: color .2s; }
        a:hover { color: var(--gold); }
        img { max-width: 100%; height: auto; display: block; }

        /* === HEADER === */
        .site-header {
            background: var(--card);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-inner {
            max-width: var(--max-w);
            margin: 0 auto;
            padding: .9rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
        }
        .logo {
            font-family: var(--font-heading);
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: -.01em;
        }
        .logo span { color: var(--gold); }
        nav { display: flex; gap: .2rem; flex-wrap: wrap; }
        nav a {
            font-size: .88rem;
            font-weight: 500;
            color: var(--text-light);
            padding: .4rem .75rem;
            border-radius: var(--radius-sm);
            transition: all .2s;
        }
        nav a:hover { color: var(--primary); background: var(--bg-green); }
        .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
        .nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }
        nav.mobile-nav { display: none; }

        /* === HERO === */
        .hero {
            background: linear-gradient(170deg, var(--bg-green) 0%, var(--bg) 60%);
            padding: 4.5rem 1.5rem 3.5rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .hero::before {
            content: '';
            position: absolute;
            top: -60px;
            right: -100px;
            width: 350px;
            height: 350px;
            border-radius: 50%;
            background: rgba(27,67,50,.04);
        }
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            background: var(--card);
            border: 1px solid var(--border);
            padding: .4rem 1rem;
            border-radius: 50px;
            font-size: .82rem;
            font-weight: 500;
            color: var(--text-light);
            margin-bottom: 1.5rem;
        }
        .hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
        .hero h1 {
            font-family: var(--font-heading);
            font-size: clamp(2rem, 5vw, 3.2rem);
            font-weight: 800;
            color: var(--primary);
            line-height: 1.15;
            max-width: 750px;
            margin: 0 auto 1.2rem;
        }
        .hero h1 em {
            font-style: italic;
            color: var(--gold);
        }
        .hero-sub {
            font-size: 1.15rem;
            color: var(--text-light);
            max-width: 600px;
            margin: 0 auto 2rem;
            line-height: 1.6;
        }
        .hero-meta {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            font-size: .85rem;
            color: var(--text-muted);
        }
        .hero-meta span { display: flex; align-items: center; gap: .4rem; }

        /* Explication du ratio d'extraction dans chaque fiche produit */
        .spec-ratio {
            font-size: .84rem; line-height: 1.55;
            background: rgba(201,162,39,.08);
            border-left: 3px solid var(--gold);
            border-radius: 0 8px 8px 0;
            padding: .7rem .9rem; margin: .8rem 0 0;
        }
        .spec-ratio-alerte {
            background: rgba(180,60,45,.08);
            border-left-color: #b43c2d;
        }

        /* Bloc « notre n°1 » affiché en haut de page */
        .hero-numero1 {
            display: flex; align-items: center; gap: 1.6rem;
            max-width: 620px; margin: 2.5rem auto 0;
            padding: 1.3rem 1.6rem;
            background: var(--card);
            border: 2px solid var(--gold);
            border-radius: var(--radius);
            text-align: left; text-decoration: none;
            box-shadow: var(--shadow-md);
            position: relative; z-index: 2;
            transition: .2s;
        }
        .hero-numero1:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(44,24,16,.14); }
        .hero-numero1 img {
            width: 130px; height: 130px; flex: none;
            object-fit: contain; border-radius: var(--radius-sm); background: #fff;
        }
        .hero-numero1-txt { display: flex; flex-direction: column; gap: .3rem; }
        .hero-numero1-badge {
            align-self: flex-start;
            background: var(--gold); color: #fff;
            font-size: .72rem; font-weight: 800; letter-spacing: .08em;
            text-transform: uppercase; padding: .25rem .7rem; border-radius: 100px;
        }
        .hero-numero1-txt strong { font-size: 1.25rem; line-height: 1.2; color: var(--primary);
            font-family: var(--font-heading); }
        .hero-numero1-marque { font-size: .88rem; color: var(--text-light); }
        .hero-numero1-ratio { font-size: .85rem; color: var(--gold); font-weight: 600; }
        .hero-numero1-lien { font-size: .85rem; font-weight: 700; margin-top: .3rem; color: var(--primary); }
        @media (max-width: 600px) {
            .hero-numero1 { flex-direction: column; text-align: center; gap: 1rem; }
            .hero-numero1-badge { align-self: center; }
        }
        .hero-meta svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; }

        /* === SECTIONS === */
        .section {
            max-width: var(--max-w);
            margin: 0 auto;
            padding: 3.5rem 1.5rem;
        }
        .section-title {
            font-family: var(--font-heading);
            font-size: 1.9rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: .6rem;
        }
        .section-subtitle {
            color: var(--text-light);
            font-size: 1.05rem;
            margin-bottom: 2.5rem;
            max-width: 650px;
        }
        .divider {
            width: 50px;
            height: 3px;
            background: var(--gold);
            border-radius: 3px;
            margin: .8rem 0 1.5rem;
        }

        /* === PRODUCT CARDS === */
        .products { display: flex; flex-direction: column; gap: 2rem; }
        .product-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            display: grid;
            grid-template-columns: 200px 1fr auto;
            gap: 2rem;
            align-items: start;
            position: relative;
            transition: box-shadow .3s;
        }
        .product-card:hover { box-shadow: var(--shadow-md); }
        .product-card.featured {
            border-color: var(--gold);
            border-width: 2px;
        }
        .product-card.featured::before {
            content: 'Choix de la rédaction';
            position: absolute;
            top: -13px;
            left: 24px;
            background: var(--gold);
            color: #fff;
            font-size: .78rem;
            font-weight: 600;
            padding: .25rem .9rem;
            border-radius: 50px;
            letter-spacing: .02em;
        }
        .product-img {
            width: 220px;
            height: 220px;
            background: #fff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .product-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
        .product-img .placeholder {
            font-family: var(--font-heading);
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary);
            opacity: .15;
        }
        .product-info h3 {
            font-family: var(--font-heading);
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: .4rem;
        }
        .product-brand {
            font-size: .88rem;
            color: var(--text-muted);
            margin-bottom: .8rem;
        }
        .product-rating {
            display: flex;
            align-items: center;
            gap: .5rem;
            margin-bottom: 1rem;
        }
        .stars {
            color: var(--gold);
            font-size: 1rem;
            letter-spacing: 2px;
        }
        .rating-text {
            font-size: .85rem;
            color: var(--text-light);
            font-weight: 500;
        }
        .product-specs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .5rem .8rem;
            margin-bottom: 1.2rem;
        }
        .spec {
            font-size: .85rem;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: .4rem;
        }
        .spec .label { color: var(--text-muted); }
        .spec .value { font-weight: 600; color: var(--text); }
        .product-pros {
            list-style: none;
            margin-bottom: .5rem;
        }
        .product-pros li {
            font-size: .9rem;
            padding: .25rem 0;
            padding-left: 1.4rem;
            position: relative;
            color: var(--text-light);
        }
        .product-pros li::before {
            content: '';
            position: absolute;
            left: 0;
            color: var(--primary-light);
            font-weight: 700;
        }
        .product-cons {
            list-style: none;
            margin-bottom: .5rem;
        }
        .product-cons li {
            font-size: .9rem;
            padding: .25rem 0;
            padding-left: 1.4rem;
            position: relative;
            color: var(--text-muted);
        }
        .product-cons li::before {
            content: '–';
            position: absolute;
            left: .35rem;
            color: var(--accent);
            font-weight: 700;
        }
        .why-price {
            background: var(--bg-green);
            border-left: 4px solid var(--primary);
            border-radius: 8px;
            padding: 1.4rem 1.6rem;
            margin: 1.5rem 0 0;
        }
        .why-price h3 {
            font-family: var(--font-heading);
            color: var(--primary);
            font-size: 1.15rem;
            margin-bottom: .6rem;
        }
        .why-price p { color: var(--text-light); font-size: .95rem; margin-bottom: .6rem; }
        .why-price p:last-child { margin-bottom: 0; }
        .product-side {
            text-align: center;
            min-width: 160px;
        }
        .product-rank {
            font-family: var(--font-heading);
            font-size: 3rem;
            font-weight: 800;
            color: var(--bg-alt);
            line-height: 1;
            margin-bottom: .3rem;
        }
        .product-card.featured .product-rank { color: var(--gold); opacity: .25; }
        .product-price {
            font-family: var(--font-heading);
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: .3rem;
        }
        .product-price-note {
            font-size: .78rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .5rem;
            padding: .75rem 1.5rem;
            border-radius: var(--radius-sm);
            font-family: var(--font-body);
            font-size: .92rem;
            font-weight: 600;
            text-decoration: none;
            transition: all .2s;
            cursor: pointer;
            border: none;
        }
        .btn-primary {
            background: var(--primary);
            color: #fff;
        }
        .btn-primary:hover { background: var(--primary-light); color: #fff; }
        .btn-outline {
            background: transparent;
            color: var(--primary);
            border: 1.5px solid var(--border);
        }
        .btn-outline:hover { border-color: var(--primary); background: var(--bg-green); color: var(--primary); }
        .btn-gold {
            background: var(--gold);
            color: #fff;
        }
        .btn-gold:hover { background: #9A7209; color: #fff; }

        /* === COMPARISON TABLE === */
        .comparison-wrap {
            overflow-x: auto;
            margin: 2rem 0;
            border: 1px solid var(--border);
            border-radius: var(--radius);
        }
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            font-size: .9rem;
        }
        .comparison-table th {
            background: var(--primary);
            color: #fff;
            font-weight: 600;
            padding: .9rem 1rem;
            text-align: left;
            font-size: .82rem;
            text-transform: uppercase;
            letter-spacing: .04em;
        }
        .comparison-table td {
            padding: .8rem 1rem;
            border-bottom: 1px solid var(--border-light);
            vertical-align: middle;
        }
        .comparison-table tr:last-child td { border-bottom: none; }
        .comparison-table tr:nth-child(even) { background: var(--bg); }
        .comparison-table tr.highlight { background: rgba(184,134,11,.06); }
        .comparison-table .winner {
            font-weight: 600;
            color: var(--primary);
        }

        /* === KEY FACTS BOX === */
        .keyfact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.2rem;
            margin: 2.5rem 0;
        }
        .keyfact {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.5rem;
            text-align: center;
        }
        .keyfact-icon {
            width: 48px;
            height: 48px;
            margin: 0 auto .8rem;
            background: var(--bg-green);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .85rem;
            font-weight: 700;
            color: var(--primary);
        }
        .keyfact h4 {
            font-family: var(--font-heading);
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: .3rem;
        }
        .keyfact p {
            font-size: .88rem;
            color: var(--text-light);
        }

        /* === ARTICLES GRID === */
        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.5rem;
        }
        .article-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            transition: box-shadow .3s, transform .3s;
        }
        .article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
        .article-thumb {
            height: 180px;
            background: var(--bg-green);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        .article-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .article-thumb .thumb-placeholder {
            font-size: 2.5rem;
            opacity: .3;
        }
        .article-tag {
            position: absolute;
            top: .8rem;
            left: .8rem;
            background: var(--primary);
            color: #fff;
            font-size: .72rem;
            font-weight: 600;
            padding: .25rem .7rem;
            border-radius: 50px;
            text-transform: uppercase;
            letter-spacing: .04em;
        }
        .article-body {
            padding: 1.3rem 1.5rem 1.5rem;
        }
        .article-body h3 {
            font-family: var(--font-heading);
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: .5rem;
            line-height: 1.35;
        }
        .article-body p {
            font-size: .88rem;
            color: var(--text-light);
            margin-bottom: .8rem;
            line-height: 1.55;
        }
        .article-link {
            font-size: .85rem;
            font-weight: 600;
            color: var(--gold);
            display: inline-flex;
            align-items: center;
            gap: .3rem;
        }
        .article-link:hover { color: var(--accent); }

        /* === FAQ === */
        .faq-list { max-width: 800px; }
        .faq-item {
            border-bottom: 1px solid var(--border);
            padding: 1.2rem 0;
        }
        .faq-q {
            font-family: var(--font-heading);
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }
        .faq-q::after {
            content: '+';
            font-size: 1.4rem;
            color: var(--gold);
            flex-shrink: 0;
            transition: transform .2s;
        }
        .faq-item.open .faq-q::after { content: '−'; }
        .faq-a {
            max-height: 0;
            overflow: hidden;
            transition: max-height .3s ease;
            color: var(--text-light);
            font-size: .95rem;
            line-height: 1.7;
        }
        .faq-item.open .faq-a { max-height: 500px; padding-top: .8rem; }

        /* === FOOTER === */
        .site-footer {
            background: var(--primary);
            color: rgba(255,255,255,.7);
            padding: 3rem 1.5rem 2rem;
            margin-top: 3rem;
        }
        .footer-inner {
            max-width: var(--max-w);
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.7fr 1fr 1fr 1fr;
            gap: 2rem;
        }
        .footer-brand {
            font-family: var(--font-heading);
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: .5rem;
        }
        .footer-brand span { color: var(--gold); }
        .site-footer p { font-size: .85rem; line-height: 1.6; }
        .footer-links h4 {
            color: #fff;
            font-size: .85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .06em;
            margin-bottom: .8rem;
        }
        .footer-links a {
            display: block;
            color: rgba(255,255,255,.6);
            font-size: .88rem;
            padding: .2rem 0;
        }
        .footer-links a:hover { color: var(--gold); }
        .footer-bottom {
            max-width: var(--max-w);
            margin: 2rem auto 0;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,.1);
            font-size: .78rem;
            text-align: center;
        }


        /* === STAR RATINGS (CSS-based, no emoji) === */
        .stars {
            display: inline-flex;
            gap: 2px;
        }
        .stars .star {
            width: 16px;
            height: 16px;
            display: inline-block;
            position: relative;
        }
        .stars .star::before {
            content: '';
            position: absolute;
            inset: 0;
            clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
            background: var(--gold);
        }
        .stars .star.half::before {
            clip-path: polygon(50% 0%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
        }
        .stars .star.empty::before {
            background: var(--border);
        }
        /* === RESPONSIVE === */
        @media (max-width: 900px) {
            .product-card {
                grid-template-columns: 1fr;
                gap: 1.2rem;
            }
            .product-img { width: 100%; height: 220px; }
            .product-side { text-align: left; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
            .product-rank { font-size: 2rem; }
            .footer-inner { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 700px) {
            nav.desktop-nav { display: none; }
            .nav-toggle { display: block; }
            nav.mobile-nav {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--card);
                border-bottom: 1px solid var(--border);
                flex-direction: column;
                padding: .5rem 1rem 1rem;
                box-shadow: var(--shadow);
            }
            nav.mobile-nav.open { display: flex; }
            .hero { padding: 3rem 1rem 2.5rem; }
            .hero h1 { font-size: 1.8rem; }
            .articles-grid { grid-template-columns: 1fr; }
            .keyfact-grid { grid-template-columns: 1fr 1fr; }
            .comparison-table { font-size: .8rem; }
        }

        .logo { display: inline-flex; align-items: center; gap: .55rem; }
        .logo-mark { width: 34px; height: 34px; flex: none; object-fit: contain; }
        @media (max-width: 700px) { .logo-mark { width: 28px; height: 28px; } }

        /* Bandeau de consentement */
        .cookies {
            position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 9999;
            max-width: 900px; margin: 0 auto;
            display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
            background: var(--card); color: var(--text);
            border: 1px solid var(--border); border-left: 4px solid var(--gold);
            border-radius: var(--radius); padding: 1.1rem 1.4rem;
            box-shadow: 0 8px 32px rgba(44,24,16,.18);
            font-size: .9rem; line-height: 1.55;
            animation: cookies-entree .35s ease;
        }
        @keyframes cookies-entree { from { opacity:0; transform:translateY(16px); } }
        .cookies-parti { opacity: 0; transform: translateY(16px); transition: .3s; }
        .cookies-txt { flex: 1 1 380px; color: var(--text-light); }
        .cookies-txt strong { color: var(--primary); }
        .cookies-txt a { color: var(--primary); text-decoration: underline; }
        .cookies-btns { display: flex; gap: .6rem; flex: 0 0 auto; }
        .cookies button {
            font-family: inherit; font-size: .88rem; font-weight: 600;
            padding: .6rem 1.3rem; border-radius: 50px; cursor: pointer;
            border: 1px solid var(--border); transition: .2s;
        }
        .cookies-refus { background: transparent; color: var(--text-light); }
        .cookies-refus:hover { background: var(--bg-alt); color: var(--text); }
        .cookies-ok { background: var(--primary); color: #fff; border-color: var(--primary); }
        .cookies-ok:hover { background: var(--primary-light); }
        @media (max-width: 600px) {
            .cookies { flex-direction: column; align-items: stretch; gap: 1rem; }
            .cookies-btns button { flex: 1; }
        }
        @media (max-width: 560px) {
            .footer-inner { grid-template-columns: 1fr; }
        }
        /* Quand le bandeau est affiche, on degage le bas de page
           pour qu'il ne recouvre jamais le pied de page. */
        body.avec-bandeau { padding-bottom: 150px; }
        @media (min-width: 900px) { body.avec-bandeau { padding-bottom: 130px; } }
