/* =====================================================
   LAYOUT PRINCIPAL - VERSION SIMPLIFIÉE
   ===================================================== */

/* Structure principale du body - approche simplifiée */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden; /* Empêcher explicitement le scroll vertical */
}

/* Header garde sa position normale */
.fr-header {
    position: relative;
    z-index: 1000;
}

/* Navigation avec taille contrôlée */
nav.fr-nav {
    position: relative;
    z-index: 999;
    max-height: 120px;
    overflow: visible;
    padding: 8px 0;
}

nav.fr-nav .fr-grid-row {
    align-items: center;
    height: auto;
    min-height: auto;
}

/* Container principal pour tout le contenu */
.main-content-container {
    position: relative;
    width: 100%;
}

/* Le grid row principal - hauteur calculée pour éviter le scroll */
.main-content-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 240px); /* Réservation plus importante pour éviter tout débordement */
    max-height: calc(100vh - 240px);
    overflow: hidden;
    margin-bottom: 5px; /* Réduction de la marge */
}

/* =====================================================
   STYLES POUR LES IMAGES DE CARTES (NON-DSFR)
   ===================================================== */

/* Images de cartes */
.card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Footer garde sa position normale */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #f6f6f6;
    border-top: 1px solid #ddd;
    color: #666;
    text-align: center;
    height: 50px;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    z-index: 1000;
    margin-top: -4px;
}

/* ===================================================== */

/* Corrections spécifiques pour la navigation */
.fr-nav {
    padding: 8px 0;
    min-height: auto;
}

.fr-nav .fr-grid-row {
    align-items: center;
    min-height: auto;
}

/* Optimisation de la navigation pour réduire sa hauteur */
#header-navigation {
    max-height: 120px;
    overflow: visible;
    /* Variables CSS pour le calcul dynamique des hauteurs */
    --nav-height: 120px;
}

#header-navigation .fr-grid-row {
    height: auto;
    min-height: auto;
}

/* Variables CSS globales pour le calcul des hauteurs - Fallback pour navigateurs supportant les variables */
:root {
    --header-height: 120px;
    --footer-height: 62px;
    --content-buffer: 20px;
    --total-reserved: calc(var(--header-height) + var(--footer-height) + var(--content-buffer));
}

/* Conteneurs de cartes - hauteurs ajustées pour éviter le scroll */
#map-container-left,
#map-container-right,
#map-container-left-at-startup {
  height: calc(100vh - 240px);
  min-height: 0;
  max-height: calc(100vh - 240px);
  overflow: hidden;
  border: 1px solid #e3e3fd;
  border-radius: 4px;
  margin-bottom: 5px;
}

#map-left,
#map-right {
  height: 100%;
  width: 100%;
  max-height: 100%;
}

/* Sidebar avec hauteur adaptée */
/* Sidebar avec hauteur ajustée pour éviter le scroll */
#sidebar {
  height: calc(100vh - 240px);
  width: 400px;
  background-color: white;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  border: 1px solid #e3e3fd;
  border-radius: 4px;
  margin-bottom: 5px;
}

.fr-header__body-row {
        padding: 0.8rem 0;
    }

/* Optimisation de la navigation pour réduire sa hauteur */
.fr-nav {
    padding: 8px 0;
}

.fr-nav .fr-grid-row {
    align-items: center;
}

/* Styles pour les contrôles de saisie dans la sidebar */
.input-controls-section {
    border-top: 1px solid #e5e5e5;
    margin-top: 16px;
}

.input-controls-section .fr-notice {
    margin: 8px 0 !important;
    font-size: 0.875rem;
}

.input-controls-section .fr-notice__title {
    font-size: 0.875rem;
    margin: 0;
}

.input-controls-section .fr-btns-group {
    flex-direction: row;
    gap: 4px;
    justify-content: space-between;
}

.input-controls-section .fr-btn--sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    flex: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Ajustements pour la sidebar */
#sidebar {
    overflow-y: auto;
    max-height: calc(100vh - 240px);
}

/* Réduction de l'espacement dans la navigation */
/* #nav-tools4 .fr-toggle, */
/* #nav-tools4 .fr-segmented { */
    /* margin: 4px 0; */
/* } */

/* Styles pour le contrôle de métadonnées sur la carte */
.leaflet-control-metadata-info {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid #000091;
    z-index: 1000 !important;
}

.leaflet-control-metadata-button {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    color: #000091;
    font-size: 20px;
    font-weight: bold;
    background: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 1001 !important;
}

.leaflet-control-metadata-button::before {
    content: "ℹ";
    font-size: 20px;
    font-weight: bold;
}

.leaflet-control-metadata-button:hover {
    background: #f0f0f0;
    color: #000074;
    transform: scale(1.05);
}

.leaflet-control-metadata-button.active {
    background: #000091;
    color: white;
    box-shadow: 0 0 10px rgba(0,0,145,0.5);
}

/* Panneau de métadonnées */
.metadata-info-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    overflow: hidden;
    border: 1px solid #ddd;
}

.metadata-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f6f6f6;
    border-bottom: 1px solid #ddd;
}

.metadata-panel-header h3 {
    margin: 0;
    color: #000091;
    font-weight: 600;
}

.metadata-panel-content {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

/* Styles améliorés pour les métadonnées */
.metadata-panel-content .metadata-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.metadata-panel-content .metadata-item:last-child {
    border-bottom: none;
}

.metadata-panel-content .metadata-label {
    font-weight: 600;
    color: #000091;
    font-size: 0.875rem;
    margin-bottom: 4px;
    display: block;
}

.metadata-panel-content .metadata-value {
    color: #333;
    font-size: 0.875rem;
    line-height: 1.4;
}

.metadata-panel-content .metadata-url {
    word-break: break-all;
    color: #000091;
    text-decoration: none;
}

.metadata-panel-content .metadata-url:hover {
    text-decoration: underline;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .metadata-info-panel {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }
}

/* Styles pour le tableau des points amélioré */
.point-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
    padding: 4px 0;
}

.point-coords {
    flex: 1;
    font-size: 0.875rem;
    margin-right: 8px;
}

.point-delete-btn {
    margin-left: 8px;
    padding: 4px 6px !important;
    min-height: 28px !important;
    width: 28px !important;
    color: #ce0500 !important;
    /* background-color: #fff5f5 !important; */
    /* border: 1px solid #ffb3b3 !important; */
    border-radius: 4px !important;
    opacity: 0.8;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    line-height: 1 !important;
}

.point-delete-btn:hover {
    opacity: 1;
    background-color: #fee9e7 !important;
    border-color: #ce0500 !important;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(206, 5, 0, 0.2);
}

.point-delete-btn .fr-icon-close-circle-fill::before {
    content: "✕";
    font-size: 14px;
    font-weight: bold;
    color: #ce0500;
}

.point-delete-btn:hover .fr-icon-close-circle-fill::before {
    color: #b30400;
}

/* Amélioration du tableau des points */
#table-control-points .fr-table table {
    font-size: 0.875rem;
}

#table-control-points .fr-table td {
    padding: 8px 6px;
    vertical-align: middle;
    position: relative;
}

#table-control-points .fr-table th {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000091;
    text-align: center;
}

/* Ligne avec paire complète */
#table-control-points .fr-table tr[style*="border-left"] {
    background-color: #f9f8f6 !important;
}

#table-control-points .fr-table tr:hover {
    background-color: #f0f0f0;
}

/* Espacement amélioré dans la sidebar */
.input-controls-section {
    border-top: 1px solid #e5e5e5;
    margin-top: 12px;
    padding-top: 12px;
}



.fr-footer {
    padding-top: 0;
    padding-bottom: 0;
}

.fr-footer .fr-container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.fr-footer__bottom {
    padding: 0;
    margin: 0;
}

.fr-footer__bottom-list {
    margin: -8px;
    gap: 0.5rem;
}

.fr-footer__bottom-item {
    margin: 0;
}




.footer p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.footer a {
    color: #000091;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.heart-icon {
    width: 16px;
    height: 16px;
    color: #e74c3c;
    vertical-align: middle;
}

/* Styles pour les informations de version */
.version-info {
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    user-select: none;
}

/* Styles pour les indicateurs de santé API */
#api-health-indicators {
    margin-left: auto !important;
}

.api-health-indicator {
    font-size: 0.7em !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    background-color: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    transition: all 0.3s ease !important;
}

.api-health-indicator .status-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.version-info:hover {
    opacity: 1 !important;
    color: #000091 !important;
}

#version-display {
    transition: all 0.3s ease;
    border-radius: 3px;
    padding: 2px 4px;
    background-color: rgba(0, 0, 145, 0.1);
}

#version-display:hover {
    background-color: rgba(0, 0, 145, 0.2);
    cursor: pointer;
}

#version-details {
    font-size: 0.8em;
    color: #888;
}


#sel-layers {
  margin: 4px;
}

#add-layers-div{
  display: flex;
  justify-content: flex-end;
}

#nav-search-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-content: center;
}

#search-784-input {
  width: 36vw;
}

#nav-tools-sidebar-control {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
}

#id-nav-tools-bar-inner-legend-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-content: center;
  cursor: pointer;
}

#nav-tools1,
#nav-tools2,
#nav-tools3,
#nav-tools4 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  align-content: center;
}

#sidebar{
  margin-left: 0;
  height: calc(100vh - 240px);
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 240px);
}



/* S'assurer que la vidéo s'ajuste aussi */
.image_box {
  height: 100%;
  width: 100%;
  position: relative;
  resize: none;
  overflow: hidden;
  z-index: 1;
}

.no-sidebar #sidebar{
  transition: all 0.25s;
  
}

/* .image_box{
  width:100vw !important;;
  height:500px !important;;
} */

.map-container-left-at-startup{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Styles pour la vidéo (HTML5 video ou iframe YouTube) */
.image_box-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none; /* Pour les iframes YouTube */
}

.image_box
{
  /* height: 120px; */
  position: relative;
  resize: both;
  overflow: hidden;
  /* border: 1px solid red; */
  z-index: 1;
}

/* Styles pour le menu utilisateur connecté */
.fr-nav__item {
  position: relative;
  z-index: 10000;
}

.fr-header {
  position: relative;
  z-index: 9998;
}

.fr-header__tools-links {
  position: relative;
  z-index: 9999;
}

.user-menu-toggle {
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 10001 !important;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  padding: 16px;
  z-index: 9999 !important;
  margin-top: 8px;
}

.user-info {
  margin-bottom: 12px;
}

.user-info p {
  margin: 4px 0;
  font-size: 14px;
  color: #333;
}

.user-info strong {
  color: #000091;
}

.user-dropdown-menu hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 12px 0;
}

.user-menu-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-menu-actions li {
  margin: 8px 0;
}

.user-menu-actions .fr-btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  background-color: transparent;
  color: #333;
  border: 1px solid #ddd;
}

.user-menu-actions .fr-btn:hover {
  background-color: #f5f5fe;
  color: #000091;
}

/* Style pour le bouton utilisateur connecté */
.user-menu-toggle[data-fr-opened="true"] {
  background-color: #f5f5fe;
}

@media (max-width: 768px) {
  .user-dropdown-menu {
    right: -16px;
    min-width: 250px;
  }
}

/* Assurer que le menu utilisateur reste au-dessus de Leaflet */
.leaflet-container,
.leaflet-map-pane,
.leaflet-overlay-pane,
.leaflet-marker-pane,
.leaflet-popup-pane,
.leaflet-control-container {
  z-index: auto !important;
}

/* Forcer spécifiquement les éléments Leaflet à rester en dessous des modales */
.leaflet-container {
  z-index: 1 !important;
}

.leaflet-control-container {
  z-index: 100 !important;
}

/* Forcer le menu utilisateur au premier plan */
.fr-header__tools-links .user-dropdown-menu {
  z-index: 99999 !important;
  position: fixed !important;
}

/* Styles pour la modale des paramètres DSFR */
#fr-modal-settings {
  width: 100vw;
  max-width: 100vw;
}

#fr-modal-settings .fr-container {
  max-width: 100%;
}

#fr-modal-settings .fr-col-lg-6 {
  max-width: 100%;
}

@media (min-width: 62em) {
    .fr-col-lg-6 {
        flex: 0 0 95%;
        max-width: 50%;
        width: 50%;
    }
}

#fr-modal-settings .fr-col-lg-6 {
    max-width: 100%;
}

#fr-modal-settings .fr-modal__body {
  max-height: 85vh;
  overflow-y: auto;
}

#fr-modal-settings .fr-tabs__panel {
  max-height: 70vh;
  overflow-y: auto;
}

#fr-modal-settings .fr-card {
  margin-bottom: 1rem;
}

#fr-modal-settings .fr-card__img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#fr-modal-settings .info-item {
  margin-bottom: 0.5rem;
}

#fr-modal-settings .info-label {
  display: inline-block;
  min-width: 100px;
}

#fr-modal-settings .fr-fieldset__legend h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #000091;
}

#fr-modal-settings .fr-input[readonly] {
  background-color: #f6f6f6;
  color: #666;
}

#fr-modal-settings .fr-hint-text {
  font-style: italic;
  color: #666;
}

/* Style pour les boutons du menu utilisateur */
.user-menu-actions button.fr-btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  background-color: transparent;
  color: #333;
  border: 1px solid #ddd;
}

.user-menu-actions button.fr-btn:hover {
  background-color: #f5f5fe;
  color: #000091;
}

/* Styles pour le formulaire de paramètres généré dynamiquement */
#settings-form-container {
  max-width: 100%;
  padding: 1rem;
}

#settings-form .fr-select-group,
#settings-form .fr-checkbox-group,
#settings-form .fr-input-group {
  margin-bottom: 1.5rem;
}

#settings-form .fr-hint-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-style: italic;
  color: #666;
}

#settings-form .fr-checkbox-group .fr-hint-text {
  margin-left: 0;
  padding-left: 0;
}

/* Style pour les actions de paramètres */
.settings-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.settings-actions .fr-btn {
  flex: 1;
  min-width: 120px;
}

@media (max-width: 768px) {
  .settings-actions {
    flex-direction: column;
  }
  
  .settings-actions .fr-btn {
    width: 100%;
  }
}

/* Styles pour le bouton de géoréférencement en état de chargement */
.fr-btn--loading {
  position: relative;
  pointer-events: none;
  animation: pulse-loading 2s infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
}

.fr-btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes pulse-loading {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Amélioration des boutons d'état */
#btn_georef {
  transition: all 0.2s ease-in-out;
  min-width: 140px; /* Largeur minimale pour éviter les variations */
}

#btn_georef:disabled {
  cursor: not-allowed !important;
  opacity: 0.6;
}

#btn_georef.fr-btn--loading {
  background-color: #e74c3c !important;
  border-color: #e74c3c !important;
  color: #ffffff !important;
  box-sizing: border-box;
}

/* =====================================================================
   STYLES POUR LE NOUVEAU SYSTÈME DE SAISIE AMÉLIORÉ
   ===================================================================== */

/* Indicateur de statut de saisie */
#input-status-container {
  border-radius: 4px;
  font-size: 0.875rem;
}

#input-status {
  margin: 0;
  font-weight: 500;
}

/* Boutons d'action de saisie */
#input-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#input-actions .fr-btn {
  flex: 1;
  min-width: 100px;
}

/* Styles pour les tooltips des points numérotés */
.labels-points {
  background-color: rgba(0, 55, 255, 0.9) !important;
  color: white !important;
  font-weight: bold !important;
  font-size: 12px !important;
  border-radius: 3px !important;
  padding: 2px 6px !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.labels-points::before {
  border-top-color: rgba(0, 55, 255, 0.9) !important;
}

/* Styles pour les marqueurs en mode déplacement */
.leaflet-marker-icon:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
  cursor: move !important;
}

.leaflet-marker-icon.dragging {
  transform: scale(1.2);
  z-index: 1000;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* Styles pour les cartes en mode saisie */
.leaflet-container.input-mode-points {
  cursor: crosshair !important;
}

.leaflet-container.input-mode-points * {
  cursor: crosshair !important;
}

.leaflet-container.input-mode-points .leaflet-interactive {
  cursor: crosshair !important;
}

.leaflet-container.input-mode-emprise {
  cursor: crosshair !important;
}

.leaflet-container.input-disabled {
  cursor: default !important;
  pointer-events: none !important;
  position: relative;
}

.leaflet-container.input-disabled::after {
  content: '🔒 Saisie verrouillée';
  position: absolute;
  top: 10px; /* Positionner en haut au lieu du centre */
  left: 50%;
  transform: translateX(-50%); /* Centrer seulement horizontalement */
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ce0500;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: bold;
  color: #ce0500;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Animation pour les cartes actives */
.leaflet-container.active-map {
  position: relative;
}

.leaflet-container.active-map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid #000091;
  pointer-events: none;
  z-index: 1000;
  animation: active-map-pulse 2s ease-in-out;
}

@keyframes active-map-pulse {
  0% {
    border-color: #000091;
    box-shadow: 0 0 0 0 rgba(0, 0, 145, 0.7);
  }
  50% {
    border-color: #000091;
    box-shadow: 0 0 0 10px rgba(0, 0, 145, 0);
  }
  100% {
    border-color: #000091;
    box-shadow: 0 0 0 0 rgba(0, 0, 145, 0);
  }
}

/* Styles pour les polygones d'emprise */
.leaflet-interactive[stroke="#0037ff"] {
  stroke-width: 3;
  stroke-dasharray: none;
}

.leaflet-interactive[stroke="#0037ff"]:hover {
  stroke-width: 4;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Amélioration de l'affichage des contrôles segmentés */
.fr-segmented {
  margin-bottom: 8px;
}

.fr-segmented .fr-segmented__element input:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
}

.fr-segmented .fr-segmented__element input:checked + label {
  background-color: #000091;
  color: white;
}

/* Styles pour la table des points de contrôle améliorée */
#table-control-points table {
  font-size: 0.875rem;
}

#table-control-points td {
  font-family: 'Marianne', monospace;
  padding: 8px 12px;
}

#table-control-points tr:nth-child(even) {
  background-color: #f8f9fa;
}

#table-control-points tr:hover {
  background-color: #e3f2fd;
}

/* Responsive design pour les petits écrans */
@media (max-width: 768px) {
  #input-actions {
    flex-direction: column;
  }
  
  #input-actions .fr-btn {
    width: 100%;
    margin-bottom: 4px;
  }
  
  .labels-points {
    font-size: 10px !important;
    padding: 1px 4px !important;
  }
}

/* Styles pour les messages d'aide contextuelle */
.input-help-message {
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
  margin-top: 4px;
}

.input-help-message.active {
  color: #000091;
  font-weight: 500;
}

/* Styles pour les options non disponibles dans les formulaires */
.fr-select option:disabled {
  color: #999 !important;
  font-style: italic !important;
  background-color: #f5f5f5 !important;
}

.fr-select option[disabled]:before {
  content: "⏳ ";
  color: #666;
}

/* Style pour les selects avec options non disponibles */
.fr-select:has(option:disabled) {
  position: relative;
}

/* Message d'info pour les champs avec options non disponibles */
.form-field-unavailable-notice {
  font-size: 0.8em;
  color: #666;
  font-style: italic;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-field-unavailable-notice::before {
  content: "ℹ️";
  font-size: 0.9em;
}

/* ===================================================================== */