:root {
    --bg-color: #f4f4f9;
    --surface-color: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #bb86fc;
    --primary-hover: #9965f4;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Navigation */
nav {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    height: 100%;
}

.nav-tabs button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 1rem;
    height: 100%;
    border-bottom: 3px solid transparent;
    transition: border-color var(--transition-speed), color var(--transition-speed);
}

.nav-tabs button:hover {
    color: var(--primary-color);
}

.nav-tabs button.active {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* Toggle Thème */
.quick-settings {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Contenu principal */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn var(--transition-speed);
    padding-bottom: 60px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 { margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; line-height: 1.6; color: var(--text-muted); }

.hero-image {
    max-width: 100%;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1.5rem auto;
}

.link-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.link-text:hover {
    text-decoration: underline;
}

/* Boutons d'action */
.fab {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform var(--transition-speed), background-color var(--transition-speed);
    border: none;
    cursor: pointer;
}

.fab:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    color: white;
}

.login-fab {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 1rem;
    display: inline-flex;
}

/* Espace Compte Spécifique */
.username-highlight {
    font-weight: bold;
    color: var(--primary-color);
}

.admin-panel {
    background: rgba(255, 193, 7, 0.2);
    color: #d39e00;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #ffeeba;
}
