/********** Template CSS **********/
:root {
    --cjsen-blue-dark: #22445e;
    --cjsen-blue: #006B8F;
    --cjsen-turquoise: #23C1B5;
    --cjsen-turquoise-dark: #1a9e93;
    --cjsen-yellow: #F6B623;
    --cjsen-orange: #E87817;
    --cjsen-light: #F1F8FF;
    --cjsen-dark-text: #0F172B;
}


.ff-secondary {
    font-family: 'Open Sans', sans serif;
}

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

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

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/* navBar */
/* NAVBAR – version améliorée */

/* Icône mobile */
.dropdown-mobile-toggle i {
    font-size: 0.95rem;
    color: #22445e;
    transition: transform 0.3s ease, color 0.3s ease;
}

.dropdown-mobile-toggle i.rotate {
    transform: rotate(180deg);
    color: #1a2e42;
}

/* Liens navbar (desktop) */
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 20px;
    padding: 28px 0;
    font-size: 13px;
    color: #22445e !important;
    text-transform: uppercase;
    font-weight: 600;
    transition: .3s ease;
}

/* Dropdown */
.dropdown-menu {
    font-size: 12px !important;
}

/* Sticky desktop */
.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 16px 0;
}

/* Hover + active */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #F6B623 !important;
}

/* Logo desktop */
.navbar-dark .navbar-brand img {
    max-height: 80px;
    transition: .4s ease;
}

/* Logo sticky desktop */
.sticky-top.navbar-dark .navbar-brand img {
    max-height: 55px;
}

/* MOBILE */
@media (max-width: 991.98px) {

    .navbar-dark {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #ffffff !important;
        padding: 8px 0;
    }

    .navbar-dark .navbar-collapse {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
    }

    .navbar-dark .navbar-nav .nav-link,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
    }

    .navbar-dark .navbar-brand img {
        max-height: 55px !important;
    }
}

/* DESKTOP */
@media (min-width: 992px) {

    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
        background: transparent;
    }

    /* Sticky desktop */
    .sticky-top.navbar-dark {
        position: fixed;
        background: #ffffff !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    }
}

/* Défilement du texte logo sur mobile */
@media (max-width: 410px) {
    .navbar .logo-text {
        display: inline-block;      /* permet l'animation */
        white-space: nowrap;        /* texte sur une seule ligne */
        overflow: hidden;           /* cache ce qui dépasse */
        width: 200px;               /* largeur du container du texte, ajustable */
        vertical-align: middle;
        position: relative;
    }

    .navbar .logo-text span {
        display: inline-block;
        padding-left: 100%;         /* espace avant que le texte commence */
        animation: scrollLogo 10s linear infinite; /* défilement continu */
    }

    @keyframes scrollLogo {
        0%   { transform: translateX(0%); }
        100% { transform: translateX(-100%); }
    }
}
@media (max-width: 380px) {
    .navbar .logo-text {        /* cache ce qui dépasse */
        width: 130px;        
    }
}



/* Fin Navbar */



/*** 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-family: 'Nunito', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

body {
    font-family: 'Open Sans', sans-serif;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: 'Open Sans', sans-serif;

}

h1,
.h1 {
    font-weight: 400;
}

h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
p {
    font-weight: 300;
}

.display-5 {
    font-weight: 500;
}

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



/* ---------------- Hero Section ---------------- */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('../../media/1.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* colle le contenu en bas */
    text-align: center;
    overflow: hidden;
}

/* Overlay principal en bas */
.hero-section>.hero-overlay:first-child {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* sera masqué par overlay du contenu */
    background: rgba(14, 43, 69, 0.4);
    /* backdrop-filter: blur(2px); */
    z-index: 1;
}


/* Bouton hero */
.btn-hero {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, var(--cjsen-turquoise), var(--cjsen-turquoise-dark));
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

.btn-hero:hover {
    background: linear-gradient(90deg, var(--cjsen-blue-dark), var(--cjsen-turquoise-dark));
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --------------- Media Queries --------------- */

/* Tablettes */
@media (max-width: 992px) {
    .hero-section {
        height: 90vh;
    }

    .btn-hero {
        padding: 10px 30px;
        font-size: 0.9rem;
    }

    .hero-header .container {
        margin-top: 1rem !important;
    }
}

/* Mobiles */
@media (max-width: 576px) {
    .hero-header {
        padding-top: 0rem !important;
        padding-bottom: 0rem !important;
        margin-bottom: 0rem !important;
        margin-top: 2rem !important;
        height: 30vh !important;
    }

    .hero-header .container {
        margin-bottom: 1rem !important;
    }

    /* .hero-header h1, */
    .navbar .fw-bold {
        font-size: 1.2rem !important;
        letter-spacing: 0px !important;
    }

    .hero-section {
        height: 80vh;
    }

    .btn-hero {
        padding: 8px 25px;
        font-size: 0.85rem;
    }
}

@media (max-width: 450px) {
    /* .hero-header h1, */
    .navbar .fw-bold {
        font-size: 1rem !important;
    }
}

/* Hero Header fixe */
.hero-header {
    position: relative;
    height: 45vh;
    /* hauteur fixe, modifiable selon ton besoin */
    /* background: url('../../media/1.jpg') center/cover no-repeat; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* padding-bottom: 1rem !important;
    margin-bottom: 1rem !important; */
}

/* Assombrir le fond pour lisibilité */
.hero-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 43, 69, 0.6);
    /* voile sombre */
    backdrop-filter: blur(3px);
    z-index: 1;
}

/* Contenu centré */
.hero-header .container {
    position: relative;
    z-index: 5;
    margin-bottom: 0rem !important;
}

/* Texte */
.hero-header h1 {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    font-weight: 700;
}

.hero-header .breadcrumb {
    margin-top: 15px;
}

/* 
@media (max-width: 992px) {
    .hero-header .container {
        margin-bottom: 3rem !important;
    }
} */

/* Responsive */
@media (max-width: 768px) {
    /* .hero-header {
        height: 20vh;
    } */
}

/* .hero-header {
    background: url('../../media/1.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 120vh;
    position: relative;
} */

/* .hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); 
    z-index: 1;
} */

/* .hero-header img {
    animation: imgRotate 50s linear infinite;
} */

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

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--cjsen-turquoise);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--cjsen-turquoise);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--cjsen-turquoise);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Food Menu ***/
.nav-pills .nav-item .active {
    border-bottom: 2px solid var(--primary);
}


/*** Youtube Video ***/
.video {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url(../img/video.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.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: var(--primary);
    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: var(--primary);
    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(--dark);
    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;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    height: calc(100% - 5px);
    transition: .5s;
}

.team-item img {
    transition: .5s;
}

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

.team-item:hover {
    height: 100%;
}

.team-item .btn {
    border-radius: 38px 38px 0 0;
}


/*** 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(--cjsen-turquoise);
}

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

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




.apropos-header {
    position: relative;
    /* background: url('/images/banner-apropos.jpg') center/cover no-repeat; */
    color: white;
    text-align: center;
    padding: 0;
}

.apropos-header h1 {
    font-size: 3rem;
    font-weight: bold;
}

.apropos-header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.apropos-section {
    padding: 50px 0;
}

.apropos-image {
    flex: 1;
    text-align: center;
}

.apropos-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.apropos-text {
    flex: 1;
    padding: 20px;
}

.apropos-text h2 {
    color: #0b3d91;
    font-weight: bold;
    margin-bottom: 15px;
}

.apropos-text p {
    color: #555;
    line-height: 1.7;
}

.temoignages {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.temoignage {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.temoignage img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.temoignage p {
    font-style: italic;
    color: #333;
}

.temoignage h5 {
    margin-top: 10px;
    color: var(--cjsen-blue-dark);
    font-weight: bold;
}

.bg-light {
    background-color: #f9f9f9;
}
/********** Responsive Text Only **********/

/* Titres */
h1, .h1 { font-size: clamp(1.6rem, 5vw, 3rem); }
h2, .h2 { font-size: clamp(1.4rem, 4vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.2rem, 3.5vw, 2rem); }
h4, .h4 { font-size: clamp(1.1rem, 3vw, 1.7rem); }
h5, .h5 { font-size: clamp(1rem, 2.5vw, 1.4rem); }
h6, .h6 { font-size: clamp(0.9rem, 2vw, 1.2rem); }

/* Paragraphes */
p, .text-body {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
}

/* Breadcrumb */
.breadcrumb, .breadcrumb-item {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
}

/* Boutons */
.btn, .btn-hero {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

/* Section title */
.section-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
}
