/* Styles spécifiques à la page d'accueil */

/* Hero Section */
.hero-pattern {
    position: relative;
    overflow: hidden;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        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;
    opacity: 0.5;
}

.hero-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Carousel des entreprises */
.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: carousel 30s linear infinite;
}

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

/* Section Mission */
.mission-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mission-card::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;
}

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

/* Section Programmes */
.program-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.program-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Section Actualités */
.news-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card img {
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 10, 10, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover::before {
    opacity: 1;
}

/* Section Partenaires */
.partner-logo {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 0, 0, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.partner-logo:hover::before {
    transform: translateX(100%);
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: var(--neon-glow);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-pattern::before {
        background-size: 15px 15px;
    }

    .carousel-track {
        animation-duration: 25s;
    }

    .mission-card,
    .program-card,
    .news-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-pattern::before {
        background-size: 10px 10px;
    }

    .carousel-track {
        animation-duration: 20s;
    }

    .mission-card,
    .program-card,
    .news-card {
        margin-bottom: 1rem;
    }

    .grid-cols-12 {
        grid-template-columns: 1fr;
    }

    .col-span-12 {
        grid-column: span 1;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .h-64 {
        height: 48px;
    }

    .h-full {
        height: auto;
    }
}

@media (max-width: 640px) {
    .hero-pattern::before {
        background-size: 8px 8px;
    }

    .carousel-track {
        animation-duration: 15s;
    }

    .mission-card,
    .program-card,
    .news-card {
        margin-bottom: 0.75rem;
    }

    .h-48 {
        height: 32px;
    }
}

/* Ajustements des images de la grille */
@media (max-width: 768px) {
    .grid-cols-2 img {
        height: 200px;
    }

    .h-full img {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .grid-cols-2 img {
        height: 150px;
    }

    .h-full img {
        height: 300px;
    }
}

/* Ajustements du carousel */
@media (max-width: 768px) {
    .carousel-slide {
        min-width: 100%;
    }
}

/* Ajustements des cartes */
@media (max-width: 768px) {
    .card-hover {
        transform: none;
    }

    .card-hover:hover {
        transform: translateY(-2px);
    }
}

/* Ajustements des animations */
@media (prefers-reduced-motion: reduce) {
    .hero-pattern::before,
    .carousel-track,
    .mission-card::before,
    .program-card::after,
    .news-card img,
    .partner-logo::before {
        animation: none;
        transition: none;
    }
}

/* Futuristic Elements */
.futuristic-border {
    position: relative;
}

.futuristic-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glowing Text */
.glow-text {
    text-shadow: 0 0 10px var(--primary),
                 0 0 20px var(--primary),
                 0 0 30px var(--primary);
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 10px var(--primary),
                           0 0 20px var(--primary),
                           0 0 30px var(--primary); }
    50% { text-shadow: 0 0 20px var(--primary),
                      0 0 30px var(--primary),
                      0 0 40px var(--primary); }
} 