/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #1a2332;
    background: #fff;
    line-height: 1.7;
}
a { color: #1a2332; text-decoration: none; }
a:hover { color: #c9a84c; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* === LAYOUT === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* === HEADER === */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo img { height: 36px; width: auto; }
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-menu a {
    font-size: .9rem;
    font-weight: 500;
    white-space: nowrap;
}
.nav-menu a:hover { color: #c9a84c; }

/* Bouton nav */
.btn-nav {
    padding: .45rem 1rem !important;
    font-size: .85rem !important;
    border-radius: 6px;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a2332;
    border-radius: 2px;
    transition: .3s;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: .65rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .95rem;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    border: 2px solid transparent;
}
.btn-primary {
    background: #c9a84c;
    color: #fff;
    border-color: #c9a84c;
}
.btn-primary:hover {
    background: #b8963d;
    border-color: #b8963d;
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #1a2332;
    border-color: #1a2332;
}
.btn-outline:hover {
    background: #1a2332;
    color: #fff;
}
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }

/* === HERO === */
.hero {
    background: #1a2332;
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .75rem;
}
.hero .subtitle {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.hero .btn { margin-top: .5rem; }

/* === BREADCRUMB === */
.breadcrumb {
    padding: 1rem 0;
    font-size: .85rem;
    color: #6b7280;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #c9a84c; }
.breadcrumb span { margin: 0 .3rem; }

/* === TOC === */
.toc {
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.toc h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: #1a2332;
}
.toc ol {
    list-style: decimal;
    padding-left: 1.25rem;
}
.toc li {
    margin-bottom: .35rem;
    font-size: .9rem;
}
.toc a { color: #1a2332; }
.toc a:hover { color: #c9a84c; }

/* === ARTICLE CONTENT === */
.article-content {
    max-width: 780px;
    margin-bottom: 2.5rem;
}
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 .75rem;
    color: #1a2332;
    line-height: 1.3;
}
.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 .5rem;
}
.article-content p {
    margin-bottom: 1rem;
    color: #374151;
}
.article-content ul, .article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
    margin-bottom: .4rem;
    color: #374151;
}
.article-content a { color: #1a2332; font-weight: 500; border-bottom: 1px solid #c9a84c; }
.article-content a:hover { color: #c9a84c; }

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .9rem;
}
.article-content th, .article-content td {
    padding: .65rem .85rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.article-content th {
    background: #1a2332;
    color: #fff;
    font-weight: 600;
}
.article-content tr:nth-child(even) { background: #f9fafb; }

/* Callout */
.callout {
    background: #f5f7fa;
    border-left: 4px solid #c9a84c;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}
.callout p { margin-bottom: 0; color: #1a2332; }

/* === CLASSEMENT === */
.classement-section { margin: 2.5rem 0; }
.classement { margin-top: 2rem; }
.classement-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    position: relative;
    transition: box-shadow .2s, border-color .2s;
}
.classement-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    border-color: #c9a84c;
}
.classement-card--first {
    border-color: #c9a84c;
    background: linear-gradient(135deg, #fffdf5 0%, #fff 100%);
    box-shadow: 0 4px 16px rgba(201,168,76,.15);
}
.classement-recommended {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #c9a84c;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: .25rem .85rem;
    border-radius: 4px;
}
.classement-rank-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.classement-rank {
    width: 52px;
    height: 52px;
    background: #1a2332;
    color: #c9a84c;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.classement-card--first .classement-rank {
    width: 58px;
    height: 58px;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #1a2332 0%, #2d3a4d 100%);
    box-shadow: 0 2px 8px rgba(26,35,50,.3);
}
.classement-info {
    min-width: 0;
}
.classement-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .35rem;
}
.classement-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
}
.classement-card--first .classement-name {
    font-size: 1.25rem;
}
.classement-badge {
    display: inline-block;
    background: #f0e9d5;
    color: #8b6f1e;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .65rem;
    border-radius: 4px;
    white-space: nowrap;
}
.classement-card--first .classement-badge {
    background: #c9a84c;
    color: #fff;
}
.classement-desc {
    font-size: .88rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}
.classement-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}
.classement-prix {
    font-size: .8rem;
    font-weight: 700;
    color: #1a2332;
    white-space: nowrap;
}
.classement-action .btn {
    white-space: nowrap;
    padding: .55rem 1.35rem;
    font-size: .9rem;
}

/* === COCON NAV / RUBRIQUES GRID === */
.cocon-nav, .rubriques-grid { margin: 2.5rem 0; }
.cocon-nav h2, .rubriques-grid h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.cocon-card, .rubrique-card {
    display: block;
    padding: 1.25rem;
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: box-shadow .2s, border-color .2s;
}
.cocon-card:hover, .rubrique-card:hover {
    border-color: #c9a84c;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    color: #1a2332;
}
.cocon-card h3, .rubrique-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .35rem;
}
.cocon-card p, .rubrique-card p {
    font-size: .85rem;
    color: #6b7280;
    margin: 0;
}

/* === CONFIANCE === */
.confiance-section { margin: 2.5rem 0; }
.confiance-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.confiance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.confiance-item {
    text-align: center;
    padding: 1.5rem 1rem;
}
.confiance-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.confiance-item p {
    font-size: .9rem;
    color: #6b7280;
}

/* === FAQ === */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: .5rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f5f7fa;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    color: #1a2332;
    text-align: left;
    font-family: inherit;
}
.faq-question:hover { background: #eef0f3; }
.faq-toggle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #c9a84c;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-answer p {
    padding: 1rem 1.25rem;
    color: #374151;
    font-size: .9rem;
    line-height: 1.6;
}

/* === CTA BOX === */
.cta-box {
    background: #1a2332;
    color: #fff;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    margin: 2.5rem 0;
}
.cta-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.cta-box p {
    color: #d1d5db;
    margin-bottom: 1.25rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cta-box .btn { margin: .35rem; }
.cta-box .btn-outline {
    color: #fff;
    border-color: #fff;
}
.cta-box .btn-outline:hover {
    background: #fff;
    color: #1a2332;
}

/* === SOURCES === */
.sources {
    margin: 2rem 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.sources ul {
    list-style: disc;
    padding-left: 1.5rem;
}
.sources li { margin-bottom: .25rem; }
.sources a { color: #6b7280; }
.sources a:hover { color: #c9a84c; }

/* === FOOTER === */
.site-footer {
    background: #1a2332;
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: #9ca3af; font-size: .85rem; }
.footer-col a:hover { color: #c9a84c; }
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.25rem;
    text-align: center;
    font-size: .8rem;
    color: #6b7280;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .confiance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
    }
    .nav-menu.open { display: block; }
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: .5rem 0;
    }
    .nav-menu a {
        display: block;
        padding: .75rem 1.25rem;
    }
    .btn-nav { margin: .5rem 1.25rem; text-align: center; }

    .hero { padding: 2.5rem 0; }
    .hero h1 { font-size: 1.6rem; }

    .grid-3 { grid-template-columns: 1fr; }
    .confiance-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .classement-card {
        grid-template-columns: 50px 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
    .classement-action {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .article-content h2 { font-size: 1.3rem; }
}
