/**
 * Articles Hub Page Styles
 * Extracted from page-actualites.php inline <style>
 *
 * @package DLM_EFormation
 */

/* Hub-specific styles */
.hub-page { background: #f8f9fa; min-height: 100vh; }
.hub-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 60%, #3182ce 100%);
    color: #fff; padding: 180px 20px 60px; text-align: center;
    margin-top: -100px;
}
.hub-hero h1 { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; margin-bottom: 12px; }
.hub-hero p  { font-size: 1.1rem; color: #fff; opacity: 1; max-width: 700px; margin: 0 auto; }

.hub-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Category headers */
.hub-category { margin: 50px 0 20px; }
.hub-category h2 {
    font-size: 1.5rem; font-weight: 700; color: #1e3a5f;
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 10px; border-bottom: 3px solid #e2e8f0;
}
.hub-category h2 i { font-size: 1.2rem; }
.hub-category h2 .cat-badge {
    font-size: .75rem; font-weight: 600; padding: 3px 10px;
    border-radius: 20px; margin-left: auto;
}
.badge-haccp  { background: #fef2f2; color: #b91c1c; }
.badge-pe     { background: #eff6ff; color: #1e40af; }
.badge-regl   { background: #f0fdf4; color: #166534; }

/* Article grid */
.hub-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px; margin-bottom: 40px;
}
.hub-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .25s ease;
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border: 1px solid #e2e8f0;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); border-color: #3182ce; }
.card-top {
    padding: 24px 24px 16px; display: flex; align-items: flex-start; gap: 14px;
}
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 1.2rem;
    flex-shrink: 0;
}
.icon-haccp  { background: #fef2f2; color: #dc2626; }
.icon-pe     { background: #eff6ff; color: #2563eb; }
.icon-regl   { background: #f0fdf4; color: #16a34a; }
.card-top h3 { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.35; }
.card-body {
    padding: 0 24px 20px; flex: 1;
}
.card-body p { font-size: .92rem; color: #64748b; line-height: 1.6; margin: 0; }
.card-footer {
    padding: 14px 24px; border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between;
}
.card-tag { font-size: .75rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }
.card-arrow { color: #3182ce; font-size: .9rem; font-weight: 600; }

/* CTA Conversion Block */
.hub-cta {
    background: linear-gradient(135deg, #102a43 0%, #1e3a5f 100%);
    color: #fff; padding: 50px 40px; border-radius: 16px;
    text-align: center; margin: 50px 0; position: relative; overflow: hidden;
}
.hub-cta::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hub-cta > * { position: relative; z-index: 1; }
.hub-cta h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.7rem; font-weight: 700; margin-bottom: 10px; color: #fff !important; }
.hub-cta p  { color: #fff !important; opacity: .9; margin-bottom: 30px; font-size: 1.05rem; line-height: 1.6; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 10px; font-size: .95rem;
    font-weight: 700; text-decoration: none; transition: all .2s ease;
}
.cta-btn-gold {
    background: linear-gradient(135deg, #d4a012, #b8860b); color: #102a43;
    box-shadow: 0 4px 14px rgba(212,160,18,.3);
}
.cta-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,160,18,.4); color: #102a43; }
.cta-btn-outline {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35);
}
.cta-btn-outline:hover { border-color: #d4a012; color: #d4a012; transform: translateY(-2px); }
.cta-trust { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.cta-trust span {
    font-size: .85rem; color: rgba(255,255,255,.7);
    display: flex; align-items: center; gap: 6px;
}
.cta-trust i { color: #d4a012; font-size: .8rem; }

@media (max-width: 640px) {
    .hub-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .hub-cta { padding: 36px 20px; }
    .cta-trust { flex-direction: column; gap: 10px; align-items: center; }
}
