@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Orbitron:wght@400..900&display=swap");

:root {
    --bs-primary: #009fe3 !important;
    --bs-secondary: #163c82 !important;
    --bs-primary-rgb: 0, 159, 227 !important;
    --bs-secondary-rgb: 22, 60, 130 !important;
}

.color-secondary {
    color: var(--bs-secondary) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Orbitron" !important;
}

p,
a,
td,
th,
span,
i,
b,
div,
label,
input,
input::-webkit-input-placeholder {
    font-family: "Nunito Sans" !important;
}

#kt_aside,
#kt_aside_logo {
    background-color: #04448b !important;
}

.menu-aside-link {
    background-color: #04448b !important;
    border: none !important;
}

.btn-primary {
    background-color: #04448b !important;
}

.text-primary {
    color: #04448b !important;
}

.ki-outline {
    color: white !important;
}

.img-login {
    width: 80% !important;
}
select.form-control,
span.select2-selection {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300448B' d='M1.41.59 6 5.17l4.59-4.58L12 1l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 0.65rem;
    padding-right: 2.5rem;
}

.nocursor {
    cursor: default !important;
}

.ged-accordion .accordion-item {
    border: none;
    background: transparent;
}

.ged-accordion .accordion-button {
    background: transparent;
    box-shadow: none;
    padding: 1rem 0;
    font-size: 20px;
    font-weight: 600;
    color: inherit;
    border: 0;
}

.ged-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.ged-accordion .accordion-button::after {
    content: "+";
    background-image: none;
    transform: none;
    font-size: 40px;
    font-weight: 500;
    width: auto;
    height: auto;
    margin-left: auto;
}

.ged-accordion .accordion-button:not(.collapsed)::after {
    content: "-";
    background-image: none;
    transform: none;
    font-size: 50px;
    font-weight: 500;
    width: auto;
    height: auto;
    margin-left: auto;
}

.ged-accordion .accordion-body {
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.ged-accordion .accordion-item:last-child .accordion-body {
    border-bottom: none;
}

@media (min-width: 1650px) {
    .img-login {
        width: 80vh !important;
    }
}

.ged-create-input-fixed .form-control,
.ged-update-input-fixed .form-control {
    height: 42px;
}

.ged-create-input-fixed,
.ged-update-input-fixed {
    min-height: 78px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#ged-create-file-upload-container,
#ged-create-link-container,
#update-file-upload-container,
#update-link-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 78px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#ged-create-link-container .form-control,
#update-link-container .form-control {
    height: 42px;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#ged-create-file-upload-container .form-label,
#ged-create-link-container .form-label,
#update-file-upload-container .form-label,
#update-link-container .form-label {
    display: flex;
    align-items: center;
    min-height: 21px;
    margin-bottom: 0.5rem;
}

.ged-category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: var(--bs-gutter-x, 1.5rem);
    row-gap: var(--bs-gutter-y, 1.5rem);
    margin-top: var(--bs-gutter-y, 1.5rem);
}

.ged-category-card {
    width: calc((100% - (5 * var(--bs-gutter-x, 1.5rem))) / 6);
}

@media (max-width: 1200px) {
    .ged-category-card {
        width: calc((100% - (2 * var(--bs-gutter-x, 1.5rem))) / 3);
    }
}

@media (max-width: 992px) {
    .ged-category-card {
        width: calc((100% - var(--bs-gutter-x, 1.5rem)) / 2);
    }
}

@media (max-width: 576px) {
    .ged-category-card {
        width: 100%;
    }
}

.ged-preview-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    aspect-ratio: 210 / 297;
}

.ged-preview-card img,
.ged-preview-card .ged-preview-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.ged-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    background: rgba(27, 70, 139, 0.74);
    color: #fff;
    transition: opacity 0.2s ease-in-out;
    text-align: center;
    padding: 1rem;
}

.ged-preview-card:hover .ged-preview-overlay {
    opacity: 1;
}

.ged-preview-name {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}


.ged-preview-overlay .ged-overlay-icon {
    font-size: 2rem;
}

.ged-category-dropdown {
    padding: 0;
    border: 0;
    background: transparent;
}

.ged-category-toggle-btn.form-select {
    height: 42px;
    border: 1px solid var(--bs-gray-300, #dbdfe9);
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-secondary-color, #3f4254);
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ged-category-toggle-btn .ged-category-label-create,
.ged-category-toggle-btn .ged-category-label-update {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ged-category-toggle-btn.form-select:hover,
.ged-category-toggle-btn.form-select:active,
.ged-category-toggle-btn.form-select.show,
.show > .ged-category-toggle-btn.form-select {
    color: var(--bs-secondary-color, #3f4254);
    background-color: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-gray-300, #dbdfe9) !important;
    box-shadow: none !important;
    outline: none;
}

.ged-category-toggle-btn.form-select:focus,
.ged-category-toggle-btn.form-select:focus-visible {
    border: 1px solid var(--bs-gray-400, #c4cada) !important;
    box-shadow: none !important;
    outline: none;
}

.ged-category-dropdown .dropdown-menu {
    border-radius: 0.475rem;
    background-color: var(--bs-body-bg, #fff);
    margin-top: 0.25rem;
}

#kt_modal_create .ged-category-dropdown .dropdown-menu.w-100.p-3,
#kt_modal_create .ged-category-dropdown .dropdown-menu.w-100.p-3.show,
#kt_modal_update .ged-category-dropdown .dropdown-menu.w-100.p-3,
#kt_modal_update .ged-category-dropdown .dropdown-menu.w-100.p-3.show {
    --bs-dropdown-border-width: 1px;
    --bs-dropdown-border-color: #000;
    --bs-dropdown-box-shadow: none;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    color: var(--bs-gray-700, #4b5675) !important;
    box-shadow: none !important;
    filter: none !important;
}

.ged-category-dropdown .dropdown-menu.show {
    box-shadow: none !important;
}

.ged-category-dropdown .dropdown-menu .form-check-input {
    border: 1px solid var(--bs-gray-300, #dbdfe9);
    box-shadow: none !important;
}

.ged-category-dropdown .dropdown-menu .form-check-label,
.ged-category-dropdown .dropdown-menu .form-check,
.ged-category-dropdown .dropdown-menu {
    color: var(--bs-gray-700, #4b5675) !important;
}

.ged-category-dropdown .dropdown-menu .form-check-input:focus,
.ged-category-dropdown .dropdown-menu .form-check-input:active {
    border: 1px solid var(--bs-gray-400, #c4cada);
    box-shadow: none !important;
    outline: none;
}

.ged-create-input-fixed input[type="file"].form-control,
.ged-update-input-fixed input[type="file"].form-control,
#ged_create_file_previewImage input[type="file"].form-control,
#update-preview-upload-container input[type="file"].form-control {
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.ged-create-input-fixed input[type="file"].form-control::file-selector-button,
.ged-update-input-fixed input[type="file"].form-control::file-selector-button,
#ged_create_file_previewImage
    input[type="file"].form-control::file-selector-button,
#update-preview-upload-container
    input[type="file"].form-control::file-selector-button {
    margin: -0.375rem 0.75rem -0.375rem -0.75rem;
    padding: 0.55rem 0.85rem;
    border: 0;
    border-right: 1px solid var(--bs-border-color, #dbdfe9);
    background-color: var(--bs-light, #f9f9f9);
    color: var(--bs-secondary-color, #3f4254);
    box-shadow: none;
    outline: none;
    transition: none;
}

.ged-create-input-fixed
    input[type="file"].form-control::file-selector-button:hover,
.ged-update-input-fixed
    input[type="file"].form-control::file-selector-button:hover,
#ged_create_file_previewImage
    input[type="file"].form-control::file-selector-button:hover,
#update-preview-upload-container
    input[type="file"].form-control::file-selector-button:hover,
.ged-create-input-fixed
    input[type="file"].form-control::file-selector-button:focus,
.ged-update-input-fixed
    input[type="file"].form-control::file-selector-button:focus,
#ged_create_file_previewImage
    input[type="file"].form-control::file-selector-button:focus,
#update-preview-upload-container
    input[type="file"].form-control::file-selector-button:focus,
.ged-create-input-fixed
    input[type="file"].form-control::file-selector-button:active,
.ged-update-input-fixed
    input[type="file"].form-control::file-selector-button:active,
#ged_create_file_previewImage
    input[type="file"].form-control::file-selector-button:active,
#update-preview-upload-container
    input[type="file"].form-control::file-selector-button:active {
    background-color: var(--bs-light, #f9f9f9);
    color: var(--bs-secondary-color, #3f4254);
    box-shadow: none;
    outline: none;
}

.titleDashboard {
    font-family: "Orbitron" !important;
}

.ged-user-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: var(--bs-gutter-x, 1.5rem);
    row-gap: var(--bs-gutter-y, 1.5rem);
}

.ged-user-category-card {
    width: 100%;
}

@media (max-width: 1200px) {
    .ged-user-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .ged-user-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .ged-user-category-grid {
        grid-template-columns: 1fr;
    }
}

.ged-user-preview-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    aspect-ratio: 210 / 297;
}

.ged-user-preview-card img,
.ged-user-preview-card .ged-user-preview-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.ged-user-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    background: rgba(27, 70, 139, 0.74);
    color: #fff;
    transition: opacity 0.2s ease-in-out;
    text-align: center;
    padding: 1rem;
}

.ged-user-preview-card:hover .ged-user-preview-overlay {
    opacity: 1;
}

.ged-user-preview-name {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}


.ged-user-preview-overlay .ged-overlay-icon {
    font-size: 2rem;
}

/* offer/_form.html.twig — sélection du rack system et de l'aménagement */
.item-rack-system.active img {
    border: 2px solid #3EB1E8;
}

/* offer/_form.html.twig — le champ client est habillé en Select2, qui masque le <select>
   d'origine : sans ça, la classe Bootstrap "is-invalid" posée dessus reste invisible. */
#form-customer.is-invalid + .select2-container .select2-selection {
    border-color: #dc3545 !important;
}

.img-container {
    position: relative;
    display: inline-block;
}

.img-container .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #3EB1E8;
    display: block;
    cursor: pointer;
}

.fv-row select:disabled,
.fv-row input:disabled {
    background-color: #F1F1F4;
    color: #A1A5B7;
    cursor: not-allowed;
}

.locked-field-overlay {
    position: absolute;
    inset: 0;
    cursor: not-allowed;
    z-index: 2;
}

/* offer/list.html.twig — page liste des offres/projets — règles de tableau
   partagées avec customer/index.html.twig (voir plus bas) pour garantir un
   rendu strictement identique entre les deux datatables. */
#offer-datatable-card,
#customer-datatable-card {
    overflow: hidden;
    border: 1px solid #E4E6EF;
}

#offerDatatable_wrapper .dataTables_paginate,
#customerDatatable_wrapper .dataTables_paginate {
    width: 100%;
    overflow-x: auto;
}

#offerDatatable_wrapper .dataTables_paginate .pagination,
#customerDatatable_wrapper .dataTables_paginate .pagination {
    flex-wrap: nowrap;
}

#offer-search-input,
#offer-filter-pills,
#new_offer_button,
#customer-search-input {
    height: 45px;
}

#offer-search-input,
#customer-search-input {
    border: 1px solid #E4E6EF;
    width: 340px;
}

#offer-filter-pills {
    border: 1px solid #E4E6EF;
    border-radius: 0.5rem;
    padding: 0.25rem;
    display: flex;
    align-items: stretch;
}

#offer-filter-pills .nav-item {
    display: flex;
}

#offer-filter-pills .nav-link {
    min-width: 110px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F1F1F4;
    color: #181C32;
}

#offer-filter-pills .nav-link.active {
    background-color: #04448B;
    color: #fff;
}

#offer-filter-pills .nav-link .badge {
    background-color: #fff !important;
    color: #181C32 !important;
}

#new_offer_button {
    display: inline-flex;
    align-items: center;
}

#offerDatatable,
#customerDatatable {
    border-collapse: collapse;
    border-spacing: 0;
}

#offerDatatable thead,
#customerDatatable thead {
    background-color: #F4F4F6;
}

#offerDatatable > thead > tr,
#customerDatatable > thead > tr {
    box-shadow: 0 -20px 0 0 #F4F4F6;
}

#offerDatatable > thead > tr > th,
#customerDatatable > thead > tr > th {
    background-color: #F4F4F6;
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
}

#offerDatatable > thead > tr > th:first-child,
#offerDatatable > tbody > tr > td:first-child,
#customerDatatable > thead > tr > th:first-child,
#customerDatatable > tbody > tr > td:first-child {
    padding-left: 1.5rem;
}

#offerDatatable > thead > tr > th:last-child,
#offerDatatable > tbody > tr > td:last-child,
#customerDatatable > thead > tr > th:last-child,
#customerDatatable > tbody > tr > td:last-child {
    padding-right: 1.5rem;
}

#offerDatatable > tbody > tr.child {
    border-bottom: none !important;
}

#offerDatatable > tbody > tr > td,
.room-child-table > tbody > tr > td,
#customerDatatable > tbody > tr > td {
    overflow-wrap: anywhere;
}

.room-child-panel {
    border: 1px solid #E4E6EF;
    border-radius: 0.5rem;
    margin: 0.25rem 1.5rem;
    padding: 0 0.5rem;
    overflow: hidden;
}

.room-child-table {
    background-color: transparent;
}

.room-child-table > thead > tr > th,
.room-child-table > tbody > tr > td {
    border: none;
}

.room-child-table > tbody > tr > td {
    background-color: transparent;
}

.room-child-table > thead > tr {
    box-shadow: -20px 0 0 0 #F4F4F6, 20px 0 0 0 #F4F4F6;
}

.room-child-table > thead > tr > th {
    background-color: #F4F4F6;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.room-child-table > thead > tr > th:first-child,
.room-child-table > tbody > tr > td:first-child {
    padding-left: 1rem;
}

.room-child-table > thead > tr > th:last-child,
.room-child-table > tbody > tr > td:last-child {
    padding-right: 1rem;
}

/* project/show.html.twig — tableau des chambres du projet */
#project-rooms-table {
    border-collapse: collapse;
    border-spacing: 0;
}

#project-rooms-table thead {
    background-color: #F4F4F6;
}

#project-rooms-table > thead > tr {
    box-shadow: 0 -20px 0 0 #F4F4F6;
}

#project-rooms-table > thead > tr > th {
    background-color: #F4F4F6;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

#project-rooms-table > thead > tr > th:first-child,
#project-rooms-table > tbody > tr > td:first-child {
    padding-left: 1.5rem;
}

#project-rooms-table > thead > tr > th:last-child,
#project-rooms-table > tbody > tr > td:last-child {
    padding-right: 1.5rem;
}

/* project/show.html.twig et offer/result.html.twig — bouton "Annuler" des modales de confirmation
   (règle auparavant dupliquée à l'identique dans les deux fichiers). Bleu foncé de la charte
   (identique à .btn-primary) pour le distinguer du bouton "Supprimer" resté rouge (.btn-danger). */
.modal .btn.btn-result-cancel {
    background-color: #04448B !important;
    border-color: #04448B !important;
    color: #fff !important;
}

.modal .btn.btn-result-cancel:hover,
.modal .btn.btn-result-cancel:focus,
.modal .btn.btn-result-cancel:active {
    background-color: #033A76 !important;
    border-color: #033A76 !important;
    color: #fff !important;
}

/* offer/result.html.twig — bouton "Valider" en bleu clair (couleur primaire du site, --bs-primary) */
.btn.btn-validate {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn.btn-validate:hover,
.btn.btn-validate:focus,
.btn.btn-validate:active {
    background-color: #0089c4 !important;
    border-color: #0089c4 !important;
    color: #fff !important;
}

.project-delete-button:disabled,
.room-duplicate-button:disabled,
#delete-button-in-list:disabled {
    opacity: 0.4;
}

#statisticsUsersDatatable > thead > tr > th {
    vertical-align: middle;
}

#statisticsUsersDatatable > tbody > tr > td {
    overflow-wrap: anywhere;
}

#statisticsUsersDatatable_wrapper .statistics-pagination-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

#statisticsUsersDatatable_wrapper .statistics-pagination-center {
    grid-column: 2;
}

#statisticsUsersDatatable_wrapper div.dataTables_paginate {
    text-align: center;
}

#statisticsUsersDatatable_wrapper div.dataTables_paginate ul.pagination {
    justify-content: center;
}

#statisticsUsersDatatable_wrapper .statistics-pagination-footer > #statistics-export-button {
    grid-column: 3;
    justify-self: end;
    /* .btn{width:100%} du thème (style.bundle.css) sinon le bouton remplit toute la colonne. */
    width: auto;
}

/* dashboard/_project_mode_popup.html.twig — pop-up explicatif du mode projet */
.project-mode-popup {
    border-radius: 1.5rem;
}

.project-mode-popup .project-mode-popup-close {
    /* Croix fine et grande comme sur la maquette : la taille du glyphe vient de background-size, pas de width/height. */
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    opacity: 1;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163c82' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M3 3l18 18M21 3L3 21'/%3E%3C/svg%3E") center / 1.75rem no-repeat;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
}

.project-mode-popup .project-mode-popup-step {
    position: relative;
}

.project-mode-popup .project-mode-popup-step-number {
    position: absolute;
    right: -4px;
    bottom: 0;
}

.project-mode-popup .project-mode-popup-video {
    padding: 1.25rem;
    border-radius: 2.25rem;
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}

.project-mode-popup .project-mode-popup-play {
    display: block;
}

.project-mode-popup .project-mode-popup-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 4.5rem;
    height: 4.5rem;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
}

.project-mode-popup .project-mode-popup-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 1rem;
    border-radius: 0 0 1.5rem 1.5rem;
    background-color: var(--bs-secondary);
    color: #fff;
}

.project-mode-popup .project-mode-popup-step .symbol-label {
    background-color: rgba(var(--bs-primary-rgb), 0.15);
}

.project-mode-popup .project-mode-popup-title {
    font-size: 2.5rem;
}

.project-mode-popup .project-mode-popup-step-number {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
    right: -8px;
    bottom: -4px;
}

/* sidebar.html.twig — pastille "NEW" sur l'entrée Offres du menu */
.menu-aside-link .menu-aside-new-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 50rem;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
    z-index: 10;
}

/* Laisse la pastille déborder de l'entrée du menu (la barre latérale fait 100px) */
.menu-aside-link,
.menu-item:has(> .menu-aside-link) {
    overflow: visible !important;
}

.project-mode-popup .project-mode-popup-badge {
    padding: 0.9rem 4rem !important;
    border-radius: 1rem;
}

.project-mode-popup .project-mode-popup-subtitle {
    font-size: 1.5rem;
}

.project-mode-popup .project-mode-popup-steps {
    gap: 3rem;
}

.project-mode-popup-dialog.modal-dialog {
    max-width: 68rem;
}

.project-mode-popup .project-mode-popup-body {
    padding-left: 5rem;
    padding-right: 5rem;
}

.project-mode-popup .project-mode-popup-video img,
.project-mode-popup .project-mode-popup-video video {
    border-radius: 1.5rem !important;
}

.project-mode-popup .project-mode-popup-step .project-mode-popup-svg {
    width: 2.75rem;
    height: 2.75rem;
}

/* Aperçu de la vidéo : la capture s'affiche en entier et le bandeau de titre est placé juste en dessous (plus de recouvrement). */
.project-mode-popup .project-mode-popup-play img {
    border-radius: 1.5rem 1.5rem 0 0 !important;
}

.project-mode-popup .project-mode-popup-play .project-mode-popup-caption {
    position: static;
    display: block;
}

/* Miniature assombrie pour faire ressortir le bouton de lecture (centré sur le bloc miniature + bandeau, cf. maquette). */
.project-mode-popup .project-mode-popup-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    background-color: rgba(0, 0, 0, 0.2);
}
