html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem black;
}


html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 9px;
}

.nav-barre {
    margin-top: 10px;
}

.dropbtn {
    background-color: black;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropbtn {
    background-color: #04AA6D;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
}


.dropdown {
    position: relative;
    display: inline-block;
}


.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}


    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }


        .dropdown-content a:hover {
            background-color: #ddd;
        }


.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: black;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: black;
        }

.show {
    display: block;
}

.1_24 {
    overflow: hidden;
}

.e1_24 {
    background-color: rgba(255, 255, 255, 1);
    width: 1440px;
    height: 1024px;
    position: absolute;
}

.e1_25 {
    background-color: rgba(0, 0, 0, 1);
    width: 1647px;
    height: 200px;
    position: absolute;
    left: 0px;
    top: -109px;
}

.e1_26 {
    color: rgba(255, 255, 255, 1);
    width: 147px;
    height: 51px;
    position: absolute;
    left: 56px;
    top: 28px;
    font-family: Inter;
    text-align: left;
    font-size: 25px;
    letter-spacing: 0;
}

.e1_27 {
    color: rgba(255, 255, 255, 1);
    width: 147px;
    height: 51px;
    position: absolute;
    left: 512px;
    top: 35px;
    font-family: Inter;
    text-align: left;
    font-size: 20px;
    letter-spacing: 0;
}

.e1_28 {
    color: rgba(255, 255, 255, 1);
    width: 190px;
    height: 51px;
    position: absolute;
    left: 322px;
    top: 35px;
    font-family: Inter;
    text-align: left;
    font-size: 20px;
    letter-spacing: 0;
}

.e1_58 {
    color: rgba(255, 255, 255, 1);
    width: 190px;
    height: 51px;
    position: absolute;
    left: 227px;
    top: 35px;
    font-family: Inter;
    text-align: left;
    font-size: 20px;
    letter-spacing: 0;
}

.e1_87 {
    transform: rotate(2.4848083448933725e-17deg);
    width: 1440.005615234375px;
    height: 0px;
    position: absolute;
    left: 0px;
    top: 157px;
}

.1_87 {
    border: 1px solid rgba(0, 0, 0, 1);
}

.e1_89 {
    color: rgba(0, 0, 0, 1);
    width: 436px;
    height: 49px;
    position: absolute;
    left: 25px;
    top: 108px;
    font-family: Inter;
    text-align: left;
    font-size: 24px;
    letter-spacing: 0;
}

.logo {
    height: 50px;
    width: auto;
}

.exportOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 9998;
}

.exportPopup {
    display: none;
    position: fixed;
    top: 30%;
    left: 35%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 9999;
}

.exportMessage {
    font-weight: bold;
    margin-bottom: 15px;
}

.spinnerCustom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ccc;
    border-top: 3px solid #337ab7;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 8px;
}

.toggleDiv {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toggleLabel {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0;
}

.toggleSlider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
    border-radius: 24px;
}

.toggleSliderBackgroundColorTrue {
    background-color: #4CAF50 ;
}
.toggleSliderBackgroundColorFalse {
    background-color: #ccc;
}
.toggleKnob {
    position: absolute;
    height: 18px;
    width: 18px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggleKnobLeftTrue {

    left: 26px;
   
}
.toggleKnobLeftFalse {
    left: 3px;
}

.status-0 {
    color: #A6A6A6;
}

.status-1 {
    color: #A6A6A6;
}

.status-2 {
    color: #00B050;
}

.status-3 {
    color: #9966FF;
}

.status-4 {
    color: #FF0000;
}

.status-5 {
    color: #E2EFDA;
}

.status-6 {
    color: #FF0000;
}

.status-7 {
    color: #A9D08E;
}

.status-8 {
    color: #E2EFDA;
}

.status-9 {
    color: #92D050;
}

.status-10 {
    color: #99FF99;
}

.status-11 {
    color: #99FF99;
}

.status-12 {
    color: #E2EFDA;
}

.status-13 {
    color: #FFC000;
}

.status-14 {
    color: #92D050;
}

.status-15 {
    color: #92D050;
}

.status-16 {
    color: #92D050;
}

.status-17 {
    color: #FF0000;
}
.boxSectionLightBlue {
    background-color: lightblue;
}

.boxSectionLightPink {
    background-color: lightpink;
}
.boxSectionLightYellow {
    background-color: lightyellow;
}
.boxSectionLightGreen {
    background-color: lightgreen;
}
.boxSectionLightGrey {
    background-color: lightgrey;
}
.d-none{
    display:none;
}

.page[b-et4yiwlxo2] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-et4yiwlxo2] {
    flex: 1;
}

.sidebar[b-et4yiwlxo2] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-et4yiwlxo2] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-et4yiwlxo2] a, .top-row[b-et4yiwlxo2] .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row[b-et4yiwlxo2] a:hover, .top-row[b-et4yiwlxo2] .btn-link:hover {
            text-decoration: underline;
        }

        .top-row[b-et4yiwlxo2] a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .top-row[b-et4yiwlxo2] {
        justify-content: space-between;
    }

        .top-row[b-et4yiwlxo2] a, .top-row[b-et4yiwlxo2] .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page[b-et4yiwlxo2] {
        flex-direction: row;
    }

    .sidebar[b-et4yiwlxo2] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-et4yiwlxo2] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-et4yiwlxo2] a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-et4yiwlxo2], article[b-et4yiwlxo2] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-et4yiwlxo2] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-et4yiwlxo2] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.navbar-toggler[b-ecem7d7yd6] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-ecem7d7yd6] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-ecem7d7yd6] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ecem7d7yd6] {
    font-size: 1.1rem;
}

.bi[b-ecem7d7yd6] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-ecem7d7yd6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-ecem7d7yd6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-ecem7d7yd6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu[b-ecem7d7yd6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-ecem7d7yd6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-ecem7d7yd6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-ecem7d7yd6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-ecem7d7yd6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.nav-item[b-ecem7d7yd6] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type[b-ecem7d7yd6] {
    padding-top: 1rem;
}

.nav-item:last-of-type[b-ecem7d7yd6] {
    padding-bottom: 1rem;
}

.nav-item[b-ecem7d7yd6] .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
}

.nav-item[b-ecem7d7yd6] a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-ecem7d7yd6] .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-ecem7d7yd6] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-ecem7d7yd6] {
    display: block;
}

.navbar-logo {
    height: 1em;
    width: auto;
    vertical-align: middle;
}

@media (min-width: 641px) {
    .navbar-toggler[b-ecem7d7yd6] {
        display: none;
    }

    .nav-scrollable[b-ecem7d7yd6] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/*== STYLES GÉNÉRAUX - Liste Chantier ==*/
.main-container {
    padding: 2rem 1rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.modal-visible {
    display: block !important;
}

/*== EN-TÊTE ==*/
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
}

    .header-section h2 {
        color: white !important;
        font-size: 2rem;
        font-weight: 700;
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.heading-underline {
    height: 4px;
    width: 80px;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 0.75rem;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/*== TOOLBAR SECTION ==*/
.toolbar-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/*== BOUTONS D'ACTION PRINCIPAUX ==*/
.btn-fancy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.025rem;
}

    .btn-fancy i {
        display: inline-flex;
        align-items: center;
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    .btn-fancy:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    .btn-fancy:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }

    .btn-fancy.btn-success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

        .btn-fancy.btn-success:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
        }

    .btn-fancy.btn-info {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

        .btn-fancy.btn-info:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        }

    .btn-fancy.btn-outline-info {
        background: white;
        color: #3b82f6;
        border: 2px solid #3b82f6;
        box-shadow: none;
    }

        .btn-fancy.btn-outline-info:hover {
            background: #3b82f6;
            color: white;
        }

/*== BARRE DE RECHERCHE ==*/
.search-container {
    width: 100%;
}

.search-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .search-group:focus-within {
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
        border-color: #3b82f6;
    }

    .search-group .input-group-text {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        padding: 0.75rem 1rem;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100%;
    }

        .search-group .input-group-text i {
            font-size: 1.1rem;
            line-height: 1;
            display: block;
        }

.search-input {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background-color: #fff;
}

    .search-input:focus {
        background-color: #fff;
        outline: none;
        box-shadow: none;
    }

    .search-input::placeholder {
        color: #94a3b8;
    }

/*== SECTION ARCHIVES ==*/
.section-header {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

    .section-header h4 {
        display: inline-flex;
        align-items: center;
        font-weight: 700;
        color: #475569;
        margin: 0;
    }

        .section-header h4 i {
            margin-right: 0.5rem;
            font-size: 1.25rem;
        }

    .section-header:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #3b82f6 0%, transparent 100%);
        border-radius: 2px;
    }

/*== BOUTONS D'ARCHIVE ==*/
.archive-years {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.archive-year-btn {
    font-weight: 600;
    min-width: 90px;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

    .archive-year-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .archive-year-btn.btn-light {
        background-color: white;
        color: #475569;
        border-color: #e2e8f0;
    }

        .archive-year-btn.btn-light:hover {
            border-color: #3b82f6;
            color: #3b82f6;
        }

    .archive-year-btn.btn-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

/*== CARTES DE CHANTIERS ==*/
.chantier-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    height: 100%;
    display: flex;
    margin-top: 1rem;
    flex-direction: column;
}

    .chantier-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
        border-color: #cbd5e1;
    }

.card-header {
    padding: 1rem 1.25rem;
    border: none;
    background: white;
    border-bottom: 2px solid #f1f5f9;
}

    .card-header.active {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        border-bottom-color: #6ee7b7;
    }

    .card-header.archived {
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        border-bottom-color: #cbd5e1;
    }

    .card-header span:first-child {
        font-size: 0.875rem;
        font-weight: 600;
    }

    .card-header .badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.025rem;
    }

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*== INFO CARD ==*/
.card-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

    .info-row:last-child {
        margin-bottom: 0;
    }

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 6px;
    flex-shrink: 0;
}

.info-row strong {
    color: #475569;
    margin-right: 0.35rem;
}

.info-row span {
    color: #64748b;
}

/*== ACTIONS DES CARTES ==*/
.card-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

    .action-row:last-child {
        margin-bottom: 0;
    }

    .action-row.single-action {
        grid-template-columns: 1fr;
    }

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    white-space: nowrap;
}

    .action-btn i {
        display: inline-flex;
        align-items: center;
        margin-right: 0.4rem;
        font-size: 0.95rem;
    }

    .action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .action-btn:active {
        transform: translateY(0);
    }

    .action-btn.btn-primary {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
    }

    .action-btn.btn-warning {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
    }

    .action-btn.btn-success {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
    }

    .action-btn.btn-info {
        background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
        color: white;
    }

    .action-btn.btn-danger {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: white;
    }

    .action-btn.btn-black {
        background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
        color: white;
    }

/*== OVERLAY DE CHARGEMENT ==*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.loading-content {
    text-align: center;
    max-width: 350px;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loading-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-bottom: 1rem;
}

    .loading-icon i {
        font-size: 3rem;
    }

.loading-content h5 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.loading-content p {
    color: #64748b;
    margin-bottom: 0;
}

.spinner-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.progress-bar {
    border-radius: 4px;
}

/*== RESPONSIVE - Liste Chantier ==*/
@media (max-width: 991px) {
    .main-container {
        padding: 1.5rem 0.75rem 2rem;
    }

    .header-section {
        padding: 2rem 1.5rem;
    }

    .toolbar-section {
        padding: 1.25rem;
    }

    .action-group {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .header-section h2 {
        font-size: 1.5rem;
    }

    .btn-fancy {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .action-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem;
    }

        .action-btn i {
            margin-right: 0.25rem;
        }
}