/**
 * ========================================
 * STYLE.CSS - Découvrir Bruxelles
 * ========================================
 * Organisation des styles par page :
 * 1. Styles globaux
 * 2. Header & Navigation (tous)
 * 3. Index.html (accueil)
 * 4. Contact.html (formulaire)
 * 5. Carte.html (carte Leaflet)
 * 6. Footer (tous)
 * 7. Animations
 */

/* ========================================
   1. STYLES GLOBAUX
   ======================================== */

html,
body {
  font-family: Roboto, sans-serif;
}

body {
  background: linear-gradient(135deg, #ab7ba6 0%, #667eea 100%);
  min-height: 100vh;
}

/* ========================================
   2. HEADER & NAVIGATION (Toutes les pages)
   ======================================== */

.header {
  background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
  color: #ffffff;
  padding: 30px 20px;
  margin: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  animation: slideDown 0.6s ease-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.header__title {
  animation: fadeInScale 0.8s ease-out;
  font-size: 40px;
  letter-spacing: 2px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 0;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav__link {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.nav__link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav__link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Lien actif de navigation */
.nav__link--active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* ========================================
   3. INDEX.HTML - Page d'accueil
   ======================================== */

/* Galerie d'images */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 30px;
  max-width: 1100px;
}

.gallery a {
  display: block;
  width: min(320px, calc((100% - 40px) / 3));
  overflow: hidden;
  border-radius: 15px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin: 0;
}

@media (max-width: 860px) {
  .gallery a {
    width: min(320px, calc((100% - 20px) / 2));
  }
}

@media (max-width: 580px) {
  .gallery {
    flex-direction: column;
    gap: 18px;
  }

  .gallery a {
    width: 100%;
  }
}

/* Image individuelle */
img {
  max-width: 280px;
  border-radius: 15px;
  transition: all 0.4s ease;
  animation: zoomIn 0.8s ease-out;
  display: block;
  margin: 0 auto 30px;
}

#mag img {
  box-shadow: none;
}

/* Section Places (lieux à découvrir) */
.places {
  margin: 40px 20px;
  animation: fadeIn 0.6s ease-out;
  background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
  padding: 40px 30px;
  border-radius: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 15px 40px rgba(118, 75, 162, 0.3);
}

.places__description {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: slideInLeft 0.6s ease-out;
  text-align: center;
}

.places__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.places__item {
  background-color: #7a5cf5;
  color: #ffffff;
  padding: 18px 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(122, 92, 245, 0.33);
  animation: slideInUp 0.5s ease-out backwards;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* Formulaire "Ajouter un lieu" (Index) */
.form {
  background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
  padding: 40px 30px;
  margin: 40px 20px;
  border-radius: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 15px 40px rgba(118, 75, 162, 0.3);
  animation: slideUp 0.6s ease-out 0.2s backwards;
}

.form__input {
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
  color: #333;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.form__input::placeholder {
  color: #aaa;
  font-style: italic;
}

.form__input:focus {
  border-color: #ffffff;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.form__input:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.form__button {
  background-color: #7a5cf5;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(122, 92, 245, 0.33);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.form__button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.form__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(122, 92, 245, 0.55);
}

.form__button:hover::before {
  width: 300px;
  height: 300px;
}

.form__button:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(122, 92, 245, 0.4);
}

/* ========================================
   4. CONTACT.HTML - Page contact
   ======================================== */

.contact-form {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 50px 40px;
  margin: 40px 20px;
  border-radius: 20px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  animation: slideUp 0.6s ease-out;
}

.contact-title {
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  animation: fadeInScale 0.8s ease-out;
}

.form-group {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  animation: slideInLeft 0.5s ease-out backwards;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}

.form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.form-group:nth-child(3) {
  animation-delay: 0.3s;
}

.form-group:nth-child(4) {
  animation-delay: 0.4s;
}

.form-group label {
  margin-bottom: 12px;
  font-weight: 600;
  color: #ffffff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label::before {
  content: "✨";
  font-size: 18px;
}

.form-group input,
.form-group textarea {
  padding: 15px 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
  font-style: italic;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffffff;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
  font-family: Roboto, sans-serif;
}

.submit-button {
  background-color: #7a5cf5;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(122, 92, 245, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.6s ease-out 0.5s backwards;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(122, 92, 245, 0.6);
}

.submit-button:hover::before {
  width: 300px;
  height: 300px;
}

/* ========================================
   5. CARTE.HTML - Page carte Leaflet
   ======================================== */

#map {
  width: 100%;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}

/* Conteneur de la carte interactive */
.leaflet-container,
.leaflet-tile {
  background: transparent;
}

.map-section {
  display: grid;
  gap: 24px;
}

/* Contrôle d'attribution avec fond bleu */
.leaflet-control-attribution {
  background-color: #2563eb !important;
  color: white !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.leaflet-control-attribution a {
  color: #ffffff !important;
  text-decoration: underline;
}

.leaflet-control-attribution a:hover {
  color: #e0e7ff !important;
}

/* ========================================
   6. LAYOUT COMMUN - Toutes les pages
   ======================================== */

.main {
  padding: 24px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: auto;
  margin: 30px 20px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  animation: slideUp 0.6s ease-out;
}

.footer__copyright {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}





