/* APP */
/*
  Les couleurs : 
  - Fond : #f5f5f5;
  - Bleu : #039be5;
  - Bleu Survol : #1f77b1;
*/

/* Bloquer la sélection */
html, body, * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Autoriser la sélection dans les champs de formulaire */
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  height: 50px;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  z-index: 1000;
  color: #fff;
}

#mapInfo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #fff;
}

#mapInfo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#mapTitle {
  font-size: 14px;
}

#mapZoom {
  font-size: 12px;
  margin-top: 2px;
}

#mapBtn,
#mapSch,
#mapPoi {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  padding: 0;
  margin: 0;
  width: 50px;
  height: 50px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Chrome/Android/iOS */
  -webkit-user-select: none;                /* iOS Safari */
  -webkit-touch-callout: none;              /* iOS Safari */
  outline: none;
  flex-shrink: 0;
  border-left: 1px dotted rgba(255, 255, 255, 0.3);
  user-select: none;
}

#mapBtn {
  background-image: url('/assets/images/maps.png');
  background-size: 20px 20px;
}

#mapPoi {
  background-image: url('/assets/images/poi.png');
  background-size: 22px 22px;
}

#mapSch {
  background-image: url('/assets/images/search.png');
  background-size: 20px 20px;
  margin-left: auto;
}

/* Overlay plein écran */
#poiOverlay,
#poiAddOverlay,
#poiFolderRenameOverlay,
#poiDeleteOverlay,
#mapOverlay,
#schOverlay {
  opacity: 0;                    /* invisible par défaut */
  visibility: hidden;            /* empêche les clics quand invisible */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245,245,245,0.95);
  z-index: 2000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease; /* transition fluide */
}

#poiOverlay {
  overflow-y: hidden;
}

#poiAddOverlay {
  overflow-y: auto;
}

#poiFolderRenameOverlay {
  overflow-y: auto;
}

#poiDeleteOverlay {
  overflow-y: auto;
}

#poiOverlay.show,
#poiAddOverlay.show,
#poiFolderRenameOverlay.show,
#poiDeleteOverlay.show,
#mapOverlay.show,
#schOverlay.show {
  opacity: 1;
  visibility: visible;
}

#mapOverlay .map-panel {
  width: 92%;
  max-width: 640px;
  margin: 72px auto 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 128px);
  overflow: hidden;
  box-sizing: border-box;
  padding: 10px 20px 18px;
  background: #fdfefe;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(31, 119, 177, 0.06);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.map-header h2 {
  margin: 0;
  font-size: 22px;
  color: #1f1f1f;
}

.map-summary {
  font-size: 14px;
  color: #444;
}

#mapOverlay ul {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 2px 14px 6px 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 119, 177, 0.9) transparent;
}

#mapOverlay ul::-webkit-scrollbar {
  width: 12px;
}

#mapOverlay ul::-webkit-scrollbar-track {
  background: transparent;
}

#mapOverlay ul::-webkit-scrollbar-thumb {
  background: rgba(31, 119, 177, 0.9);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

#mapOverlay ul::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 119, 177, 1);
  background-clip: content-box;
}

#mapOverlay ul::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

#mapOverlay ul li {
  width: 100%;
}

#mapOverlay ul li.hidden {
  display: none;
}

#mapOverlay li {
  padding: 15px 14px;
  background: rgba(246,247,249,0.95);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  box-sizing: border-box;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  overflow: hidden;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  -webkit-user-drag: none !important;                  /* Empêche le drag */
  -webkit-tap-highlight-color: transparent !important; /* Supprime le highlight */
  outline: none !important;
}

#mapOverlay li:hover {
  background: #f0f7fc;
  border-color: rgba(31, 119, 177, 0.18);
}

.poi-panel {
  width: 92%;
  max-width: 640px;
  margin: 72px auto 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 128px);
  overflow: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  scrollbar-width: thin;
  background: #fdfefe;
  padding: 10px 20px 18px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(31, 119, 177, 0.06);
}

.poi-tree-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 119, 177, 0.9) transparent;
  background-color: #fdfefe !important;
  background-clip: padding-box;
  opacity: 1;
  mix-blend-mode: normal;
  isolation: isolate;
}

.poi-tree-scroll::-webkit-scrollbar {
  width: 12px;
}

.poi-tree-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.poi-tree-scroll::-webkit-scrollbar-thumb {
  background: rgba(31, 119, 177, 0.9);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.poi-tree-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(31, 119, 177, 1);
  background-clip: content-box;
}

.poi-tree-scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.poi-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.poi-add-button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: #1f77b1;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.poi-add-button:hover {
  background: #17608d;
}

.poi-header h2 {
  margin: 0;
  flex: 1 1 auto;
  font-size: 22px;
  color: #1f1f1f;
}

.sch-header h2 {
  margin: 0;
  font-size: 22px;
  color: #1f1f1f;
}

.poi-summary,
.poi-empty {
  color: #444;
  font-size: 14px;
}

.poi-empty {
  margin: 10px 0;
  text-align: center;
}

.poi-summary {
  margin-left: auto;
  white-space: nowrap;
}

.poi-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.poi-folder {
  background: rgba(246,247,249,0.95);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

.poi-folder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 14px;
  cursor: pointer;
}

.poi-folder-toggle,
.poi-folder-menu-toggle,
.poi-point-eye {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  color: #1f77b1;
}

.poi-folder-toggle {
  width: 22px;
  height: 22px;
  font-size: 20px;
  line-height: 1;
}

.poi-folder-menu-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #1f77b1;
}

.poi-folder-actions {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-left: auto;
  margin-right: 2px;
  flex: 0 0 auto;
}

.poi-folder-menu {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4000;
  min-width: 146px;
  padding: 6px;
  background: #f0f1f3;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.poi-folder-menu[hidden] {
  display: none;
}

.poi-folder-meta {
  min-width: 0;
  flex: 1;
}

.poi-folder-title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poi-folder-count {
  margin-top: 2px;
  font-size: 12px;
  color: #666;
}

.poi-point-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}

.poi-point-list.is-collapsed {
  display: none;
}

.poi-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 10px 46px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.78);
  position: relative;
  cursor: pointer;
}

.poi-point-eye {
  width: 22px;
  height: 22px;
  margin-left: -32px;
  margin-top: 1px;
  font-size: 18px;
  line-height: 1;
}

.poi-eye-icon {
  position: relative;
  display: inline-block;
  width: 1.1em;
  height: 1em;
  line-height: 1;
}

.poi-eye-glyph {
  position: absolute;
  inset: 0;
  display: block;
}

.poi-eye-glyph::before {
  content: "";
  position: absolute;
  inset: 0.18em 0;
  border: 2px solid currentColor;
  border-radius: 999px / 72%;
  box-sizing: border-box;
}

.poi-eye-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.34em;
  height: 0.34em;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.poi-eye-slash {
  display: none;
}

.poi-eye-icon.is-hidden .poi-eye-slash {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.25em;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(-38deg);
}

.poi-point.is-hidden .poi-point-eye {
  color: #909090;
}

.poi-point-body {
  min-width: 0;
  flex: 1 1 auto;
}

.poi-point-actions {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-left: auto;
  margin-right: 2px;
  flex: 0 0 auto;
}

.poi-point-menu-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: none;
}

.poi-point-menu {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4000;
  min-width: 146px;
  padding: 6px;
  background: #f0f1f3;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.poi-point-menu-floating {
  pointer-events: auto;
}

.poi-point-menu-item,
.poi-folder-menu-item {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}

.poi-point-menu-item:hover,
.poi-point-menu-item:focus-visible,
.poi-folder-menu-item:hover,
.poi-folder-menu-item:focus-visible {
  background: rgba(31, 119, 177, 0.08);
}

.poi-point-menu-item.is-danger,
.poi-folder-menu-item.is-danger {
  color: #b42318;
}

.poi-point-menu-item.is-danger:hover,
.poi-point-menu-item.is-danger:focus-visible,
.poi-folder-menu-item.is-danger:hover,
.poi-folder-menu-item.is-danger:focus-visible {
  background: rgba(180, 35, 24, 0.08);
}

.poi-point-menu[hidden] {
  display: none;
}

.poi-point-label {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.poi-point-meta {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: #666;
}

.poi-point-description {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}

.poi-point-loading {
  padding: 12px 14px;
  color: #666;
  font-size: 14px;
}

.poi-point.is-hidden .poi-point-label,
.poi-point.is-hidden .poi-point-description,
.poi-point.is-hidden .poi-point-meta {
  opacity: 0.55;
}

#schSearchPanel {
  width: 92%;
  max-width: 520px;
  margin: 72px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  padding: 10px 20px 18px;
  background: #fdfefe;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(31, 119, 177, 0.06);
}

.poi-add-panel {
  width: 92%;
  max-width: 520px;
  margin: 72px auto 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  padding: 10px 20px 18px;
  background: #fdfefe;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(31, 119, 177, 0.06);
}

.poi-add-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.poi-add-header h2 {
  margin: 0;
  font-size: 22px;
  color: #1f1f1f;
}

.poi-add-summary {
  margin-top: 2px;
  font-size: 14px;
  color: #444;
}

#poiAddForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poi-add-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poi-add-field span {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.poi-add-field input,
.poi-add-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 16px;
  background: rgba(246,247,249,0.95);
  color: #222;
  outline: none;
}

.poi-add-field input:focus,
.poi-add-field select:focus {
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}

.poi-add-field input:hover,
.poi-add-field select:hover {
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}

.poi-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

#poiFolderRenameForm .poi-add-actions {
  margin-top: 12px;
}

.poi-add-submit {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: #1f77b1;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.poi-add-submit:hover {
  background: #17608d;
}

.poi-add-status {
  min-height: 1.2em;
  font-size: 14px;
  color: #333;
}

.poi-add-status.is-error {
  color: #b00020;
}

.sch-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

#schSearchForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#schSearchInput {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 18px;
  background: rgba(246,247,249,0.95);
  color: #222;
  outline: none;
}

#schSearchInput:focus {
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}

#schSearchInput:hover {
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}

#schSearchInput::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  cursor: pointer;
  background: linear-gradient(45deg, transparent 43%, #8a8a8a 43%, #8a8a8a 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #8a8a8a 43%, #8a8a8a 57%, transparent 57%);
  border-radius: 50%;
}

#schSearchStatus {
  width: 92%;
  max-width: 520px;
  min-height: 1.2em;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.poi-delete-panel {
  width: 92%;
  max-width: 520px;
  margin: 72px auto 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  padding: 10px 20px 18px;
  background: #fdfefe;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 2px rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(31, 119, 177, 0.06);
}

.poi-delete-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.poi-delete-header h2 {
  margin: 0;
  font-size: 22px;
  color: #1f1f1f;
}

.poi-delete-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poi-delete-question {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.45;
  color: #222;
}

.poi-delete-status {
  font-size: 14px;
  color: #333;
}

.poi-delete-status:empty {
  display: none;
}

.poi-delete-status.is-error {
  color: #b00020;
}

.poi-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.poi-delete-cancel,
.poi-delete-confirm {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.poi-delete-cancel {
  background: rgba(0, 0, 0, 0.08);
  color: #222;
}

.poi-delete-cancel:hover {
  background: rgba(0, 0, 0, 0.14);
}

.poi-delete-confirm {
  background: #b42318;
  color: #fff;
}

.poi-delete-confirm:hover {
  background: #8e1c12;
}

.poi-delete-confirm:disabled,
.poi-delete-cancel:disabled {
  opacity: 0.65;
  cursor: default;
}

/* Fermer overlay */
#poiAddOverlay #closePoiAddOverlay,
#poiFolderRenameOverlay #closePoiFolderRenameOverlay,
#poiDeleteOverlay #closePoiDeleteOverlay,
#poiFolderRenameOverlay #closePoiFolderRenameOverlay,
#poiOverlay #closePoiOverlay,
#mapOverlay #closeMapOverlay,
#schOverlay #closeSchOverlay {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 28px;
  color: #333;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 3000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  -webkit-tap-highlight-color: transparent; /* Chrome/Android/iOS */
  -webkit-user-select: none;                /* iOS Safari */
  user-select: none;
  -webkit-touch-callout: none;              /* iOS Safari */
  outline: none;
}

iframe {
  flex: 1;
  border: none;
  width: 100%;
}

/* Contrôles de la carte */
footer {
  height: 50px;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  z-index: 1000;
  color: #fff;
}

#locateBtn {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 50px;
  height: 50px;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Chrome/Android/iOS */
  -webkit-user-select: none;                /* iOS Safari */
  user-select: none;
  -webkit-touch-callout: none;              /* iOS Safari */
  outline: none;
  border-right: 1px dotted rgba(255, 255, 255, 0.3);
}

#locateBtn svg {
  width: 22px;
  height: 22px;
}

#footerZoom {
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  background: transparent;
  width: 102px;
  height: 50px;
  font-size: 0;
  display: flex;
  align-items: center;
}

#footerZoom button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 50px;
  height: 50px;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Chrome/Android/iOS */
  -webkit-user-select: none;                /* iOS Safari */
  user-select: none;
  -webkit-touch-callout: none;              /* iOS Safari */
  outline: none;
  border-left: 1px dotted rgba(255, 255, 255, 0.3);
  
  font-size: 16px;
  font-family: inherit;
  color: #fff;
  font-weight: bolder;
  font-size: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#footerZoom button svg {
  width: 22px;
  height: 22px;
  display: block;
}


/* LOGIN */
html, body {
  height: 100%;
  margin: 0;
  background-color: #f5f5f5;
}

body > main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 1rem;
  transition: transform 0.2s ease-in-out;
}

body > main form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  gap: 0.75rem;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  box-sizing: border-box;
  position: relative;
}

body > main form input[type="text"],
body > main form input[type="password"] {
  padding: 0 25px;
  margin: 0;
  width: 100%;
  height: 38px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

body > main form input[type="text"]:focus,
body > main form input[type="password"]:focus {
  outline: none;
  border-color: #039be5;
  box-shadow: 0 2px 6px rgba(3, 155, 229, 0.2);
}

body > main form i {
  padding-left: 5px;
  width: 20px;
  height: 38px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: contain;
  opacity: .8;
}

body > main form input[type="submit"] {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background-color: #039be5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  width: 100%;
}

body > main form input[type="submit"]:hover {
  background-color: #1f77b1;
}

#error {
  margin: 0 0 0.75rem 0;
  color: #b00020;
  background-color: #ffebee;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#result {
  display: none;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
}

#result:empty {
    display: none;
}

#result:not(:empty) {
    display: block;
}

@media (max-width: 400px) {
  body > main {
    transform: translateY(-10%); /* Remonte le bloc de 10% */
  }

  .poi-folder-header,
  .poi-point {
    padding-right: 6px;
  }

  .poi-folder-actions,
  .poi-point-actions {
    margin-right: 0;
  }
  
  body > main form {
    max-width: 300px;
    padding: 1.5rem;
  }
}
