/********** Template CSS **********/
:root {
    --primary: #92c23e;
    --light: #F6F7F8;
    --dark: #21409a;
}



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

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

/* Bouton retour en haut – LES STATIONS */
.ls-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    text-decoration: none;
}

/* Cercle principal */
.ls-back-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #92c23e;          /* vert LES STATIONS */
    border: 3px solid #21409a;    /* bord bleu */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.20);
    transition: all 0.25s ease;
}

/* Icône flèche */
.ls-back-icon i {
    font-size: 1.7rem;
    color: #21409a;
}

/* Hover */
.ls-back-to-top:hover .ls-back-icon {
    transform: translateY(-3px) scale(1.03);
    background: #21409a;      /* bleu */
    border-color: #92c23e;    /* bord vert */
}



#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;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    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 ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

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

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        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 ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
}

@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 p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

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

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


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
/* Conteneur tableau 3 x 2 */
.services-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* Chaque case */
.service-cell {
    padding: 28px 30px;
    border-right: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    transition: 0.3s;
}

/* Pas de bordure à droite pour la 3e, 6e case */
.service-cell:nth-child(3n) {
    border-right: none;
}

/* Pas de bordure en bas pour la dernière ligne (4,5,6) */
.service-cell:nth-last-child(-n+3) {
    border-bottom: none;
}

/* Effet hover */
.service-cell:hover {
    background: #f7f9fc;
}

/* En-tête (icône + titre) */
.service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.service-header i {
    font-size: 22px;
    color: #92c23e;      /* Vert LES STATIONS */
}

.service-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #21409a;      /* Bleu LES STATIONS */
}

/* Texte */
.service-cell p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Adaptation tablette : 2 colonnes */
@media (max-width: 991.98px) {
    .services-table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-cell {
        border-right: 1px solid #e4e4e4;
    }

    .service-cell:nth-child(3n) {
        border-right: 1px solid #e4e4e4; /* reset */
    }

    .service-cell:nth-child(2n) {
        border-right: none;
    }

    .service-cell:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* Mobile : 1 colonne */
@media (max-width: 575.98px) {
    .services-table {
        grid-template-columns: 1fr;
    }

    .service-cell {
        border-right: none;
    }

    .service-cell:last-child {
        border-bottom: none;
    }
}
.service-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #444;   /* gris foncé élégant */
}



/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    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 {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    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 {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


.loader-lesstations {
    position: relative;
    width: 70px;
    height: 70px;
}

.loader-lesstations span {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

/* Anneau 1 – bleu */
.loader-lesstations span:nth-child(1) {
    border-top-color: #21409a;
}

/* Anneau 2 – vert */
.loader-lesstations span:nth-child(2) {
    border-right-color: #92c23e;
    animation-delay: .2s;
}

/* Anneau 3 – mélange bleu/vert */
.loader-lesstations span:nth-child(3) {
    border-bottom-color: #21409a;
    animation-delay: .4s;
}

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


/* ============================= */
/*  NAVBAR LES STATIONS (FIX)    */
/* ============================= */

/* Taille et centrage du logo */
.logo-lesstations {
    max-height: 50px;   /* ajuste à 45 / 55 si tu veux */
    width: auto;
    display: block;
}

/* Alignement vertical de la brand dans la navbar */
.navbar-lesstations .navbar-brand {
    height: 75px;                 /* même hauteur que la navbar */
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}
/* Dropdown ACTIVITÉS – style propre */
.dropdown-menu-activites {
    min-width: 260px;
    padding: 0.5rem 0;
    border-radius: 10px;
    border: 1px solid #eee;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.dropdown-menu-activites .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 14px;
    color: var(--dark);
    white-space: normal;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

/* Effet hover */
.dropdown-menu-activites .dropdown-item:hover {
    background-color: #f5f9ff;
    color: var(--primary);
    padding-left: 1.5rem;
}
@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;
    }
}
/* Mega menu */
.mega-menu {
    min-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    background: #fff;
}

/* Ligne activité */
.mega-item {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #21409a;
    transition: 0.2s;
    font-size: 17px;
    font-weight: 500;
}

.mega-item:last-child {
    border-bottom: none;
}

/* Icônes */
.mega-ico {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-right: 15px;
}

/* Hover */
.mega-item:hover {
    background: #f6f8ff;
    color: #92c23e;
}
.navbar-nav .nav-link {
    white-space: nowrap !important;   /* Empêche le retour à la ligne */
}
.btn-lesstations {
    display: flex;
    align-items: center;      /* Aligne le texte + icône sur la même ligne */
    gap: 8px;                 /* Espace entre texte et flèche */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 60px;             /* Harmonise la hauteur */
}

.btn-lesstations i {
    margin-top: 0 !important; /* Supprime le décalage vertical de l’icône */
    font-size: 20px;          /* Ajuste la taille de la flèche si nécessaire */
    line-height: 1;
}
/* Overlay avec dégradé bleu pétrole */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0b4b9b 0%, #072f63 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity .6s ease-in-out, visibility .6s;
}

/* Spinner animé style vague fluide */
.custom-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite, glow 1.5s ease-in-out infinite alternate;
}

/* Animation rotation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Effet glow lumineux */
@keyframes glow {
    0% { box-shadow: 0 0 5px #fff; }
    100% { box-shadow: 0 0 25px #fff; }
}

/* Disparition douce */
#spinner.hide {
    opacity: 0;
    visibility: hidden;
}



/* FOOTER LES STATIONS */
.footer-ls {
    background: #21409a;              /* bleu logo */
    color: #f5f7fa;
    font-size: 0.94rem;
}

.footer-title {
    color: #92c23e;                   /* vert logo */
    font-weight: 600;
}

/* Listes */
.footer-list {
    margin: 0;
    padding: 0;
}

/* Ligne icône + texte : le texte ne passe JAMAIS sous l’icône */
.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}

/* Colonne icône */
.footer-icon {
    width: 22px;
    display: flex;
    justify-content: center;
    margin-top: 2px;
    color: #92c23e;
    flex-shrink: 0;
}

.footer-icon i {
    font-size: 1rem;
}

/* Colonne texte */
.footer-text {
    color: #e9edf5;
    line-height: 1.4;
}

/* Icônes font-awesome "simples" si utilisées ailleurs */
.footer-ls i.fa {
    color: #92c23e;
}

/* Liens */
.footer-ls a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-ls a:hover {
    color: #92c23e;
}

/* Liens rapides */
.footer-link {
    display: block;
    padding: 0.15rem 0;
    font-size: 0.93rem;
}

/* Bordure copyright */
.footer-border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .footer-ls {
        text-align: center;
    }
    .footer-item {
        justify-content: center;
    }
}
/* FIX OVERFLOW GLOBAL */
html, body {
    overflow-x: hidden;
}

/* MINI NAV CARDS */
.ls-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;              /* UNE seule ligne */
    overflow-x: auto;               /* scroll interne */
    padding: 10px 5px;
    scrollbar-width: none;          /* Firefox */
}

.ls-cards::-webkit-scrollbar {
    display: none;                  /* Chrome / Edge */
}

/* Boutons */
.ls-card {
    white-space: nowrap;            /* pas de retour ligne */
    flex-shrink: 0;                 /* empêche écrasement */
}
html, body { overflow-x: hidden; }
/* ===== Navbar fixe uniquement après scroll ===== */
#mainNavbar.nav-fixed-on-scroll{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: #fff;              /* même rendu qu’au début */
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Un placeholder pour éviter le "saut" quand la navbar devient fixed */
.navbar-placeholder{
  height: 0;
}
