/* ========== Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin-bottom: 0.5em;
}

/* ========== Base ========== */
body {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f4f6f8;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  color: #222;
    font-family: 'Open Sans', sans-serif
}


h1, h2, h3, h4, h5, h6 {
font-family: 'Rubik', sans-serif;
  font-weight: 700;
  color: #2c3e50;
}

/* ========== Header ========== */
header {
  background: linear-gradient(90deg, #43AA8B, #90BE6D); /* dégradé pistache->zomp */
  color: white;
 /* padding: 1rem;*/
  text-align: center;
}

header h1 {
  font-size: 1.5rem;
}

header nav {
  margin-bottom: 1rem;
}

header nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  margin-left: 1rem;
}

header nav a:hover {
  text-decoration: underline;
}

/* ========== Boutons ========== */
a.btn, button, .btn {
  display: inline-block;
 padding: 0.4rem 1rem; /* plus petit que 0.8rem 1.6rem */
  font-size: 14px; /* plus petit que 15px */
  font-weight: 600;
  color: white;
  background-color: #F3722C; /* Orange Crayola */
  border: none;
  border-radius: 24px; /* légèrement moins arrondi */
  box-shadow: 0 6px 15px rgba(243,114,44,0.4);
  cursor: pointer;
  margin: 0.5rem 0; /* réduit l'espace autour */
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
button:hover, .btn:hover {
  background: #F94144; /* Rouge impérial */
  box-shadow: 0 8px 20px rgba(249,65,68,0.6);
  transform: translateY(-3px) scale(1.05);
}

button:active, .btn:active {
  transform: translateY(0) scale(0.95);
}

button:focus, .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px #F9C74F; /* Safran */
  color: #222;
}

/* Boutons spécifiques */
.btn-success {
  background-color: #90BE6D; /* Pistache */
  box-shadow: 0 6px 15px rgba(144,190,109,0.4);
}
.btn-details {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    padding: 0.2rem 0.5rem;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background-color: #F94144;
    border: none;
    border-radius: 6px;
    box-shadow: none;
    cursor: pointer;
    margin: 0.4rem auto 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.btn-share {
  background: #d9534f;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 4px;
  width: 100%;
}
.btn-share:hover { opacity: 0.9; }
.btn-success:hover {
  background-color: #43AA8B; /* Zomp */
  box-shadow: 0 8px 20px rgba(67,170,139,0.6);
}

.btn-danger {
  background-color: #F94144; /* Rouge impérial */
  box-shadow: 0 6px 15px rgba(249,65,68,0.4);
}
.btn-danger:hover {
  background-color: #d63534;
  box-shadow: 0 8px 20px rgba(211,53,52,0.6);
}

.btn-secondary {
  background-color: #577590; /* Gris de Payne */
  box-shadow: 0 6px 15px rgba(87,117,144,0.4);
}
.btn-secondary:hover {
  background-color: #455a7a;
  box-shadow: 0 8px 20px rgba(69,90,122,0.6);
}

/* ========== Formulaires ========== */
form {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #577590;
  letter-spacing: 0.02em;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-top: 0.4rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #43AA8B; /* Zomp */
  outline: none;
  box-shadow: 0 0 8px rgba(67,170,139,0.3);
}
/* ========== Messages ========== */
.success,
.message-success,
.message-info {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.error,
.message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* ========== Carte ========== */
#map {
  width: 100%;
  height: 600px;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #ccc;
  display: block;
}

/* ========== Section présentation ========== */
#presentation {
  max-width: 700px;
  margin: 1rem auto 2rem;
  padding: 1.5rem 2rem;
  background: #f5faff;
  border: 2px solid #4a90e2;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 50, 0.05);
  text-align: center;
  line-height: 1.6;
  font-size: 0.8rem;
  color: #222;
}

#presentation h2 {
  margin-bottom: 1rem;
}

#presentation a {
  color: #1e70d1;
  font-weight: 600;
  text-decoration: none;
}

#presentation a:hover {
  text-decoration: underline;
  color: #134a8b;
}

/* Conteneur principal : disposition en ligne sur PC */
#container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

/* Carte : prend la majorité de la largeur */
#map {
  flex: 2;
  height: 600px;
  min-height: 400px;
  border: 1px solid #ccc;
}

/* Liste : colonne de droite */
#animalList {
  flex: 1;
  max-height: 600px;
  overflow-y: auto;
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
}

/* Style des images dans la colonne animaux */
.animal-item img,
.animal-apercu-item img {
  width: 100px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.btn-map {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #28a745; /* vert sympa */
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn-map:hover, .btn-map:focus {
  background-color: #218838; /* vert foncé au hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  outline: none;
}

.animal-photo {
  max-width: 20%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
}

.modal-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.animal-item {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.animal-item img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.animal-item.perdu {
  border-color: red;
  background: #ffe5e5;
}

.animal-apercu-item {
  border: 1px solid #6c6;
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  background: #f0fff0;
  text-align: center;
}

.animal-apercu-item img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.pseudo-label span {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #333333;      /* texte gris foncé */
  background: transparent !important;  /* sans fond */
  padding: 0 !important;               /* sans padding */
  border-radius: 0 !important;        /* sans arrondi */
  box-shadow: none !important;        /* sans ombre */
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.participants-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
}
#imageModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
#imageModal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
#animalModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#animalModal .modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.miniature {
  max-width: 100px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
#markerForm label {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem; /* espace entre les deux cases */
  font-weight: normal;  /* facultatif, si tu veux éviter le gras */
}

#markerForm input[type="checkbox"] {
  margin-right: 6px;
}
  .zanimalmap {
	color: #009900;
}
.modal {
  cursor: pointer; /* Pour que ce soit clair qu’on peut cliquer pour fermer */
}
/* Responsive : en colonne sur mobile */
@media screen and (max-width: 768px) {
  .modal {
    cursor: pointer;
  }

  #container {
    flex-direction: column;
  }

  #map {
    height: 400px;
  }

  #animalList {
    max-height: none;
  }

  .animal-item img,
  .animal-apercu-item img {
    width: 100%;
  }

  header .zanimalmap img {
    max-width: 250px;
    height: auto;
  }
}
