/* --- Site Introduction Section --- */
.mm-intro-section {
  background: var(--card-gradient);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInUp 0.7s cubic-bezier(0.25,0.8,0.25,1);
  position: relative;
  overflow: hidden;
}

.mm-intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  z-index: 1;
}

.mm-intro-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}

.mm-intro-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

.mm-intro-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.intro-description {
  text-align: center;
}

.intro-description p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--text);
  font-size: 1.05rem;
}

.intro-description p:last-child {
  margin-bottom: 0;
}

/* Features Section */
.features-wrapper {
  margin-top: 1rem;
}

.features-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.features-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(30, 136, 229, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:nth-child(even) {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

.feature-content h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.feature-content p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(38, 198, 218, 0.05));
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(30, 136, 229, 0.1);
}

.cta-text {
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .mm-intro-section {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .mm-intro-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  
  .intro-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
  }
  

  
  .feature-card {
    padding: 1.2rem;
  }
  
  .features-title {
    font-size: 1.1rem;
  }
  
  .feature-content h5 {
    font-size: 1rem;
  }
  
  .feature-content p {
    font-size: 0.9rem;
  }
  
  .cta-section {
    padding: 1.2rem;
  }
  
  .cta-text {
    font-size: 0.95rem;
  }
}

/* --- Explore Section --- */
.mm-explore-section {
  background: var(--card-gradient);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInUp 0.7s cubic-bezier(0.25,0.8,0.25,1);
  position: relative;
  overflow: hidden;
}

.mm-explore-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  z-index: 1;
}

.mm-explore-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}

.mm-explore-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

.mm-explore-content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.explore-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.explore-logo-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(30, 136, 229, 0.2));
  transition: transform 0.3s ease;
}

.explore-logo-img:hover {
  transform: scale(1.1);
}

.explore-description {
  margin: 0;
}

.explore-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  font-weight: 500;
}

.explore-cta {
  margin-top: 0.5rem;
}

.explore-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 20px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(30,136,229,0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
  position: relative;
  overflow: hidden;
  display: inline-block;
  border: 2px solid transparent;
}

.explore-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.explore-btn:hover::before {
  left: 100%;
}

.explore-btn:hover, .explore-btn:focus {
  box-shadow: 0 8px 25px rgba(30,136,229,0.25);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255,255,255,0.2);
}

.explore-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(30,136,229,0.2);
}

@media (max-width: 768px) {
  .mm-explore-section {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .mm-explore-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  
  .explore-logo-img {
    width: 110px;
    height: 110px;
  }
  
  .explore-description p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .explore-btn {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    border-radius: 16px;
  }
}

/* --- FAQ Section --- */
.mm-faq-section {
  background: var(--card-gradient);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInUp 0.7s cubic-bezier(0.25,0.8,0.25,1) 0.1s;
  position: relative;
  overflow: hidden;
}

.mm-faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--secondary));
  z-index: 1;
}

.mm-faq-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}

.mm-faq-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

.mm-faq-list {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mm-faq-item {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(30,136,229,0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(30,136,229,0.05);
  position: relative;
}

.mm-faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.mm-faq-item:hover {
  box-shadow: 0 8px 25px rgba(30,136,229,0.15);
  transform: translateY(-3px);
}

.mm-faq-item:hover::before {
  transform: scaleY(1);
}

.mm-faq-question {
  padding: 1.5rem 1.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1.1rem;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(30,136,229,0.08);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, transparent 0%, rgba(30,136,229,0.02) 100%);
}

.mm-faq-question:hover {
  background: linear-gradient(135deg, rgba(30,136,229,0.05) 0%, rgba(38,198,218,0.03) 100%);
  padding-left: 2rem;
}

.mm-faq-question.mm-faq-active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(30,136,229,0.08) 0%, rgba(38,198,218,0.05) 100%);
  border-bottom-color: rgba(30,136,229,0.15);
}

.mm-faq-toggle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 2px 8px rgba(30,136,229,0.2);
}

.mm-faq-question:hover .mm-faq-toggle {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(30,136,229,0.3);
}

.mm-faq-answer {
  padding: 1.5rem 1.8rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  opacity: 1;
  max-height: 1000px;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.mm-faq-answer[style*="display: none"] {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .mm-faq-section {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .mm-faq-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  
  .mm-faq-question {
    padding: 1.2rem 1.4rem;
    font-size: 1rem;
  }
  
  .mm-faq-question:hover {
    padding-left: 1.6rem;
  }
  
  .mm-faq-answer {
    padding: 1.2rem 1.4rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .mm-faq-toggle {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
}

/* --- Popular Cities Section --- */
.popular-cities-section {
  background: var(--card-gradient);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInUp 0.7s cubic-bezier(0.25,0.8,0.25,1);
  position: relative;
  overflow: hidden;
}

.popular-cities-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  z-index: 1;
}

.popular-cities-section::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(30,136,229,0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.popular-cities-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}

.popular-cities-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

.popular-cities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.popular-city-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(30,136,229,0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  text-align: center;
  border: 2px solid transparent;
}

.popular-city-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.popular-city-btn:hover::before {
  left: 100%;
}

.popular-city-btn:hover, .popular-city-btn:focus {
  box-shadow: 0 8px 25px rgba(30,136,229,0.25);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255,255,255,0.2);
}

.popular-city-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(30,136,229,0.2);
}

.popular-cities-tip {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 0.5rem;
  opacity: 0.9;
  text-align: center;
  font-weight: 500;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(30,136,229,0.05), rgba(38,198,218,0.05));
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(30,136,229,0.1);
}

@media (max-width: 768px) {
  .popular-cities-section {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .popular-cities-title {
    font-size: 1.3rem;
  }
  
  .popular-cities-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .popular-city-btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
    border-radius: 16px;
    min-width: 120px;
  }
  
  .popular-cities-tip {
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .popular-cities-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .popular-city-btn {
    min-width: auto;
    width: 100%;
  }
}
/* --- Modern Current Weather Block --- */
.current-weather-block {
  background: var(--card-gradient);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  grid-column: 1 / -1;
}

@media (min-width: 769px) {
  .weather-grid {
    display: block;
  }
  .current-weather-block {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.current-weather-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.current-weather-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

.current-weather-time {
  font-weight: 500;
  color: var(--primary);
}

.current-weather-condition {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

.current-weather-condition .weather-icon {
  width: 36px;
  height: 36px;
  margin: 0;
  filter: drop-shadow(0 2px 4px rgba(30,136,229,0.08));
}

.current-weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem 2rem;
  margin-top: 0.5rem;
}

.current-weather-item {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(30,136,229,0.06);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: box-shadow 0.2s;
}
.current-weather-item:hover {
  box-shadow: 0 6px 18px rgba(30,136,229,0.13);
}
.current-weather-icon {
  margin-bottom: 0.2rem;
}
.current-weather-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
}
.current-weather-value {
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 768px) {
  .current-weather-block {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .current-weather-title {
    font-size: 1.1rem;
  }
  .current-weather-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.7rem 1rem;
  }
  .current-weather-item {
    padding: 0.7rem 0.3rem;
  }
}
:root {
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --secondary: #26c6da;
  --text: #2d3748;
  --text-light: #4a5568;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --card-gradient: linear-gradient(to bottom right, #ffffff, #f8f9fa);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Header Styles */
.main-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  padding: 0;
}

.logo h1::after {
  display: none;
}

.logo-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Adjust body padding for fixed header */
body {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  /* Remplacement du gris par un bleu doux et lumineux adapté à la météo */
  background: linear-gradient(135deg, #e3f2fd 0%, #b3e5fc 100%);
  color: var(--text);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .main-header {
    margin-bottom: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .city-selector-container {
    z-index: 2000;
    margin-bottom: 2rem;
  }
  
  .suggestions-list {
    order: -1;
    position: static;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(30, 136, 229, 0.08);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1;
  }
  
  .suggestions-list li {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .controls {
    padding: 1.2rem 1.5rem 1.5rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    padding: 5rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  max-width: 1200px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(240,249,255,0.9) 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px -15px rgba(30, 136, 229, 0.25);
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Hero Section Modern - Inspired by Codeur.com */
.hero-modern {
  max-width: 1200px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px -15px rgba(0, 98, 230, 0.4);
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.8s ease-out forwards, rotateGradient 15s ease infinite;
  color: white;
}

@keyframes rotateGradient {
  0% {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
  }
  25% {
    background: linear-gradient(180deg, #1e88e5, #0d47a1);
  }
  50% {
    background: linear-gradient(225deg, #1e88e5, #0d47a1);
  }
  75% {
    background: linear-gradient(270deg, #1e88e5, #0d47a1);
  }
  100% {
    background: linear-gradient(315deg, #1e88e5, #0d47a1);
  }
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

.floating-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floating-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: floatAnimation 8s infinite ease-in-out;
}

.floating-circle:nth-child(1) {
  width: 150px;
  height: 150px;
  top: -75px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 15s;
}

.floating-circle:nth-child(2) {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 10%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.floating-circle:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 10%;
  left: 20%;
  animation-delay: 1s;
  animation-duration: 10s;
}

.floating-circle:nth-child(4) {
  width: 60px;
  height: 60px;
  bottom: 30%;
  right: 5%;
  animation-delay: 3s;
  animation-duration: 8s;
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-15px) translateX(15px);
  }
  50% {
    transform: translateY(10px) translateX(-10px);
  }
  75% {
    transform: translateY(-5px) translateX(5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231e88e5' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  z-index: 1;
}

.hero-content {
  padding: 2.5rem 2rem 0.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
  animation: fadeInDown 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
  animation: expandWidth 1s ease-out 0.8s forwards;
  transform-origin: center;
  transform: translateX(-50%) scaleX(0.3);
}

@keyframes expandWidth {
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  animation: fadeIn 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero Content Modern - Inspired by Codeur.com */
.hero-content-modern {
  padding: 3.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title-enhanced {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.8s ease-out 0.2s forwards, glow 3s ease-in-out infinite alternate;
  opacity: 0;
}

.hero-title-enhanced .highlight {
  position: relative;
  display: inline-block;
  color: #FFFFFF;
  z-index: 1;
}

.hero-title-enhanced .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  z-index: -1;
  animation: expandWidthFull 1s ease-out 0.8s forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes expandWidthFull {
  to {
    transform: scaleX(1);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.5);
  }
}

.hero-subtitle-enhanced {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-out 0.4s forwards;
  opacity: 0;
  letter-spacing: 0.01em;
}

/* Search and Controls */
.controls {
  padding: 1.5rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 20px 20px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.controls::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(30, 136, 229, 0.05), rgba(30, 136, 229, 0.2), rgba(30, 136, 229, 0.05));
}

/* Controls Modern - Inspired by Codeur.com */
.controls-modern {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 20px 20px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.controls-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0.5;
  pointer-events: none;
}

.city-selector-container {
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 2000;
  width: 100%;
}

.city-selector {
  display: flex;
  flex-direction: column-reverse;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-wrapper {
  position: relative;
  margin-bottom: 1rem;
  z-index: 2000;
}

.city-search {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  border: 2px solid rgba(30, 136, 229, 0.15);
  border-radius: 12px;
  background-color: white;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px -4px rgba(30, 136, 229, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
  transform: translateY(0);
  color: #222 !important; /* Texte input foncé */
}

.city-search:hover, .city-search:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 6px 15px -5px rgba(30, 136, 229, 0.2);
  transform: translateY(-2px);
}

.city-search:focus {
  animation: gentle-pulse 2s infinite;
}

/* Modern Search Input - Inspired by Codeur.com */
.city-search-modern {
  width: 100%;
  max-width: 600px;
  padding: 1.1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 1.05rem;
  color: var(--text-dark);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  margin: 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1.2rem center;
  background-size: 1.2rem;
  padding-left: 3rem;
  transform: translateY(0);
  color: #222 !important; /* Texte input foncé */
}

.city-search-modern:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.city-search-modern:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15), 0 0 0 5px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  animation: gentle-glow 2s infinite;
}

.city-search-modern::placeholder {
  color: rgba(0, 0, 0, 0.4);
  font-weight: 400;
}

@keyframes gentle-glow {
  0% {
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15), 0 0 0 5px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15), 0 0 0 5px rgba(255, 255, 255, 0.1);
  }
}

.search-wrapper-modern {
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 2000;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.suggestions-list {
  order: -1;
  position: static;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(30, 136, 229, 0.08);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1;
  animation: fadeInSuggestions 0.3s ease-out forwards;
  color: #222; /* Texte suggestions foncé */
}

.suggestions-list li {
  color: #222;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2001;
}

.suggestions-list li:last-child {
  border-bottom: none;
}

.suggestions-list li:hover {
  background: rgba(30, 136, 229, 0.08);
  color: var(--primary);
}

.suggestions-list li:active {
  background: rgba(30, 136, 229, 0.12);
  transform: translateY(1px);
}

.select-city {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  border: 2px solid rgba(30, 136, 229, 0.15);
  border-radius: 12px;
  background-color: white;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px -4px rgba(30, 136, 229, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  transform: translateY(0);
}

.select-city::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(30, 136, 229, 0.05), rgba(38, 198, 218, 0.05));
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.select-city:hover, .select-city:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 6px 15px -5px rgba(30, 136, 229, 0.2);
  transform: translateY(-2px);
}

.select-city:focus {
  animation: gentle-pulse 2s infinite;
}

@keyframes gentle-pulse {
  0% {
    box-shadow: 0 6px 15px -5px rgba(30, 136, 229, 0.2);
  }
  50% {
    box-shadow: 0 6px 20px -5px rgba(30, 136, 229, 0.3);
  }
  100% {
    box-shadow: 0 6px 15px -5px rgba(30, 136, 229, 0.2);
  }
}

.view-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  animation: fadeInLeft 0.8s ease-out 0.3s forwards;
  opacity: 0;
  position: relative;
  z-index: 1500;
  /* Caché par défaut, sera affiché quand une ville est sélectionnée */
  display: none;
}

/* Classe pour afficher les boutons de vue quand une ville est sélectionnée */
.city-selected .view-filters {
  display: flex;
}

/* Modern View Filters - Inspired by Codeur.com */
.view-filters-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem auto;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
  opacity: 0;
  position: relative;
  z-index: 1500;
  justify-content: center;
  max-width: 800px;
  /* Caché par défaut, sera affiché quand une ville est sélectionnée */
  display: none;
}

/* Classe pour afficher les boutons de vue quand une ville est sélectionnée */
.city-selected .view-filters-modern {
  display: flex;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.view-btn {
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: rgba(240, 249, 255, 0.8);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex: 1;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 8px -2px rgba(30, 136, 229, 0.15);
  position: relative;
  overflow: hidden;
}

/* Modern View Button - Inspired by Codeur.com */
.view-btn-modern {
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex: 0 1 auto;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Styles spécifiques pour chaque type de vue */
.view-btn[data-view="general"] {
  border-bottom: 2px solid transparent;
}

.view-btn[data-view="14days"] {
  border-bottom: 2px solid transparent;
}

.view-btn[data-view="current-month"] {
  border-bottom: 2px solid transparent;
}

.view-btn[data-view="next-month"] {
  border-bottom: 2px solid transparent;
}

.view-btn[data-view="today"] {
  border-bottom: 2px solid transparent;
}

.view-btn[data-view="tomorrow"] {
  border-bottom: 2px solid transparent;
}

.view-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.view-btn:hover {
  background: rgba(240, 249, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px -3px rgba(30, 136, 229, 0.25);
  color: var(--primary-dark);
}

.view-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 3px;
  opacity: 0;
}

.view-btn:hover::after {
  width: 40%;
  opacity: 1;
}

.view-btn.active {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px -3px rgba(30, 136, 229, 0.3);
  animation: pulse 2s infinite;
}

/* Modern View Button Hover & Active States */
.view-btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.view-btn-modern:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.view-btn-modern:hover::before {
  opacity: 1;
}

.view-btn-modern::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 2px;
  opacity: 0;
}

.view-btn-modern:hover::after {
  width: 50%;
  opacity: 1;
}

.view-btn-modern.active {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  animation: gentle-pulse-modern 2s infinite;
}

@keyframes gentle-pulse-modern {
  0% {
    box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.2);
  }
}

/* Styles spécifiques pour chaque type de vue quand ils sont actifs */
.view-btn[data-view="general"].active {
  border-bottom: 2px solid #1e88e5;
}

.view-btn[data-view="14days"].active {
  border-bottom: 2px solid #1e88e5;
}

.view-btn[data-view="current-month"].active {
  border-bottom: 2px solid #1e88e5;
}

.view-btn[data-view="next-month"].active {
  border-bottom: 2px solid #1e88e5;
}

.view-btn-modern[data-view="general"].active {
  background: rgba(255, 255, 255, 0.35);
}

.view-btn-modern[data-view="14days"].active {
  background: rgba(255, 255, 255, 0.35);
}

.view-btn-modern[data-view="current-month"].active {
  background: rgba(255, 255, 255, 0.35);
}

.view-btn-modern[data-view="next-month"].active {
  background: rgba(255, 255, 255, 0.35);
}

.view-btn-modern[data-view="today"].active {
  background: rgba(255, 255, 255, 0.35);
}

.view-btn-modern[data-view="tomorrow"].active {
  background: rgba(255, 255, 255, 0.35);
}

.view-btn[data-view="today"].active {
  border-bottom: 2px solid #1e88e5;
}

.view-btn[data-view="tomorrow"].active {
  border-bottom: 2px solid #1e88e5;
}

@keyframes pulse {
  0% {
    box-shadow: 0 6px 15px -3px rgba(30, 136, 229, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px -3px rgba(30, 136, 229, 0.5);
  }
  100% {
    box-shadow: 0 6px 15px -3px rgba(30, 136, 229, 0.3);
  }
}

.view-btn.active:hover {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  box-shadow: 0 7px 20px -5px rgba(30, 136, 229, 0.4);
}

/* Weather Content */
.weather-content {
  position: relative;
}

.weather-grid, .forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Classes spécifiques pour chaque type de vue */
.view-general .weather-grid,
.view-today .weather-grid,
.view-tomorrow .weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.view-14days .forecast-grid,
.view-current-month .forecast-grid,
.view-next-month .forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Style personnalisé pour le bloc des villes populaires */
.weather-grid-full-width {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Styles spécifiques pour tablettes et desktop */
@media (min-width: 769px) {
  .weather-grid-full-width .popular-cities-section {
    padding: 3rem 3rem 2.5rem;
    max-width: 100%;
    background: #fff;
  }
  
  .weather-grid-full-width .popular-cities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .weather-grid-full-width .popular-city-btn {
    padding: 0.95rem 2.3rem;
    min-width: 140px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .weather-grid-full-width .popular-cities-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .weather-grid-full-width .popular-cities-tip {
    margin-top: 1.2rem;
    font-size: 1.05rem;
  }
}

/* Styles spécifiques pour tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  .weather-grid-full-width .popular-cities-section {
    padding: 2.5rem 2rem 2rem;
  }
  
  .weather-grid-full-width .popular-cities-list {
    gap: 1rem 1.5rem;
  }
  
  .weather-grid-full-width .popular-city-btn {
    padding: 0.9rem 1.8rem;
    min-width: 130px;
  }
  
  .weather-grid-full-width .popular-cities-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }
}

.forecast-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Styles ultra personnalisés pour le wrapper du graphique et son titre */
.meteo_maroc_v2_chart_wrapper_unique_20240615 {
  grid-column: 1/-1;
  margin-top: 2rem;
}

/* Styles ultra personnalisés pour le conteneur du graphique */
.meteo_maroc_v2_chart_container_unique_20240615 {
  grid-column: 1/-1;
  background: white;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-radius: 15px 15px 0 0;
  box-shadow: var(--shadow);
  margin-top: 0;
}

/* Styles ultra personnalisés pour le conteneur du titre */
.meteo_maroc_v2_chart_title_container_unique_20240615 {
  background: white;
  padding: 0.5rem 1.5rem 1rem 1.5rem;
  text-align: center;
  border-radius: 0 0 15px 15px;
  box-shadow: var(--shadow);
  margin-top: -1px;
}

/* Styles ultra personnalisés pour le texte du titre */
.meteo_maroc_v2_chart_title_text_unique_20240615 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 0;
  font-style: italic;
}

/* Maintien de la classe originale pour compatibilité */
.chart-container {
  grid-column: 1/-1;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.weather-card {
  background: var(--card-gradient);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.weather-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--primary);
}

.weather-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.city-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.weather-icon {
  width: 80px;
  height: 80px;
  margin: 0.5rem auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

.temp {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.condition {
  font-size: 1.1rem;
  color: var(--text-light);
  text-transform: capitalize;
  text-align: center;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-value {
  font-weight: 600;
  color: var(--primary);
}

.detail-label {
  color: var(--text-light);
}

.month-title {
  grid-column: 1/-1;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2rem;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

footer {
  text-align: center;
  margin-top: 4rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Footer Styles */
.main-footer {
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-section h3 {
  color: var(--primary-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-description {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-cities,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-cities li,
.footer-links li {
  margin-bottom: 1rem;
}

.footer-cities a,
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 2px 0;
}

.footer-cities a::after,
.footer-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-cities a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.footer-cities a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  font-size: 0.9rem;
  background: white;
}

/* Tomorrow Forecast Styles */
.tomorrow-forecast {
  grid-column: 1/-1 !important;
  padding: 2rem !important;
}

.tomorrow-title {
  text-align: center;
  color: var(--primary-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* Table Styles */
.hourly-table-wrapper {
  margin: 0 -1rem;
  overflow-x: auto;
  padding: 0 1rem;
  display: none; /* Caché par défaut sur mobile */
}

.hourly-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hourly-table th {
  background: var(--primary);
  color: white;
  padding: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hourly-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.hourly-table tr:last-child td {
  border-bottom: none;
}

.hourly-table tr:hover {
  background: #f8f9fa;
}

.weather-icon-small {
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

.weather-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 200px;
}

.weather-desc {
  color: var(--text-light);
}

/* Carousel Styles */
.hourly-carousel-container {
  position: relative;
  margin: 0 -1rem;
  padding: 1rem;
}

.hourly-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}

.hourly-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.hourly-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.hour-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.hourly-card .temp-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}

.hourly-card .weather-icon-small {
  width: 64px;
  height: 64px;
  margin: 0.5rem 0;
}

.hourly-card .humidity-value,
.hourly-card .wind-value {
  font-size: 0.9rem;
  color: var(--text-light);
  width: 100%;
}

.hourly-card .label {
  font-weight: 500;
  color: var(--text);
}

/* Carousel Navigation */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
  z-index: 1;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: white;
}

.carousel-arrow.prev {
  left: 0.5rem;
}

.carousel-arrow.next {
  right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .weather-grid {
    grid-template-columns: 1fr;
  }
  
  .forecast-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .hero-section {
    border-radius: 15px;
    box-shadow: 0 10px 25px -10px rgba(30, 136, 229, 0.2);
  }

  .hero-content {
    padding: 2rem 1.5rem 0.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .controls {
    padding: 1.2rem 1.5rem 1.5rem;
  }

  .view-filters {
    flex-direction: column;
    gap: 0.6rem;
  }

  .view-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .chart-container {
    padding: 1rem;
  }
  
  /* Styles responsifs pour les classes ultra personnalisées */
  .meteo_maroc_v2_chart_container_unique_20240615 {
    padding: 1rem 1rem 0.8rem 1rem;
  }
  
  .meteo_maroc_v2_chart_title_container_unique_20240615 {
    padding: 0.3rem 1rem 0.8rem 1rem;
  }
  
  .meteo_maroc_v2_chart_title_text_unique_20240615 {
    font-size: 1.1rem;
  }

  .select-city {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
    padding-top: calc(var(--header-height) + 3.5rem);
  }
  
  header {
    margin-bottom: 2rem;
  }
  
  .controls {
    padding: 1rem;
  }
  
  .weather-card {
    padding: 1.5rem;
  }
  
  /* Styles ultra personnalisés pour très petits écrans */
  .meteo_maroc_v2_chart_container_unique_20240615 {
    padding: 0.8rem 0.8rem 0.6rem 0.8rem;
  }
  
  .meteo_maroc_v2_chart_title_container_unique_20240615 {
    padding: 0.2rem 0.8rem 0.6rem 0.8rem;
  }
  
  .meteo_maroc_v2_chart_title_text_unique_20240615 {
    font-size: 1rem;
  }

  .city-name {
    font-size: 1.3rem;
  }

  .temp {
    font-size: 2rem;
  }
  
  .forecast-grid {
    gap: 1rem;
  }
  
  .detail-item {
    font-size: 0.9rem;
  }
}

/* Responsive pour les températures */
@media (max-width: 768px) {
  .temp-min, .temp-max {
    font-size: 1rem;
    padding: 0.15rem 0.4rem;
  }
  
  .temp {
    font-size: 1.2rem !important;
  }
  
  .temp::after {
    font-size: 0.55rem;
    right: -1rem;
    top: -0.25rem;
  }
  
  .temp-range-container {
    gap: 0.4rem;
  }
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .main-footer {
    padding: 3rem 0 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .footer-section:first-child {
    grid-column: auto;
  }
}

@media (min-width: 992px) {
  .hourly-table-wrapper {
    display: block;
    margin: 0;
  }
  
  .hourly-carousel-container {
    display: none;
  }
}

@media (max-width: 991px) {
  .tomorrow-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hourly-carousel-container {
    padding: 1rem 2.5rem;
  }
}

/* Today's Forecast Styles */
.today-forecast {
  grid-column: 1/-1 !important;
  padding: 2rem !important;
}

.today-title {
  text-align: center;
  color: var(--primary-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* Table Styles for Today */
.today-table-wrapper {
  margin: 0 -1rem;
  overflow-x: auto;
  padding: 0 1rem;
  display: none; /* Hidden by default on mobile */
}

.today-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.today-table th {
  background: var(--primary);
  color: white;
  padding: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.today-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.today-table tr:last-child td {
  border-bottom: none;
}

.today-table tr:hover {
  background: #f8f9fa;
}

.today-weather-icon-small {
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

.today-weather-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 200px;
}

.today-weather-desc {
  color: var(--text-light);
}

/* Carousel Styles for Today */
.today-carousel-container {
  position: relative;
  margin: 0 -1rem;
  padding: 1rem;
}

.today-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}

.today-carousel::-webkit-scrollbar {
  display: none;
}

.today-hourly-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.today-hour-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.today-hourly-card .today-temp-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}

.today-hourly-card .today-weather-icon-small {
  width: 64px;
  height: 64px;
  margin: 0.5rem 0;
}

.today-hourly-card .today-humidity-value,
.today-hourly-card .today-wind-value {
  font-size: 0.9rem;
  color: var(--text-light);
  width: 100%;
}

.today-hourly-card .today-label {
  font-weight: 500;
  color: var(--text);
}

/* Carousel Navigation for Today */
.today-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
  z-index: 1;
}

.today-carousel-arrow:hover {
  background: var(--primary);
  color: white;
}

.today-carousel-arrow.today-prev {
  left: 0.5rem;
}

.today-carousel-arrow.today-next {
  right: 0.5rem;
}

/* Responsive Design for Today's View */
@media (min-width: 992px) {
  .today-table-wrapper {
    display: block;
    margin: 0;
  }
  
  .today-carousel-container {
    display: none;
  }
}

@media (max-width: 991px) {
  .today-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .today-carousel-container {
    padding: 1rem 2.5rem;
  }
}

/* Styles améliorés pour les cartes météo des prévisions 14 jours et mensuelles */

/* Conteneur principal amélioré pour les cartes */
.forecast-card-enhanced {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Badge pour indiquer les conditions extrêmes */
.weather-alert-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff9800, #f44336);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.weather-card:hover .weather-alert-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Indicateur jour/nuit */
.day-night-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.day-icon, .night-icon {
  width: 16px;
  height: 16px;
}

.day-icon {
  color: #ff9800;
}

.night-icon {
  color: #5c6bc0;
}

/* Infos météo compactes */
.compact-weather-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
}

.compact-weather-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.compact-weather-info-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.compact-weather-info-value {
  font-weight: 600;
  color: var(--primary-dark);
}

/* Barre de probabilité de pluie */
.rain-probability-bar {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
  position: relative;
}

.rain-probability-fill {
  height: 100%;
  background: linear-gradient(to right, #81d4fa, #1e88e5);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Styles pour les cartes de prévision améliorées */
.enhanced-forecast-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.enhanced-detail-chip {
  background: rgba(30, 136, 229, 0.1);
  border-radius: 12px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-dark);
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.enhanced-detail-chip:hover {
  background: rgba(30, 136, 229, 0.2);
  transform: translateY(-2px);
}

.enhanced-detail-icon {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

/* Animation pour les cartes */
@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weather-card.card-enhanced {
  animation: fadeInCard 0.5s ease forwards;
}

/* Styles pour les infos de température min/max améliorées */
.temp-range-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.temp-min, .temp-max {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.temp-min {
  color: #1976d2;
  background: linear-gradient(135deg, rgba(25,118,210,0.1), rgba(25,118,210,0.05));
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(25,118,210,0.2);
}

.temp-max {
  color: #d32f2f;
  background: linear-gradient(135deg, rgba(211,47,47,0.1), rgba(211,47,47,0.05));
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(211,47,47,0.2);
}

.temp-arrow {
  color: #757575;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

/* Amélioration de la température moyenne */
.temp {
  font-size: 1.4rem !important;
  font-weight: 500;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}

.temp::after {
  content: 'moy';
  position: absolute;
  top: -0.3rem;
  right: -1.2rem;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-light);
  background: rgba(30,136,229,0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  opacity: 0.8;
}

/* Hover effects pour les températures */
.weather-card:hover .temp-min {
  background: linear-gradient(135deg, rgba(25,118,210,0.15), rgba(25,118,210,0.08));
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(25,118,210,0.2);
}

.weather-card:hover .temp-max {
  background: linear-gradient(135deg, rgba(211,47,47,0.15), rgba(211,47,47,0.08));
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(211,47,47,0.2);
}

.weather-card:hover .temp::after {
  opacity: 1;
  transform: scale(1.1);
}

/* Styles pour les icônes SVG inline */
.mini-weather-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

/* Styles pour les cartes avec prévisions de nuit */
.night-forecast-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

/* Styles pour les jours de weekend */
.weekend-day {
  position: relative;
}

.weekend-day::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent var(--secondary) transparent transparent;
}