/* ===== VARIABLES CSS TYVA ===== */
:root {
    /* Gradient signature TYVA */
    --tyva-gradient: linear-gradient(
        135deg,
        #ff4fd8 0%,
        #9b6bff 25%,
        #4ea8ff 50%,
        #3ed6c7 75%,
        #44d26f 100%
    );

    /* Couleurs principales */
    --tyva-bg-1: #0c0f16;
    --tyva-bg-2: #1a0c1a;
    --tyva-text: #ffffff;
    --tyva-text-soft: #d9d9d9;
    --tyva-text-medium: #8a8a8a;

    /* Couleurs du gradient */
    --tyva-pink: #ff4fd8;
    --tyva-purple: #9b6bff;
    --tyva-blue: #4ea8ff;
    --tyva-turquoise: #3ed6c7;
    --tyva-green: #44d26f;
}

/* ===== RESET & GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "Inter", "Nunito", sans-serif;
    line-height: 1.6;
    color: var(--tyva-text);
    background:
        radial-gradient(
            circle at 20% 20%,
            #3b0d3f,
            transparent 60%
        ),
        radial-gradient(
            circle at 80% 80%,
            #001a33,
            transparent 60%
        ),
        var(--tyva-bg-1);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--tyva-text);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--tyva-gradient);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(12, 15, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(78, 168, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    background: var(--tyva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--tyva-text-soft);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--tyva-text);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--tyva-gradient);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--tyva-text);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--tyva-gradient);
    color: var(--tyva-text);
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12), inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 79, 216, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 54px;
    margin-bottom: 20px;
    font-weight: 700;
    animation: slideDown 0.8s ease;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: slideUp 0.8s ease;
}

.cta-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--tyva-text);
    border: 2px solid var(--tyva-text);
    padding: 14px 35px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--tyva-gradient);
    color: var(--tyva-text);
    box-shadow: 0 0 15px rgba(155, 107, 255, 0.17);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(155, 107, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tyva-text);
    border: 2px solid var(--tyva-text);
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.button-center {
    text-align: center;
    margin-top: 30px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--tyva-gradient);
    color: var(--tyva-text);
    padding: 80px 20px;
    text-align: center;
    margin: 0 0 60px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), inset 0 -10px 20px rgba(0, 0, 0, 0.15);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(78, 168, 255, 0.2);
    border-radius: 50%;
    filter: blur(60px);
}

.page-header h1 {
    font-size: 44px;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-bottom: 60px;
}

.about-preview,
.featured-events {
    margin-bottom: 60px;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(62, 214, 199, 0.1);
}

.about-preview h2,
.featured-events h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--tyva-text);
    font-weight: 700;
}

.about-preview p {
    text-align: center;
    font-size: 16px;
    color: var(--tyva-text-soft);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    font-size: 32px;
    background: var(--tyva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
}

.content-section p {
    font-size: 16px;
    color: var(--tyva-text-soft);
    line-height: 1.8;
    margin-bottom: 15px;
}

.values-list {
    list-style: none;
    margin-top: 20px;
}

.values-list li {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--tyva-turquoise);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    color: var(--tyva-text-soft);
}

/* ===== ACHIEVEMENTS ===== */
.achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(155, 107, 255, 0.4);
    color: var(--tyva-text);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(155, 107, 255, 0.17);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 50px rgba(155, 107, 255, 0.35);
}

.achievement-card h3 {
    font-size: 42px;
    margin-bottom: 10px;
    background: var(--tyva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-card p {
    color: var(--tyva-text-soft);
    font-size: 16px;
}

/* ===== TEAM GRID ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(78, 168, 255, 0.35);
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 0 15px rgba(78, 168, 255, 0.15);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(78, 168, 255, 0.3);
}

.team-card h3 {
    background: var(--tyva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 24px;
}

.team-card p {
    color: var(--tyva-text-soft);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0px;
}

.team-card em {
    color: var(--tyva-text-medium);
    font-size: 12px;
    font-style: italic;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 10%;
    object-fit: contain;
    margin-bottom: 10px;
    background-color: #ffffff;
    border: 3px solid var(--tyva-gradient);
    box-shadow: 0 0 15px rgba(155, 107, 255, 0.3);
}

/* ===== EVENTS GRID ===== */
.events-grid,
.events-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(62, 214, 199, 0.35);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(62, 214, 199, 0.15);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(62, 214, 199, 0.3);
}

.event-card-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-date {
    background: var(--tyva-gradient);
    color: var(--tyva-text);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(155, 107, 255, 0.15);
}

.event-category {
    display: inline-block;
    background: rgba(62, 214, 199, 0.2);
    color: var(--tyva-turquoise);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    border: 1px solid rgba(62, 214, 199, 0.4);
}

.event-card h3 {
    color: var(--tyva-text);
    margin-bottom: 10px;
    font-weight: 700;
}

.event-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.event-card p {
    color: var(--tyva-text-soft);
    font-size: 14px;
    margin-bottom: 15px;
}

.event-card .btn-primary {
    width: 100%;
    margin-top: auto;
}

.event-card .btn-primary {
    width: 100%;
}

/* ===== EVENTS FILTERS ===== */
.events-filters {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(62, 214, 199, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--tyva-text);
    box-shadow: 0 0 15px rgba(62, 214, 199, 0.1);
}

.filter-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--tyva-text);
    background-color: transparent;
    color: var(--tyva-text);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--tyva-gradient);
    box-shadow: 0 0 30px rgba(155, 107, 255, 0.4);
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info,
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 0 15px rgba(78, 168, 255, 0.1);
}

.contact-info h2,
.contact-form h2 {
    background: var(--tyva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-weight: 700;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    color: var(--tyva-text);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-item p {
    color: var(--tyva-text-soft);
}

.info-item a {
    color: var(--tyva-blue);
    font-weight: 600;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--tyva-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--tyva-text);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tyva-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(78, 168, 255, 0.2);
}

.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 12px;
    display: none;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: rgba(68, 210, 111, 0.2);
    border: 1px solid rgba(68, 210, 111, 0.4);
    color: var(--tyva-green);
}

.form-message.error {
    display: block;
    background: rgba(255, 79, 216, 0.2);
    border: 1px solid rgba(255, 79, 216, 0.4);
    color: var(--tyva-pink);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(12, 15, 22, 0.6);
    backdrop-filter: blur(10px);
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -10px 20px rgba(78, 168, 255, 0.1);
    color: var(--tyva-text);
    padding: 50px 20px 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    background: var(--tyva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    color: var(--tyva-text-soft);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--tyva-text-soft);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--tyva-blue);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(12, 15, 22, 0.95);
        backdrop-filter: blur(10px);
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero {
        padding: 60px 20px;
        margin-bottom: 40px;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 32px;
    }

    .page-header {
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    /* About & Events Sections */
    .about-preview,
    .featured-events {
        padding: 40px 20px;
        margin-bottom: 40px;
        border-radius: 15px;
    }

    .about-preview h2,
    .featured-events h2 {
        font-size: 28px;
    }

    /* Content Sections */
    .content-section h2 {
        font-size: 24px;
    }

    /* Team Grid */
    .team-grid,
    .events-grid,
    .events-list {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        padding: 30px;
        border-radius: 20px;
    }

    /* Achievements */
    .achievements {
        grid-template-columns: 1fr;
    }

    /* Filter Buttons */
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Footer */
    .footer-content {
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        height: 60px;
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero {
        padding: 40px 15px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header {
        padding: 30px 15px;
    }

    .btn-primary,
    .btn-secondary,
    .cta-button {
        width: 100%;
        padding: 12px 20px;
    }

    .event-card-content .btn-primary {
        width: 100%;
    }

    .about-preview,
    .featured-events,
    .contact-info,
    .contact-form {
        padding: 25px 15px;
    }
}

/* ===== WORD CLOUD STYLES ===== */
.word-cloud-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: rgba(156, 107, 255, 0.05);
    border-radius: 15px;
    margin: 40px 0;
}

.word-cloud {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 500px;
    max-height: 500px;
}

.cloud-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(32px, 8vw, 56px);
    font-weight: 900;
    background: var(--tyva-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 10;
    white-space: nowrap;
}

.cloud-word {
    position: absolute;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size: clamp(12px, 2vw, 22px);
    padding: 4px 8px;
    line-height: 1;
}

.cloud-word:hover {
    transform: translate(-50%, -50%) scale(1.2);
    filter: brightness(1.2);
}

.cloud-word.word-1 { color: #ff4fd8; }
.cloud-word.word-2 { color: #9b6bff; }
.cloud-word.word-3 { color: #4ea8ff; }
.cloud-word.word-4 { color: #3ed6c7; }
.cloud-word.word-5 { color: #44d26f; }
.cloud-word.word-6 { color: #ff4fd8; }
.cloud-word.word-7 { color: #9b6bff; }
.cloud-word.word-8 { color: #4ea8ff; }
.cloud-word.word-9 { color: #3ed6c7; }
.cloud-word.word-10 { color: #44d26f; }
.cloud-word.word-11 { color: #ff4fd8; }
.cloud-word.word-12 { color: #9b6bff; }
.cloud-word.word-13 { color: #4ea8ff; }
.cloud-word.word-14 { color: #3ed6c7; }
.cloud-word.word-15 { color: #44d26f; }

@media (max-width: 768px) {
    .word-cloud-container {
        padding: 40px 20px;
    }

    .word-cloud {
        max-width: 350px;
        max-height: 350px;
    }
}

@media (max-width: 480px) {
    .word-cloud-container {
        padding: 30px 15px;
    }

    .word-cloud {
        max-width: 280px;
        max-height: 280px;
    }
}
