/* Style personnalisé pour la navbar */
.custom-navbar {
    background-color: #004ee3;
    padding: 8px 0;
    border-radius: 35px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow-x: hidden; /* empêche tout dépassement horizontal */
    box-sizing: border-box;
}

.navbar-brand img {
    height: 40px;
    margin-left: 5px;
}

.phone-icon {
    color: #004ee3;
    font-size: 16px;
    margin-right: 5px;
}

.phone-number {
    color: #004ee3;
    text-decoration: none;
    font-weight: bold;
}

.phone-rectangle {
    color: #004ee3;
    background-color: white;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* évite que le numéro se coupe */
}

.phone-rectangle:hover {
    background-color: #004ee3;
    color: white;
    border: 2px solid white;
}

.phone-rectangle .phone-number,
.phone-rectangle .phone-number i {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.nav-link {
    color: white !important;
    font-weight: bold;
    margin: 0 10px;
    padding: 5px 10px;
}

.nav-link:hover {
    color: #d9d9d9 !important;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ---------------- RESPONSIVE ---------------- */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Adaptation mobile/tablette */
@media (max-width: 992px) {
    .custom-navbar {
        width: 95%;           /* rétrécie pour éviter le scroll */
        border-radius: 35px;
        padding: 10px;
        margin: 10px auto;    /* centrée */
    }

    .navbar-container {
        flex-wrap: wrap;
        padding: 0 10px;      /* réduit le padding latéral */
    }

    .navbar-collapse {
        margin-top: 10px;
        background-color: #004ee3;
        border-radius: 15px;
        padding: 10px;
        width: 100%;
    }

    .nav-link {
        display: block;
        margin: 8px 0;
        text-align: center;
    }

    .phone-rectangle {
        margin: 10px auto 0 auto;
        width: fit-content;
    }
}

/* Correction globale : supprime tout scroll horizontal */
body {
    overflow-x: hidden;
}
