/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

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

/*** Button ***/
.btn {
    transition: 0.5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #ffd700;
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: #ffd700;
}

.btn-square {
    width: 38px;
    height: 38px;
}

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

.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square:hover {
    background-color: #ffd700;
    color: #005c73;
    border: #ffd700;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: normal;
    background-color: #005c73;
}

.icon-box-primary,
.icon-box-light {
    position: relative;
    padding: 0 0 10px 10px;
    z-index: 1;
}

.icon-box-primary i,
.icon-box-light i {
    font-size: 60px;
    line-height: 0;
}

.icon-box-primary::before,
.icon-box-light::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    left: 0;
    bottom: 0;
    border-radius: 35px;
    transition: 0.5s;
    z-index: -1;
}

.icon-box-primary::before {
    background: var(--bs-primary);
}

.icon-box-light::before {
    background: var(--bs-light);
}

/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: 0.5s;
}
.sticky-top {
    top: -100px;
    transition: 0.5s;
}
.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}



.navbar .navbar-nav .nav-link {
    position: relative;
    margin-right: 35px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
    transition: color 0.3s ease;
}

/* Soulignement animé */
/* Soulignement animé (uniquement desktop) */
@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        position: relative;
    }

    .navbar .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 10px;
        width: 0%;
        height: 2px;
        background-color: #ffd700;
        transition: width 0.3s ease;
    }

    /* Hover desktop */
    .navbar .navbar-nav .nav-link:hover {
        color: #ffd700;
    }
    .navbar .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

    /* Actif desktop */
    .navbar .navbar-nav .nav-link.active {
        color: #ffd700;
    }
    .navbar .navbar-nav .nav-link.active::after {
        width: 100%;
    }
}

/* Mobile : pas de soulignement, juste couleur */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        color: var(--bs-dark);
    }

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

    /* Désactiver soulignement sur mobile */
    .navbar .navbar-nav .nav-link::after {
        display: none !important;
    }
}


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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #eeeeee;
    }
}

@media (min-width: 992px) {
    .sticky-top {
        margin-top: -34px;
    }

    .navbar {
        height: 68px;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: 0.5s;
        opacity: 1;
    }
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #eeeeee;
    }
}

@media (min-width: 992px) {
    .sticky-top {
        margin-top: -34px;
    }

    .navbar {
        height: 68px;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: 0.5s;
        opacity: 1;
    }
}

/*** Header ***/
@media (min-width: 992px) {
    .header-carousel,
    .page-header {
        margin-top: -34px;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(3, 27, 78, 0.3);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: #004080;
    border: 15px solid #004080;
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* .page-header {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/testimonial.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);
}
/* a propos */
.experience-box {
    background: linear-gradient(135deg, #004c73, #016b9d);
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    margin-top: -40px;
    margin-left: -40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f2c300;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #004c73;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.icon-circle:hover {
    transform: scale(1.15) rotate(10deg);
    background: #fff;
    color: #004c73;
}
@media (max-width: 768px) {
    .experience-box {
        padding: 20px 10px;
        margin-top: 0px;
        margin-left: 0;
        border-radius: 0px;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .experience-box h1 {
        font-size: 2rem; /* réduit le chiffre */
    }

    .experience-box small {
        font-size: 0.9rem;
    }
}
/* end a propos */
/*** Features ***/
.feature {
    background: linear-gradient(rgba(3, 27, 78, 0.3), rgba(3, 27, 78, 0.3)),
        url(../img/feature.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
}

.feature-item {
    border-color: rgba(0, 0, 0, 0.03) !important;
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}

.experience .nav-pills .nav-link {
    color: var(--dark);
}

.experience .nav-pills .nav-link.active {
    color: #ffffff;
}

.experience .tab-content hr {
    width: 30px;
}

/*** About ***/
.about-fact {
    width: 220px;
    height: 220px;
    
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width:768px){
    .about-fact{
margin-left: 50px;
    }
}
@media (min-width: 576px) {
    .about-fact.mt-n130 {
        margin-top: -130px;
       
    }
    
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--bs-primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--bs-primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #ffffff;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #ffffff;
    background: #000000;
    opacity: 1;
}

/*** Service ***/
/* --- Service Item --- */
.service-item {
    position: relative;
    min-height: 420px; /* même hauteur minimale */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* espace entre contenu et bouton */
    padding: 40px 25px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    transition: all 0.5s ease;
    overflow: hidden;
    text-align: center; /* tout centrer */
}

.service-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* --- Bouton uniforme --- */
.btn-ngf {
    display: inline-block;
    width: 200px; /* largeur identique */
    height: 45px; /* hauteur identique */
    line-height: 42px; /* alignement vertical */
    text-align: center;
    font-size: 1rem;
    color: #004c73;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid #004c73;
    transition: all 0.3s ease-in-out;
    margin: 0 auto; /* centrer le bouton */
}

.btn-ngf:hover {
    background-color: #f2c300;
    color: #004c73;
    border-color: #f2c300;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}
.btn-light {
    background-color: #fff;
    color: #004c73;
    border: 2px solid #004c73;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

.btn-light:hover {
    background-color: #ffd700; /* fond doré */
    color: #004c73; /* texte bleu */
    border-color: #ffd700; /* contour doré */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); /* ombre douce */
    transform: translateY(-3px); /* petit effet de levée */
}

/*** Team ***/
.container-team {
    position: relative;
}

.container-team::before {
    position: absolute;
    content: "";
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
    z-index: -1;
}

.team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.05);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: 0.5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team-item .team-social .btn {
    opacity: 0;
    transition: 0.5s;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}

/*** Testimonial ***/
.testimonial {
    background: linear-gradient(rgba(3, 27, 78, 0.3), rgba(3, 27, 78, 0.3)),
        url(../img/testimonial.jpg) left center no-repeat;
    background-size: cover;
}

.testimonial-item img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 60px;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-left: 15px;
    color: var(--bs-primary);
    font-size: 30px;
    line-height: 0;
    transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}

/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, 0.2);
    }
}

/*** Footer ***/

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
    text-transform: capitalize;
    color: #005c73;
    transition: color 0.3s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 10px;
    color: #005c73;
    transition: color 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: #ffd700;
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: #ffd700;
}

/* Groupe Input */
.input-group .form-control.sdqs {
    border: 2px solid #005c73;
    border-radius: 50px 0 0 50px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

/* Focus */
.input-group .form-control.sdqs:focus {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Placeholder */
.input-group .form-control.sdqs::placeholder {
    color: #6c757d;
    opacity: 0.8;
    font-style: italic;
}

/* Bouton */
.input-group .btn-primary {
    background: linear-gradient(50deg, #005c73, #ffd700);
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    display: inline-block;
}

/* Hover Bouton */
.input-group .btn-primary:hover {
    background: linear-gradient(45deg, #ffd700, #ff9800);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    color: #fff;
}
