/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Active nav link */
.nav-link.active {
    color: #1E3A8A;
    font-weight: 600;
}

/* Form styling */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Hero section with background image */
.hero-slide {
    transition: all 1s ease;
    background-size: cover;
    background-position: center;
}

/* Service card effect */

.service-card {
    transform: translateY(0);
    transition: all 0.6s ease;
    border: 1px solid white;
}

.service-card:hover{
    transform: translateY(50px);
    border: 1px solid yellow;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Gradient background registrationForm*/
.gradient-bg {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

#registrationForm .payment-option {
    transition: all 0.3s ease;
}
#registrationForm .payment-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
#registrationForm .selected-payment {
    border: 2px solid #4f46e5;
    background-color: #eef2ff;
}
#registrationForm .receipt {
    background: repeating-linear-gradient(
        0deg,
        #f8fafc,
        #f8fafc 20px,
        #e2e8f0 21px,
        #e2e8f0 22px
    );
}
#registrationForm .floating-label {
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
#registrationForm input:focus + #registrationForm .floating-label,
#registrationForm input:not(:placeholder-shown) + #registrationForm .floating-label {
    transform: translateY(-120%) scale(0.9);
    background-color: white;
    padding: 0 4px;
    color: #4f46e5;
}
/* Custom CSS for dropdown and mobile menu */
.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 0.375rem;
}

.language-selector:hover .language-dropdown {
    display: block;
}

#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-open {
    transform: translateX(0);
}

.mobile-menu-closed {
    transform: translateX(100%);
}

/* Active nav link */
.nav-link.active {
    color: #1a365d;
    border-color: #1a365d;
}

/* Top info bar */
.top-info-bar {
    color: white;
    font-size: 0.875rem;
}

/* WhatsApp button */

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Project card */
.project-card {
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
}


/* Counter */
.counter {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

/* Map */
.map-container {
    height: 400px;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* ----------- */

.formation-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}
.formation-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.progress-ring__circle {
    transition: stroke-dashoffset 0.5s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.pagination-btn.active {
    background-color: #4f46e5;
    color: white;
}

.team-member:hover .team-img {
    transform: scale(1.05);
}
.team-img {
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 32px;
    height: calc(100% - 32px);
    width: 2px;
    background: #1e40af;
}
@media (min-width: 1024px) {
    .timeline-item:not(:last-child)::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


.projet-page .project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.projet-page .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.projet-page .filter-btn.active {
    background-color: #1e40af;
    color: white;
}

.projet-page .project-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
@media (min-width: 768px) {
    .projet-page .project-image {
        height: 250px;
    }
}