/* CableOrganizer France - Stylesheet */
:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --accent: #ea580c;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header (Sans bouton À propos) */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
}

.brand-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.site-nav {
    display: flex;
    gap: 12px;
}

.nav-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Hero Banner (Sans recherche, filtres catégories en vedette) */
.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
    color: #ffffff;
    padding: 45px 24px 38px;
    text-align: center;
}

.hero-container {
    max-width: 1050px;
    margin: 0 auto;
}

.hero-banner h1 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.hero-banner p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 24px;
}

.categories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    padding: 6px 0;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-pill:hover, .filter-pill.active {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    font-weight: 700;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Main Content & Grid */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    flex: 1;
    width: 100%;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.card-thumb {
    width: 100%;
    height: 190px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-thumb img {
    transform: scale(1.04);
}

/* Gradient Thumbnails for articles without image */
.card-thumb-gradient {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.gradient-style-0 { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.gradient-style-1 { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.gradient-style-2 { background: linear-gradient(135deg, #3730a3 0%, #6366f1 100%); }
.gradient-style-3 { background: linear-gradient(135deg, #c2410c 0%, #f97316 100%); }
.gradient-style-4 { background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%); }
.gradient-style-5 { background: linear-gradient(135deg, #334155 0%, #64748b 100%); }

.gradient-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    text-align: center;
    padding: 16px;
    z-index: 2;
}

.gradient-icon {
    stroke: #ffffff;
    opacity: 0.95;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.25));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .gradient-icon {
    transform: scale(1.15) translateY(-2px);
}

.gradient-cat {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    background: rgba(0, 0, 0, 0.22);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.card-category {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.4px;
}

.card-date {
    color: var(--text-muted);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

.card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.15s ease;
}

.card-title a:hover {
    color: var(--primary);
}

.card-preview {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 20px;
    flex: 1;
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.card-read-more:hover {
    gap: 10px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* Single Article View */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.breadcrumb {
    margin-bottom: 25px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.category-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin-bottom: 14px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    align-items: center;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
    color: #0f172a;
    margin: 28px 0 14px;
    font-weight: 700;
    line-height: 1.3;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body ul, .article-body ol {
    margin: 16px 0 20px 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md);
    margin: 24px auto;
    box-shadow: var(--shadow-md);
}

/* Call to Action Button */
.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px 0 20px;
    text-align: center;
}

.btn-product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-product-cta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 22px rgba(29, 78, 216, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-product-cta .cta-arrow {
    transition: transform 0.2s ease;
}

.btn-product-cta:hover .cta-arrow {
    transform: translateX(4px);
}

.wp-caption, .mceTemp {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.article-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.tag-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.article-pagination {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-nav {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.88rem;
    background: #f8fafc;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    max-width: 48%;
}

.btn-nav strong {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-top: 4px;
}

.btn-nav:hover {
    background: var(--primary-light);
    border-color: #bfdbfe;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 30px 24px;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-meta {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner h1 { font-size: 1.7rem; }
    .article-container { padding: 24px 18px; }
    .article-title { font-size: 1.6rem; }
    .btn-nav { max-width: 100%; width: 100%; }
}
