:root {
  --bg: #cfe8ff;
  --text: #000;
  --link-bg: #007BFF;
  --link-hover: #0056b3;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 2em;
}

.dark-mode {
  --bg: #1e1e1e;
  --text: #f2f2f2;
  --link-bg: #555;
  --link-hover: #222;
}

a {
  text-decoration: none;
  color: white;
  background-color: var(--link-bg);
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 20px;
}

a:hover {
  background-color: var(--link-hover);
}

h1, h2 {
  text-align: center;
}

#toggle-mode {
  position: fixed;
  top: 20px;
  right: 20px;
  background: black;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1000;
}

.weather-box {
  background-image: url('../ecran.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 30px;
  max-width: 1000px;
  margin: 50px auto;
  text-align: center;
  color: #111;
}

/* Prévisions aujourd’hui : ligne horizontale de petits blocs */
.forecast {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}

.forecast-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px;
  min-width: 90px;
  max-width: 100px;
  text-align: center;
  color: #000;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.forecast-item:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.95);
}

.forecast-item img {
  width: 40px;
  height: 40px;
}
.forecast-days-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.day-summary {
  background: rgba(255,255,255,0.85);
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.day-summary:hover {
  background: rgba(255,255,255,0.95);
}

.day-summary img {
  width: 40px;
  height: 40px;
}

.day-details {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.day-details.show {
  display: flex;
}

.day-details .forecast-item {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 10px;
  min-width: 90px;
  max-width: 100px;
  text-align: center;
  font-size: 13px;
}
body.index {
  font-family: 'Nunito', sans-serif;
  background: #cfe8ff;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 60px auto;
  padding: 40px 30px;
  gap: 60px;
}

.text-content {
  flex: 1 1 500px;
  max-width: 600px;
}

.text-content .intro {
  font-size: 24px;
  font-weight: bold;
  color: #005fa3;
  margin-bottom: 25px;
}

.text-content p {
  font-size: 20px;
  line-height: 1.8;
  color: #444;
}

.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 28px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #005fa3;
}

.image-content {
  flex: 1 1 500px;
  max-width: 700px;
  text-align: center;
}

.image-content img {
  width: 100%;
  max-height: 500px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.spacer {
  height: 80px;
}
.label-ville {
  font-size: 13px;
  margin-bottom: 10px;
  height: 40px;
  line-height: 1.2;
  transform: rotate(-30deg);
  transform-origin: bottom right;
  background-color: transparent !important;
  color: rgb(0, 0, 0); 
}
