/********** Template CSS **********/

/*** 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;
}

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

/*** Fonts ***/
.font-work-sans {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-playfair-display {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.font-dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


/*** Button ***/
.btn {
    position: relative;
    transition: .5s;
}

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

.btn-dark,
.btn-primary {
    margin: 10px;
}

.btn-primary::before,
.btn-primary::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-primary::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-primary);
    border-right: 2px solid var(--bs-primary);
}

.btn-primary::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

.btn-dark::before,
.btn-dark::after {
    position: absolute;
    content: "";
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    left: -5px;
}

.btn-dark::before {
    top: -10px;
    height: calc(100% + 20px);
    border-left: 2px solid var(--bs-dark);
    border-right: 2px solid var(--bs-dark);
}

.btn-dark::after {
    left: -10px;
    width: calc(100% + 20px);
    border-top: 2px solid var(--bs-dark);
    border-bottom: 2px solid var(--bs-dark);
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin: 0 12px;
    padding: 0;
    outline: none;
    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bs-dark);
}

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

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

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

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

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

.navbar .btn-primary {
    border-width: 2px;
    background: var(--bs-light);
}

.navbar .btn-primary:hover {
    background: var(--bs-primary);
}


/*** Hero Header ***/
.hero-header {
    background: url(../img/hero-bg.jpg) top left no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header .container {
        max-width: 100% !important;
    }

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

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

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

.header-carousel .owl-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next{
    position: relative;
    margin-left: 2px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    background: var(--bs-primary);
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: var(--bs-white);
}

.page-header {
    background: url(../img/page-header.jpg) center center no-repeat;
    background-size: contain;
}


/*** Service ***/
@media (max-width: 768px) {
    .service .service-item {
        border: none !important;
        box-shadow: 0 0 45px rgba(0, 0, 0, .05);
    }
}

@media (min-width: 992px) {
    .service .service-item.border-lg-end {
        border-right: 1px solid #dee2e6;
    }

    .service .service-item.border-lg-end-0 {
        border-right: none !important;
    }

    .service .service-item.border-lg-bottom-0 {
        border-bottom: none !important;
    }
}

.service .service-item .btn-primary {
    border-width: 2px;
    background: var(--bs-white);
}

.service .service-item .btn-primary:hover {
    background: var(--bs-primary);
}

.service .service-item img {
    width: 70px;
    margin-bottom: 20px;
}


/*** Team ***/
.team {
    position: relative;
}

.team::before {
    position: absolute;
    content: "";
    width: 200%;
    height: 200px;
    top: 50%;
    left: -50%;
    transform: translateY(-50%);
    margin-top: 1rem;
    background: var(--bs-primary);
}

.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    text-align: center;
    background: rgba(255, 255, 255, .5);
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-overlay {
    background: rgba(255, 255, 255, .9);
}

.team-overlay p {
    letter-spacing: 1px;
}

.team-overlay .btn-dark {
    border-width: 2px;
    color: var(--bs-dark);
    background: transparent;
}

.team-overlay .btn-dark:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item {
    position: relative;
}

.testimonial-carousel .owl-item::before {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .1;
}

.testimonial-carousel .owl-item img {
    position: relative;
    width: 100px;
    height: 100px;
    z-index: 1;
}

.testimonial-carousel .owl-item,
.testimonial-carousel .owl-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item span {
    letter-spacing: 2px;
}

.testimonial-carousel .owl-item.center .bg-light {
    background: var(--bs-primary) !important;
}

.testimonial-carousel .owl-item.center .bg-light * {
    color: var(--bs-dark) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
    transition: .5s;
}

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


/*** Footer ***/
@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--bs-secondary);
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}

/********** Identité visuelle Naturaïa **********/
:root {
    --bs-primary: #6F8064;
    --bs-primary-rgb: 111, 128, 100;
    --bs-dark: #354133;
    --bs-dark-rgb: 53, 65, 51;
    --bs-light: #F6F2E9;
    --bs-light-rgb: 246, 242, 233;
    --naturaia-sage: #AEBCA3;
    --naturaia-cream: #F6F2E9;
    --naturaia-sand: #D8C5A5;
    --naturaia-blush: #DFC9C0;
    --naturaia-ink: #354133;
}

body {
    background: #FBFAF6;
    color: #4C554A;
}

.text-primary { color: #6F8064 !important; }
.bg-primary { background-color: #AEBCA3 !important; }
.border-primary { border-color: #6F8064 !important; }
.bg-light { background-color: #F6F2E9 !important; }
.bg-dark { background-color: #354133 !important; }
.bg-secondary { background-color: #566353 !important; }
.text-dark { color: #354133 !important; }

.btn-primary {
    color: #fff;
    background-color: #6F8064;
    border-color: #6F8064;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
    background-color: #5D6D54;
    border-color: #5D6D54;
}
.btn-primary::before,
.btn-primary::after { border-color: #6F8064; }

.navbar-brand.bg-primary { background-color: #AEBCA3 !important; }
.navbar-brand h1 { color: #354133; letter-spacing: .5px; }
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: #6F8064; }
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active { background: #6F8064; color: #fff; }

.hero-header {
    background:
      linear-gradient(90deg, rgba(246,242,233,.96) 0%, rgba(246,242,233,.88) 42%, rgba(246,242,233,.28) 100%),
      url(../img/hero-bg.jpg) top left / cover no-repeat;
}
.page-header {
    background:
      linear-gradient(rgba(246,242,233,.88), rgba(246,242,233,.88)),
      url(../img/page-header.jpg) center / cover no-repeat !important;
}

.header-carousel img,
img[src*="about.jpg"] {
    filter: saturate(.78) contrast(.96) sepia(.05);
}

.service-item,
.naturaia-value,
.contact-card {
    transition: transform .3s ease, box-shadow .3s ease;
}
.service-item:hover,
.naturaia-value:hover,
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(53,65,51,.10);
}
.naturaia-value,
.contact-card {
    border: 1px solid rgba(111,128,100,.18);
    border-radius: 18px;
}
.service-item img { opacity: .82; }

.footer { border-top: 5px solid #AEBCA3; }
.footer .btn-link { color: rgba(255,255,255,.72); }
.footer .btn-link:hover { color: #fff; }
.footer a { color: inherit; }

.form-control:focus {
    border-color: #AEBCA3;
    box-shadow: 0 0 0 .25rem rgba(111,128,100,.15);
}

@media (max-width: 991.98px) {
    .hero-header { background: #F6F2E9; }
}

/********** Naturaïa — finition avec visuels de l'institut **********/
:root {
    --bs-primary: #91A486;
    --bs-primary-rgb: 145, 164, 134;
    --bs-dark: #3E4D40;
    --bs-dark-rgb: 62, 77, 64;
    --bs-light: #F5F2EA;
    --bs-light-rgb: 245, 242, 234;
    --naturaia-sage: #A2B294;
    --naturaia-sage-deep: #74876C;
    --naturaia-cream: #F5F2EA;
    --naturaia-rose: #E6C8C8;
    --naturaia-ink: #3E4D40;
}

body { background: #FCFBF8; color: #4A554A; }
.text-primary { color: var(--naturaia-sage-deep) !important; }
.bg-primary { background-color: var(--naturaia-sage) !important; }
.bg-light { background-color: var(--naturaia-cream) !important; }
.bg-dark { background-color: var(--naturaia-ink) !important; }
.bg-secondary { background-color: #5A695B !important; }
.text-dark { color: var(--naturaia-ink) !important; }

.naturaia-brand {
    min-width: 220px;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--naturaia-sage);
}
.naturaia-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 auto;
}
.naturaia-brand span {
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    letter-spacing: .04em;
}

.footer-brand { gap: 12px; color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-brand img { width: 70px; height: 70px; object-fit: contain; }
.footer-brand span { font-family: "Playfair Display", serif; font-size: 2.1rem; }

.navbar .btn-primary { background: #fff; color: var(--naturaia-ink); }
.navbar .btn-primary:hover { background: var(--naturaia-sage-deep); color: #fff; }

.btn-primary {
    color: #fff;
    background-color: var(--naturaia-sage-deep);
    border-color: var(--naturaia-sage-deep);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    color: #fff;
    background-color: #63765D;
    border-color: #63765D;
}
.btn-primary::before, .btn-primary::after { border-color: var(--naturaia-sage-deep); }
.btn-outline-naturaia {
    color: var(--naturaia-ink);
    border: 1px solid rgba(62,77,64,.45);
    background: rgba(255,255,255,.64);
    margin: 10px;
}
.btn-outline-naturaia:hover { color: #fff; background: var(--naturaia-ink); border-color: var(--naturaia-ink); }

.hero-header {
    background:
      linear-gradient(90deg, rgba(245,242,234,.98) 0%, rgba(245,242,234,.92) 43%, rgba(245,242,234,.20) 100%),
      url(../img/hero-bg.jpg) center / cover no-repeat;
}
.header-carousel img {
    width: 100%;
    height: 660px;
    object-fit: cover;
    filter: saturate(.9) contrast(.98);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; }

.page-header {
    position: relative;
    background:
      linear-gradient(rgba(245,242,234,.75), rgba(245,242,234,.83)),
      url(../img/page-header.jpg) center / cover no-repeat !important;
}
.page-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--naturaia-sage), var(--naturaia-rose), var(--naturaia-sage));
}
.page-header > .container { position: relative; z-index: 1; }

.about-photo {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(62,77,64,.12);
    filter: none !important;
}

.service .service-item {
    padding: 16px !important;
    background: #fff;
}
.service .service-item .service-photo {
    width: 100% !important;
    height: 210px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 22px;
    opacity: 1;
    filter: saturate(.92);
}
.service .service-item h3 { margin-top: 2px; }
.service .service-item:hover .service-photo { transform: scale(1.015); transition: transform .35s ease; }

.naturaia-value, .contact-card, .experience-card {
    border: 1px solid rgba(145,164,134,.20);
    border-radius: 20px;
    overflow: hidden;
}

.naturaia-gallery-section { background: linear-gradient(180deg, #fff 0%, #F7F4ED 100%); }
.gallery-grid > div { overflow: hidden; }
.gallery-photo {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: 18px;
    transition: transform .4s ease, box-shadow .4s ease;
    box-shadow: 0 10px 28px rgba(62,77,64,.08);
}
.gallery-photo:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 16px 36px rgba(62,77,64,.14); }

.tarifs-section { background: #F7F4ED; }
.tarifs-intro, .experience-intro { max-width: 760px; }
.tarif-card {
    display: block;
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(62,77,64,.10);
    transition: transform .3s ease, box-shadow .3s ease;
}
.tarif-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(62,77,64,.16); }
.tarif-card img { display: block; width: 100%; height: auto; border-radius: 12px; }

.experience-card { background: #fff; box-shadow: 0 12px 32px rgba(62,77,64,.08); }
.experience-card img { width: 100%; height: 240px; object-fit: cover; }
.experience-card p { color: #5D665C; }

.contact-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(62,77,64,.12);
}

.footer { border-top: 5px solid var(--naturaia-sage); }
.footer .btn.btn-link:hover { color: #fff; }
.footer .btn-primary { color: #fff; }

@media (max-width: 1199.98px) {
    .naturaia-brand { min-width: 195px; }
    .naturaia-brand span { font-size: 1.55rem; }
    .header-carousel img { height: 580px; }
}

@media (max-width: 991.98px) {
    .naturaia-brand { min-width: auto; min-height: 70px; }
    .naturaia-brand img { width: 50px; height: 50px; }
    .hero-header { background: var(--naturaia-cream); }
    .header-carousel img { height: 520px; }
    .navbar .btn-primary { margin-left: 0; }
}

@media (max-width: 575.98px) {
    .naturaia-brand { padding-left: 14px !important; padding-right: 14px !important; }
    .naturaia-brand span { font-size: 1.35rem; }
    .header-carousel img { height: 410px; }
    .hero-actions .btn { width: calc(100% - 20px); text-align: center; }
    .gallery-photo { height: 210px; }
    .service .service-item .service-photo { height: 190px; }
    .footer-brand span { font-size: 1.8rem; }
}
