/* Blog Hero Section */
.blog-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: #FAF5EB;
}

.blog-hero h1 {
    font-size: 2.5rem;
    color: #FFC700;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #003459;
    max-width: 600px;
    margin: 0 auto;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

.article-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,52,89,0.08);
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* Réduit de 50% à 40% pour une image plus courte */
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.2rem; /* Réduit de 1.5rem à 1.2rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.6rem; /* Réduit de 0.8rem à 0.6rem */
    color: #6c757d;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content h2 {
    font-size: 1.2rem;
    color: #FFC700;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-weight: 700;
}

.article-content p {
    color: #003459;
    margin-bottom: 1rem;
    line-height: 1.4;
    opacity: 0.9;
    font-size: 0.9rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #003459;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #FFC700;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFD600 100%);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 4rem;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    color: #FFC700;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #003459;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #FFD600;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background: #FFC700;
    color: #003459;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #003459;
    color: #FAF5EB;
}

/* Blog Page Styles */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #FFC700;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: #003459;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Filter */
.categories-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #FFC700;
    border-radius: 25px;
    background: transparent;
    color: #003459;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FFC700;
    color: #FAF5EB;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 52, 89, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 52, 89, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 52, 89, 0.15);
}

.article-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* Réduit de 50% à 40% pour une image plus courte */
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.2rem; /* Réduit de 1.5rem à 1.2rem */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem; /* Réduit de 0.8rem à 0.6rem */
    font-size: 0.85rem;
}

.article-meta .date {
    color: var(--text-color);
    opacity: 0.8;
}

.article-meta .category {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    background: rgba(255, 199, 0, 0.1);
    border-radius: 15px;
}

.article-card .article-content h2 {
    font-size: 1.2rem;
    color: #FFC700;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-weight: 700;
}

.article-card .article-content p {
    color: #003459;
    margin-bottom: 1rem;
    line-height: 1.4;
    opacity: 0.9;
    font-size: 0.9rem;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFC700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.article-link:hover {
    color: #003459;
}

.article-link i {
    transition: transform 0.3s ease;
}

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

/* Article Page Styles */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-header .meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-header .meta span {
    color: var(--text-color);
    opacity: 0.8;
}

.article-header .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-header .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.article-header .author .name {
    color: var(--primary-color);
    font-weight: 600;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.article-content img {
    width: 100%;
    border-radius: 15px;
    margin: 2rem 0;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: rgba(255, 199, 0, 0.05);
    border-radius: 0 15px 15px 0;
}

.article-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-content {
        padding: 4rem 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem; /* Réduit le padding latéral */
    }

    .article-card {
        border-radius: 12px;
        margin: 0 0.5rem; /* Ajoute une marge minimale */
        width: calc(100% - 1rem); /* Ajuste la largeur pour tenir compte des marges */
    }

    .article-content {
        padding: 1rem;
    }

    .article-content h2 {
        font-size: 1.1rem;
    }

    .article-content p {
        font-size: 0.85rem;
    }

    .article-header h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .article-header .meta {
        flex-direction: column;
        gap: 1rem;
    }

    .article-content {
        padding: 0 1rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}

/* Ajustement pour les très petits écrans */
@media (max-width: 480px) {
    .articles-grid {
        padding: 0 0.3rem; /* Encore moins de padding sur très petit écran */
    }

    .article-card {
        margin: 0 0.3rem;
        width: calc(100% - 0.6rem);
    }
}

/* Search Bar Styles */
.search-container {
    margin: 2rem 0;
    width: 100%;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.search-box button:hover {
    color: var(--accent-color);
}

.search-results {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.search-results.active {
    display: block;
}

.search-results .no-results {
    text-align: center;
    color: var(--text-color);
    padding: 1rem;
}

/* Highlight search terms */
.highlight {
    background-color: rgba(255, 255, 0, 0.3);
    padding: 0 2px;
    border-radius: 2px;
} 