:root {
  color-scheme: dark;
  font-family: Arial, sans-serif;
  color: #f4f2ef;
  background: #141210;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  isolation: isolate;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #eee1ce;
  outline-offset: 5px;
}

.ambiance-maps {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #141210;
}

.ambiance-maps::before {
  content: "";
  position: absolute;
  inset: -100px;
  background: url("images/carte.jpg") center / cover;
  filter: blur(100px) saturate(.8);
  opacity: .22;
}

.entete-maps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(96%, 1800px);
  margin: 24px auto;
}

.bouton-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 999px;
  background: rgba(38, 35, 32, .78);
  backdrop-filter: blur(20px);
  color: #f5f3ef;
  font: 700 14px Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  transition: background .18s, border-color .18s;
}

.bouton-maps:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(64, 58, 52, .9);
}

.bouton-maps:disabled {
  opacity: .45;
  cursor: default;
}

.retour-maps {
  justify-self: start;
  min-width: 160px;
  min-height: 64px;
  font-size: 18px;
}

.retour-maps > span {
  font-size: 28px;
}

.identite-maps {
  text-align: center;
}

.identite-maps > span {
  color: #c2bbb2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
}

.identite-maps h1 {
  margin: 6px 0 0;
  font-size: 30px;
  letter-spacing: -1px;
}

.logo-maps {
  justify-self: end;
}

.logo-maps img {
  display: block;
  width: 72px;
  height: 82px;
  object-fit: contain;
}

.conteneur-maps {
  width: min(96%, 1800px);
  margin: 0 auto;
  padding-bottom: 24px;
}

.cadre-maps {
  position: relative;
  height: calc(100svh - 190px);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 30px;
  background: #0b2026;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

#carte-maps {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0b2026;
  font-family: inherit;
}

.commandes-maps {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: calc(100% - 40px);
}

.commande-maps {
  width: 48px;
  padding: 0;
  font-size: 24px;
}

.signature-maps {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 500;
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  background: rgba(20, 19, 18, .7);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

.signature-maps > span {
  color: #d2bd9c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

.signature-maps > strong {
  font-size: 14px;
}

.informations-maps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px 6px 0;
}

.informations-maps p {
  margin: 0;
  color: #b9b2a9;
  font-size: 12px;
  line-height: 1.6;
}

#carte-maps .leaflet-control-attribution {
  background: rgba(20, 19, 18, .85);
  color: #b9b2a9;
}

#carte-maps .leaflet-control-attribution a {
  color: #dfc69e;
}

@media (max-width: 600px) {
  .entete-maps,
  .conteneur-maps {
    width: calc(100% - 24px);
  }

  .entete-maps {
    gap: 12px;
    margin: 16px auto;
  }

  .retour-maps {
    min-width: 0;
    min-height: 50px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .identite-maps h1 {
    font-size: 23px;
  }

  .identite-maps > span {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .logo-maps img {
    width: 48px;
    height: 58px;
  }

  .cadre-maps {
    height: calc(100svh - 165px);
    min-height: 380px;
    border-radius: 22px;
  }

  .commandes-maps {
    top: 14px;
    left: 14px;
    gap: 8px;
  }

  .signature-maps {
    bottom: 24px;
    left: 16px;
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bouton-maps {
    transition: none;
  }
}



.barre-edition-maps [hidden],
#dialog-point-maps [hidden] {
  display: none !important;
}

.barre-edition-maps,
.actions-edition-maps,
.actions-dialog-point-maps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.barre-edition-maps {
  justify-content: space-between;
  margin-bottom: 18px;
}

#mode-points-maps {
  margin: 0;
  color: #bfb6aa;
  font-size: 13px;
  line-height: 1.6;
}

#mode-edition-maps[aria-pressed="true"] {
  background: #eee5d7;
  color: #191614;
}

.cadre-maps {
  height: calc(100svh - 260px);
}

#carte-maps.placement-point-maps {
  cursor: crosshair;
}

.icone-point-maps {
  border: 0;
  background: transparent;
}

.punaise-maps {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: var(--couleur-point);
  color: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .45);
}

.punaise-maps::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 10px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--couleur-point);
}

.punaise-maps svg {
  width: 19px;
  height: 19px;
}

#carte-maps .leaflet-tooltip {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  background: rgba(25, 23, 21, .94);
  color: #f4efe8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

#dialog-point-maps {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100svh - 40px);
  padding: 26px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 26px;
  background: #211e1b;
  color: #f4f0e9;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}

#dialog-point-maps::backdrop {
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(14px);
}

.entete-dialog-point-maps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.entete-dialog-point-maps h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 24px;
}

#fermer-point-maps {
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  font-size: 24px;
}

#champs-point-maps {
  display: grid;
  gap: 20px;
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

#champs-point-maps label {
  display: grid;
  gap: 10px;
  min-width: 0;
  color: #c8bfb3;
  font-size: 13px;
}

#champs-point-maps input,
#champs-point-maps textarea,
#champs-point-maps select {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  background: #302b26;
  color: #f4f0e9;
  font: inherit;
}

#champs-point-maps textarea {
  resize: vertical;
}

#champs-point-maps input[type="color"] {
  height: 46px;
  padding: 6px;
}

.options-point-maps {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 16px;
}

#description-lecture-point-maps {
  color: #cfc6ba;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#etat-dialog-point-maps {
  margin: 18px 0 0;
  color: #d8b985;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .cadre-maps {
    height: calc(100svh - 280px);
  }

  #dialog-point-maps {
    padding: 20px;
  }
}




/* Carte sur toute la fenêtre */

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  --bord-maps: 20px;
  --haut-outils-maps: 112px;
}

.conteneur-maps,
.cadre-maps {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#carte-maps {
  background: #173f6b;
}


/* Apparence des bulles */

.bouton-maps,
.identite-maps,
.logo-maps,
.signature-maps,
#mode-points-maps,
.informations-maps p {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(26, 25, 24, .68);

  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.bouton-maps:hover:not(:disabled) {
  background: rgba(48, 44, 40, .8);
  border-color: rgba(255, 255, 255, .45);
}


/* Retour, titre et logo au-dessus de la carte */

.entete-maps {
  position: fixed;

  top: calc(
    var(--bord-maps) + env(safe-area-inset-top, 0px)
  );

  left: var(--bord-maps);
  right: var(--bord-maps);
  z-index: 1200;

  width: auto;
  margin: 0;
  gap: 16px;

  pointer-events: none;
}

.entete-maps > * {
  pointer-events: auto;
}

.retour-maps {
  min-width: 150px;
  min-height: 60px;
  font-size: 16px;
}

.identite-maps {
  min-width: 136px;
  padding: 12px 18px;
  border-radius: 22px;
}

.identite-maps > span {
  font-size: 8px;
  letter-spacing: 3px;
}

.identite-maps h1 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.logo-maps {
  display: grid;
  place-items: center;

  width: 72px;
  height: 72px;
  padding: 9px;

  border-radius: 22px;
}

.logo-maps img {
  width: 48px;
  height: 54px;
}


/* Outils d’édition en haut à droite */

.barre-edition-maps {
  position: fixed;

  top: calc(
    var(--haut-outils-maps) + env(safe-area-inset-top, 0px)
  );

  right: var(--bord-maps);
  z-index: 1100;

  flex-direction: column;
  align-items: flex-end;
  gap: 12px;

  width: min(370px, calc(100% - 40px));
  margin: 0;

  pointer-events: none;
}

#mode-points-maps {
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;

  border-radius: 18px;
  color: #e0d9cf;
  font-size: 12px;
  line-height: 1.6;

  pointer-events: auto;
}

.actions-edition-maps {
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
  pointer-events: none;
}

.actions-edition-maps .bouton-maps {
  pointer-events: auto;
}


/* Zoom et recentrage en bas à droite */

.commandes-maps {
  position: fixed;

  top: auto;
  left: auto;
  right: var(--bord-maps);

  bottom: calc(
    32px + env(safe-area-inset-bottom, 0px)
  );

  z-index: 1000;

  flex-direction: column;
  align-items: flex-end;
  gap: 10px;

  width: max-content;
  max-width: none;

  pointer-events: none;
}

.commandes-maps .bouton-maps {
  pointer-events: auto;
}


/* Signature et messages en bas à gauche */

.signature-maps {
  position: fixed;
  left: var(--bord-maps);

  bottom: calc(
    28px + env(safe-area-inset-bottom, 0px)
  );

  z-index: 1000;
}

.informations-maps {
  position: fixed;
  left: var(--bord-maps);

  bottom: calc(
    120px + env(safe-area-inset-bottom, 0px)
  );

  z-index: 1000;

  max-width: min(480px, calc(100vw - 220px));
  padding: 0;

  pointer-events: none;
}

.informations-maps p {
  max-width: 100%;
  margin: 0;
  padding: 10px 14px;

  border-radius: 15px;
  color: #d7cfc3;

  pointer-events: auto;
}

.informations-maps p:not(#etat-maps) {
  display: none;
}


/* Adaptation au téléphone */

@media (max-width: 600px) {
  body {
    --bord-maps: 12px;
    --haut-outils-maps: 84px;
  }

  .entete-maps {
    gap: 8px;
  }

  .retour-maps {
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 13px;
  }

  .retour-maps > span {
    font-size: 22px;
  }

  .identite-maps {
    min-width: 86px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .identite-maps > span {
    font-size: 7px;
    letter-spacing: 2px;
  }

  .identite-maps h1 {
    font-size: 20px;
  }

  .logo-maps {
    width: 54px;
    height: 54px;
    padding: 7px;
    border-radius: 18px;
  }

  .logo-maps img {
    width: 36px;
    height: 40px;
  }

  .barre-edition-maps {
    width: calc(100% - 24px);
  }

  #mode-points-maps {
    font-size: 11px;
  }

  .signature-maps {
    display: none;
  }

  .informations-maps {
    bottom: calc(
      28px + env(safe-area-inset-bottom, 0px)
    );

    max-width: calc(100vw - 180px);
  }
}


/* Écrans larges avec peu de hauteur */

@media (max-height: 540px) and (min-width: 601px) {
  .commandes-maps {
    flex-direction: row;
    align-items: center;
  }

  .signature-maps {
    display: none;
  }

  .informations-maps {
    bottom: calc(
      32px + env(safe-area-inset-bottom, 0px)
    );

    max-width: calc(100vw - 300px);
  }
}




.options-point-maps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icone-texte-maps {
  border: 0;
  background: transparent;
}

.texte-sur-maps {
  position: absolute;
  top: 0;
  left: 0;

  display: block;
  width: max-content;
  max-width: 300px;
  padding: 6px 10px;

  transform: translate(-50%, -50%);

  color: #f4efe7;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;

  white-space: normal;
  overflow-wrap: anywhere;
  user-select: none;

  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, .9),
     1px -1px 0 rgba(0, 0, 0, .9),
    -1px  1px 0 rgba(0, 0, 0, .9),
     1px  1px 0 rgba(0, 0, 0, .9),
     0 3px 8px rgba(0, 0, 0, .8);
}

.icone-texte-maps:focus-visible {
  outline: none;
}

.icone-texte-maps:focus-visible .texte-sur-maps {
  outline: 2px solid #eee5d7;
  outline-offset: 4px;
  border-radius: 8px;
}





#valeur-opacite-zone-maps {
  color: #eee1cd;
  font-variant-numeric: tabular-nums;
}

#champs-point-maps input[type="range"] {
  height: 46px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  accent-color: #d5b88d;
}

#carte-maps .zone-dessinee-maps {
  cursor: pointer;
}

#carte-maps .zone-dessinee-maps:focus-visible {
  outline: none;
  stroke: #ffffff;
  stroke-width: 4;
}

.poignee-zone-maps {
  border: 0;
  background: transparent;
}

.sommet-zone-maps,
.milieu-zone-maps {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;

  border: 2px solid #f4eee5;
  border-radius: 50%;
  background: #352b20;
  color: #fff;

  box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
}

.milieu-zone-maps {
  border-color: #dac29e;
  background: #786044;
  font: 700 12px Arial, sans-serif;
}

.sommet-choisi-maps .sommet-zone-maps {
  background: #d5ad72;
}

.poignee-zone-maps:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .actions-edition-maps .bouton-maps {
    padding: 10px 14px;
    font-size: 13px;
  }
}




/* INTERFACE FLOTTANTE */

.ambiance-maps {
  display: none;
}

.barre-edition-maps {
  top: calc(108px + env(safe-area-inset-top));
  right: 20px;

  width: min(320px, calc(100vw - 40px));
  max-height: calc(100dvh - 240px);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;

  pointer-events: none;
}

.barre-edition-maps [hidden],
#chargement-carte-maps[hidden],
#reessayer-carte-maps[hidden] {
  display: none !important;
}

.choix-interface-maps {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  pointer-events: auto;
}

.choix-interface-maps .bouton-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 48px;
  padding: 12px 20px;
}

.choix-interface-maps svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#mode-edition-maps[aria-pressed="true"] {
  background: #eee2ce;
  border-color: #eee2ce;
  color: #211e1a;
}

/* PANNEAUX EN VERRE SOMBRE */

.panneau-interface-maps {
  box-sizing: border-box;
  min-height: 0;
  padding: 20px;

  overflow-y: auto;
  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: #756a5b transparent;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;

  background: rgba(25, 28, 30, 0.8);

  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);

  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);

  color: #f5f1eb;
  pointer-events: auto;
}

.entete-panneau-maps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 18px;
}

.surtitre-panneau-maps {
  color: #c9b99d;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.entete-panneau-maps h2 {
  margin: 7px 0 0;

  font-size: 21px;
  line-height: 1.2;
}

.fermer-panneau-maps {
  width: 34px;
  height: 34px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);
  color: inherit;

  font: 22px Arial, sans-serif;
  cursor: pointer;
}

/* INDICATION DU MODE D’ÉDITION */

#panneau-edition-maps #mode-points-maps {
  margin: 0 0 20px;
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  box-shadow: none;
  color: #c2bfb9;

  font-size: 12px;
  line-height: 1.6;
}

/* OUTILS RANGÉS VERTICALEMENT */

.groupe-outils-maps + .groupe-outils-maps {
  margin-top: 18px;
}

.legende-outils-maps,
.groupe-calques-maps legend {
  margin: 0 0 10px;
  padding: 0;

  color: #c5b99f;

  font-size: 11px;
  font-weight: 700;
}

.barre-edition-maps .actions-edition-maps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.panneau-interface-maps .bouton-maps {
  width: 100%;
  min-height: 46px;
  padding: 12px 15px;

  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  box-shadow: none;
  font-size: 13px;
}

.panneau-interface-maps .bouton-maps:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(230, 205, 164, 0.5);
}

.panneau-interface-maps .outil-range-maps {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;

  text-align: left;
}

.symbole-outil-maps {
  display: grid;
  place-items: center;

  flex: 0 0 33px;
  height: 33px;

  border-radius: 10px;

  background: rgba(226, 204, 170, 0.09);
  color: #e5c99f;

  font-size: 21px;
}

.outil-range-maps strong,
.outil-range-maps small,
.fond-actif-maps strong,
.fond-actif-maps small {
  display: block;
}

.outil-range-maps small,
.fond-actif-maps small {
  margin-top: 4px;

  color: #bcb9b2;

  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.panneau-interface-maps .annuler-outil-maps {
  margin-top: 14px;
}

/* MENU DES CALQUES */

.groupe-calques-maps {
  min-width: 0;

  margin: 0;
  padding: 0;

  border: 0;
}

.groupe-calques-maps + .groupe-calques-maps {
  margin-top: 22px;
}

.fond-actif-maps {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 13px;

  border: 1px solid rgba(226, 204, 170, 0.25);
  border-radius: 16px;

  background: rgba(226, 204, 170, 0.06);

  font-size: 13px;
  cursor: pointer;
}

.aide-panneau-maps {
  margin: 10px 0 0;

  color: #a8a69f;

  font-size: 11px;
  line-height: 1.5;
}

.ligne-calque-maps {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 43px;

  font-size: 13px;
  cursor: pointer;
}

.groupe-calques-maps input {
  width: 17px;
  height: 17px;

  margin: 0;

  accent-color: #dec5a0;
  cursor: pointer;
}

.nombre-calque-maps {
  margin-left: auto;

  min-width: 23px;
  padding: 3px 6px;

  border-radius: 7px;

  background: rgba(255, 255, 255, 0.07);
  color: #c9c5bd;

  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.panneau-interface-maps :focus-visible {
  outline: 2px solid #e2c69b;
  outline-offset: 3px;
}

/* INDICATEUR DE CHARGEMENT */

#chargement-carte-maps {
  position: fixed;

  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));

  z-index: 1100;

  display: flex;
  align-items: center;
  gap: 12px;

  max-width: min(420px, calc(100vw - 220px));
  padding: 11px 17px;

  transform: translateX(-50%);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;

  background: rgba(25, 28, 30, 0.85);

  backdrop-filter: blur(16px);

  color: #eee7dc;
  font: 12px/1.5 Arial, sans-serif;
}

#chargement-carte-maps.chargement-en-erreur-maps {
  border-color: #d7ae76;
}

#reessayer-carte-maps {
  padding: 6px 9px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;

  background: transparent;
  color: inherit;

  font: inherit;
  cursor: pointer;
}

/* PETITS ÉCRANS */

@media (max-width: 600px) {
  .barre-edition-maps {
    top: calc(84px + env(safe-area-inset-top));
    right: 12px;

    width: min(300px, calc(100vw - 24px));
    max-height: calc(100dvh - 275px);
  }

  .panneau-interface-maps {
    padding: 17px;
    border-radius: 22px;
  }

  .choix-interface-maps .bouton-maps {
    padding: 10px 17px;
  }

  #chargement-carte-maps {
    left: 12px;
    bottom: calc(90px + env(safe-area-inset-bottom));

    max-width: calc(100vw - 160px);
    transform: none;
  }
}

@media (max-height: 540px) and (min-width: 601px) {
  .barre-edition-maps {
    top: 94px;
    max-height: calc(100dvh - 185px);
  }

  .panneau-interface-maps {
    padding: 16px;
  }
}





#choix-fonds-maps {
  display: grid;
  gap: 9px;
}

.choix-fond-maps {
  gap: 10px;
  padding: 11px;

  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.choix-fond-maps:hover {
  background: rgba(255, 255, 255, 0.07);
}

.choix-fond-maps.fond-selectionne-maps {
  border-color: rgba(226, 204, 170, 0.6);
  background: rgba(226, 204, 170, 0.1);
}

.choix-fond-maps img {
  flex: 0 0 52px;

  width: 52px;
  height: 44px;

  object-fit: cover;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
}

.choix-fond-maps > span {
  min-width: 0;
}

.choix-fond-maps input {
  flex-shrink: 0;
}

#groupe-fonds-maps:disabled {
  opacity: 0.65;
}

#etat-fonds-maps {
  min-height: 2.8em;
}

#exporter-verification-maps {
  pointer-events: auto;

  margin-top: 8px;
  padding: 10px 15px;

  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .choix-fond-maps {
    transition: none;
  }
}


/* ÉCRAN DE CHOIX DES UNIVERS */

html.choix-univers-maps,
body.choix-univers-maps {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

body.choix-univers-maps {
  background:
    radial-gradient(
      ellipse at 15% 35%,
      rgba(140, 109, 66, 0.15),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 85% 45%,
      rgba(51, 108, 139, 0.2),
      transparent 50%
    ),
    #101416;
}

.choix-univers-maps .conteneur-maps,
.choix-univers-maps #chargement-carte-maps {
  display: none !important;
}

#accueil-univers-maps[hidden] {
  display: none !important;
}

.accueil-univers-maps {
  box-sizing: border-box;
  position: relative;

  display: grid;
  align-content: center;
  gap: 36px;

  width: min(1280px, 100%);
  min-height: 100svh;

  margin: 0 auto;
  padding: 150px 46px 60px;

  color: #f5f2ec;
}

.introduction-univers-maps {
  text-align: center;
}

.surtitre-univers-maps {
  color: #c9bda8;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
}

.introduction-univers-maps h2 {
  margin: 18px 0 14px;

  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.introduction-univers-maps p {
  margin: 0;

  color: #aeb6b9;

  font-size: 15px;
  line-height: 1.7;
}

.grille-univers-maps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.carte-univers-maps {
  position: relative;
  display: block;

  height: clamp(330px, 42vh, 470px);

  overflow: hidden;
  isolation: isolate;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;

  background: #143449;
  color: #fff;

  text-decoration: none;

  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.25);
}

.carte-univers-maps > img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0.82;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.univers-gta6-maps > img {
  object-position: center 58%;
}

.carte-univers-maps::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.05) 35%,
    rgba(7, 12, 15, 0.92)
  );

  pointer-events: none;
}

.carte-univers-maps:hover > img {
  transform: scale(1.035);
  opacity: 1;
}

.carte-univers-maps:focus-visible {
  outline: 3px solid #e8d5b5;
  outline-offset: 6px;
}

.region-univers-maps {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 2;

  padding: 10px 14px;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;

  background: rgba(18, 26, 30, 0.55);
  backdrop-filter: blur(16px);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}

.contenu-univers-maps {
  position: absolute;

  right: 30px;
  bottom: 29px;
  left: 30px;

  z-index: 2;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.numero-univers-maps {
  color: #c7c9c5;

  font-size: 9px;
  letter-spacing: 2px;
}

.contenu-univers-maps h3 {
  margin: 9px 0 0;

  font-size: clamp(44px, 5vw, 67px);
  line-height: 1;
  letter-spacing: -2px;
}

.fleche-univers-maps {
  display: grid;
  place-items: center;

  flex: 0 0 50px;
  height: 50px;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);

  font-size: 28px;
}

@media (max-width: 720px) {
  .accueil-univers-maps {
    padding: 138px 22px 36px;
    gap: 27px;
  }

  .grille-univers-maps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .carte-univers-maps {
    height: 320px;
    border-radius: 25px;
  }

  .introduction-univers-maps p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carte-univers-maps > img {
    transition: none;
  }

  .carte-univers-maps:hover > img {
    transform: none;
  }
}





/* CARTES DE SÉLECTION PLUS IMPOSANTES */

.accueil-univers-maps {
  width: 100%;
  max-width: none;

  padding: 132px clamp(20px, 2.5vw, 60px) 40px;
  gap: 30px;
}

.grille-univers-maps {
  gap: 30px;
}

.carte-univers-maps {
  height: clamp(500px, 62vh, 820px);
  border-radius: 36px;
}

.region-univers-maps {
  top: 32px;
  left: 32px;

  padding: 12px 18px;
  font-size: 11px;
}

.contenu-univers-maps {
  right: 40px;
  bottom: 38px;
  left: 40px;
}

.numero-univers-maps {
  font-size: 11px;
  letter-spacing: 2.5px;
}

.contenu-univers-maps h3 {
  margin-top: 14px;

  font-size: clamp(68px, 6vw, 116px);
  letter-spacing: -3px;
}

.fleche-univers-maps {
  flex-basis: 68px;
  height: 68px;
  font-size: 36px;
}

/* ÉCRANS LARGES MAIS PEU HAUTS */

@media (min-width: 901px) and (max-height: 800px) {
  .accueil-univers-maps {
    padding-top: 110px;
    padding-bottom: 26px;
    gap: 24px;
  }

  .carte-univers-maps {
    height: clamp(390px, 60vh, 540px);
  }
}

/* TABLETTES ET MOBILES */

@media (max-width: 900px) {
  .accueil-univers-maps {
    padding: 124px 20px 30px;
    gap: 28px;
  }

  .grille-univers-maps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .carte-univers-maps {
    height: clamp(360px, 56vh, 580px);
    border-radius: 28px;
  }

  .region-univers-maps {
    top: 24px;
    left: 24px;
    font-size: 10px;
  }

  .contenu-univers-maps {
    right: 24px;
    bottom: 28px;
    left: 24px;
  }

  .contenu-univers-maps h3 {
    font-size: clamp(44px, 12vw, 68px);
    letter-spacing: -2px;
  }

  .fleche-univers-maps {
    flex-basis: 54px;
    height: 54px;
    font-size: 28px;
  }
}