/* ==========================
   TYPOGRAPHY
   ========================== */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Monserrat/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

body,
* {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px;
}

:root {
  --cursor-main: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='18' viewBox='0 0 320 512'%3E%3Cpath fill='black' d='M0 55.2L0 426c0 12.2 9.9 22 22 22c6.3 0 12.4-2.7 16.6-7.5L121.2 346l58.1 116.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9L179.8 320l118.1 0c12.2 0 22.1-9.9 22.1-22.1c0-6.3-2.7-12.3-7.4-16.5L38.6 37.9C34.3 34.1 28.9 32 23.2 32C10.4 32 0 42.4 0 55.2z'/%3E%3C/svg%3E") 0 0, auto;
}

body,
button,
input,
select,
textarea {
    cursor: var(--cursor-main);
}

input:-webkit-autofill {
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
}
input[readonly] {
    background-color: #f5f5f5 !important;
    color: #6c757d;
    pointer-events: none;
    user-select: none; 
}

textarea.form-control:focus {
    box-shadow: none;
    border-color: #ced4da; 
    background-color: inherit;
}

h1,
.h1 {
    font-size: 32px !important;
    line-height: 36px;
    letter-spacing: -0.32px;
}

h2,
.h2 {
    font-size: 24px !important;
    line-height: 28px;
    letter-spacing: -0.24px;
}

h3,
.h3 {
    font-size: 20px !important;
    line-height: 24px;
    letter-spacing: -0.2px;
}

h4,
.h4 {
    font-size: 18px !important;
    line-height: 22px;
    letter-spacing: -0.18px;
}

.body-16 {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.16px;
}

.body-14 {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.14px;
}

.caption {
    font-size: 12px;
    line-height: 20px;
    letter-spacing: -0.12px;
}


.fw-500 {
    font-weight: 500;
}

/* ==========================
   COLORS
   ========================== */
:root {
    --bs-primary: #012130;
    --bs-secondary: #46C4AF;
    --bs-info: #008BD2;
    --bs-success: #27AE60;
    --bs-warning: #E2B93B;
    --bs-danger: #EB5757;
    --bs-light: #D9DDE7;
    --bs-dark: #2F80ED;
}

.main-color {
    color: var(--primary-color);
}

.secondary-color {
    color: var(--secondary-color);
}

.main-bg {
    background-color: var(--primary-color) !important;
}

.second-bg {
    background-color: #45C4B0;
}

.gray-600 {
    color: #6B7280;
}

.gray-400 {
    color: #6b72807a;
}

.bg-secondary-subtle {
    background-color: #D1D5DB !important;
}

:root {
    --primary-color: #012130;
    --secondary-color: #4CC9B0;
    --success-color: #36D399;
    --error-color: #D93636;
    --warning-color: #F5A623;
    --info-color: #1E90FF;
    --gray-light: #F1F3F5;
    --gray-600: #6B7280;
    --gray-dark: #1E2D3D;
}

.collapse {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.collapsing {
    opacity: 0;
    /* transform: scaleY(0.99); */
}

/* ==========================
   ICONS
   ========================== */
.icon {
    width: 24px;
    height: 24px;
    fill: none;
}

.icon.filled {
    fill: #000;
    stroke: none;
}

/* ==========================
   BUTTONS
   ========================== */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    padding: 11px 20px;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color); /* <<-- bordure en permanence */
}

.btn-primary:hover, .btn:active, .btn:focus {
    background:rgba(255, 255, 255, 0.8);
    border : 1px solid var(--primary-color);
    color:var(--primary-color)!important;
}

.btn-primary:disabled {
    background-color: #9CA3AF;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #3BA691;
}

.btn-disabled {
    background: var(--gray-light);
    color: var(--gray-dark);
    cursor: not-allowed;
}

.btn-gray {
    background-color: #9CA3AF;
}

.btn-gray:hover,
.btn-gray:active {
    background-color: #767980;
}

.border-main {
    border: 1px solid var(--primary-color);
}

/* ==========================
   TEXT FIELDS
   ========================== */
.input-field {
    border: 2px solid var(--gray-dark);
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--primary-color);
}

.input-error {
    border-color: var(--error-color);
}

.input-success {
    border-color: var(--success-color);
}

/* ==========================
   DROPDOWN
   ========================== */
.dropdown:hover .dropdown-menu {
    display: block;
    right: 0;
}


/* ==========================
   PROGRESS & LOADERS
   ========================== */
.loader {
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.progress-bar {
    height: 4px;
    background: var(--gray-light);
    position: relative;
}

.progress-bar .progress {
    height: 100%;
    width: 50%;
    background: var(--primary-color);
}

.logo-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 194px;
}

/* ==========================
   FORMS
   ========================== */
.form-control.border-gray,
.btn.border-gray {
    border-color: #d3d7dd !important;
}

#togglePassword:hover,
#togglePassword2:hover {
    border-color: #9CA3AF;
}

.btn.main-bg:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: #fff;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    padding-right: 3rem;
    cursor: pointer;
}

.choices__list {
    z-index: 999 !important;
}

.choices__inner {
    background-color: inherit !important;
}

#contact .choices {
    margin-bottom: 0;
}

#contact .choices__inner {
    border: none !important;
}


.choices[data-type*="select-one"]::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    mask: url('../../img/svg/ChevronDown.svg') no-repeat center;
    -webkit-mask: url('../../img/svg/ChevronDown.svg') no-repeat center;
    pointer-events: none;
    background-color: #000;
}

.choices[data-type*="select-one"].is-open::after {
    transform: translateY(-35%) rotate(180deg);

}

.file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: calc(3rem + 2px);
    border: 1px solid #d3d7dd;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    background-color: white;
    cursor: pointer;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-icon {
    position: relative;
    flex-shrink: 0;
    color: #64748B;
    margin-right: 0.5rem;
    z-index: 1;
}

.file-placeholder {
    font-size: 14px;
    z-index: 1;
}

.file-input-wrapper label {
    display: none;
}


.file-icon-plus {
    position: absolute;
    left: 22px;
    top: 24px;
    background-color: white;
    color: #64748B;
    font-size: 0.8rem;
    font-weight: bold;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.radio-group .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0.8px solid #9CA3AF;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.radio-group .form-check-input:checked {
    border-color: var(--bs-secondary);
}


.radio-group .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .25rem #2b7a775a;
}

.form-control {
    border-color: #d3d7dd !important;
}

.dob-fields {
    min-height: 50px;
    border-color: #d3d7dd !important;
}

.dob-floating.is-floating label {
    color: rgba(var(--bs-body-color-rgb), .65);
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

.dob-part::-webkit-inner-spin-button,
.dob-part::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dob-part[type="number"] {
    -moz-appearance: textfield;
}

#convoyeur-step-3 .iban-inputs input.form-control {
padding: 0.7rem .75rem!important;
}

/* ==========================
   NAVBAR
   ========================== */
.navbar .nav-link.active {
    border-bottom: 2px solid var(--secondary-color);
}

.navbar.sticky-top {
    z-index: 1030;
}

.breadcrumb-item a,
.breadcrumb-item+.breadcrumb-item::before {
    color: #9CA3AF !important;
}

/* ==========================
   HOME
   ========================== */
/* HERO */
h1.hero-title {
    font-size: 64px !important;
    line-height: 100% !important;
}

#homepage-search-form {
    bottom: -100px;
    z-index: 999;
}

#homepage-search-form .search-form,
#convoyage-search-form .search-form {
    box-shadow: 0px 16px 32px -8px rgba(12, 12, 13, 0.4);
    height: 68px;
}

@media (min-width: 992px) {
    .position-lg-absolute {
        position: absolute !important;
    }

    .rounded-lg-start-0 {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
    @media (min-width: 992px) {
    .gap-lg-0 {
        gap: 0 !important;
    }
}


}

@media (max-width: 992px) {

    #convoyage-search-form .search-form,
    #homepage-search-form .search-form {
        height: auto !important;
    }

    .input-divider {
        border-right: none !important;
    }

    #switchVilles {
        transform: rotate(90deg);
    }
}

#homepage-search-form input,
#convoyage-search-form input,
#homepage-search-form select,
#convoyage-search-form select,
#homepage-search-form textarea,
#convoyage-search-form textarea,
#date-display-depart.has-value,
#date-display-arrivee.has-value {
    color: #000 !important;
    font-weight: 500;
}

.input-divider {
    border-right: 1px solid #4B5563;
    margin: 2px 0;
}

@media (min-width: 900px) {
    .hero-section {
        height: calc(95vh - 91px);
    }
}
@media (max-height: 700px) {
  .hero-section {
        height: calc(90vh - 91px);
    }
}


.hero-section.auto-height {
    height: auto;
}

.hero-section input:focus {
    box-shadow: none;
}

.visually-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* ATTENTION */
/* .form-floating input {
    position: relative;
    z-index: 2;
} */
.form-floating>.form-control~label::after,
.form-floating>.form-control-plaintext~label::after,
.form-floating>.form-select~label::after {
    display: none !important;
}

.search-form>div,
.search-form .form-floating,
.search-form .datetime-selects {
    height: 100%;
    display: flex;
    align-items: center;
}

.search-form .form-floating .form-control {
    height: 100%;
}

.search-form .form-floating label {
    top: 7px;
    font-size: 16px;
    transition: all 0.1s ease;
    /* inset: 0 4rem 0 0; */
    left: 15px;
}

.search-form .form-floating .form-control:focus+label,
.search-form .form-floating .form-control:not(:placeholder-shown)+label {
    top: 3px;
    font-size: 14px;
    background-color: transparent !important;
}

.search-form .datetime-selects span {
    white-space: nowrap;
}

.search-form .ville {
    min-width: 180px;
}

.datetime-selects {
    flex-direction: row;
    transition: all 0.3s ease;
}

@media (min-width: 1200px) {
    .datetime-selects {
        min-width: 262px;
    }
}

@media (max-width: 1200px) {

    #date-display-depart,
    #date-display-arrivee {
        text-transform: capitalize;
    }

    #homepage-search-form {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.real-selects select {
    opacity: 0;
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

/* Calendrier */
#daterangepicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

.daterangepicker {
    z-index: 99999 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: none;
}

.daterangepicker::before,
.daterangepicker::after {
    display: none !important;
}

@media (min-width: 750px) {
    .daterangepicker {
        min-width: 730px;
        padding: 0.5rem 1.5rem !important;
    }

    .drp-calendar.right {
        float: right !important;
    }
}

@media (max-width: 700px) {
    .daterangepicker {
        min-width: 350px;
    }
}

.daterangepicker .drp-calendar {
    max-width: none !important;
}

.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td {
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 14px;
}

.daterangepicker .calendar-table th,
.daterangepicker .calendar-table td {
    font-size: 12px !important;
    color: var(--gray-600);
    line-height: 20px !important;
    padding: 0.60rem !important;
}

.daterangepicker th.month {
    text-transform: uppercase;
    color: var(--primary-color) !important;
    font-size: 18px !important;
    text-align: left !important;
}

.daterangepicker td.in-range {
    background-color: #DAFDBA !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker td.end-date {
    background-color: var(--secondary-color) !important;
    color: #fff;
}

.daterangepicker td.available {
    font-weight: 500 !important;
    font-size: 12px !important;
}

.daterangepicker td.off.disabled {
    opacity: 0.4;
    text-decoration: none !important;
    visibility: visible !important;
}

.daterangepicker td.off {
    visibility: hidden;
}

.daterangepicker .drp-buttons {
    border-top: none;
    padding: 1rem;
    text-align: right;
    background: #fff;
}

.daterangepicker .applyBtn {
    background-color: #003F54;
    color: #fff;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-weight: bold;
}

.daterangepicker .cancelBtn {
    background-color: transparent;
    color: #333;
    border: none;
    margin-right: 1rem;
}

.calendar-time select {
    border: 1px solid #D1D5DB !important;
    background-color: #fff !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background-color: white !important;
    color: #212529 !important;
    width: auto !important;
    min-width: 50px !important;
    height: 40px !important;
    margin: 0 !important;
    display: inline-block !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.calendar-time {
    display: flex;
    align-items: center;
    gap: 5px !important;
    margin-bottom: 1rem !important;
}

.daterangepicker th:first-child:empty {
    display: none;
}


@media (max-width: 991.98px) {
    .daterangepicker {
        width: 100% !important;
        max-width: 100vw !important;
        font-size: 12px !important;
        padding: 1rem !important;
        border-radius: 1rem !important;
        overflow-y: auto;
        max-height: 100vh;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }

    .daterangepicker .drp-calendar {
        width: 100% !important;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .daterangepicker select {
        font-size: 12px !important;
        padding: 4px 6px !important;
    }

    .daterangepicker .calendar-table td,
    .daterangepicker .calendar-table th {
        padding: 4px 6px !important;
        font-size: 12px!important;
    }

    .daterangepicker .drp-buttons {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0.5rem 0;
    }

    .daterangepicker .calendar-title {
        font-size: 14px !important;
    }
    .drp-calendar.left,
    .drp-calendar.right {
        padding: 0!important;
    }
    .calendar-time {
        margin: 0!important;
    }
}

/* END CALENDRIER MOBILE */



.custom-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background-color: white;
    border: 1px solid #D1D5DB;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
}

.custom-filter-btn:hover {
    background-color: #ffffff68;
    border: 2px solid var(--bs-secondary);
}

.filter-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bs-secondary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.custom-filter-btn input:checked ~ .filter-icon {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.custom-filter-btn input:checked ~ .filter-icon svg {
    fill: var(--primary-color);
}

.custom-filter-btn:has(input:checked) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-icon .minus-icon {
    display: none;
}

.custom-filter-btn:has(input:checked) .plus-icon {
    display: none;
}

.custom-filter-btn:has(input:checked) .minus-icon {
    display: inline;
}

/* END HERO */

/* RESULTAT RECHERCHE */
@media (max-width: 991.98px) { 
  .map-sticky .sticky-top, .sticky-top.tarif-sticky {
    position: static !important;
    top: auto !important;
  }
}


#results {
    margin-top: 5rem;
}

.resultat-recherche {
    border: 1px solid #00000056;
}

.resultat-recherche:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

#convoyeurs-container {
    margin-top: 10rem;
}


@media (max-width: 992px) {
    #convoyeurs-container {
        margin-top: 0rem;
    }

    #results {
        margin-top: 0;
    }
}

.mini-card .remove-button {
    position: absolute;
    top: -36px;
    right: 10px;
}

/* ==========================
   PAGINATION
   ========================== */
.pagination-custom .page-link {
    border-radius: 4px;
    border: 1px solid #D1D5DB;
    color: #1c1c1c;
    padding: 0;
    font-weight: 600;
    background-color: #fff;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pagination-custom .page-item {
    padding: 0 5px;
}

.pagination-custom .page-item:not(.active):hover .page-link {
    background-color: #f3f4f6;
    border-color: #cfcfcf;
}

.pagination-custom .page-item.active .page-link {
    border-color: #20c997;
    color: #20c997;
    font-weight: 600;
}

.pagination-custom .page-item.disabled .page-link, .pagination-custom .page-item.disabled:hover .page-link{
    background-color: #9ba0a8;
    cursor: not-allowed;
    color: #fff;
}

/* EXEMPLE CONVOYEUR */
.trajet,
.resultat-recherche {
    transition: box-shadow 150ms ease, transform 150ms ease;
}

.trajet:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* ==========================
   FOOTER
   ========================== */

.svg-white {
    filter: brightness(0) invert(1);
}

/* ==========================
ALERTE
   ========================== */
   .custom-toast {
    position: fixed;
    right: 1rem;
    z-index: 1100;
    background-color: #CCF5D1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.75rem;
    max-width: 320px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.custom-toast .close-btn {
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 1;
    color: #55555590;
    cursor: pointer;
}

.custom-toast .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.401);
    width: 100%;
    animation: progressBar 10s linear forwards;
}

.custom-toast.cloud-fade-out {
    animation: cloudFadeOut 1s forwards cubic-bezier(.45,0,.85,1);
}

@keyframes cloudFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) blur(0px);
    }
    70% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.06) blur(1px);
    }
    100% {
        opacity: 0;
        transform: translateY(-35px) scale(1.13) blur(3px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
} 

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ==========================
  SPINNER
   ========================== */
#form-spinner-overlay {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(216, 216, 216, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
/* ==========================
   ESPACE CLIENT
   ========================== */
.btn-check:checked+.btn {
    background-color: var(--bs-secondary);
    color: white;
}

.icon-uniform {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* ==========================
   FAQ
   ========================== */
.faq-tab-btn.active {
    border-bottom: 1px solid #000;
    color: #000;
    background-color: transparent;
}

.faq-tab-btn:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.accordion-button:not(.collapsed) {
    background-color: #46c4af47;
    box-shadow: none;
    color: #000;
}

.accordion-button:focus {
    box-shadow: none;
    outline: none;
}

/* .accordion-item>.accordion-header .accordion-button {
    border-top-left-radius: var(--bs-accordion-inner-border-radius);
    border-top-right-radius: var(--bs-accordion-inner-border-radius);
} */

.accordion-item {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 4px 6px rgba(0, 0, 0, 0.08);
}

.accordion-item ul li,
.accordion-item strong {
    font-size: 14px;
}

/* ==========================
   CONTACT
   ========================== */
#contact .choices , #contact select {
    height: calc(3rem + calc(var(--bs-border-width)* 2));
    min-height: calc(3rem + calc(var(--bs-border-width)* 2));
    font-weight: 400;
    border: 1px solid #d3d7dd;
    border-radius: var(--bs-border-radius);
    position: relative;
}
#contact select {
    font-size: 14px;
}


#contact .choices__list--single {
    position: absolute;
    top: 8px;
    font-size: 14px;
    /* padding-left: 0.75rem; */
}

#contact .choices__list--dropdown .choices__item {
    position: relative;
    font-size: 14px;
}

#contact .choices__item.choices__item--selectable {
    font-size: 14px;
}

#contact .choices__list--dropdown {
    z-index: 1055 !important;
}

#contact .choices__placeholder {
    opacity: 1 !important;
}

.floating-help-text {
    font-size: 0.8rem;
    top: 2rem;
    left: 0.40rem;
    right: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    opacity: 1;
}

.form-control:focus+label+.floating-help-text,
.form-control:not(:placeholder-shown)+label+.floating-help-text {
    opacity: 0;
}

/* ==========================
   PARTICULIER ENTREPRISE
   ========================== */
#recherche-form #homepage-search-form,
#convoyage-search-form {
    bottom: -35px;
}

#homepage-search-form[data-mode="complet"] {
    bottom: -220px !important;
}

.recherche_intro section {
    padding-top: 0.5rem !important;
}

/* Mes trajets */
.nav-custom-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid transparent;
}

.nav-custom-tabs li {
    display: inline-block;
}

.tab-link {
    display: inline-block;
    padding: 8px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    position: relative;
}

.tab-link.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #002b3f;
}

.options .btn {
    pointer-events: none;
    user-select: none; 
    cursor: default;
}
/* ==========================
   MESSAGERIE
   ========================== */
.messagerie-wrapper {
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.messagerie-wrapper input[name="search"]:focus {
    box-shadow: none;
}

.conversation-item {
    transition: background-color 0.2s ease;
}

.conversation-item:hover {
    background-color: #f8f9fa;
}

.conversation-item.active {
    background-color: #D1D5DB;
}
.bulk-checkbox {
    margin-top: 0.2rem;
    flex-shrink: 0;
    z-index: 1; 
} #conversation-list {
    overflow-x: hidden!important;
}
@media (min-width: 768px) {
    .border-md-end {
        border-right: 1px solid var(--bs-border-color);
    }

    .border-md-start {
        border-left: 1px solid var(--bs-border-color);
    }
}
@media (min-width: 768px) {
  #back-to-conv.btn {
    opacity: 0;
    pointer-events: none; 
    visibility: hidden;
  }
}
/* Modale messagerie */
.bg-annulation {
    background-color: #95d5d1 !important;
}

.bg-warning {
    background-color: #E86A00 !important;
}
#paymentDetailsForm .choices__inner {
    min-height: calc(1.1rem + 0.5rem + calc(var(--bs-border-width) * 2));
    font-size: 1.25rem;
    border-radius: var(--bs-border-radius-lg);
}
.table-annulation {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
}

/* EVALUATION */
#evaluationModal .modal-dialog {
    max-width: 610px;
}

.star-rating {
    position: relative;
    display: inline-flex;
    gap: 4px;
}

.star-rating input[type="radio"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    left: -9999px;
}

.star-svg .star-full {
    display: none;
    fill: #ffc107;
}

.star-svg .star-empty {
    display: inline;
    stroke: #D1D5DB;
    fill: none;
}

.star-rating .star.hovered .star-full,
.star-rating .star.selected .star-full {
    display: inline;
}

.star-rating .star.hovered .star-empty,
.star-rating .star.selected .star-empty {
    display: none;
}

@media (max-width: 768px) {

    .messagerie-list,
    .messagerie-chat,
    .messagerie-details_trajet {
        display: none !important;
    }

    .messagerie-wrapper.show-list .messagerie-list {
        display: flex !important;
    }

    .messagerie-wrapper.show-chat .messagerie-chat {
        display: flex !important;
    }

    .messagerie-wrapper.show-details .messagerie-details_trajet {
        display: block !important;
    }
}

/* SWITCH  */
.form-switch.form-check-input,  .form-switch .form-check-input{
    width: 3rem !important;
    height: 1.5rem;
}

.form-switch.form-check-input::before {
    width: 1.25rem;
    height: 1.25rem;
    top: 0.125rem;
    left: 0.125rem;
}

.form-switch.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: #002B3F;
}

.form-switch.form-check-input:focus {
    box-shadow: none;
}

/* CONVOYEUR */
.favori {
    min-width: 330px;
}

.remove-favoris-btn,
.favoris-btn {
    cursor: pointer;
}

/* CHECKIN - CHECKOUT */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-wrapper {
    display: flex;
    align-items: center;
}

.stepper-line,
.stepper-progress-line {
    height: 2px;
    position: absolute;
    top: 18px;
    left: 43px;
    right: 42px;
    background-color: #D1D5DB;
    z-index: 0;
}

.stepper-progress-line {
    background-color: #012130;
    width: 0%;
    z-index: 1;
    transition: width 0.3s ease;
}


.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    background-color: white;
    color: #D1D5DB;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.step-line {
    height: 2px;
    background-color: #D1D5DB;
    width: 170px;
    margin: 0 10px;
}

.step-label {
    font-weight: 600;
    padding-top: 10px;
    color: #6B7280;
}

.step-item.active .step-circle {
    border-color: #012130;
    color: #012130;
}

.step-item.completed .step-circle {
    background-color: #003C5E;
    color: white;
    border-color: #003C5E;
}

.step-item.completed .step-label,
.step-item.active .step-label {
    color: #012130;
}

.custom-select-checkout {
    height: calc(3rem + 2px);
}

.marque-v {
    z-index: 999;
}

.operateur input {
    border: none;
    padding-top: 0;
    padding-bottom: 0;
}

.operateur input:focus {
    box-shadow: none;
}
.clefs input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.clefs input[type="number"] {
  -moz-appearance: textfield;
}

/* CALENDRIER MES INFOS */
.calendar-container {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 10px;
}

.nav-arrow {
    border: none;
    padding: 4px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: block;
    border-radius: 50%;
    background-color: #D1D5DB;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.nav-arrow:first-child {
    left: -15px;
}

.nav-arrow:last-child {
    right: -15px;
}


.calendar-month {
    flex-grow: 1;
    text-align: center;
    font-size: 1.25rem;
}

.calendar-navigation a {
    color: #012130;
    text-decoration: none;
    font-weight: 500;
}

.current-month {
    font-size: 1.25rem;
    font-weight: bold;
    color: #012130;
}

.calendar-table {
    border-spacing: 0.5rem;
    text-align: center;
    margin: 0 auto;
}

.calendar-table th {
    font-weight: 500;
    padding: 0.5rem;
    color: #6B7280;
    font-size: 12px;
}

.calendar-table td {
    /* padding: 1rem; */
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    position: relative;
}

.calendar-table td:not(.mission):not(.indisponible):hover {
    background-color: #f0f0f0;
}

.calendar-table td.mission {
    background-color: #45C4B0;
    color: #FFF;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-table td.mission:hover {
    background-color: #379f93;
}

/* ➕ Effet sur les plages sélectionnées (indispos ou autres) */
.calendar-table td.selected:hover,
.calendar-table td.indisponible:hover {
    filter: brightness(0.95);
    cursor: not-allowed;
}

.calendar-table td.indisponible {
    background-color: #f6d5d5;
    color: #861919;
    font-weight: 600;
}

.calendar-table td.selected {
    background-color: #BA000033;
    color: #000;
}

.calendar-table td.selected.selected-start,
.calendar-table td.selected.selected-end,
.calendar-table td.indisponible-start,
.calendar-table td.indisponible-end {
    background-color: #BA0000;
    color: #FFF;
}

.calendar-table td.selected.selected-start,
.calendar-table td.selected.selected-end,
.calendar-table td.mission-start,
.calendar-table td.mission-end {
    color: #FFF;
}

.calendar-table td.selected.selected-start,
.calendar-table td.mission-start,
.calendar-table td.indisponible-start {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.calendar-table td.mission-end,
.calendar-table td.selected.selected-end,
.calendar-table td.indisponible-end {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.calendar-table td.mission-start,
.calendar-table td.mission-end {
    background-color: #45C4B0;
}


#calendar-form .btn {
    margin-top: 1rem;
    width: 100%;
}

.calendar-navigation a::before,
.calendar-navigation a::after {
    font-size: 1rem;
}

.calendar-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-box {
    display: flex;
    width: 48px;
    height: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.legend-box span {
    flex: 1;
    height: 100%;
}

.mission-left {
    background-color: #45C4B0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.mission-center {
    background-color: #45C4B0;
}

.mission-right {
    background-color: #45C4B0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.indispo-left {
    background-color: #BA0000;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.indispo-center {
    background-color: #BA000033;
}

.indispo-right {
    background-color: #BA0000;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.delete-indispo-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    border: 1px solid #982020;
    background: #fff;
    color: #982020;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.delete-indispo-btn:hover {
    background: #f8d7da;
}

@media screen and (max-width: 775px) {
    .calendar-container {
        padding: 1.5rem;
    }

    .calendar-month {
        font-size: 1rem;
    }

    .calendar-table th {
        font-size: 0.8rem;
        padding: 0.3rem;
    }

    .calendar-table td {
        padding: 0.7rem;
        font-size: 0.85rem;
        width: 32px;
        height: 32px;
    }

    .nav-arrow {
        width: 32px;
        height: 32px;
        top: 50%;
    }

    .nav-arrow:first-child {
        left: -13px;
    }

    .nav-arrow:last-child {
        right: -13px;
    }


    .legend-item {
        font-size: 0.75rem;
    }

    .legend-box {
        width: 28px;
        height: 12px;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .calendar-container .d-flex.mt-4 {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* LOCALISATION */
.custom-range {
    -webkit-appearance: none;
    height: 6px;
    background: #6B7280;
    border-radius: 4px;
    outline: none;
    width: 100%;
    transition: background 0.15s ease-in-out;
}

.custom-range:focus {
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background-color: black !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    margin-top: 0px;
    border: none;
    box-shadow: none;
}

.custom-range::-moz-range-thumb {
    background-color: black !important;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}


#range-value-display {
    top: -20px;
    font-size: 14px;
}

/* GRILLE TARIFAIRE */
.grille-tarifaire-form .table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.grille-tarifaire-form .table thead tr:first-child th {
    background-color: #e6f1ef;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    border: none;
}

.grille-tarifaire-form th svg {
    vertical-align: middle;
}


.grille-tarifaire-form .table thead tr:first-child th:first-child {
    visibility: hidden;
}

.grille-tarifaire-form .table thead tr:first-child th:nth-child(2) {
    border-top-left-radius: 10px;
}

.grille-tarifaire-form .table thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

.grille-tarifaire-form .table thead tr:nth-child(2) th {
    background-color: #F3F4F6;
    font-weight: 500;
    padding: 1rem 0.5rem;
    border: none;
}

.grille-tarifaire-form .table thead tr:nth-child(2) th:nth-child(3),
.grille-tarifaire-form .table thead tr:nth-child(2) th:nth-child(4) {
    background-color: #fff;

}

.grille-tarifaire-form .table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    text-align: center;
    border: none;
}

.grille-tarifaire-form .table tbody td:first-child {
    background: #fff;
    font-weight: 600;
    text-align: left;
    color: #111;
    white-space: nowrap;
    padding-left: 1rem;
}

.grille-tarifaire-form .table th:nth-child(2),
.grille-tarifaire-form .table th:nth-child(3),
.grille-tarifaire-form .table td:nth-child(2),
.grille-tarifaire-form .table td:nth-child(3) {
    background-color: #F3F4F6;
}

.grille-tarifaire-form .table th:nth-child(4),
.grille-tarifaire-form .table th:nth-child(5),
.grille-tarifaire-form .table td:nth-child(4),
.grille-tarifaire-form .table td:nth-child(5) {
    background-color: #fff;
}

.grille-tarifaire-form .table th:nth-child(6),
.grille-tarifaire-form .table th:nth-child(7),
.grille-tarifaire-form .table td:nth-child(6),
.grille-tarifaire-form .table td:nth-child(7) {
    background-color: #F3F4F6;
}

.grille-tarifaire-form .table tbody td:first-child {
    background: #fff;
    font-weight: 500;
    text-align: left;
    color: #111;
    white-space: nowrap;
    padding-left: 1rem;
    border-left: 1px solid #e0e0e0;
    border-right: none;
}

.grille-tarifaire-form .table tbody tr:first-child td:first-child {
    border-top: 1px solid #e0e0e0;
    border-top-left-radius: 10px;
}

.grille-tarifaire-form .table tbody tr:last-child td:first-child {
    border-bottom: 1px solid #e0e0e0;
    border-bottom-left-radius: 10px;
}

.grille-tarifaire-form .table tbody tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

.grille-tarifaire-form .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.grille-tarifaire-form .table input[type="number"] {
    max-width: 80px;
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
    border: 1px solid #1d1f1f;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

.grille-tarifaire-form .form-switch .form-check-input {
    width: 3rem !important;
    height: 1.5rem !important;
}
.overlay-disabled {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.75); 
  z-index: 10;
  cursor: not-allowed;
}

.table-grille-tarifaire input {
    border: 1px solid #002B3F!important;
}
.table-grille-tarifaire input[readonly] {
    background-color: #f9f9f9;
    pointer-events: auto;
    outline: none;
    box-shadow: none;
    border: none!important;
}

.bg-default-tarif {
    background-color: #ccfaff !important;
}
.bg-hors-plage {
    background-color: #ffd6d6 !important;
}
.bg-tarif-recommande {
    background-color: #d7f7d7 !important;
}
.bg-tarif-correct {
    background-color: #ffe1b3 !important;
}
.tooltip-inner {
    font-size: 0.800rem; 
    padding: 0.6rem 0.85rem; 
    background-color: #012130; 
    color: #fff;
    border-radius: 0.4rem;
    min-width: 150px;
}


@media (max-width: 991px) {
    .grille-tarifaire-form .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .grille-tarifaire-form .table input[type="number"] {
        max-width: 60px;
        font-size: 13px;
        padding: 0.15rem 0.2rem;
    }

    .grille-tarifaire-form .table thead th {
        font-size: 13px;
        padding: 0.5rem;
    }

    .grille-tarifaire-form .table tbody td {
        font-size: 13px;
        padding: 0.5rem;
    }

    .grille-tarifaire-form th svg {
        width: 14px;
        height: 14px;
    }
}

/* LEGAL */
#legalTabs .nav-link {
    background: none;
    border: none;
}

.legal-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}

@media (max-width: 1199.98px) {
    .overflow-x-lg {
        overflow-x: auto;
    }
}

@media (min-width: 1200px) {
    .overflow-x-lg {
        overflow-x: visible;
    }
}
