
/* --- Responsive Desktop (Fixe à gauche) --- */
@media screen and (min-width: 1024px) {

    header#volkanHeader {     position: relative;          backdrop-filter: brightness(0.5) !important;        margin-bottom: 1rem;   }

    #menu-burger { display: none !important; }
    .drawer {
        transform: translateX(0);
        border-radius: 0; /* On enlève les arrondis sur PC */
    }
    .drawer-overlay { display: none !important; }
     main, header, #resume-volcan { margin-left: 280px; } /* Pousse le contenu central */
    .drawer-header .icon-btn { display: none; } /* Cache la croix sur PC */

    #resume-volcan {    padding-inline: 10%;    }

    body > .tremor-info-box {
        box-sizing: border-box;
        width: min(800px, calc(100% - 2rem));
        margin-inline: auto !important;
    }

    .page-brand-footer {
        position: static;
        inset: auto;
        z-index: auto;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: .5rem 0 1.5rem;
        padding: .5rem 1rem 1.5rem;
        background: transparent;
        border-top: 0;
    }

    .page-brand-footer img {
        width: min(160px, 28vw);
    }

}

	#tremor {         margin: 0 auto;    }
 /* ==========================================================================
   MODE PAYSAGE (LANDSCAPE) : HEADER VERTICAL (100px)
   ========================================================================== */
@media screen and (orientation: landscape) and (max-height: 480px) {

    #tremor {        margin: 1em 3em;    }

}

   header#volkanHeader  {    background:none;    backdrop-filter: blur(6px);    }

 .btn-drawer{  width: 100%; margin-top: 10px; padding: 12px; font-weight: bold;  }

 .tremor-widget {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
            background: #1e1e24;
            color: #f5f5f5;
            padding: 20px;
            border-radius: 12px;
            margin: auto;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

@media screen and (max-width: 767px) {
    .tremor-widget { padding: 10px; }
}

/* Sur les très grands écrans, chaque bloc principal reste lisible et centré. */
@media screen and (min-width: 1201px) {
    main > .bilan-container,
    main > section {
        width: min(100%, 900px);
        margin-inline: auto;
    }

    main > section > .tremor-widget {
        box-sizing: border-box;
        width: 100%;
        max-width: 900px;
    }
}
 .tremor-widget.locked {  border-style: dotted; border-color:grey;
    filter: sepia(0.5);  }

    #togglePlotInteractifBtn {  text-decoration: none;  }

        .section-header-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: .5rem;
            flex-wrap: wrap;
            gap: 15px;
            border-bottom: 2px groove var(--jauneOptions);
            padding-bottom: 15px;
        }
        .section-header-title h2 { margin: 0; font-size: 1.2rem; }

        .controls-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .tremor-status {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
            align-items: center;
        }
        .tremor-badge, .badge {
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.85em;
            display: inline-block;
        }

        @media (min-width: 768px) {
            .tremor-badge, .badge {                font-size: 1.1rem;       }
        }

         #rmsBadge {
            background: #2c3e50;
            color: #ecf0f1;
            border: 1px solid #34495e;
            padding:6px 12px;
            border-radius:20px;
            font-size:0.85em;
        }

        #stationSelect  {   max-width:12rem;    }

        .chart-legend-container
        {
            display:flex; justify-content:center; column-gap:15px; margin-block:12px; font-size:0.75em; color:#aaa; flex-wrap:wrap; text-align:center;
        }
        .chart-legend-container .chartLegende {  display:flex; align-items:center; gap:5px;  }

        .trend-up { background: #e74c3c; color: white; }
        .trend-down { background: green; color: white; }
        .trend-stable { background: #282828; color: white; }
        .trend-waking { background: #f1c40f; color: black; }
        .trend-warning { background: #e67e22; color: white; }

        /* --- BOÎTES D'INFORMATION (Zéro JS) --- */
.tremor-info-box {
    margin: 15px 0 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.85em;
    color: #bbb;
}

/* Le bouton cliquable (Le fameux 'i') */
.tremor-info-box summary {
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    color: #3498db;
    list-style: none; /* Cache la flèche native */
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

/* Retire la flèche sur les vieux navigateurs Safari/Chrome */
.tremor-info-box summary::-webkit-details-marker {
    display: none;
}

/* Effet au survol */
.tremor-info-box summary:hover {
    color: #5dade2;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Le texte qui se déroule */
.tremor-info-box .info-content {
    padding: 0 12px 12px 12px;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5px;
    padding-top: 10px;
}


        select {
            padding: 8px;
            border-radius: 8px;
            background: #0f1621;
            color: white;
            border: 1px solid #555;
            outline: none;
            cursor: pointer;
        }
        .canvas-container {
            position: relative;
            height: 300px;
            width: 100%;
        }


        #divTremorGraph {    height:200px; position:relative;    }
        #divSeismeGraph {   height: 150px; width: 100%;     margin: 1rem 0 3rem 0;}

        @media screen and (min-width: 560px) {
            #divSeismeGraph {  height: 180px;  }
            #divTremorGraph {  height: 220px;  }
        }
        @media screen and (min-width: 768px) {
            #divSeismeGraph {  height: 230px;  }
            #divTremorGraph {  height: 250px;  }
        }

        /* --- LÉGENDE SISMICITÉ --- */

        #btn-force-update { cursor: pointer; font-size: 1.2em;  margin-left: 8px;   }

/* --- TABLEAU DE BORD SISMIQUE (OVPF) --- */

/* Conteneur principal (côte à côte) */
.seismic-dashboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly; /* Espace les colonnes équitablement */
    align-items: flex-start;
    gap: 15px;
    margin: 15px 0 10px 0;
}

#advancedSeismicFilters
{
    display: flex; flex-wrap: wrap; margin-block: 10px;
}

/* Une colonne (Séisme ou Éboulement) */
.seismic-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 5rem; /* Chaque boîte reste lisible avant de passer à la ligne. */
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: initial;
}

.seismic-box#eboulementsBox {   border-left: solid medium;    }

/* Le gros chiffre */
.seismic-number {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #f5f5f5;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Le petit texte sous le chiffre */
.seismic-label {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.2;
}
 @media screen and (max-width: 480px) {
.seismic-dashboard {
    gap: 10px;
}
.seismic-box {
    /* flex-basis: calc(50% - 5px); */
}
/* Les métriques HVO ont des libellés longs : une ligne par mesure en portrait. */
#eruptiveActivityMetrics .seismic-box {
    flex-basis: 100%;
}
.seismic-label {
    font-size: 0.6rem;
}
 }

/* Le texte détaillé en bas (Secousse la plus importante) */
.seismic-details {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    padding-top: 5px;
    border-top: 1px dashed #333; /* Petite ligne de séparation subtile */
    font-style: italic;
}

#seismicMapBlock { margin-top:14px;
    margin-inline: 1rem;  }

.seismic-dolomieu-map {
    height: 320px;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: rgba(0,0,0,.2);
    box-shadow: var(--shadow);
}

@media (max-width: 600px) {
    .seismic-dolomieu-map {
        height: 260px;
    }
}

.chart-legend-container span {
    display: flex;
    align-items: center;
}

.chartLegende-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Couleurs calquées sur ton graphique */
.dot-bleu   { background: rgba(52, 152, 219, 0.8); }
.dot-vert   { background: rgba(46, 204, 113, 0.8); }
.dot-jaune  { background: rgba(241, 196, 15, 0.9); }
.dot-orange { background: rgba(230, 126, 34, 0.9); }
.dot-rouge  { background: rgba(192, 57, 43, 0.9); }

        .mapStations {  padding: 5px; border-radius: 6px; transition: 0.2s;text-decoration:none;background-color:#ffffff0a;    }

        #resifPlotContainer
        {        margin-top: 20px; text-align: center; width: 100%;display:none;
                border-radius: 10px;
                overflow: clip;
                min-height: 100px;
        }

         @media screen and (min-width: 560px) { #resifPlotContainer{   min-height: 160px; }   }
        @media screen and (min-width: 1024px) {    #resifPlotContainer{   min-height: 230px;}  }


        #resifPlotImage   {   max-width: 101%; /* pour coller au graphique au dessus*/height: auto; /* border-radius: 8px; */ display: block; margin: 0 auto; background: rgba(0,0,0,0.1);    filter: invert(0.9);
    clip-path: inset(0 0 11% 5.5%);
    }

        #dateDisplay    {       font-size: smaller;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
    font-family: monospace;
        }

/* Effet de transparence sur le graphique pendant le chargement */
.tremor-loading {
    opacity: 0.5;
   /*  filter: grayscale(0.5); */ /* Optionnel : met en gris pour bien montrer que c'est "vieux" */

    filter: blur(2px);
    /* filter: hue-rotate(180deg); */
    transition: filter 3s ease;
}

/* Animation douce pour le badge de statut */
.loading-pulse {
    animation: pulse 1s infinite;
    opacity: 0.9;
}
.loading-pulse .iconLoading {
animation: pulse 2s infinite, volcanSpin 1.1s linear infinite;
  opacity: 0.7;
  display: inline-block;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/*
.volcan-webcams {
  margin-top: 18px;
}

.volcan-webcams__chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.volcan-webcams__chips .chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.volcan-webcams__nav {
  justify-content: space-between;
}

.volcan-webcams__nav .btn {
  min-width: 110px;
}

.volcan-webcams .card {
  margin-top: 8px;
}
*/

        /* --- LAYOUT GNSS --- */

        .imageGNSS {
        width: 100%;
          object-position: bottom;
          border-radius: 12px;
          filter: invert(0.89) hue-rotate(270deg);
          transition: all 0.3s ease; /* Animation fluide lors du clic */
        }

        /* 1. Vue Complète par défaut */
.gnss-view-complet .imageGNSS {
    object-fit: contain;
    aspect-ratio: auto;
}

/* 2. Vue Verticale (Composante UP = En bas de l'image) */
.gnss-view-vertical .imageGNSS {
    object-fit: cover;
    object-position: bottom;
    aspect-ratio: 2.5 / 1;
}

/* 3. Vue Nord (Au milieu) */
.gnss-view-nord .imageGNSS {
    object-fit: cover;
    object-position: center;
    aspect-ratio: 2.5 / 1;
}

/* 4. Vue Est (En haut) */
.gnss-view-est .imageGNSS {
    object-fit: cover;
    object-position: top;
    aspect-ratio: 2.5 / 1;
}

/* 5. Vue Horizontale (Est + Nord combinés) */
.gnss-view-horizontal .imageGNSS {
    object-fit: cover;
    object-position: top;
    aspect-ratio: 1.25 / 1; /* Ratio plus carré pour afficher 2 graphiques sur 3 */
}


.gnss-header-layout {
    border: none !important;
    padding-bottom: 0 !important;
}

/* .gnss-title { */
    /* margin-top: 0; */
    /* font-size: larger; */
    /* font-weight: bold; */
    /* padding-right: 2rem; */
/* } */
    #gnssPlotContainer  {  margin-top: 15px; text-align: center; width: 100%;  }
    .gnss-official-actions  { display:flex; justify-content:center; margin-bottom: 12px; }
    #gnssCropControls  {    }
    #gnss-groupImage  {  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 15px;  }
    #gnssCropControls  {  display:flex; gap:5px; flex-wrap: wrap;  }
    #gnssGroupSelect  {padding: 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color: #fff; flex-grow: 1;    }
    #gnssTimeSelect  {  margin-right: 10px;  }
    #gnss-header  {  display:flex; flex-wrap:wrap; gap: 10px; align-items: center; margin-top: 15px; width: 100%;  }


/* --- ACCORDÉON GNSS --- */
.gnss-accordion summary {
    list-style: none; /* Cache la flèche standard */
    cursor: pointer;
    display: flex;
    align-items: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    justify-content: space-between;
}

/* Cache la flèche sur Safari */
.gnss-accordion summary::-webkit-details-marker {
    display: none;
}

/* Design de la flèche personnalisée */
.gnss-arrow-icon::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 10px;
    color: #888;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Rotation de la flèche quand c'est ouvert */
.gnss-accordion[open] .gnss-arrow-icon::after {
    transform: rotate(180deg);
}

/* Petit espacement pour le contenu déroulé */
.gnss-collapsible-wrapper {
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 10px;
}
/* ----------------------- */
.volcan-webcams {
  margin-top: 18px;
  transition: opacity 0.25s ease;
}

.volcan-webcams__chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.volcan-webcams__chips .chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.media-container, .media-container  .media{
     min-height: 160px;
}
.volcan-webcams__viewer{
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@media screen and (min-width: 990px) {
  .media-container  {
    min-height: 370px;
  }
}
@media screen and (min-width: 560px) {
   .media-container  {
    min-height: 300px;
  }
}

/* .volcan-webcams__viewer.is-loading { */
  /* opacity: 0.72; */
/* } */

/* Affiche le loader si le parent a la classe is-loading */
.volcan-webcams__viewer.is-loading .volcan-webcams__loading {
    display: flex;
}

.volcan-webcams__loading {
  width: auto;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #aaa;
  font-size: 0.95rem;
  text-align: center;
    margin: 2rem;
}

.volcan-webcams__loadingIcon {
  display: inline-block;
  animation: volcanSpin 1.1s linear infinite;
}

@keyframes volcanSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.volcan-webcams__nav {
  justify-content: space-between;
}

@media screen and (min-width: 990px) {
    .volcan-webcams__nav .btn,  .volcan-webcams__nav .btn.btnIcon {
     width: 110px;
        padding-block: 1em;
    }
}
.volcan-webcams__nav .btn.btnIcon {
    min-width: fit-content;
}

.volcan-webcams__nav .btn:disabled {
    opacity: 0.35 !important;
    pointer-events: none;
}

.volcan-webcams .card {
  margin-top: 8px;
  width: 100%;
  opacity: 1;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.volcan-webcams__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 10px;
}

.volcan-webcams__grid[hidden] {
  display: none;
}

.volcan-webcams__grid-item {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  color: inherit;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}

.volcan-webcams__grid-media {
  display: block;
  min-height: 118px;
  background: rgba(0,0,0,.25);
}

.volcan-webcams__grid-media .media {
  min-height: 118px;
}

.volcan-webcams__grid-media img,
.volcan-webcams__grid-media video,
.volcan-webcams__grid-media iframe {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
}

.volcan-webcams__grid-title {
  display: block;
  padding: .45rem .55rem .55rem;
  font-size: .78rem;
  line-height: 1.25;
  color: rgba(255,255,255,.88);
}

.volcan-webcams.is-webcam-grid .volcan-webcams__chips {
  display: none;
}

@media screen and (min-width: 700px) {
  .volcan-webcams__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1120px) {
  .volcan-webcams__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* Centre le sablier lors du rafraîchissement d'une webcam */
/* .webcam-refresh-loader { */
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* width: 100%; */
    /* height: 100%; */
    /* font-size: 3rem; /* Taille du sablier */
/* } */

/* 1. Le parent (qui englobe le loader ET l'image) DOIT servir de repère */
#webcamMediaContainer {
    position: relative;
}

/* 2. Le loader qui passe par-dessus */
.webcam-refresh-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Force le loader à passer au premier plan (au-dessus de .media) */

    /* Optionnel mais recommandé : centrer le contenu et assombrir l'image derrière */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
     font-size: 2rem; /* Taille du sablier */
    /* background: rgba(0, 0, 0, 0.4);*/ /* Fond noir transparent à XX% */
    opacity: 0;
  visibility: hidden;
    transition: opacity 0.3s ease-in;
    backdrop-filter: blur(2px);
}
.webcam-refresh-loader.active {
    opacity: 1;
     visibility: visible;
}

/* --- ANIMATIONS DE GLISSEMENT --- */
.slide-in-right { animation: slideInR 0.4s ease-out forwards; }
.slide-in-left  { animation: slideInL 0.4s ease-out forwards; }

@keyframes slideInR {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideInL {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* 3. Transition fluide pour le conteneur */
.volcan-webcams__viewer {
  overflow: hidden; /* Pour éviter que l'image ne dépasse pendant le swipe */
  transition: height 0.3s ease;
      width: 105%;
    display: grid; /* pour ios, test */
    justify-self: center;
    /* place-self: anchor-center; */
}

#webcamBtnPrev, #webcamBtnNext {
    min-width: 4rem;
    min-height: 2rem;
}

@media screen and (min-width: 768px) {

    #webcamBtnPrev, #webcamBtnNext {
    min-width: 8rem;
}

}

/* ---------------------------------------------- */

/* Couleurs de dangerosité du risque */
/* .risk-green { background-color: #2ecc71; color: white; } */
.risk-yellow { background-color: #f1c40f; color: black; }
.risk-orange { background-color: #e67e22; color: white; }
.risk-red { background-color: #e74c3c; color: white; }


/* --- COMPOSANTS OVPF --- */
.ovpf-header-box {
 /* background: #1a1a20c2; */
    /* border: 1px solid #333; */
    border-radius: 2px;
    padding-inline: 15px;}
.ovpf-alert-row { display: flex; justify-content: space-between; align-items: center; /* margin-bottom: 12px;  */}
/* Couleurs officielles ORSEC pour les badges d'alerte */
.ovpf-badge-alerte { padding: 6px 12px; border-radius: 6px; font-weight: bold; text-transform: uppercase; font-size: 0.9em; text-align: center; }
.ovpf-badge-alerte[data-ui-action] { cursor: pointer; }

.alerte-rouge  { background: #c0392b; color: white; } /* 🔴 Alerte 2-2 */
.alerte-orange { background: #e67e22; color: white; } /* 🟠 Alerte 2-1 */
.alerte-jaune  { background: #f1c40f; color: black; } /* 🟡 Alerte 1 */
.alerte-vert   { background: #187a42; color: white; } /* 🟢 Vigilance */
.alerte-blanc  { background: #f5f5f5; color: black; } /* ⚪ Sauvegarde */
.alerte-gris   { background: #555555; color: white; } /* Par défaut / Inconnu */

/* Lien Icône Communiqués */
.ovpf-icon-link { font-size: 1.4em; text-decoration: none; filter: grayscale(1); transition: 0.2s; }
.ovpf-icon-link:hover { filter: grayscale(0); transform: scale(1.1); }

/* Contenu toujours visible */
.ovpf-infos-content {
  background-color: #cfd8e1;
    border-left: 3px solid #3498db;
    padding-inline: 1rem;
    padding-block: .3rem;
    margin-top: 1rem;
    margin-bottom: -.5rem;
    font-size: 0.75em;
    font-weight: 400;
    /* line-height: 1.1; */
    color: black;
    font-family: system-ui;
    }

#ovpf-infos-text  > p { cursor: ns-resize;    }

/* Guide des alertes */
.ovpf-details-alerte { margin-top: 15px; /* background: rgba(255,255,255,0.03); */ border-radius: 8px; padding: 8px; font-size: 0.85em;
    border: solid #ffffff12 thin; }
.ovpf-details-alerte summary { cursor: pointer; color: #888; font-weight: bold; }
.ovpf-alert-guide { margin-top: 10px; color: #bbb;    font-size: small;
    padding-inline: 1rem; }
.ovpf-alert-guide b { color: #ddd; }
.ovpf-alert-guide h2 {margin-top: 0; color: white; text-align: center; margin-bottom: 15px;}

/* Rapports dans les widgets (Sismicité & GNSS) */
.ovpf-mini-report { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 10px; margin-bottom: 15px; font-size: 0.85em; color: #aaa; border-left: 2px solid #555;
    line-height: 1.5; }
.ovpf-mini-report b { color: #eee; }.ovpf-mini-report b { color: #eee; }

.infoSourceBulletin {
 font-size: .6rem;
 color:#333;
 text-align: end;
    /* margin-top: .5rem; */
    margin-bottom: 0    ;
}

/* --- TABS GNSS --- */
.gnss-panel-box { background: #1a1a20; border: 1px solid #333; border-radius: 12px; padding: 0; margin-bottom: 20px; overflow: hidden; }
.tabs-row { display: flex; border-bottom: 1px solid #333; background: #111; }
.tab-btn { flex: 1; padding: 12px 15px; background: none; border: none; border-bottom: 2px solid transparent; color: #888; cursor: pointer; font-weight: bold; font-size: 0.9em; outline: none; transition: 0.2s; }
.tab-btn:hover { background: rgba(255,255,255,0.05); color: #ddd; }
.tab-btn.active { color: white; border-bottom: 2px solid var(--rougeOptions); background: #1a1a20; }

/* Masquer/Afficher les onglets */
.tab-content { display: none;     padding-top: 1rem; }
.tab-content.active { display: block; }

/* --- IMAGE OVPF ET EFFET --- */
.ovpf-image-container { position: relative; width: 100%; overflow: hidden; border-radius: 8px; /* border: 1px solid #333;  */
    background: #191919;}
.ovpf-image-baseline { width: 100%; display: block; height: auto;     filter: invert(0.9) hue-rotate(90deg);    clip-path: inset(0 0 7% 1%);}
/* Le voile sombre sur les 3/4 gauche de l'image */
.ovpf-image-container::after {    content: "";
    position: absolute;
    top: 7.6%;
    left: 8%;
    width: 83%;
    height: 81%;
    /* height: 74.5%; */
    background: rgba(25, 25, 25, 0.9);
    pointer-events: none; }
.ovpf-image-legend { margin-top: -3%;
    padding-inline: 2rem;font-size: 0.6em; color: #bbb; line-height: 1.3; font-style: italic;
    text-align: justify;
    position:relative; z-index:2;border-radius: 8px;  background: #191919;
    padding-bottom: 1rem;
    }

#alerteModal
{
       background: #325860;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 10px;
    margin-block: 1rem;
    max-width: 95vw;
    max-height: 90vh;
    height: revert;
    width: 500px;
    box-shadow: 0 0 20px 10px black;
}


/* --- DOUBLE SLIDER HZ (Mode Avancé) --- */
.advanced-filter-container {
    /* display: none; */
    display: flex;
    align-items: center;
    column-gap: 2rem;
    row-gap: 1rem;
    background: rgb(36 41 0 / 30%);
    padding: 5px 15px;
    border-radius: 8px;
    overflow: auto;
    /* border: 1px solid rgba(255,255,255,0.1); */
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.filter-group label {
    font-size: 0.75em;
    color: #bbb;
    white-space: nowrap;
}

.filter-group input[type="range"] {
    width: 75px;
    appearance: none;
    background: #555;
    height: 7px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    /* background: var(--bleuOptions); */
    background: var(--jauneOptions);
    transition: transform 0.1s;
}

.filter-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.5);
}

#pwa-advanced-wrapper {
    max-width: 700px;
display: none; align-items: center; gap: 10px; margin: 0 auto; padding: 7px 14px; background: rgba(255,255,255,0.01); border-radius: 20px;
}

/* Container du Switch */
.pwa-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  padding-left: 5px;
        vertical-align: bottom;
}

/* Masquer le checkbox natif */
.pwa-switch input {
  opacity: 0; width: 0; height: 0;
}

/* Le rail du slider */
.pwa-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #444;
  transition: .3s;
  border-radius: 20px;
}

.pwa-slider:before {
  position: absolute;
  content: "";
  height: 14px; width: 14px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

/* Couleurs d'activation */
input:checked + .pwa-slider { background-color: #3498db; }
input:checked + .pwa-slider:before { transform: translateX(14px); }

.mirova-img {
    width: 100%; border-radius: 8px; filter: invert(0.95) hue-rotate(180deg);
    object-fit: cover;
    object-position: top;
    aspect-ratio: 2.3 / 1;
}

/* --- SEGMENTED CONTROLS (Onglets liés type iOS) --- */
.segmented-control {
    display: flex;
    background: #111;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #333;
        overflow: auto;
}

.seg-btn {
    flex: 1;
    background: transparent;
    color: #888;
    border: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.seg-btn:hover {
    color: #ccc;
}

/* L'onglet actif */
.seg-btn.active {
    background: var(--bleuOptions); /* Ton bleu existant */
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
#tremor-zone-controls > .seg-btn.active {    background: var(--rougeOptions); }
.seg-btn.active[data-group="api"], .sat-controls > .segmented-control >.seg-btn.active {    background: var(--jauneOptions); color: #1f2937; }
.seg-btn.active[data-group="shape"], .mounts-controls > .segmented-control > .seg-btn.active {    background: var(--rougeOptions); }

.mounts-controls > .segmented-control > .seg-btn:first-child
{
        flex: 0;
}

/* Inputs sombres */
.dark-input {
    width: 70px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #222;
    color: white;
    font-size: 0.85rem;
    text-align: center;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    filter: grayscale(1);
    transition: 0.2s;
}
.icon-btn:hover { filter: grayscale(0); transform: scale(1.1); }

/* --- BILAN DE SANTÉ (Version Responsive) --- */
.bilan-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
@media screen and (min-width: 768px) {      .bilan-container {    margin-inline: 10%;           }       }

.bilan-item {
    background: #25280fe3;
    /* border: 1px solid #555; */
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, border-color 0.2s;

    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

#bilanJerk {
    grid-column: 1 / -1;
}

.bilan-item:hover {
    transform: translateY(-2px);
    border-color: #3498db;
}

.bilan-title {
    color: #888;
    font-size: 0.9em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bilan-item strong {
    font-size: 1em;
    color: #fff;
    padding-left: 2px;
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* #blockBilanGNSS {   display:none;   } */

/* --- RESPONSIVE BREAKPOINTS --- */

/* Écrans moyens/petits (ex: paysage smartphone ou tablette) : 2 sur une ligne, le 3ème étiré en dessous */
@media (max-width: 768px) {
    .bilan-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bilan-item {
        min-height: 64px;
        padding: 8px 10px;
    }

    .bilan-title {
        font-size: .68rem;
    }

    .bilan-item strong,
    #bilan-Jerk {
        font-size: .72rem;
        line-height: 1.15;
    }
}

/* Très petits écrans (ex: smartphone portrait) : 1 élément par ligne (3 lignes au total) */
@media (max-width: 400px) {
    .bilan-container {
        grid-template-columns: 1fr;
    }
}

#version-display {
        font-size: 0.75rem;
    color: var(--muted);
    font-style: italic;
}

/* ---------------------------------------------------------------------------------------------------- */
/* --- GESTION DES MODES D'AFFICHAGE (Centralisation) --- */

/* Si on est en mode "simple" (navigateur web classique) */
body[data-mode="simple"] .req-pwa,
body[data-mode="simple"] .req-advanced {
    display: none !important;
}

/* Si on est en mode "pwa" (Application installée, mais pas avancée) */
body[data-mode="pwa"] .req-advanced {
    display: none !important;
}

/* En mode "advanced", tout s'affiche naturellement, pas besoin de règle de masquage */

.bloc-analyse-volcan {
    white-space: pre-wrap; /* Respecte nativement les sauts de ligne du JSON */
}

.locked-simple-section,
.locked-simple-module {
    display: none;
}

body[data-mode="simple"] .locked-simple-section {
    display: block;
}

body[data-mode="simple"] .locked-simple-module {
    display: flex;
}

body[data-mode="simple"] .module-unlocked-content {
    display: none;
}

body[data-mode="pwa"] .locked-simple-section,
body[data-mode="advanced"] .locked-simple-section,
body[data-mode="pwa"] .locked-simple-module,
body[data-mode="advanced"] .locked-simple-module {
    display: none;
}

.locked-simple-module {
    gap: 14px;
    align-items: flex-start;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.04),
        rgba(255,255,255,.02)
    );
    box-shadow: var(--shadow);
}

.locked-simple-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    font-size: 1.45rem;
}

.locked-simple-module h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.locked-simple-module p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.45;
    text-align: left;
}

.locked-install-btn {
    background: rgba(52, 152, 219, .18);
    border-color: rgba(52, 152, 219, .45);
    font-size:1rem;
    padding:1rem;
}


/* ---------------------------------------------- */
/* --- ONGLET IMAGES SATELLITES (MOUNTS) --- */
.sat-header-text {
    font-size: 0.85em;
    color: #bbb;
    text-align: center;
    margin: 0 0 15px 0;
}

.sat-controls {
    display: flex;
    justify-content: center;

    margin-block: 1rem;
}

.sat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.sat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sat-desc {
    font-size: 0.85em;
    color: #ccc;
    margin: 0;
    line-height: 1.2;
    padding: 0.5rem;
    background-color: #00640021;
}

.sat-label { font-weight: bold; }
.label-inf { color: #ff766a; }
.label-coh { color: #55a9e5; }
.label-amp { color: #ffd65a; }
.label-int { color: #c991dc; }
.label-so2 { color: #70e39d; }

.sat-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--card, #0f1621);
    border: 1px solid var(--stroke, #1c2635);
    flex-grow: 1;
    margin-top: -.5rem;
}

.sat-card-media#sat_int {
/* background-position-x: -400%; */
    /* scale:3; */
}
.sat-card-media#sat_so2 {
       background-position-x: 60px;
    background-position-y: 10px;
    scale: 4;
}


.sat-card-media {
    position: relative;
    width: 100%;
    /* Utilise le ratio exact de tes images pour éviter les bandes vides */
    aspect-ratio: 4 / 3;
    background-position: center;
    /* background-size: cover;*/ /* Remplit l'espace si le ratio diffère légèrement */
    background-size: contain; /* Remplit l'espace si le ratio diffère légèrement */
    background-repeat: no-repeat;
    overflow: hidden;
    /* Crée un point de repère de largeur pour l'iframe enfant */
    container-type: inline-size;
}

/* LE HACK DE MISE À L'ÉCHELLE EXTERNE */
.sat-iframe {
    position: absolute;
    top: 0; left: 0;
    border: none;
    display: none; /* Caché par défaut (Mode image fixe) */

    /* 1. On force une dimension PC pour éviter les barres de défilement internes */
    /* width: 1000px; */
    /* height: 1000px; */

    /* 2. On compresse visuellement l'iframe pour qu'il rentre dans la boîte */
    transform-origin: top left;


    /* 1. On fige la taille source sur les dimensions max de ton PHP */
    width: 990px;
    height: 775px;

      /* transform: scale(0.4); */
      /* Ajuste cette valeur (ex: 0.30 ou 0.40) si l'image te paraît trop grande/petite */

      transform: scale(var(--sat-scale, 0.35));
    transition: transform 0.5s ease-out;
}

.imageCarre.sat-iframe {       transform: scale(0.58); /* Ajuste cette valeur (ex: 0.30 ou 0.40) si l'image te paraît trop grande/petite */
}

#btn-subscribe-alerts   {
    background: rgb(204 196 46 / 15%); border-color: orange; color: darkorange;
}

details.historique
{
    margin-top: 25px; background: var(--card, #0f1621); border-radius: 8px; border: 1px solid var(--stroke, #1c2635);
}
details.light {
   margin-top: 25px;  border-radius: 15px;   border: 1px groove var(--stroke, #1c2635);
    background: #3e000008;
}

summary.titreGras {
    padding: 12px 15px; font-weight: bold; cursor: pointer; color: var(--text, #fff); user-select: none; outline: none;
}

/* ------------------------------------------------------- */

.bilan-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 3px 8px;
    border-radius: 999px;
    border-left: 4px solid transparent;
    background: rgba(255,255,255,.04);
    font-size: .78rem;
    line-height: 1.15;
    white-space: nowrap;
}

@media (min-width: 768px) {
.bilan-status
{
    margin-block: .4rem;
    padding: 8px 10px;
    font-size:1rem;
}
}

.bilan-status-main {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    overflow: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.bilan-status-icon {
    flex: 0 0 auto;
}

.bilan-status-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.bilan-status-short {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: .68;
    font-size: .68rem;
    font-weight: 500;
}

.status-sleeping {
    border-left-color: #7f8c8d;
}

.status-stable {
    border-left-color: #2ecc71;
}

.status-watch {
    border-left-color: #f1c40f;
}

.status-warning {
    border-left-color: #e67e22;
}

.status-danger,
.status-eruption {
    border-left-color: #c0392b;
}

.status-unknown {
    border-left-color: #95a5a6;
}

.bilan-item[data-status="status-sleeping"] {
    border-color: rgba(127, 140, 141, .25);
}

.bilan-item[data-status="status-stable"] {
    border-color: rgba(46, 204, 113, .25);
}

.bilan-item[data-status="status-watch"] {
    border-color: rgba(241, 196, 15, .35);
}

.bilan-item[data-status="status-warning"] {
    border-color: rgba(230, 126, 34, .45);
}

.bilan-item[data-status="status-danger"],
.bilan-item[data-status="status-eruption"] {
    border-color: rgba(192, 57, 43, .55);
}

.bilan-item[data-status="status-unknown"] {
    border-color: rgba(149, 165, 166, .25);
}

/* ------------------------------------------------------- */
/* ==========================================================================
   MULTI-TRÉMOR : actualisation non bloquante
   ========================================================================== */
#multiTremorContainer {
    transition: opacity .2s ease, filter .2s ease;
}

#multiTremorContainer.multi-tremor-updating::after {
    content: "Actualisation…";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 22, 33, .82);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #ddd;
    font-size: .72rem;
    pointer-events: none;
}

#multiTremorPlotsContainer {
    margin-top: 14px;
}

.multi-tremor-plot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 12px;
}

.multi-tremor-plot-card {
    min-width: 0;
    padding: 10px;
}

.multi-tremor-plot-card .titreGras {
    display: block;
    margin: 0 0 8px;
    text-align: center;
}

.multi-tremor-plot-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    cursor: zoom-in;
    background: rgba(0, 0, 0, .1);
    filter: invert(.9);
}

.multi-tremor-plot-empty {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
    color: #aaa;
}

#btn-refresh-all-stations[aria-busy="true"] {
    pointer-events: none;
    opacity: .65;
}

/* ========================================================================== 
   FENÊTRE DE RÉGLAGES DYNAMIQUES
   ========================================================================== */
.settings-dialog {
    width: min(940px, calc(100vw - 24px));
    max-width: 100%;
    height: min(90dvh, 900px);
    max-height: calc(100dvh - 16px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: #09111b;
    color: var(--text);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .68);
}

.settings-dialog::backdrop {
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(4px);
}

/* Avertissement sécurité affiché au premier accès. */
.safety-disclaimer-dialog {
    width: min(94vw, 760px);
    max-height: min(92vh, 860px);
    margin: auto;
    inset: 0;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--rougeOptions, #ac1a12) 55%, var(--stroke, #1c2635));
    border-radius: 22px;
    color: var(--text, #f8fafc);
    background: linear-gradient(145deg, var(--card, #0f1621), #12111a);
    box-shadow: 0 28px 90px rgba(0,0,0,.65);
    font-size: .9rem;
    transform: none;
}

.safety-disclaimer-dialog::backdrop {
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(12px);
}

.safety-disclaimer-dialog__shell {
    display: grid;
    gap: .85rem;
    padding: clamp(.95rem, 2.5vw, 1.45rem);
}

/* Kīlauea : espace régulier entre les blocs affichés par le profil. */
body[data-volcano-id="332010"] main > section[data-volcano-section] {
    margin-block: 1rem;
}

.safety-disclaimer-dialog__page {
    display: grid;
    gap: .85rem;
    min-width: 0;
}

.safety-disclaimer-dialog__page[hidden] {
    display: none;
}

.safety-disclaimer-dialog__header {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-height: 3.4rem;
    padding-bottom: .85rem;
    padding-inline: 4.2rem;
    border-bottom: 1px solid var(--stroke, rgba(255,255,255,.12));
    
    margin-left: 0; /* car on a un header margin ailleurs */
}

.safety-disclaimer-dialog__header > div {
    min-width: 0;
}

.safety-disclaimer-dialog__icon {
    display: grid;
    place-items: center;
    position: absolute;
    left: clamp(.2rem, 2vw, 1.1rem);
    top: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rougeOptions, #ac1a12) 28%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rougeOptions, #ac1a12) 55%, transparent);
    font-size: 1.6rem;
}

@media screen and (max-width: 640px) {
    .safety-disclaimer-dialog__header {
        display: flex;
        justify-content: center;
        padding-inline: 0;
    }

    .safety-disclaimer-dialog__icon {
        position: static;
        flex: 0 0 3rem;
    }
}

.safety-disclaimer-dialog__eyebrow {
    margin: 0 0 .25rem;
    color: color-mix(in srgb, var(--rougeOptions, #ac1a12) 35%, var(--text, #fff));
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.safety-disclaimer-dialog h2,
.safety-disclaimer-dialog h3,
.safety-disclaimer-dialog p {
    margin: 0;
}

.safety-disclaimer-dialog h2 {
    font-size: clamp(1.15rem, 3.1vw, 1.55rem);
    line-height: 1.18;
}

.safety-disclaimer-dialog__body {
    display: grid;
    gap: .68rem;
    overflow: auto;
    max-height: min(58vh, 560px);
    padding-right: .25rem;
}

.safety-disclaimer-dialog__lead {
    color: color-mix(in srgb, var(--text, #f8fafc) 88%, transparent);
    font-size: .9rem;
    line-height: 1.45;
}

.safety-disclaimer-dialog__critical {
    padding: .25rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--rougeOptions, #ac1a12);
    font-weight: 900;
    line-height: 1.45;
    font-size: smaller;
}

.safety-disclaimer-dialog__block {
    padding: .72rem .85rem;
    border: 1px solid var(--stroke, rgba(255,255,255,.1));
    border-radius: var(--radius, 16px);
    background: color-mix(in srgb, var(--chip, #121b28) 72%, transparent);
}

.safety-disclaimer-dialog__block--danger {
    border-color: color-mix(in srgb, var(--jauneOptions, #ecbb0b) 36%, var(--stroke, #1c2635));
    background: color-mix(in srgb, var(--jauneOptions, #ecbb0b) 10%, var(--card, #0f1621));
}

.safety-disclaimer-dialog__block--forbidden {
    border-color: color-mix(in srgb, var(--rougeOptions, #ac1a12) 48%, var(--stroke, #1c2635));
    background: color-mix(in srgb, var(--rougeOptions, #ac1a12) 12%, var(--card, #0f1621));
}

.safety-disclaimer-dialog__block h3 {
    margin-bottom: .45rem;
    color: var(--jauneOptions, #ecbb0b);
    font-size: .92rem;
}

.safety-disclaimer-dialog__block p,
.safety-disclaimer-dialog__block li {
    color: color-mix(in srgb, var(--text, #f8fafc) 86%, transparent);
    line-height: 1.42;
    font-size: .88rem;
}

.safety-disclaimer-dialog__block ul {
    margin: .4rem 0 0;
    padding-left: 1.2rem;
}

.safety-disclaimer-dialog__block li::marker {
    color: var(--rougeOptions, #ac1a12);
}

.safety-disclaimer-dialog__liability {
    color: color-mix(in srgb, var(--rougeOptions, #ac1a12) 35%, var(--text, #fff));
    font-style: italic;
    font-weight: 700;
    line-height: 1.42;
    font-size: smaller;
}

.safety-disclaimer-dialog__sources {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .65rem;
    align-items: center;
    color: var(--muted, rgba(226,232,240,.76));
    font-size: .78rem;
}

.safety-disclaimer-dialog__sources a {
    color: color-mix(in srgb, var(--jauneOptions, #ecbb0b) 45%, #93c5fd);
    font-weight: 700;
}

.safety-disclaimer-dialog__check {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .72rem .9rem;
    border-radius: var(--radius, 16px);
    background: color-mix(in srgb, var(--chip, #121b28) 82%, transparent);
    border: 1px solid var(--stroke, rgba(148,163,184,.28));
    font-weight: 800;
    line-height: 1.3;
    font-size: .88rem;
}

.safety-disclaimer-dialog__check input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .1rem;
    accent-color: var(--jauneOptions, #ecbb0b);
}

.safety-disclaimer-dialog--needs-check .safety-disclaimer-dialog__check {
    animation: safetyDisclaimerShake .28s linear 2;
    border-color: var(--rougeOptions, #ac1a12);
}

.safety-disclaimer-dialog__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
    
    padding: 0;
}

.safety-disclaimer-dialog__footer .btn {
    min-height: 52px;
    padding: .9rem 1.25rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 900;
}

.safety-disclaimer-dialog__accept {
    min-width: min(100%, 340px);
    background: var(--jauneOptions, #ecbb0b);
    border-color: color-mix(in srgb, var(--jauneOptions, #ecbb0b) 68%, white);
    color: #111827;
    font-weight: 900;
}

.safety-disclaimer-dialog__install {
    min-width: min(100%, 260px);
    color: var(--text, #f8fafc);
    border-color: color-mix(in srgb, var(--jauneOptions, #ecbb0b) 55%, var(--stroke, #1c2635));
    background: color-mix(in srgb, var(--jauneOptions, #ecbb0b) 14%, var(--card, #0f1621));
}

@keyframes safetyDisclaimerShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.settings-dialog__shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.settings-dialog__top {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid #36506f;
    background:
        linear-gradient(145deg, rgba(38, 68, 104, .74), rgba(18, 29, 46, .96) 58%),
        #121d2c;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.settings-dialog__header,
.settings-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
}

.settings-dialog__header {
    background: transparent;
    border-bottom: 1px solid rgba(159, 196, 235, .12);
}

.settings-dialog__header h2,
.settings-dialog__header p {
    margin: 0;
}

.settings-dialog__header h2 {
    font-size: clamp(1.2rem, 4vw, 1.65rem);
    line-height: 1.15;
}

.settings-dialog__header p {
    margin-top: 5px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.3;
}

.settings-close,
.settings-reset {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
}

.settings-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.3rem;
}

.settings-close:hover,
.settings-close:focus-visible,
.settings-reset:hover,
.settings-reset:focus-visible {
    background: rgba(255, 255, 255, .08);
    outline: none;
}

.settings-dialog__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 0;
    background: rgba(5, 12, 21, .28);
}

.settings-search {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #507297;
    border-radius: 11px;
    background: rgba(5, 12, 21, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.settings-search:focus-within {
    border-color: #6ca9e8;
    box-shadow: 0 0 0 2px rgba(108, 169, 232, .16);
}

.settings-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.settings-summary {
    flex: 0 0 auto;
    color: #9ecbff;
    font-size: .76rem;
    white-space: nowrap;
}

.settings-cache-card {
    margin: 0;
    border-top: 1px solid #224757;
    border-bottom: 1px solid #2f5b69;
    background:
        linear-gradient(90deg, rgba(21, 65, 72, .35), rgba(15, 28, 37, .96)),
        #101c25;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.settings-cache-card[open] {
    background:
        linear-gradient(90deg, rgba(30, 89, 95, .40), rgba(18, 36, 46, .98)),
        #13252f;
}

.settings-cache-card__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: linear-gradient(90deg, rgba(47, 75, 108, .22), rgba(16, 26, 39, .18));
}

.settings-cache-card__summary::-webkit-details-marker,
.settings-category__summary::-webkit-details-marker {
    display: none;
}

.settings-cache-card__title {
    font-weight: 750;
}

.settings-cache-card__summary small {
    min-width: 0;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-cache-card__arrow,
.settings-category__arrow {
    color: #9aabc0;
    transition: transform .18s ease;
}

.settings-cache-card[open] .settings-cache-card__arrow,
.settings-category[open] .settings-category__arrow {
    transform: rotate(180deg);
}

.settings-cache-card__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px 12px;
}

.settings-cache-card__content p {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.35;
}

.settings-cache-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: flex-end;
}

.settings-cache-actions .btn {
    width: auto;
    min-height: 38px;
    padding: 8px 13px;
}

.settings-dialog__body {
    min-height: 0;
    overflow: auto;
    padding: 14px 12px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    background:
        radial-gradient(circle at 50% -20%, rgba(42, 71, 104, .18), transparent 42%),
        #080f18;
    box-shadow: inset 0 10px 18px rgba(0, 0, 0, .24);
}

.settings-category {
    margin: 0 0 10px;
    overflow: clip;
    border: 1px solid #32465f;
    border-radius: 13px;
    background: #121c29;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}

.settings-category:last-child {
    margin-bottom: 2px;
}

.settings-category[open] {
    border-color: #5278a0;
    background: #152438;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .24);
}

.settings-category__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 11px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: linear-gradient(90deg, rgba(47, 75, 108, .25), rgba(16, 26, 39, .20));
}

.settings-category__summary:hover,
.settings-category__summary:focus-visible {
    background: rgba(255, 255, 255, .035);
    outline: none;
}

.settings-category__summary-text {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.settings-category__title {
    font-size: .98rem;
    line-height: 1.25;
}

.settings-category__summary-description {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.3;
}

.settings-category__summary-meta {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.settings-category__badge {
    padding: 4px 8px;
    border: 1px solid rgba(241, 196, 15, .38);
    border-radius: 999px;
    background: rgba(241, 196, 15, .10);
    color: #f4d45e;
    font-size: .66rem;
    white-space: nowrap;
}

.settings-category__badge[hidden] {
    display: none;
}

.settings-category__content {
    padding: 0 14px 5px;
    border-top: 1px solid rgba(120, 164, 210, .16);
    background: #0d1723;
}

.settings-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(250px, .9fr);
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.settings-row:first-child {
    border-top: 0;
}

.settings-row[hidden] {
    display: none;
}

.settings-row__label {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.settings-row__label > label {
    font-weight: 700;
    line-height: 1.25;
}

.settings-row.is-overridden .settings-row__label > label::after {
    content: " • modifié";
    color: #f1c40f;
    font-size: .68rem;
    font-weight: 650;
}

.settings-row__description {
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.38;
}

.settings-row__path {
    display: block;
    width: fit-content;
    max-width: 100%;
    color: #7890a8;
    font-size: .65rem;
    overflow-wrap: anywhere;
}

.settings-row__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 8px;
}

.settings-control {
    width: min(100%, 310px);
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #465164;
    border-radius: 9px;
    background: #0b111a;
    color: var(--text);
    font: inherit;
}

.settings-control:focus,
.settings-range:focus-visible,
.settings-stepper__button:focus-visible {
    border-color: #77b7f2;
    outline: 2px solid rgba(119, 183, 242, .20);
    outline-offset: 1px;
}

.settings-textarea {
    width: min(100%, 410px);
    min-height: 96px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .75rem;
    line-height: 1.4;
}

.settings-numeric-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: min(100%, 390px);
    gap: 8px;
}

.settings-numeric-control.is-stepper {
    width: auto;
    min-width: 174px;
    justify-content: center;
    padding: 3px;
    border: 1px solid #3d4b5f;
    border-radius: 11px;
    background: #0b111a;
}

.settings-stepper__button {
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #192434;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.settings-stepper__button:active {
    transform: translateY(1px);
}

.settings-number {
    width: 90px;
    min-width: 70px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.settings-numeric-control.is-stepper .settings-number {
    width: 72px;
    min-height: 38px;
    padding-inline: 4px;
    border: 0;
    background: transparent;
}

.settings-numeric-control.is-slider {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 88px auto;
}

.settings-range {
    width: 100%;
    min-width: 0;
    accent-color: #78b7f1;
}

.settings-value {
    min-width: 42px;
    color: #9ecbff;
    font-size: .72rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.settings-switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 27px;
    flex: 0 0 auto;
    cursor: pointer;
}

.settings-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.settings-switch__visual {
    position: absolute;
    inset: 0;
    border: 1px solid #4a5668;
    border-radius: 999px;
    background: #222c3a;
    transition: .18s ease;
}

.settings-switch__visual::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #b9c1cc;
    transition: .18s ease;
}

.settings-switch input:checked + .settings-switch__visual {
    border-color: #5a9fe0;
    background: #245d91;
}

.settings-switch input:checked + .settings-switch__visual::after {
    transform: translateX(21px);
    background: #fff;
}

.settings-switch input:focus-visible + .settings-switch__visual {
    outline: 2px solid rgba(119, 183, 242, .35);
    outline-offset: 2px;
}

.settings-reset {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
}

.settings-row--wide {
    grid-template-columns: 1fr;
    align-items: start;
}

.settings-row--wide .settings-row__controls,
.settings-row--wide .settings-row__error {
    grid-column: 1;
    width: 100%;
    justify-content: stretch;
}

.settings-row--wide .settings-reset {
    align-self: flex-start;
}

.settings-station-channel-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-height: min(52dvh, 520px);
    overflow: auto;
    gap: 8px;
    padding: 4px;
    overscroll-behavior: contain;
}

.settings-station-channel {
    display: grid;
    grid-template-columns: minmax(110px, .8fr) minmax(170px, 1.2fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
}

.settings-station-channel__name {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.settings-station-channel__name small {
    color: var(--muted);
    font-size: .66rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-station-channel__select {
    width: 100%;
    min-width: 0;
    font-size: .78rem;
}

.settings-row__error {
    grid-column: 2;
    margin-top: -7px;
    color: #ffaaa2;
    font-size: .7rem;
    line-height: 1.3;
}

.settings-row__error[hidden] {
    display: none;
}

.settings-row.has-error .settings-control,
.settings-row.has-error .settings-numeric-control.is-stepper {
    border-color: rgba(231, 76, 60, .75);
}

.settings-dialog__footer {
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
    justify-content: flex-end;
    border-top: 1px solid #5c486f;
    background:
        linear-gradient(90deg, rgba(74, 49, 91, .30), rgba(22, 25, 39, .98)),
        #171925;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, .28);
    
    padding: 0;
}

.settings-dialog__footer .btn {
    min-height: 40px;
    padding: 8px 15px;
}

.settings-danger {
    border-color: rgba(231, 76, 60, .55) !important;
    color: #ffaaa2 !important;
}

/* ========================================================================== 
   MULTI-TRÉMOR : progression détaillée et non bloquante
   ========================================================================== */
.multi-tremor-progress {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 4;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(10, 15, 23, .88);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    pointer-events: none;
}

.multi-tremor-progress[hidden] {
    display: none;
}

.multi-tremor-progress__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: .72rem;
    color: #ddd;
}

.multi-tremor-progress__message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-tremor-progress__percent {
    flex: 0 0 auto;
    color: #9ecbff;
    font-variant-numeric: tabular-nums;
}

.multi-tremor-progress__track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}

.multi-tremor-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width .25s ease;
}

#btn-refresh-all-stations[aria-busy="true"] {
    pointer-events: auto;
    cursor: pointer;
    opacity: .72;
}

@media (max-width: 720px) {
    .settings-dialog {
        width: calc(100vw - 10px);
        height: calc(100dvh - 10px);
        max-height: calc(100dvh - 10px);
        border-radius: 16px;
    }

    .settings-dialog__header,
    .settings-dialog__footer {
        padding-inline: 12px;
    }

    .settings-dialog__toolbar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 7px 10px;
        padding: 8px 12px;
    }

    .settings-search {
        grid-column: 1 / -1;
    }

    .settings-summary {
        grid-column: 2;
        justify-self: end;
    }

    .settings-cache-card__summary {
        grid-template-columns: 1fr auto;
        gap: 3px 10px;
        padding-inline: 12px;
    }

    .settings-cache-card__summary small {
        grid-column: 1;
        grid-row: 2;
    }

    .settings-cache-card__arrow {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .settings-cache-card__content {
        align-items: stretch;
        flex-direction: column;
        padding-inline: 12px;
    }

    .settings-cache-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .settings-cache-actions .btn {
        width: 100%;
        min-height: 40px;
    }

    .settings-dialog__body {
        padding: 9px;
    }

    .settings-category__summary {
        min-height: 54px;
        padding: 10px 11px;
    }

    .settings-category__summary-description {
        display: none;
    }

    .settings-category__content {
        padding-inline: 11px;
    }

    .settings-row {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 13px 0;
    }

    .settings-row__controls {
        justify-content: stretch;
    }

    .settings-control,
    .settings-textarea,
    .settings-numeric-control {
        width: 100%;
        max-width: none;
    }

    .settings-numeric-control.is-stepper {
        width: fit-content;
        min-width: 180px;
        justify-self: start;
    }

    .settings-numeric-control.is-slider {
        grid-template-columns: minmax(100px, 1fr) 82px auto;
    }

    .settings-row__error {
        grid-column: 1;
        margin-top: -3px;
    }

    .settings-dialog__footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        padding-block: 10px;
    }

    .settings-dialog__footer .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (orientation: landscape) and (max-height: 560px) {
    .settings-dialog {
        width: calc(100vw - 12px);
        height: calc(100dvh - 8px);
        max-height: calc(100dvh - 8px);
        border-radius: 13px;
    }

    .settings-dialog__header {
        padding-block: 8px;
    }

    .settings-dialog__header h2 {
        font-size: 1.15rem;
    }

    .settings-dialog__header p {
        display: none;
    }

    .settings-dialog__toolbar {
        padding-block: 6px;
    }

    .settings-cache-card__summary {
        min-height: 40px;
        padding-block: 6px;
    }

    .settings-dialog__body {
        padding-block: 7px;
    }

    .settings-category__summary {
        min-height: 44px;
        padding-block: 7px;
    }

    .settings-category__summary-description {
        display: none;
    }

    .settings-row {
        padding-block: 8px;
    }

    .settings-dialog__footer {
        flex-wrap: nowrap;
        padding-block: 7px;
    }

    .settings-dialog__footer .btn {
        min-height: 36px;
        padding-block: 6px;
    }
}


@media (max-width: 720px) {
    .settings-station-channel-map {
        grid-template-columns: 1fr;
        max-height: 48dvh;
    }

    .settings-station-channel {
        grid-template-columns: minmax(95px, .7fr) minmax(150px, 1.3fr);
    }
}

/* ==========================================================================
   PWA MULTI-VOLCANS v0.1 — sélecteurs de profil et de langue
   ========================================================================== */
.drawer-header .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 0;
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    text-decoration: none;
}

.drawer-header .brand .drawer-brand-icon {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: contain;
}

.page-brand-footer {
    display: flex;
    justify-content: center;
    padding: .5rem 1rem 1.5rem;
}

.page-brand-footer img {
    display: block;
    width: min(180px, 56vw);
    height: auto;
    object-fit: contain;
}

.drawer-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    position: relative;
}

.drawer-header-actions {
    position: absolute;
    right: var(--drawerPaddingX, 12px);
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
}

.ovpf-alert-guide [data-i18n="alertGuide.body"] {
    white-space: pre-line;
}

.drawer-context-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    width: 100%;
    padding: .75rem;
    margin-bottom: .35rem;
    border: 1px solid rgba(91, 155, 213, .38);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(16, 48, 77, .88), rgba(15, 27, 43, .92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.drawer-context-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: .25rem;
    align-items: start;
    min-width: 0;
    font-size: .66rem;
    font-weight: 700;
    color: #d8e9f7;
    line-height: 1.1;
}

.drawer-context-control select {
    width: 100%;
    min-width: 0;
    padding: .45rem .55rem;
    font-size: .78rem;
    text-overflow: ellipsis;
    border-color: rgba(116, 178, 230, .55);
    background: rgba(5, 15, 27, .88);
}

.drawer-context-control select:disabled {
    opacity: .72;
    cursor: default;
}

.feature-disabled {
    display: none !important;
}

#version-display {
    margin-left: 0;
    font-size: .52rem;
    font-weight: 600;
    color: #89a9c4;
    line-height: 1;
    opacity: .78;
}

@media (min-width: 700px) {
    .drawer-context-controls {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Bulletin commun multi-volcans */
.bulletin-ai-title {
    color: #0e4f84;
    font-weight: 750;
}

.bulletin-source-text {
    white-space: normal;
}

.bulletin-source-text--pre {
    white-space: pre-wrap;
}

/* v0.2.0 — accordéon diagnostic volontairement distinct. */
.settings-category--diagnostic {
    border-color: rgba(201, 111, 255, .62);
    background: linear-gradient(145deg, rgba(68, 30, 87, .88), rgba(27, 17, 42, .96));
}
.settings-category--diagnostic[open] {
    border-color: rgba(225, 148, 255, .9);
    background: #261733;
    box-shadow: 0 6px 22px rgba(101, 38, 125, .28);
}
.settings-category--diagnostic .settings-category__summary {
    background: linear-gradient(90deg, rgba(137, 69, 170, .38), rgba(35, 22, 51, .32));
}
.settings-category--diagnostic .settings-category__content {
    background: rgba(20, 12, 30, .96);
    border-top-color: rgba(220, 155, 255, .2);
}

/* v0.2.0 — économie CPU/GPU lorsque la page n'est pas visible. */
html.is-page-hidden *,
html.is-page-hidden *::before,
html.is-page-hidden *::after {
    animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}


/* v0.2.2 — rendu net des canvas Chart.js sans étirement CSS. */
.canvas-container > canvas,
#divTremorGraph > canvas,
#divSeismeGraph > canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    image-rendering: auto;
}

/* v0.2.2 — les résumés doivent rester dans la largeur des widgets. */
.bilan-item,
.bilan-item strong,
.bilan-status,
.bilan-status-main,
.bilan-status-label {
    min-width: 0;
    max-width: 100%;
}

.bilan-item strong,
.bilan-status,
.bilan-status-main,
.bilan-status-label {
    overflow-wrap: anywhere;
    word-break: normal;
}

.bilan-status {
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .bilan-status {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        border-radius: 12px;
        line-height: 1.3;
        padding: 3px 6px;
        font-size: .7rem;
    }

    .bilan-status-main {
        width: 100%;
        white-space: normal;
    }

    .bilan-status-short {
        display: block;
        min-width: 0;
        width: 100%;
    }
}

@media (orientation: landscape) and (max-height: 480px) {
    .bilan-status {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        border-radius: 12px;
        line-height: 1.3;
        padding: 3px 6px;
        font-size: .7rem;
    }

    .bilan-status-main {
        width: 100%;
        white-space: normal;
    }

    .bilan-status-short {
        display: block;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bilan-status-short {
        display: block;
    }
}

/* v0.2.2 — le dialogue est affichable même si showModal échoue dans une PWA mobile. */
html.settings-dialog-open,
html.settings-dialog-open body {
    overflow: hidden !important;
}

.settings-dialog--fallback[open] {
    position: fixed;
    inset: 5px;
    z-index: 2147483000;
    display: block;
    width: calc(100vw - 10px);
    height: calc(100dvh - 10px);
    max-height: calc(100dvh - 10px);
    margin: 0;
}

.settings-panel-loading,
.settings-panel-error {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    min-height: 180px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.settings-panel-loading__spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: #79b9f3;
    border-radius: 50%;
    animation: settings-spin .8s linear infinite;
}

.settings-panel-error {
    color: #f0b1b1;
}

.settings-panel-error p {
    max-width: 52ch;
    margin: 0;
    overflow-wrap: anywhere;
}

@keyframes settings-spin {
    to { transform: rotate(360deg); }
}

/* L'image GNSS annuelle reste visible et nette quand son accordéon est ouvert. */
.ovpf-image-baseline {
    min-height: 120px;
    object-fit: contain;
    image-rendering: auto;
}
.seismic-event-list {
    max-height: 36rem;
    overflow: auto;
    padding-inline-start: 2rem;
}

.seismic-event-list li {
    margin-block: .45rem;
}

#kilaueaSeismicCatalog {
    max-height: 19rem;
    overflow: auto;
}

#kilaueaSeismicEventList .seismic-event-list {
    max-height: 13rem;
}
