/* ========================================
   2EFA CUSTOM STYLES
   ======================================== */

/* ========================================
   FONT FAMILY - CENTURY GOTHIC
   ======================================== */
body, html {
    font-family: 'Century Gothic', 'Arial', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Century Gothic', 'Arial', sans-serif !important;
}

.iptge-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.iptge-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    border-color: rgba(75, 46, 131, 0.35);
}

.iptge-card-media {
    position: relative;
    height: 190px;
}

.iptge-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 400ms ease;
}

.iptge-card:hover .iptge-card-media img {
    transform: scale(1.05);
}

.iptge-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.iptge-card-badge {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(75, 46, 131, 0.92);
    backdrop-filter: blur(6px);
    font-weight: 600;
    font-size: 0.9rem;
}

.iptge-card-body {
    padding: 18px 18px 20px 18px;
}

.iptge-muted {
    color: rgba(15, 23, 42, 0.72);
}

.iptge-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(237, 231, 246, 0.9);
    color: #4B2E83;
}

.iptge-person {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.iptge-person-header {
    position: relative;
    padding: 18px;
    background: linear-gradient(135deg, rgba(75, 46, 131, 0.12), rgba(75, 46, 131, 0.02));
}

.iptge-person-avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(75, 46, 131, 0.28);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.nav-pills .nav-link {
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.78);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-pills .nav-link.active {
    background: #4B2E83;
    border-color: #4B2E83;
    color: #fff;
    box-shadow: 0 14px 30px rgba(75, 46, 131, 0.22);
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: rgba(15, 23, 42, 0.12);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(75, 46, 131, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(75, 46, 131, 0.18);
}

.navbar-nav .nav-link {
    font-family: 'Century Gothic', 'Arial', sans-serif !important;
}

.btn {
    font-family: 'Century Gothic', 'Arial', sans-serif !important;
}

/* ========================================
   ANIMATION SPEED CONTROL
   ======================================== */
/* Ralentir les animations de défilement */
.wow {
    animation-duration: 2s !important; /* Augmenter de 1s à 2s */
}

/* Ralentir spécifiquement les animations de texte */
.carousel-caption h1.wow {
    animation-duration: 2.5s !important;
}

.carousel-caption .btn.wow {
    animation-duration: 2.5s !important;
}

/* Ralentir les animations fadeIn */
.wow.fadeIn {
    animation-duration: 2s !important;
}

.wow.fadeInDown {
    animation-duration: 2.5s !important;
}

.wow.fadeInUp {
    animation-duration: 2.5s !important;
}

/* Ralentir les animations des sections */
.service-item.wow {
    animation-duration: 2s !important;
}

.team-item.wow {
    animation-duration: 2s !important;
}

/* ========================================
   BOOTSTRAP COLOR OVERRIDES
   ======================================== */
.btn-success {
    background-color: #4B2E83 !important;
    border-color: #4B2E83 !important;
}

.btn-success:hover {
    background-color: #3E246E !important;
    border-color: #3E246E !important;
}

.btn-outline-success {
    color: #4B2E83 !important;
    border-color: #4B2E83 !important;
}

.btn-outline-success:hover {
    background-color: #4B2E83 !important;
    border-color: #4B2E83 !important;
    color: white !important;
}

.text-success {
    color: #4B2E83 !important;
}

.bg-success {
    background-color: #4B2E83 !important;
}

.border-success {
    border-color: #4B2E83 !important;
}

/* ========================================
   FOOTER CUSTOMIZATION
   ======================================== */
.footer {
    background-color: #00070d !important; /* Même couleur que navbar-dark */
}

.footer .btn-outline-primary {
    border-color: #4B2E83;
    color: #4B2E83;
}

.footer .btn-outline-primary:hover {
    background-color: #4B2E83;
    color: white;
}

/* ========================================
   NAVBAR SCROLL CUSTOMIZATION
   ======================================== */
.navbar-scroll {
    transition: all 0.3s ease;
    background-color: transparent !important;
    position: relative;
}

/* Navbar link hover effects - Normal state */
.navbar-scroll .navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-scroll .navbar-nav .nav-link:hover {
    color: #4B2E83 !important;
    transform: translateY(-2px);
}

.navbar-scroll .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4B2E83;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-scroll .navbar-nav .nav-link:hover::after,
.navbar-scroll .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-scroll.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-45px);
    margin-top: -10px;
}

/* Navbar scrolled states */
.navbar-scroll.scrolled .navbar-nav .nav-link {
    color: #000 !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-scroll.scrolled .navbar-nav .nav-link:hover,
.navbar-scroll.scrolled .navbar-nav .nav-link.active {
    color: #4B2E83 !important;
    transform: translateY(-2px);
}

.navbar-scroll.scrolled .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4B2E83;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-scroll.scrolled .navbar-nav .nav-link:hover::after,
.navbar-scroll.scrolled .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Force text color override for scrolled navbar */
.navbar-scroll.scrolled.navbar-dark .navbar-nav .nav-link {
    color: #000 !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-scroll.scrolled.navbar-dark .navbar-nav .nav-link:hover,
.navbar-scroll.scrolled.navbar-dark .navbar-nav .nav-link.active {
    color: #4B2E83 !important;
    transform: translateY(-2px);
}

.navbar-scroll.scrolled.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4B2E83;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-scroll.scrolled.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-scroll.scrolled.navbar-dark .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-scroll.scrolled .navbar-brand img {
    filter: none;
}

.navbar-scroll.scrolled .btn-outline-success {
    border-color: #4B2E83;
    color: #4B2E83;
}

.navbar-scroll.scrolled .btn-outline-success:hover {
    background-color: #4B2E83;
    color: white;
}

.navbar-scroll.scrolled .btn-outline-success .btn-sm-square {
    background-color: #4B2E83 !important;
    color: white !important;
}

/* ========================================
   LOGO RESPONSIVE STYLES
   ======================================== */
/* Amélioration de la visibilité du logo */
.navbar-scroll .navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.navbar-scroll .navbar-brand img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Logo sur très grands écrans */
@media (min-width: 1400px) {
    .navbar-scroll .navbar-brand img {
        height: 100px !important;
    }
}

/* Logo sur écrans moyens */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .navbar-scroll .navbar-brand img {
        height: 85px !important;
    }
}

/* Logo sur tablettes */
@media (max-width: 991.98px) and (min-width: 768px) {
    .navbar-scroll .navbar-brand img {
        height: 75px !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */
@media (max-width: 991.98px) {

/* Mobile navbar adjustments */
    .navbar-scroll.scrolled {
        transform: translateY(-10px);
        margin-top: 0px;
    }
    
    .navbar-scroll .navbar-brand img {
        height: 70px !important;
    }
    
    /* Mobile button visibility */
    .navbar-scroll.scrolled .btn-outline-success {
        color: #4B2E83 !important;
        border-color: #4B2E83 !important;
        background-color: white !important;
    }
    
    .navbar-scroll.scrolled .btn-outline-success:hover {
        background-color: #4B2E83 !important;
        color: white !important;
    }
    
    .navbar-scroll.scrolled .btn-outline-success .btn-sm-square {
        background-color: #4B2E83 !important;
        color: white !important;
    }
    
    /* Mobile toggle button visibility */
    .navbar-scroll.scrolled .navbar-toggler {
        border-color: #000 !important;
    }
    
    .navbar-scroll.scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* ========================================
       MOBILE MENU DRAWER
       ======================================== */
    .navbar-collapse {
        position: fixed !important;
        top: 80px;
        right: -200px;
        width: 250px;
        height: auto;
        max-height: calc(100vh - 100px);
       
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1050;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        border-left: 1px solid #555555;
        transform: none;
        color: #ffffff !important;
        border-radius: 8px 0 0 8px;
    }
    
    .navbar-collapse.show {
        right: 0 !important;
        transform: none;
    }
    
    /* Menu Header */
    .navbar-collapse::after {
        content: '';
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        color: #ffffff;
       
        z-index: 10;
        display: block;
    }
    
    /* Close button */
    .navbar-collapse .close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #ffffff;
        cursor: pointer;
        z-index: 11;
    }
    
    
    /* Navigation items */
    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        margin-top: 0;
        padding: 10px 0;
        color: #ffffff !important;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        width: 100%;
        color: #ffffff !important;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 20px !important;
        font-size: 14px;
        font-weight: 500;
        width: 100%;
        text-align: left;
        color: #ffffff !important;
        border: none;
        border-radius: 0;
        margin: 0;
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
        font-weight: 600;
    }
    
    /* Force white color for mobile menu links in all states */
    .navbar-collapse .navbar-nav .nav-link {
        color: #ffffff !important;
    }
    
    .navbar-collapse .navbar-nav .nav-link:hover {
        color: #ffffff !important;
    }
    
    .navbar-collapse .navbar-nav .nav-link.active {
        color: #ffffff !important;
    }
    
    /* Override any other color rules for mobile menu */
    .navbar-collapse .nav-item .nav-link {
        color: #ffffff !important;
    }
    
    .navbar-collapse .nav-item .nav-link:hover {
        color: #ffffff !important;
    }
    
    .navbar-collapse .nav-item .nav-link.active {
        color: #ffffff !important;
    }
    
    /* Force white for all mobile menu text */
    .navbar-collapse * {
        color: #ffffff !important;
    }
    
    .navbar-collapse .nav-link {
        color: #ffffff !important;
    }
    
    /* Force white for all text in mobile menu - more specific */
    .navbar-collapse .navbar-nav .nav-item .nav-link {
        color: #ffffff !important;
    }
    
    .navbar-collapse .navbar-nav .nav-item .nav-link:hover {
        color: #ffffff !important;
    }
    
    .navbar-collapse .navbar-nav .nav-item .nav-link.active {
        color: #ffffff !important;
    }
    
    /* Override any inherited colors */
    .navbar-collapse a {
        color: #ffffff !important;
    }
    
    .navbar-collapse a:hover {
        color: #ffffff !important;
    }
    
    .navbar-collapse a:focus {
        color: #ffffff !important;
    }
    
    .navbar-collapse a:active {
        color: #ffffff !important;
    }
    
    /* Override navbar scrolled rules for mobile menu */
    .navbar-scroll.scrolled .navbar-collapse .navbar-nav .nav-link {
        color: #ffffff !important;
    }
    
    .navbar-scroll.scrolled .navbar-collapse .navbar-nav .nav-link:hover {
        color: #ffffff !important;
    }
    
    .navbar-scroll.scrolled .navbar-collapse .navbar-nav .nav-link.active {
        color: #ffffff !important;
    }
    
    .navbar-scroll.scrolled .navbar-collapse a {
        color: #ffffff !important;
    }
    
    .navbar-scroll.scrolled .navbar-collapse a:hover {
        color: #ffffff !important;
    }
    
    .navbar-scroll.scrolled .navbar-collapse a:focus {
        color: #ffffff !important;
    }
    
    .navbar-scroll.scrolled .navbar-collapse a:active {
        color: #ffffff !important;
    }
    
    /* Overlay when menu is open */
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
        z-index: -1;
        cursor: pointer;
        backdrop-filter: blur(2px);
    }
    
    /* Menu Footer */
    .navbar-collapse .menu-footer {
        position: relative;
        padding: 10px 15px;
        background: #333333;
        border-top: 1px solid #555555;
       
    }
    
    .navbar-collapse .menu-footer .btn {
        width: 100%;
        padding: 8px;
        font-weight: 600;
        border-radius: 6px;
        background: #ffffff;
        border-color: #ffffff;
        color: #333;
        font-size: 14px;
    }
    
    /* ========================================
       MOBILE CAROUSEL ADJUSTMENTS
       ======================================== */
    #home-carousel {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }

    /* Réduire la taille du titre principal sur mobile */
    .carousel-caption h1.display-3 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Faire descendre les boutons du carousel sur mobile */
    .carousel-caption .btn {
        margin-top: 3rem !important;
    }
    
    /* Réduire la taille de la section Call to Action sur mobile */
    .display-4 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Réduire l'espacement de la section Call to Action sur mobile */
    .container-fluid.bg-success {
        padding-top: 1 rem !important;
        padding-bottom: 1 rem !important;
    }
    
    /* Réduire la taille du texte de description */
    .container-fluid.bg-success p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
        /* Mettre les boutons sur la même ligne sur mobile avec flexbox */
    .col-lg-6 .h-100 {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Conteneur flex pour les boutons */
    .col-lg-6 .h-100 .btn {
        display: inline-block !important;
        margin-right: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }
    
    /* Wrapper pour les boutons */
    .col-lg-6 .h-100 .btn:first-child {
        margin-right: 0.5rem !important;
    }
    
    .col-lg-6 .h-100 .btn:last-child {
        margin-right: 0 !important;
    }
    
    /* Forcer l'alignement horizontal des boutons */
    .col-lg-6 .h-100 .btn.me-3,
    .col-lg-6 .h-100 .btn.me-3 + .btn {
        display: inline-block !important;
        width: auto !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Conteneur flex pour aligner les boutons horizontalement */
    .col-lg-6 .h-100 {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .col-lg-6 .h-100 .btn {
        align-self: flex-start !important;
    }
}

/* ========================================
   LOADING SPINNER CUSTOMIZATION
   ======================================== */
#spinner {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
}

#spinner .text-center img {
    animation: pulse 1.5s ease-in-out infinite;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

#spinner .spinner-border {
    border-width: 3px;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   BODY SCROLL CONTROL
   ======================================== */
body.menu-open {
    overflow: hidden;
    overflow-x: hidden;
}

/* ========================================
   TOP BAR HIDE ON SCROLL
   ======================================== */
.top-bar {
    transition: all 0.3s ease;
}

.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}