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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #22262c;
    color: #e46a1e;
}

/* Navigation */
nav {
    background-color: #1a1d22;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.logo img {
    height: 100px;
    width: auto;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: #e46a1e;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    padding-bottom: 5px;
    font-weight: bold;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e46a1e;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
}

/* Menu burger pour mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e46a1e;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Conteneur principal */
.container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Conteneur spécifique pour les pages d'articles */
.article-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* En-tête des pages de catégories */
.category-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.category-header p {
    color: #a8a8a8;
    font-size: 1.1rem;
}

/* Grille d'articles (page d'accueil) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Carte article (page d'accueil) */
.article-card {
    background-color: #1a1d22;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(228, 106, 30, 0.2);
}

.article-card .article-content {
    padding: 1.5rem;
}

.article-card .article-category {
    color: #e46a1e;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.article-card .article-title {
    color: #e46a1e;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.article-card:visited .article-title {
    color: #e46a1e;
}

.article-card .article-excerpt {
    color: #a8a8a8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-card .article-date {
    color: #6a6a6a;
    font-size: 0.85rem;
}

/* Styles spécifiques aux pages d'articles */
.article-header {
    margin-bottom: 3rem;
}

.article-header .article-category {
    color: #e46a1e;
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.article-header .article-title {
    color: #e46a1e;
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 3rem;
}

/* Contenu de l'article */
article .article-content {
    background-color: #1a1d22;
    border-radius: 12px;
    padding: 3rem;
    text-align: justify;
}

article .article-content p {
    color: #c4c4c4;
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

article .article-content a {
    color: #e46a1e;
    text-decoration: underline;
    transition: opacity 0.3s;
}

article .article-content a:hover {
    opacity: 0.7;
}

.chapeau {
    font-size: 1.2rem;
    font-weight: 500;
    color: #d4d4d4;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: justify;
}

.intertitre h1 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e46a1e;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Bouton retour */
.back-button {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.8rem 1.5rem;
    background-color: #e46a1e;
    color: #22262c;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.back-button:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: #1a1d22;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 2px solid #e46a1e;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #22262c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #e46a1e;
}

.social-link:hover {
    background-color: #e46a1e;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(228, 106, 30, 0.4);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: #e46a1e;
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: #22262c;
}

.footer-text {
    color: #a8a8a8;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a1d22;
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container,
    .article-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .article-header .article-title {
        font-size: 1.8rem;
    }

    .category-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .category-header p {
        font-size: 1rem;
    }

    .article-featured-image {
        height: 250px;
    }

    article .article-content {
        padding: 2rem 1.5rem;
    }

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

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

    .social-links {
        gap: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    footer {
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav {
        padding: 1rem;
    }

    .article-card .article-title {
        font-size: 1.1rem;
    }

    .article-header .article-title {
        font-size: 1.5rem;
    }

    .category-header h1 {
        font-size: 1.8rem;
    }

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