@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --or: #A07828;
    --or-clair: #C9A84C;
    --or-pale: #8B6914;
    --or-fonce: #6B4F10;
    --noir: #1A1A2E;
    --noir-doux: #2A2A3E;
    --bg: #F8F6F0;
    --bg-card: #FFFFFF;
    --bg-card2: #FAF8F3;
    --text: #1C1C2E;
    --text-soft: #4B4B6B;
    --text-muted: #8B8BA0;
    --border: rgba(160,120,40,0.2);
    --border-strong: rgba(160,120,40,0.4);
    
    --ad-bg: rgba(160,120,40,0.05);
    --ad-border: rgba(160,120,40,0.2);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, .cinzel {
    font-family: 'Cinzel', serif;
}

.cormorant {
    font-family: 'Cormorant Garamond', serif;
}

a {
    color: var(--or-clair);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--or-fonce);
}

/* ================== LAYOUT ================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
    padding: 40px 0 80px;
}

/* ================== HEADER ================== */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--or-fonce), var(--or-clair));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--or);
}

/* ===== DROPDOWN ===== */
.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item > a::after {
    content: '▾';
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.nav-item:hover > a::after {
    transform: rotate(180deg);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;          /* flush with nav-item — no gap */
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 2000;
    padding: 12px 0 8px; /* 12px top-padding replaces the old gap */
}

/* Invisible bridge so mouse can travel from link → dropdown */
.dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--text) !important;
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.dropdown a:hover {
    color: var(--or-fonce) !important;
    border-left-color: var(--or-clair);
    background: var(--bg-card2);
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--or);
}

/* ================== ADS ================== */
.ad-banner {
    width: 100%;
    max-width: 728px;
    margin: 30px auto;
    background: var(--ad-bg);
    border: 1px dashed var(--ad-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-height: 90px;
    text-align: center;
    padding: 10px;
}

.ad-banner.responsive {
    min-height: 250px;
    max-width: 300px;
}

.floating-video-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 168px;
    background: var(--noir);
    border: 2px solid var(--or-clair);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    overflow: hidden;
}

.floating-video-ad .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

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

.hero h1 {
    font-size: 3rem;
    color: var(--or-fonce);
    margin-bottom: 20px;
}

.hero .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-soft);
    max-width: 800px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--or-fonce), var(--or-clair));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(160,120,40,0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(160,120,40,0.5);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--or);
    border: 2px solid var(--or);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: rgba(160,120,40,0.05);
}

/* ================== SECTION TITLES ================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--or);
    margin-bottom: 10px;
}

.section-title .sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-soft);
}

/* ================== CARDS GRID ================== */
.tools-grid, .blog-grid, .args-grid, .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(160,120,40,0.5), transparent);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--or-fonce);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-link {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--or-clair);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================== STEPS & ARGS ================== */
.step-num {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: rgba(160,120,40,0.15);
    font-weight: 700;
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ================== FAQ ================== */
.faq-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-q {
    padding: 20px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-q:hover {
    background: var(--bg-card2);
}

.faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--or);
    transition: transform 0.3s;
}

.faq-item.active .faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.faq-item.active .faq-a {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* ================== FOOTER ================== */
footer {
    background: var(--noir-doux);
    color: var(--bg);
    padding: 60px 0 20px;
    border-top: 5px solid var(--or-fonce);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--or-clair);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.famille-calcul span {
    color: var(--or-clair);
    margin: 0 10px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links > a, .nav-item > a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    /* Mobile dropdown — always visible, indented */
    .nav-item .dropdown {
        display: block;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: unset;
        background: var(--bg-card2);
    }

    .dropdown a {
        padding: 9px 20px 9px 30px;
        font-size: 0.82rem;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }
    
    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    .ad-banner {
        max-width: 100%;
        min-height: 250px;
    }

    .floating-video-ad {
        width: 250px;
        height: 140px;
        bottom: 10px;
        right: 10px;
    }
}

/* ================== FAQ ================== */
.faq-section { margin-top: 60px; margin-bottom: 40px; }
.faq-list { display: grid; gap: 15px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}
.faq-item:hover { border-color: var(--or-clair); }
.faq-q {
    padding: 18px 20px;
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: color 0.3s;
}
.faq-q:hover { color: var(--or); }
.faq-q::after {
    content: '+';
    color: var(--or);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-a {
    padding: 0 20px;
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.7;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active .faq-q { color: var(--or-fonce); }
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-item.active .faq-a {
    padding: 0 20px 20px;
    max-height: 500px;
    opacity: 1;
}
