/********** Template CSS **********/
:root {
    --primary: #1E60AA;
    --secondary: #FF4917;
    --light: #EDF1FC;
    --dark: #17224D;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.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 {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.top-bar {
    height: 75px;
    padding: 0 4rem;
}

.nav-bar {
    position: relative;
    padding: 0 4.75rem;
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 15px solid #FFFFFF;
}

.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100px;
    height: 15px;
    background: #FFFFFF;
}

.header-carousel .container::after,
.page-header .container::after {
    top: 100%;
    margin-top: -15px;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1,
    .header-carousel .owl-carousel-item h2 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}


/*** Service ***/
.service-item-top img {
    transition: .5s;
}

.service-item-top:hover img {
    transform: scale(1.1);
}

.service-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.service-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    transition: .5s;
}

.service-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Booking ***/
.video {
    position: relative;
    padding: 8rem 0 12rem 0;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video .btn-play {
    position: relative;
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
    margin-bottom: 4rem;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--primary);
    border-top: 22px solid transparent;
    border-bottom: 22px 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(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .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;
}

.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-text {
    height: 90px;
    overflow: hidden;
}

.team-item .team-text .bg-light,
.team-item .team-text .bg-primary {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: .5s;
}

.team-item .team-text .bg-primary {
    flex-direction: row;
}

.team-item:hover .team-text .bg-light {
    margin-top: -90px;
}

.team-item .team-text .bg-primary .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-text .bg-primary .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item .testimonial-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    border: 15px solid;
    border-color: var(--light) transparent transparent transparent;
    transition: .5s;

}

.testimonial-carousel .owl-item.center .testimonial-text::after {
    border-color: var(--primary) transparent transparent transparent;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    font-size: 30px;
    color: var(--primary);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

/*** Améliorations accessibilité et mobile ***/
:root { --secondary: #C93912; }
.btn.btn-secondary { background-color: #C93912; border-color: #C93912; color: #FFFFFF; }
.btn.btn-secondary:hover { background-color: #A82E0E; border-color: #A82E0E; }
.text-secondary { color: #C93912 !important; }
.bg-secondary { background-color: #C93912 !important; }

:focus-visible { outline: 3px solid var(--primary) !important; outline-offset: 2px; }
.footer :focus-visible, .bg-primary :focus-visible, .bg-dark :focus-visible { outline-color: #FFFFFF !important; }
#main:focus { outline: none !important; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; background: #FFFFFF; color: var(--primary); padding: 10px 16px; border-radius: 4px; }

.btn-sm-square, .btn-square { width: 44px; height: 44px; }
.footer .btn.btn-social { width: 44px; height: 44px; }

.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #FFFFFF; box-shadow: 0 -2px 12px rgba(0, 0, 0, .15); }
.call-bar a { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; color: #FFFFFF; font-weight: 700; text-decoration: none; }
.call-bar a:hover, .call-bar a:focus { color: #FFFFFF; opacity: .92; }
.call-bar-call { background: var(--primary); }
.call-bar-wa { background: #0B7A4B; }
@media (max-width: 991.98px) {
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .back-to-top { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .wow { visibility: visible !important; }
}

/*** Section avis clients ***/
.avis-section { background: var(--light); }
.avis-layout { display: flex; align-items: center; gap: 2rem; }
.avis-summary { flex: 0 0 210px; text-align: center; }
.avis-label { font-family: 'Roboto', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--dark); }
.avis-stars { display: inline-block; font-size: 1.5rem; line-height: 1; letter-spacing: 2px; color: #CFD4E3; margin: .35rem 0; }
.avis-stars .on { color: #F5B800; }
.avis-count { font-size: .9rem; color: var(--dark); }
.avis-link { display: block; margin-top: .5rem; font-weight: 600; }
.avis-carousel { position: relative; flex: 1 1 auto; min-width: 0; padding: 0 26px; }
.avis-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; }
.avis-track::-webkit-scrollbar { display: none; }
.avis-card { flex: 0 0 min(290px, 86%); scroll-snap-align: start; background: #FFFFFF; border: 1px solid #DCE1EE; border-radius: 6px; padding: 18px 20px; display: flex; flex-direction: column; align-self: flex-start; }
.avis-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.avis-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; color: #FFFFFF; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avis-who { flex: 1 1 auto; min-width: 0; }
.avis-name { font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avis-date { font-size: .8rem; color: #5B6275; }
.avis-source { font-size: .72rem; font-weight: 700; color: #4A5163; border: 1px solid #C9CFDF; border-radius: 10px; padding: 1px 8px; }
.avis-text { margin: 8px 0 0; color: var(--dark); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.avis-card.open .avis-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.avis-more { background: none; border: 0; padding: 8px 0 0; text-align: left; color: var(--primary); font-weight: 600; min-height: 44px; }
.avis-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #C9CFDF; background: #FFFFFF; color: var(--primary); font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.avis-prev { left: -4px; }
.avis-next { right: -4px; }
@media (max-width: 991.98px) {
    .avis-layout { flex-direction: column; align-items: stretch; }
    .avis-summary { flex: none; }
    .avis-carousel { padding: 0 34px; }
    .avis-prev { left: -6px; }
    .avis-next { right: -6px; }
}

/*** Nouvel en-tête (header flottant) ***/
.site-header { position: sticky; top: 0; z-index: 1020; padding: 10px 12px; }
.site-header-inner { max-width: 1500px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFFFFF; border-radius: 20px; padding: 8px 10px 8px 14px; box-shadow: 0 10px 30px rgba(30, 96, 170, .18), 0 2px 6px rgba(23, 34, 77, .06); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 44px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1.3rem; padding-left: 12px; border-left: 1px solid #D5DBEA; }
.brand-text .b1 { color: var(--dark); }
.brand-text .b2 { color: var(--secondary); }
.nav-toggle { width: 46px; height: 46px; border: 1px solid #D5DBEA; border-radius: 12px; background: #FFFFFF; color: var(--dark); font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; }
.nav-toggle .fa-times { display: none; }
.site-header.open .nav-toggle .fa-bars { display: none; }
.site-header.open .nav-toggle .fa-times { display: inline; }
.header-menu { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% - 2px); flex-direction: column; gap: 6px; background: #FFFFFF; border-radius: 18px; padding: 12px; box-shadow: 0 14px 34px rgba(23, 34, 77, .22); }
.site-header.open .header-menu { display: flex; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border-radius: 12px; color: var(--dark); font-weight: 600; font-size: 1rem; text-decoration: none; }
.main-nav a i { width: 20px; text-align: center; color: var(--dark); }
.main-nav a:hover { background: #F1F5FD; color: var(--primary); }
.main-nav a.active { background: #E3EDFB; color: var(--primary); }
.main-nav a.active i { color: var(--primary); }
.main-nav a.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--secondary); }
.header-phone { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid #E3E8F4; color: var(--dark); text-decoration: none; }
.header-phone i { font-size: 1.3rem; }
.header-phone strong { display: block; font-size: 1.1rem; line-height: 1.15; }
.header-phone small { display: block; font-size: .82rem; color: #4A5163; }
.btn-devis { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--secondary); color: #FFFFFF; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(201, 57, 18, .3); }
.btn-devis:hover, .btn-devis:focus { background: #A82E0E; color: #FFFFFF; }
@media (min-width: 1100px) {
    .site-header { padding: 14px 20px; }
    .site-header-inner { border-radius: 999px; padding: 8px 10px 8px 22px; gap: 18px; }
    .brand img { height: 52px; }
    .nav-toggle { display: none; }
    .header-menu { display: flex; position: static; flex: 1 1 auto; flex-direction: row; align-items: center; gap: 10px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
    .main-nav { flex-direction: row; gap: 2px; margin-left: 6px; }
    .main-nav a { padding: 0 14px; gap: 9px; font-size: .98rem; }
    .header-phone { margin-left: auto; border-top: 0; border-left: 1px solid #D5DBEA; padding: 2px 0 2px 20px; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) {
    .brand-text { font-size: 1.15rem; }
    .main-nav a { padding: 0 10px; gap: 7px; font-size: .92rem; }
    .header-phone { padding-left: 14px; }
    .btn-devis { padding: 0 18px; }
}
