@font-face {
    font-family: 'Aptos';
    src: url('/fonts/aptos.woff2') format('woff2'),
         url('/fonts/aptos.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: 'Aptos';
  src: url('/fonts/aptos-semibold.woff2') format('woff2'),
       url('/fonts/aptos-semibold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* =========================================================
   BODY
   ========================================================= */

body {
    font-family: 'Aptos', Arial, sans-serif;
    margin: 0;
    background: #f4f6f8;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.admin-layout {
    display: flex;
}

/* =========================================================
   SIDEBAR / FILAMENT NAVIGATION
   ========================================================= */

.sidebar {
    width: 250px !important;
    background: #2f3e4d;
    min-height: 100vh;
    color: white;
}

.sidebar .logo {
    padding: 20px;
    font-size: 22px;
    font-weight: bold;
    background: #24313d;
}

/* =========================================================
   LOGO EASYRALLYE DANS LE HEADER
   ========================================================= */

.er-topbar-brand {
    display: none !important;
    align-items: center;
    text-decoration: none;
    margin-right: 0.75rem;
}

.er-topbar-brand img {
    display: block;
    height: 36px;
    width: auto;
}

@media (max-width: 1023.98px) {
    .er-topbar-brand {
        display: inline-flex !important;
    }
}

@media (min-width: 1024px) {
    html.fi-sidebar-collapsed .er-topbar-brand,
    body.fi-sidebar-collapsed .er-topbar-brand,
    .fi-layout.fi-sidebar-collapsed .er-topbar-brand {
        display: inline-flex !important;
    }

    html:not(.fi-sidebar-collapsed) .er-topbar-brand,
    body:not(.fi-sidebar-collapsed) .er-topbar-brand,
    .fi-layout:not(.fi-sidebar-collapsed) .er-topbar-brand {
        display: none !important;
    }
}

/* =========================================================
   LOGO SIDEBAR - EN MENU DEPLIÃ‰
   ========================================================= */

.fi-sidebar-header {
    background: transparent !important;
    border-bottom: none !important;
    position: relative;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 0.5rem 0.75rem;
}

.fi-sidebar-header .fi-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.35rem 0.65rem !important;
    max-width: fit-content !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.fi-sidebar-header button,
.fi-sidebar-header .fi-icon-btn,
.fi-sidebar-header [x-on\:click],
.fi-sidebar-header [x-on\:click\.stop] {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

/* Sidebar repliÃ©e : on masque le logo sidebar pour laisser le logo du header */
@media (min-width: 1024px) {
    .fi-sidebar-collapsed .fi-sidebar-header,
    body.fi-sidebar-collapsed .fi-sidebar-header,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-header {
        justify-content: center !important;
        padding: 0.75rem 0.5rem 0.5rem 0.5rem !important;
    }

    .fi-sidebar-collapsed .fi-sidebar-header .fi-logo,
    body.fi-sidebar-collapsed .fi-sidebar-header .fi-logo,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-header .fi-logo {
        display: none !important;
    }

    .fi-sidebar-collapsed .fi-sidebar-header button,
    .fi-sidebar-collapsed .fi-sidebar-header .fi-icon-btn,
    body.fi-sidebar-collapsed .fi-sidebar-header button,
    body.fi-sidebar-collapsed .fi-sidebar-header .fi-icon-btn,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-header button,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-header .fi-icon-btn {
        position: relative !important;
        z-index: 5 !important;
    }
}

/* =========================================================
   MENU SIDEBAR REPLIÃ‰ - AFFICHAGE DESKTOP
   ========================================================= */

@media (min-width: 1024px) {
    html.fi-sidebar-collapsed .fi-sidebar-item-label,
    html.fi-sidebar-collapsed .fi-sidebar-group-label,
    html.fi-sidebar-collapsed .fi-badge,
    body.fi-sidebar-collapsed .fi-sidebar-item-label,
    body.fi-sidebar-collapsed .fi-sidebar-group-label,
    body.fi-sidebar-collapsed .fi-badge,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-item-label,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-group-label,
    .fi-layout.fi-sidebar-collapsed .fi-badge {
        display: none !important;
    }

    html.fi-sidebar-collapsed .fi-sidebar-group-items,
    body.fi-sidebar-collapsed .fi-sidebar-group-items,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-group-items {
        display: none !important;
    }

    html.fi-sidebar-collapsed .fi-sidebar-item-button,
    html.fi-sidebar-collapsed .fi-sidebar-group-button,
    body.fi-sidebar-collapsed .fi-sidebar-item-button,
    body.fi-sidebar-collapsed .fi-sidebar-group-button,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-item-button,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-group-button {
        justify-content: center !important;
        gap: 0 !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        min-height: 2.75rem !important;
        border-radius: 0.9rem !important;
    }

    html.fi-sidebar-collapsed .fi-sidebar-item-icon,
    html.fi-sidebar-collapsed .fi-sidebar-group-icon,
    body.fi-sidebar-collapsed .fi-sidebar-item-icon,
    body.fi-sidebar-collapsed .fi-sidebar-group-icon,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-item-icon,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-group-icon {
        margin: 0 auto !important;
    }

    html.fi-sidebar-collapsed .fi-sidebar-item-button:hover,
    html.fi-sidebar-collapsed .fi-sidebar-group-button:hover,
    body.fi-sidebar-collapsed .fi-sidebar-item-button:hover,
    body.fi-sidebar-collapsed .fi-sidebar-group-button:hover,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-item-button:hover,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar-group-button:hover {
        background: rgba(255, 255, 255, 0.12) !important;
    }
}

/* =========================================================
   MENU DÃ‰PLIÃ‰ - TOUS AFFICHAGES
   ========================================================= */

.fi-sidebar-group-items {
    border-inline-start: none !important;
    margin-inline-start: 0 !important;
    padding-inline-start: 0 !important;
}

.fi-sidebar-group-items::before,
.fi-sidebar-group-items::after,
.fi-sidebar-group-item::before,
.fi-sidebar-group-item::after,
.fi-sidebar-item::before,
.fi-sidebar-item::after {
    display: none !important;
    content: none !important;
}

.fi-sidebar-group-items [class*="marker"],
.fi-sidebar-group-items [class*="bullet"] {
    display: none !important;
}

/* Filament : remplace le connecteur vertical par un simple point */
.fi-sidebar .fi-sidebar-item-grouped-border {
    position: relative !important;
    width: 1rem !important;
    min-width: 1rem !important;
    height: 1rem !important;
    min-height: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fi-sidebar .fi-sidebar-item-grouped-border > * {
    display: none !important;
}

.fi-sidebar .fi-sidebar-item-grouped-border::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    display: block;
}

.fi-sidebar-group-items .fi-sidebar-item-button {
    padding-left: 0.75rem !important;
    gap: 0.75rem !important;
    justify-content: flex-start !important;
}

.fi-sidebar .fi-sidebar-group-items .fi-sidebar-item .fi-sidebar-item-button {
    padding-left: 0.5rem !important;
}

.fi-sidebar-group-items .fi-sidebar-item-icon {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
}

/* =========================================================
   MENU REPLIÃ‰ - AFFICHAGE DESKTOP
   ========================================================= */

.fi-dropdown-panel {
    background: #ffffff !important;
    color: #111827 !important;
}

.fi-dropdown-panel a,
.fi-dropdown-panel button,
.fi-dropdown-panel span,
.fi-dropdown-panel svg {
    color: #111827 !important;
    opacity: 1 !important;
}

.fi-dropdown-panel a:hover,
.fi-dropdown-panel button:hover {
    background: rgba(190, 24, 93, 0.08) !important;
}

.dark .fi-dropdown-panel {
    background: #111827 !important;
    color: #ffffff !important;
}

.dark .fi-dropdown-panel a,
.dark .fi-dropdown-panel button,
.dark .fi-dropdown-panel span,
.dark .fi-dropdown-panel svg {
    color: #ffffff !important;
}

.dark .fi-dropdown-panel a:hover,
.dark .fi-dropdown-panel button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.fi-sidebar.collapsed .fi-sidebar-header {
    justify-content: center;
}

.fi-sidebar.collapsed .fi-sidebar-header img {
    max-height: 32px;
    display: block !important;
    margin: 0 auto;
}


/* =========================================================
   SIDEBAR BLOCS GENERIQUES - TOUS AFFICHAGES
   ========================================================= */

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.sidebar a:hover {
    background: #1f2a33;
}

.menu-title {
    padding: 10px 18px;
    font-size: 12px;
    text-transform: uppercase;
    color: #a5b3c1;
    background: #24313d;
}

/* --- titres de sections en gras --- */
.sidebar-section-title,
.sidebar .menu-section-title,
.sidebar .sidebar-section-title,
.sidebar .nav-section-title,
.sidebar .menu-title,
.sidebar .section-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* --- wrapper de lien --- */
.sidebar a,
.sidebar .menu-link,
.sidebar .nav-link,
.sidebar .sidebar-link {
    transition: background-color 0.18s ease, color 0.18s ease;
}

/* --- Effet de survol menu --- */
.fi-sidebar-item-label {
    transition: transform 0.18s ease !important;
}

.fi-sidebar-item-button:hover .fi-sidebar-item-label,
.fi-sidebar-item-button:focus-visible .fi-sidebar-item-label {
    transform: translateX(6px) !important;
}

/* --- Badges compteurs dans sidebar --- */
.fi-sidebar .fi-badge {
    background: #fd7f8b !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.fi-sidebar .fi-badge.bg-custom-50,
.fi-sidebar .fi-badge[class*="bg-custom-"] {
    background: #fd7f8b !important;
}

.fi-sidebar .fi-badge.text-custom-600,
.fi-sidebar .fi-badge[class*="text-custom-"] {
    color: #ffffff !important;
}

.fi-sidebar .fi-badge.ring-1,
.fi-sidebar .fi-badge[class*="ring-custom-"] {
    box-shadow: none !important;
    outline: none !important;
}

.fi-sidebar .fi-sidebar-item-button:hover .fi-badge,
.fi-sidebar .fi-sidebar-item-active .fi-badge {
    background: #ff6f7d !important;
    color: #ffffff !important;
}

/* =========================================================
   MENU - AFFICHAGE SMARTPHONE
   ========================================================= */

@media (max-width: 1023.98px) {
    .fi-sidebar {
        width: 80vw !important;
        max-width: 20rem !important;
    }

    .fi-sidebar-header {
        background: transparent !important;
        border-bottom: none !important;
        padding: 0.75rem 3.5rem 0.5rem 0.75rem !important;
        position: relative !important;
    }

    .fi-sidebar-header .fi-logo {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        padding: 0.35rem 0.65rem !important;
        max-width: fit-content !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    /* ? bouton fermer du menu mobile */
    .fi-sidebar-header .fi-icon-btn[x-show="\$store.sidebar.isOpen"] {
        display: inline-flex !important;
        position: absolute !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
        z-index: 1000 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .er-topbar-brand {
        display: inline-flex !important;
    }
}
/* =========================================================
   HEADER
   ========================================================= */

.admin-header {
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
}

.admin-content {
    flex: 1;
}

.admin-main {
    padding: 30px;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

body.fi-body:has(.fi-simple-layout),
.fi-simple-layout {
    background: url('/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.fi-simple-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: 0;
}

.fi-simple-main,
.fi-simple-page,
.fi-simple-main-ctn,
.fi-logo,
.fi-simple-header {
    position: relative;
    z-index: 1;
}

/* =========================================================
   TABLES
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th,
table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background: #f5f7fa;
}


/* =========================================================
   TABLE LISTE RALLYES
   ========================================================= */

/* Liste Rallyes â€” empÃªche les actions de passer Ã  la ligne */
.fi-ta-actions,
.fi-ta-actions > div,
.fi-ta-actions .fi-btn {
    white-space: nowrap;
}

/* Liste Rallyes â€” affichage logo produit */
.easy-rallye-product-logo {
    display: block;
    max-width: 120px;
    max-height: 42px;
    object-fit: contain;
}
/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    background: #3490dc;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 4px;
}

.btn:hover {
    background: #2779bd;
}


/* =========================================================
   SESSION ANIMATION PILOTAGE
   ========================================================= */

#{{ $mapContainerId }} {
	z-index: 1;
	height: 520px;
	min-height: 360px;
	width: 100%;
}

.leaflet-container {
	z-index: 1;
}

.er-team-marker { border-radius: 999px;
	border: 3px solid #fff;
	box-shadow: 0 6px 18px rgba(15,23,42,.35);
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
}

.er-message-bubble {
	max-width: 82%;
	border-radius: 18px;
	padding: .65rem .85rem;
	color: #fff;
}

.er-message-mine {
	margin-left: auto;
	background: #b33b13;
	text-align: right;
}

.er-message-other {	
margin-right: auto; background: #7a1230;
}

.er-pilotage-message-field {
	background: #ffffff !important;
	color: #111827 !important;
	border-color: rgba(209, 213, 219, 1) !important; }

.er-pilotage-message-field option {
	color: #111827 !important;
	background: #ffffff !important;
}

.er-pilotage-stack {
	display: grid; gap: 1.6rem;
}

.er-brief-grid-4 {
	display: grid; gap: 1rem;
}

.er-brief-grid-3 {
	display: grid; gap: 1rem;
}

@media (min-width: 768px) {
.er-brief-grid-4 {
	grid-template-columns: repeat(2, minmax(0,1fr));
}

.er-brief-grid-3 {
	grid-template-columns: repeat(3, minmax(0,1fr));
} 
}

@media (min-width: 1280px) {
.er-brief-grid-4 {
	grid-template-columns: repeat(4, minmax(0,1fr));
}
}

.er-brief-card {
	border: 1px solid rgba(209, 213, 219, .9);
	border-radius: 18px;
	margin: 0.5rem;
	padding: 1rem;
	background: #fff;
}

.er-brief-label {
	color: #6b7280;
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.er-brief-value {
	margin-top: .25rem;
	color: #111827;
	font-size: .98rem;
	font-weight: 700; }

.er-status-pill {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: .55rem 1rem;
	font-size: .875rem;
	font-weight: 800;
}

.er-team-color-chip {
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 999px;
	border: 3px solid #fff;
	box-shadow: 0 8px 18px rgba(15,23,42,.18);
	flex: 0 0 auto;
}



/* =========================================================
   WIDGETS BLOCS DASHBOARD
   ========================================================= */
/* Dashboard EasyRallye */

.er-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.er-dashboard-card {
    min-height: 180px;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.er-dashboard-card-large {
    grid-column: span 2;
}

.er-dashboard-card-small {
    grid-column: span 1;
    min-height: 145px;
    padding: 1.25rem;
}

.er-dashboard-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.er-dashboard-card-content {
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.55;
}

.er-dashboard-card-content p {
    margin: 0 0 0.75rem;
}

.er-dashboard-card-content p:last-child {
    margin-bottom: 0;
}

.er-dashboard-stat-value {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.er-dashboard-card-small .er-dashboard-stat-value {
    font-size: 2.25rem;
}

.er-dashboard-stat-label {
    margin-top: 0.85rem;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 700;
}

.er-dashboard-card-small .er-dashboard-stat-label {
    font-size: 0.82rem;
    line-height: 1.25;
}

.er-dashboard-empty {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.45;
}

.er-dashboard-card-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    margin: 0 0 1rem;
}

.er-dashboard-card-content figure {
    margin: 0 0 1rem;
}

.er-dashboard-card-content a {
    color: #e60046;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Listes dynamiques du Dashboard */

.er-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.er-dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 16px;
    padding: 0.7rem 0.85rem;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.46);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.er-dashboard-list-item:hover {
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
}

.er-dashboard-list-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.er-dashboard-list-title {
    color: #111827;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
}

.er-dashboard-list-meta {
    color: #6b7280;
    font-size: 0.76rem;
    line-height: 1.2;
}

.er-dashboard-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    background: rgba(17, 24, 39, 0.08);
    color: #374151;
    font-size: 0.7rem;
    font-weight: 700;
}

.er-dashboard-avatars {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.er-dashboard-avatars img,
.er-dashboard-avatars span {
    width: 28px;
    height: 28px;
    margin-left: -8px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.er-dashboard-avatars img:first-child,
.er-dashboard-avatars span:first-child {
    margin-left: 0;
}

.er-dashboard-footer-link {
    display: inline-flex;
    margin-top: 1rem;
    color: #e60046;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.er-dashboard-footer-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Bloc Ville du Dashboard */

.er-dashboard-city {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.er-dashboard-city img {
    width: 100%;
    max-height: 190px;
    object-fit: cover;
    border-radius: 18px;
}

.er-dashboard-city-name {
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
}

.er-dashboard-city-anecdote {
    margin-top: 0.65rem;
    color: #374151;
    font-size: 0.88rem;
    line-height: 1.5;
}

.er-dashboard-city-anecdote p {
    margin: 0 0 0.65rem;
}

.er-dashboard-city-anecdote p:last-child {
    margin-bottom: 0;
}


@media (max-width: 1279px) {
    .er-dashboard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .er-dashboard-card-large {
        grid-column: span 2;
    }

    .er-dashboard-card-small {
        grid-column: span 1;
    }
}

@media (max-width: 1023px) {
    .er-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .er-dashboard-card-large,
    .er-dashboard-card-small {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .er-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .er-dashboard-card-large,
    .er-dashboard-card-small {
        grid-column: span 1;
    }

    .er-dashboard-card {
        min-height: auto;
    }
}


/* =========================================================
   CATALOGUE DES REPÃˆRES
   ========================================================= */

.er-catalogue-reperes-map {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: 100%;
    height: 520px;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    background: rgb(243 244 246);
}

.er-catalogue-reperes-map .leaflet-pane,
.er-catalogue-reperes-map .leaflet-top,
.er-catalogue-reperes-map .leaflet-bottom {
    z-index: 1;
}

.er-catalogue-reperes-map .leaflet-popup-pane {
    z-index: 2;
}

.er-catalogue-reperes-map .leaflet-control {
    z-index: 2;
}

.er-catalogue-popup {
    min-width: 260px;
    max-width: 340px;
    font-family: inherit;
}

.er-catalogue-popup-title {
    margin-bottom: .5rem;
    font-size: 1rem;
    font-weight: 800;
    color: rgb(17 24 39);
}

.er-catalogue-popup-image,
.er-catalogue-popup-no-image {
    width: 100%;
    height: 120px;
    margin-bottom: .65rem;
    border-radius: .75rem;
    object-fit: cover;
    background: rgb(243 244 246);
}

.er-catalogue-popup-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(107 114 128);
    font-size: .8rem;
}

.er-catalogue-popup-meta {
    display: grid;
    gap: .2rem;
    margin-bottom: .65rem;
    color: rgb(75 85 99);
    font-size: .82rem;
}

.er-catalogue-popup-subtitle {
    margin-bottom: .35rem;
    font-size: .82rem;
    font-weight: 700;
    color: rgb(17 24 39);
}

.er-catalogue-popup-rows {
    display: grid;
    gap: .25rem;
    margin-bottom: .75rem;
}

.er-catalogue-popup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .35rem .5rem;
    border-radius: .55rem;
    background: rgb(249 250 251);
    color: rgb(55 65 81);
    font-size: .82rem;
}

.er-catalogue-popup-empty {
    padding: .45rem .5rem;
    border-radius: .55rem;
    background: rgb(249 250 251);
    color: rgb(107 114 128);
    font-size: .82rem;
}

.er-catalogue-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.er-catalogue-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: .45rem .65rem;
    border-radius: .55rem;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.er-catalogue-popup-button-secondary {
    border: 1px solid rgb(209 213 219);
    background: #ffffff;
    color: rgb(17 24 39) !important;
}

.er-catalogue-popup-button-primary {
    background: rgb(225 29 72);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .er-catalogue-reperes-map {
        height: 430px;
    }
}








/* ============================================================
   RepÃ¨res : carte
   ============================================================ */



.er-map-picker-wrapper,
.easy-rallye-map-picker {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.easy-rallye-map-picker .leaflet-pane,
.easy-rallye-map-picker .leaflet-top,
.easy-rallye-map-picker .leaflet-bottom {
    z-index: 1;
}

.easy-rallye-map-picker .leaflet-control,
.easy-rallye-map-picker .leaflet-control-container {
    z-index: 2;
}

.easy-rallye-placement-marker {
    z-index: 3;
}




/* ============================================================
   PrÃ©-repÃ¨res : carte, suggestions et ergonomie terrain mobile
   ============================================================ */

.er-map-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.er-map-widget-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.er-map-widget-subtitle,
.er-suggestions-help,
.er-suggestions-empty,
.er-suggestion-coordinates {
    color: rgb(107 114 128);
    font-size: 0.9rem;
}

.er-map-widget-button,
.er-btn-primary,
.er-btn-secondary,
.er-btn-danger,
.er-show-primary-photo-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 0;
}

.er-map-widget-button,
.er-btn-primary {
    background: rgb(17 24 39);
    color: #fff;
}

.er-btn-secondary,
.er-show-primary-photo-mobile {
    background: rgb(229 231 235);
    color: rgb(17 24 39);
}

.er-btn-danger {
    background: rgb(254 226 226);
    color: rgb(153 27 27);
}

.er-pre-reperes-index-map,
.er-suggestions-map {
    width: 100%;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    overflow: hidden;
    background: rgb(243 244 246);
    position: relative;
    isolation: isolate;
    z-index: 0;
}

.er-pre-reperes-index-map .leaflet-pane,
.er-suggestions-map .leaflet-pane {
    z-index: 1;
}

.er-pre-reperes-index-map .leaflet-tile-pane,
.er-suggestions-map .leaflet-tile-pane {
    z-index: 1;
}

.er-pre-reperes-index-map .leaflet-overlay-pane,
.er-suggestions-map .leaflet-overlay-pane {
    z-index: 2;
}

.er-pre-reperes-index-map .leaflet-shadow-pane,
.er-suggestions-map .leaflet-shadow-pane {
    z-index: 3;
}

.er-pre-reperes-index-map .leaflet-marker-pane,
.er-suggestions-map .leaflet-marker-pane {
    z-index: 4;
}

.er-pre-reperes-index-map .leaflet-tooltip-pane,
.er-suggestions-map .leaflet-tooltip-pane {
    z-index: 5;
}

.er-pre-reperes-index-map .leaflet-popup-pane,
.er-suggestions-map .leaflet-popup-pane {
    z-index: 6;
}

.er-pre-reperes-index-map,
.er-suggestions-map,
.easy-pre-reperes-map,
.easy-suggestions-map {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.er-pre-reperes-index-map .leaflet-control-container,
.er-suggestions-map .leaflet-control-container,
.er-pre-reperes-index-map .leaflet-top,
.er-suggestions-map .leaflet-top,
.er-pre-reperes-index-map .leaflet-bottom,
.er-suggestions-map .leaflet-bottom {
    z-index: 7;
}

.er-pre-reperes-index-map,
.er-suggestions-map {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.er-pre-reperes-index-map .leaflet-pane,
.er-pre-reperes-index-map .leaflet-top,
.er-pre-reperes-index-map .leaflet-bottom,
.er-suggestions-map .leaflet-pane,
.er-suggestions-map .leaflet-top,
.er-suggestions-map .leaflet-bottom {
    z-index: 1;
}

.er-pre-reperes-index-map .leaflet-control,
.er-suggestions-map .leaflet-control {
    z-index: 2;
}


.er-pre-reperes-index-map {
    height: 420px;
}

.er-suggestions-map {
    height: 68vh;
    min-height: 460px;
}

.er-map-marker {
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
}

.er-map-marker span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
}

.er-map-marker-pre-repere span {
    background: rgb(37 99 235);
}

.er-map-marker-suggestion {
    opacity: 0.75;
}

.er-map-marker-suggestion span {
    background: rgb(156 163 175);
}

.er-suggestions-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 1rem;
    align-items: start;
}

.er-suggestions-panel {
    background: #fff;
    border: 1px solid rgb(229 231 235);
    border-radius: 1rem;
    padding: 1rem;
}

.er-suggestions-panel-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.er-suggestion-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.9rem;
    background: rgb(249 250 251);
    margin-bottom: 0.75rem;
}

.er-suggestion-row:nth-child(even) {
    background: rgb(243 244 246);
}

.er-suggestion-comment {
    width: 100%;
    min-height: 74px;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.75rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
}

.er-suggestion-delete {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    background: rgb(254 226 226);
    color: rgb(153 27 27);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 800;
}

.er-suggestions-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.er-map-geolocation-notice {
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    background: rgb(255 251 235);
    color: rgb(146 64 14);
    padding: 0.65rem 0.85rem;
    font-size: 0.86rem;
    line-height: 1.35;
}

.er-mobile-primary-photo-control {
    display: none;
    margin-top: 1rem;
}

.er-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.35rem;
}

.er-photo-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.er-photo-action-button:hover {
    background: #115e59;
}

.er-photo-action-button--secondary {
    background: #334155;
    box-shadow: 0 8px 18px rgba(51, 65, 85, 0.16);
}

.er-photo-action-button--secondary:hover {
    background: #1e293b;
}

@media (max-width: 768px) {
    .er-pre-primary-block:not(.er-force-show-primary) {
        display: none !important;
    }

    .er-mobile-primary-photo-control {
        display: block;
    }

    .er-map-widget-header {
        flex-direction: column;
    }

    .er-map-widget-button,
    .er-show-primary-photo-mobile {
        width: 100%;
    }

    .er-pre-reperes-index-map {
        height: 340px;
    }

    .er-suggestions-layout {
        grid-template-columns: 1fr;
    }

    .er-suggestions-map {
        height: 58vh;
        min-height: 360px;
    }
}


/* =========================================================
   HEADER METIER EASYRALLYE - NOTIFICATIONS / CREER / RECHERCHE
   ========================================================= */

.er-topbar-business {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(260px, 380px);
    align-items: center;
    gap: 1rem;
    width: min(100%, 1180px);
    margin-left: 0.75rem;
    margin-right: 1rem;
}

.er-topbar-business__notifications {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    overflow: hidden;
}

.er-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: #263442;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.er-alert-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.10);
    filter: saturate(1.04);
}

.er-alert-pill--session {
    background: #eaf4ff;
}

.er-alert-pill--task {
    background: #fff3dc;
}

.er-alert-pill--reperage {
    background: #eaf8ee;
}

.er-alert-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    font-size: 0.72rem;
    font-weight: 800;
}

.er-alert-pill__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.er-create-menu {
    position: relative;
    display: inline-flex;
    justify-self: center;
    z-index: 60;
}

.er-create-menu__button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: #24313d;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(36, 49, 61, 0.18);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.er-create-menu__button:hover,
.er-create-menu.is-open .er-create-menu__button {
    background: #1a2630;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(36, 49, 61, 0.24);
}

.er-create-menu__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1rem;
    font-weight: 900;
}

.er-create-menu__dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    display: none;
    min-width: 230px;
    padding: 0.45rem;
    border-radius: 1.1rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    transform: translateX(-50%);
}

.er-create-menu.is-open .er-create-menu__dropdown {
    display: block;
}

.er-create-menu__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.8rem;
    color: #1f2937;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.er-create-menu__item:hover {
    background: #f4f6f8;
    color: #e60046;
}

.er-create-menu__item-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #111827;
    font-weight: 900;
}

.er-header-search {
    position: relative;
    justify-self: end;
    width: 100%;
    min-width: 0;
    z-index: 55;
}

.er-header-search__panel {
    position: relative;
    width: 100%;
}

.er-header-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.er-header-search__icon {
    position: absolute;
    left: 0.85rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

.er-header-search__input {
    width: 100%;
    min-height: 38px;
    padding: 0.45rem 0.95rem 0.45rem 2.1rem;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 0.84rem;
    outline: none;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.er-header-search__input:focus {
    border-color: #ff8ea7;
    box-shadow: 0 0 0 4px rgba(230, 0, 70, 0.08), 0 8px 24px rgba(15, 23, 42, 0.08);
}

.er-header-search__close,
.er-header-search__mobile-toggle {
    display: none;
}

.er-header-search__results {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(430px, 92vw);
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 0.65rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.er-header-search__group + .er-header-search__group {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #eef2f7;
}

.er-header-search__group-title {
    padding: 0 0.35rem 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.er-header-search__item {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.55rem;
    border-radius: 0.9rem;
    color: #1f2937;
    text-decoration: none;
}

.er-header-search__item:hover {
    background: #f8fafc;
    color: #e60046;
}

.er-header-search__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 900;
}

.er-header-search__item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.er-header-search__item-title {
    overflow: hidden;
    color: inherit;
    font-size: 0.87rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.er-header-search__item-meta {
    overflow: hidden;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.er-header-search__empty {
    padding: 0.85rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 1280px) and (min-width: 1024px) {
    .er-topbar-business {
        grid-template-columns: minmax(0, 1fr) auto minmax(220px, 320px);
        gap: 0.7rem;
    }

    .er-alert-pill {
        padding-inline: 0.6rem;
        font-size: 0.72rem;
    }
}

@media (max-width: 1023.98px) {
    .er-topbar-business {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        margin-left: auto;
        margin-right: 0.4rem;
    }

    .er-topbar-business__notifications,
    .er-create-menu,
    .er-header-search__panel {
        display: none;
    }

    .er-header-search {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    .er-header-search__mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border: 0;
        border-radius: 999px;
        background: #ffffff;
        color: #24313d;
        font-size: 1.1rem;
        font-weight: 900;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.10);
        cursor: pointer;
    }

    .er-header-search__panel.is-mobile-open {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: block;
        width: 100vw;
        min-height: 100vh;
        padding: 1rem;
        background: rgba(248, 250, 252, 0.98);
    }

    .er-header-search__panel.is-mobile-open .er-header-search__input-wrap {
        max-width: 720px;
        margin: 0 auto;
    }

    .er-header-search__panel.is-mobile-open .er-header-search__input {
        min-height: 48px;
        padding-right: 3rem;
        font-size: 1rem;
        background: #ffffff;
    }

    .er-header-search__panel.is-mobile-open .er-header-search__close {
        position: absolute;
        right: 0.45rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        border: 0;
        border-radius: 999px;
        background: #f1f5f9;
        color: #111827;
        font-size: 1.4rem;
        line-height: 1;
        cursor: pointer;
    }

    .er-header-search__panel.is-mobile-open .er-header-search__results {
        position: static;
        width: min(720px, 100%);
        max-height: calc(100vh - 6rem);
        margin: 0.8rem auto 0;
    }

    .fi-topbar .er-topbar-business {
        order: 20;
        margin-left: 0.35rem;
        margin-right: 0.55rem;
    }

    .fi-topbar .fi-dropdown:last-child {
        order: 30;
    }

    .fi-topbar .er-header-search__mobile-toggle {
        margin-left: 0;
        margin-right: 0;
    }
}

/* === Taches : colonnes, actions, avatars et bloc taches terminees === */
.fi-ta-actions,
.fi-ta-actions .fi-ac,
.fi-ta-cell .fi-ac {
    /*flex-wrap: wrap !important;    ca force le passage Ã  la ligne des boutons du tableau*/
    gap: 0.35rem !important;
    align-items: center;
}

.fi-ta-cell:has(.er-task-row-action) .fi-ac,
.fi-ta-actions:has(.er-task-row-action) .fi-ac {
    display: grid !important;
    grid-template-columns: repeat(2, max-content);
    column-gap: 0.85rem !important;
    row-gap: 0.35rem !important;
    align-items: center;
    justify-content: end;
}

.fi-ta-actions .fi-ac-action,
.fi-ta-cell .fi-ac-action,
.er-task-row-action {
    margin-bottom: 0;
    white-space: nowrap !important;
}

.er-task-row-action-edit,
.er-task-row-action-delete,
.er-task-row-action-start,
.er-task-row-action-finish {
    min-width: max-content;
}

.er-task-number-column {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.er-task-assignee-column {
    width: 3.25rem;
    min-width: 3.25rem;
    max-width: 3.25rem;
    text-align: center;
}

.er-user-avatar-wrap,
.er-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.er-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.er-user-avatar--initials {
    background: #e2e8f0;
}

.er-user-avatar--empty {
    background: #f1f5f9;
    color: #94a3b8;
}

.er-completed-tasks-empty {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.er-completed-tasks-block {
    width: 100%;
    overflow-x: auto;
}

.er-completed-tasks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.er-completed-tasks-table th,
.er-completed-tasks-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    text-align: left;
    vertical-align: top;
}

.er-completed-tasks-table th {
    color: #334155;
    font-weight: 700;
    background: #f8fafc;
}

.er-completed-tasks-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.er-completed-tasks-table a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.er-completed-tasks-table a:hover {
    text-decoration: underline;
}

.er-completed-tasks-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.er-completed-tasks-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
}

.er-completed-tasks-link:hover {
    background: #1e293b;
}

@media (max-width: 1023.98px) {
    .er-completed-tasks-table th,
    .er-completed-tasks-table td {
        padding: 0.65rem;
        white-space: nowrap;
    }
}

/* =========================================================
   ACTIONS TABLEAUX FILAMENT - DESKTOP
   Voir / Modifier / Supprimer sur une meme ligne,
   actions complementaires sur une seconde ligne.
   ========================================================= */

@media (min-width: 1024px) {
    .fi-ta-actions,
    .fi-ta-actions .fi-ac,
    .fi-ta-cell .fi-ac {
        flex-wrap: nowrap !important;
        gap: 0.35rem !important;
        align-items: center !important;
    }

    .fi-ta-actions .fi-ac,
    .fi-ta-cell .fi-ac {
        display: grid !important;
        grid-template-columns: repeat(3, max-content) !important;
        grid-auto-rows: max-content !important;
        column-gap: 0.5rem !important;
        row-gap: 0.35rem !important;
        justify-content: end !important;
        justify-items: end !important;
    }

    .fi-ta-actions .fi-ac-action,
    .fi-ta-cell .fi-ac-action,
    .fi-ta-actions a,
    .fi-ta-actions button,
    .fi-ta-cell .fi-ac a,
    .fi-ta-cell .fi-ac button {
        white-space: nowrap !important;
        min-width: max-content !important;
    }
}

@media (max-width: 1023.98px) {
    .fi-ta-actions,
    .fi-ta-actions .fi-ac,
    .fi-ta-cell .fi-ac {
        flex-wrap: wrap !important;
    }
}


/* =========================================================
   SWITCHER LANGUES
   ========================================================= */
.er-language-switcher-tabs .fi-tabs {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
    ring-width: 0 !important;
}

.er-language-switcher-tabs .fi-tabs::-webkit-scrollbar {
    height: 0;
}

.er-language-switcher-tabs .fi-tabs-item,
.er-language-switcher-tabs .fi-tabs button {
    min-height: 2.15rem !important;
    padding: 0.38rem 0.85rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 9999px !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease !important;
}

.er-language-switcher-tabs .fi-tabs-item span,
.er-language-switcher-tabs .fi-tabs button span {
    color: inherit !important;
}

.er-language-switcher-tabs .fi-tabs-item:hover,
.er-language-switcher-tabs .fi-tabs button:hover {
    background: #e5e7eb !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}

.er-language-switcher-tabs .fi-tabs-item.fi-active,
.er-language-switcher-tabs .fi-tabs-item[aria-selected="true"],
.er-language-switcher-tabs .fi-tabs button.fi-active,
.er-language-switcher-tabs .fi-tabs button[aria-selected="true"] {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12) !important;
}

.er-language-switcher-tabs .fi-tabs-item.fi-active:hover,
.er-language-switcher-tabs .fi-tabs-item[aria-selected="true"]:hover,
.er-language-switcher-tabs .fi-tabs button.fi-active:hover,
.er-language-switcher-tabs .fi-tabs button[aria-selected="true"]:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

.er-language-switcher-tabs .fi-tabs-item.fi-active span,
.er-language-switcher-tabs .fi-tabs-item[aria-selected="true"] span,
.er-language-switcher-tabs .fi-tabs button.fi-active span,
.er-language-switcher-tabs .fi-tabs button[aria-selected="true"] span {
    color: #ffffff !important;
}

.er-language-switcher-tabs .fi-tabs-item img,
.er-language-switcher-tabs .fi-tabs button img {
    flex: 0 0 auto !important;
}

@media (max-width: 640px) {
    .er-language-switcher-tabs .fi-tabs {
        display: flex !important;
        width: 100% !important;
        overflow-x: auto !important;
        padding-bottom: .15rem !important;
    }

    .er-language-switcher-tabs .fi-tabs-item,
    .er-language-switcher-tabs .fi-tabs button {
        flex: 0 0 auto !important;
    }
}


/* =========================================================
   FICHES VILLES
   ========================================================= */

.er-city-alert {
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.er-city-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.er-city-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.er-city-article {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 2rem);
    border-radius: 1.75rem;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.er-city-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid #e5e7eb;
}

.er-city-kicker {
    margin: 0 0 0.35rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.78rem;
    font-weight: 800;
}

.er-city-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.er-city-subtitle {
    margin-top: 0.65rem;
    color: #475569;
    font-size: 1rem;
}

.er-city-hero-actions,
.er-city-article-footer,
.er-city-pdf-actions,
.er-city-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.er-city-article-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    border: 0;
    background: #0f172a;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.er-city-article-button:hover {
    background: #1e293b;
}

.er-city-article-button-secondary {
    background: #e2e8f0;
    color: #0f172a !important;
}

.er-city-pdf-unavailable {
    display: inline-flex;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 800;
}

.er-city-visuals {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 190px);
    gap: 1rem;
    align-items: stretch;
    margin: 1.5rem 0 2rem;
}

.er-city-main-visual,
.er-city-blason-visual,
.er-city-media-card {
    margin: 0;
}

.er-city-main-visual img,
.er-city-blason-visual img,
.er-city-media-card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1.25rem;
    background: #ffffff;
    object-fit: cover;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}

.er-city-main-visual img {
    max-height: 430px;
}

.er-city-blason-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: #f8fafc;
    padding: 1.25rem;
}

.er-city-blason-visual img {
    width: auto;
    max-width: 150px;
    max-height: 210px;
    object-fit: contain;
    box-shadow: none;
}

.er-city-content-flow {
    display: grid;
    gap: 1.35rem;
}

.er-city-text-section h2,
.er-city-media-section h2,
.er-city-places-section h2 {
    margin: 0 0 0.7rem;
    color: #12345b;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.2;
    font-weight: 900;
}

.er-city-rich-text {
    color: #253247;
    font-size: 1.02rem;
    line-height: 1.85;
}

.er-city-media-section,
.er-city-places-section {
    margin-top: 2.2rem;
}

.er-city-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.er-city-media-card {
    position: relative;
    overflow: visible;
}

.er-city-media-card img {
    aspect-ratio: 4 / 3;
    transition: transform 180ms ease, box-shadow 180ms ease, z-index 180ms ease;
}

.er-city-media-card:hover img {
    position: relative;
    z-index: 5;
    transform: scale(1.08);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.er-city-media-card figcaption {
    margin-top: 0.55rem;
    text-align: center;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
}

.er-city-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.er-city-section-heading p {
    margin: 0;
    color: #64748b;
}

.er-city-places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.er-city-place-card {
    padding: 1rem;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.er-city-place-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 900;
}

.er-city-place-card h3 {
    margin: 0.35rem 0 0.55rem;
    color: #0f172a;
    font-size: 1.12rem;
    font-weight: 900;
}

.er-city-place-line,
.er-city-place-comment {
    margin: 0.25rem 0;
    color: #334155;
}

.er-city-place-line a {
    color: #0f172a;
    font-weight: 800;
    text-decoration: underline;
}

.er-city-place-comment {
    margin-top: 0.65rem;
    line-height: 1.6;
}

.er-city-place-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.er-city-place-author img,
.er-city-place-author-fallback {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    object-fit: cover;
    background: #0f172a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.er-city-empty-state {
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    color: #64748b;
}

.er-city-place-form {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1.25rem;
    border: 1px solid #dbeafe;
    background: #eff6ff;
}

.er-city-place-form.is-open {
    display: block;
}

.er-city-place-form h3 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
}

.er-city-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.er-city-form-grid label,
.er-city-form-full {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-weight: 800;
}

.er-city-form-grid input,
.er-city-form-grid select,
.er-city-form-full textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #ffffff;
    padding: 0.7rem 0.85rem;
    color: #0f172a;
    font-weight: 600;
}

.er-city-form-full {
    margin-top: 0.85rem;
}

.er-city-form-actions {
    margin-top: 1rem;
}

.er-city-pdf-box {
    padding: 1rem;
    border-radius: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.er-city-pdf-status {
    margin-bottom: 0.85rem;
    color: #0f172a;
    font-weight: 900;
}

.er-city-pdf-help {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

.er-city-article-footer {
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 760px) {
    .er-city-article {
        border-radius: 1.25rem;
        padding: 1rem;
    }

    .er-city-hero,
    .er-city-section-heading {
        display: grid;
    }

    .er-city-visuals {
        grid-template-columns: 1fr;
    }

    .er-city-blason-visual img {
        max-height: 150px;
    }
}

/* =========================================================
   CORRECTIF CIBLÃ‰ - PAGE AFFICHER FICHE VILLE
   Ne modifie pas la sidebar : pas de changement de largeur,
   pas de masquage des badges, pas de z-index global.
   Cible uniquement la page contenant .er-city-article.
   ========================================================= */

@media (min-width: 1024px) {
    body.fi-sidebar-collapsed:has(.er-city-article) .fi-topbar,
    body:has(.fi-sidebar-collapsed):has(.er-city-article) .fi-topbar {
        margin-left: 4.75rem !important;
        width: calc(100% - 4.75rem) !important;
    }

    body.fi-sidebar-collapsed:has(.er-city-article) .fi-main-ctn,
    body:has(.fi-sidebar-collapsed):has(.er-city-article) .fi-main-ctn {
        margin-left: 4.75rem !important;
    }
}

@media (max-width: 1023.98px) {
    body:has(.er-city-article) .fi-topbar,
    body:has(.er-city-article) .fi-main-ctn {
        margin-left: 0 !important;
        width: 100% !important;
    }
}


/* ==========================================================
   CARTOGRAPHIE MapLibre
   ========================================================== */


.er-map-preview-thumb {
    width: 120px;
    height: 70px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #f8fafc;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.er-map-preview-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(226, 232, 240, 0.95), rgba(248, 250, 252, 0.95)),
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.25) 0 6px, rgba(226, 232, 240, 0.25) 6px 12px);
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.er-map-config-card {
    padding: 14px 16px;
    border: 1px solid rgba(2, 44, 96, 0.12);
    border-radius: 16px;
    background: #f8fafc;
    color: #334155;
    line-height: 1.5;
}

.er-map-osm-locked-notice {
    padding: 14px 16px;
    border-left: 5px solid #0f4c81;
    border-radius: 14px;
    background: #eff6ff;
    color: #0f172a;
    line-height: 1.5;
}

.er-map-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.er-map-layer-row {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
}

.er-map-preview-frame {
    min-height: 420px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #e2e8f0;
    position: relative !important;
    overflow: hidden !important;
}

.er-map-demo-overlay-layer {
    position: absolute !important;
    inset: 0 !important;
    z-index: 7 !important;
    pointer-events: none !important;
}

.er-map-section-notice {
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(239, 246, 255, 0.92));
    color: #1e3a8a;
    border-radius: 16px;
    padding: 14px 16px;
    line-height: 1.5;
}

.er-map-section-card {
    border-radius: 18px;
}

.er-map-section-summary {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.86);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.er-map-section-summary--warning {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(255, 251, 235, 0.92);
    color: #92400e;
}

.er-map-section-summary__status {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.er-map-section-summary__warning {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(254, 243, 199, 0.95);
    color: #92400e;
    font-weight: 700;
}

.er-map-section-settings-form {
    display: grid;
    gap: 18px;
}

.er-map-section-settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
}

.er-map-source-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    line-height: 1.25;
}

.er-map-source-color {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.12);
    flex: 0 0 auto;
}

.er-map-source-muted {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.er-map-config-card strong {
    color: #0f172a;
}

.fi-fo-repeater .er-map-source-preview small {
    color: #64748b;
}

.er-map-layer-row {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.er-map-layer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.er-map-layer-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    vertical-align: middle;
}

.er-map-config-card strong,
.er-map-osm-locked-notice strong {
    color: #0f172a;
}

.fi-fo-repeater .er-map-config-card,
.fi-fo-repeater .er-map-osm-locked-notice {
    margin-bottom: 8px;
}

.er-map-preview-panel {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.er-map-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.er-map-preview-toolbar strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.er-map-preview-toolbar span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.er-map-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.er-map-preview-btn {
    border: 1px solid rgba(2, 44, 96, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #022c60;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
    transition: all 0.18s ease;
}

.er-map-preview-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: rgba(2, 44, 96, 0.35);
}

.er-map-preview-btn--primary {
    background: #022c60;
    border-color: #022c60;
    color: #ffffff;
}

.er-map-preview-btn--primary:hover:not(:disabled) {
    background: #03418b;
    border-color: #03418b;
}

.er-map-preview-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.er-map-preview-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    background: #e5e7eb;
}

.er-map-preview-frame .maplibregl-canvas,
.er-map-preview-frame .maplibregl-control-container {
    z-index: 1;
}

.er-map-preview-status {
    margin-top: 10px;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    padding: 10px 12px;
}

.er-map-preview-status[data-status="success"] {
    background: #ecfdf5;
    color: #047857;
}

.er-map-preview-status[data-status="warning"] {
    background: #fffbeb;
    color: #92400e;
}

.er-map-preview-status[data-status="error"] {
    background: #fef2f2;
    color: #b91c1c;
}

.er-map-preview-empty {
    border: 1px dashed rgba(148, 163, 184, 0.55);
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    padding: 28px;
    text-align: center;
}

.er-map-preview-panel--demo {
    margin-bottom: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.er-map-preview-panel--demo .er-map-preview-frame {
    min-height: 420px;
}

.er-map-demo-marker {
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25) !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: grab !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 5 !important;
    user-select: none !important;
    touch-action: none !important;
}

.er-map-demo-marker:active {
    cursor: grabbing !important;
}

.er-map-preview-frame .maplibregl-marker {
    z-index: 10;
    will-change: transform !important;
}

.er-map-demo-popup p {
    margin: 0.35rem 0 0.2rem;
    line-height: 1.35;
}

.er-map-demo-popup small {
    color: #6b7280;
}

.er-map-source-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.er-map-source-icon,
.er-map-source-icon-fallback {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    object-fit: contain;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.er-map-demo-marker-wrap {
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    cursor: grab !important;
    user-select: none !important;
    touch-action: none !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    overflow: visible !important;
}

.er-map-demo-marker-wrap:active {
    cursor: grabbing !important;
}

.er-map-demo-marker-wrap .er-map-demo-marker,
.er-map-demo-marker-wrap .er-map-demo-circle-marker {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

.er-map-demo-marker-wrap .er-map-demo-info-badge {
    position: absolute !important;
    left: 50% !important;
    bottom: calc(100% + 10px) !important;
    transform: translateX(-50%) !important;
    min-width: 210px !important;
    max-width: 280px !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .18) !important;
    display: none !important;
    z-index: 25 !important;
    pointer-events: none !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.er-map-demo-marker,
.er-map-demo-circle-marker {
    position: relative !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25) !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 5 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    text-align: center !important;
}

.er-map-demo-circle-marker {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 8px 26px rgba(15, 23, 42, 0.18) !important;
}

.er-map-demo-marker-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.er-map-demo-marker-wrap--info-open .er-map-demo-info-badge {
    display: grid !important;
    gap: 5px !important;
}

.er-map-demo-info-photo {
    width: 100% !important;
    height: 72px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #e5e7eb, #f8fafc) !important;
    border: 1px solid #e5e7eb !important;
}

.er-map-demo-info-label {
    display: inline-flex !important;
    align-items: center !important;
    width: max-content !important;
    max-width: 100% !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.er-map-demo-status-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    margin-right: 6px !important;
    background: #22c55e !important;
}

.er-map-demo-status-dot.is-inactive {
    background: #ef4444 !important;
}

.er-map-demo-view-btn {
    border: 0 !important;
    border-radius: 999px !important;
    padding: 6px 11px !important;
    background: #111827 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    opacity: .55 !important;
}

.er-map-demo-marker-icon {
    display: block !important;
    width: 72% !important;
    height: 72% !important;
    object-fit: contain !important;
    pointer-events: none !important;
}

.er-map-demo-badge {
    position: absolute !important;
    left: 50% !important;
    top: calc(100% + 4px) !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    padding: 2px 6px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.16) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 7 !important;
}

.er-map-demo-badge--conditional {
    opacity: 0.68 !important;
}

.er-map-demo-marker--uploaded-icon {
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.er-map-demo-marker-icon--uploaded {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    filter: none !important;
    pointer-events: none !important;
}

.er-map-demo-marker-overlay-label--on-uploaded-icon {
    max-width: 92% !important;
}


.er-map-demo-marker-overlay-label {
    position: absolute !important;
    left: calc(50% + var(--er-label-offset-x, 0px)) !important;
    top: calc(50% + var(--er-label-offset-y, 0px)) !important;
    transform: translate(-50%, -50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    min-height: 18px !important;
    padding: 2px 5px !important;
    border-style: solid !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 8 !important;
}

.er-map-demo-marker-overlay-label--small {
    right: -5px !important;
    bottom: -5px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    min-width: 18px !important;
    min-height: 18px !important;
    padding: 1px 4px !important;
    font-size: 10px !important;
    color: #111827 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
}

.er-map-demo-marker-overlay-label--circle {
    top: 50% !important;
}

.er-map-demo-marker--conditional-label .er-map-demo-marker-overlay-label {
    opacity: 0.72 !important;
}


.er-map-preview-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin: 0.65rem 0 0.25rem;
    min-height: 38px !important;
}

.er-map-preview-toggle {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 650;
}

.er-map-preview-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

.er-map-preview-frame .maplibregl-marker {
    will-change: transform !important;
}

.er-map-demo-marker-wrap {
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    cursor: grab !important;
    user-select: none !important;
    touch-action: none !important;
    transform-origin: center center !important;
}
.er-map-demo-marker-wrap:active {
    cursor: grabbing !important;
}


.er-map-demo-info-badge {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    display: none;
    width: max-content;
    max-width: 230px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
    color: #0f172a;
    font-size: 0.75rem;
    line-height: 1.25;
    z-index: 20;
    pointer-events: none;
}

.er-map-demo-info-badge strong,
.er-map-demo-info-badge span,
.er-map-demo-info-badge small {
    display: block;
}

.er-map-demo-info-badge span {
    margin-top: 0.25rem;
}

.er-map-demo-info-badge small {
    margin-top: 0.35rem;
    color: #64748b;
}

.er-map-demo-marker-wrap--info-open .er-map-demo-info-badge {
    display: block;
}

.er-map-demo-marker--conditional-label .er-map-demo-marker-overlay-label {
    opacity: 1 !important;
}

.er-map-demo-marker-wrap .er-map-demo-marker-overlay-label {
    line-height: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

.er-map-demo-marker-wrap .er-map-demo-marker,
.er-map-demo-marker-wrap .er-map-demo-circle-marker {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    box-sizing: border-box !important;
}

.er-map-demo-marker-wrap .er-map-demo-info-badge {
    pointer-events: none !important;
}
.er-map-preview-panel--demo .er-map-preview-status[data-status="success"] {
    background: #ecfdf5;
    color: #047857;
}

.er-map-preview-panel--demo .er-map-preview-status[data-status="warning"] {
    background: #fffbeb;
    color: #92400e;
}

.er-map-preview-panel--demo .er-map-preview-status[data-status="error"] {
    background: #fef2f2;
    color: #b91c1c;
}

.er-map-demo-dom-marker {
    position: absolute !important;
    width: var(--er-marker-size, 34px) !important;
    height: var(--er-marker-size, 34px) !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    cursor: grab !important;
    pointer-events: auto !important;
    user-select: none !important;
    touch-action: none !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
}

.er-map-demo-dom-marker[data-anchor="bottom"] {
    transform: translate(-50%, -100%) !important;
}

.er-map-demo-dom-marker.is-dragging {
    cursor: grabbing !important;
    z-index: 40 !important;
}

.er-map-demo-dom-visual {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-style: solid !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25) !important;
    box-sizing: border-box !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.er-map-demo-dom-marker[data-anchor="bottom"] .er-map-demo-dom-visual {
    top: 100% !important;
    transform: translate(-50%, -100%) !important;
}

.er-map-demo-dom-visual--uploaded-icon {
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.er-map-demo-dom-visual--uploaded-icon img,
.er-map-demo-dom-visual img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    pointer-events: none !important;
}

.er-map-demo-dom-visual--circle-area {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 8px 26px rgba(15, 23, 42, 0.18) !important;
}

.er-map-demo-dom-main-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    color: inherit !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.er-map-demo-dom-label {
    position: absolute !important;
    left: calc(50% + var(--er-label-offset-x, 0px)) !important;
    top: calc(50% + var(--er-label-offset-y, 0px)) !important;
    transform: translate(-50%, -50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    min-height: 18px !important;
    padding: 2px 5px !important;
    border-style: solid !important;
    border-radius: 999px !important;
    background: #fff !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.er-map-demo-dom-marker .er-map-demo-info-badge {
    position: absolute !important;
    left: 50% !important;
    bottom: calc(100% + 10px) !important;
    transform: translateX(-50%) !important;
    display: none !important;
    width: max-content !important;
    min-width: 210px !important;
    max-width: 280px !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .18) !important;
    z-index: 60 !important;
    pointer-events: none !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

.er-map-demo-dom-marker--info-open .er-map-demo-info-badge {
    display: grid !important;
    gap: 5px !important;
}


@media (max-width: 768px) {
    .er-map-section-settings-actions {
        justify-content: stretch;
    }

    .er-map-section-settings-actions .fi-btn {
        width: 100%;
    }

    .er-map-layer-row {
        padding: 10px;
        border-radius: 14px;
    }

    .er-map-layer-chip {
        font-size: 11px;
    }

    .er-map-preview-panel {
        padding: 12px;
    }

    .er-map-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .er-map-preview-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .er-map-preview-btn {
        width: 100%;
    }

    .er-map-preview-frame {
        min-height: 62vh;
    }
}





/* =========================================================
   CORRECTIF FILAMENT - Z-INDEX SIDEBAR / HEADER
   EmpÃªche le header de passer au-dessus du menu,
   et force le retour correct desktop aprÃ¨s un passage mobile.
   NE FONCTIONNE PAS POUR LE MOMENT -> COMMENTE
   ========================================================= 

@media (min-width: 1024px) {
    .fi-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 80 !important;
        width: 18rem !important;
        max-width: 18rem !important;
        transform: none !important;
    }

    html.fi-sidebar-collapsed .fi-sidebar,
    body.fi-sidebar-collapsed .fi-sidebar,
    .fi-layout.fi-sidebar-collapsed .fi-sidebar {
        width: 4.75rem !important;
        max-width: 4.75rem !important;
    }

    .fi-topbar {
        z-index: 50 !important;
    }

    .fi-sidebar-close-overlay {
        display: none !important;
        pointer-events: none !important;
    }
}

@media (max-width: 1023.98px) {
    .fi-sidebar {
        z-index: 90 !important;
    }

    .fi-sidebar-close-overlay {
        z-index: 80 !important;
    }

    .fi-topbar {
        z-index: 60 !important;
    }
}
*/


/* PrÃ©-repÃ¨res â€” visualisation lecture seule des images */
.er-readonly-images {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    width: 100%;
}

.er-readonly-primary-image {
    width: 100%;
}

.er-readonly-context-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

.er-readonly-image-card {
    margin: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.er-readonly-image-card--primary {
    width: 100%;
}

.er-readonly-image-card a {
    display: block;
    background: #f8fafc;
}

.er-readonly-image-card img {
    display: block;
    width: 100%;
    max-height: 760px;
    object-fit: contain;
    background: #f8fafc;
}

.er-readonly-context-images .er-readonly-image-card img {
    height: 420px;
    max-height: 420px;
}

.er-readonly-image-card figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #334155;
}

.er-readonly-image-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.er-readonly-image-badge--primary {
    background: #dcfce7;
    color: #166534;
}

/* PrÃ©-repÃ¨res â€” carte lecture seule */
.er-readonly-map-panel {
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.er-readonly-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.er-readonly-map-header strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.er-readonly-map-header span {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.78rem;
    color: #64748b;
}

.er-readonly-map-header a {
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.er-readonly-map-header a:hover {
    background: #dbeafe;
}

.er-readonly-map-frame {
    width: 100%;
    height: 440px;
    background: #e2e8f0;
}

.er-readonly-map-status {
    padding: 0.65rem 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    color: #64748b;
    font-size: 0.78rem;
}

.er-readonly-map-empty {
    width: 100%;
    border: 1px dashed rgba(148, 163, 184, 0.65);
    border-radius: 14px;
    padding: 1rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

.er-readonly-map-marker {
    position: relative;
    width: 34px;
    height: 34px;
    border: 3px solid #ffffff;
    border-radius: 999px 999px 999px 0;
    background: #f97316;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
    transform: rotate(-45deg);
}

.er-readonly-map-marker span {
    position: absolute;
    inset: 8px;
    border-radius: 999px;
    background: #ffffff;
    opacity: 0.95;
}

.er-readonly-map-panel .maplibregl-canvas,
.er-readonly-map-panel .maplibregl-control-container {
    z-index: 1;
}

@media (max-width: 1023.98px) {
    .er-readonly-context-images {
        grid-template-columns: 1fr;
    }

    .er-readonly-context-images .er-readonly-image-card img {
        height: auto;
        max-height: 560px;
    }
}

@media (max-width: 767.98px) {
    .er-readonly-image-card,
    .er-readonly-map-panel {
        border-radius: 14px;
    }

    .er-readonly-image-card img {
        max-height: 520px;
    }

    .er-readonly-image-card figcaption {
        padding: 0.75rem;
    }

    .er-readonly-map-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .er-readonly-map-frame {
        height: 360px;
    }
}

/* PrÃ©-repÃ¨res â€” correction affichage carte lecture seule */
.fi-in-entry-wrp:has(.er-readonly-map-panel),
.fi-in-entry-wrp:has(.er-readonly-map-panel) .fi-in-entry-wrp-entry,
.fi-in-entry-wrp:has(.er-readonly-map-panel) .fi-in-text,
.fi-in-entry-wrp:has(.er-readonly-map-panel) .fi-in-text-item {
    display: block;
    width: 100%;
    max-width: 100%;
}

.er-readonly-map-panel {
    display: block;
    width: 100%;
    max-width: 100%;
}

.er-readonly-map-frame {
    display: block;
    width: 100%;
    min-height: 440px;
}

/* PrÃ©-repÃ¨res â€” icÃ´ne de carte selon modÃ¨le cartographique RepÃ¨res */
.er-readonly-map-marker {
    --er-map-marker-size: 30px;
    --er-map-marker-mobile-size: 34px;
    --er-map-marker-color: #6b7280;
    --er-map-marker-stroke-color: #ffffff;
    --er-map-marker-stroke-width: 2px;
    --er-map-marker-opacity: 0.9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--er-map-marker-size);
    height: var(--er-map-marker-size);
    border: var(--er-map-marker-stroke-width) solid var(--er-map-marker-stroke-color);
    background: var(--er-map-marker-color);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    opacity: var(--er-map-marker-opacity);
    transform-origin: center center;
}

.er-readonly-map-marker--circle {
    border-radius: 999px;
}

.er-readonly-map-marker--square {
    border-radius: 9px;
}

.er-readonly-map-marker--diamond {
    border-radius: 8px;
    transform: rotate(45deg);
}

.er-readonly-map-marker--pin {
    border-radius: 999px 999px 999px 0;
    transform: rotate(-45deg);
}

.er-readonly-map-marker--cross {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.er-readonly-map-marker--cross::before,
.er-readonly-map-marker--cross::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 100%;
    height: max(var(--er-map-marker-stroke-width), 4px);
    border-radius: 999px;
    background: var(--er-map-marker-color);
    box-shadow: 0 0 0 2px var(--er-map-marker-stroke-color), 0 8px 18px rgba(15, 23, 42, 0.24);
}

.er-readonly-map-marker--cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.er-readonly-map-marker--cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.er-readonly-map-marker-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25em;
    min-height: 1.25em;
    padding: 0.08rem 0.16rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}

.er-readonly-map-marker--diamond .er-readonly-map-marker-label {
    transform: rotate(-45deg);
}

.er-readonly-map-marker--pin .er-readonly-map-marker-label {
    transform: rotate(45deg);
}

.er-readonly-map-marker--cross .er-readonly-map-marker-label {
    background: var(--er-map-marker-color);
    box-shadow: 0 0 0 2px var(--er-map-marker-stroke-color);
}

.er-readonly-map-marker-status-badge {
    position: absolute;
    right: -7px;
    bottom: -7px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.24);
}

.er-readonly-map-marker--diamond .er-readonly-map-marker-status-badge {
    transform: rotate(-45deg);
}

.er-readonly-map-marker--pin .er-readonly-map-marker-status-badge {
    transform: rotate(45deg);
}

@media (max-width: 767.98px) {
    .er-readonly-map-marker {
        width: var(--er-map-marker-mobile-size);
        height: var(--er-map-marker-mobile-size);
    }
}

.er-readonly-map-marker .er-readonly-map-marker-label,
.er-readonly-map-marker .er-readonly-map-marker-status-badge {
    inset: auto;
    opacity: 1;
}

/* RepÃ¨res â€” carte Ã©dition MapLibre */
.easy-rallye-map-picker .maplibregl-canvas,
.easy-rallye-map-picker .maplibregl-control-container {
    z-index: 1;
}

.easy-rallye-maplibre-placement-marker {
    position: relative;
    width: 30px;
    height: 42px;
    border-radius: 999px 999px 999px 0;
    border: 3px solid #ffffff;
    background: #dc2626;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
    transform: rotate(-45deg);
}

.easy-rallye-maplibre-placement-marker span {
    position: absolute;
    inset: 9px;
    border-radius: 999px;
    background: #ffffff;
    opacity: 0.95;
}

/* RepÃ¨res â€” icÃ´nes carte et lecture seule */
.er-readonly-map-marker--image,
.er-carte-reperes-marker--image {
    overflow: visible;
    background: #ffffff;
}

.er-readonly-map-marker--image img,
.er-carte-reperes-marker--image img {
    display: block;
    width: calc(var(--er-map-marker-size) - (var(--er-map-marker-stroke-width) * 2));
    height: calc(var(--er-map-marker-size) - (var(--er-map-marker-stroke-width) * 2));
    object-fit: contain;
    border-radius: inherit;
    transform: none;
}

.er-carte-reperes-marker {
    --er-map-marker-size: 32px;
    --er-map-marker-mobile-size: 36px;
    --er-map-marker-color: #800000;
    --er-map-marker-stroke-color: #ffffff;
    --er-map-marker-stroke-width: 2px;
    --er-map-marker-opacity: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--er-map-marker-size);
    height: var(--er-map-marker-size);
    border: var(--er-map-marker-stroke-width) solid var(--er-map-marker-stroke-color);
    border-radius: 999px;
    background: var(--er-map-marker-color);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
    opacity: var(--er-map-marker-opacity);
}

.er-carte-reperes-marker-label {
    position: absolute;
    left: 50%;
    bottom: -0.55rem;
    z-index: 3;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    min-height: 1.15rem;
    padding: 0.08rem 0.32rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

.er-carte-reperes-cluster {
    --er-map-cluster-size: 44px;
    --er-map-cluster-color: #800000;
    --er-map-cluster-stroke-color: #ffffff;
    --er-map-cluster-stroke-width: 3px;
    --er-map-cluster-text-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--er-map-cluster-size);
    height: var(--er-map-cluster-size);
    border: var(--er-map-cluster-stroke-width) solid var(--er-map-cluster-stroke-color);
    border-radius: 999px;
    background: var(--er-map-cluster-color);
    color: var(--er-map-cluster-text-color);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.30);
}

.er-carte-reperes-cluster strong {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
}

.er-carte-reperes-map .maplibregl-canvas,
.er-carte-reperes-map .maplibregl-control-container {
    z-index: 1;
}

@media (max-width: 767.98px) {
    .er-readonly-map-marker--image img,
    .er-carte-reperes-marker--image img {
        width: calc(var(--er-map-marker-mobile-size) - (var(--er-map-marker-stroke-width) * 2));
        height: calc(var(--er-map-marker-mobile-size) - (var(--er-map-marker-stroke-width) * 2));
    }

    .er-carte-reperes-marker {
        width: var(--er-map-marker-mobile-size);
        height: var(--er-map-marker-mobile-size);
    }
}

/* =========================================================
   Correctif z-index MapLibre â€” marqueurs RepÃ¨res visibles
   ========================================================= */
.er-readonly-map-panel .maplibregl-canvas,
.er-carte-reperes-map .maplibregl-canvas,
.easy-rallye-map-picker .maplibregl-canvas {
    z-index: 0 !important;
}

.er-readonly-map-panel .maplibregl-marker,
.er-carte-reperes-map .maplibregl-marker,
.easy-rallye-map-picker .maplibregl-marker {
    z-index: 10 !important;
}

.er-readonly-map-panel .maplibregl-popup,
.er-carte-reperes-map .maplibregl-popup,
.easy-rallye-map-picker .maplibregl-popup {
    z-index: 20 !important;
}

.er-readonly-map-panel .maplibregl-control-container,
.er-carte-reperes-map .maplibregl-control-container,
.easy-rallye-map-picker .maplibregl-control-container {
    z-index: 30 !important;
}


/* =========================================================
   Correctif visibilitÃ© marqueurs MapLibre â€” RepÃ¨res / PrÃ©-repÃ¨res
   ========================================================= */
.er-readonly-map-panel .maplibregl-canvas-container,
.er-carte-reperes-map .maplibregl-canvas-container,
.easy-rallye-map-picker .maplibregl-canvas-container {
    z-index: 0 !important;
}

.er-readonly-map-panel .maplibregl-marker,
.er-carte-reperes-map .maplibregl-marker,
.easy-rallye-map-picker .maplibregl-marker {
    z-index: 50 !important;
    pointer-events: auto !important;
}

.er-readonly-map-panel .maplibregl-marker > *,
.er-carte-reperes-map .maplibregl-marker > *,
.easy-rallye-map-picker .maplibregl-marker > * {
    visibility: visible !important;
}

.er-carte-reperes-marker[data-icon-fallback="1"],
.er-readonly-map-marker[data-icon-fallback="1"] {
    background: var(--er-map-marker-color) !important;
}

.er-carte-reperes-marker--image,
.er-readonly-map-marker--image {
    min-width: var(--er-map-marker-size);
    min-height: var(--er-map-marker-size);
}

/* =========================================================
   Correctif prÃ©cis icÃ´nes RepÃ¨res / PrÃ©-repÃ¨res â€” modÃ¨le cartographique
   ========================================================= */
/* Important : les classes ci-dessous sont portÃ©es par l'Ã©lÃ©ment transmis Ã  MapLibre.
   Ne jamais dÃ©finir transform sur .er-map-marker-render ni sur ses variantes :
   MapLibre utilise transform pour positionner le marqueur aux coordonnÃ©es GPS. */
.er-map-marker-render {
    --er-map-marker-size: 32px;
    --er-map-marker-mobile-size: 36px;
    --er-map-marker-color: #800000;
    --er-map-marker-stroke-color: #ffffff;
    --er-map-marker-stroke-width: 2px;
    --er-map-marker-opacity: 1;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--er-map-marker-size) !important;
    height: var(--er-map-marker-size) !important;
    border: var(--er-map-marker-stroke-width) solid var(--er-map-marker-stroke-color) !important;
    background: var(--er-map-marker-color) !important;
    color: #ffffff !important;
    opacity: var(--er-map-marker-opacity) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28) !important;
    overflow: visible !important;
}

.er-map-marker-render--circle {
    border-radius: 999px !important;
}

.er-map-marker-render--square {
    border-radius: 9px !important;
}

.er-map-marker-render--diamond {
    border-radius: 8px !important;
    /* Ne pas appliquer transform ici : MapLibre utilise transform sur l'Ã©lÃ©ment marker pour le positionner. */
}

.er-map-marker-render--pin {
    border-radius: 999px 999px 999px 0 !important;
    /* Ne pas appliquer transform ici : cela dÃ©calerait tous les marqueurs en haut Ã  gauche de la carte. */
}

.er-map-marker-render--cross {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.er-map-marker-render--cross::before,
.er-map-marker-render--cross::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 100%;
    height: max(var(--er-map-marker-stroke-width), 4px);
    border-radius: 999px;
    background: var(--er-map-marker-color);
    box-shadow: 0 0 0 2px var(--er-map-marker-stroke-color), 0 8px 18px rgba(15, 23, 42, 0.24);
}

.er-map-marker-render--cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.er-map-marker-render--cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.er-map-marker-render--image {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.er-map-marker-render--image::before,
.er-map-marker-render--image::after {
    display: none !important;
}

.er-map-marker-render--image img {
    display: block !important;
    width: var(--er-map-marker-size) !important;
    height: var(--er-map-marker-size) !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    transform: none !important;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.24));
}

.er-map-marker-render-label {
    position: absolute !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 1.2em !important;
    min-height: 1.2em !important;
    padding: 0.04rem 0.18rem !important;
    border-style: solid !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75) !important;
    box-shadow: none !important;
    pointer-events: none !important;
}


@media (max-width: 767.98px) {
    .er-map-marker-render {
        width: var(--er-map-marker-mobile-size) !important;
        height: var(--er-map-marker-mobile-size) !important;
    }

    .er-map-marker-render--image img {
        width: var(--er-map-marker-mobile-size) !important;
        height: var(--er-map-marker-mobile-size) !important;
    }
}

/* =========================================================
   Stabilisation MapLibre â€” marqueur racine neutre + visuel interne
   ========================================================= */
.er-maplibre-marker-root {
    --er-map-marker-size: 32px;
    --er-map-marker-mobile-size: 36px;
    --er-map-marker-color: #800000;
    --er-map-marker-stroke-color: #ffffff;
    --er-map-marker-stroke-width: 2px;
    --er-map-marker-opacity: 1;
    position: relative;
    width: var(--er-map-marker-size);
    height: var(--er-map-marker-size);
    min-width: var(--er-map-marker-size);
    min-height: var(--er-map-marker-size);
    overflow: visible;
    pointer-events: auto;
}

.er-maplibre-marker-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: var(--er-map-marker-stroke-width) solid var(--er-map-marker-stroke-color);
    background: var(--er-map-marker-color);
    color: #ffffff;
    opacity: var(--er-map-marker-opacity);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
    overflow: visible;
}

.er-maplibre-marker-visual--circle {
    border-radius: 999px;
}

.er-maplibre-marker-visual--square {
    border-radius: 9px;
}

.er-maplibre-marker-visual--diamond {
    border-radius: 8px;
    transform: rotate(45deg);
}

.er-maplibre-marker-visual--pin {
    border-radius: 999px 999px 999px 0;
    transform: rotate(-45deg);
}

.er-maplibre-marker-visual--cross {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.er-maplibre-marker-visual--cross::before,
.er-maplibre-marker-visual--cross::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 100%;
    height: max(var(--er-map-marker-stroke-width), 4px);
    border-radius: 999px;
    background: var(--er-map-marker-color);
    box-shadow: 0 0 0 2px var(--er-map-marker-stroke-color), 0 8px 18px rgba(15, 23, 42, 0.24);
}

.er-maplibre-marker-visual--cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.er-maplibre-marker-visual--cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.er-maplibre-marker-visual--image {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.er-maplibre-marker-visual--image img {
    display: block;
    width: var(--er-map-marker-size);
    height: var(--er-map-marker-size);
    max-width: none;
    max-height: none;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    transform: none;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.24));
}

.er-maplibre-marker-label {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2em;
    min-height: 1.2em;
    padding: 0.04rem 0.18rem;
    border-style: solid;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.er-maplibre-marker-status-badge {
    position: absolute;
    right: -7px;
    bottom: -7px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.24);
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .er-maplibre-marker-root {
        width: var(--er-map-marker-mobile-size);
        height: var(--er-map-marker-mobile-size);
        min-width: var(--er-map-marker-mobile-size);
        min-height: var(--er-map-marker-mobile-size);
    }

    .er-maplibre-marker-visual--image img {
        width: var(--er-map-marker-mobile-size);
        height: var(--er-map-marker-mobile-size);
    }
}

/* AperÃ§u grand format au survol des miniatures de repÃ¨res dans les listes Filament. */
.er-repere-thumbnail-hover {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    isolation: isolate;
}

.er-repere-thumbnail-hover__thumb {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.er-repere-thumbnail-hover__popover {
    position: fixed;
    left: min(50vw, calc(100vw - 620px));
    top: 88px;
    z-index: 9999;
    display: none;
    width: min(560px, calc(100vw - 32px));
    max-height: min(72vh, 720px);
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.34);
    pointer-events: none;
}

.er-repere-thumbnail-hover__popover img {
    display: block;
    width: 100%;
    max-height: calc(min(72vh, 720px) - 56px);
    object-fit: contain;
    border-radius: 14px;
    background: #f8fafc;
}

.er-repere-thumbnail-hover__popover span {
    display: block;
    margin-top: 8px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.er-repere-thumbnail-hover:hover .er-repere-thumbnail-hover__popover,
.er-repere-thumbnail-hover:focus .er-repere-thumbnail-hover__popover,
.er-repere-thumbnail-hover:focus-within .er-repere-thumbnail-hover__popover {
    display: block;
}

@media (max-width: 767.98px) {
    .er-repere-thumbnail-hover__popover {
        left: 16px;
        right: 16px;
        top: 72px;
        width: auto;
    }
}



/* =========================================================
   Upload Express Photos Repères - Page temporaire
   ========================================================= */
.er-express-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.er-express-card,
.er-express-table-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
}

.er-express-card--intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

.er-express-card h2,
.er-express-table-card h2 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.18rem;
    font-weight: 800;
}

.er-express-card p,
.er-express-table-card p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.er-express-help {
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 16px;
    color: #334155;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem;
}

.er-express-help code {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    color: #334155;
    display: block;
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 0.55rem;
    white-space: normal;
}

.er-express-form-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr) minmax(260px, 1fr);
    gap: 1rem;
}

.er-express-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.er-express-field > span {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.er-express-field select,
.er-express-field input[type="file"] {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 14px;
    color: #0f172a;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    width: 100%;
}

.er-express-field small {
    color: #64748b;
    font-size: 0.78rem;
}

.er-express-error {
    color: #dc2626 !important;
    font-weight: 700;
}

.er-express-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.er-express-btn {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    justify-content: center;
    min-height: 40px;
    padding: 0.62rem 1rem;
    transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.er-express-btn:hover:not(:disabled) {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
    transform: translateY(-1px);
}

.er-express-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.er-express-btn--primary {
    background: #1d4ed8;
    color: #ffffff;
}

.er-express-btn--success {
    background: #15803d;
    color: #ffffff;
}

.er-express-btn--secondary {
    background: #f1f5f9;
    color: #0f172a;
}

.er-express-btn--danger {
    background: #fee2e2;
    color: #991b1b;
}

.er-express-btn--small {
    font-size: 0.78rem;
    min-height: 34px;
    padding: 0.42rem 0.75rem;
}

.er-express-toggle {
    align-items: center;
    color: #334155;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 0.45rem;
    margin-left: auto;
}

.er-express-loading {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    color: #1d4ed8;
    font-weight: 800;
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
}

.er-express-summary {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.er-express-summary article {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
    padding: 0.9rem;
    text-align: center;
}

.er-express-summary strong {
    color: #0f172a;
    display: block;
    font-size: 1.45rem;
    font-weight: 900;
}

.er-express-summary span {
    color: #64748b;
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.er-express-table-head {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.er-express-note {
    background: #f8fafc;
    border-radius: 14px;
    color: #475569 !important;
    max-width: 520px;
    padding: 0.75rem 0.9rem;
}

.er-express-table-wrap {
    overflow-x: auto;
}

.er-express-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1280px;
    width: 100%;
}

.er-express-table th {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 0.75rem;
    text-align: left;
    text-transform: uppercase;
}

.er-express-table th:first-child {
    border-top-left-radius: 14px;
}

.er-express-table th:last-child {
    border-top-right-radius: 14px;
}

.er-express-table td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.85rem 0.75rem;
    vertical-align: top;
}

.er-express-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.er-express-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.er-express-source,
.er-express-repere,
.er-express-control-list,
.er-express-row-actions {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.er-express-source strong,
.er-express-repere a,
.er-express-repere strong {
    color: #0f172a;
    font-weight: 900;
}

.er-express-source span,
.er-express-repere span,
.er-express-source small {
    color: #64748b;
    font-size: 0.82rem;
}

.er-express-repere p {
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 280px;
}

.er-express-muted {
    color: #94a3b8 !important;
    font-style: italic;
}

.er-express-badge,
.er-express-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    justify-content: center;
    padding: 0.28rem 0.62rem;
    width: max-content;
}

.er-express-badge--ok,
.er-express-status--ready,
.er-express-status--imported {
    background: #dcfce7;
    color: #166534;
}

.er-express-badge--ko,
.er-express-status--error {
    background: #fee2e2;
    color: #991b1b;
}

.er-express-badge--warning,
.er-express-status--warning {
    background: #ffedd5;
    color: #9a3412;
}

.er-express-badge--neutral,
.er-express-status--pending,
.er-express-status--skipped {
    background: #e2e8f0;
    color: #334155;
}

.er-express-message {
    color: #64748b !important;
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 0.45rem !important;
    max-width: 220px;
}

.er-express-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-width: 360px;
}

.er-express-photo {
    background: #ffffff;
    border: 2px solid rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    padding: 0.45rem;
    position: relative;
    transition: transform 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
    width: 118px;
}

.er-express-photo:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    z-index: 20;
}

.er-express-photo--primary {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.er-express-photo--disabled {
    opacity: 0.45;
}

.er-express-photo-preview {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    padding: 0;
    width: 100%;
}

.er-express-photo-preview img {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.er-express-photo:hover .er-express-photo-preview img {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    position: relative;
    transform: scale(2.15);
    transform-origin: center;
    z-index: 30;
}

.er-express-photo-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 0.42rem;
}

.er-express-photo-meta strong {
    color: #0f172a;
    display: block;
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.er-express-photo-meta span {
    color: #64748b;
    font-size: 0.68rem;
}

.er-express-photo-actions {
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 0.35rem;
}

.er-express-photo-actions label {
    align-items: center;
    display: inline-flex;
    gap: 0.28rem;
}

.er-express-primary-label {
    background: #dcfce7;
    border-radius: 999px;
    color: #166534;
    display: inline-flex;
    padding: 0.18rem 0.48rem;
}

@media (max-width: 1180px) {
    .er-express-card--intro,
    .er-express-form-grid {
        grid-template-columns: 1fr;
    }

    .er-express-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .er-express-toggle {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .er-express-card,
    .er-express-table-card {
        border-radius: 16px;
        padding: 0.9rem;
    }

    .er-express-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .er-express-table-head {
        flex-direction: column;
    }

    .er-express-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .er-express-btn {
        width: 100%;
    }
}

/* =========================================================
   Import Express - Ajouts Correspondance Repères Balises
   Styles ajoutés volontairement tout à la fin du fichier.
   ========================================================= */
.er-express-section-title {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.er-express-section-title h2 {
    margin: 0 0 0.3rem;
}

.er-express-section-title p {
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.er-express-step {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.32rem 0.72rem;
    text-transform: uppercase;
}

.er-express-help--inline {
    margin-bottom: 1.1rem;
    max-width: none;
}

.er-express-help--inline code {
    display: inline-flex;
    margin-right: 0.45rem;
    margin-top: 0.45rem;
}

.er-express-card--balises {
    border-color: #dbeafe;
    margin-top: 1.3rem;
}

.er-express-form-grid--two {
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
}

.er-express-summary--balises {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.er-express-table--compact th,
.er-express-table--compact td {
    font-size: 0.82rem;
    padding: 0.72rem;
    vertical-align: top;
}

.er-express-repere--inline {
    gap: 0.25rem;
}

.er-express-message--warning {
    color: #92400e;
    font-weight: 800;
}

.er-express-row--imported {
    background: #f0fdf4;
}

.er-express-status--imported {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 1180px) {
    .er-express-form-grid--two,
    .er-express-summary--balises {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .er-express-section-title {
        flex-direction: column;
    }

    .er-express-step {
        width: fit-content;
    }
}