/*
Theme Name: HomeOffice Expert
Theme URI: https://homeofficeexpert.fr
Author: Empire Builder
Description: Plateforme complète d'affiliation home office — Comparateur, Tests produits, Guides, Quiz intelligent, Simulateur ROI, Tracking clics, Newsletter, Schema SEO, Meta Boxes natives (0 plugin payant).
Version: 3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2
Text Domain: hoe
*/

/* ═══════════════════════════════════════════
   DESIGN SYSTEM
   ═══════════════════════════════════════════ */
:root {
    /* Palette */
    --hoe-dark: #1A1A1A;
    --hoe-darker: #111111;
    --hoe-accent: #C8A96E;
    --hoe-accent-hover: #B8944E;
    --hoe-gold: #F5A623;
    --hoe-cream: #F7F4EF;
    --hoe-white: #FFFFFF;
    --hoe-muted: #6B6860;
    --hoe-border: #E2DDD6;
    --hoe-green: #22A060;
    --hoe-red: #D04040;
    --hoe-blue: #3B82F6;
    --hoe-bg: #F0EDE8;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, Helvetica, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --container: 1200px;
    --gap: 24px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,.16);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--hoe-bg);
    color: var(--hoe-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5%;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--hoe-white);
    border-bottom: 1px solid var(--hoe-border);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5%;
    max-width: var(--container);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hoe-dark);
}

.site-logo__icon {
    width: 36px;
    height: 36px;
    background: var(--hoe-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.site-logo span { color: var(--hoe-accent); }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--hoe-muted);
    transition: color .2s;
}

.main-nav a:hover { color: var(--hoe-dark); }

.nav-cta {
    background: var(--hoe-dark);
    color: var(--hoe-white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: .8rem;
}

.nav-cta:hover { background: var(--hoe-accent); color: var(--hoe-white) !important; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--hoe-dark);
}

.mobile-nav {
    display: none;
    background: var(--hoe-white);
    border-bottom: 1px solid var(--hoe-border);
    padding: 16px 5%;
}

.mobile-nav.active { display: block; }

.mobile-nav ul { list-style: none; }
.mobile-nav li { padding: 12px 0; border-bottom: 1px solid var(--hoe-border); }
.mobile-nav a { font-weight: 600; font-size: .9rem; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hoe-accent);
    margin-bottom: 20px;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
    content: '';
    width: 28px;
    height: 1.5px;
    background: var(--hoe-accent);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}

.hero h1 em { font-style: italic; color: var(--hoe-accent); }

.hero__desc {
    font-size: 1.05rem;
    color: var(--hoe-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .2s;
}

.btn--primary { background: var(--hoe-dark); color: var(--hoe-white); }
.btn--primary:hover { background: var(--hoe-accent); }
.btn--outline { background: transparent; border: 1.5px solid var(--hoe-border); color: var(--hoe-dark); }
.btn--outline:hover { border-color: var(--hoe-dark); }
.btn--cta { background: var(--hoe-accent); color: var(--hoe-white); }
.btn--cta:hover { background: var(--hoe-accent-hover); }
.btn--amazon { background: #FF9900; color: #111; font-weight: 700; }
.btn--amazon:hover { background: #E88B00; }

/* ═══════════════════════════════════════════
   CARDS PRODUIT
   ═══════════════════════════════════════════ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--gap);
}

.product-card {
    background: var(--hoe-white);
    border-radius: var(--radius);
    border: 1px solid var(--hoe-border);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--hoe-gold);
    color: var(--hoe-dark);
    font-size: .65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
    z-index: 2;
}

.product-card__badge--stock {
    background: var(--hoe-red);
    color: var(--hoe-white);
    right: 12px;
    left: auto;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

.product-card__img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--hoe-cream);
}

.product-card__img img {
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-card__body { padding: 20px; }

.product-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.product-card__price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hoe-dark);
}

.product-card__score {
    background: var(--hoe-dark);
    color: var(--hoe-gold);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .85rem;
}

.product-card__stars {
    color: var(--hoe-gold);
    font-size: .85rem;
    letter-spacing: 2px;
}

.product-card__link {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 10px;
    background: var(--hoe-cream);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .82rem;
    color: var(--hoe-accent);
    transition: background .2s;
}

.product-card__link:hover { background: var(--hoe-dark); color: var(--hoe-white); }

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section { padding: 60px 0; }
.section--dark { background: var(--hoe-dark); color: var(--hoe-white); }
.section--cream { background: var(--hoe-cream); }

.section__eyebrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hoe-accent);
    margin-bottom: 8px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section__desc {
    color: var(--hoe-muted);
    max-width: 560px;
    font-size: .95rem;
}

/* ═══════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--gap);
}

.cat-card {
    background: var(--hoe-white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--hoe-border);
    transition: transform .2s, box-shadow .2s;
    text-align: center;
}

.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-card__icon { font-size: 2.4rem; margin-bottom: 12px; }
.cat-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.cat-card__count { color: var(--hoe-muted); font-size: .82rem; }

/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */
.stats-bar {
    background: var(--hoe-dark);
    padding: 28px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat { text-align: center; }
.stat__number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--hoe-gold); }
.stat__label { font-size: .78rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter {
    background: var(--hoe-dark);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.newsletter h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--hoe-white);
    line-height: 1.3;
}

.newsletter p { color: rgba(255,255,255,.6); margin-top: 8px; font-size: .9rem; }

.nl-form {
    display: flex;
    gap: 8px;
}

.nl-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: var(--hoe-white);
    font-family: var(--font-body);
    font-size: .9rem;
    outline: none;
}

.nl-form input::placeholder { color: rgba(255,255,255,.4); }
.nl-form input:focus { border-color: var(--hoe-accent); }

.nl-disclaimer {
    color: rgba(255,255,255,.35);
    font-size: .72rem;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   REVIEW CARDS
   ═══════════════════════════════════════════ */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gap);
}

.review-card {
    background: var(--hoe-white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--hoe-border);
}

.review-card__stars { color: var(--hoe-gold); margin-bottom: 12px; letter-spacing: 2px; }
.review-card__text { font-style: italic; color: var(--hoe-muted); line-height: 1.7; margin-bottom: 16px; font-size: .92rem; }

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hoe-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: var(--hoe-accent);
}

.review-card__name { font-weight: 600; font-size: .85rem; }
.review-card__role { font-size: .75rem; color: var(--hoe-muted); }

.review-card__badge {
    margin-left: auto;
    font-size: .65rem;
    font-weight: 600;
    color: var(--hoe-green);
    border: 1px solid var(--hoe-green);
    padding: 2px 8px;
    border-radius: 20px;
}

/* ═══════════════════════════════════════════
   SINGLE PRODUCT PAGE
   ═══════════════════════════════════════════ */
.single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.product-gallery {
    background: var(--hoe-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--hoe-border);
    position: sticky;
    top: 100px;
}

.product-gallery img { mix-blend-mode: multiply; margin: 0 auto; }

.product-info__breadcrumb {
    font-size: .78rem;
    color: var(--hoe-muted);
    margin-bottom: 12px;
}

.product-info__breadcrumb a { color: var(--hoe-accent); }
.product-info__breadcrumb a:hover { text-decoration: underline; }

.product-info h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.score-bar {
    height: 8px;
    background: var(--hoe-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0 20px;
}

.score-bar__fill { height: 100%; border-radius: 4px; transition: width .6s; }
.score-bar__fill--high { background: var(--hoe-green); }
.score-bar__fill--mid { background: var(--hoe-gold); }
.score-bar__fill--low { background: var(--hoe-red); }

.verdict-box {
    background: var(--hoe-dark);
    color: var(--hoe-white);
    border-radius: var(--radius);
    padding: 28px;
    margin: 24px 0;
}

.verdict-box__label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hoe-gold);
    margin-bottom: 8px;
}

.verdict-box__text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
}

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pros, .cons { padding: 20px; border-radius: var(--radius-sm); }
.pros { background: rgba(34,160,96,.08); border: 1px solid rgba(34,160,96,.2); }
.cons { background: rgba(208,64,64,.06); border: 1px solid rgba(208,64,64,.15); }
.pros h4, .cons h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pros h4 { color: var(--hoe-green); }
.cons h4 { color: var(--hoe-red); }
.pros li, .cons li { font-size: .88rem; margin-bottom: 6px; list-style: none; padding-left: 20px; position: relative; }
.pros li::before { content: '✓'; position: absolute; left: 0; color: var(--hoe-green); font-weight: 700; }
.cons li::before { content: '✕'; position: absolute; left: 0; color: var(--hoe-red); font-weight: 700; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background: var(--hoe-darker);
    color: rgba(255,255,255,.5);
    padding: 60px 0 30px;
    font-size: .85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .site-logo { margin-bottom: 12px; color: var(--hoe-white); }
.footer-desc { color: rgba(255,255,255,.4); font-size: .82rem; line-height: 1.7; max-width: 280px; }

.footer-col h5 {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 700;
    color: var(--hoe-white);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,.45);
    font-size: .82rem;
    margin-bottom: 10px;
    transition: color .2s;
}

.footer-col a:hover { color: var(--hoe-accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    text-align: center;
    font-size: .75rem;
    color: rgba(255,255,255,.3);
}

.footer-affiliate { margin-top: 8px; font-style: italic; }

/* ═══════════════════════════════════════════
   PROSE / ARTICLE CONTENT
   ═══════════════════════════════════════════ */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; line-height: 1.8; color: var(--hoe-muted); }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; line-height: 1.7; color: var(--hoe-muted); }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose blockquote { border-left: 3px solid var(--hoe-accent); padding-left: 20px; font-style: italic; color: var(--hoe-muted); margin: 24px 0; }

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */
.faq-item { border-bottom: 1px solid var(--hoe-border); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--hoe-dark);
}
.faq-question::after { content: '+'; font-size: 1.2rem; transition: transform .2s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s; }
.faq-answer__inner { padding: 0 0 18px; color: var(--hoe-muted); font-size: .9rem; line-height: 1.7; }

/* ═══════════════════════════════════════════
   QUIZ & ROI WIDGETS
   ═══════════════════════════════════════════ */
.widget-box {
    background: var(--hoe-white);
    border: 1px solid var(--hoe-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 600px;
    margin: 0 auto;
}

.widget-box--dark {
    background: var(--hoe-dark);
    border: none;
    color: var(--hoe-white);
}

/* ═══════════════════════════════════════════
   SEARCH OVERLAY
   ═══════════════════════════════════════════ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay.active { display: flex; }

.search-box {
    background: var(--hoe-white);
    border-radius: var(--radius);
    padding: 24px;
    width: 90%;
    max-width: 560px;
    box-shadow: var(--shadow-xl);
}

.search-box input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--hoe-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: border-color .2s;
}

.search-box input:focus { border-color: var(--hoe-accent); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .single-product { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .newsletter { grid-template-columns: 1fr; padding: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .stats-grid { gap: 30px; }
    .hero h1 { font-size: 2rem; }
    .nl-form { flex-direction: column; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .review-grid { grid-template-columns: 1fr; }
}
