/* Base Styles */
:root {
    --primary-color: #8deeb2;
    --secondary-color: #222222;
    --accent-color: #ffffff;
    --light-color: #f5f5f5;
    --dark-color: #1a1a1a;
    --text-color: #ffffff;
    --text-light: #cccccc;
    --success-color: #8deeb2;
    --border-radius: 6px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat", sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    margin: 5px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.primary-btn:hover {
    background-color: #6ad497;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 2rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    font-size: 1.5rem;
    margin-left: 1rem;
    color: var(--text-color);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 110px 0 30px 0;
    min-height: unset;
    background: none;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.2em;
    font-weight: 300;
}

.cta-buttons {
    margin-top: 1.2em;
}

@media (max-width: 768px) {
    .hero {
        padding: 25px 0 15px 0;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }
}

/* About Section */
.about-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 340px;
    margin-right: 3rem;
    justify-content: center;
    text-align: justify;
}

.about-image {
    flex: 1;
    display: flex;
    align-items: center;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.slideshow-image {
    position: absolute;
    border: 1px dashed var(--primary-color);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
    opacity: 1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
    transition: transform 0.3s ease;
}

.about-text p:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.about-text p:hover {
    transform: translateX(5px);
}

.about-text p:hover:before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    box-shadow: var(--box-shadow);
}

/* Event Section */
.event {
    background-color: var(--secondary-color);
}

.event-details {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.event-card {
    background-color: var(--dark-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(141, 238, 178, 0.2);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(141, 238, 178, 0.15);
}

.event-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-description {
    margin-top: 3rem;
}

.event-description p {
    margin-bottom: 1rem;
}

/* Register Section */
.register {
    background-color: var(--dark-color);
}

.register-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(141, 238, 178, 0.2);
}

.register-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.form-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.register-cta {
    text-align: center;
    max-width: 700px;
    margin: 1em auto;
    background-color: rgba(141, 238, 178, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(141, 238, 178, 0.2);
}

.register-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#registration-form button {
    width: 100%;
    padding: 12px;
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--secondary-color);
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--dark-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(141, 238, 178, 0.2);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(141, 238, 178, 0.15);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(141, 238, 178, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-light);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.5rem;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(141, 238, 178, 0.1);
    color: var(--text-light);
}

/* Navigation mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        width: 100%;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* Add monospace font for event name */
.event-name {
    font-family: "Roboto Mono", "Consolas", "Menlo", "Monaco", "Liberation Mono",
    monospace;
    /* letter-spacing: 0.02em; */
    font-weight: bolder;
    color: var(--success-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(141, 238, 178, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(141, 238, 178, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(141, 238, 178, 0);
    }
}

.hero h2,
.hero .subtitle,
.hero .cta-buttons {
    animation: fadeIn 1s ease-out forwards;
}

.hero .subtitle {
    animation-delay: 0.3s;
}

.hero .cta-buttons {
    animation-delay: 0.6s;
}

.primary-btn:hover {
    animation: pulseGlow 1.5s infinite;
}

/* Animation pour les particules */
@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    25% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.3;
    }
    75% {
        opacity: 0.5;
    }
}

.hero {
    overflow: hidden;
    position: relative;
}

.particle {
    position: absolute;
    pointer-events: none;
}

/* Scroll Reveal Animation */
.animated {
    animation: fadeIn 0.8s ease-out forwards;
}

section {
    opacity: 0;
}

section.animated {
    opacity: 1;
}

/* Media Queries */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .social-links {
        margin-top: 1rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .event-card,
    .contact-item {
        min-width: 100%;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn {
        display: block;
        width: 100%;
    }
}

/* Placeholder for images not yet available */
.placeholder-image {
    background-color: #333;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    border: 1px dashed var(--primary-color);
}
