/* Dans Informations adhérents */
.list-title-InfoMemb {
  list-style-type: none;   /* Supprime la puce */
  margin-bottom: 0;        /* Pas d’espace sous le titre */
  margin-top: 0.95em;       /* Un léger espace au-dessus, si souhaité */
  font-weight: bold;       /* Titre en gras */
}

/* Dans Météo */
.meteo-station {
    margin-top: 00px;
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.meteo-header h3 {
    margin-top: 0;
    color: #2c3e50;
    font-weight: 600;
}

.meteo-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

/* Conteneur de l’icône + température + Zd */
.meteo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Réduction et adoucissement visuel pour les infos lever / coucher */
.sun-info,
.sun-line {
    font-size: 0.9rem; /* cohérent avec l’ancienne version */
    opacity: 0.75;     /* légèrement plus doux */
    color: #2c3e50;    /* même teinte que le reste du texte */
}

/* Ligne principale globale (desktop par défaut) */
.meteo-temp {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    text-align: center;
    color: #2c3e50;
}

/* Ligne 1 (tout sur une ligne par défaut) */
.meteo-temp .sun-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.4rem;
}

.meteo-icon-img {
    width: 1.2rem;          /* Taille cohérente avec le texte environnant */
    height: auto;           /* Conserve les proportions */
    vertical-align: middle; /* Aligne bien avec le texte */
    margin: 0 0.2rem;       /* Espacement gauche/droite */
    opacity: 0.9;           /* Légèrement adouci */
}



/* 🌤 Température intégrée dans la ligne (desktop) */
.temp-desktop {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 2rem;  /* légèrement plus grande pour contraste */
    font-weight: 700;
    opacity: 1;         /* pleine intensité */
    color: #000000;     /* plus dense que les infos soleil */
}

/* 🌤 Température sur une ligne séparée (mobile) */
.temp-mobile {
    display: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c2833;
}

/* ⚠️ Ligne Zd */
.zd-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Couleurs Zd */
.zd-indicator.warning { color: #FF6600; }
.zd-indicator.danger  { color: #FF0000; }

/* --- Responsive smartphone --- */
@media (max-width: 768px) {
    .meteo-temp {
        flex-direction: column;
        gap: 0.4rem;
    }

    .sun-line {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .meteo-icon-img {
        width: 1rem;
        margin: 0 0.15rem;
    }

    .temp-desktop {
        display: none;
        /* cachée sur mobile */
    }

    .temp-mobile {
        display: block;
        /* ligne séparée */
        margin-top: 0.2rem;
    }

    .zd-line {
        font-size: 0.85rem;
    }

    .meteo-table th {
        padding-left: 10px;
        text-align: left;
    }

    .meteo-table td {
        padding-right: 10px;
        text-align: right;
    }
}

/* Responsive desktop */
@media (min-width: 769px) {
    .meteo-table th {
        border: 1px solid #ddd;
        padding-left: 17%;
        text-align: left;
    }

    .meteo-table td {
        border: 1px solid #ddd;
        padding-right: 10%;
        text-align: right;
    }
}

/* ***Conteneur du tableau des détails***  */

.meteo-details {
    margin-top: 15px;
}

.meteo-table {
    width: 100%;
    border-collapse: collapse;
}

.meteo-table th {
    background-color: #eef2f7;
}

.meteo-header h3 {
    margin-bottom: 4px;
}

.meteo-last-update {
    margin-top: 0;
}

.meteo-metar {
    display: block; /* prend toute la largeur du conteneur parent */
    width: 100%; 
    margin-top: 5px;
    padding: 6px 12px; /* un peu plus de padding pour le bandeau */
    background-color: #f0f0f0; /* gris clair type bandeau */
    border-radius: 4px;
    font-family: monospace;     /* style METAR classique */
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    transition: background-color 2.0s ease; /* effet hover fluide */
}

.meteo-metar:hover {
    background-color: #eed204; /* léger effet au survol */
    font-weight: 900;
    cursor: default;
}

.meteo-source {
    margin-top: 10px;
    font-size: 0.9em;
    color: #444;
    text-align: left;
    font-style: italic;
}

.meteo-source a {
    color: #2e2f30;
    text-decoration: none;
}

.meteo-source a:hover {
    text-decoration: underline;
    color: #001eff;
}

/* === Pastille de statut relevé météo  dans 2. Dernier relevé      --> === */
/* === Pastille de statut      VPD      dans 6. Tableau des données --> === */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* Couleurs selon statut */
.status-green {
    background-color: #4CAF50; /* vert */
}
.status-orange {
    background-color: #FFA500; /* orange */
}
.status-red {
    background-color: #E53935; /* rouge */
}

/* effet au survol */
.status-dot:hover {
    transform: scale(1.3);
    transition: transform 0.2s ease-in-out;
    cursor: help;
}

/* Icones inline (lever et coucher du soleil) dans 4. Icône + température + Zd optionnelle */
.icon-inline {
    height: 1.25em;           /* Taille proportionnelle à la police */
    width: auto;
    vertical-align: middle;
    margin: 0 0px;
    /*filter: drop-shadow(0 0 1px rgba(0,0,0,0.2)); /* Légère profondeur */
}

/* === Météo – Améliorations visuelles du tableau === */
/* Chapitres de section  dans le tableau météo (ex: ▶︎ Vent, ▶︎ Pression) */
.meteo-table tr.meteo-section th {
    background-color: #dbe4f0;
    color: #1a1a1a;
    font-weight: 700;
    text-align: left;
    padding: 6px 12px;
    border: none;
    border-top: 3px solid #b7c8da;
    border-radius: 6px;
    font-size: 1rem;
    /* plus besoin de width:100%, colspan s’en charge */
}

/* Sous-lignes compactes (détails du vent, etc.) */
.meteo-table tr.meteo-sub th,
.meteo-table tr.meteo-sub td {
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 0.9rem;
    line-height: 1.1;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .status-dot {
  cursor: help;
}

/* Contenu caché par défaut */
.tooltip .tooltip-content {
  visibility: hidden;
  opacity: 0;
  width: 280px;
  background-color: #f9f9f9;
  color: #333;
  text-align: left;
  border-radius: 8px;
  padding: 10px;
  position: absolute;
  z-index: 10;
  bottom: 125%; /* positionne au-dessus de la pastille */
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 0.85rem;
  transition: opacity 0.3s;
}

/* Petite flèche sous l’info-bulle */
.tooltip .tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #f9f9f9 transparent transparent transparent;
}

/* Apparition au survol */
.tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* Mini tableau à l'intérieur de l’info-bulle */
.tooltip-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.tooltip-table th,
.tooltip-table td {
  border-bottom: 1px solid #ddd;
  padding: 2px 4px;
  font-size: 0.8rem;
  text-align: left;
}

.tooltip-table th {
  background: #e0e8f0;
  font-weight: 600;
}

.tooltip-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #555;
}

/* CSS légèrement modifié depuis style.css pour être adtapté à la page MTO */
.news-item-img-mto {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* gère automatiquement la hauteur */
    overflow: hidden;
}

.news-item-img-mto img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}