:root {
    --bg-color: #0b0813;
    --card-bg: rgba(24, 18, 38, 0.6);
    --card-bg-solid: #14101f;
    --text-primary: #f3f0fd;
    --text-secondary: #a39bb8;
    --purple-primary: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.35);
    --green-accent: #10b981;
    --green-glow: rgba(16, 185, 129, 0.3);
    --border-color: rgba(139, 92, 246, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 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(--purple-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-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 30%, var(--purple-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.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__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;
}

.title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 30%, var(--purple-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(--purple-primary), #6d28d9);
    color: #fff;
    box-shadow: 0 10px 30px var(--purple-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-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    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;
}

/* --- Projets --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple-primary);
}

.project-card__image {
    position: relative;
    aspect-ratio: 5 / 3;
    background: var(--card-bg-solid);
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    box-sizing: border-box;
}

.project-card__status {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 8, 19, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
}

.project-card__body {
    padding: 1.5rem;
}

.project-card__body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.project-card__tagline {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.project-card__description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-bottom: 1rem;
}

.project-card__tags li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card__link {
    display: inline-block;
    color: var(--purple-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.project-card--soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 280px;
    background: transparent;
    border: 2px dashed var(--border-color);
}

.project-card--soon:hover {
    transform: none;
    border-color: var(--purple-primary);
}

.project-card--soon__plus {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px dashed var(--border-color);
}

.project-card--soon__plus::before,
.project-card--soon__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-secondary);
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.project-card--soon__plus::before {
    width: 16px;
    height: 2px;
}

.project-card--soon__plus::after {
    width: 2px;
    height: 16px;
}

.project-card--soon p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- Notre histoire --- */
.timeline {
    list-style: none;
    max-width: 560px;
    margin-bottom: 3rem;
    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(--purple-primary);
    box-shadow: 0 0 8px var(--purple-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(--purple-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;
}

.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-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(139, 92, 246, 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;
}

/* --- 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-weight: 800;
    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(--purple-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(--purple-primary);
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--purple-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;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        display: none;
    }

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

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

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