/* Variables de couleurs pour le thème */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #f4f4f9;
    --accent-color: #3498db;
    --accent-hover: #90ccf3;
    --local: #cccccc;
    --remote: #666666;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f4f4f9;
    --nav-bg: rgba(26, 26, 26, 0.95);
    --card-bg: #2d2d2d;
    --accent-color: #5dade2;
    --accent-hover: #90ccf3;
    --local: #999999;
    --remote: #aaaaaa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
    font-weight: 500;
    margin: 0 1.0rem;
    padding: 8px 10px;
    border-radius: 8px;
}

.nav-links li a:hover, .nav-links a.active-link, [data-theme="dark"] .nav-links a.active-link {
    color: var(--accent-color);
    background: rgba(212, 237, 241, 0.336);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Menu Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
}

/* Sections */
section {
    padding: 100px 10%;
    min-height: 60vh;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.05));
}

/* Cards Section */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.icon-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.icon-group a {
    color: var(--accent-color);
    transition: transform 0.2s;
}

.icon-group a:hover {
    transform: translateY(-3px);
}

a {
    text-decoration: none;
    color: var(--accent-color);
}
a:hover {
    color: var(--accent-hover);
}

h1 {
    color: var(--accent-color);
    font-variant: small-caps;
    font-size: xxx-large;
}

h2 {
    font-variant: small-caps;
    font-size: 2rem;
}

.local {
    color: var(--local);
    font-style: italic;
}
.remote li {
    text-decoration: none;
    list-style-type: none;
    color: var(--remote);
    font-size: 1.3rem;
}

/* Pied de page */
footer {
    padding: 2rem 5%;
    text-align: center;
    background: var(--card-bg);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Masqué par défaut sur mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

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

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }
}
