:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --border-color: #30363d;
    --text-color: #c9d1d9;
    --heading-color: #f0f6fc;
    --accent-color: #1f6feb;
    --accent-hover: #388bfd;
    --link-color: #58a6ff;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-logo {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    white-space: nowrap;
}

.flag-icon {
    width: 16px;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

/* Langue active = grisée / atténuée */
.lang-switch .active {
    color: #8b949e;
    cursor: default;
    opacity: 0.65;
}

/* Langue disponible = blanche / mise en valeur */
.lang-switch a.lang-btn {
    color: var(--heading-color);
    opacity: 1;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-switch a.lang-btn:hover {
    color: var(--link-color);
    text-decoration: none;
}

.lang-sep {
    color: var(--border-color);
    user-select: none;
}

h1 {
    color: var(--heading-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: #8b949e;
}

.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
}

.card h2 {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

li::before {
    content: "•";
    color: var(--link-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.campaign-banner {
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-logo {
    height: 38px;
    width: auto;
    align-self: flex-start;
    filter: brightness(0) invert(1);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
}

.legal {
    font-size: 0.85rem;
    color: #8b949e;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.legal h3 {
    color: var(--heading-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Adaptation petits écrans / smartphones */
@media (max-width: 600px) {
    header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .lang-switch {
        align-self: flex-start;
    }
}