@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --color-bg: #1c1c1c;
    --color-text: #ffffff;
    --color-primary: #00ffff;
    --color-secondary: #9500ff;
    --font-sans: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

/* Main content styles */
main {
    padding-top: 100px;
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: calc(100vh - 100px);
}

.home-content {
    flex: 1;
}

h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

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

.cursor {
    display: inline-block;
    width: 10px;
    height: 24px;
    background-color: var(--color-primary);
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

p {
    margin-bottom: 30px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
}

.btn:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.news-section {
    padding: 40px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.card-content {
    color: var(--color-text);
    font-size: 16px;
    min-height: 200px;
    overflow-y: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .home {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-img {
        margin-bottom: 30px;
    }

    .home-img img {
        max-width: 250px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        padding: 20px 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    .nav-toggle-label {
        display: block;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--color-primary);
        height: 2px;
        width: 2em;
        border-radius: 2px;
        position: relative;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before {
        bottom: 7px;
    }

    .nav-toggle-label span::after {
        top: 7px;
    }

    .nav-toggle:checked ~ ul {
        display: flex;
    }
}

/* Footer styles */
footer {
    background-color: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 50px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text);
}

footer p:last-child {
    color: var(--color-primary);
    font-weight: 600;
}

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

    footer p:first-child {
        margin-bottom: 10px;
    }
}

.error {
    color: #ff4444;
    font-weight: bold;
}

.card-content p {
    margin-bottom: 10px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loading::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fete-du-jour {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fete-du-jour h3 {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 5px;
}
