.text-blue {
    color: rgb(155, 176, 192) !important
}

.text-grey {
    color: #1d4b80 !important;
    background-color: #ffffff !important;
}
.bg-grey {
    color: #ffffff !important;
    background-color: #1d4a7f !important;
}

.py-10 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

[class^="bi-"]::before, [class*=" bi-"]::before {
    line-height: 1.2 !important;
}

.max-width {
    max-width: 65% !important;
}

section:nth-of-type(odd), section.contact {
    color: #ffffff !important;
    background-color: #1d4a7f !important;
    background-image: url("../img/wave-c4f72d3a28b1698f2c5e601173c8a81b.svg"); /* ou wave.svg */
    background-repeat: no-repeat;
    background-position: center 100%;
    background-size: cover;
}

footer {
    background-color: #132e4a !important;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1d4a7f;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:focus {
    outline: 3px solid rgba(29,74,127,0.25);
}

.back-to-top .bi {
    font-size: 1.6rem;
}

/* Effet hover des cartes dans la section services */
.services .card {
    transition: transform 0.3s ease;
}

.services a:hover .card {
    transform: scale(1.03);
}

/* Effet hover des cartes dans la page réalisations */
#realisations .card {
    transition: transform 0.3s ease;
}

#realisations .card:hover {
    transform: scale(1.03);
}

/* Animation de la navbar */
@media (max-width: 991px) {
    .navbar-collapse {
        overflow: hidden;
        height: 0;
        transition: height 0.35s ease;
    }

    .navbar-collapse.show {
        height: auto;
    }
}

/* Carrousel dans la section Réalisation */
.carousel-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.carousel-viewport {
	overflow: hidden;
	width: 100%;
}

.carousel-track {
	display: flex;
	transition: transform 0.4s ease;
    will-change: transform;
}

.realisation-item {
	flex: 0 0 33.3333%;
	padding: 0 12px;
	box-sizing: border-box;
}

.carousel-spacer {
	flex: 0 0 33.3333%;
}

.carousel-btn {
	background: transparent;
	border: none;
	font-size: 6rem;
	cursor: pointer;
	padding: 0 12px;
	z-index: 2;
}

.carousel-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.card-img-top {
    max-height: 400px;
    object-fit: cover;
}

@media (max-width: 992px) {
	.realisation-item {
		flex: 0 0 100%;
	}
	.carousel-spacer {
		flex: 0 0 0;
	}
}

.alert {
    z-index: 1031;
}

.alert-hide {
  opacity: 0;
  transition: opacity 0.5s ease;
}