.contact-orange-btn {
    background: #f59e0b !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
    transition: background 0.3s, color 0.3s;
}
.contact-orange-btn:hover, .contact-orange-btn:focus {
    background: #d39e00 !important;
    color: #fff !important;
}

.text-orange {
    color: #f59e0b !important;
}

/* Styles pour les projets phares CIS */
.cis-features h6 {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.cis-features .feature-item {
    background: rgba(245, 158, 11, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.cis-features .feature-item:hover {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
    transform: translateX(5px);
}

.cis-features .feature-item i {
    color: #f59e0b;
    font-size: 1rem;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.cis-features .feature-item:hover i {
    transform: scale(1.2);
}

.cis-features .feature-item span {
    color: #444;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

.cis-type-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.cis-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.cis-type-card .flag-image {
    transition: transform 0.3s ease;
}

.cis-type-card:hover .flag-image {
    transform: scale(1.05);
}
/*Modification Caleb 09/8/2025, services division des domaines*/
.services-content-icon .services-domain-meta {
    color: #6c757d;
    font-size: 0.95rem;
    transition: color 0.5s;
}

.services-item:hover .services-content-icon .services-domain-meta {
    color: var(--bs-white);
}
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

/* Button Sizes */
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

/* Square Button Common Styles */
.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Topbar ***/
.topbar .top-info {
    letter-spacing: 1px;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

#note {
    width: 500px;
    overflow: hidden;
}

#note small {
    position: relative;
    display: inline-block;
    animation: mymove 5s infinite;
    animation-timing-function: all;
}

@keyframes mymove {
    from { left: -100%; }
    to { left: 100%; }
}


/*** Navbar ***/
.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 10px;
    color: black;
    font-size: 18px;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #d39e00;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Dropdown Menu */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

/* Fixed Navbar Styles */
.fixed-top {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar {
        background-color: white !important;
    }

    .navbar .navbar-nav {
        background-color: white;
        padding: 10px 0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .navbar .navbar-nav .nav-link {
        color: #333 !important;
        font-weight: 500;
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link.active {
        color: #d39e00;
        background-color: #f8f9fa;
    }

    .navbar-toggler {
        border: 2px solid #333;
        padding: 8px 12px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .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%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Assurer que le logo est visible */
    .navbar-brand img {
        max-height: 50px;
        width: auto;
    }

    /* Améliorer l'espacement sur mobile */
    .navbar-collapse {
        padding: 10px 0;
    }

    /* Style pour les liens actifs sur mobile */
    .navbar-nav .nav-link.active {
        color: var(--bs-primary) !important;
        font-weight: 600;
        background-color: rgba(0, 123, 255, 0.1);
    }
}


/*** Carousel ***/
.carousel-item {
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
}

.carousel-caption {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 35px auto;
}

/* Carousel Controls */
.carousel-control-prev {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--bs-primary);
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

.carousel-control-next {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--bs-primary);
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--bs-primary);
    transition: .8s;
}

/* Carousel Buttons */
.carousel-caption .carousel-content a button.carousel-content-btn1 {
    background: var(--bs-primary);
    color: var(--bs-dark);
    opacity: 1;
    border: 0;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-block;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--bs-primary);
    color: var(--bs-white);
    opacity: 1;
    border: 0;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-block;
}

.carousel-caption .carousel-content a button.carousel-content-btn1:hover {
    background: var(--bs-primary);
    color: #ffffff;
    transition: 1s;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    transition: 1s;
}

/* S'assurer que les boutons restent sur la même ligne */
.carousel-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.carousel-buttons a {
    flex-shrink: 0;
}

.carousel-buttons .btn {
    min-width: auto;
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Carousel Indicators */
#carouselId .carousel-indicators li {
    width: 30px;
    height: 10px;
    background: var(--bs-primary);
    margin: 10px;
    border-radius: 30px;
    opacity: 1;
}

#carouselId .carousel-indicators li:hover {
    background: var(--bs-secondary);
    opacity: 1;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}

/* Responsive Carousel */
@media (max-width: 992px) {
    .carousel-item {
        position: relative;
    }
    
    .carousel-item img {
        height: auto;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 40px !important;
    }

    .carousel-item p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-item img {
        height: auto;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 28px !important;
    }

    .carousel-item p {
        font-size: 14px !important;
    }
    
    /* Boutons sur la même ligne même sur mobile */
    .carousel-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        display: flex !important;
    }
    
    .carousel-buttons .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        white-space: nowrap;
        display: inline-block !important;
    }
    
    .carousel-buttons a {
        display: inline-block !important;
        flex-shrink: 0;
    }
    
    /* Faire monter le carousel sur mobile */
    .container-fluid.px-0 {
        margin-top: -30px;
    }
    
    #carouselId {
        margin-top: -20px;
    }
}

/*** Services ***/
.services .services-item {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
}

.services-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: var(--bs-primary); /* Couleur de fond lors du hover */
    transition: 0.5s;
    z-index: 1;
}


.services-item:hover .services-content::after {
    height: 100%;
    opacity: 1;
}

.services-item .services-content-icon {
    position: relative;
    z-index: 2;
    text-align: center;
}

/*Modification Caleb 09/8/2025, survol page accueil*/
/* .services-item .services-content-icon p {
    transition: 0.5s;
    color: black;
} */
.services-item .services-content-icon i {
    transition: 0.5s;
    color: var(--bs-primary);
}

/* Quand on survole la carte, on change la couleur du texte et de l’icône */
/*Modification Caleb 09/8/2025, survol page accueil*/
.services-item:hover .services-content-icon p {
    color: var(--bs-white);
}
.services-item:hover .services-content-icon i {
    color: #f59e0b;
    /* color:var(--bs-white); */
}

/* (optionnel) Changer la couleur globale au hover si besoin */
.services-item:hover {
    color: var(--bs-primary) !important;
}


/*** Project ***/
.project-img {
    position: relative;
    padding: 15px;
}

.project-img::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    background: #d39e00;
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-img::after {
    content: "";
    width: 150px;
    height: 150px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--bs-primary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.project-content a {
    display: inline-block;
    padding: 20px 25px;
    background: var(--bs-primary);
    border-radius: 10px;
}

.project-item:hover .project-content {
    opacity: 1;
    transition: .5s;
}

.project-item:hover .project-img::before,
.project-item:hover .project-img::after {
    opacity: 0;
}


/*** Blog ***/
.blog-item .blog-btn {
    z-index: 2;
}

.blog-btn .blog-btn-icon {
    height: 50px;
    position: relative;
    overflow: hidden;
}

.blog-btn-icon .blog-icon-2 {
    display: flex;
    position: absolute;
    top: 6px;
    left: -140px;
}

.blog-btn-icon:hover .blog-icon-2 {
    transition: 1s;
    left: 5px;
    top: 6px;
    padding-bottom: 5px;
}

.blog-icon-1 {
    position: relative;
    top: -4px;
}

.blog-btn-icon:hover .blog-icon-1 {
    top: 0;
    right: -140px;
    transition: 1s;
}


/*** Team ***/
.team-item {
    border-top: 30px solid var(--bs-primary) !important;
    background: rgba(239, 239, 241, 0.8);
}

.team-content::before {
    height: 200px;
    display: block;
    content: "";
    position: relative;
    top: -101px;
    background: var(--bs-primary);
    clip-path: polygon(50% 50%, 100% 50%, 50% 100%, 0% 50%);
    padding: 60px;
    opacity: 1;
}

.team-img-icon {
    position: relative;
    margin-top: -200px;
    padding: 30px;
    padding-bottom: 0;
}

.team-img {
    border: 15px solid var(--bs-white);
}

.team-img img {
    border: 10px solid var(--bs-primary);
    transition: .5s;
}

.team-item:hover h4 {
    color: var(--bs-primary);
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.05);
    border: 10px solid var(--bs-white);
}

/* Team Carousel */
.team-carousel .owl-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 50px;
    display: flex;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    width: 56px;
    height: 56px;
    border-radius: 56px;
    margin-left: 15px;
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

@media (max-width: 992px) {
    .team-carousel {
        margin-top: 3rem;
    }

    .team-carousel .owl-nav {
        top: -85px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-left: -15px;
    }
}


/*** Testimonial ***/
.testimonial-item {
    background: #e3f0eb;
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #c1dad0;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Contact ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgb(240, 246, 244), rgba(230, 250, 245, .3)), url(../img/background.jpg) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.contact-map,
.contact-form {
    background: var(--bs-primary);
}


/*** Footer ***/
.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    transition: .5s;
}

.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    letter-spacing: 1px;
}

.footer .hightech-link a:hover {
    background: var(--bs-primary);
    border: 0;
}

.btn-align-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Styles personnalisés pour la pagination */
.pagination {
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-item:first-child {
    margin-left: 0;
}

.pagination .page-item:last-child {
    margin-right: 0;
}

.pagination .page-link {
    border: none;
    padding: 12px 20px;
    color: #666;
    background-color: #fff;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination .page-link:hover {
    background-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
    color: #adb5bd;
    transform: none;
    box-shadow: none;
}

/* Animation pour les boutons de pagination */
.pagination .page-link {
    position: relative;
    overflow: hidden;
}

.pagination .page-link::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: left 0.5s;
}

.pagination .page-link:hover::before {
    left: 100%;
}

/* Responsive pour la pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .pagination .page-item {
        margin: 2px;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .pagination .page-link:not(:only-child) {
        display: none;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link,
    .pagination .page-item.active .page-link {
        display: inline-block;
    }
    
    /* Carousel plein écran sur mobile */
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-item img {
        height: auto;
        object-fit: cover;
    }
    
    /* Boutons sur la même ligne même sur très petit écran */
    .carousel-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px;
        display: flex !important;
    }
    
    .carousel-buttons .btn {
        font-size: 0.7rem;
        padding: 5px 10px;
        white-space: nowrap;
        min-width: auto;
        display: inline-block !important;
    }
    
    .carousel-buttons a {
        display: inline-block !important;
        flex-shrink: 0;
    }
    

}

/* Styles pour les informations de pagination */
.pagination-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 10px 20px;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination-info small {
    font-weight: 500;
    color: #6c757d;
}

/* Animation d'entrée pour la pagination */
.pagination {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects améliorés */
.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Styles pour les ellipses */
.pagination .page-item.disabled .page-link {
    background: transparent;
    border: none;
    color: #6c757d;
    font-weight: bold;
    padding: 12px 8px;
}

.pagination .page-item.disabled .page-link:hover {
    background: transparent;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Styles pour la pagination personnalisée */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    border: 1px solid #dee2e6;
    color: #495057;
    background-color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
}

.pagination .page-item:not(:first-child) .page-link {
    margin-left: -1px;
}

/* Styles spécifiques pour l'admin */
.admin-card .pagination .page-link {
    border-color: #e3e6f0;
    color: #5a5c69;
}

.admin-card .pagination .page-link:hover {
    background-color: #eaecf4;
    border-color: #e3e6f0;
    color: #5a5c69;
}

.admin-card .pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

/* Animation pour les boutons de pagination */
.pagination .page-link {
    position: relative;
    overflow: hidden;
}

.pagination .page-link::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: left 0.5s;
}

.pagination .page-link:hover::before {
    left: 100%;
}

/* Responsive pour la pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding: 0.5rem 1rem;
    }
}

/* Styles pour les informations de pagination */
.pagination-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
}

.pagination-info small {
    font-weight: 500;
    color: #6c757d;
}

/* Animation d'apparition pour la pagination */
.pagination {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les ellipses (...) */
.pagination .page-item.disabled .page-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
    color: #6c757d;
    font-weight: 600;
}

/* Hover effect amélioré */
.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Styles pour les icônes dans la pagination */
.pagination .page-link i {
    transition: transform 0.2s ease;
}

.pagination .page-link:hover i {
    transform: scale(1.1);
}

/* Styles pour la pagination dans les cartes admin */
.admin-card .pagination {
    background: transparent;
    border: none;
    box-shadow: none;
}

.admin-card .pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 2px;
}

/* Styles pour les états de chargement */
.pagination.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pagination.loading .page-link {
    cursor: wait;
}

/* Styles pour les messages d'information */
.pagination-message {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.pagination-message.info {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-color: #81c784;
}

.pagination-message.warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border-color: #ffb74d;
}

/* Animations CSS pour CIS CONGO */

/* Animation d'entrée générale */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(13, 110, 253, 0.8);
    }
}

/* Classes d'animation */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Animations pour les éléments spécifiques */
.blog-item {
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.admin-card {
    animation: fadeInLeft 0.8s ease-out;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn:active {
    transform: scale(0.95);
}

.btn::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: left 0.5s;
}

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

/* Animations pour les images */
img {
    transition: all 0.6s ease-out;
}

img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Animations pour les icônes */
.fas, .fab, .far {
    transition: all 0.2s ease-out;
}

.fas:hover, .fab:hover, .far:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Animations pour les badges */
.badge {
    animation: scaleIn 0.4s ease-out;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
    animation: pulse 1s infinite;
}

/* Animations pour les formulaires */
input, select, textarea {
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Animations pour la navigation */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

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

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

/* Animations pour les alertes */
.alert {
    animation: slideInUp 0.5s ease-out;
    transition: all 0.3s ease;
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animations pour les modales */
.modal-dialog {
    animation: scaleIn 0.3s ease-out;
}

/* Animations pour les tooltips */
[data-bs-toggle="tooltip"] {
    transition: all 0.2s ease;
}

[data-bs-toggle="tooltip"]:hover {
    transform: scale(1.05);
}

/* Animations pour les cartes */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Animations pour les statistiques */
.counter-animate {
    animation: bounceIn 0.8s ease-out;
}

/* Animations pour les effets de parallaxe */
.parallax {
    transition: transform 0.1s ease-out;
}

/* Animations pour les éléments de chargement */
.loader {
    animation: rotate 1s linear infinite;
}

/* Animations pour les messages de succès */
.alert-primary {
    animation: fadeInRight 0.5s ease-out;
}

/* Animations pour les messages d'erreur */
.alert-danger {
    animation: shake 0.5s ease-in-out;
}

/* Animations pour les messages d'information */
.alert-info {
    animation: fadeInUp 0.5s ease-out;
}

/* Animations pour les messages d'avertissement */
.alert-warning {
    animation: fadeInLeft 0.5s ease-out;
}

/* Animations pour les boutons de pagination */
.pagination .page-link {
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pagination .page-link:active {
    transform: scale(0.95);
}

/* Animations pour les effets de survol sur les cartes */
.blog-item, .admin-card, .card {
    position: relative;
    overflow: hidden;
}

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

.blog-item:hover::before, .admin-card:hover::before, .card:hover::before {
    left: 100%;
}

/* Animations pour les effets de focus */
.btn:focus, .form-control:focus, .form-select:focus {
    animation: glow 1s ease-in-out;
}

/* Animations pour les transitions de page */
.page-transition {
    animation: fadeInUp 0.8s ease-out;
}

/* Animations pour les éléments qui apparaissent au scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animations pour les effets de particules */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0d6efd;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

/* Animations pour les effets de texte */
.text-animate {
    animation: fadeInUp 0.8s ease-out;
}

.text-animate-delay-1 {
    animation-delay: 0.1s;
}

.text-animate-delay-2 {
    animation-delay: 0.2s;
}

.text-animate-delay-3 {
    animation-delay: 0.3s;
}

/* Animations pour les effets de survol sur les images */
.image-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-hover:hover::after {
    opacity: 1;
}

/* Animations pour les effets de loading */
.loading-spinner {
    animation: rotate 1s linear infinite;
}

.loading-dots {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Animations pour les effets de notification */
.notification {
    animation: slideInUp 0.5s ease-out;
}

.notification.primary {
    animation: fadeInRight 0.5s ease-out;
}

.notification.error {
    animation: shake 0.5s ease-in-out;
}

/* Animations pour les effets de menu */
.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover {
    transform: translateX(10px);
    color: #0d6efd;
}

/* Animations pour les effets de footer */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    transform: translateY(-2px);
    color: #0d6efd;
}

/* Animations pour les effets de sidebar */
.sidebar-item {
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    transform: translateX(5px);
    background-color: rgba(13, 110, 253, 0.1);
}

/* Animations pour les effets de tableau */
.table-row {
    transition: all 0.3s ease;
}

.table-row:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Animations pour les effets de graphique */
.chart-container {
    animation: scaleIn 0.8s ease-out;
}

/* Animations pour les effets de timeline */
.timeline-item {
    animation: fadeInLeft 0.8s ease-out;
}

.timeline-item:nth-child(even) {
    animation: fadeInRight 0.8s ease-out;
}

/* Animations pour les effets de carousel */
.carousel-item {
    transition: all 0.5s ease;
}

.carousel-item.active {
    animation: scaleIn 0.5s ease-out;
}

/* Animations pour les effets de accordion */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animations pour les effets de tabs */
.tab-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Animations pour les effets de dropdown */
.dropdown-menu {
    animation: fadeInUp 0.3s ease-out;
}

/* Animations pour les effets de popover */
.popover {
    animation: scaleIn 0.3s ease-out;
}

/* Animations pour les effets de toast */
.toast {
    animation: slideInUp 0.5s ease-out;
}

/* Animations pour les effets de progress bar */
.progress-bar {
    animation: fadeInUp 0.8s ease-out;
}

/* Animations pour les effets de spinner */
.spinner-border {
    animation: rotate 1s linear infinite;
}

/* Animations pour les effets de skeleton */
.skeleton {
    animation: pulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* Animations pour les effets de ripple */
.ripple {
    position: relative;
    overflow: hidden;
}

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

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Animations pour les effets de morphing */
.morph {
    transition: all 0.3s ease;
}

.morph:hover {
    border-radius: 20px;
}

/* Animations pour les effets de glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Animations pour les effets de neumorphism */
.neumorph {
    background: #e0e0e0;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    transition: all 0.3s ease;
}

.neumorph:hover {
    box-shadow: inset 20px 20px 60px #bebebe, inset -20px -20px 60px #ffffff;
}

/* Animations pour les effets de gradient */
.gradient-animate {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animations pour les effets de texte typing */
.typing {
    overflow: hidden;
    border-right: 2px solid #0d6efd;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #0d6efd; }
}

/* Animations pour les effets de texte glitch */
.glitch {
    position: relative;
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Animations pour les effets de texte wave */
.wave {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 40%, 100% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-10px);
    }
}

/* Responsive animations */
@media (max-width: 768px) {
    .animate-fade-in-up,
    .animate-fade-in-left,
    .animate-fade-in-right {
        animation-duration: 0.6s;
    }
    
    .btn:hover {
        transform: scale(1.02);
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
}

/* Animations pour les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Animations pour les thèmes sombres */
@media (prefers-color-scheme: dark) {
    .glass {
        background: rgba(63, 2, 2, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .neumorph {
        background: #2d2d2d;
        box-shadow: 20px 20px 60px #1a1a1a, -20px -20px 60px #404040;
    }
}

/* Animations pour les imprimantes */
@media print {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Correction fond gris et amélioration carousel */
.container-fluid.px-0 {
    background: #fff !important;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 70vh; /* Plus haut sur mobile */
        position: relative;
    }
    
    .carousel-item img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .carousel-caption {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
        z-index: 2;
    }

    .carousel-content h6 {
        font-size: 1.3rem !important;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .carousel-content h1 {
        font-size: 2.4rem !important;
        margin-bottom: 18px;
        line-height: 1.3;
        font-weight: 700;
    }

    .carousel-content p {
        font-size: 1.1rem !important;
        margin-bottom: 25px;
        line-height: 1.5;
        max-width: 100%;
    }
    
    /* Boutons sur la même ligne sur mobile */
    .carousel-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-buttons .btn {
        font-size: 1rem;
        padding: 12px 24px;
        white-space: nowrap;
        display: inline-block !important;
        width: auto;
        min-width: 140px;
        margin: 0;
        font-weight: 600;
    }
    
    .carousel-buttons a {
        display: inline-block !important;
        flex-shrink: 0;
    }
    
    /* Supprimer les marges négatives qui causent des problèmes */
    .container-fluid.px-0 {
        margin-top: 0;
    }
    
    #carouselId {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 80vh; /* Encore plus haut sur très petit écran */
    }
    
    .carousel-content h6 {
        font-size: 1.1rem !important;
        margin-bottom: 10px;
    }
    
    .carousel-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .carousel-content p {
        font-size: 1rem !important;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .carousel-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        min-width: 120px;
        font-weight: 600;
    }
}

/* mobile: rendre domaine-card identique au bouton desktop actif */
.domaine-card {
    border: 1px solid transparent;
    border-radius: .375rem;
    transition: background-color .15s, color .15s, border-color .15s;
    background-color: transparent;
    color: inherit;
}
/* état non sélectionné */
.domaine-card {
    /* background-color: var(--bs-primary) !important; ta couleur orange;  */
    border-color: var(--bs-primary) !important;
    /* color: #fff; */
}

/* état sélectionné */
.domaine-card.active,
.domaine-card.active:focus,
.domaine-card.active:hover {
    background-color: var(--bs-primary) !important; /* ta couleur orange */; 
    border-color: var(--bs-primary) !important;
    color: #fff;
}
.domaine-card:hover {
    /* background-color: var(--bs-primary) !important; ta couleur orange;  */
    border-color: var(--bs-primary) !important;
    /* color: #fff; */
}

/* icône et texte deviennent blancs quand actif */
.domaine-card.active i,
.domaine-card.active .fa,
.domaine-card.active h6,
.domaine-card.active .domaine-title {
    color: #fff !important;
}

/* Supprimer le contour vert par défaut */
.domaine-btn:focus,
.domaine-btn:focus-visible,
.domaine-btn.active:focus{
    outline: none !important;
    box-shadow: none !important;
}
