.bg-theme1 {
    background-color: #c6cef3;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
p,
a {
    font-family: "Montserrat", sans-serif;
}

.navbar-nav .nav-link {
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 15px;
    font-weight: 500;
}

/* carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #222 !important;
    border-radius: 50%;
    opacity: 0.85;
}

.card {
    border-radius: 0 !important;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    border-right: 1px solid #ccc;
}

.navbar-nav .nav-item:last-child .nav-link::after {
    display: none;
}

.search-icon {
    font-size: 1.2rem;
    color: #003366;
}

.sous-titre {
    color: #0d4c80;
    font-size: 22px;

}

.carousel-box p,
.carousel-box p * {
    color: #444 !important;
}

.texte-blct {
    font-size: 16px;
    color: #444;
}

@media (max-width: 991px) {
    .titre-blct {
        font-size: 40px;
    }
}

.card-img-hover {
    transition: transform 0.7s, box-shadow 0.3s;
    cursor: pointer;
}

.card-img-hover:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

#services {
    margin-top: 0px;
}

#apropos {
    margin-top: 0px;
}

#realisations {
    margin-top: 60px;
}

.carousel-item {
    height: 25rem;
    background: #000;
}

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

@media (max-width: 767.98px) {
    .carousel-item {
        height: 10rem;
    }
}

.carousel-box {
    background: rgba(253, 251, 251, 0.7);
    padding: 40px 30px;
    border-radius: 0px;
    box-shadow: none;
    display: inline-block;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .carousel-box {
        padding: 8px 2vw;
        max-width: 99vw;
        font-size: 13px;
    }

    .carousel-caption {
        bottom: 45%;
        transform: translateY(55%);
    }

    .carousel-box h2 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }

    .carousel-box p {
        margin-bottom: 0.7rem;
    }

    .carousel-box a.btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.95rem;
    }
}

.ligne-bleue {
    width: 100%;
    height: 8px;
    background: #0d4c80;
    margin: 0;
    padding: 0;
}

.breadcrumb {
    justify-content: center;
    font-size: 0.9rem;
}

/* s-accueil */
.card-face .sous-titre {
    font-family: "Montserrat", sans-serif;
}

.service-card {
    overflow: hidden;
}

.service-card .front-face {
    position: relative;
}

.service-card .image-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    /* background: rgba(0, 102, 204, 1);*/
    background: rgba(2, 76, 150, 0.95);
    mix-blend-mode: normal;
    transition: height 1s ease;
    z-index: 1;
}

.service-card:hover .image-overlay {
    height: 100%;
}

.service-card .overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    color: #ffffff;
    z-index: 2;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.service-card:hover .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay {
    mix-blend-mode: multiply;
    transition: all 0.5s ease;
}

.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transition: all 0.8s ease;
}

.service-card:hover .shine-effect {
    left: 100%;
}

/* Animation */
@keyframes fadeInUpScale {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* transparence */
.card-face {
    border-radius: 0px;
    overflow: hidden;
}

.front-face img {
    filter: brightness(0.95);
}
/* fin s-accueil */


/* realisations accueil*/
.lg-backdrop {
    background: rgba(0, 0, 0, 0.9) !important;
}

.realisations-page {
    padding-top: 90px;
    padding-bottom: 90px;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

.realisations-title {
    color: #ffffff;
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 60px;
}

.realisation-item {
    padding: 15px;
}

.realisation-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.realisation-img-container {
    height: 259px;
    overflow: hidden;
}

.realisation-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.realisation-card:hover .realisation-img {
    transform: scale(1.05);
}

.realisation-hover-content {
    position: absolute;
    z-index: 12;
    top: 0;
    left: 0;
    background-color: transparent;
    height: 200%;
    width: 100%;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all ease-in-out 0.5s;
}

.realisation-card:hover .realisation-hover-content {
    visibility: visible;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.realisation-link {
    color: #fff !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    border: 3px solid #ffffff;
    padding: 12px 30px;
    border-radius: 20px;
    transition: all ease-in 0.4s;
    text-decoration: none;
}

.realisation-link:hover {
    color: #0d4c80 !important;
    background-color: #ffffff;
}

.realisation-main-link {
    color: #fff !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    border: 3px solid #ffffff;
    padding: 12px 30px;
    border-radius: 20px;
    transition: all ease-in 0.4s;
    text-decoration: none;
}

.realisation-main-link:hover {
    color: #0d4c80 !important;
    background-color: #ffffff;
}

.parent .img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}
/* fin realisation accueil */

/* about */

.about-image {
    max-height: 500px;
    width: 105%;
    object-fit: cover;
}

.bg-section {
    background-color: #9cb9f75b;
}

.underline {
    border: none;
    height: 4px;
    width: 60px;
    background-color: #555;
}

/* fin about */

/* services */
.section-titre {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: #4e5255;
    margin-bottom: 3rem;
    position: relative;
    text-align: left;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.section-titre::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: #6c757d;
}

.article-card {
    background: white;
    border-radius: 0px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-image-container {
    width: 100%;
    height: 180px;
    min-height: 180px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    width: 100%;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem 2rem;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Montserrat", sans-serif;
}

.article-title {
    font-family: "Montserrat", sans-serif;
}

.article-content h5 {
    font-family: "Montserrat", sans-serif;
}

.article-divider {
    width: 40px;
    height: 1px;
    background-color: #99b7f0;
    margin: 1.5rem auto;
}

.section-descriptions {
    color: #4a4a4b;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0;
    margin-bottom: 3rem;
}

.services-section {
    padding: 4rem 0;
}
/* fin services */


/* debut realisation */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-img-container:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 76, 150, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    transition: bottom 1s ease;
}

.gallery-card:hover .gallery-overlay {
    bottom: 0;
}

.gallery-plus {
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

/* Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.gallery-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
}

.gallery-caption {
    margin-top: 1rem;
    color: #fff;
    font-size: 1rem;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    /* -webkit-user-select: none; */
    user-select: none;
}

.gallery-close {
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
}

.gallery-prev {
    left: -40px;
}

.gallery-next {
    right: -40px;
}
/* fin realisation */



/* devis */
body,
.section-title,
.section-intro,
.contact-info,
.contact-item,
.contact-title,
.contact-details,
.form-section,
.form-title,
.form-subtitle,
.form-control,
.form-select,
.btn-submit,
.info-section,
.info-title,
.info-subtitle,
.map-placeholder,
.cover-link,
.cover-arrow {
    font-family: "Montserrat", sans-serif !important;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.contact-section {
    background-color: #f8f9fa;
    padding: 30px 0 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    margin-top: 0.2rem;
    color: #333;
}

.contact-info {
    text-align: center;
    margin-bottom: 12px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 15px;
}

.contact-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-details {
    color: #666;
    line-height: 1.6;
}

.form-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    margin-top: 0px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.form-subtitle {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-select {
    background-color: white;
    /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); */
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.info-section {
    background: white;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0px;
}

.info-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.info-subtitle {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 0px;
    overflow: hidden;
    margin-top: 8px;
}

.map-placeholder {
    background: linear-gradient(30deg, #e3f2fd, #bbdefb);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 1.2rem;
    font-weight: 200;
}

.cover-section {
    position: relative;
    height: 220px;
}

/* .cover-img {

} */

.cover-overlay {
    pointer-events: none;
    transition: background 0.3s;
}

@media (max-width: 768px) {
    .cover-section {
        height: 120px;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-section,
    .info-section {
        padding: 30px 20px;
    }

    .contact-icon {
        font-size: 2.5rem;
    }
}

.section-intro {
    margin-bottom: 1.5rem;
}

.section-intro .fw-semibold {
    letter-spacing: 0.5px;
}

.fade-in-intro {
    opacity: 0;
    animation: fadeInIntro 1.2s ease-in forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInIntro {
    to {
        opacity: 1;
    }
}

.cover-link {
    color: #014b99 !important;
}

.cover-link:hover {
    text-decoration: underline;
    color: #ffffff !important;
}

.cover-arrow {
    color: #0056b3 !important;
}

/* fin devis */

/* contact */

.contact-section {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 2.5rem 2vw;
    background: none;
    background-color: #f8f9fa;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(13, 76, 128, 0.07);
    padding: 1.5rem 1rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.info-icon {
    font-size: 2.2rem;
    color: #0d4c80;
    margin-bottom: 0.5rem;
}

.info-title {
    font-weight: 700;
    color: #0d4c80;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.info-text {
    color: #333;
    font-size: 1rem;
    word-break: break-word;
}

.contact-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(13, 76, 128, 0.07);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 1rem;
}

.form-title {
    font-weight: 700;
    color: #0d4c80;
    margin-bottom: 0.2rem;
}

.form-desc {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    background: #f9fafb;
    transition: border 0.2s;
}

.form-control:focus {
    border: 1.5px solid #0d4c80;
    outline: none;
    background: #fff;
}

.btn-blue {
    background: #0d4c80;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(13, 76, 128, 0.08);
}

.btn-blue:hover,
.btn-blue:focus {
    background: #23a6d5;
    color: #fff;
}

.map-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(13, 76, 128, 0.07);
    padding: 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map {
    width: 100%;
    min-height: 700px;
    border: none;
    border-radius: 12px;
}

.btn-red {
    background: #0d4c80;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(13, 76, 128, 0.08);
    transition: background 0.2s, transform 0.2s;
}

.btn-red:hover,
.btn-red:focus {
    background: #23a6d5;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991px) {
    .contact-section {
        padding: 1.2rem 0.2rem;
    }

    .map {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .info-card {
        min-height: 120px;
        padding: 1rem 0.5rem;
    }

    .contact-form-card,
    .map-card {
        padding: 1rem 0.5rem;
    }

    .map {
        min-height: 160px;
    }
}
/* fin contact */
