/* ============================================================================
   STYLE MAGAZINE PEOPLE — PARIS MATCH
   Premium, éditorial, rouge iconique, cartouches, galerie magazine
============================================================================ */

/* RESET GLOBAL */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background: #faf7f5;
  color: #222;
}

/* TITRES MAGAZINE */
h2, h3, h4 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b30000;
  border-left: 6px solid #b30000;
  padding-left: 10px;
  margin: 20px 12px 10px;
}

/* CARTOUCHES PREMIUM */
#questions,
#ranking,
#gallery,
#gameInfo,
.container_formular {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  margin: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  border: 1px solid #e6e6e6;
}

/* BOUTONS */
button {
  background: linear-gradient(135deg, #ff4d4d, #b30000);
  border: none;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(179,0,0,0.4);
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(179,0,0,0.5);
}

button:disabled {
  background: #bbb;
  box-shadow: none;
  cursor: not-allowed;
}

/* INPUTS */
input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 15px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* CARTE LEAFLET */
#map {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  overflow: hidden;
}

/* LABELS SUR LA CARTE */
.photo-label .label-team {
  background: rgba(179,0,0,0.85);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  white-space: nowrap;
}

/* GALERIE MAGAZINE */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding-top: 10px;
}

.gallery-item {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* QR CODE */
#qrcode img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* STATUT / ALERTES */
#status,
#uploadStatus {
  font-weight: bold;
  margin-top: 12px;
  padding: 10px;
  background: #fff5f5;
  border-left: 5px solid #b30000;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* HIDDEN */
.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 480px) {

  h2 {
    font-size: 22px;
  }

  button {
    padding: 10px 16px;
    font-size: 14px;
  }

  #map {
    height: 260px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}
