/* Core Tenets CSS - Palette Enhanced ARG Horreur */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #001a33 0%, #003366 50%, #001a33 100%);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(77, 148, 255, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(77, 148, 255, 0.5));
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Floating particles background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
}

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

/* Tenet Cards - Enhanced avec nouvelles couleurs */
.tenet-card {
    background: rgba(240, 248, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(50px);
    opacity: 0;
}

.tenet-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.tenet-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(77, 148, 255, 0.15);
}

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

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

.tenet-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.tenet-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    color: var(--accent-primary);
    min-width: 60px;
    filter: drop-shadow(0 0 8px rgba(77, 148, 255, 0.4));
}

.tenet-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.tenet-category {
    display: inline-block;
    background: rgba(77, 148, 255, 0.2);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    border: 1px solid rgba(77, 148, 255, 0.3);
}

.tenet-content {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.tenet-content p {
    margin-bottom: 1.5rem;
}

.tenet-content p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--accent-secondary);
    opacity: 0.9;
}

/* Special cards styling - Nouvelle palette avec rouge/violet */
.tenet-card[data-category="fundamental"] {
    border-color: rgba(77, 148, 255, 0.3);
}

.tenet-card[data-category="fundamental"]:hover {
    border-color: var(--category-fundamental);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(77, 148, 255, 0.2);
}

.tenet-card[data-category="fundamental"] .tenet-category {
    background: rgba(77, 148, 255, 0.2);
    color: var(--category-fundamental);
    border-color: rgba(77, 148, 255, 0.3);
}

.tenet-card[data-category="prophecy"] {
    border-color: rgba(0, 102, 204, 0.3);
}

.tenet-card[data-category="prophecy"]:hover {
    border-color: var(--category-prophecy);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(0, 102, 204, 0.2);
}

.tenet-card[data-category="prophecy"] .tenet-category {
    background: rgba(0, 102, 204, 0.2);
    color: var(--category-prophecy);
    border-color: rgba(0, 102, 204, 0.3);
}

.tenet-card[data-category="pattern"] {
    border-color: rgba(179, 217, 255, 0.3);
}

.tenet-card[data-category="pattern"]:hover {
    border-color: var(--category-pattern);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(179, 217, 255, 0.2);
}

.tenet-card[data-category="pattern"] .tenet-category {
    background: rgba(179, 217, 255, 0.2);
    color: var(--category-pattern);
    border-color: rgba(179, 217, 255, 0.3);
}

/* Nouvelle catégorie : Manifestation - VIOLET CORRUPTION */
.tenet-card[data-category="manifestation"] {
    border-color: var(--border-corruption);
}

.tenet-card[data-category="manifestation"]:hover {
    border-color: var(--accent-corruption);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(107, 70, 193, 0.3);
    animation: corruption-glow 2s infinite ease-in-out;
}

.tenet-card[data-category="manifestation"] .tenet-category {
    background: var(--bg-corruption);
    color: var(--accent-corruption);
    border-color: var(--border-corruption);
}

.tenet-card[data-category="manifestation"] .tenet-icon {
    color: var(--accent-corruption);
    filter: drop-shadow(0 0 8px rgba(107, 70, 193, 0.5));
}

.tenet-card[data-category="manifestation"]::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(107, 70, 193, 0.1),
        transparent
    );
}

@keyframes corruption-glow {
    0%, 100% { 
        box-shadow: 
            0 25px 50px rgba(0, 26, 51, 0.3),
            0 0 50px rgba(107, 70, 193, 0.3);
    }
    50% { 
        box-shadow: 
            0 30px 60px rgba(0, 26, 51, 0.4),
            0 0 60px rgba(107, 70, 193, 0.5);
    }
}

/* Intro and outro sections */
.intro-section, .outro-section {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.intro-text, .outro-text {
    background: rgba(240, 248, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.intro-text::before, .outro-text::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.3;
    font-family: serif;
}

.intro-text::after, .outro-text::after {
    content: '"';
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.3;
    font-family: serif;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* Responsive */
@media (max-width: 768px) {
    .tenets-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }

    .tenet-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .intro-text, .outro-text {
        padding: 2rem;
        margin: 0 1rem 3rem;
    }

    .tenet-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .tenet-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Glitch Card Styles */
.glitch-card {
    position: relative;
    background: rgba(10, 15, 25, 0.95) !important;
    border: 1px solid var(--accent-corruption) !important;
    animation: glitch-border 2s infinite;
    overflow: hidden;
}

.glitch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(107, 70, 193, 0.05) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(77, 148, 255, 0.03) 50%, transparent 100%);
    animation: glitch-scan 3s infinite;
    pointer-events: none;
}

.glitch-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(107, 70, 193, 0.03) 2px,
        rgba(107, 70, 193, 0.03) 4px
    );
    animation: glitch-lines 0.1s infinite;
    pointer-events: none;
}

.glitch-card[data-category="corrupted"] {
    border-color: var(--accent-corruption);
}

.glitch-card[data-category="corrupted"]:hover {
    border-color: var(--accent-corruption);
    box-shadow: 
        0 25px 50px rgba(0, 26, 51, 0.3),
        0 0 50px rgba(107, 70, 193, 0.4),
        inset 0 0 50px rgba(107, 70, 193, 0.05);
    animation: glitch-border 0.5s infinite, glitch-shake 0.1s infinite;
}

.glitch-card[data-category="corrupted"] .tenet-category {
    background: var(--bg-corruption);
    color: var(--accent-corruption);
    border-color: var(--border-corruption);
    animation: glitch-flicker 1.5s infinite;
}

.glitch-text {
    animation: glitch-text 2s infinite;
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-text-1 3s infinite;
    color: var(--accent-corruption);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-text-2 2s infinite;
    color: var(--accent-primary);
    z-index: -2;
}

.glitch-icon {
    color: var(--accent-corruption) !important;
    animation: glitch-icon 1s infinite;
    filter: drop-shadow(0 0 8px rgba(107, 70, 193, 0.5)) !important;
}

.glitch-content p {
    color: var(--text-corruption) !important;
    animation: glitch-content 4s infinite;
}

/* Glitch Animations */
@keyframes glitch-border {
    0%, 100% { border-color: var(--accent-corruption); }
    25% { border-color: var(--accent-primary); }
    50% { border-color: var(--accent-corruption); }
    75% { border-color: var(--text-corruption); }
}

@keyframes glitch-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes glitch-lines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes glitch-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-0.5px); }
}

@keyframes glitch-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
    75% { opacity: 0.9; }
}

@keyframes glitch-text {
    0%, 100% { 
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% { 
        transform: translate(-1px, 1px);
        filter: hue-rotate(90deg);
    }
    40% { 
        transform: translate(-1px, -1px);
        filter: hue-rotate(180deg);
    }
    60% { 
        transform: translate(1px, 1px);
        filter: hue-rotate(270deg);
    }
    80% { 
        transform: translate(1px, -1px);
        filter: hue-rotate(360deg);
    }
}

@keyframes glitch-text-1 {
    0%, 100% { 
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% { 
        clip-path: inset(0 0 90% 0);
        transform: translate(-2px, 0);
    }
    40% { 
        clip-path: inset(80% 0 0 0);
        transform: translate(2px, 0);
    }
    60% { 
        clip-path: inset(0 0 70% 0);
        transform: translate(-1px, 0);
    }
    80% { 
        clip-path: inset(60% 0 0 0);
        transform: translate(1px, 0);
    }
}

@keyframes glitch-text-2 {
    0%, 100% { 
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    10% { 
        clip-path: inset(10% 0 80% 0);
        transform: translate(1px, 0);
    }
    30% { 
        clip-path: inset(70% 0 10% 0);
        transform: translate(-1px, 0);
    }
    50% { 
        clip-path: inset(20% 0 60% 0);
        transform: translate(2px, 0);
    }
    70% { 
        clip-path: inset(50% 0 30% 0);
        transform: translate(-2px, 0);
    }
    90% { 
        clip-path: inset(30% 0 50% 0);
        transform: translate(1px, 0);
    }
}

@keyframes glitch-icon {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 0, 64, 0.5));
    }
    25% { 
        transform: scale(1.1) rotate(1deg);
        filter: drop-shadow(0 0 12px rgba(255, 0, 64, 0.8));
    }
    50% { 
        transform: scale(0.9) rotate(-1deg);
        filter: drop-shadow(0 0 6px rgba(255, 0, 64, 0.3));
    }
    75% { 
        transform: scale(1.05) rotate(0.5deg);
        filter: drop-shadow(0 0 10px rgba(255, 0, 64, 0.6));
    }
}

@keyframes glitch-content {
    0%, 100% { opacity: 1; }
    90% { opacity: 1; }
    93% { opacity: 0.6; }
    96% { opacity: 1; }
    99% { opacity: 0.8; }
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.loading.visible {
    opacity: 1;
    transform: translateY(0);
}