:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --background-color: #f7f7f7;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-radius: 20px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    font-size: 3em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    flex: 1;
    text-align: center;
}

#options-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sort-options,
#layout-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#sort-options button,
#layout-options button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#sort-options button:hover,
#layout-options button:hover {
    background-color: var(--primary-color);
}

.intro-seo {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.intro-seo p {
    font-size: 1em;
    line-height: 1.8;
    color: var(--text-color);
}

#layout-options button {
    padding: 8px 12px;
    font-size: 1.2em;
}

#feed-container {
    display: grid;
    gap: 30px;
}

.feed-section {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px dashed var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.article::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
}

.article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
}

.article img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article p {
    margin-bottom: 15px;
    font-size: 0.9em;
    line-height: 1.6;
}

.article a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.article a::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.article a:hover {
    color: var(--secondary-color);
    padding-right: 25px;
}

.article a:hover::after {
    right: 0;
    opacity: 1;
}

.date {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-style: italic;
}

#source-select {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 100px;
    overflow-y: auto;
    width: 200px;
    border: 2px solid var(--secondary-color);
    margin-left: 20px;
}

#source-select h3 {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--secondary-color);
}

.source-checkbox {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.source-checkbox:last-child {
    margin-bottom: 0;
}

.source-checkbox label {
    display: flex;
    align-items: center;
}

.source-checkbox input[type="checkbox"] {
    margin-right: 5px;
}

/* Menu styles */
#menu-toggle {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 20px;
}

#category-menu {
    display: none;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#category-menu a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

#category-menu a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        text-align: center;
        margin-bottom: 20px;
    }

    #feed-container {
        grid-template-columns: 1fr !important;
    }

    #options-container {
        align-items: stretch;
    }

    #layout-options {
        display: none;
    }

    #sort-options {
        justify-content: center;
    }

    #source-select {
        max-width: 200px;
        max-height: none;
        margin-left: 0;
        margin-bottom: 20px;
    }
}

/* Animation pour les articles */
@keyframes slideInUp {
    from {
        transform: translate3d(0, 40px, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.article {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.article:nth-child(1) {
    animation-delay: 0.1s;
}

.article:nth-child(2) {
    animation-delay: 0.2s;
}

.article:nth-child(3) {
    animation-delay: 0.3s;
}

.article:nth-child(4) {
    animation-delay: 0.4s;
}

.article:nth-child(5) {
    animation-delay: 0.5s;
}

.bleu {
    color: var(--secondary-color);
}