/* Variables CSS */
:root {
    --primary-gold: #ffd700;
    --primary-gold-light: #ffed4e;
    --primary-red: #dc143c;
    --primary-red-dark: #8b0000;
    --bg-dark: #000000;
    --bg-gray: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-gray-dark: #888888;
    --border-color: rgba(255, 215, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 215, 0, 0.2);
    --shadow-gold: rgba(255, 215, 0, 0.4);
    --shadow-dark: rgba(0, 0, 0, 0.4);
    --success-green: #28a745;
    --error-red: #dc3545;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-gray) 50%, var(--bg-dark) 100%);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(220, 20, 60, 0.1) 100%);
    overflow: hidden;
    padding: 60px 0;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    z-index: 2;
}

.hero-text {
    text-align: center;
    animation: fadeInUp 1s ease;
}


.title-icon {
    font-size: 3.5rem;
    color: var(--primary-gold);
    filter: drop-shadow(0 0 20px var(--shadow-gold));
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 25px 30px;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    min-width: 150px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-gold);
    border-color: var(--primary-gold);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Animation des ondes sonores */
.hero-animation {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.sound-wave {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 120px;
}

.wave-bar {
    width: 8px;
    background: linear-gradient(to top, var(--primary-gold), var(--primary-gold-light));
    border-radius: 4px;
    animation: waveAnimation 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 50%; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 80%; animation-delay: 0.4s; }

@keyframes waveAnimation {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 50px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.newsletter-icon {
    font-size: 3.5rem;
    color: var(--primary-gold);
    animation: bounce 2s infinite;
}

.newsletter-text {
    text-align: left;
}

.newsletter-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 400;
}

.newsletter-form {
    min-width: 450px;
}

.input-group {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.newsletter-input {
    flex: 1;
    padding: 20px 25px;
    border: 2px solid var(--border-color);
    border-right: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border-radius: 50px 0 0 50px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    padding: 20px 35px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
    color: var(--bg-dark);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-gold);
}

.newsletter-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 40px 60px;
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(40, 167, 69, 0.3);
    display: none;
    animation: slideInDown 0.5s ease;
    border: 2px solid var(--success-green);
}

.newsletter-success i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.newsletter-success h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-success p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sections communes */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 400;
}

/* Featured Articles */
.featured-section {
    padding: 100px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 35px;
}

.featured-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    position: relative;
    cursor: pointer;
    height: 100%;
}

.featured-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 25px 60px var(--shadow-gold);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.08);
}

.read-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-card:hover .read-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.featured-content {
    padding: 35px;
}

.featured-category {
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Préservation des sauts de ligne pour les excerpts des articles à la une */
.featured-excerpt {
    color: var(--text-gray);
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray-dark);
    font-size: 0.95rem;
}

.featured-author {
    color: var(--primary-gold);
    font-weight: 600;
}

.featured-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Filters Section */
.filters-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
}

.filters-header {
    text-align: center;
    margin-bottom: 50px;
}

.filters-header h3 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.filters-controls {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 40px;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray-dark);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 20px 25px 20px 60px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}

.search-input::placeholder {
    color: var(--text-gray-dark);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 15px 25px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
    color: var(--bg-dark);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-gold);
}

.sort-controls {
    display: flex;
    justify-content: flex-end;
}

.sort-select {
    padding: 18px 25px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.sort-select option {
    background: var(--bg-gray);
    color: var(--text-white);
}

/* Blogs Grid */
.blogs-section {
    padding: 80px 0 120px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.25);
}

.blog-cover {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-cover img {
    transform: scale(1.05);
}

.blog-read-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgba(255, 215,0, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.blog-card:hover .blog-read-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.blog-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-author {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray-dark);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Préservation des sauts de ligne pour les excerpts des cartes d'articles */
.blog-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex-grow: 1;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
}

.load-more-btn {
    padding: 20px 45px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px var(--shadow-gold);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-gold);
}

/* Article Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.article-modal.active {
    display: block;
}

.article-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
}

.article-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 215, 0, 0.03) 100%);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px var(--shadow-dark);
    animation: slideInUp 0.4s ease;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-close:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: rotate(90deg);
}

/* Article Header */
.article-header {
    position: relative;
    margin-bottom: 40px;
}

.article-cover {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    position: relative;
}

.article-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    z-index: 1;
}

.article-category {
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.article-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1rem;
}

.article-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.article-author {
    color: var(--primary-gold) !important;
    font-weight: 600;
}

/* Article Content */
.article-content {
    padding: 0 40px 30px;
}

/* Préservation des sauts de ligne pour l'excerpt de l'article dans le modal */
.article-excerpt {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--primary-gold);
    border-radius: 0 15px 15px 0;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Préservation des sauts de ligne pour le contenu principal de l'article */
.article-text {
    color: var(--text-white);
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4,
.article-text h5,
.article-text h6 {
    color: var(--primary-gold);
    margin: 30px 0 15px;
    font-weight: 700;
}

.article-text h2 { font-size: 1.8rem; }
.article-text h3 { font-size: 1.5rem; }
.article-text h4 { font-size: 1.3rem; }

.article-text p {
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-text blockquote {
    border-left: 4px solid var(--primary-gold);
    background: rgba(255, 215, 0, 0.05);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    color: var(--text-gray);
}

.article-text ul,
.article-text ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.article-text li {
    margin-bottom: 8px;
}

/* Article Actions */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
    padding: 0 40px;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    min-width: 140px;
    justify-content: center;
    font-size: 0.95rem;
}

.action-btn:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.action-btn i {
    font-size: 1.2rem;
}

.action-count {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-gold);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.like-btn.liked {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.like-btn.liked:hover {
    box-shadow: 0 12px 35px rgba(220, 20, 60, 0.6);
}

.like-btn.liked i {
    color: #ff6b7a;
    filter: drop-shadow(0 0 8px rgba(255, 107, 122, 0.5));
}

.action-btn:active {
    transform: scale(0.95) translateY(-2px);
}

.comment-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* Comments Section */
.comments-section {
    border-top: 2px solid var(--glass-border);
    padding: 30px 40px;
    display: none;
}

.comments-section.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.comments-section h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.comment-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-name-input,
.comment-text-input {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    color: var(--text-white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.comment-text-input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    white-space: pre-wrap;
}

.comment-name-input:focus,
.comment-text-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.comment-name-input::placeholder,
.comment-text-input::placeholder {
    color: var(--text-gray-dark);
}

.comment-submit-btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
    color: var(--bg-dark);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-end;
    font-size: 1rem;
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-gold);
}

.comment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 1rem;
}

.comment-date {
    color: var(--text-gray-dark);
    font-size: 0.85rem;
}

/* Préservation des sauts de ligne pour les commentaires */
.comment-text {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Loading States */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    color: var(--text-gray);
    text-align: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 4px solid var(--glass-border);
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

.comments-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    color: var(--text-gray);
}

.spinner-small {
    width: 35px;
    height: 35px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 100px 40px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 4.5rem;
    color: var(--text-gray-dark);
    margin-bottom: 25px;
    display: block;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.empty-state p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.comments-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-gray);
}

.comments-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: var(--text-gray-dark);
}

.comments-empty h4 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Scrollbar personnalisée */
.comments-list::-webkit-scrollbar,
.article-modal-content::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-track,
.article-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb,
.article-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb:hover,
.article-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-light);
}

/* Classes utilitaires pour la préservation du formatage */
.preserve-formatting {
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.preserve-formatting-full {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation pour les likes */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(0.95); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

.like-btn.liked {
    animation: likeAnimation 0.6s ease;
}

/* Notification toast */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    z-index: 10003;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-width: 300px;
    font-weight: 500;
}

.notification.success {
    background: var(--success-green);
    color: white;
}

.notification.error {
    background: var(--error-red);
    color: white;
}

.notification.info {
    background: #17a2b8;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-stats {
        gap: 40px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
    
    .filters-controls {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .newsletter-form {
        min-width: 350px;
    }
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .title-icon {
        font-size: 2.8rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    
    .newsletter-form {
        min-width: auto;
        width: 100%;
    }
    
    .hero-animation {
        display: none;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        min-width: 220px;
        justify-content: center;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .article-modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .stat-item {
        min-width: 180px;
    }
    
    .newsletter-content {
        padding: 40px 25px;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .newsletter-input,
    .newsletter-btn {
        border-radius: 20px;
        border: 2px solid var(--border-color);
    }
    
    .section-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 12px;
    }
    
    .featured-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .article-content {
        padding: 0 25px 25px;
    }
    
    .article-meta {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-info {
        gap: 20px;
        font-size: 0.9rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 25px;
    }
    
    .action-btn {
        min-width: 200px;
    }
    
    .comments-section {
        padding: 25px;
    }
    
    .comment-input-group {
        gap: 12px;
    }
    
    .comment-submit-btn {
        align-self: stretch;
        justify-content: center;
    }
    
    /* Amélioration pour les textes avec sauts de ligne sur mobile */
    .blog-excerpt,
    .featured-excerpt {
        word-break: break-word;
        hyphens: auto;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
        padding: 20px;
        word-break: break-word;
        hyphens: auto;
    }
    
    .article-text {
        font-size: 1rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    .comment-text {
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 50vh;
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .newsletter-section {
        padding: 60px 0;
    }
    
    .featured-section,
    .blogs-section {
        padding: 60px 0 80px;
    }
    
    .featured-content,
    .blog-info {
        padding: 25px;
    }
    
    .category-filters {
        gap: 12px;
    }
    
    .filter-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .article-modal-content {
        border-radius: 20px;
    }
    
    .article-content {
        padding: 0 20px 20px;
    }
    
    .article-meta {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .comments-list {
        max-height: 300px;
    }
    
    .comment-item {
        padding: 15px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    /* Amélioration supplémentaire pour très petits écrans */
    .blog-excerpt,
    .featured-excerpt,
    .article-excerpt,
    .article-text,
    .comment-text {
        overflow-wrap: anywhere;
    }
}

/* Accessibilité */
.keyboard-navigation *:focus {
    outline: 2px solid #ffd700 !important;
    outline-offset: 2px;
}

.sr-only {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Préférences utilisateur pour les animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mode sombre amélioré */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #000000;
        --bg-gray: #0a0a0a;
        --text-white: #ffffff;
        --text-gray: #e0e0e0;
        --text-gray-dark: #a0a0a0;
        --glass-bg: rgba(255, 255, 255, 0.03);
        --glass-border: rgba(255, 215, 0, 0.15);
    }
}

/* Mode à contraste élevé */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 215, 0, 0.6);
        --glass-border: rgba(255, 215, 0, 0.4);
        --text-gray: #f0f0f0;
        --text-gray-dark: #c0c0c0;
    }
    
    .blog-card,
    .featured-card,
    .article-modal-content {
        border-width: 3px;
    }
}

/* Impression */
@media print {
    .hero-animation,
    .newsletter-section,
    .filters-section,
    .article-actions,
    .comments-section,
    .modal-close,
    .load-more-btn {
        display: none !important;
    }
    
    .article-modal-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        max-height: none;
        background: white;
        color: black;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    .article-text,
    .article-excerpt,
    .blog-excerpt,
    .featured-excerpt,
    .comment-text {
        color: black;
        white-space: pre-line;
    }
    
    .article-title,
    .blog-title,
    .featured-title {
        color: black;
    }
}

/* Support pour les anciens navigateurs */
.no-webkit-line-clamp .blog-excerpt,
.no-webkit-line-clamp .featured-excerpt {
    max-height: 4.5em;
    overflow: hidden;
}

/* Fallback pour les navigateurs sans support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .featured-card,
    .blog-card,
    .article-modal-content,
    .newsletter-content {
        background: rgba(26, 26, 26, 0.95);
    }
}

/* États de focus améliorés */
.filter-btn:focus,
.sort-select:focus,
.newsletter-input:focus,
.newsletter-btn:focus,
.search-input:focus,
.action-btn:focus,
.comment-name-input:focus,
.comment-text-input:focus,
.comment-submit-btn:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Transitions fluides pour tous les éléments interactifs */
.filter-btn,
.sort-select,
.newsletter-input,
.newsletter-btn,
.search-input,
.action-btn,
.comment-name-input,
.comment-text-input,
.comment-submit-btn,
.blog-card,
.featured-card,
.load-more-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration des performances pour les animations */
.featured-card,
.blog-card,
.stat-item,
.filter-btn,
.action-btn {
    will-change: transform;
}

.featured-card:hover,
.blog-card:hover,
.stat-item:hover,
.filter-btn:hover,
.action-btn:hover {
    will-change: auto;
}

