/*==================== RESET / BASE ====================*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*==================== BODY ====================*/
body {
  margin: 0;
  background: #eef2f5;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #000;
  padding-bottom: 120px; /* évite que le footer masque le contenu */
}



/*==================== BANNIÈRE ====================*/
.banniere-meteo {
  background: #153E9D;
  color: #ffffff;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.titre_ban {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.8rem;
  font-weight: bold;
}

/*==================== LIENS ====================*/
a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #246496;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #007BFF;
  outline-offset: 2px;
}

/*==================== NAVIGATION ====================*/
.barre-nav {
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  border: 1px solid #ccc;
  padding: 0.25em 0.5em;
}

/*==================== BOUTONS ====================*/
button,
.btn {
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  background-color: #007BFF;
  color: #ffffff;
  transition: background-color 0.3s;
}

button:hover,
.btn:hover {
  background-color: #0056b3;
}

button:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/*==================== CONTENEURS ====================*/
/* Ancien container conservé pour compatibilité */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Nouveau container recommandé */
.container-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*==================== POPUP ====================*/
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: #ffffff;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/*==================== TITRES ====================*/
.title {
  color: #F5780A;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 10px 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1.2rem;
  color: #336633;
  padding: 10px 0;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
}

h1 {
  color: #ff7f50;
  font-size: 1.5rem;
  font-weight: bold;
}

h2 {
  color: #4750a8;
  font-size: 1.3rem;
  font-weight: bold;
}

h3 {
  color: #f5a623;
  font-size: 1.1rem;
  font-weight: bold;
}

h4 {
  color: #d0021b;
  font-size: 1.1rem;
  font-weight: bold;
}

/*==================== DONNÉES ====================*/

.donnee {
  color: #253BAD;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.releve {
  color: #F06248;
  font-size: 1.6rem;
  padding: 5px 0 10px;
  letter-spacing: 1px;
}

/*==================== ICÔNES ====================*/
.image-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  vertical-align: middle;
}

.image-container img {
  height: 20px;
  width: auto;
}

.weather-icon {
  font-size: 3rem;
  line-height: 1;
  vertical-align: middle;
}

/*==================== FLÈCHES ====================*/
.down {
  color: #1E90FF;
  font-size: 1.3rem;
}

.up {
  color: #FF8C00;
  font-size: 1.3rem;
}

/*==================== HR ====================*/
hr {
  border: none;
  height: 1px;
  background-color: #ccc;
}

/*==================== CADRES ====================*/
.td-box {
  border: 1px solid #ccc;
  padding: 0.25em 0.5em;
  vertical-align: top;
}

/*==================== FOOTER ====================*/
.footer {
  position: relative;
  background: rgba(245, 245, 245, 0.95);
  text-align: center;
  padding: 15px 10px;
  color: #333;
  border-top: 1px solid #ccc;
  animation: fadeInFooter 0.6s ease-out;
}

.footer a {
  color: #0078d7;
  font-weight: 600;
}

.footer-regle {
  font-size: 14px;
  margin: 5px 0;
  line-height: 1.4em;
}

.footer-min_texte {
  font-size: 11px;
  margin: 3px 0;
}

.footer-logo {
  margin-top: 8px;
}

/*==================== ANIMATIONS ====================*/
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blink-soft {
  animation: blinkSoft 2s ease-in-out infinite;
}

@keyframes blinkSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/*==================== FRAME ====================*/
.frame-content {
  width: 920px;
  height: 1450px;
  margin: 10px auto;
}

.frame-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*==================== FORM CONTACT ====================*/
.success_msg {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 10px 0;
  font-weight: 500;
}

.error_msg {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 10px 0;
  font-weight: 500;
}

/*==================== RESPONSIVE ====================*/
@media (max-width: 768px) {
  body { font-size: 0.8rem; }

  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }

  .btn {
    padding: 6px 12px;
    font-size: 11px;
  }

 .weather-icon {
    font-size: 30px;
  }

  .footer {
    font-size: 13px;
    padding: 10px;
  }

  .footer-regle {
    font-size: 12px;
  }

  .footer-min_texte {
    font-size: 10px;
  }

  .footer-logo img {
    width: 70px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 8px;
  }

  .footer-regle {
    font-size: 11px;
  }

  .footer-min_texte {
    font-size: 9px;
  }

  .footer a {
    display: block;
    margin-bottom: 5px;
  }
}
