/* ============================================================================
   HOME.CSS - Cards style Core Tenets avec palette bleu glacier cohérente
   ============================================================================ */

/* Configuration du scroll snap */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* ============================================================================
   BACKGROUND GÉNÉRATIF - Palette Bleu Glacier
   ============================================================================ */

body {
    background: linear-gradient(to bottom, 
        #ffffff 0%,          /* Blanc pur */
        #f0f8ff 15%,         /* Blanc bleuté */
        #e6f3ff 30%,         /* Bleu très clair */
        #b3d9ff 50%,         /* Bleu glacier clair */
        #4d94ff 70%,         /* Bleu glacier moyen */
        #0066cc 85%,         /* Bleu glacier profond */
        #003366 100%         /* Bleu abyssal */
    );
    min-height: 500vh; /* 5 sections = 500vh */
}

/* ============================================================================
   SECTIONS - Structure conservée avec nouvelles couleurs
   ============================================================================ */

.section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: transparent; /* Laisser le gradient global visible */
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* ============================================================================
   STYLES SPÉCIFIQUES PAR NIVEAU - Palette Bleu Glacier
   ============================================================================ */

/* NIVEAU 0: LOGO */
.logo .content,
.surface .content {
    color: #003366; /* Bleu abyssal pour contraste sur fond blanc */
}

.surface .content {
    background: rgba(240, 248, 255, 0.8); /* Blanc bleuté transparent */
    backdrop-filter: blur(5px);
}

.logo .content h1,
.logo .content p,
.surface .content h1,
.surface .content p {
    color: #003366; /* Bleu abyssal */
}

/* NIVEAU 2: RESEARCH */
.research .content {
    background: rgba(0, 102, 204, 0.15); /* Bleu glacier profond transparent */
    color: #f0f8ff; /* Blanc bleuté */
    backdrop-filter: blur(5px);
}

.research .content h1,
.research .content p {
    color: #f0f8ff; /* Blanc bleuté */
}

/* NIVEAU 3-4: OPERATIONAL & DEEP */
.operational .content,
.deep .content {
    background: rgba(0, 26, 51, 0.4); /* Bleu très foncé transparent */
    color: #e6f3ff; /* Bleu très clair */
    backdrop-filter: blur(5px);
}

.operational .content h1,
.operational .content p,
.deep .content h1,
.deep .content p {
    color: #e6f3ff; /* Bleu très clair */
}

/* ============================================================================
   VARIABLES CSS POUR LES NIVEAUX SVG - Palette Bleu Glacier
   ============================================================================ */

.logo .bg-container {
    --primary-color: #b3d9ff;     /* Bleu glacier clair */
    --line-opacity: 0.1;
    --animation-speed: 15s;
    --corruption-level: 0;
}

.surface .bg-container {
    --primary-color: #4d94ff;     /* Bleu glacier moyen */
    --line-opacity: 0.2;
    --animation-speed: 12s;
    --corruption-level: 0;
}

.research .bg-container {
    --primary-color: #e6f3ff;     /* Bleu très clair */
    --line-opacity: 0.25;
    --animation-speed: 10s;
    --corruption-level: 1;
}

.operational .bg-container {
    --primary-color: #b3d9ff;     /* Bleu glacier clair */
    --line-opacity: 0.4;
    --animation-speed: 8s;
    --corruption-level: 2;
}

.deep .bg-container {
    --primary-color: #4d94ff;     /* Bleu glacier moyen */
    --line-opacity: 0.6;
    --animation-speed: 6s;
    --corruption-level: 3;
}

/* ============================================================================
   LOGO PRINCIPAL
   ============================================================================ */

.logo-image {
    width: min(300px, 25vw); /* Utilise la plus petite valeur entre 300px et 25% de la largeur de la fenêtre */
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(77, 148, 255, 0.4));
    animation: logoFloat 6s ease-in-out infinite;
}

.logo .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.foundation-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 26, 51, 0.4);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.catchphrase {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 26, 51, 0.3);
    letter-spacing: -0.01em;
}

/* ============================================================================
   CARDS MODERNISÉES - Palette Bleu Glacier
   ============================================================================ */

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.page-card {
    background: rgba(240, 248, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(77, 148, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.page-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 148, 255, 0.1),
        transparent
    );
    transition: left 0.8s ease;
}

.page-card:hover::before {
    left: 100%;
}

.page-card:hover {
    transform: translateY(-5px);
    background: rgba(240, 248, 255, 0.06);
    border-color: rgba(77, 148, 255, 0.3);
    box-shadow: 
        0 15px 30px rgba(0, 26, 51, 0.2),
        0 0 20px rgba(77, 148, 255, 0.15);
}

/* Style catégorie */
.page-card-category {
    display: inline-block;
    background: rgba(77, 148, 255, 0.2);
    color: rgba(77, 148, 255, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(77, 148, 255, 0.2);
    text-align: left;
    display: block;
    width: fit-content;
}

/* Couleurs par catégorie - Palette Enhanced ARG Horreur */
.page-card-category {
    background: rgba(77, 148, 255, 0.2);
    color: rgba(77, 148, 255, 0.9);
}

/* Public/Community - Bleu très clair */
.page-card-category:is(:contains("Public"), :contains("Community")) {
    background: rgba(230, 243, 255, 0.2);
    color: #e6f3ff;
    border-color: rgba(230, 243, 255, 0.3);
}

/* Doctrine/Archives - Bleu glacier clair */
.page-card-category:is(:contains("Doctrine"), :contains("Archives"), :contains("Documentation")) {
    background: rgba(179, 217, 255, 0.2);
    color: #b3d9ff;
    border-color: rgba(179, 217, 255, 0.3);
}

/* Recruitment/Surveillance/Protocols - Bleu glacier moyen */
.page-card-category:is(:contains("Recruitment"), :contains("Surveillance"), :contains("Protocols")) {
    background: rgba(77, 148, 255, 0.2);
    color: #4d94ff;
    border-color: rgba(77, 148, 255, 0.3);
}

/* Classified/Restricted/Forbidden - ROUGE DANGER */
.page-card-category:is(:contains("Classified"), :contains("Restricted"), :contains("Forbidden")) {
    background: rgba(204, 51, 51, 0.2);
    color: #cc3333;
    border-color: rgba(204, 51, 51, 0.3);
}

/* Header avec icône */
.page-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.page-card-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: rgba(179, 217, 255, 0.9);
    min-width: 50px;
    filter: drop-shadow(0 0 8px rgba(77, 148, 255, 0.3));
}

.page-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: rgba(240, 248, 255, 0.95);
    letter-spacing: -0.01em;
}

.page-card p {
    font-family: var(--font-main);
    font-size: 1rem;
    color: rgba(230, 243, 255, 0.8);
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* ============================================================================
   STYLES SPÉCIFIQUES PAR NIVEAU POUR LES CARDS
   ============================================================================ */

/* Surface Level - Plus visible sur fond clair */
.surface .page-card {
    background: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.3);
    color: #003366;
}

.surface .page-card-category {
    background: rgba(0, 102, 204, 0.2);
    color: #0066cc;
    border-color: rgba(0, 102, 204, 0.4);
}

.surface .page-card-icon {
    color: #0066cc;
    filter: drop-shadow(0 0 8px rgba(0, 102, 204, 0.3));
}

.surface .page-card h3 {
    color: #003366;
}

.surface .page-card p {
    color: rgba(0, 51, 102, 0.8);
}

.surface .page-card:hover {
    background: rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.5);
    box-shadow: 
        0 15px 30px rgba(0, 26, 51, 0.1),
        0 0 20px rgba(0, 102, 204, 0.2);
}

/* Research Level - Style normal */
.research .page-card:hover {
    border-color: rgba(179, 217, 255, 0.4);
}

/* Operational Level - Intensification */
.operational .page-card:hover {
    border-color: rgba(77, 148, 255, 0.5);
    box-shadow: 
        0 15px 30px rgba(0, 26, 51, 0.3),
        0 0 20px rgba(77, 148, 255, 0.3);
}

.operational .page-card::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 148, 255, 0.15),
        transparent
    );
}

/* Locked card styling */
.operational .page-card.locked {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    background: rgba(0, 26, 51, 0.4);
    border-color: rgba(204, 51, 51, 0.3);
}

.operational .page-card.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(204, 51, 51, 0.1) 10px,
        rgba(204, 51, 51, 0.1) 20px
    );
    z-index: 3;
    border-radius: 20px;
    animation: scanlines 4s infinite;
}

.operational .page-card.locked .page-card-category {
    background: rgba(204, 51, 51, 0.2);
    color: #cc3333;
    border-color: rgba(204, 51, 51, 0.3);
}

.operational .page-card.locked .page-card-category::before {
    content: '🔒 ';
}

.operational .page-card.locked h3,
.operational .page-card.locked p {
    filter: blur(1px);
    opacity: 0.6;
}

.operational .page-card.locked:hover {
    transform: none;
    cursor: not-allowed;
}

/* Deep Level - Style corrompu avec bleus */
.deep .page-card {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    background: rgba(0, 26, 51, 0.4);
    border-color: rgba(77, 148, 255, 0.3);
}

.deep .page-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(77, 148, 255, 0.1) 10px,
        rgba(77, 148, 255, 0.1) 20px
    );
    z-index: 3;
    border-radius: 20px;
    animation: scanlines 4s infinite;
}

.deep .page-card-category::before {
    content: '🔒 ';
}

.deep .page-card h3,
.deep .page-card p {
    filter: blur(1px);
    opacity: 0.6;
}

.deep .page-card:hover {
    transform: none;
    cursor: not-allowed;
}

/* ============================================================================
   SVG ET ANIMATIONS - Conservées avec nouvelles couleurs
   ============================================================================ */

.generative-svg {
    width: 100%;
    height: 100%;
    filter: hue-rotate(calc(var(--corruption-level) * 10deg));
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    transform-origin: center;
}

/* Grille de base */
.grid-line {
    stroke: var(--primary-color);
    stroke-width: 0.5;
    opacity: var(--line-opacity);
    animation: gridPulse var(--animation-speed) infinite ease-in-out;
}

/* Circuits / connexions */
.circuit {
    stroke: var(--primary-color);
    stroke-width: 1;
    fill: none;
    opacity: calc(var(--line-opacity) * 0.8);
    stroke-dasharray: 10, 5;
    stroke-dashoffset: 0;
    animation: circuitFlow var(--animation-speed) linear infinite;
}

/* Nodes / points de connexion */
.node {
    fill: var(--primary-color);
    opacity: calc(var(--line-opacity) * 1.5);
    animation: nodeGlow calc(var(--animation-speed) * 0.5) ease-in-out infinite alternate;
}

/* Fragments flottants */
.fragment {
    stroke: var(--primary-color);
    stroke-width: 0.8;
    fill: none;
    opacity: calc(var(--line-opacity) * 0.6);
    transform-origin: center;
    animation: fragmentDrift calc(var(--animation-speed) * 2) linear infinite;
}

/* Éléments de corruption */
.corruption {
    stroke: var(--primary-color);
    stroke-width: 1.2;
    fill: none;
    opacity: calc(var(--corruption-level) * 0.2);
    animation: corruptionFlow calc(var(--animation-speed) * 1.5) ease-in-out infinite;
}

/* ============================================================================
   EFFETS SPÉCIAUX NIVEAU DEEP - Bleu Glacier
   ============================================================================ */

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.matrix-column {
    position: absolute;
    top: -100%;
    color: #4d94ff; /* Bleu glacier moyen */
    font-family: 'Courier New', monospace;
    font-size: 20px;
    line-height: 1.2;
    opacity: 0;
    text-shadow: 0 0 5px rgba(77, 148, 255, 0.6);
    animation: matrixRain linear infinite;
}

.glitch-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.glitch-char {
    position: absolute;
    color: #4d94ff; /* Bleu glacier moyen */
    font-family: 'Courier New', monospace;
    opacity: 0;
    text-shadow: 0 0 5px rgba(77, 148, 255, 0.6);
    animation: glitchFade 4s linear forwards;
    white-space: nowrap;
}

.glitch-text {
    position: absolute;
    color: #0066cc; /* Bleu glacier profond */
    font-family: 'Courier New', monospace;
    font-size: 14px;
    opacity: 0;
    text-shadow: 0 0 8px rgba(0, 102, 204, 0.7);
    animation: glitchTextFade 6s linear forwards;
    white-space: nowrap;
    letter-spacing: 1px;
}

/* ============================================================================
   SCROLL INDICATOR
   ============================================================================ */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #003366;
    opacity: 0.8;
    animation: bounce 2s infinite;
    text-shadow: 0 0 10px rgba(77, 148, 255, 0.5);
}

/* ============================================================================
   ANIMATIONS KEYFRAMES - Conservées
   ============================================================================ */

@keyframes gridPulse {
    0%, 100% { opacity: var(--line-opacity); }
    50% { opacity: calc(var(--line-opacity) * 2); }
}

@keyframes circuitFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 100; }
}

@keyframes nodeGlow {
    0% { 
        opacity: calc(var(--line-opacity) * 1.5); 
        transform: scale(1);
    }
    100% { 
        opacity: calc(var(--line-opacity) * 3); 
        transform: scale(1.5);
    }
}

@keyframes fragmentDrift {
    0% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: calc(var(--line-opacity) * 0.6);
    }
    25% { 
        transform: translate(20px, -30px) rotate(90deg); 
    }
    50% { 
        transform: translate(-10px, -60px) rotate(180deg); 
    }
    75% { 
        transform: translate(-40px, -30px) rotate(270deg); 
    }
    100% { 
        transform: translate(0, 0) rotate(360deg); 
        opacity: calc(var(--line-opacity) * 0.6);
    }
}

@keyframes corruptionFlow {
    0% { 
        transform: translate(0, 0) scale(1); 
        opacity: calc(var(--corruption-level) * 0.2);
    }
    25% { 
        transform: translate(2px, -1px) scale(1.02); 
        opacity: calc(var(--corruption-level) * 0.3);
    }
    50% { 
        transform: translate(-1px, 2px) scale(0.98); 
        opacity: calc(var(--corruption-level) * 0.4);
    }
    75% { 
        transform: translate(-2px, -1px) scale(1.01); 
        opacity: calc(var(--corruption-level) * 0.3);
    }
    100% { 
        transform: translate(0, 0) scale(1); 
        opacity: calc(var(--corruption-level) * 0.2);
    }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0);
        filter: drop-shadow(0 0 10px rgba(77, 148, 255, 0.4));
    }
    50% { 
        transform: translateY(-10px);
        filter: drop-shadow(0 0 20px rgba(77, 148, 255, 0.6));
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scanlines {
    0% { 
        background-position: 0 0; 
    }
    100% { 
        background-position: 20px 20px; 
    }
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes glitchFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh);
    }
}

@keyframes glitchTextFade {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        filter: blur(2px);
    }
    10% {
        opacity: 0.9;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    90% {
        opacity: 0.9;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px) scale(1.05);
        filter: blur(2px);
    }
}

/* Effets spéciaux pour les niveaux élevés */
.operational .generative-svg {
    animation: subtleDistortion 12s infinite ease-in-out;
}

.deep .generative-svg {
    animation: organicCorruption 15s infinite ease-in-out;
}

@keyframes subtleDistortion {
    0%, 100% { 
        filter: hue-rotate(0deg); 
        transform: scale(1);
    }
    25% { 
        filter: hue-rotate(5deg); 
        transform: scale(1.002) skew(0.1deg);
    }
    50% { 
        filter: hue-rotate(-3deg); 
        transform: scale(0.998) skew(-0.1deg);
    }
    75% { 
        filter: hue-rotate(2deg); 
        transform: scale(1.001) skew(0.05deg);
    }
}

@keyframes organicCorruption {
    0%, 100% { 
        filter: hue-rotate(0deg) saturate(1); 
        transform: scale(1);
    }
    20% { 
        filter: hue-rotate(8deg) saturate(1.1); 
        transform: scale(1.003) skew(0.2deg);
    }
    40% { 
        filter: hue-rotate(-5deg) saturate(0.9); 
        transform: scale(0.997) skew(-0.15deg);
    }
    60% { 
        filter: hue-rotate(12deg) saturate(1.2); 
        transform: scale(1.002) skew(0.1deg);
    }
    80% { 
        filter: hue-rotate(-8deg) saturate(0.95); 
        transform: scale(0.999) skew(-0.05deg);
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    /* Ajuster les sections pour mobile */
    .section {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }

    .content {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .foundation-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .catchphrase {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .scroll-indicator {
        font-size: 0.9rem;
        bottom: 1rem;
    }

    .logo-image {
        width: min(180px, 30vw);
        margin-bottom: 1rem;
    }

    .pages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        margin: 1rem auto 0;
    }

    .page-card {
        padding: 1.25rem;
        margin: 0;
    }

    .page-card-header {
        flex-direction: row;
        text-align: left;
        margin-bottom: 1rem;
    }

    .page-card-icon {
        margin-right: 0.75rem;
        margin-bottom: 0;
        font-size: 1.5rem;
        min-width: 35px;
    }

    .page-card h3 {
        font-size: 1.1rem;
    }

    .page-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .page-card-category {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 1rem;
    }
}

/* Ajout d'une media query pour les très petits écrans */
@media (max-width: 480px) {
    .section {
        padding: 1.5rem 0;
    }

    .content {
        padding: 0.75rem;
        margin: 0 0.25rem;
    }

    .foundation-title {
        font-size: 1.5rem;
    }

    .catchphrase {
        font-size: 0.9rem;
    }

    .logo-image {
        width: min(150px, 35vw);
    }

    .page-card {
        padding: 1rem;
    }

    .page-card-icon {
        font-size: 1.25rem;
        min-width: 30px;
    }

    .page-card h3 {
        font-size: 1rem;
    }

    .page-card p {
        font-size: 0.85rem;
    }
}

/* test */
.rotating-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    z-index: 2; /* Au-dessus du fond mais sous le contenu */
    opacity: 0.15; /* Très transparent pour rester en arrière-plan */
    pointer-events: none;
    filter: blur(1px); /* Léger flou pour l'effet mystérieux */
}

/* Logo extérieur qui tourne */
.logo-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotateComplex 20s cubic-bezier(0.56, 0, 0.44, 1) infinite;
    transform-origin: center center;
    filter: drop-shadow(0 0 30px rgba(240, 248, 255, 0.3));
}

/* Logo intérieur qui pulse */
.logo-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.15);
    pointer-events: none;
    animation: pulseEthereal 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(179, 217, 255, 0.4));
}

/* Animations adaptées pour l'ambiance mystérieuse */
@keyframes rotateComplex {
    0% { transform: rotate(0deg) scale(1); opacity: 0.1; }
    25% { transform: rotate(90deg) scale(1.05); opacity: 0.2; }
    50% { transform: rotate(180deg) scale(0.95); opacity: 0.15; }
    75% { transform: rotate(270deg) scale(1.02); opacity: 0.18; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.1; }
}

@keyframes pulseEthereal {
    0% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.3; }
    25% { transform: translate(-50%, -50%) scale(1.8); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(2.2); opacity: 0.1; }
    75% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.3; }
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.3;
}

.glitch-element {
    position: absolute;
    color: var(--glacier-light);
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    animation: glitchFloat 15s linear infinite;
    text-shadow: 0 0 10px rgba(230, 243, 255, 0.6);
}

@keyframes glitchFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}