/********** 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 {
        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 .overflow-hidden {
    height: 250px; /* Hauteur fixe pour tous les conteneurs d'images */
    overflow: hidden;
    position: relative;
}

.service-item-top img {
    transition: .5s;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintient les proportions tout en remplissant le conteneur */
    object-position: center; /* Centre l'image */
}

.service-item-top:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments for service images */
@media (max-width: 768px) {
    .service-item-top .overflow-hidden {
        height: 200px; /* Hauteur plus petite pour mobile */
    }
}

@media (max-width: 576px) {
    .service-item-top .overflow-hidden {
        height: 180px; /* Encore plus petite pour très petits écrans */
    }
}

.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/g25.png) 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);
}


/*** Customer Comments Section ***/
.comments-section {
    max-height: 500px;
    overflow-y: auto;
}

.comment-item {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.comment-item h6 {
    font-weight: 600;
    color: var(--primary);
}

.comment-item p {
    color: #333;
    line-height: 1.6;
}

.comment-form-container {
    position: sticky;
    top: 20px;
}

.comment-form-container .form-control {
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.9);
}

.comment-form-container .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(255, 73, 23, 0.25);
    background: #fff;
}

.comment-form-container .btn-secondary:hover {
    background-color: var(--dark);
    border-color: var(--dark);
    transform: translateY(-1px);
}

/* Scrollbar styling for comments section */
.comments-section::-webkit-scrollbar {
    width: 8px;
}

.comments-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comments-section::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.comments-section::-webkit-scrollbar-thumb:hover {
    background: var(--dark);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .comment-form-container {
        position: static;
        margin-top: 30px;
    }

    .comments-section {
        max-height: 400px;
    }
}


/*** Video Modal Styles ***/
.video-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.video-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(30, 96, 170, 0.15);
    transform: translateY(-3px);
}

.video-thumbnail {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/9;
}

.video-thumbnail video {
    object-fit: cover;
    height: 100%;
    width: 100%;
    pointer-events: none; /* Prevent direct video interaction */
}

.play-overlay {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.play-overlay .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 96, 170, 0.3);
}

.play-overlay .btn:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    transform: scale(1.05);
}

/* Video player modal styling */
.modal-xl .modal-dialog {
    max-width: 90vw;
}

#mainVideoPlayer {
    background: #000;
    border-radius: 0;
}

/* Video list modal responsiveness */
@media (max-width: 768px) {
    .modal-lg .modal-dialog {
        max-width: 95vw;
        margin: 10px auto;
    }

    .video-item .col-md-6 {
        margin-bottom: 20px;
    }

    .play-overlay {
        width: 60px;
        height: 60px;
    }

    .play-overlay .btn {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

/* Modal header improvements */
.modal-header.bg-primary {
    border-bottom: 3px solid var(--secondary);
}

.modal-header.bg-dark {
    border-bottom: 3px solid var(--primary);
}

.modal-footer.bg-light {
    border-top: 1px solid #dee2e6;
}

/* Video item text styling */
.video-item h6 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.video-item p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Button hover effects in modal */
.modal-footer .btn {
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/*** AJAX Comments System Styles ***/
#form-messages, #comments-messages {
    margin-bottom: 15px;
}

#form-messages .alert, #comments-messages .alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comment-form-container .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.comment-form-container .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 5px;
}

#char-count.text-warning {
    color: #ffc107 !important;
    font-weight: bold;
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.new-comment {
    border-left: 4px solid var(--secondary) !important;
    animation: highlightFade 3s ease-in-out;
}

@keyframes highlightFade {
    0% {
        background-color: rgba(255, 73, 23, 0.2) !important;
        transform: scale(1.02);
    }
    50% {
        background-color: rgba(255, 73, 23, 0.1) !important;
    }
    100% {
        background-color: transparent !important;
        transform: scale(1);
    }
}

/* Loading spinner animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Alert animations */
.alert {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comment item hover effect enhanced */
.comment-item {
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 6px 20px rgba(30, 96, 170, 0.15);
    transform: translateY(-2px);
}

/* Form field focus enhancement */
.comment-form-container .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Button loading state */
#submit-btn .fa-spinner {
    margin-right: 8px;
}

/* Enhanced highlight pulse effect for new comments */
.highlight-pulse {
    animation: pulseHighlight 2s ease-in-out;
    border: 2px solid var(--secondary) !important;
    border-radius: 12px !important;
}

@keyframes pulseHighlight {
    0% {
        background-color: rgba(255, 73, 23, 0.3);
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 73, 23, 0.7);
    }
    25% {
        background-color: rgba(255, 73, 23, 0.2);
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(255, 73, 23, 0.3);
    }
    50% {
        background-color: rgba(255, 73, 23, 0.1);
        transform: scale(1.01);
        box-shadow: 0 0 0 20px rgba(255, 73, 23, 0.1);
    }
    75% {
        background-color: rgba(255, 73, 23, 0.05);
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 73, 23, 0.05);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 73, 23, 0);
    }
}

/* Enhanced form styling */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.8;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > label {
    transition: all 0.3s ease;
}

/* Comments display section styling */
.comments-display-section {
    position: relative;
}

.comments-display-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
}

.comment-item.testimonial-item {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

/* Shake animation for form errors */
.shake-animation {
    animation: shake 0.6s ease-in-out;
}

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

/* Loading button state */
.btn.loading {
    position: relative;
    overflow: hidden;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Enhanced testimonial text styling */
.testimonial-text {
    position: relative;
    overflow: hidden;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-text::after {
    content: '"';
    position: absolute;
    bottom: -25px;
    right: 10px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

/* Enhanced success state for button */
.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    border: none !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .comments-display-section::before {
        display: none;
    }

    .highlight-pulse {
        margin: 0 10px;
    }

    .form-floating > label {
        font-size: 0.9rem;
    }
}
