@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #FF0000;
    --secondary: #000000;
    --text-light: rgba(255, 255, 255, 0.8);
    --neon-glow: 0 0 10px rgba(255, 0, 0, 0.5),
                 0 0 20px rgba(255, 0, 0, 0.3),
                 0 0 30px rgba(255, 0, 0, 0.1);
}

* {
    font-family: 'League Spartan', sans-serif;
}

body {
    background-color: var(--secondary);
    color: white;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), #FF3333, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-x 15s ease infinite;
    text-shadow: var(--neon-glow);
}

.hero-pattern {
    background-image: 
        linear-gradient(45deg, rgba(255, 0, 0, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 0, 0, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 0, 0, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 0, 0, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: pattern-move 20s linear infinite;
}

@keyframes pattern-move {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}

.card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 0, 0, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.glow {
    transition: all 0.3s ease;
}

.glow:hover {
    box-shadow: var(--neon-glow);
}

@keyframes gradient-x {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.carousel {
    animation: scroll 40s linear infinite;
}

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

/* Filtres */
.filter-button {
    transition: all 0.3s ease;
}

.filter-button.active {
    background-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.filter-button:not(.active):hover {
    background-color: rgba(255, 0, 0, 0.1);
}

/* Formulaires */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

/* Navigation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(0);
}

/* Cartes */
.card {
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.1);
}

/* Boutons */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de grille futuriste */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

/* Effet de scan */
.scan-effect {
    position: relative;
    overflow: hidden;
}

.scan-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: var(--neon-glow);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Responsive Design Global */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .text-xl {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .text-xl {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
    }

    .card {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .text-xl {
        font-size: 0.875rem;
    }

    .btn-primary {
        width: 100%;
    }
}

/* Amélioration de la navigation mobile */
@media (max-width: 768px) {
    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-link::before,
    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background-color: rgba(255, 0, 0, 0.1);
    }
}

/* Ajustements des grilles */
@media (max-width: 1024px) {
    .grid {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .grid {
        gap: 0.75rem;
    }
}

/* Ajustements des marges et paddings */
@media (max-width: 768px) {
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .pt-32 {
        padding-top: 6rem;
    }
}

/* Ajustements des images */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .object-cover {
        object-position: center;
    }
}

/* Ajustements des formulaires */
@media (max-width: 768px) {
    .form-input,
    .form-textarea {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
}

/* Ajustements des animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 