:root {
    --bg-color: #0b0813;
    --card-bg: rgba(24, 18, 38, 0.6);
    --card-bg-solid: #14101f;
    --text-primary: #f3f0fd;
    --text-secondary: #a39bb8;
    --accent-primary: #d4a72c;
    --accent-glow: rgba(212, 167, 44, 0.35);
    --green-accent: #10b981;
    --green-glow: rgba(16, 185, 129, 0.3);
    --border-color: rgba(212, 167, 44, 0.2);
    --heading-font: 'Cinzel', 'Noto Serif SC', 'Plus Jakarta Sans', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* Halo lumineux en arrière-plan */
.glow-bg {
    position: fixed;
    top: 10%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, var(--green-glow) 50%, transparent 70%);
    filter: blur(90px);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 0.9; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--green-accent);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--green-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-accent);
}

/* --- Navigation --- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 8, 19, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.site-nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav__logo {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-nav__controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-switch__flag {
    display: block;
    width: 26px;
    height: 18px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    opacity: 0.55;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lang-switch__flag:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.lang-switch__flag.is-active {
    opacity: 1;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.lang-switch__flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

.site-nav__menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.site-nav__menu a:hover {
    color: var(--text-primary);
}

.site-nav__item--disabled {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    color: var(--text-secondary);
    opacity: 0.5;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: not-allowed;
}

.site-nav__item--disabled small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.site-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.site-nav__toggle span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* --- Hero --- */
.hero {
    position: relative;
    z-index: 1;
    padding: 5rem 1.5rem 4rem;
}

.hero__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero__logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.title {
    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-primary), #8a5a10);
    color: #1a1306;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* --- Sections génériques --- */
.section {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
}

.section--alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section__inner--narrow {
    max-width: 760px;
}

.section__inner--center {
    text-align: center;
}

.section__title {
    font-family: var(--heading-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
}

.section__lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 620px;
}

.section__inner--center .section__lead {
    margin-left: auto;
    margin-right: auto;
}

/* --- Notre histoire --- */
.timeline {
    list-style: none;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.timeline__item {
    position: relative;
    padding-left: 2rem;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-glow);
}

.timeline__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 20px;
    bottom: -1.75rem;
    width: 2px;
    background: var(--border-color);
}

.timeline__date {
    display: block;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.timeline__item p {
    color: var(--text-primary);
    font-size: 1rem;
}

.timeline__note {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    max-width: 560px;
    margin: 1.5rem auto 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.team-card h3 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.team-card__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.team-card__roles li {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--green-accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: 99px;
}

/* --- Pages légales --- */
.legal h2 {
    font-size: 1.2rem;
    margin: 2rem 0 0.6rem;
}

.legal p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal__notice {
    background: rgba(212, 167, 44, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary) !important;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* --- 404 --- */
.not-found {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.not-found__list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 480px;
    margin: 2.5rem auto 0;
    text-align: left;
}

.not-found__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.not-found__flag {
    display: block;
    flex: none;
    width: 32px;
    height: 22px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 0.2rem;
}

.not-found__flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

.not-found__title {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.not-found__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 1.5rem;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer__logo {
    display: block;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.site-footer__brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.site-footer__mail {
    display: block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.site-footer__col h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.site-footer__col a {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.site-footer__bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

/* --- Cookie banner --- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 30;
    max-width: 640px;
    margin: 0 auto;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cookie-banner:not([hidden]) {
    display: flex;
}

.cookie-banner p {
    flex: 1 1 280px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cookie-banner a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 720px) {
    .site-nav__toggle {
        display: flex;
    }

    .site-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        display: none;
    }

    .site-nav__menu.is-open {
        display: flex;
    }

    .site-nav__menu a,
    .site-nav__item--disabled {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .site-nav__item--disabled {
        flex-direction: row;
        gap: 0.5rem;
    }

    .site-nav__controls {
        gap: 0.75rem;
    }

    .lang-switch {
        gap: 0.3rem;
    }

    .lang-switch__flag {
        width: 22px;
        height: 15px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}
