/* ===================================
   SOCIÉTÉ DENIS - CSS PROPRE
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a1628;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HEADER */
.site-header {
    background: rgba(10, 22, 40, 0.95);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    margin: 0;
}

.site-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00d4ff;
}

/* MAIN */
.site-main {
    min-height: 70vh;
    padding: 3rem 0;
}

.page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2);
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 10px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 30px rgba(0, 212, 255, 0.4),
            0 0 40px rgba(0, 212, 255, 0.2);
    }
    to {
        text-shadow: 
            0 0 20px rgba(0, 212, 255, 1),
            0 0 30px rgba(0, 212, 255, 0.8),
            0 0 40px rgba(0, 212, 255, 0.6),
            0 0 50px rgba(0, 212, 255, 0.4),
            0 0 60px rgba(0, 212, 255, 0.2);
    }
}

/* GRILLE NEWS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Maximum 4 colonnes sur grand écran */
@media (min-width: 1400px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.news-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.4);
}

.card-image {
    display: block;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-content time {
    display: block;
    color: #8fa8c7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-content h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h3 a:hover {
    color: #00d4ff;
}

.card-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-block;
}

.card-link:hover {
    transform: translateX(5px);
}

/* FOOTER */
.site-footer {
    background: rgba(10, 22, 40, 0.95);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-nav a {
    color: #8fa8c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #00d4ff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* PAGE CONTENT */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
}

.page-text {
    color: #fff;
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-text h2 {
    color: #00d4ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.page-text h3 {
    color: #00d4ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

.page-text p {
    margin-bottom: 1rem;
}

.page-text ul, .page-text ol {
    margin: 1rem 0 1rem 2rem;
    color: #8fa8c7;
}

.page-text li {
    margin-bottom: 0.5rem;
}

.page-text a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: border-color 0.3s ease;
}

.page-text a:hover {
    border-bottom-color: #00d4ff;
}

.page-text strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
    }
    
    .page-text {
        font-size: 1rem;
    }
    
    .page-text h2 {
        font-size: 1.5rem;
    }
    
    .page-text h3 {
        font-size: 1.2rem;
    }
}

/* SINGLE POST */
.single-post {
    max-width: 900px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.post-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.post-date {
    color: #8fa8c7;
    font-size: 1rem;
}

.post-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
}

.post-content {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    color: #fff;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content h2 {
    color: #00d4ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
}

.post-content h3 {
    color: #00d4ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

.post-content ul, .post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* FRONT PAGE */
.front-page {
    padding: 2rem 0;
}

.no-posts {
    grid-column: 1 / -1;
    padding: 3rem;
    text-align: center;
}

.card-excerpt {
    color: #8fa8c7;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-excerpt p {
    margin: 0;
}

/* POST NAVIGATION */
.post-navigation {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(0, 212, 255, 0.2) !important;
    text-align: center !important;
}

.back-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem 2rem !important;
    background: rgba(0, 212, 255, 0.15) !important;
    border: 2px solid #00d4ff !important;
    border-radius: 8px !important;
    color: #00d4ff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    font-family: 'Rajdhani', sans-serif !important;
    transition: all 0.3s ease !important;
}

.back-button:hover {
    background: rgba(0, 212, 255, 0.3) !important;
    transform: translateX(-5px) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5) !important;
}

.back-button svg {
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.3s ease !important;
}

.back-button:hover svg {
    transform: translateX(-3px) !important;
}

/* FILTERS BAR */
.filters-bar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
}

.filters-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categories-filter,
.tags-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    color: #8fa8c7;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag-btn {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 0.85rem;
}

.filter-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.search-filter {
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #8fa8c7;
}

.search-input:focus {
    outline: none;
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa8c7;
    pointer-events: none;
}

/* Animation filtres */
.news-card.hidden {
    display: none;
}

.news-card.show {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive filters */
@media (max-width: 768px) {
    .filters-bar {
        padding: 1rem;
    }
    
    .filter-label {
        font-size: 0.85rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}
