/********** Template CSS **********/
:root {
    --primary: #06a3da;
    --secondary: #0092b7;
    --light: #eef9ff;
    --dark: #086a73;
}

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px);
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg);
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg);
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg)
            rotateY(-179.9deg);
    }
}

#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;
}

/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}

/*** Button ***/
.btn {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    transition: 0.5s;
}

.btn-primary,
.btn-secondary {
    color: #ffffff;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/*** Navbar ***/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap");

/* ── Appliquer DM Sans partout ── */
body,
.navbar-dark .navbar-nav .nav-link,
.btn,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "DM Sans", sans-serif;
}

/* ================================================
   NAVBAR LINKS
   ================================================ */
.navbar-dark .navbar-nav .nav-link {
    font-family: "DM Sans", sans-serif;
    position: relative;
    padding: 35px 14px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.03em;
    outline: none;
    transition: 0.5s;
    white-space: nowrap;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 14px;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #ffffff;
}

.logo-img {
    width: 180px;
    height: auto;
}
@media (max-width: 576px) {
    .logo-img {
        width: 150px;
    }
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* ================================================
   BOUTON WHATSAPP (droite navbar)
   ================================================ */
.btn-whatsapp-nav {
    font-family: "DM Sans", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-whatsapp-nav:hover {
    background: #1ebe5d;
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-whatsapp-nav i {
    font-size: 15px;
}
.sticky-top.navbar-dark .btn-whatsapp-nav {
    background: #25d366;
    color: #ffffff;
}

/* ================================================
   DESKTOP
   ================================================ */
@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }
    .sticky-top.navbar-dark {
        position: fixed;
        background: #ffffff;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: 28px;
        left: 50%;
        background: var(--primary);
        transition: 0.5s;
        border-radius: 2px;
    }
    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: calc(100% - 28px);
        left: 14px;
    }
    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
    .sticky-top.navbar-dark .navbar-nav .nav-link::before {
        bottom: 12px;
    }
}

/* ================================================
   MOBILE
   ================================================ */
@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #ffffff;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 12px 10px;
        color: var(--dark);
        font-size: 14.5px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .navbar-dark .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    .navbar-dark .navbar-nav .nav-link::before {
        display: none;
    }
    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }

    .btn-whatsapp-nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        padding: 12px;
    }
    .language-switcher {
        margin: 10px 0;
    }
    .social-links {
        justify-content: center;
    }
}

/* ================================================
   TOPBAR
   ================================================ */
.language-switcher .btn-outline-light {
    font-family: "DM Sans", sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 14px;
    transition: all 0.3s ease;
}
.language-switcher .btn-outline-light:first-child {
    border-radius: 20px 0 0 20px;
}
.language-switcher .btn-outline-light:last-child {
    border-radius: 0 20px 20px 0;
}
.language-switcher .custom-active {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: 600;
}

.btn-outline-light.whatsapp:hover {
    background-color: #25d366;
    border-color: #25d366;
}
.btn-outline-light.facebook:hover {
    background-color: #3b5998;
    border-color: #3b5998;
}
.btn-outline-light.linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
}
.btn-outline-light.instagram:hover {
    background: radial-gradient(
        circle at 30% 107%,
        #fdf497 0%,
        #fdf497 5%,
        #fd5949 45%,
        #d6249f 60%,
        #285aeb 90%
    );
    border-color: #d6249f;
}
.btn-outline-light.youtube:hover {
    background-color: #ff0000;
    border-color: #ff0000;
}

/* ================================================
   DROPDOWN CONTACTS
   ================================================ */
.phone-dropdown {
    cursor: pointer;
}
.contact-dropdown {
    padding: 0.5rem;
    min-width: 200px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}
.dropdown-item {
    font-family: "DM Sans", sans-serif;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background-color: rgba(6, 163, 218, 0.08);
    transform: translateX(4px);
}
.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}
@media (max-width: 576px) {
    .dropdown-item {
        padding: 0.75rem;
    }
    .contact-dropdown {
        min-width: 230px;
        max-width: 90vw;
        margin-left: -50px;
    }
}

/* ================================================
   CAROUSEL
   ================================================ */
.carousel-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 700px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .carousel-image-container {
        height: 60vh;
    }
}
.carousel-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.caption-content {
    max-width: 1000px;
    text-align: center;
    padding: 20px;
    font-family: "DM Sans", sans-serif;
}

/*** Section Title ***/
.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {
        left: 0;
    }
    50% {
        left: 145px;
    }
    100% {
        left: 0;
    }
}

@-webkit-keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }
    50% {
        left: 50%;
        margin-left: 45px;
    }
    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@-webkit-keyframes section-title-run-sm {
    0% {
        left: 0;
    }
    50% {
        left: 85px;
    }
    100% {
        left: 0;
    }
}

/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: 0.5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

/*** Testimonial ***/
.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: #dddddd;
    border-radius: 2px;
    transition: 0.5s;
}

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

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

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

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #ffffff !important;
    box-shadow: 0 0 30px #dddddd;
    border-radius: 18px;
}

/*** Team ***/
.team-item {
    transition: 0.5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #dddddd;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, 0.7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: 0.3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: 0.3s 0.05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: 0.3s 0.1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: 0.3s 0.15s;
}

.team-item .team-img img,
.blog-item .blog-img img {
    transition: 0.5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}

/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    border-radius: 14px;
}

.bg-header {
    background:
        linear-gradient(rgb(0, 146, 183), rgb(0, 146, 183)),
        url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: 0.5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}
