/********** Template CSS - Version Améliorée **********/
:root {
    --primary: #D81324;
     --secondary-color: #0B2154; 

    --secondary: #176527;
    --light: #F2F2F2;
    --dark: #111111;
    --primary-hover: #c01020;
    --secondary-hover: #091a44;
    --transition: all 0.3s ease;
}

.secondary-color {
    color: var(--secondary-color) !important;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

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

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(216, 19, 36, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(216, 19, 36, 0.5);
}


/*** 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: 500;
    text-transform: uppercase;
    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;
    border-radius: 2px;
}


/*** Navbar ***/
.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: #FFFFFF;
    font-size: 15px;
    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) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@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 - Carousel optimisé et responsive ***/

/* Hauteur du carousel réduite pour desktop */
#header-carousel .carousel-item {
    position: relative;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;

}


@media (max-width: 768px) {
#header-carousel .carousel-item img {
    height: auto;
    object-fit: contain;
  }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, .65); */
    z-index: 1;
    display: flex;
    align-items: center;
}

/* Textes du carousel - tailles réduites et optimisées */
.carousel-caption h1 {
    font-size: 2.5rem !important;
    line-height: 1.2;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
}

.carousel-caption h6 {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    letter-spacing: 1px;
}

.carousel-caption p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    max-width: 90%;
}

.carousel-caption .btn {
    padding: 12px 28px !important;
    font-size: 0.9rem !important;
}

/* Image d'illustration réduite */
.carousel-caption .col-lg-5 img {
    max-height: 280px;
    object-fit: contain;
    width: auto;
    max-width: 100%;
}

/* Réduire encore la colonne de l'image */
.carousel-caption .col-lg-5 {
    max-width: 60% !important;
    font-size: 16px !important;
}

.bg-dark-overlay {
    background: rgb(0 0 0 / 33%);
    width: max-content;
    border-radius: 5px;
    padding: 3px;
}

.carousel-caption .col-lg-7 {
    max-width: 65%;
   /* background: rgb(0 0 0 / 59%);*/
    border-radius: 5px;
    padding: 5px;
}

/* Grand écran (laptops 15"+) */
@media (min-width: 1400px) {
    #header-carousel .carousel-item {
        max-height: 550px;
    }
    
    #header-carousel .carousel-item img {
        height: 550px;
    }
    
    .carousel-caption .col-lg-5 img {
        max-height: 300px;
    }
}

/* Tablette (iPad, etc.) */
@media (max-width: 992px) {
    #header-carousel .carousel-item {
        min-height: 350px;
        max-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        height: 450px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem !important;
    }
    
    .carousel-caption h6 {
        font-size: 0.85rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.95rem !important;
    }
    
    .carousel-caption .btn {
        padding: 10px 24px !important;
        font-size: 0.85rem !important;
    }
    
    .carousel-caption .col-lg-5 img {
        max-height: 220px;
    }
}

/* Mobile (téléphones en paysage et tablettes portrait) */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        min-height: 320px;
        max-height: 400px;
    }
    
    #header-carousel .carousel-item img {
        height: 400px;
        object-position: center;
    }
    
    .carousel-caption {
      /*  background: rgba(0, 0, 0, .75); */ /* Plus opaque sur mobile */
    }
    
    .carousel-caption h1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
        padding-bottom: 0.8rem !important;
    }
    
    .carousel-caption h6 {
        font-size: 0.7rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
        max-width: 100%;
    }
    
    .carousel-caption .btn {
        padding: 8px 20px !important;
        font-size: 0.8rem !important;
    }

    .carousel-caption .row {
        gap: 1.5rem;
    }

    .carousel-caption .col-lg-7,
    .carousel-caption .col-lg-5 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .carousel-caption .col-lg-5 {
        justify-content: center !important;
    }
}

/* Très petit écran (téléphones en portrait) */
@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: 280px;
        max-height: 350px;
    }
    
    #header-carousel .carousel-item img {
        height: 350px;
    }
    
    .carousel-caption {
      /*  background: rgba(0, 0, 0, .8); */ /* Encore plus opaque */
        padding: 0 10px;
    }
    
    .carousel-caption h1 {
        font-size: 1.3rem !important;
        margin-bottom: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }
    
    .carousel-caption h6 {
        font-size: 0.65rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.8rem !important;
        display: none; /* Masquer la description sur très petit écran */
    }
    
    .carousel-caption .btn {
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        max-width: 260px;
        width: 100%;
        margin: 0 auto;
    }
    
    .carousel-caption .fa-arrow-right {
        display: none; /* Masquer l'icône flèche sur mobile */
    }
    
    .carousel-caption .col-10 {
        padding: 0 15px;
    }

    .carousel-caption .col-lg-7,
    .carousel-caption .col-lg-5 {
        text-align: center !important;
    }
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.page-header-inner {
    /* background: rgba(0, 0, 0, .7); */
    background: rgb(0 0 0 / 15%);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact {
/*    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-bg-1.jpg);*/
    background: linear-gradient(rgb(0 0 0 / 27%), rgb(0 0 0 / 0%)), url(../img/carousel-bg-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}


/*** Service ***/
.service .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.service .nav .nav-link.active h4 {
    color: #FFFFFF !important;
}


/*** Booking ***/
.booking {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-bg-2.jpg) center center no-repeat;
    background-size: cover;
}

.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 .team-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transform: scale(0);
    transition: .5s;
}

.team-item:hover .team-overlay {
    transform: scale(1);
}

.team-item .team-overlay .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-overlay .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    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-dots {
    margin-top: 24px;
    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;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, .9), rgba(0, 0, 0, .9)), url(../img/carousel-bg-1.jpg) center center no-repeat;
    background-size: cover;
}

.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(--secondary);
}

/* Icônes réseaux sociaux dans le header */
.btn.btn-white.text-primary:hover,
.btn.btn-white.text-primary:hover i {
    color: var(--secondary) !important;
}

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

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/*** Améliorations Modernes ***/

/* Cards avec effets hover */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.card-img-top {
    transition: var(--transition);
}

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

/* Boutons améliorés */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

/* Navbar améliorée */
.navbar {
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

/* Section titres améliorés */
.section-title {
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Animations de texte */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Overlay avec gradient moderne */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 0.8;
}

/* Services boxes */
.service-box {
    padding: 40px 30px;
    border-radius: 10px;
    background: #fff;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(216, 19, 36, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-box:hover::before {
    left: 100%;
}

.service-box:hover {
    background: var(--light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-box i {
    transition: var(--transition);
}

.service-box:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary);
}

/* Formulaires stylisés */
.form-control, .form-select {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    transition: var(--transition);
    padding: 12px 20px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(216, 19, 36, 0.15);
}

/* Badges et labels */
.badge-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
}

/* Tooltips personnalisés */
.custom-tooltip {
    position: relative;
    cursor: pointer;
}

.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    padding: 8px 12px;
    background: var(--dark);
    color: white;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
    font-size: 14px;
}

.custom-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Carousel amélioré */
.carousel-indicators {
    bottom: 20px !important;
    z-index: 15;
    margin-bottom: 1rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-indicators [data-bs-target]:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-indicators .active {
    background: var(--primary) !important;
    transform: scale(1.3);
    border-color: var(--primary);
}

/* Amélioration des contrôles (flèches) */
.carousel-control-prev,
.carousel-control-next {
    width: 60px !important;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;
    z-index: 15;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgb(23 101 39);    
    border-radius: 50%;
    padding: 10px;
    background-size: 40% auto;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary);
    transform: scale(1.1);
}

   .logo-index{
       min-height: 400px;
    }

/* Responsive carousel controls */
@media (max-width: 768px) {

    .logo-index{
        width: 100%;
        min-height: 240px !important;
    }
    .img-logo-index img {
        object-fit: scale-down !important;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .carousel-indicators {
        bottom: 10px !important;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Section avec parallax effect préparation */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .service-box {
        margin-bottom: 20px;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .back-to-top, #spinner {
        display: none !important;
    }
}
/* azeddine */
.text-secondary , h1, h2, h3, h4, h5, h6 {
    color: var(--secondary) !important;
}

.transparent-title {
    color: transparent !important;
    -webkit-text-stroke: 1px #fffff1c7;
    font-weight: 100;
}
.flex-input {
    display: flex;
    align-items: center;
    gap: 10px;
}