/*
Theme Name: Planetebike
Theme URI: https://planetebike.fr
Description: Thème blog cyclisme - Design épuré style GeneratePress
Author: Planetebike
Version: 1.0.0
Text Domain: planetebike
*/

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --pb-primary: #1e73be;
    --pb-primary-dark: #155a96;
    --pb-accent: #ff6b35;
    --pb-text: #333;
    --pb-text-light: #666;
    --pb-bg: #fff;
    --pb-bg-light: #f7f8fa;
    --pb-border: #e5e7eb;
    --pb-radius: 6px;
    --pb-max-width: 1200px;
    --pb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pb-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--pb-font);
    color: var(--pb-text);
    background: var(--pb-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--pb-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pb-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pb-font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
}

/* ========================================
   Header
   ======================================== */
.pb-header {
    background: #fff;
    border-bottom: 1px solid var(--pb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pb-header-inner {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.pb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
}

.pb-logo svg { width: 36px; height: 36px; }

.pb-logo span { color: var(--pb-primary); }

.pb-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.pb-nav a {
    padding: 0 16px;
    height: 65px;
    display: flex;
    align-items: center;
    color: var(--pb-text);
    font-size: .9rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all .2s;
}

.pb-nav a:hover,
.pb-nav a.current {
    color: var(--pb-primary);
    border-bottom-color: var(--pb-primary);
}

.pb-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pb-text);
    padding: 8px;
}

/* ========================================
   Hero (Homepage)
   ======================================== */
.pb-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.pb-hero h1 {
    color: #fff;
    font-size: 2.6rem;
    max-width: 700px;
    margin: 0 auto 16px;
}

.pb-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    max-width: 550px;
    margin: 0 auto 30px;
}

.pb-hero-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.pb-hero-search input {
    flex: 1;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    outline: none;
    color: var(--pb-text);
}

.pb-hero-search button {
    background: var(--pb-primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background .2s;
}

.pb-hero-search button:hover { background: var(--pb-primary-dark); }

/* ========================================
   Categories Bar
   ======================================== */
.pb-categories {
    background: var(--pb-bg-light);
    border-bottom: 1px solid var(--pb-border);
    padding: 16px 20px;
}

.pb-categories-inner {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pb-categories-inner::-webkit-scrollbar { display: none; }

.pb-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--pb-text);
    white-space: nowrap;
    transition: all .2s;
    text-decoration: none;
}

.pb-cat-pill:hover,
.pb-cat-pill.active {
    background: var(--pb-primary);
    color: #fff;
    border-color: var(--pb-primary);
}

.pb-cat-pill .cat-icon { font-size: 1rem; }

/* ========================================
   Content Layout
   ======================================== */
.pb-content {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.pb-section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pb-border);
}

.pb-section-title span { color: var(--pb-primary); }

/* ========================================
   Article Grid
   ======================================== */
.pb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pb-card {
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.pb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.pb-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--pb-bg-light);
}

.pb-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--pb-bg-light) 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-card-img-placeholder svg { width: 48px; height: 48px; opacity: .3; }

.pb-card-body { padding: 20px; }

.pb-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: .8rem;
    color: var(--pb-text-light);
}

.pb-card-cat {
    background: rgba(30,115,190,.1);
    color: var(--pb-primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
}

.pb-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pb-card-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.pb-card-title a:hover { color: var(--pb-primary); }

.pb-card-excerpt {
    font-size: .9rem;
    color: var(--pb-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pb-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--pb-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pb-read-more {
    font-size: .85rem;
    font-weight: 600;
    color: var(--pb-primary);
}

.pb-read-more:hover { color: var(--pb-primary-dark); }

/* ========================================
   Featured / Large Card
   ======================================== */
.pb-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.pb-featured-card {
    position: relative;
    border-radius: var(--pb-radius);
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
}

.pb-featured-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-featured-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent 60%);
}

.pb-featured-card .pb-featured-body {
    position: relative;
    padding: 30px;
    color: #fff;
    z-index: 1;
}

.pb-featured-body .pb-card-cat {
    background: var(--pb-primary);
    color: #fff;
}

.pb-featured-body h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 12px 0 8px;
}

.pb-featured-body h2 a { color: #fff; }
.pb-featured-body h2 a:hover { color: rgba(255,255,255,.85); }

.pb-featured-body p {
    color: rgba(255,255,255,.8);
    font-size: .9rem;
}

/* ========================================
   Sidebar
   ======================================== */
.pb-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.pb-sidebar .pb-widget {
    background: var(--pb-bg-light);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.pb-widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pb-primary);
}

.pb-widget-list {
    list-style: none;
}

.pb-widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--pb-border);
}

.pb-widget-list li:last-child { border-bottom: none; }

.pb-widget-list a {
    color: var(--pb-text);
    font-size: .9rem;
}

.pb-widget-list a:hover { color: var(--pb-primary); }

/* ========================================
   Single Article
   ======================================== */
.pb-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pb-single-header { margin-bottom: 32px; }

.pb-single-header .pb-card-cat { margin-bottom: 12px; display: inline-block; }

.pb-single-header h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.pb-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--pb-text-light);
    font-size: .9rem;
}

.pb-single-featured {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--pb-radius);
    margin-bottom: 32px;
}

.pb-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.pb-single-content h2 {
    font-size: 1.6rem;
    margin: 36px 0 16px;
}

.pb-single-content h3 {
    font-size: 1.3rem;
    margin: 28px 0 12px;
}

.pb-single-content p { margin-bottom: 18px; }

.pb-single-content ul, .pb-single-content ol {
    margin: 0 0 18px 24px;
}

.pb-single-content li { margin-bottom: 6px; }

.pb-single-content img {
    border-radius: var(--pb-radius);
    margin: 24px 0;
}

.pb-single-content blockquote {
    border-left: 4px solid var(--pb-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--pb-bg-light);
    border-radius: 0 var(--pb-radius) var(--pb-radius) 0;
    font-style: italic;
    color: var(--pb-text-light);
}

/* Tags */
.pb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--pb-border);
}

.pb-tag {
    background: var(--pb-bg-light);
    border: 1px solid var(--pb-border);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .8rem;
    color: var(--pb-text-light);
}

.pb-tag:hover { border-color: var(--pb-primary); color: var(--pb-primary); }

/* ========================================
   Related Articles
   ======================================== */
.pb-related {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 20px 40px;
}

/* ========================================
   Pagination
   ======================================== */
.pb-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pb-pagination a, .pb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    font-size: .9rem;
    color: var(--pb-text);
    font-weight: 500;
}

.pb-pagination .current {
    background: var(--pb-primary);
    color: #fff;
    border-color: var(--pb-primary);
}

.pb-pagination a:hover {
    border-color: var(--pb-primary);
    color: var(--pb-primary);
}

/* ========================================
   Footer
   ======================================== */
.pb-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,.7);
    padding: 50px 20px 30px;
}

.pb-footer-inner {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.pb-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.pb-footer p { font-size: .9rem; line-height: 1.6; }

.pb-footer-links {
    list-style: none;
}

.pb-footer-links li { margin-bottom: 8px; }

.pb-footer-links a {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}

.pb-footer-links a:hover { color: #fff; }

.pb-footer-bottom {
    max-width: var(--pb-max-width);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    font-size: .85rem;
}

/* ========================================
   Archive / Category Page
   ======================================== */
.pb-archive-header {
    background: var(--pb-bg-light);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--pb-border);
}

.pb-archive-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.pb-archive-header p {
    color: var(--pb-text-light);
    font-size: 1rem;
}

/* ========================================
   Breadcrumb
   ======================================== */
.pb-breadcrumb {
    max-width: var(--pb-max-width);
    margin: 0 auto;
    padding: 14px 20px;
    font-size: .85rem;
    color: var(--pb-text-light);
}

.pb-breadcrumb a { color: var(--pb-text-light); }
.pb-breadcrumb a:hover { color: var(--pb-primary); }
.pb-breadcrumb span { margin: 0 6px; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .pb-grid { grid-template-columns: repeat(2, 1fr); }
    .pb-footer-inner { grid-template-columns: 1fr 1fr; }
    .pb-layout-sidebar { grid-template-columns: 1fr; }
    .pb-sidebar { order: 2; }
}

@media (max-width: 768px) {
    .pb-nav {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        border-bottom: 1px solid var(--pb-border);
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
    }
    .pb-nav.open { display: flex; }
    .pb-nav a {
        height: auto;
        padding: 14px 20px;
        border-bottom: 1px solid var(--pb-border);
    }
    .pb-menu-toggle { display: block; }
    .pb-hero h1 { font-size: 1.8rem; }
    .pb-hero { padding: 50px 20px; }
    .pb-grid { grid-template-columns: 1fr; }
    .pb-featured { grid-template-columns: 1fr; }
    .pb-featured-card { min-height: 250px; }
    .pb-single-header h1 { font-size: 1.6rem; }
    .pb-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
