/* Importation de la police Roboto et Open Sans depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --color-background: #030611;
    --color-surface: rgba(6, 14, 32, 0.82);
    --color-surface-strong: rgba(5, 18, 43, 0.92);
    --color-primary: #13d0ff;
    --color-secondary: #8c6ff7;
    --color-accent: #ff9f1c;
    --color-heading: #f6f8ff;
    --color-text: #d3deff;
    --color-text-muted: #93a9da;
    --color-border: rgba(19, 208, 255, 0.32);
    --gradient-page: radial-gradient(circle at 10% 15%, rgba(19, 208, 255, 0.25) 0%, transparent 45%), radial-gradient(circle at 90% 5%, rgba(140, 111, 247, 0.25) 0%, transparent 40%), linear-gradient(135deg, #02050b 0%, #050f1f 50%, #0b1f33 100%);
    --gradient-primary: linear-gradient(120deg, #13d0ff 0%, #8c6ff7 55%, #ff7ad9 100%);
    --gradient-accent: linear-gradient(135deg, #ffb347 0%, #ff7a18 100%);
    --shadow-soft: 0 28px 80px rgba(2, 6, 17, 0.55);
    --shadow-hover: 0 32px 90px rgba(1, 9, 25, 0.65);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-pill: 999px;
}

/* --- Global & Reset Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Inclusion du padding et border dans la largeur/hauteur */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: var(--gradient-page);
    color: var(--color-text);
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background: linear-gradient(180deg, rgba(4, 8, 22, 0.8), rgba(5, 12, 24, 0.6)), url('../images/assets/logo_black.png') center/600px auto no-repeat;
    opacity: 0.22;
    mix-blend-mode: screen;
}

body::after {
    background: radial-gradient(circle at 70% 20%, rgba(140, 111, 247, 0.25) 0%, transparent 45%), url('../images/assets/mascotte_contact.png') right 5% top 10% / 420px auto no-repeat;
    opacity: 0.08;
    filter: blur(0.5px);
}


/* Styles pour le body quand le menu est ouvert (via JS) */
body.no-scroll {
    overflow: hidden; /* Empêche le défilement quand le menu mobile est ouvert */
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.2;
    letter-spacing: -0.01em;
}


p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.8;
}


a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}


a:hover {
    color: var(--color-secondary);
    opacity: 0.85;
}


li::marker {
    content: none; /* Supprime les puces des listes */
}

/* --- Utility Classes --- */
.container {
    width: min(90%, 75%);
    margin: clamp(2.5rem, 6vw, 4rem) auto;
    padding: clamp(2.5rem, 5vw, 4rem);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px);
}
.container::before {
    content: '';
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(19, 208, 255, 0.14), rgba(140, 111, 247, 0.14));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.container:hover::before {
    opacity: 1;
}


.container:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}


.section {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}


.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--color-heading);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}
.section-title::after {
    content: '';
    height: 4px;
    width: 64px;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    bottom: -14px;
    left: 50%;
    position: absolute;
    display: block;
    transform: translateX(-50%);
}



.section-description {
    font-size: 1.05em;
    text-align: center;
    margin-bottom: 2.2rem;
    padding: 0 10%;
    color: var(--color-text-muted);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}


.icon-left {
    margin-right: 10px;
    color: var(--color-secondary);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: center;
    align-items: center;
    max-width: 780px;
    margin: 0 auto;
}

.section-header .section-description {
    margin-bottom: 0;
    padding: 0;
}

.site-hero {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 6vw, 4rem);
}
.site-hero .container {
    margin: 0 auto; /* Supprime les marges haut/bas redondantes dans le hero */
}
.site-hero .section {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem); /* Réduit l'espacement vertical entre les sections du hero */
}

.customers-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}
/* --- Hero Video Section --- */
.video-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.15) contrast(1.05);
    transform: scale(1.02);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f8fafc;
    text-align: center;
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem) clamp(3rem, 6vw, 5rem);
    padding-bottom: calc(clamp(3rem, 6vw, 5rem) + clamp(58px, 7vw, 96px));
    pointer-events: none;
    z-index: 1;
}

.video-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 10, 26, 0.85) 0%, rgba(8, 24, 52, 0.7) 45%, rgba(19, 208, 255, 0.35) 100%);
    backdrop-filter: blur(6px);
    z-index: 0;
}

.video-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/assets/mascotte.png') right 5% bottom 0 / 420px auto no-repeat;
    opacity: 0.08;
    mix-blend-mode: screen;
    z-index: 0;
}

.video-overlay > * {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    margin-top: clamp(4rem, 12vh, 7rem);
    margin-bottom: clamp(6rem, 15vh, 10rem);
    padding-bottom: 0;
    width: min(100%, 880px);
    text-align: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    background: rgba(19, 208, 255, 0.18);
    color: #e0faff;
    letter-spacing: 0.28em;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.hero-headline {
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    line-height: 1.1;
    color: var(--color-heading);
    text-align: center;
    text-shadow: 0 20px 45px rgba(1, 9, 25, 0.6);
}

.hero-description {
    max-width: 720px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.05rem;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.hero-cta-group > * {
    flex: 0 0 auto;
}

.hero-story-feed {
    width: min(960px, 92%);
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.4rem;
    padding: 1rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(19, 208, 255, 0.28);
    background: rgba(1, 8, 21, 0.68);
    box-shadow: 0 18px 50px rgba(1, 8, 20, 0.45);
    backdrop-filter: blur(18px);
}

.hero-story-feed__line {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
    flex: 2 1 320px;
}

@media (max-width: 1100px) {
    .hero-content {
        margin-top: 2.5rem;
    }

    .hero-story-feed {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .hero-cta-group {
        justify-content: center;
    }

    .hero-story-feed {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .hero-story-feed__line {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group > * {
        width: 100%;
        justify-content: center;
    }

    .hero-secondary-link {
        justify-content: center;
    }

    .hero-story-feed {
        gap: 1rem;
    }

    .hero-beacon {
        width: 100%;
    }
}

.feed-label {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(226, 245, 255, 0.8);
}

.hero-beacon {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-pill);
    border: 1px dashed rgba(255, 159, 28, 0.8);
    background: rgba(255, 159, 28, 0.08);
    color: var(--color-heading);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    min-width: 240px;
}

.hero-beacon small {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-beacon:hover {
    transform: translateY(-4px);
    background: rgba(255, 159, 28, 0.18);
    box-shadow: 0 15px 30px rgba(255, 159, 28, 0.25);
}

.hero-decorations {
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-grid {
    inset: 10% 6% 15%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(19, 208, 255, 0.18);
    box-shadow: inset 0 0 60px rgba(19, 208, 255, 0.08);
}

.hero-grid--pulse {
    animation: gridPulse 7s ease-in-out infinite;
}

.hero-constellation {
    inset: 0;
    mix-blend-mode: screen;
    opacity: 0.55;
    pointer-events: none;
}

.constellation-star {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(19, 208, 255, 0.9);
    animation: constellationTwinkle 5s linear infinite;
}

.hero-spark {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 111, 247, 0.4), transparent 70%);
    filter: blur(2px);
    animation: sparkDrift 18s linear infinite;
}

.hero-spark--one {
    top: 20%;
    left: 12%;
    animation-delay: 0s;
}

.hero-spark--two {
    bottom: 18%;
    right: 15%;
    animation-delay: 4s;
}

.hero-spark--three {
    top: 45%;
    right: 35%;
    animation-delay: 8s;
}

.hero-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #c7d2fe;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
}

.hero-secondary-link i {
    transition: transform 0.3s ease;
}

.hero-secondary-link:hover {
    color: #e0e7ff;
}

.hero-secondary-link:hover i {
    transform: translateX(4px);
}

.hero-platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.hero-platforms--floating {
    position: absolute;
    bottom: clamp(1.75rem, 4vw, 3rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    width: min(92%, 1080px);
    pointer-events: auto;
}

.hero-platforms--floating::before {
    content: '';
    inset: -12px;
    border-radius: var(--radius-lg);
    background: rgba(3, 10, 26, 0.35);
    filter: blur(40px);
    z-index: -1;
    position: absolute;
}

.hero-platforms-caption {
    position: absolute;
    bottom: calc(clamp(1.75rem, 4vw, 3rem) + clamp(58px, 7.5vw, 88px) + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
    z-index: 3;
}

.platform-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.6rem;
    width: clamp(160px, 20vw, 240px);
    min-height: clamp(58px, 7.5vw, 88px);
    border-radius: var(--radius-pill);
    background: rgba(248, 250, 255, 0.12);
    border: 1px solid rgba(19, 208, 255, 0.35);
    box-shadow: 0 22px 44px rgba(1, 9, 25, 0.55);
    color: var(--color-heading);
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}

.platform-logo:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(19, 208, 255, 0.18);
}

.platform-logo img {
    height: clamp(44px, 5vw, 68px);
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.platform-logo span {
    display: block;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-heading);
    white-space: nowrap;
    font-size: 0.8rem;
}

.platform-logo--text span {
    letter-spacing: 0.24em;
}

.platform-logo--soon {
    background: rgba(255, 255, 255, 0.04);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.45);
}

/* --- Storytelling Section --- */
.story-section {
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(19, 208, 255, 0.12), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.story-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.storyline {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.eva-journey {
    margin-top: 2.8rem;
    padding: clamp(1.5rem, 4vw, 2.8rem);
    border-radius: var(--radius-lg);
    background: rgba(4, 12, 30, 0.75);
    border: 1px solid rgba(19, 208, 255, 0.2);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 3vw, 3rem);
    position: relative;
    overflow: hidden;
}

.eva-journey::after {
    content: '';
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(140, 111, 247, 0.18), transparent 55%);
    pointer-events: none;
    opacity: 0.6;
}

.eva-journey__hud {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.eva-journey__hud h3 {
    font-size: 1.5rem;
}

.eva-journey__path {
    flex: 2 1 360px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    position: relative;
    padding: 2.2rem 0.5rem 0.5rem;
    z-index: 1;
}

.eva-progress {
    top: calc(50% - 1px);
    left: 4%;
    right: 4%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 999px;
}

.eva-progress span {
    inset: 0;
    width: var(--progress, 10%);
    background: var(--gradient-primary);
    transition: width 0.6s ease;
}

.eva-node {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 260px;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.3);
    background: rgba(5, 15, 36, 0.8);
    color: var(--color-heading);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.eva-node small {
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eva-node::after {
    content: '';
    inset: 8px;
    border-radius: var(--radius-md);
    border: 1px dashed transparent;
    transition: border 0.3s ease;
}

.eva-node:hover,
.eva-node:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(19, 208, 255, 0.9);
    outline: none;
}

.eva-node:hover::after,
.eva-node:focus-visible::after {
    border-color: rgba(19, 208, 255, 0.4);
}

.eva-node__index {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: rgba(226, 245, 255, 0.65);
}

.eva-node__title {
    font-size: 1.05rem;
}

.eva-node--active {
    background: rgba(19, 208, 255, 0.12);
    border-color: rgba(19, 208, 255, 0.55);
    box-shadow: 0 18px 28px rgba(19, 208, 255, 0.15);
}

@media (max-width: 1024px) {
    .eva-journey {
        flex-direction: column;
        align-items: stretch;
    }

    .eva-journey__hud {
        flex: 1 1 auto;
    }

    .eva-journey__path {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .eva-journey__path {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    .eva-node {
        max-width: 100%;
        width: 100%;
    }

    .eva-progress {
        display: none;
    }
}

.story-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(19, 208, 255, 0.15);
    box-shadow: 0 25px 45px rgba(1, 9, 25, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
}

.story-card::after {
    content: '';
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(140, 111, 247, 0.25), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.35);
}

.story-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.story-card:hover::after {
    opacity: 1;
}

.story-card img {
    width: 92px;
    height: 92px;
    align-self: flex-start;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.story-card h3 {
    margin-top: 0.5rem;
}

.story-egg {
    top: 2rem;
    right: 2rem;
}

.eva-glyphs {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 95;
    pointer-events: none;
}

.eva-glyph {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(3, 10, 26, 0.85);
    color: var(--color-heading);
    font-size: 1.1rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    pointer-events: auto;
}

.eva-glyph:hover,
.eva-glyph--active {
    transform: translateY(-4px) scale(1.04);
    border-color: rgba(19, 208, 255, 0.6);
    background: rgba(19, 208, 255, 0.15);
}

.eva-pulse {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(19, 208, 255, 0.18), transparent 60%);
    animation: evaPulse 0.9s ease-out forwards;
    z-index: 90;
}

@keyframes evaPulse {
    0% {
        opacity: 0.65;
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

.page-hero {
    width: min(94%, 1200px);
    margin: clamp(2rem, 5vw, 3.5rem) auto;
    padding: clamp(2rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.75rem, 3vw, 3.5rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(5, 12, 26, 0.95), rgba(4, 21, 48, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(19, 208, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-hero__headline {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.page-hero__media {
    position: relative;
    border-radius: var(--radius-md);
    min-height: 280px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.7);
}

.page-hero__media::before {
    content: '';
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.8));
}

.page-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.page-hero__cta .btn {
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.page-hero__cta .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--color-heading);
}

.page-hero__stats {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.page-hero__stat {
    flex: 1 1 120px;
}

.page-hero__stat strong {
    display: block;
    font-size: 1.85rem;
    color: var(--color-primary);
}

.journey-timeline {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.timeline-card {
    padding: 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 12, 28, 0.85);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-card::before {
    content: attr(data-chapter);
    top: 1rem;
    right: 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.55);
}

.timeline-card:hover {
    transform: translateY(-6px);
    border-color: rgba(19, 208, 255, 0.35);
}

.timeline-card.is-visible {
    box-shadow: 0 25px 40px rgba(5, 16, 35, 0.45);
    border-color: rgba(19, 208, 255, 0.35);
}

.timeline-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    background: rgba(19, 208, 255, 0.12);
    color: var(--color-primary);
}

.lore-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.lore-card {
    padding: 1.35rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 17, 0.9);
    box-shadow: inset 0 0 25px rgba(19, 208, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.lore-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(19, 208, 255, 0.14);
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}


/* --- Mascotte companion --- */
.mascot-guide {
    position: fixed;
    width: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    z-index: 99;
    pointer-events: auto;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.35s ease, right 0.35s ease, left 0.35s ease;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.5));
}

.mascot-guide--right {
    right: 32px;
}

.mascot-guide--left {
    left: 32px;
}

.mascot-guide img {
    width: 120px;
    height: auto;
    animation: mascotFloat 6s ease-in-out infinite, mascotGlow 8s ease-in-out infinite;
    will-change: transform;
}

.mascot-bubble {
    background: rgba(3, 10, 26, 0.9);
    border: 1px solid rgba(19, 208, 255, 0.35);
    border-radius: 18px;
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    color: var(--color-heading);
    text-align: center;
    box-shadow: 0 18px 40px rgba(1, 9, 25, 0.55);
}

.mascot-guide--switch {
    animation: mascotSwitch 0.5s ease;
}

.mascot-guide--switch .mascot-bubble {
    animation: bubbleSlide 0.5s ease;
}

.mascot-guide--mirrored img {
    transform: scaleX(-1);
}

.mascot-switch-spark {
    position: fixed;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(19, 208, 255, 0.85), transparent 70%);
    pointer-events: none;
    animation: mascotSpark 0.65s ease-out forwards;
    z-index: 90;
}

.mascot-switch-spark--left {
    box-shadow: 0 0 12px rgba(140, 111, 247, 0.6);
}

.mascot-switch-spark--right {
    box-shadow: 0 0 12px rgba(19, 208, 255, 0.6);
}

body.eva-night {
    background: radial-gradient(circle at 20% 20%, rgba(19, 208, 255, 0.15), transparent 45%), radial-gradient(circle at 80% 0%, rgba(140, 111, 247, 0.3), transparent 40%), #020410;
}

body.eva-night .hero-grid {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.15);
}

body.eva-night .hero-spark {
    opacity: 0.85;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes mascotGlow {
    0%, 100% { filter: drop-shadow(0 12px 18px rgba(19, 208, 255, 0.22)); }
    50% { filter: drop-shadow(0 14px 26px rgba(140, 111, 247, 0.35)); transform: translateY(-4px); }
}

@keyframes mascotSwitch {
    0% { transform: translateY(-50%) scale(0.92); }
    55% { transform: translateY(-50%) scale(1.05); }
    100% { transform: translateY(-50%) scale(1); }
}

@keyframes bubbleSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

@keyframes mascotSpark {
    0% { opacity: 0.9; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(1.4) translateY(-10px); }
}

/* --- Easter eggs --- */
.easter-egg {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffe4a3;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    margin-left: 0.5rem;
}

.easter-egg:hover {
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 18px 30px rgba(255, 228, 163, 0.35);
}

.game-egg {
    margin-top: 1.5rem;
}

.egg-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 120;
    animation: eggBurst 0.9s ease forwards;
}

/* --- Mini-game overlay --- */
.minigame-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 5, 14, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100000;
    padding: 1.5rem;
}

.minigame-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.minigame-panel {
    width: min(540px, 95%);
    background: rgba(5, 14, 33, 0.95);
    border: 1px solid rgba(19, 208, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.6);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.minigame-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.minigame-chip {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(226, 245, 255, 0.75);
    margin-bottom: 0.25rem;
}

.minigame-close {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-heading);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.minigame-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.minigame-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.minigame-score {
    font-weight: 600;
    color: var(--color-primary);
    min-height: 1.4em;
}

.minigame-area {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid rgba(19, 208, 255, 0.2);
    min-height: 260px;
    overflow: hidden;
    background: rgba(2, 10, 24, 0.8);
}

.minigame-area--bee {
    background: radial-gradient(circle at 20% 20%, rgba(255, 196, 87, 0.2), transparent 60%), rgba(12, 8, 24, 0.95);
}

.minigame-area--portal {
    background: radial-gradient(circle at 50% 50%, rgba(19, 208, 255, 0.14), rgba(4, 10, 24, 1));
}

.minigame-area--rhythm {
    background: linear-gradient(135deg, rgba(4, 8, 24, 0.95), rgba(18, 6, 32, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
}

.minigame-area--meteor {
    background: radial-gradient(circle at 25% 20%, rgba(255, 159, 76, 0.25), transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(19, 208, 255, 0.18), transparent 55%),
        rgba(4, 10, 22, 0.95);
    overflow: hidden;
}

.meteor-field {
    inset: 0;
}

.arcade-meteor {
    top: -40px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ffb347, #ff6b6b 60%, #ffd166);
    box-shadow: 0 10px 24px rgba(255, 117, 64, 0.4), 0 0 20px rgba(19, 208, 255, 0.25);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.55));
    cursor: pointer;
    animation: meteorFall var(--meteor-duration, 2.6s) linear forwards;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.arcade-meteor::after {
    content: '';
    inset: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.arcade-meteor.is-destroyed {
    transform: scale(0.35);
    opacity: 0;
    box-shadow: none;
}

@keyframes meteorFall {
    0% {
        top: -40px;
    }
    100% {
        top: calc(100% + 40px);
    }
}

.minigame-area--circuit {
    background: radial-gradient(circle at 20% 30%, rgba(19, 208, 255, 0.15), transparent 55%),
        rgba(2, 8, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circuit-grid {
    width: 100%;
    max-width: 280px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.circuit-node {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid rgba(102, 255, 178, 0.25);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.circuit-node::after {
    content: '';
    inset: 20%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.circuit-node.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 18px rgba(19, 208, 255, 0.45);
    animation: nodePulse 0.8s ease-in-out infinite;
}

.circuit-node.is-hit {
    border-color: #66ffb2;
    box-shadow: 0 0 24px rgba(102, 255, 178, 0.4);
}

.circuit-node.is-miss {
    border-color: #ff6b6b;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.35);
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.94);
    }
}

.pac-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--pac-columns, 11), minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.85rem;
    width: 100%;
    height: 100%;
}

.pac-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.pac-cell.is-wall {
    background: rgba(2, 6, 16, 0.92);
    box-shadow: inset 0 0 0 1px rgba(19, 208, 255, 0.08);
}

.pac-cell.has-pellet::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffd166;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(255, 209, 102, 0.8);
}

.pac-cell.has-player::before,
.pac-cell.has-ghost::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.pac-cell.has-player::before {
    background: radial-gradient(circle, #ffe466 20%, #ffb347 70%);
    border: 2px solid rgba(255, 213, 102, 0.8);
}

.pac-cell.has-ghost::before {
    background: radial-gradient(circle, #8c6ff7 10%, #3a1c71 70%);
    border: 2px solid rgba(140, 111, 247, 0.7);
}

.pac-cell.has-player.has-ghost::before {
    background: linear-gradient(135deg, #ffe466, #f26d6d);
}

.galaga-field {
    position: relative;
    inset: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 240px;
    overflow: hidden;
}

.galaga-ship {
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #13d0ff, #8c6ff7);
    box-shadow: 0 12px 22px rgba(19, 208, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translate(0, 0);
}

.galaga-ship::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    right: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
    filter: blur(4px);
}

.galaga-bullet {
    position: absolute;
    width: 6px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(19, 208, 255, 0.6));
    box-shadow: 0 0 10px rgba(19, 208, 255, 0.6);
}

.galaga-enemy {
    position: absolute;
    width: 28px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ffb347);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.25);
    transition: transform 0.15s ease;
}

.galaga-enemy::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.galaga-enemy.is-down {
    opacity: 0;
    transform: scale(0.4);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.galaga-bonus {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
}

.galaga-bonus[data-type='heart'] {
    border-color: #ffb8b8;
    background: rgba(255, 90, 90, 0.15);
}

.galaga-bonus[data-type='rapid'] {
    border-color: #13d0ff;
    background: rgba(19, 208, 255, 0.15);
}

.galaga-bonus[data-type='shield'] {
    border-color: #66ffb2;
    background: rgba(102, 255, 178, 0.15);
}

.dance-pad {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 220px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at 30% 20%, rgba(255, 0, 153, 0.15), transparent 55%),
        rgba(6, 6, 16, 0.9);
    overflow: hidden;
}

.dance-pad--warning {
    box-shadow: 0 0 18px rgba(255, 107, 107, 0.4);
}

.dance-targets {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.dance-lane {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    font-weight: 600;
}

.dance-note {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    left: 0;
}

.dance-note::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dance-note.is-hit {
    border-color: var(--color-primary);
    background: rgba(19, 208, 255, 0.25);
    box-shadow: 0 0 16px rgba(19, 208, 255, 0.5);
}

.arcade-cache {
    margin: 1.5rem auto 0;
    max-width: 560px;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: rgba(4, 8, 18, 0.82);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.arcade-cache__title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    margin-bottom: 0.4rem;
}

.arcade-cache__hint {
    margin-bottom: 0.6rem;
    opacity: 0.6;
}

.arcade-cache__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arcade-chip {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.arcade-chip:hover {
    border-color: rgba(19, 208, 255, 0.7);
    color: var(--color-primary);
}

.minigame-area--completed::after {
    content: '';
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.minigame-end {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding-top: 1rem;
}

.minigame-end.is-visible {
    display: flex;
}

.minigame-end__title {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(226, 245, 255, 0.75);
}

.minigame-end__message {
    color: var(--color-heading);
    font-size: 1.05rem;
}

.minigame-end__reward {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.minigame-end__reward-title {
    font-weight: 600;
    color: var(--color-heading);
}

.minigame-end__reward-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.minigame-end__reward-link {
    align-self: center;
    margin-top: 0.2rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #13d0ff, #8c6ff7);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.minigame-end__reward-link:hover {
    filter: brightness(1.05);
}

.minigame-end__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.minigame-end__button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: var(--color-heading);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.minigame-end__button--primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
}

.minigame-end__button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.minigame-end__button--primary:hover {
    filter: brightness(1.05);
}

/* --- Reward vault (Minecraft) --- */
.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.reward-card {
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    background: rgba(2, 9, 22, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
    min-height: 230px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reward-card__status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(226, 245, 255, 0.6);
}

.reward-card__tag {
    color: var(--color-primary);
}

.reward-card__locked {
    font-size: 0.7rem;
}

.reward-card__cta {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    color: var(--color-heading);
    font: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}

.reward-card__cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

.reward-card:not(.reward-card--unlocked) .reward-card__cta {
    pointer-events: none;
    opacity: 0.4;
}

.reward-card--unlocked {
    border-style: solid;
    border-color: rgba(19, 208, 255, 0.5);
    box-shadow: 0 20px 35px rgba(2, 12, 32, 0.55);
}

.reward-card--unlocked::after {
    content: '';
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 208, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.reward-cache-grid {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.reward-cache {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.75rem;
    background: rgba(4, 10, 20, 0.85);
    box-shadow: inset 0 0 0 1px rgba(102, 255, 178, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.reward-cache--visible {
    display: block;
}

.reward-cache--highlight {
    box-shadow: 0 20px 50px rgba(102, 255, 178, 0.35);
    transform: translateY(-6px);
}

.reward-cache__tag {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #66ffb2;
    margin-bottom: 0.5rem;
}

.reward-cache__content {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.arcade-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.arcade-card {
    background: rgba(3, 8, 18, 0.92);
    border: 1px solid rgba(19, 208, 255, 0.2);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(2, 10, 32, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 230px;
}

.arcade-card__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(19, 208, 255, 0.8);
}

.arcade-card .btn {
    margin-top: auto;
}
@keyframes eggBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.2);
    }
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

@keyframes sparkDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(0.8);
    }
    50% {
        transform: translate3d(20px, -30px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(-10px, 10px, 0) scale(0.8);
    }
}

@keyframes constellationTwinkle {
    0%, 100% {
        opacity: 0.15;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.15);
    }
}


/* --- General Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.9rem;
    font-size: 1.05em;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    position: relative;
}


.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.05);
}


.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-soft);
}


/* Specific button variations */
.btn-contact {
    background: var(--gradient-primary);
    padding: 1rem 2.6rem;
    box-shadow: var(--shadow-soft);
}


.btn-contact:hover {
    filter: brightness(1.08);
}

.btn-primary {
    background: var(--gradient-accent);
}


.btn-primary:hover {
    filter: brightness(1.05);
}


.btn-secondary {
    background: transparent;
    border: 1px solid rgba(226, 232, 240, 0.4);
    color: var(--color-heading);
    padding: 0.85rem 1.8rem;
    box-shadow: none;
}


.btn-secondary:hover {
    border-color: rgba(19, 208, 255, 0.85);
    background: rgba(19, 208, 255, 0.08);
}


.btn-secondary.easter-egg {
    min-width: 210px;
    justify-content: center;
    font-size: 0.96rem;
}


.btn-disabled {
    background: rgba(148, 163, 184, 0.4);
    color: rgba(15, 23, 42, 0.6);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(19, 208, 255, 0.4);
    color: var(--color-heading);
    padding: 0.9rem 1.5rem;
    transition: border 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(19, 208, 255, 0.12);
    border-color: rgba(19, 208, 255, 0.85);
}

.hero-cta-group .btn-ghost {
    min-width: 210px;
    justify-content: center;
    text-align: center;
}


/* --- Content Blocks (Events, Innovation, Tools, Servers) --- */
.content-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: 0;
    flex-wrap: wrap;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 5% 10%, rgba(19, 208, 255, 0.12), transparent 45%), linear-gradient(135deg, rgba(6, 14, 32, 0.92), rgba(9, 25, 52, 0.9));
    border: 1px solid rgba(19, 208, 255, 0.15);
    box-shadow: 0 18px 35px rgba(2, 6, 18, 0.55);
    text-align: left;
}

.event-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(19, 208, 255, 0.25);
    box-shadow: 0 28px 55px rgba(2, 6, 18, 0.55);
}

.event-section--live {
    background-image: linear-gradient(135deg, rgba(2, 6, 18, 0.78), rgba(8, 25, 52, 0.82)), radial-gradient(circle at 20% 20%, rgba(19, 208, 255, 0.18), transparent 45%), url('../images/event.png');
}

.event-section--broadcast {
    background-image: linear-gradient(135deg, rgba(3, 8, 22, 0.78), rgba(13, 36, 74, 0.82)), radial-gradient(circle at 80% 15%, rgba(140, 111, 247, 0.18), transparent 45%), url('../images/online.png');
}

.event-section .content-block {
    position: relative;
    z-index: 1;
    background: rgba(5, 12, 30, 0.78);
    border-color: rgba(19, 208, 255, 0.3);
}


.content-block.reverse-on-mobile {
    flex-direction: row-reverse; /* Ordre inversé pour desktop (image à droite) */
}

.text-content {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}


.block-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.block-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(19, 208, 255, 0.12);
    color: #e5f6ff;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    text-transform: uppercase;
}


.text-content p {
    font-size: 1.05em;
    line-height: 1.7;
    margin: 0;
    color: var(--color-text-muted);
}

.event-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 18px;
    padding: 0;
    margin: 0.75rem 0 0.25rem;
    color: var(--color-heading);
}

.event-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.96rem;
    color: var(--color-text);
    padding: 10px 12px;
    border: 1px solid rgba(19, 208, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.event-points i {
    color: var(--color-primary);
}

.event-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.event-cta-group .btn {
    min-height: 42px;
}



.image-content {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}


.block-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.18);
    transition: transform 0.35s ease, filter 0.35s ease;
}


.block-image:hover {
    transform: translateY(-6px) scale(1.03);
    filter: saturate(1.05);
}


/* --- Stats Section --- */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.75rem);
    justify-items: center;
    text-align: center;
}


.stats-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: 0 22px 40px rgba(79, 70, 229, 0.2);
    color: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}
.stats-card::after {
    content: '';
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
    opacity: 0.25;
    pointer-events: none;
}


.stats-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}


.stats-card i {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.92);
}


.stats-card h3 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}


.stats-card .counter {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff; /* Assure que le compteur est blanc */
}

.stats-card p {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0;
}

/* --- Impact Pillars --- */
.impact-section {
    background: rgba(5, 18, 43, 0.75);
    border: 1px solid rgba(19, 208, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: var(--shadow-soft);
    margin-top: clamp(2rem, 5vw, 3rem);
}

.impact-intro {
    max-width: 880px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.impact-intro .section-description {
    max-width: none;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.impact-card {
    background: rgba(3, 10, 26, 0.88);
    border: 1px solid rgba(19, 208, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 34px rgba(1, 8, 23, 0.45);
}

.impact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(19, 208, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.impact-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(19, 208, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.impact-card h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.impact-card p {
    margin: 0;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}

.impact-card ul {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
    z-index: 1;
}

.impact-card ul li {
    padding-left: 1.3rem;
    position: relative;
}

.impact-card ul li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0.55rem;
}


/* --- Games Section Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin: 20px 0;
    justify-content: center;
}


.card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}


.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}


.card-image {
    width: 100%;
    object-fit: cover;
    height: 200px;
    filter: grayscale(80%) contrast(1.05);
    transition: filter 0.35s ease, transform 0.35s ease;
}


.card-image:hover {
    filter: none;
    transform: scale(1.03);
}


.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: left;
}


.card-content h3 {
    font-size: 1.35rem;
    color: var(--color-heading);
    margin-bottom: 0;
}


.card-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    flex-grow: 1;
}



.card-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}


.card-link:hover {
    color: #fdba74;
}


/* --- Join Team Section --- */
.join-team-section {
    text-align: center;
    background-image: url('../images/10262403.jpg');
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(3rem, 5vw, 5rem) 20px;
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}
.join-team-section::before {
    content: '';
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(79, 70, 229, 0.55) 55%, rgba(14, 165, 233, 0.5) 100%);
    backdrop-filter: blur(6px);
}


.join-team-content {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.45);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-md);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.35);
}


.join-team-section .section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--color-heading);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}
.section-title::after {
    content: '';
    height: 4px;
    width: 64px;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    bottom: -14px;
    left: 50%;
    position: absolute;
    display: block;
    transform: translateX(-50%);
}



.join-team-section p {
    font-size: 1.1em;
    margin-bottom: 1.8rem;
    color: #e2e8f0;
}



.join-team-image-link {
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.join-team-image-link:hover {
    transform: scale(1.05);
}

.join-team-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

/* Form Styles (within overlays) */
form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(248, 250, 255, 0.95);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.18);
    gap: 0.85rem;
}


form label {
    font-weight: 600;
    color: var(--color-heading);
}


form input[type='text'],
form input[type='email'],
form textarea,
form select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    font-family: 'Roboto', sans-serif;
    color: var(--color-text);
}


form input[type='submit'] {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.95rem 1.2rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-soft);
}


form input[type='submit']:hover {
    filter: brightness(1.06);
}


/* Boutons sociaux dans l'overlay */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.button img {
    width: 100%; /* L'image prend toute la largeur du bouton */
    height: 100%;
    object-fit: contain;
    transition: transform 1s ease-in-out;
    filter: none; /* Pas de filtre ici */
}

.button:hover img {
    transform: rotate(360deg);
}

.button:active {
    transform: translateY(1px);
}


/* --- Tools Page Specific Styles --- */
.tools-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/wallpaperflare.com_wallpaper.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 420px;
    position: relative;
    padding: clamp(2rem, 5vw, 4rem);
    flex-wrap: wrap;
    gap: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: min(94%, 1100px);
    margin: clamp(2rem, 4vw, 4rem) auto;
    box-shadow: var(--shadow-soft);
    color: var(--color-heading);
    text-align: center;
    isolation: isolate;
}
.tools-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78) 0%, rgba(79, 70, 229, 0.52) 55%, rgba(14, 165, 233, 0.5) 100%);
    backdrop-filter: blur(4px);
    z-index: 0;
    border-radius: inherit;
}

.tools-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.tools-header {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.tools-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}



.tool {
    position: relative;
    z-index: 1;
    flex: 1 0 280px;
    margin: 10px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid rgba(148, 163, 184, 0.18);
    opacity: 0.95;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



.tool img {
    width: 100%;
    height: clamp(180px, 28vw, 230px);
    object-fit: cover;
    filter: grayscale(85%) contrast(1.05);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.tool img:hover {
    filter: none;
    transform: scale(1.03);
}


.tool h3, .tool h2 {
    color: var(--color-heading);
    font-size: 1.45rem;
    margin-top: 1rem;
}


.tool p {
    color: var(--color-text-muted);
    font-size: 1rem;
    padding: 0 1.1rem 1.4rem;
    margin: 0;
}

.tool a {
    margin: 0 1.1rem 1.4rem;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.tool a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* --- Project / Case Study Layouts --- */
.project-hero {
    position: relative;
    width: min(94%, 1200px);
    margin: clamp(2rem, 4vw, 4.5rem) auto;
    padding: clamp(2.5rem, 5vw, 4rem);
    min-height: clamp(320px, 60vh, 520px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: var(--color-heading);
    box-shadow: var(--shadow-soft);
    isolation: isolate;
    background-color: rgba(3, 10, 26, 0.85);
    background-image: var(--project-hero-image, linear-gradient(135deg, #0f172a, #1d2a44));
    background-size: cover;
    background-position: center;
}

.project-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(2, 6, 23, 0.65) 0%, rgba(2, 6, 23, 0.35) 55%, rgba(19, 208, 255, 0.18) 100%);
    mix-blend-mode: multiply;
    z-index: 0;
    pointer-events: none;
}

.project-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(720px, 100%);
}

.project-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-pill);
    background: rgba(19, 208, 255, 0.18);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.6rem;
    color: #e6f8ff;
}

.project-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.project-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(2, 8, 23, 0.55);
    border: 1px solid rgba(19, 208, 255, 0.25);
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.9);
}

.project-section {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2vw, 2.75rem);
}

.project-details__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.project-card {
    background: rgba(3, 10, 26, 0.7);
    border-radius: var(--radius-md);
    border: 1px solid rgba(19, 208, 255, 0.12);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-soft);
}

.project-card h2 {
    margin-bottom: 0.75rem;
}

.project-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.project-list li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--color-text-muted);
}

.project-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(19, 208, 255, 0.15);
}

.press-articles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.press-card {
    flex: 1 1 200px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(19, 208, 255, 0.15);
    background: rgba(1, 6, 18, 0.7);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.press-card img {
    max-width: 70%;
    height: auto;
    object-fit: contain;
}

.press-card span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.press-card:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 208, 255, 0.45);
}

.project-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.partner-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(19, 208, 255, 0.12);
    background: rgba(1, 5, 18, 0.8);
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.partner-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: saturate(0) brightness(1.15);
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: rgba(19, 208, 255, 0.45);
}

/* Navbar and contact overlays */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, rgba(3, 10, 26, 0.9), rgba(8, 24, 52, 0.92));
    text-transform: uppercase;
    z-index: 999;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, padding 0.3s ease, width 0.3s ease;
    backdrop-filter: blur(18px);
    min-height: 68px;
    padding: 10px 18px;
    border: 1px solid rgba(19, 208, 255, 0.25);
    position: static;
    width: min(1280px, 98%);
    margin: 10px auto;
    border-radius: 18px;
    gap: clamp(10px, 2.5vw, 28px);
    flex-wrap: nowrap;
}

.nav-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    height: 100%;
}

.navbar .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #fff;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(19, 208, 255, 0.32);
    box-shadow: 0 12px 30px rgba(19, 208, 255, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar .logo img {
    height: clamp(52px, 8vw, 68px);
    width: auto;
    max-height: 68px;
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    filter: saturate(1.05);
}

.navbar .logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(19, 208, 255, 0.3);
    border-color: rgba(19, 208, 255, 0.4);
}

.navbar .logo:hover img {
    transform: scale(1.015);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.05;
}

.logo-name {
    letter-spacing: 0.14em;
    font-size: 0.92rem;
    font-weight: 700;
    color: #e5f6ff;
}

.logo-text small {
    color: rgba(231, 244, 255, 0.7);
    text-transform: none;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(19, 208, 255, 0.12);
    border: 1px solid rgba(19, 208, 255, 0.4);
    letter-spacing: 0.12em;
    font-size: 0.64rem;
    color: #e0faff;
}

.nav-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.8vw, 20px);
    flex: 1 1 auto;
}

.navbar .nav-links {
    display: flex;
    gap: clamp(10px, 1.6vw, 18px);
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: 0;
    flex: 1 1 auto;
}

.nav-links .nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    color: #d7e6ff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-links .caret {
    font-size: 0.7rem;
    margin-left: 6px;
    transition: transform 0.25s ease;
}

.nav-links .nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(19, 208, 255, 0.22), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links .nav-item:hover {
    background-color: rgba(19, 208, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 208, 255, 0.25);
    border-color: rgba(19, 208, 255, 0.22);
}

.nav-links .nav-item:hover::after {
    opacity: 1;
}

.nav-links .nav-item.is-active {
    background: linear-gradient(135deg, rgba(19, 208, 255, 0.16), rgba(140, 111, 247, 0.14));
    border-color: rgba(140, 111, 247, 0.4);
    box-shadow: 0 10px 26px rgba(19, 208, 255, 0.15);
}

.dropdown {
    position: relative;
}

.dropdown.is-open > .dropbtn .caret {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    background: linear-gradient(140deg, rgba(3, 12, 29, 0.95), rgba(8, 24, 52, 0.9));
    min-width: 200px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    border: 1px solid rgba(19, 208, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    top: calc(100% + 12px);
    left: 0;
    transform: translateY(4px);
    pointer-events: none;
    padding: 8px;
}

.dropdown-content a {
    min-height: 44px;
    color: #d7e6ff;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid transparent;
    letter-spacing: 0.08em;
}

.dropdown.is-open .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a:hover {
    background-color: rgba(19, 208, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(19, 208, 255, 0.2);
    border-color: rgba(19, 208, 255, 0.25);
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-actions .btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-height: 44px;
    height: 44px;
}

.nav-cta {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(19, 208, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.nav-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.35);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(19, 208, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #e5edff;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active {
    border-color: rgba(19, 208, 255, 0.5);
    transform: rotate(2deg);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.navbar--condensed {
    padding: 8px 14px;
    width: min(980px, 92%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%) translateY(-6px);
}

.navbar--condensed .logo img {
    height: clamp(46px, 7vw, 60px);
    width: auto;
    max-height: 60px;
}

.navbar--condensed .nav-chip {
    display: none;
}

.navbar--condensed .nav-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navbar--condensed .nav-actions .btn {
    padding: 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    white-space: normal;
    flex: 1 1 auto;
    min-width: 0;
}

@media only screen and (min-width: 769px) {
    .navbar {
        position: fixed;
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
}

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        transform: none;
        width: min(98%, 840px);
        min-height: 64px;
    }
    .navbar--condensed {
        transform: none;
        width: 100%;
    }

    .nav-rail {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 14px;
        background: linear-gradient(140deg, rgba(3, 12, 29, 0.98), rgba(8, 24, 52, 0.95));
        border: 1px solid rgba(19, 208, 255, 0.25);
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
        z-index: 998;
    }

    .nav-rail.is-open {
        display: flex;
    }

    .navbar .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: stretch;
    }

    .nav-links .nav-item,
    .dropdown-content a {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 10px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        padding: 4px 0 0;
    }
    .dropdown.is-open .dropdown-content {
        display: block;
    }

    .nav-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav-actions .btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        white-space: normal;
        padding: 0 12px;
    }

    .hamburger {
        display: inline-flex;
        margin-left: auto;
    }
}

.contact-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem);
    background: rgba(2, 6, 18, 0.82);
    z-index: 99910;
    backdrop-filter: blur(6px);
}

.contact-modal {
    position: relative;
    width: min(960px, 95%);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(6, 11, 30, 0.98), rgba(9, 15, 40, 0.94));
    border: 1px solid rgba(19, 208, 255, 0.2);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55);
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #e2e8f0;
}

.contact-modal--apply {
    border-color: rgba(236, 72, 153, 0.4);
}

.contact-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}

.contact-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-chip {
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(19, 208, 255, 0.15);
    border: 1px solid rgba(19, 208, 255, 0.4);
}

.contact-chip--accent {
    background: rgba(244, 114, 182, 0.18);
    border-color: rgba(244, 114, 182, 0.35);
}

.contact-lead {
    color: rgba(226, 232, 240, 0.85);
}

.contact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
}

.contact-metrics span {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
}

.contact-metrics small {
    display: block;
    color: rgba(226, 232, 240, 0.7);
    letter-spacing: 0.05em;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
    transition: border 0.3s ease, transform 0.3s ease;
}

.contact-channel i {
    font-size: 1.2rem;
}

.contact-channel--discord {
    border-color: rgba(114, 137, 218, 0.6);
}

.contact-channel:hover {
    transform: translateY(-2px);
    border-color: rgba(19, 208, 255, 0.7);
}

.contact-cta-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(5, 12, 28, 0.85);
    border-radius: 18px;
    padding: 1.4rem;
    border: 1px solid rgba(19, 208, 255, 0.15);
    box-shadow: inset 0 0 25px rgba(13, 24, 52, 0.6);
}

.contact-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.contact-submit {
    width: 100%;
    justify-content: center;
}

.contact-hint {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.7);
    text-align: center;
}

.contact-lead--muted {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form__field label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.75);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 12, 30, 0.85);
    color: #fff;
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
    font-family: inherit;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: rgba(19, 208, 255, 0.65);
    box-shadow: 0 0 0 2px rgba(19, 208, 255, 0.15);
}

.contact-form__field textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form__actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

@media (min-width: 640px) {
    .contact-form__actions {
        flex-direction: row;
        align-items: center;
    }
}

.contact-form__hint {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.7);
}

.contact-form__status {
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.7);
}

.contact-form__status.is-error {
    color: #fb7185;
}

.contact-form__status.is-success {
    color: #34d399;
}


/* --- Bee Animation (global) --- */
.bee {
    position: absolute;
    width: 48px;
    height: 48px;
    background-image: url('../images/logo3.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%) scale(0.9);
    animation: beeFloat 1.8s ease-out forwards;
    z-index: 2;
    opacity: 0.85;
    pointer-events: none;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

@keyframes beeFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }
    50% {
        opacity: 1;
        transform: translate(calc(-50% + (var(--randomX) * 120px - 60px)),
                calc(-50% - (var(--randomY) * 80px))) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + (var(--randomX) * 160px - 80px)),
                calc(-50% - (var(--randomY) * 140px))) scale(0.8);
    }
}


/* --- Slider (Our Customers) --- */
.slider {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 248, 255, 0.9) 100%);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
    height: 120px;
    margin: 30px auto;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.12);
}


.slider::after, .slider::before {
    content: '';
    height: 100%;
    width: 100px; /* Largeur de l'ombre de fondu */
    z-index: 2;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}
.slider::before {
    left: 0;
    top: 0;
}

.slider .slide-track {
    display: flex;
    animation: scroll 40s linear infinite; /* Animation scroll */
    width: calc(250px * 12); /* Largeur calculée */
}

.slider .slide {
    height: 100%; /* Prend toute la hauteur du slider */
    width: 250px; /* Largeur d'une slide */
    flex-shrink: 0; /* Ne rétrécit pas */
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider .slide img {
    max-width: 150px; /* Taille maximale de l'image */
    max-height: 100%; /* S'assure que l'image tient dans la hauteur du slide */
    margin-right: 0; /* Pas de marge à droite ici, c'est le gap de flex qui gère */
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
    object-fit: contain;
    filter: grayscale(100%) brightness(100%); /* Ton style existant */
}

.slider .slide:hover img {
    transform: scale(1.1);
    filter: none; /* Retire le filtre au survol */
}

.trust-badges {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.trust-badges li {
    background: rgba(3, 10, 26, 0.76);
    border: 1px solid rgba(19, 208, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    width: min(280px, 30%);
    min-width: 220px;
    text-align: left;
    box-shadow: 0 18px 38px rgba(1, 5, 19, 0.45);
}

.trust-badges__value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.35rem;
}

.trust-badges li p {
    margin: 0;
    color: var(--color-text-muted);
}

/* Keyframes pour le slider */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); /* Ajuste ce nombre pour la bonne répétition */ }
}

/* --- Scroll reveal & micro-interactions --- */
.revealable {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.98);
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.8s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.revealable[data-reveal="slide-left"] {
    transform: translate3d(-28px, 0, 0);
}

.revealable[data-reveal="slide-right"] {
    transform: translate3d(28px, 0, 0);
}

.revealable[data-reveal="pop"] {
    transform: translate3d(0, 24px, 0) scale(0.96);
}

.revealable.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.hero-cta-group .btn-contact {
    position: relative;
    animation: ctaPulse 3.6s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(19, 208, 255, 0.25);
}

.hero-cta-group .btn-contact:hover {
    animation-play-state: paused;
}

.platform-logo::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.platform-logo:hover::after {
    opacity: 1;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(19, 208, 255, 0.35);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(19, 208, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(19, 208, 255, 0);
    }
}

/* --- Container Animations (slide-in) --- */
@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.container.slideInLeft {
    animation: slideInLeft 0.8s forwards ease-out;
}

.container.slideInRight {
    animation: slideInRight 0.8s forwards ease-out;
}


/* --- Overlay & Modal Responsiveness --- */
@media (max-width: 768px) {
    #container,
    #containerApply {
        width: 95%;
        padding: 20px;
    }

    form {
        width: 100%;
        padding: 15px;
    }

    .button {
        width: 70px;
        height: 70px;
        font-size: 18px;
    }

    .tools-container {
        padding: 15px;
        gap: 15px;
    }

    .tool {
        flex: 1 0 100%;
        max-height: none;
        margin: 0;
    }

    .tool img {
        height: 180px;
    }
}

/* --- Main Responsiveness Media Queries --- */

/* Mobile devices (portrait and some landscape) */
@media (max-width: 768px) {
    .storyline {
        grid-template-columns: 1fr;
    }

    .project-hero {
        width: 96%;
        padding: 1.75rem;
        min-height: 320px;
    }

    .project-hero__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-details__grid {
        grid-template-columns: 1fr;
    }

    .press-articles {
        flex-direction: column;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        width: 96%;
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .page-hero__cta {
        flex-direction: column;
    }

    .page-hero__stats {
        flex-direction: column;
    }

    .journey-timeline,
    .lore-grid {
        grid-template-columns: 1fr;
    }

    .eva-journey {
        flex-direction: column;
    }

    .eva-journey__path {
        flex-direction: column;
        align-items: stretch;
    }

    .eva-node {
        max-width: 100%;
    }

    .story-egg {
        position: static;
        margin-top: 1.5rem;
    }

    .mascot-guide {
        display: none;
    }

    .container {
        width: 94%;
        margin: 1.5rem auto;
        padding: 1.75rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-description {
        font-size: 0.98rem;
        padding: 0 5%;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-story-feed {
        flex-direction: column;
        text-align: center;
    }

    .hero-story-feed__line {
        text-align: center;
        align-items: center;
    }

    .hero-beacon {
        width: 100%;
        align-items: center;
    }

    .hero-secondary-link {
        justify-content: center;
    }

    .video-hero {
        min-height: auto;
        height: auto;
    }

    .video-overlay {
        padding: 3.2rem 1.25rem 2.25rem;
    }

    .hero-content {
        margin-top: 1.8rem;
        margin-bottom: 1.8rem;
        gap: 1.1rem;
    }

    .hero-platforms-caption {
        position: static;
        transform: none;
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .hero-platforms--floating {
        position: static;
        transform: none;
        width: 100%;
        gap: 1rem;
    }

    .hero-platforms--floating::before {
        display: none;
    }

    .platform-logo {
        width: 100%;
        min-height: 56px;
        padding: 0.85rem 1rem;
    }

    .platform-logo img {
        height: 40px;
    }

    .platform-logo span {
        font-size: 0.7rem;
        letter-spacing: 0.16em;
    }

    .btn-contact {
        width: 100%;
        justify-content: center;
    }

    .content-block {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .text-content,
    .image-content {
        width: 100%;
        text-align: center;
    }

    .block-title {
        text-align: center;
    }

    .stats-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .join-team-section {
        min-height: 320px;
        padding: 2.5rem 1.5rem;
    }

    .join-team-content {
        padding: 2rem;
    }

    .eva-glyphs {
        flex-direction: row;
        bottom: 16px;
        right: 16px;
    }
}

/* Tablet devices (portrait and landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 90%;
        padding: 2.5rem;
    }

    .stats-cards-grid {
        gap: 2rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .join-team-section {
        min-height: 360px;
    }
}
