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

/* ===================== STYLES POUR L'AUTOCOMPLÉTION GOOGLE PLACES ===================== */
.pac-container {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Montserrat', sans-serif;
  z-index: 1000;
}

.pac-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.pac-item:hover {
  background-color: #f8f9fa;
}

.pac-item:last-child {
  border-bottom: none;
}

.pac-item-selected {
  background-color: #007bff;
  color: white;
}

.pac-matched {
  font-weight: 600;
  color: #BB0B0B;
}

.pac-item-selected .pac-matched {
  color: white;
}

/* ===================== CORPS DE PAGE ===================== */
body {
  background-color: #fff;
  color: #000;
  font-family: 'Montserrat', sans-serif;
}

/* ===================== HEADER ===================== */
.header {
  background-color: #bb0b0b;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  position: relative; /* Pour pouvoir positionner la barre de recherche par rapport à l'en-tête */
}

.header-logo img {
  height: 30px;
}

/* Conteneur de droite : liens + icône user */
.header-user {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Liens "NEWS", "METTRE MON EVENEMENT..." et "MES FAVORIS" */
.news-link,
.add-event-link,
.favorites-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.7rem;
  margin-right: 1rem;
}

.news-link:hover,
.add-event-link:hover,
.favorites-link:hover {
  color: #dedede;
}

/* Icône utilisateur */
.user-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* ===================== MAIN ===================== */
main {
  padding: 2rem;
  margin-top: 10px; /* Espace pour permettre à la barre de recherche de déborder */
}

/* ===================== BARRE DE RECHERCHE ===================== */
.search-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
  margin-left: auto; /* Positionné à droite */
  position: absolute;
  bottom: -25px; /* Pour déborder sur le main */
  left: 15rem; /* Distance depuis la droite */
  z-index: 15; /* Plus élevé que l'en-tête */
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  transition: box-shadow 0.3s ease;
}

.search-bar:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Chaque "champ" de la barre de recherche */
.search-field {
  display: flex;
  flex-direction: column;
  margin: 0 0.8rem;
  max-width: 120px;
}

.search-field input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  background: transparent;
  color: #000;
  min-width: 180px;
  font-weight: 500;
}

.field-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Séparateur vertical entre les champs */
.separator {
  width: 1px;
  height: 1.8rem;
  background-color: #e0e0e0;
  margin: 0 0.5rem;
}

/* Bouton de recherche */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.search-btn:hover {
  transform: scale(1.05);
}

.icon-search {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin: -8px;
}

/* ======= FOOTER ======= */
.footer {
  margin-top: 3rem;
  background-color: #BB0B0B;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.footer-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top .footer-logo {
  display: block;
  margin: 2rem auto 3rem;
  max-width: 240px;
  height: auto;
}

.footer-top h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.footer-top p {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer-newsletter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-newsletter input[type="email"] {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 25px;
  width: 400px;
  max-width: 100%;
}

.footer-newsletter input[type="email"]:focus {
  outline: none;
  border: none;
  color: #333;
}

.footer-newsletter button {
  background-color: #BB0B0B;
  color: #fff;
  border: 2px solid #fff;
  outline: none;
  box-shadow: 0 0 0 2px #BB0B0B;
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  margin-left: -3.5rem;
  margin-top: 2px;
  margin-bottom: 2px;
}

.footer-newsletter button:hover {
  background-color: #a80b0b;
  box-shadow: 0 0 0 2px #a80b0b;
}

.footer-links {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  gap: 15rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
  text-align: left;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-column a:hover {
  text-decoration: underline;
}

/* ===== SECTION : DES IDÉES POUR BOUGER, CRÉER, PARTAGER ! ===== */
.ideas-section {
  max-width: 1060px;
  margin: 2rem auto;
  padding: 2rem 2rem;
  background-color: #fff;
  color: #000;
}

.ideas-section h2,
.ideas-section .ideas-intro {
  text-align: left;
}

.ideas-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ideas-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.ideas-cards {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.idea-card {
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.smaller-card img {
  width: 210px;
  height: 190px;
  border-radius: 8px;
}

.smaller-card h3 {
  font-size: 0.7rem;
  margin: 0.5rem 0 0.3rem;
  font-weight: 600;
  color: #000;
  text-align: left;
}

.smaller-card p {
  font-size: 0.8rem;
  color: #555;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  text-align: left;
}

.bigger-card img {
  width: 550px;
  height: auto;
  border-radius: 8px;
}

.ideas-cta {
  margin-top: -2.5rem;
  margin-right: 5rem;
  text-align: right;
}

.btn-discover {
  display: inline-block;
  background-color: #BB0B0B;
  border: 2px solid white;
  outline: none;
  box-shadow: 0 0 0 2px #BB0B0B;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.btn-discover:hover {
  background-color: #a80b0b;
  box-shadow: 0 0 0 2px #a80b0b;
}

@media (max-width: 768px) {
  .ideas-cards {
    flex-direction: column;
    align-items: flex-end;
  }
  
  .smaller-card img,
  .bigger-card img {
    width: 100%;
    max-width: 400px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .search-wrapper {
    left: 0;
    right: 0;
    justify-content: center;
  }
}

/* Loader/Spinner pour les requêtes */
.loading-spinner {
  border: 4px solid rgba(187, 11, 11, 0.1);
  border-left-color: #BB0B0B;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spinner 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}