/* Dark/Light Mode */
body.dark-mode {
    background-color: #121212;
    color: #fff;
}

body.light-mode {
    background-color: #f8f9fa;
    color: #333;
}

/* Carousel Fixes */
.carousel-item {
    height: 100vh;
    min-height: 400px;
}

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

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

/* Card Images */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Dark/Light Mode */
body.dark-mode {
    background-color: #121212;
    color: #fff;
}

body.dark-mode .navbar,
body.dark-mode .footer {
    background-color: #212529 !important;
}

/* Carousel Arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    height: 20%;
    top: 40%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}

/* Card Images */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Dark Mode Adjustments */
.dark-mode .card {
    background-color: #2c3034;
    border-color: #404448;
}

.dark-mode .form-control {
    background-color: #2c3034;
    color: #fff;
    border-color: #404448;
}

/* Section Accueil */
section.py-5 {
    background: #f8f9fa;
    padding: 4rem 0 !important;
}

.list-unstyled li {
    padding-left: 2rem;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1.2em;
}

.display-4 {
    font-weight: 700;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Custom Container Width */
.container {
    max-width: 80% !important;
}

/* Section Styling */
section.py-4 {
    padding: 2rem 0 !important;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

.list-unstyled li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.rounded-3 {
    border-radius: 0.75rem !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

/* Cartes */
.card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: #ffffff;
    border-radius: 12px !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
}

/* Dark mode adjustments */
.dark-mode .card {
    background-color: #2c2c2e;
    border: 1px solid #404040 !important;
}

.dark-mode .card-title {
    color: #e0e0e0 !important;
}

.dark-mode .card-text {
    color: #a0a0a0;
}

.testimonial-slider {
  overflow: hidden;
  white-space: nowrap;
  padding: 2rem 0;
}

.slider-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
}

.slide-track {
  display: flex;
  animation: scroll 60s linear infinite;
}

#slide {
  flex: 0 0 auto;
  padding: 0 3rem;
  font-size: 1.2rem;
  font-style: italic;
  color: #0d2d59;
  font-family: Georgia, 'Times New Roman', serif;
  white-space: nowrap;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .row.align-items-center {
    text-align: center;
  }
}

/* Page À Propos */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../images/office.jpg') center/cover fixed;
    position: relative;
}

.bg-primary {
    background-color: #2c3e50 !important;
}

/* Dark mode adjustments */
.dark-mode .about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),url('../images/about-bg.jpg') center/cover fixed;
}

.dark-mode .bg-light {
    background-color: #343a40 !important;
}

.dark-mode .bg-primary {
    background-color: #1a252f !important;
}

#mw{
    max-width: 99.9% !important;
}

/* Footer */
.brand-logo {
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.8;
}

.border-secondary {
    border-color: #4a5568 !important;
}

/* Dark mode adjustments */
.dark-mode .brand-logo {
    filter: none;
}

.dark-mode .text-muted {
    color: #8a8a8a !important;
}

@media (max-width: 767px) {
    #mw .row > div {
        width: 100%;
        text-align: center !important;
    }
    
    #mw .contact-info .d-flex {
        justify-content: center !important;
        text-align: center;
    }
    
    #mw .col-md-4 {
        margin-bottom: 2rem;
    }
    
    #mw .qr-code {
        margin: 0 auto 1.5rem;
    }
    
    #mw .brand-logo {
        margin-bottom: 2rem;
    }
    
    #mw .text-end {
        text-align: center !important;
    }

}

/* Section Témoignages */
.testimonials {
    position: relative;
}

.testimonial-card {
    background: white;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    flex: 0 0 auto; /* largeur d’une carte */
    scroll-snap-align: start;
    width: 320px;
    margin-right: 16px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card i.bi-quote {
    opacity: 0.5;
    display: block;
    margin-bottom: 1rem;
}

/* Dark mode */
.dark-mode .testimonial-card {
    background: #2c2c2e;
    border-color: #404040;
}

.dark-mode .testimonial-card h5,
.dark-mode .testimonial-card p {
    color: #e0e0e0 !important;
}

.dark-mode .testimonial-card small {
    color: #a0a0a0 !important;
}

/* Page Destinations */
.destinations-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('/images/destinations-bg.jpg') center/cover;
    min-height: 60vh;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Dark mode */
.dark-mode .destinations-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
                url('/images/destinations-bg.jpg') center/cover;
}

.dark-mode .card {
    background-color: #2c2c2e;
    border: 1px solid #404040;
}

.dark-mode .card-body {
    color: #e0e0e0;
}

.dark-mode .list-unstyled li {
    color: #a0a0a0;
}

@media (max-width: 768px) {
    .destinations-hero {
        min-height: 40vh;
    }
    
    .card-img-top {
        height: 200px;
    }

    .testimonial-card {
        width: 220px;
      }
}

/* Page Tanger */
.tanger-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../images/tanger-banner.jpg') center/cover;
    min-height: 70vh;
}
/* Page Marrakech */
.marrakech-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../images/marrakech-banner.jpg') center/cover;
    min-height: 70vh;
}
.agadir-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../images/agadir-banner.jpg') center/cover;
    min-height: 70vh;
}
.essaouira-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../images/essaouira-banner.jpg') center/cover;
    min-height: 70vh;
}
.al-hoceima-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../images/al-hoceima-banner.jpg') center/cover;
    min-height: 70vh;
}
.saidia-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('../images/saidia-banner.jpg') center/cover;
    min-height: 70vh;
}

/* Dark mode */
.dark-mode .marrakech-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),url('../images/marrakech-banner.jpg') center/cover;}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: none;             /* no repaint trigger */
    backface-visibility: hidden;  /* avoids subpixel blur on hover */
    will-change: auto;            /* disables GPU over-optimization */

}
.card:hover .card-img-top {
  transform: none;             /* no zoom, keeps sharpness */
  filter: none;
}
@media (max-width: 768px) {
    .marrakech-hero {
        min-height: 50vh;
    }
    
    .card-img-top {
        height: 200px;
    }
}
.hr-theme {
    background: linear-gradient(90deg,rgba(var(--bs-emphasis-color-rgb), 0) 0%,rgba(var(--bs-emphasis-color-rgb), 0.2) 50%,rgba(var(--bs-emphasis-color-rgb), 0) 100%);
    border: 0;
    margin: 3rem 0;
    position: relative;
}
.transition-all {
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
/* Add to style.css */
/* QR Codes Section */
.qr-social-container .row {
    justify-content: center;
}
.qr-card {
    padding: 1.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}
.qr-card:hover {
    transform: translateY(-5px);
}
/* WhatsApp Gradient */
.whatsapp-gradient {
    background: linear-gradient(160deg, #25D366, #128C7E);
}
/* Instagram Gradient */
.instagram-gradient {
    background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5);
}

@media (max-width: 768px) {
    .qr-card {
        padding: 1rem;
        margin: 0 auto 1.5rem;
        max-width: 280px;
    }
    
    .qr-code-img {
        max-width: 130px !important;
    }
    
    .qr-social-container .col-md-6 {
        padding: 0 15px;
    }
}
/* Contact Page Specific Styles */
.whatsapp-bg {
    background: linear-gradient(160deg, #25D366, #128C7E);
    transition: transform 0.3s ease;
}

.instagram-bg {
    background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5);
    transition: transform 0.3s ease;
}

.btn-instagram {
    background: #E1306C;
    color: white;
}

.btn-instagram:hover {
    background: #C13584;
    color: white;
}

/* Map Styling */
.ratio-16x9 iframe {
    filter: grayscale(20%);
    border-radius: 8px;
}

/* Hover Effects */
.whatsapp-bg:hover,
.instagram-bg:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .qr-code-img {
        max-width: 120px !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}
.fes-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/img-3.jpg) center / cover;
    min-height: 70vh;
}
.casablanca-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/casablanca-banner.jpg) center / cover;
    min-height: 70vh;
}
.chefchaouen-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/chefchaouen-banner.jpg) center / cover;
    min-height: 70vh;
}
.map-hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.map-hero iframe {
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
}

.map-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
}
.partner-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
}

.slide-track {
  display: flex;
  width: calc(250px * 40); /* adjust based on number of logos */
  animation: scroll 90s linear infinite;
}

.partner-logo {
  height: 60px;
  width: auto;
  margin: 0 2rem;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Infinite scroll animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsiveness */
@media (max-width: 768px) {
  .partner-logo {
    height: 40px;
    margin: 0 1rem;
  }
  .slide-track {
    animation-duration: 60s;
  }
}

@media (max-width: 768px) {
    .map-hero {
        height: 50vh;
    }
}
.cert-logo {
  height: 45px;
  width: auto;
  opacity: 0.9;
  transition: all 0.3s ease-in-out;
}

.cert-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-certifications {
  margin-top: 1rem;
}

.services-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/services-banner.jpg) center / cover;
    min-height: 70vh;
}
.loisirs-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/loisirs-banner.png) center / cover;
    min-height: 70vh;
}
.morocco-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/morocco-banner.jpg) center / cover;
    min-height: 70vh;
}
.africa-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/africa-banner.png) center / cover;
    min-height: 70vh;
}
.golf-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/golf-banner.png) center / cover;
    min-height: 70vh;
}
.medic-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/medical-banner.jpg) center / cover;
    min-height: 70vh;
}
.religious-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/religious-banner.jpg) center / cover;
    min-height: 70vh;
}
.omra-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/omra-banner.png) center / cover;
    min-height: 70vh;
}
.amerique-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/amerique-banner.jpg) center / cover;
    min-height: 70vh;
}
.europe-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/europe-banner.jpg) center / cover;
    min-height: 70vh;
}
.asia-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/asia-banner.jpg) center / cover;
    min-height: 70vh;
}
.sports-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/sports-banner.png) center / cover;
    min-height: 70vh;
}
.mice-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/mice-banner.jpg) center / cover;
    min-height: 70vh;
}
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/blog-banner.jpg) center / cover;
    min-height: 70vh;
}
.colonies-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/july-blog-howard-1-scaled-1-2048x1366.jpg) center / cover;
    min-height: 70vh;
}
.business-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/buisness-banner.jpg) center / cover;
    min-height: 70vh;
}
.pelerinage-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/pelerinage-banner.jpg) center / cover;
    min-height: 70vh;
}
.rabat-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/rabat-banner.jpg) center / cover;
    min-height: 70vh;
}
.ouarzazate-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/ouarzazate-banner.jpg) center / cover;
    min-height: 70vh;
}
.merzouga-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/merzouga-banner.jpg) center / cover;
    min-height: 70vh;
}
.dakhla-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/dakhla-banner.jpg) center / cover;
    min-height: 70vh;
}
/* Footer General */
footer {
    background-color: #212529;
    padding: 4rem 0;
}

footer a {
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
    color: #f8d01d;
    transform: scale(1.1);
}

footer h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Footer Social Icons */
.footer-social a {
    font-size: 1.8rem;
    margin: 0 0.5rem;
    display: inline-block;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

/* Footer Responsive */
@media (max-width: 768px) {
    footer .text-md-start,
    footer .text-md-end {
        text-align: center !important;
    }

    .footer-social {
        margin-top: 1rem;
    }

    .footer-social a {
        font-size: 1.5rem;
    }
}
.footer-social a.facebook {
    color: #1877F2; /* Facebook blue */
}
.footer-social a.instagram {
    color: #E1306C; /* Instagram pink */
}
.footer-social a.whatsapp {
  color: #25D366; /* WhatsApp Green */
}
.footer-social a.facebook:hover,
.footer-social a.instagram:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  
  .testimonial-carousel::-webkit-scrollbar {
    display: none; /* cache scrollbar */
  }

  @media (max-width: 992px) {
    .testimonial-card {
      width: 260px;
    }
  }
  @media (max-width: 550px) {
    .testimonial-card {
      width: 90%; /* prend quasi tout l'écran */
      margin-right: 12px;
    }
  }

  .dropdown-item.active, .dropdown-item:active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: #0c5588;
  }