/* Custom Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #F9DC00;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4bb00;
}

/* Navigation Transition */
#navbar {
    transition: all 0.3s ease;
}



/* Carousel Styles */
#carousel-track {
    cursor: grab;
}

#carousel-track:active {
    cursor: grabbing;
}

/* Form Focus Effects */
input:focus,
textarea:focus,
select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 220, 0, 0.25);
}

/* Button Hover Effects */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after {
    width: 300px;
    height: 300px;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 300px;
}

/* Image Hover Effects */
.group:hover img {
    filter: brightness(1.1);
}

/* Stats Counter Animation */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
    animation: statFadeIn 0.6s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes statFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1);
    }
}

.hero-word {
    color: white;
}

@keyframes highlightWord {
    0% {
        color: white;
    }

    10% {
        color: #facc15;
    }

    /* jaune */
    30% {
        color: #facc15;
    }

    40% {
        color: white;
    }

    100% {
        color: white;
    }
}

.word1 {
    animation: highlightWord 5s infinite;
}

.word2 {
    animation: highlightWord 5s infinite;
    animation-delay: 1.8s;
}

.word3 {
    animation: highlightWord 5s infinite;
    animation-delay: 3.6s;
}

.join-team-animate {
    animation: subtleZoom 3s ease-in-out infinite;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h3 {
        font-size: 1.75rem !important;
    }
}

/* Loading State for Forms */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}


@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== Construction Style Fonts ===== */

/* Logo EDCP */
#brand-title {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

/* Sous titre */
#brand-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-size: 1rem;
}

/* Navigation */
#navbar .nav-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 1px;
    font-weight: 500;
}

html,
body {
    overflow-x: hidden;
}

/* Bouton contact */
#navbar .nav-cta {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== Global Font ===== */
html,
body {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}