/* Custom styles for the header */

header {
    position: relative; /* Change from absolute to relative */
}
header .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure navbar is above the swiper */
    padding-left: 15px;  /* Add horizontal padding */
    padding-right: 15px;
}

header .navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020; /* Higher than other elements to ensure it stays on top */
    width: 100%;
    background-color: #314f71;
    -webkit-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease; /* Smooth transition for any background changes */
}

/* Or if you want the padding to be responsive like Bootstrap containers */
@media (min-width: 576px) {
    header .navbar {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 992px) {
    header .navbar {
        padding-left: 60px;
        padding-right: 60px;
    }
}


.booking-calendar-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  -webkit-box-shadow: 0 4px 12px rgba(0,0,0,0.1);
          box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background-color: #f0f0f0;
}

.calendar-day.selected {
  background-color: #0d6efd;
  color: white;
}

.calendar-day.disabled, .calendar-day.weekend {
  color: #ccc;
  cursor: not-allowed;
}

.calendar-day.today {
  border: 2px solid #0d6efd;
}

.calendar-day.empty {
  cursor: default;
}

.weekday-weekend {
  color: #dc3545;
}

.time-slot {
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.disable-prev .fc-prev-button {
    pointer-events: none;
    opacity: 0.65;
}

.disable-next .fc-next-button {
    pointer-events: none;
    opacity: 0.65;
}

.disabled-day .fc-day-top {
    opacity: 0.6;
    pointer-events: none;
    background-color: #f1f1f1;
    color: #999;
}
.fc-today-button {
    visibility: hidden !important;
}

.service-card {
    -webkit-transition: -webkit-transform 0.3s ease,
        -webkit-box-shadow 0.3s ease;
    transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;

    -webkit-transition: -webkit-transform 0.3s ease,
        -webkit-box-shadow 0.3s ease;

    -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;

    transition: transform 0.3s ease, box-shadow 0.3s ease,
        -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
    height: 100%;
}
.service-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service-img {
    height: 200px;
    -o-object-fit: cover;
    object-fit: cover;
}
.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.7);
}
.service-duration {
    color: #6c757d;
    font-weight: 500;
}
.btn-checkout {
    background-color: #e11d48;
    border-color: #e11d48;
}
.btn-checkout:hover {
    background-color: #be123c;
    border-color: #be123c;
}
.section-title {
    position: relative;
    margin-bottom: 50px;
}
.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100px;
    height: 3px;
    background-color: #e11d48;
}
.card .card-img-top {
    height: 350px; /* or any fixed height you prefer */
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}
.fixed-height {
    height: 200px; /* Adjust to preferred height */
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

header .navbar-toggler {
    z-index: 1001; /* Ensure the toggler is clickable */
}

/* Swiper to be displayed behind the header */
#swiper1 {
    position: relative;
    z-index: 0; /* Ensures it stays under the header */
}

/* Position the button in the same spot as before */
.fixed-button {
    position: absolute;
    top: 70%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 10; /* Make sure the button is above the Swiper */
}
.hero-section-accueil {
    background: url("/assets/images/back.png") center center no-repeat;
    background-size: cover;
    height: 100vh;
    position: relative;
    color: #fff;
    background-position: center;
}
.hero-section-accueil1 {
    background: url("/assets/images/paris.png") center center no-repeat;
    background-size: cover;
    height: 100vh;
    position: relative;
    color: #fff;
    background-position: center;
}
.hero-section-accueil2 {
    background: url("/assets/images/back3.png") center center no-repeat;
    background-size: cover;
    height: 100vh;
    position: relative;
    color: #fff;
    background-position: center;
}

.hero-section-apropos {
    background: url("/assets/images/a-propos.png") center center no-repeat;
    min-height: 600px;
    position: relative;
    color: #fff;
    background-position: center;
    background-size: cover;
}
.hero-section-services {
    background: url("/assets/images/nos-services.png") center center no-repeat;
    min-height: 600px;
    position: relative;
    color: #fff;
    background-attachment: local;
    background-size: auto;
    background-position: 65% 0%;
}
.hero-section-droits-de-societes {
    background: url("/assets/images/droits-de-societes.png") center center
        no-repeat;
    min-height: 600px;
    position: relative;
    color: #fff;
    background-size: cover;
}
.hero-section-droits-des-contrats {
    background: url("/assets/images/droits-des-contrats.png") center center
        no-repeat;
    min-height: 600px;
    position: relative;
    color: #fff;
    background-size: auto;
}
.hero-section-assurance-construction {
    background: url("/assets/images/assurance-construction.png") center center
        no-repeat;
    min-height: 800px;
    position: relative;
    color: #fff;
    background-attachment: local;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-section-risques-industriels {
    background: url("/assets/images/assurance-risques-industriels.png") center
        center no-repeat;
    min-height: 600px;
    position: relative;
    color: #fff;
    background-size: cover;
}
.hero-section-mard {
    background: url("/assets/images/mard.png") center center no-repeat;
    min-height: 600px;
    position: relative;
    color: #fff;
    background-size: cover;
}

.hero-section-contact {
    background: url("/assets/images/contact.png") center center no-repeat;
    background-size: cover;
    min-height: 600px;
    position: relative;
    color: #fff;
    background-position: center;
}
.hero-section-article {
    background: url("/assets/images/articles.png") center center no-repeat;
    min-height: 600px;
    position: relative;
    color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
}
.hero-content p {
    font-size: 1.25rem;
}
.fixed-height-img {
    height: 200px; /* Set desired height */
    -o-object-fit: cover;
    object-fit: cover; /* Ensures the image fills the space without distortion */
    width: 100%;
}
.card {
    position: relative;
    overflow: hidden;
    height: 300px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    border: none;
    border-radius: 8px;
}

.card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
}

/* Image styles */
.card-img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-filter: brightness(0.7);
    filter: brightness(0.7);
    -webkit-transition: -webkit-filter 0.3s ease;
    transition: -webkit-filter 0.3s ease;
    transition: filter 0.3s ease;
    transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}

.card:hover .card-img {
    -webkit-filter: brightness(0.5);
    filter: brightness(0.5);
}

/* Overlay content */
.card-img-overlay {
    background-color: rgba(30, 58, 95, 0.1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1.5rem;
}

.card-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Link styles */
.card-link {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: white;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.card:hover .card-link {
    opacity: 1;
}

.card-link i {
    font-size: 1.2rem;
}

.service-card {
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    height: 100%;
}
.service-card:hover {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
}
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}
.service-card .card-img-top {
    height: 200px; /* Adjust height as needed */
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}


.nav-link {
    color: #fff !important;
    margin-right: 15px;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
}

.service-image {
    height: 350px; /* Set a fixed height */
    -o-object-fit: cover;
    object-fit: cover; /* Maintain aspect ratio and cover the container */
    width: 100%; /* Ensure the image takes full width of its container */
}

.card-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.card-text {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1; /* Allow the text to grow and push the content to the bottom */
}
.overlay-text {
    position: absolute;
    bottom: -30px;
    left: 15px;
    right: 15px;
    background-color: #c9964c;
    color: #ffff;
    z-index: 1;
    margin-bottom: 30px;
    margin-left: -3px;
    margin-right: -2px;
    padding: 37px 0px 40px 20px;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff !important;
}
.testimonial-stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.accordion-button:not(.collapsed) {
    background-color: #c9964c;
    color: #ffffff;
}
.accordion-button::after {
    content: "+";
    background-image: none !important;
    font-size: 1.5rem;
    font-weight: lighter;
}
.accordion-button:not(.collapsed)::after {
    content: "−";
    -webkit-transform: rotate(0);
    transform: rotate(0);
}
.accordion-button:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}
.form-control {
    border: none;
    border-bottom: 1px solid #ced4da;
    border-radius: 0;
    padding-left: 0;
}
.form-control:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #9a8c68;
}
.btn-submit {
    background-color: #9a8c68;
    color: white;
    padding: 10px 30px;
    border: none;
}
.btn-submit:hover {
    background-color: #867a5a;
}
@media (min-width: 576px) {
    .overlay-text {
        margin-left: 38px;
        margin-right: 38px;
    }
}
@media (min-width: 768px) {
    .overlay-text {
        margin-left: 127px;
        margin-right: 127px;
    }
}
@media (min-width: 992px) {
    .overlay-text {
        margin-left: 210px;
        margin-right: 38px;
    }
}
@media (min-width: 1200px) {
    .overlay-text {
        margin-right: 88px;
    }
}
@media (min-width: 1400px) {
    .overlay-text {
        margin-right: 18px;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Ensure content is pushed down when the navbar expands */
    .collapse.show + .hero-section-accueil,
    .collapse.show + .hero-section-accueil1,
    .collapse.show + .hero-section-accueil2 {
        margin-top: 350px; /* Adjust depending on the height of the expanded nav */
    }
}
@media (min-width: 992px) {
    .custom-width {
        max-width: 800px;
        margin: 0 auto;
    }
}
.droit-contat {
    background-image: url("/assets/images/contrats-commerciaux.jpg");
    background-size: cover;
    background-position: center;
    min-height: 700px; /* Adjust this height based on your layout */
    color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.style1 {
    background-size: auto;
    background-position: 50% 30%;
}

