/* Extracted from index.html - main site styles */

body {
    box-sizing: border-box;
}

* {
    font-family: 'Montserrat', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #E9F1FF 0%, #BCD6FF 100%);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 118, 255, 0.1) 0%, rgba(144, 187, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: 0;
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(33, 118, 255, 0.3);
}


.card-hover>* {
    position: relative;
    z-index: 1;
}

/* Enhanced lift effect on hover/focus for attention */
.card-hover {
    will-change: transform, box-shadow;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    cursor: pointer;
}

/* Apply only on devices that support hover */
@media (hover: hover) and (pointer: fine) {

    .card-hover:hover,
    .card-hover:focus-within {
        transform: translateY(-14px) scale(1.02);
        box-shadow: 0 30px 60px rgba(33, 118, 255, 0.14);
    }

    .card-hover:active {
        transform: translateY(-6px) scale(0.998);
        box-shadow: 0 18px 40px rgba(33, 118, 255, 0.12);
    }
}

/* Ensure keyboard users see a focus outline */
.card-hover:focus-within {
    outline: 3px solid rgba(33, 118, 255, 0.12);
    outline-offset: 6px;
}

.btn-primary {
    background: #2176FF;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1a5cd8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(33, 118, 255, 0.3);
}

.btn-secondary {
    background: #90BBFF;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7aa9f0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    margin: 2rem auto;
    box-shadow: 0 25px 50px rgba(33, 118, 255, 0.3);
    animation: slideUp 0.4s ease;
}

.modal-header {
    background: linear-gradient(135deg, #2176FF 0%, #90BBFF 100%);
    /* increase vertical breathing room so the H2 doesn't touch the bottom */
    padding: 3.5rem 2rem;
    /* padding: 3rem; */
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: 300;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 2rem 2.5rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    /* remove extra vertical padding so flex centering is consistent */
    /* padding: 0rem; */
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.whatsapp-field {
    display: none;
}

.loader {
    border: 4px solid #E9F1FF;
    border-top: 4px solid #2176FF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.success-modal {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(33, 118, 255, 0.3);
    animation: slideUp 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #BCD6FF;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #2176FF;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h4 {
    color: #2176FF;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555555;
    line-height: 1.6;
}

.detail-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2176FF;
    font-weight: 700;
}

.nav-link.active {
    color: #2176FF !important;
    font-weight: 700 !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2176FF;
    border-radius: 2px;
}

#mobile-menu .nav-link.active::after {
    bottom: 0;
    height: 2px;
}

.nav-link:hover {
    color: #2176FF !important;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2176FF;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 118, 255, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
}

.scroll-to-top:hover {
    background: #1a5cd8;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(33, 118, 255, 0.5);
}

.scroll-to-top.show {
    display: flex;
}

/* Carousel Styles */
.hero-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;

}

.carousel-slide {
    /* width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; */

    width: 100%;
    height: 70vh;
    min-height: 420px;
    max-height: 720px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 118, 255, 0.9) 0%, rgba(188, 214, 255, 0.85) 100%);
    z-index: 1;
}

.carousel-slide img {
    /* position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; */

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.carousel-content {
    /* position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    color: white; */

    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;

}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.carousel-btn {
    background: white;
    color: #2176FF;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1.125rem 3rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    align-self: flex-start;

    /* display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: unset;
    padding: 0.85rem 2.5rem; */
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.carousel-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.carousel-list li {
    font-size: 1.25rem;
    padding: 0.75rem 0;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.6;
}

.carousel-list li i {
    position: absolute;
    left: 0;
    top: 0.75rem;
    font-size: 1.5rem;
    color: white;
}

.carousel-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 2.5rem;
}

.carousel-service-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-service-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background: white;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}


@media (max-width: 992px) {
    .carousel-content {
        padding: 2rem 1rem;
    }

    .carousel-title {
        font-size: 2.25rem;
    }

    .carousel-subtitle {
        font-size: 1.125rem;
    }

    .carousel-slide {
        min-height: 500px;
    }

    .card-hover {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        min-height: 500px;
    }

    .carousel-title {
        font-size: 2.25rem;
    }

    .carousel-subtitle {
        font-size: 1.125rem;
    }

    .carousel-list li {
        font-size: 1.05rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }
}

/* Global Bootstrap-friendly overrides */
:root {
    --primary: #2176FF;
    --secondary: #90BBFF;
    --surface: #E9F1FF;
    --text: #333333;
    --navbar-height: 80px;
    /* default fixed navbar height */
}

/* Container helper to replace many inline max-width blocks */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

/* Responsive grid helper used across sections */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

/* Card styling consistent with Bootstrap look */
.card-hover {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(33, 118, 255, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-hover img {
    border-radius: 12px;
}

/* Make service & modal images responsive and limit their height for better layout */
.service-image,
.modal-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* Tighter carousel for smaller screens NO LONGER NEEDED HERE as managed by specific media queries above */


/* Buttons consistent with Bootstrap spacing */
.btn-primary,
.btn-secondary {
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    box-shadow: none;
}

.btn-secondary {
    background: var(--secondary);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

/* Forms and inputs Keep appearance clean and consistent with Bootstrap */
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #BCD6FF;
    border-radius: 8px;
    box-shadow: none;
    font-size: 0.95rem;
}

/* Modal sizing tweaks */
.modal-overlay .modal-content {
    max-width: 900px;
}

/* Scroll to top button improvements */
.scroll-to-top {
    right: 24px;
    bottom: 24px;
}

/* Utility to center section content using container-custom */
section>.container-custom {
    padding-top: 0;
    padding-bottom: 0;
}

/* Reusable small helper for centered cards */
.center-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-content {
        padding: 2rem 1rem;
    }

    .carousel-title {
        font-size: 2.25rem;
    }

    .carousel-subtitle {
        font-size: 1.125rem;
    }

    .carousel-slide {
        min-height: 360px;
    }

    .card-hover {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .modal-content {
        margin: 0.75rem;
        max-height: 92vh;
    }

    .carousel-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .grid-responsive {
        gap: 1rem;
    }
}

/* Final override to guarantee lift effect on .card-hover */
.card-hover {
    transform-origin: center;
    -webkit-transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform, box-shadow;
}

@media (hover: hover) and (pointer: fine) {

    .card-hover:hover,
    .card-hover:focus-within {
        transform: translateY(-16px) scale(1.03) !important;
        box-shadow: 0 34px 80px rgba(33, 118, 255, 0.14) !important;
        z-index: 5 !important;
    }

    .card-hover:active {
        transform: translateY(-6px) scale(0.998) !important;
        box-shadow: 0 18px 40px rgba(33, 118, 255, 0.12) !important;
    }
}

.card-hover:focus-within {
    outline: 3px solid rgba(33, 118, 255, 0.12) !important;
    outline-offset: 6px !important;
}

/* Responsive adjustments: desktop / tablet / mobile */
@media (min-width: 1200px) {
    :root {
        font-size: 16px;
    }

    .container-custom {
        padding: 2rem 1.5rem;
    }

    section {
        padding: 6rem 1.5rem !important;
    }

    .carousel-slide {
        min-height: 700px;
    }

    .carousel-title {
        font-size: 4rem;
    }

    .carousel-subtitle {
        font-size: 1.5rem;
    }

    #services-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        font-size: 15px;
    }

    section {
        padding: 5rem 1rem !important;
    }

    .carousel-slide {
        min-height: 600px;
    }

    .carousel-title {
        font-size: 3rem;
    }

    #services-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    :root {
        font-size: 15px;
    }

    section {
        padding: 4rem 1rem !important;
    }

    .carousel-slide {
        min-height: 520px;
    }

    .carousel-title {
        font-size: 2.25rem;
    }

    #services-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .card-hover {
        padding: 1.25rem !important;
    }
}

@media (max-width: 767px) {
    :root {
        font-size: 14px;
    }

    body {
        font-size: 14px;
    }

    section {
        padding: 2.25rem 1rem !important;
    }

    .carousel-slide {
        min-height: 360px !important;
    }

    .carousel-title {
        font-size: 1.6rem !important;
    }

    .carousel-subtitle {
        font-size: 1rem !important;
    }

    .carousel-content {
        padding: 1.5rem !important;
    }

    .carousel-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .card-hover {
        padding: 1rem !important;
        margin-bottom: 0.75rem;
    }

    .service-image,
    .modal-image {
        max-height: 220px !important;
        height: auto !important;
    }

    #services-container {
        grid-template-columns: 1fr !important;
    }

    #accueil>div>div {
        grid-template-columns: 1fr !important;
    }

    .modal-content {
        margin: 0.6rem !important;
        width: calc(100% - 2rem) !important;
        max-height: 92vh !important;
    }

    .navbar-brand span {
        font-size: 1rem !important;
    }

    .carousel-indicators {
        bottom: 14px !important;
    }
}

/* Make images truly responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure large modals don't overflow on small screens */
.modal-overlay {
    padding: 0.75rem !important;
}

/* Improve touch targets on mobile */
/* .btn-primary,
.btn-secondary,
.carousel-btn {
    min-height: 44px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
} */

/* Utility to collapse long text on small screens */
.carousel-subtitle,
.carousel-title {
    word-break: break-word;
}

/* End of extracted styles */

/* Additional small view-transition rule */
@view-transition {
    navigation: auto;
}

/* Page loader styles */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity .35s cubic-bezier(0.22, 1, 0.36, 1), visibility .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo img {
    width: 436px;
    height: auto;
    margin-bottom: 30px;
}

.loader-animation {
    display: flex;
    align-items: flex-end;
    padding-bottom: 6px;
    justify-content: center;
    gap: 10px
}

.loader-animation .container {
    --uib-size: 56px;
    --uib-color: var(--primary, #2176FF);
    --uib-speed: 0.95s;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 140px;
    height: calc(var(--uib-size)*0.6)
}

.loader-animation .cube {
    flex-shrink: 0;
    width: calc(var(--uib-size)*0.28);
    height: calc(var(--uib-size)*0.28);
    animation: jump var(--uib-speed) cubic-bezier(0.22, 1, 0.36, 1) infinite
}

.loader-animation .cube__inner {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 25%;
    background-color: var(--uib-color);
    transform-origin: center bottom;
    animation: morph var(--uib-speed) cubic-bezier(0.22, 1, 0.36, 1) infinite;
    transition: background-color .12s ease
}

.loader-animation .cube:nth-child(2) {
    animation-delay: calc(var(--uib-speed) * -0.36)
}

.loader-animation .cube:nth-child(2) .cube__inner {
    animation-delay: calc(var(--uib-speed) * -0.36)
}

.loader-animation .cube:nth-child(3) {
    animation-delay: calc(var(--uib-speed) * -0.2)
}

.loader-animation .cube:nth-child(3) .cube__inner {
    animation-delay: calc(var(--uib-speed) * -0.2)
}

@keyframes jump {
    0% {
        transform: translateY(0px)
    }

    30% {
        transform: translateY(0px);
        animation-timing-function: ease-out
    }

    50% {
        transform: translateY(-260%);
        animation-timing-function: ease-in
    }

    75% {
        transform: translateY(0px);
        animation-timing-function: ease-in
    }
}

@keyframes morph {
    0% {
        transform: scaleY(1)
    }

    10% {
        transform: scaleY(1)
    }

    20%,
    25% {
        transform: scaleY(0.6) scaleX(1.3);
        animation-timing-function: ease-in-out
    }

    30% {
        transform: scaleY(1.15) scaleX(0.9);
        animation-timing-function: ease-in-out
    }

    40% {
        transform: scaleY(1)
    }

    70%,
    85%,
    100% {
        transform: scaleY(1)
    }

    75% {
        transform: scaleY(0.8) scaleX(1.2)
    }
}

/* Logo pulse to draw attention */
.loader-logo {
    animation: pulse 1.25s ease-in-out infinite
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Ensure mobile navbar retains white background when expanded */
@media (max-width: 991px) {

    .navbar.bg-white,
    .navbar.bg-white .navbar-collapse {
        background-color: #ffffff !important;
    }

    /* Add slight separation and inner padding for the expanded menu */
    .navbar.bg-white .navbar-collapse {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        padding: 0.75rem 1rem;
    }

    /* Ensure links remain readable against white background */
    /* .navbar.bg-white .nav-link {
        color: #333333 !important;
    } */
}

/* Fix: ensure carousel top isn't hidden behind fixed navbar on small screens */
@media (max-width: 768px) {

    /* mobile-specific navbar height override */
    :root {
        --navbar-height: 80px;
    }

    /* .hero-carousel {
        margin-top: 55px;
    } */

    /* .hero-carousel {
        padding-top: var(--navbar-height);
    } */

}



/* Apply navbar height variable to header and offset main across all sizes */
header .navbar.fixed-top {
    height: var(--navbar-height) !important;
}

@media (max-width: 767px) {
    .carousel-slide {
        height: 70vh !important;
        min-height: 500px !important;
        max-height: 600px !important;
        padding-top: 0;
        padding-bottom: 0;
        align-items: center;
    }

    .carousel-control {
        display: none !important;
    }

    .carousel-content {
        padding: 2rem 1.25rem;
    }

    .carousel-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .carousel-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Transform standard carousel services to compact list on mobile */
    .carousel-services {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin: 1.5rem 0 2rem !important;
    }

    .carousel-service-item {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        padding: 0.75rem 1rem !important;
        gap: 1rem !important;
        justify-content: flex-start !important;
    }

    .carousel-service-item i {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
        width: 30px;
        /* Fixed width for alignment */
        text-align: center;
    }

    .carousel-service-item p {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    .brand-logo {
        height: 23px !important;
        width: auto;
    }

    .loader-logo img {
        width: 236px;
        height: auto;
        margin-bottom: 20px;
    }
}

/* Base logo class */
.brand-logo {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.brand-logo:hover {
    transform: scale(1.02);
}

/* Password visibility toggle */
.password-field-container {
    position: relative;
}
.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    transition: color 0.2s;
    padding: 5px;
}
.password-toggle-icon:hover {
    color: #2176FF;
}
.form-control.with-password-toggle {
    padding-right: 45px;
}

/* --- BLOC 2 : STYLE DU SÉLECTEUR (CONTACT) --- */
/* Assure que le sélecteur a le même style que les inputs du formulaire de contact */
.selector-contact .selector-display {
    background: #f0f4f8 !important;
    border: none !important;
    border-radius: 12px !important;
    height: 50px !important;
}
/* État focus du sélecteur */
.selector-contact .selector-display.active {
    border: 2px solid #BCD6FF !important;
    box-shadow: 0 0 0 4px rgba(188, 214, 255, 0.25) !important;
}
/* --- BLOC 3 : COMPOSANT PREMIUM SELECTOR (COEUR) --- */
.premium-selector {
    position: relative;
    width: 120px;
    z-index: 100;
}
.selector-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #BCD6FF;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    height: 48px;
}
.selector-display:hover {
    border-color: #2176FF;
    background: #f8fbff;
}
.selector-display i {
    margin-left: auto;
    font-size: 0.8rem;
    color: #90BBFF;
    transition: transform 0.2s ease;
}
.selector-display.active i {
    transform: rotate(180deg);
}
.selector-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 180px;
    background: #fff;
    border: 1px solid #BCD6FF;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(33, 118, 255, 0.15);
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
}
.selector-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.selector-option:hover {
    background: #E9F1FF;
}
.selector-option .fi {
    width: 20px;
    border-radius: 2px;
}
/* Barre de défilement personnalisée pour les options */
.selector-options::-webkit-scrollbar {
    width: 6px;
}
.selector-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.selector-options::-webkit-scrollbar-thumb {
    background: #BCD6FF;
    border-radius: 10px;
}