/* ===== Blog Natic Ocean — styles partagés ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --deep: #003b5c;
    --deep-2: #00567f;
    --blue: #0077b6;
    --cyan: #00b4d8;
    --ice: #f0f4f8;
    --ink: #1a2b3c;
    --muted: #5a7a8a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--ice);
    color: var(--ink);
}
a { color: inherit; }

/* ===== TOP BAR ===== */
.topbar {
    background: var(--deep);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 7px 20px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.topbar a { color: #9fe0ff; text-decoration: none; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== NAV ===== */
.nav { background: #fff; box-shadow: 0 2px 12px rgba(0,50,100,0.08); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--deep); text-decoration: none; letter-spacing: 0.5px; }
.brand .anchor { color: var(--cyan); font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink); transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.shop-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff !important; padding: 10px 22px; border-radius: 50px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,119,182,0.35); transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.shop-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,119,182,0.45); }
.burger { display: none; font-size: 26px; background: none; border: none; cursor: pointer; color: var(--deep); }

/* ===== HERO ===== */
.hero {
    position: relative; height: 480px;
    background: url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?w=1600&q=80') center center / cover no-repeat;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,40,70,0.7) 0%, rgba(0,86,127,0.45) 60%, rgba(0,25,45,0.78) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-logo { font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: #9fe0ff; margin-bottom: 14px; font-weight: 600; }
.hero h1 { font-size: 50px; font-weight: 800; color: #fff; line-height: 1.15; text-shadow: 0 2px 20px rgba(0,0,0,0.5); margin-bottom: 16px; }
.hero h1 span { color: #7ecfff; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.9); max-width: 580px; margin: 0 auto 28px; line-height: 1.6; }
.hero-btn {
    display: inline-block; background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff; padding: 14px 36px; border-radius: 50px; font-size: 15px; font-weight: 600; text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,119,182,0.5); transition: transform 0.2s, box-shadow 0.2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,119,182,0.6); }
.wave { display: block; width: 100%; margin-top: -2px; }

/* ===== CATEGORIES ===== */
.categories { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 32px 20px 10px; max-width: 1180px; margin: 0 auto; }
.cat-btn {
    padding: 9px 20px; border-radius: 50px; border: 2px solid var(--blue); color: var(--blue);
    font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; transition: all 0.2s; text-decoration: none;
}
.cat-btn:hover, .cat-btn.active { background: var(--blue); color: #fff; }

/* ===== SECTION TITLE ===== */
.section-title { text-align: center; padding: 40px 20px 10px; }
.section-title h2 { font-size: 32px; font-weight: 800; color: var(--ink); }
.section-title h2 span { color: var(--blue); }
.section-title p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; margin: 14px auto 0; }

/* ===== FEATURED ===== */
.featured-wrapper { max-width: 1180px; margin: 36px auto 0; padding: 0 20px; }
.featured-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,50,100,0.13); background: #fff; transition: transform 0.3s; }
.featured-card:hover { transform: translateY(-4px); }
.featured-img { min-height: 340px; background-size: cover; background-position: center; }
.featured-body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.tag { display: inline-block; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 50px; margin-bottom: 16px; width: fit-content; }
.tag.green { background: linear-gradient(135deg, #0a9e6e, #00c896); }
.tag.orange { background: linear-gradient(135deg, #e07b00, #f5a623); }
.tag.purple { background: linear-gradient(135deg, #5a3fa0, #8b6fcb); }
.featured-body h3 { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 14px; }
.featured-body p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #7a9ab0; margin-bottom: 24px; }
.meta span { display: flex; align-items: center; gap: 5px; }
.read-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; font-size: 14px; text-decoration: none; transition: gap 0.2s; }
.read-btn:hover { gap: 14px; }

/* ===== BLOG GRID ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1180px; margin: 44px auto 0; padding: 0 20px; }
.blog-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,50,100,0.09); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,50,100,0.16); }
.card-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.card-img .tag { position: absolute; top: 14px; left: 14px; margin: 0; }
.card-body { padding: 22px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 10px; }
.card-body p { color: #6a8a9a; font-size: 14px; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid #e8f0f5; }
.card-date { font-size: 12px; color: #9ab0be; display: flex; align-items: center; gap: 5px; }
.card-link { font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ===== PLACEHOLDER ===== */
.placeholder-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,50,100,0.07); border: 2px dashed #c8dce8; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; padding: 30px; text-align: center; }
.placeholder-icon { width: 64px; height: 64px; background: linear-gradient(135deg, #e8f4fd, #cce8f8); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 28px; }
.placeholder-card h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.placeholder-card p { font-size: 13px; color: #8aaabb; line-height: 1.5; }

/* ===== CTA BOUTIQUE ===== */
.shop-cta { max-width: 1180px; margin: 60px auto 0; padding: 0 20px; }
.shop-cta-inner { background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%); border-radius: 24px; padding: 46px 40px; text-align: center; box-shadow: 0 12px 40px rgba(0,59,92,0.3); }
.shop-cta-inner h3 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.shop-cta-inner p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 26px; max-width: 620px; margin-left: auto; margin-right: auto; }
.shop-cta-inner .hero-btn { background: linear-gradient(135deg, var(--cyan), #7ecfff); color: var(--deep); }

/* ===== NEWSLETTER ===== */
.newsletter { margin: 50px auto 60px; max-width: 700px; background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%); border-radius: 24px; padding: 50px 40px; text-align: center; box-shadow: 0 12px 40px rgba(0,119,182,0.3); }
.newsletter h3 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.newsletter p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 20px; border-radius: 50px; border: none; font-size: 14px; outline: none; }
.newsletter-form button { padding: 14px 28px; background: var(--ink); color: #fff; border: none; border-radius: 50px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.newsletter-form button:hover { background: #0a1a2a; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 44px 20px 0; }
.footer-cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-cols h5 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-cols a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; margin-bottom: 9px; transition: color 0.2s; }
.footer-cols a:hover { color: #7ecfff; }
.footer-brand { font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand .anchor { color: var(--cyan); }
.footer-about { font-size: 14px; line-height: 1.7; max-width: 360px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.12); text-align: center; padding: 18px 20px; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bar a { color: #7ecfff; text-decoration: none; }

/* ===== ARTICLE PAGE ===== */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.article-hero { position: relative; height: 380px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.article-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,30,55,0.2), rgba(0,30,55,0.8)); }
.article-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 20px 36px; width: 100%; }
.article-hero h1 { color: #fff; font-size: 40px; font-weight: 800; line-height: 1.2; max-width: 760px; text-shadow: 0 2px 18px rgba(0,0,0,0.5); }
.article-meta-bar { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,0.92); font-size: 14px; margin-top: 14px; }
.breadcrumb { max-width: 820px; margin: 0 auto; padding: 18px 20px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.article-body { background: #fff; border-radius: 18px; box-shadow: 0 8px 40px rgba(0,50,100,0.10); padding: 48px 52px; margin: -40px auto 0; position: relative; z-index: 3; }
.article-body p { font-size: 16.5px; line-height: 1.8; color: #2c3e4f; margin-bottom: 20px; }
.article-body h2 { font-size: 25px; font-weight: 800; color: var(--ink); margin: 34px 0 14px; }
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--deep-2); margin: 24px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { font-size: 16.5px; line-height: 1.7; color: #2c3e4f; margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--blue); font-weight: 600; }
.article-body blockquote { border-left: 4px solid var(--cyan); background: #f0f8fc; padding: 16px 22px; border-radius: 8px; margin: 0 0 22px; color: var(--deep-2); font-style: italic; }
.article-body .callout { background: linear-gradient(135deg, #e8f6fd, #d6eefb); border-radius: 12px; padding: 20px 24px; margin: 0 0 22px; }
.article-body .callout strong { color: var(--deep); }

/* Éléments issus du Markdown (Parsedown) */
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0 24px; display: block; }
.article-body hr { border: none; border-top: 1px solid #e2ecf2; margin: 32px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14.5px; overflow: hidden; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,50,100,0.07); }
.article-body table th { background: var(--deep); color: #fff; text-align: left; padding: 12px 14px; font-weight: 700; }
.article-body table td { padding: 11px 14px; border-bottom: 1px solid #e8f0f5; color: #2c3e4f; }
.article-body table tr:nth-child(even) td { background: #f6fafc; }
.article-body table tr:last-child td { border-bottom: none; }
.article-body code { background: #eef4f8; padding: 2px 7px; border-radius: 5px; font-size: 0.92em; color: var(--deep-2); }
.article-body pre { background: #0e2433; color: #e6f1f7; padding: 18px 20px; border-radius: 10px; overflow-x: auto; margin: 0 0 22px; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body h1 { font-size: 30px; font-weight: 800; color: var(--ink); margin: 10px 0 18px; line-height: 1.2; }
.article-cta { text-align: center; margin: 36px 0 10px; }
.back-link { display: inline-block; margin: 30px auto; color: var(--blue); font-weight: 700; text-decoration: none; }

/* ===== FAQ PAGE ===== */
.faq-hero { background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%); padding: 56px 20px 70px; text-align: center; }
.faq-hero h1 { color: #fff; font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.faq-hero p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.faq-wrap { max-width: 860px; margin: -40px auto 0; padding: 0 20px 40px; position: relative; z-index: 3; }

/* Sommaire des thèmes */
.faq-toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,50,100,0.10); padding: 22px; margin-bottom: 34px; }
.faq-toc a { padding: 8px 18px; border-radius: 50px; background: var(--ice); color: var(--deep-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s; }
.faq-toc a:hover { background: var(--blue); color: #fff; }

.faq-section { margin-bottom: 38px; scroll-margin-top: 80px; }
.faq-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.faq-section-head h2 { font-size: 24px; font-weight: 800; color: var(--ink); }
.faq-section-head .bar { width: 40px; height: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; }

/* Item accordéon */
.faq-item { background: #fff; border-radius: 12px; box-shadow: 0 3px 16px rgba(0,50,100,0.07); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q:hover { color: var(--blue); }
.faq-q .chev { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ice); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--blue); transition: transform 0.25s, background 0.2s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: var(--blue); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: #45606f; font-size: 15px; line-height: 1.7; }
.faq-a-inner p { margin-bottom: 10px; }
.faq-a-inner ul { margin: 0 0 10px 20px; }
.faq-a-inner li { margin-bottom: 6px; }
.faq-a-inner strong { color: var(--ink); }
.faq-a-inner a { color: var(--blue); font-weight: 600; }
.faq-item.open .faq-a { max-height: 600px; }

/* Bloc contact en bas de FAQ */
.faq-contact { background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%); border-radius: 20px; padding: 40px; text-align: center; margin-top: 40px; box-shadow: 0 12px 40px rgba(0,119,182,0.3); }
.faq-contact h3 { color: #fff; font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.faq-contact p { color: rgba(255,255,255,0.9); font-size: 15px; margin-bottom: 22px; }
.faq-contact .hero-btn { background: #fff; color: var(--blue); }

@media (max-width: 600px) { .faq-hero h1 { font-size: 30px; } .faq-q { font-size: 15px; padding: 16px 18px; } }
@media (max-width: 900px) { .featured-card { grid-template-columns: 1fr; } .featured-img { min-height: 220px; } .blog-grid { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 36px; } .article-hero h1 { font-size: 30px; } .article-body { padding: 32px 26px; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 28px; } .newsletter-form { flex-direction: column; } .featured-body { padding: 28px 24px; } }
