@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --ni-primary: #0284c7;
    --ni-primary-hover: #0369a1;
    --ni-primary-light: #e0f2fe;
    --ni-cyan: #32bef0;
    --ni-cyan-hover: #0ea5e9;
    --ni-teal: #0d9488;
    --ni-teal-hover: #0f766e;
    --ni-dark: #0f172a;
    --ni-slate: #334155;
    --ni-muted: #64748b;
    --ni-bg: #f8fafc;
    --ni-card-bg: #ffffff;
    --ni-border: #e2e8f0;
    --ni-border-focus: #0284c7;
    --ni-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --ni-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --ni-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --ni-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --ni-radius-sm: 0.375rem;
    --ni-radius: 0.75rem;
    --ni-radius-lg: 1rem;
    --ni-radius-pill: 9999px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--ni-bg);
    color: var(--ni-slate);
    max-width: 1200px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#body-bo {
    max-width: initial;
    background-color: #f1f5f9;
}

/* Common Header Styles */
.ni-app-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #075985 100%);
    color: #ffffff;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
    border-radius: 0 0 var(--ni-radius) var(--ni-radius);
    margin-bottom: 1.5rem;
}

.ni-app-header.header-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 3px solid var(--ni-primary);
}

.ni-app-header.header-tech {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-bottom: 3px solid #38bdf8;
}

.ni-app-header.header-serv {
    background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
    border-bottom: 3px solid #2dd4bf;
}

.ni-app-header.header-prod {
    background: linear-gradient(135deg, #1e40af 0%, #1e293b 100%);
    border-bottom: 3px solid #60a5fa;
}

/* Card & Surface Containers */
.ni-card {
    background: var(--ni-card-bg);
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius);
    box-shadow: var(--ni-shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.ni-card:hover {
    box-shadow: var(--ni-shadow-md);
}

.ni-card-header {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ni-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ni-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern Form Controls */
.form-control {
    color: var(--ni-dark);
    background-color: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.925rem;
    line-height: 1.5;
    height: auto;
    min-height: calc(1.5em + 1rem + 2px);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm {
    color: var(--ni-dark);
    background-color: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    line-height: 1.5;
    height: auto;
    min-height: calc(1.5em + 0.7rem + 2px);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

select.form-control,
select.form-control-sm,
select.custom-select,
select {
    height: auto !important;
    line-height: 1.5;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    vertical-align: middle;
}

select.form-control-sm {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    min-height: 36px;
}

.form-control:focus, .form-control-sm:focus {
    border-color: var(--ni-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: 0;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ni-slate);
    margin-bottom: 0.35rem;
}

/* Modern Breadcrumbs */
.breadcrumb {
    background-color: transparent !important;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--ni-muted);
}

.breadcrumb-item a {
    color: var(--ni-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Modern Alerts */
.alert {
    border-radius: var(--ni-radius);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    box-shadow: var(--ni-shadow-xs);
    margin-bottom: 1.25rem;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

/* Modern Badges */
.badge {
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: var(--ni-radius-pill);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.badge-valid {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge-pending {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.badge-refused {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Modernized Specialized Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--ni-radius-sm);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    border-color: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.btn-str {
    color: #fff !important;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border: 1px solid #1e293b;
    box-shadow: var(--ni-shadow-xs);
}

.btn-str:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    transform: translateY(-1px);
    box-shadow: var(--ni-shadow-sm);
}

.btn-str:focus, .btn-str.focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 41, 59, 0.3);
}

.btn-str.disabled, .btn-str:disabled {
    color: #94a3b8 !important;
    background: #cbd5e1;
    border-color: #cbd5e1;
    box-shadow: none;
}

.btn-prestatech {
    color: #fff !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.btn-prestatech:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.btn-prestatech:focus, .btn-prestatech.focus {
    box-shadow: 0 0 0 0.2rem rgba(2, 132, 199, 0.35);
}

.btn-prestatech.disabled, .btn-prestatech:disabled {
    color: #fff !important;
    background: #93c5fd;
    border-color: #93c5fd;
    box-shadow: none;
}

.btn-prestaserv {
    color: #fff !important;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border: 1px solid #0d9488;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.btn-prestaserv:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.35);
}

.btn-prestaserv:focus, .btn-prestaserv.focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.35);
}

.btn-prestaserv.disabled, .btn-prestaserv:disabled {
    color: #fff !important;
    background: #99f6e4;
    border-color: #99f6e4;
    box-shadow: none;
}

.btn-prodoeuvre {
    color: #fff !important;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border: 1px solid #1e40af;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
}

.btn-prodoeuvre:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.35);
}

.btn-prodoeuvre:focus, .btn-prodoeuvre.focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.35);
}

.btn-prodoeuvre.disabled, .btn-prodoeuvre:disabled {
    color: #fff !important;
    background: #93c5fd;
    border-color: #93c5fd;
    box-shadow: none;
}

.btn-prodfilm {
    color: #fff !important;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    border: 1px solid #475569;
}

.btn-prodfilm:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    transform: translateY(-1px);
}

.btn-prodfilm:focus, .btn-prodfilm.focus {
    box-shadow: 0 0 0 0.2rem rgba(71, 85, 105, 0.35);
}

.btn-prodfilm.disabled, .btn-prodfilm:disabled {
    color: #fff !important;
    background: #cbd5e1;
    border-color: #cbd5e1;
}

.btn-indus {
    color: #fff !important;
    background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
    border: 1px solid #0369a1;
}

.btn-indus:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #0c4a6e 0%, #082f49 100%);
    transform: translateY(-1px);
}

.btn-filmo {
    color: #854d0e !important;
    background-color: #fef08a;
    border: 1px solid #fde047;
    font-weight: 700;
}

.btn-filmo:hover {
    color: #713f12 !important;
    background-color: #fde047;
    transform: translateY(-1px);
}

.btn-reg-indus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 2px solid #ffffff;
    font-weight: 700;
    box-shadow: var(--ni-shadow-sm);
}

.btn-reg-indus:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
}

/* Modals Modernization */
.modal-content {
    border: none;
    border-radius: var(--ni-radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.modal-header .close {
    color: #ffffff;
    opacity: 0.85;
    text-shadow: none;
    transition: opacity 0.2s ease;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    color: var(--ni-slate);
    line-height: 1.6;
}

.modal-footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--ni-border);
    padding: 1rem 1.5rem;
}

/* Modern Tables */
.table {
    color: var(--ni-slate);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--ni-radius);
    overflow: hidden;
    box-shadow: var(--ni-shadow-xs);
    background-color: #ffffff;
}

.table thead th {
    background-color: #f1f5f9;
    color: var(--ni-dark);
    font-weight: 700;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--ni-border);
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--ni-border);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* File Upload & Vich Styling */
.custom-file {
    width: 100%;
    position: relative;
    cursor: pointer;
}

.custom-file-input {
    cursor: pointer;
    z-index: 2;
}

.custom-file-label {
    background-color: #ffffff;
    border: 1.5px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 0.6rem 1rem;
    height: auto;
    min-height: 42px;
    line-height: 1.5;
    color: var(--ni-muted);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 110px;
    box-shadow: var(--ni-shadow-xs);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.custom-file-label::after {
    content: "Parcourir" !important;
    background-color: #f1f5f9;
    color: var(--ni-dark);
    font-weight: 600;
    border-left: 1.5px solid var(--ni-border);
    border-radius: 0 var(--ni-radius-sm) var(--ni-radius-sm) 0;
    padding: 0.6rem 1.1rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.custom-file-input:focus ~ .custom-file-label {
    border-color: var(--ni-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.custom-file-label.has-file,
.custom-file-label.selected {
    color: #0f172a;
    font-weight: 600;
    border-color: var(--ni-primary);
    background-color: #f8fafc;
}

.vich-file {
    min-height: 42px;
}

/* Selected File Preview Badge */
.ni-file-selected-badge {
    background-color: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: var(--ni-radius-sm);
    padding: 0.85rem 1.15rem;
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--ni-shadow-xs);
    animation: niFadeIn 0.3s ease;
}

.ni-file-selected-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.ni-file-selected-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.ni-file-selected-name {
    font-weight: 700;
    color: #166534;
    font-size: 0.95rem;
    word-break: break-all;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ni-file-selected-size {
    font-size: 0.825rem;
    color: #15803d;
    margin-top: 0.2rem;
}

.ni-file-selected-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.ni-file-selected-remove {
    font-size: 0.825rem;
    font-weight: 600;
    border-radius: var(--ni-radius-sm);
    padding: 0.35rem 0.75rem;
    transition: all 0.2s ease;
}

.filmo-other-type .restore-select {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: 14px;
    color: #dc3545;
    text-decoration: none;
    line-height: 1;
}

.filmo-other-type .type-autre {
    padding-right: 28px;
}

/* ==========================================================================
   Modern Structure & Contacts Form Styles
   ========================================================================== */

.ni-form-card {
    background: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius);
    box-shadow: var(--ni-shadow-sm);
    margin-bottom: 1.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ni-form-card:hover {
    box-shadow: var(--ni-shadow-md);
    border-color: #cbd5e1;
}

.ni-form-card-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--ni-border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ni-form-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ni-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ni-form-card-title i {
    color: var(--ni-primary);
    font-size: 1.15rem;
}

.ni-form-card-body {
    padding: 1.5rem;
}

.ni-form-subcard {
    background: #f8fafc;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.ni-form-subcard:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: var(--ni-shadow-xs);
}

.ni-contact-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--ni-primary);
    border-radius: var(--ni-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: var(--ni-shadow-xs);
    transition: all 0.2s ease;
}

.ni-contact-item:hover {
    border-color: #93c5fd;
    border-left-color: var(--ni-primary-hover);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.ni-social-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    padding: 0.4rem 0.6rem;
    border-radius: var(--ni-radius-sm);
    border: 1px solid #e2e8f0;
    flex-wrap: nowrap;
}

.ni-social-row > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.ni-social-select-col {
    flex: 0 0 170px;
    width: 170px;
}

@media (max-width: 576px) {
    .ni-social-select-col {
        flex: 0 0 125px;
        width: 125px;
    }
}

.ni-social-url-col {
    flex: 1 1 auto;
    min-width: 0;
}

.ni-social-row .remove-reseau {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ni-radius-sm);
}

.ni-domain-card {
    background: #ffffff;
    border: 2px solid var(--ni-border);
    border-radius: var(--ni-radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.ni-domain-card:hover {
    border-color: var(--ni-primary);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: var(--ni-shadow-sm);
}

.ni-domain-card.active, .ni-domain-card:has(input:checked) {
    border-color: var(--ni-primary);
    background: #f0f9ff;
    box-shadow: 0 0 0 1px var(--ni-primary);
}

.ni-domain-card .domain-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--ni-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.ni-domain-card.domain-prod .domain-icon {
    background-color: #dbeafe;
    color: #1e40af;
}

.ni-domain-card.domain-tech .domain-icon {
    background-color: #e0f2fe;
    color: #0284c7;
}

.ni-domain-card.domain-serv .domain-icon {
    background-color: #ccfbf1;
    color: #0f766e;
}

.ni-action-bar {
    background: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ni-shadow-md);
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.field-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ni-slate);
    margin-bottom: 0.35rem;
    display: block;
}

.field-required {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

/* Autocomplétion Commune & Code Postal */
.ni-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.ni-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1060;
    background: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
}

.ni-autocomplete-header {
    padding: 6px 12px;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ni-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--ni-dark);
    transition: background-color 0.1s ease, color 0.1s ease;
}

.ni-autocomplete-item:hover,
.ni-autocomplete-item.active {
    background-color: #f0f9ff;
    color: var(--ni-primary);
}

.ni-autocomplete-item .commune-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.775rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ni-autocomplete-item:hover .commune-badge,
.ni-autocomplete-item.active .commune-badge {
    background-color: #e0f2fe;
    color: var(--ni-primary);
    border-color: #bae6fd;
}

.ni-autocomplete-empty,
.ni-autocomplete-loading {
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

/* ==========================================================================
   Modern Production Cinéma & Audiovisuelle Form Styles
   ========================================================================== */

/* Modern Custom Controls (Checkboxes & Radios) */
.custom-checkbox .custom-control-label::before {
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
    transition: all 0.15s ease-in-out;
}

.custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
    border-color: var(--ni-primary);
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--ni-primary);
    border-color: var(--ni-primary);
}

.custom-checkbox .custom-control-label {
    cursor: pointer;
    font-weight: 500;
    color: var(--ni-slate);
    user-select: none;
}

.custom-control-lg {
    padding-left: 2rem;
    min-height: 1.75rem;
}

.custom-control-lg .custom-control-label {
    font-size: 1.05rem;
    line-height: 1.5;
    cursor: pointer;
}

.custom-control-lg .custom-control-label::before,
.custom-control-lg .custom-control-label::after {
    top: 0.15rem;
    left: -2rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 5px;
}

.ni-genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
}

.ni-genre-card {
    background: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.ni-genre-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.ni-genre-card.is-active {
    border-color: var(--ni-primary);
    background: #f0f9ff;
    box-shadow: 0 0 0 1px var(--ni-primary);
}

.ni-genre-check {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
    cursor: pointer;
}

.ni-genre-check .custom-control-label,
.ni-genre-check .form-check-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ni-slate);
    cursor: pointer;
    user-select: none;
    line-height: 1.35;
}

.ni-genre-count {
    flex: 0 0 75px;
    width: 75px;
    cursor: default;
}

.ni-genre-count .form-control {
    font-weight: 700;
    color: var(--ni-primary);
    padding: 0.35rem 0.5rem;
    height: 34px;
    min-height: 34px;
    cursor: text;
}

.ni-genre-count .form-control:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    opacity: 0.7;
}

/* Filmographies Collection Modern Layout */
.ni-filmo-container {
    width: 100%;
}

.ni-filmo-item {
    background: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.65rem;
    box-shadow: var(--ni-shadow-xs);
    transition: all 0.2s ease;
}

.ni-filmo-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--ni-shadow-sm);
}

.ni-filmo-grid {
    display: grid;
    grid-template-columns: 80px 2fr 1.6fr 1.4fr 1.3fr 75px 1.4fr auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 1100px) {
    .ni-filmo-grid {
        grid-template-columns: 80px 1.5fr 1.5fr 1.2fr 1.2fr 70px 1.2fr auto;
        gap: 0.35rem;
    }
}

@media (max-width: 992px) {
    .ni-filmo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .ni-filmo-grid .filmo-col-action {
        grid-column: span 2;
        text-align: right;
    }
}

@media (max-width: 576px) {
    .ni-filmo-grid {
        grid-template-columns: 1fr;
    }
    .ni-filmo-grid .filmo-col-action {
        grid-column: span 1;
    }
}

.ni-filmo-header-row {
    display: grid;
    grid-template-columns: 80px 2fr 1.6fr 1.4fr 1.3fr 75px 1.4fr 36px;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ni-muted);
    background-color: #f8fafc;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    margin-bottom: 0.5rem;
}

@media (max-width: 1100px) {
    .ni-filmo-header-row {
        grid-template-columns: 80px 1.5fr 1.5fr 1.2fr 1.2fr 70px 1.2fr 36px;
        gap: 0.35rem;
    }
}

@media (max-width: 992px) {
    .ni-filmo-header-row {
        display: none;
    }
}

.ni-filmo-restore-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.85rem;
    line-height: 1;
    z-index: 3;
}

.ni-filmo-restore-btn:hover {
    color: #b91c1c;
}

/* RSE Switch & Cards */
.ni-rse-main-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #86efac;
    border-radius: var(--ni-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.ni-rse-main-card:hover {
    border-color: #4ade80;
    background: linear-gradient(135deg, #ecfdf5 0%, #e0fbf0 100%);
}

.ni-rse-main-card.is-active {
    border-color: #16a34a;
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    box-shadow: 0 4px 14px rgba(22, 101, 52, 0.12);
}

.ni-rse-main-card .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #16a34a;
    border-color: #16a34a;
}

.ni-rse-section-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #dcfce7;
}

.ni-radio-group-modern {

    margin-bottom: 0.75rem;
}

.ni-radio-group-modern .form-group {
    margin-bottom: 0;
}

.ni-radio-group-modern .form-check,
.ni-radio-group-modern .form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 1.25rem;
}

/* Prestations Selection Grid & Cards */
.ni-prestation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
}

.ni-prestation-card {
    background: #ffffff;
    border: 1.5px solid var(--ni-border);
    border-radius: var(--ni-radius);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    box-shadow: var(--ni-shadow-xs);
}

.ni-prestation-card:hover {
    border-color: var(--ni-teal);
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: var(--ni-shadow-sm);
}

.ni-prestation-card.is-active {
    border-color: var(--ni-teal);
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.ni-prestation-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--ni-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ni-prestation-card:hover .ni-prestation-icon,
.ni-prestation-card.is-active .ni-prestation-icon {
    background: var(--ni-teal);
    color: #ffffff;
}

.ni-prestation-content {
    flex: 1 1 auto;
    min-width: 0;
}

.ni-prestation-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ni-dark);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.ni-prestation-desc {
    font-size: 0.75rem;
    color: var(--ni-muted);
    line-height: 1.2;
}

.ni-prestation-check {
    flex: 0 0 auto;
    margin-bottom: 0;
}

/* Experiences Collection Responsive Grid */
.ni-experience-container {
    width: 100%;
}

.ni-experience-item {
    background: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.65rem;
    box-shadow: var(--ni-shadow-xs);
    transition: all 0.2s ease;
}

.ni-experience-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--ni-shadow-sm);
}

.ni-experience-grid {
    display: grid;
    grid-template-columns: 80px 1.8fr 1.4fr 1.3fr 1.2fr 1.4fr auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 1100px) {
    .ni-experience-grid {
        grid-template-columns: 80px 1.4fr 1.2fr 1.1fr 1.1fr 1.2fr auto;
        gap: 0.35rem;
    }
}

@media (max-width: 992px) {
    .ni-experience-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .ni-experience-grid .experience-col-action {
        grid-column: span 2;
        text-align: right;
    }
}

@media (max-width: 576px) {
    .ni-experience-grid {
        grid-template-columns: 1fr;
    }
    .ni-experience-grid .experience-col-action {
        grid-column: span 1;
    }
}

.ni-experience-header-row {
    display: grid;
    grid-template-columns: 80px 1.8fr 1.4fr 1.3fr 1.2fr 1.4fr 36px;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ni-muted);
    background-color: #f8fafc;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    margin-bottom: 0.5rem;
}

@media (max-width: 1100px) {
    .ni-experience-header-row {
        grid-template-columns: 80px 1.4fr 1.2fr 1.1fr 1.1fr 1.2fr 36px;
        gap: 0.35rem;
    }
}

@media (max-width: 992px) {
    .ni-experience-header-row {
        display: none;
    }
}

/* Listes (Equipements/Véhicules) Grid Layouts */
.ni-liste-item {
    background: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.65rem;
    box-shadow: var(--ni-shadow-xs);
    transition: all 0.2s ease;
}

.ni-liste-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--ni-shadow-sm);
}

.ni-liste-grid-3 {
    display: grid;
    grid-template-columns: 1.5fr 85px 2fr auto;
    gap: 0.5rem;
    align-items: center;
}

.ni-liste-header-3 {
    display: grid;
    grid-template-columns: 1.5fr 85px 2fr 36px;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ni-muted);
    background-color: #f8fafc;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    margin-bottom: 0.5rem;
}

.ni-liste-grid-4 {
    display: grid;
    grid-template-columns: 1.5fr 85px 85px 2fr auto;
    gap: 0.5rem;
    align-items: center;
}

.ni-liste-header-4 {
    display: grid;
    grid-template-columns: 1.5fr 85px 85px 2fr 36px;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ni-muted);
    background-color: #f8fafc;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    margin-bottom: 0.5rem;
}

.ni-liste-grid-5 {
    display: grid;
    grid-template-columns: 1.4fr 75px 1.6fr 80px 1.2fr auto;
    gap: 0.5rem;
    align-items: center;
}

.ni-liste-header-5 {
    display: grid;
    grid-template-columns: 1.4fr 75px 1.6fr 80px 1.2fr 36px;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ni-muted);
    background-color: #f8fafc;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .ni-liste-grid-3, .ni-liste-grid-4, .ni-liste-grid-5 {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .ni-liste-header-3, .ni-liste-header-4, .ni-liste-header-5 {
        display: none;
    }
    .ni-liste-item .liste-col-action {
        grid-column: span 2;
        text-align: right;
    }
}

@media (max-width: 576px) {
    .ni-liste-grid-3, .ni-liste-grid-4, .ni-liste-grid-5 {
        grid-template-columns: 1fr;
    }
    .ni-liste-item .liste-col-action {
        grid-column: span 1;
    }
}

.ni-info-popover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ni-primary);
    background: #e0f2fe;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    border: none;
    vertical-align: middle;
    margin-left: 0.35rem;
    transition: all 0.15s ease;
}

.ni-info-popover-btn:hover {
    background: var(--ni-primary);
    color: #ffffff;
    text-decoration: none;
}

/* Prestataires Techniques - Lignes & Cartes Dédiées */
.ni-tech-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ni-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e2e8f0;
}

.ni-tech-row {
    background: #ffffff;
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius-sm);
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.ni-tech-row:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.ni-tech-master-card {
    border: 1px solid var(--ni-border);
    border-radius: var(--ni-radius);
    background: #ffffff;
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: var(--ni-shadow-xs);
    transition: all 0.2s ease;
}

.ni-tech-master-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--ni-shadow-sm);
}

.ni-tech-master-header {
    background: #f8fafc;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--ni-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ni-tech-master-card.is-active .ni-tech-master-header {
    background: #f0f9ff;
    border-bottom-color: #bae6fd;
}

.ni-tech-item-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1.3fr) auto auto 1.5fr;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 992px) {
    .ni-tech-item-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}