/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&family=Rubik:wght@400;600;700&family=Inter:wght@400;600;700&display=swap');

/* Application des polices */
body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Rubik', sans-serif;
}

#main {
    margin-top: 0;
}

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
    background-color: #ffffff;
}

/* ======= GENERAL ======= */
.custom-top-header {
    background-color: #063464;
    padding: 0.25rem 2rem;
    position: sticky;
    /* Keep this if you want the very top bar to stick too, but usually it scrolls away */
    top: 0;
    /* If you want it sticky */
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-green {
    color: #94CA50 !important;
}

.small {
    font-size: 14px;
    font-family: "Inter", sans-serif;
    line-height: 1.4;
}

.custom-top-header a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}


/* ======= SOCIAL ICONS ======= */
.social-icon {
    background-color: #94CA50;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #1682E2 !important;
}

/* ======= MAIN MENU ======= */
.custom-main-menu {
    background-color: #ffffff;
    font-weight: 600;
    font-family: "Rubik", sans-serif;
    padding: 15px 0;
    position: sticky;
    /* This is key for the sticky behavior */
    top: 0;
    /* This makes it stick to the very top of the viewport when it becomes sticky */
    z-index: 1020;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
    /* Smooth transition when its 'top' position changes */
}

.custom-main-menu .navbar-nav>li>a {
    color: #05213F;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    text-decoration: none;
}

.custom-main-menu .navbar-nav>li>a:hover,
.custom-main-menu .navbar-nav>li>a:focus,
.custom-main-menu .navbar-nav>li>a.active {
    color: #94CA50;
}

.logo-text img {
    max-height: 50px;
}

.btn-contactez-nous {
    background-color: #94CA50;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-contactez-nous:hover {
    background-color: #1682E2;
}

/* ======= BURGER MENU ======= */
.navbar-toggler {
    border: solid 1px #94CA50;
    border-radius: 5px;
    padding: 0.35rem 0.65rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2394CA50' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    transition: all 0.3s;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231682E2' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ======= OFF-CANVAS MENU (MOBILE) ======= */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #94CA50;
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
    }

    .custom-main-menu {
        top: 0;
        /* Sticks to very top on mobile for simplicity */
    }

    .custom-main-menu .navbar-nav>li>a {
        color: white !important;
        padding: 10px 15px;
        border-radius: 5px;
    }

    .custom-main-menu .navbar-nav>li>a:hover,
    .custom-main-menu .navbar-nav>li>a:focus,
    .custom-main-menu .navbar-nav>li>a.active {
        background-color: #1682E2;
        color: white !important;
        font-weight: 600;
    }

    .navbar-nav {
        gap: 8px !important;
    }

    .small {
        font-size: 11px;
    }
}

/* ======= DROPDOWN ======= */
.dropdown-menu {
    background-color: #94CA50;
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.dropdown-menu>li>a {
    color: #fff !important;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: background 0.3s, color 0.3s;
}

.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus,
.dropdown-menu>li>a.active {
    background-color: #1682E2;
    color: #fff !important;
    font-weight: 600;
}

/* ======= RESPONSIVE (General Adjustments) ======= */
@media (max-width: 991px) {
    .btn-contactez-nous {
        display: none;
        /* Hide contact button on small screens */
    }

    .logo-text {
        margin: 0;
        order: 0;
    }

    .custom-top-header .container-fluid {
        gap: 1rem;
        justify-content: center;
    }

    .soc-icon {
        display: none !important;
        /* Hide social icons on small screens */
    }

    .navbar-collapse {
        text-align: center;
    }
}