@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');

* {
  box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box;
}

html, body {
  overflow-x: hidden; -ms-overflow-x: hidden;
  overflow-y: auto; -ms-overflow-y: auto;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

main {
  padding: 1rem;
  margin: auto;
}

/* Desktop uniquement */
@media screen and (min-width: 768px) {
  main {
    padding-top: 5rem;
  }
}


form {
  display: inline; -webkit-flex: inline; -webkit-flex: inline; -ms-flex: inline; -ms-flexbox: inline;
}

.centered {
  text-align: center;
}

.image {
  height: 20rem;
}

.image img {
  height: 100%;
}

.grid {
  display: flex; -webkit-flex: flex; -webkit-flex: flex; -ms-flex: flex; -ms-flexbox: flex;
  flex-wrap: wrap; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap;
  justify-content: space-around; -webkit-justify-content: space-around;
  align-items: stretch; -ms-align-items: stretch;
}

.card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
}

.card__header,
.card__content {
  padding: 1rem;
}

.card__header h1,
.card__content h1,
.card__content h2,
.card__content p {
  margin: 0;
}

.card__actions {
  padding: 1rem;
  text-align: center;
}

.card__actions button,
.card__actions a {
  margin: 0 0.25rem;
}

.btn {
  display: inline-block; -webkit-flex: inline-block; -webkit-flex: inline-block; -ms-flex: inline-block; -ms-flexbox: inline-block;
  padding: 0.25rem 1rem;
  text-decoration: none; -webkit-text-decoration: none;
  font: inherit;
  border: 1px solid #00695c;
  color: #00695c;
  background: white;
  border-radius: 3px; -webkit-border-radius: 3px;
  cursor: pointer; -webkit-cursor: pointer;
  margin-bottom:0.8rem;
}

.btn:hover,
.btn:active {
  background-color: #00695c;
  color: white;
}

.btn.danger {
  color: red;
  border-color: red;
}

.btn.danger:hover,
.btn.danger:active {
  background: red;
  color: white;
}

.alert {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  border-radius: 6px; -webkit-border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); -webkit-box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  word-break: break-word;
}

.alert-danger {
  background-color: #ffe5e5;
  color: #a60000;
  border: 1px solid #ffa0a0;
}

.alert-success {
  background-color: #e5ffe5;
  color: #007a00;
  border: 1px solid #a0ffa0;
}

/***     POINT SET STYLE  ****/
/* Conteneur du formulaire */
.point__form {
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px; -webkit-border-radius: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05); /* très léger fond pour mieux faire ressortir le glow */
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4); -webkit-box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); -webkit-filter: blur(4px);
  max-width: 400px;
  margin: 20px auto;
}

/* Titres des champs */
.point__form label {
  color: #cc66ff; /* orange violacé */
  font-weight: bold;
  text-shadow: 0 0 3px rgba(204, 102, 255, 0.6); -webkit-text-shadow: 0 0 3px rgba(204, 102, 255, 0.6);
  display: block; -webkit-flex: block; -webkit-flex: block; -ms-flex: block; -ms-flexbox: block;
  margin-bottom: 6px;
}

/* Champs de formulaire avec effet glow */
.point__form input[type="text"],
.point__form input[type="number"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px; -webkit-border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: #fdfcff;
  color: #333;
  font-size: 1rem;
  box-shadow: inset 0 0 5px rgba(204, 102, 255, 0.3); -webkit-box-shadow: inset 0 0 5px rgba(204, 102, 255, 0.3);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.2); -webkit-text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Bouton Ajouter le point */
.point__form button.btn {
  background: linear-gradient(135deg, #ffffff, #aad4ff); /* blanc vers bleu */
  color: #002244; /* couleur opposée au bleu clair */
  border: 2px solid #66aaff;
  border-radius: 25px; -webkit-border-radius: 25px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer; -webkit-cursor: pointer;
  box-shadow: 0 0 8px rgba(102, 170, 255, 0.5); -webkit-box-shadow: 0 0 8px rgba(102, 170, 255, 0.5);
  transition: background 0.3s ease; -webkit-transition: background 0.3s ease;
}

.point__form button.btn:hover {
  background: linear-gradient(135deg, #e6f7ff, #a3c9ff);
}

#draw__area {
  display: block; -webkit-flex: block; -webkit-flex: block; -ms-flex: block; -ms-flexbox: block;
  margin: 20px auto;
  max-width: 90vw;
  max-height: 90vh;
  aspect-ratio: 1 / 1;
  background-color: #fefefe;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}


#pointset {
  position: absolute;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto; -ms-overflow-y: auto;
  z-index: 10;
}

@media screen and (max-width: 600px) {
  .point__form {
    max-width: 90vw;
    padding: 10px;
  }
}

/************* POINT STYLE **************/