:root {
    --color-bg: #fdfdfd;
    --color-text: #1c1c1e;
    --color-section-purple: #f7f5ff;
    --color-section-green: #e8f5e9;
    --color-section-dark-green: #1b5e20;
    --color-section-blue: #f1effc;
    --color-nav: #444;
    --color-link: #5c33ff;
    --color-btn-bg: #4b3acf;
    --color-btn-hover: #3626a8;
    --color-footer: #4F4F4F;
    --color-bg-alt: #f5f7fa;
    --color-muted: #6c757d;
    --color-accent: #004e64;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
}

header {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    background: var(--color-section-purple);
}

header p {
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #2a2a2a;
}

.title{
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

nav {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav a {
    margin: 0 0.7rem;
    text-decoration: none;
    color: var(--color-nav);
    font-weight: 600;
}

nav a.active {
    font-weight: bold;
    text-decoration: underline;
    color: #111; /* ou une autre couleur de contraste */
}

section {
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin: auto;
}
#engagement {
    background: var(--color-section-green);
}
#engagement h2 {
    color: var(--color-section-dark-green);
}
#projets {
    background: var(--color-bg-alt);
}
#contact {
    background: var(--color-section-purple);
    max-width: inherit;
}
#accroche {
    padding: inherit;
}
h1{
    padding: 2rem 2rem 0 2rem;
    margin: auto;
    max-width: 800px;
}
h1, h2, h3 {
    line-height: 1.2;
    color: var(--color-text);
}
.section-content {
    margin-top: 1rem;
}
ul {
    padding-left: 1.2rem;
}
.btn {
    display: inline-block;
    background: var(--color-btn-bg);
    color: #fff;
    padding: 0.5rem 1.1rem;
    margin-top: 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}
.btn:hover {
    background: var(--color-btn-hover);
}
a {
    color: var(--color-link);
    font-weight: bold;
}
a:hover {
    text-decoration: underline;
}
footer {
    border-top: 1px solid #eee;
    text-align: center;
}
#legal{
    padding: 2rem 1rem;
    font-size: 0.9rem;
    color: var(--color-footer);
}

.anchor-link {
    text-decoration: none;
    margin-left: 0.5rem;
    color: var(--color-muted);
    font-size: 0.9em;
    visibility: hidden;
}

h1:hover .anchor-link, h2:hover .anchor-link, h3:hover .anchor-link {
    visibility: visible;
}

.stamp {
    display: inline-block;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    margin: 0 0.2rem;
    position: relative;
    z-index: 1;
    transform: rotate(-0.5deg);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.stamp-speed {
    background: #fff3e0;
    color: #8F3200;
    transform: rotate(-2deg);
}

.stamp-access {
    background: #e3f2fd;
    color: #0d47a1;
    transform: rotate(2deg);
}

.stamp-sober {
    background: #e8f5e9;
    color: #1b5e20;
}

.translation-warning {
    position: sticky;
    top: 3.5rem; /* ajuste selon la hauteur de ton header */
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75em 1em;
    text-align: center;
    font-size: 0.95em;
    z-index: 999;
    border-bottom: 1px solid #ffeeba;
}

.language-switcher {
    position: relative;
    display: inline-block;
}

.language-button {
    background: none;
    border: 1px solid #ccc;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    list-style: none;
    padding: 0;
    min-width: 100%;
    z-index: 10;
}

.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu {
    display: block;
}

.language-menu li {
    margin: 0;
}

.language-option {
    display: block;
    padding: 0.5em 1em;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.language-option:hover,
.language-option:focus {
    background-color: #f0f0f0;
    outline: none;
}

.lang-banner {
    background: #f4f4f4;
    color: #222;
    border-bottom: 1px solid #ddd;
    padding: 0.8em 1.2em;
    font-size: 0.95em;
    text-align: center;
    position: relative;
}

.lang-banner a {
    font-weight: bold;
    margin-left: 0.3em;
    color: #0077cc;
    text-decoration: underline;
}

.lang-close {
    position: absolute;
    top: 0.3em;
    right: 0.6em;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #666;
}
.lang-close:hover {
    color: #000;
}
.dNone {
    display: none;
}