/* Hexagone Météo — radar v2 : fiche d'un orage (js/modules/fiche.js). Mobile d'abord, fond blanc. */
.fx { container-type: inline-size; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #172231; }
.fx * { box-sizing: border-box; }
.fx h2, .fx h3 { margin: 0; }
.fx-ico { flex: none; vertical-align: -3px; }

/* barre du haut : fiche, heure, partager */
.fx .fx-barre { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 8px; }
.fx-qui { display: flex; flex-direction: column; min-width: 0; }
/* .fiche-tete (app.css) sert au titre accessible de la feuille : ses tailles sont neutralisées ici */
.fx .fx-barre .fx-qui b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #4a5466; }
.fx .fx-barre span { margin-left: 0; }
.fx .fx-barre .fx-qui span { font-size: 13px; color: #6b7385; }
.fx-partager { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid #d9dee6; border-radius: 999px; background: #fff; color: #0b5ccf; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.fx-partager:active { transform: scale(.97); }
.fx-partager:focus-visible, .fx-onglets button:focus-visible, .fx-cur summary:focus-visible { outline: 2px solid #0b5ccf; outline-offset: 2px; }

/* verdict */
.fx-tete { padding: 12px 13px; border-radius: 14px; display: flex; gap: 11px; align-items: flex-start; }
.fx-niv { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 18px/1 system-ui, sans-serif; box-shadow: 0 0 0 3px rgba(255,255,255,.75); }
.fx-tx { min-width: 0; }
.fx-tt { font: 800 18.5px/1.22 system-ui, sans-serif; letter-spacing: -.01em; }
.fx-tc { margin-top: 3px; font-size: 14.5px; }
.fx-meta { margin-top: 5px; font-size: 13px; opacity: .88; }
.fx-ech { display: flex; gap: 4px; margin: 12px 0 0; }
.fx-ec { flex: 1; min-width: 0; text-align: center; }
.fx-eb { height: 8px; border-radius: 5px; }
.fx-ici .fx-eb { height: 12px; margin-top: -2px; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px currentColor; }
.fx-el { font: 700 11.5px/1.2 system-ui, sans-serif; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-ici .fx-el { font-size: 12.5px; font-weight: 800; }
.fx-rel { margin: 6px 0 0; font-size: 12.8px; color: #4a5466; text-align: center; }

/* onglets */
.fx-onglets { display: flex; gap: 4px; margin: 14px 0 0; padding: 4px; position: sticky; top: -8px; z-index: 2; background: #eef1f5; border-radius: 999px; box-shadow: 0 0 0 6px #fff; }
.fx-onglets button { flex: 1; min-width: 0; border: 0; background: transparent; border-radius: 999px; height: 36px; padding: 0 6px; font: 700 13.5px system-ui, sans-serif; color: #4a5466; cursor: pointer; white-space: nowrap; }
.fx-onglets button[aria-selected="true"] { background: #fff; color: #172231; box-shadow: 0 1px 4px rgba(10,30,43,.16); }
.fx-col:not(.fx-actif) { display: none; }
.fx-vie-large { display: none; }

/* blocs */
.fx-bloc { margin: 16px 0 0; }
.fx-lab { font: 700 12.5px/1.2 system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #4a5466; margin: 0 0 6px; }
.fx-petit { font-size: 12.8px; color: #5b6474; margin: 2px 0 0; }
.fx-arr { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.fx-arr b { font: 800 23px/1.15 system-ui, sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.fx-min { font: 800 28px/1 system-ui, sans-serif; letter-spacing: -.03em; }
.fx-frise, .fx-vie { display: block; max-width: 460px; margin: 10px 0 0; overflow: visible; }
.fx-l { list-style: none; margin: 6px 0 0; padding: 0; }
.fx-l li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #eef0f3; font-size: 14.5px; }
.fx-n { flex: none; width: 20px; height: 20px; border-radius: 50%; color: #fff; font: 800 11px/20px system-ui, sans-serif; text-align: center; }
.fx-ln { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fx-lt { flex: none; width: 62px; text-align: right; font-weight: 700; line-height: 1.15; }
.fx-lt small { display: block; font-size: 11.5px; font-weight: 500; color: #6b7385; }
.fx-lp { flex: none; width: 40px; height: 6px; border-radius: 3px; background: #eceff3; overflow: hidden; }
.fx-lp i { display: block; height: 100%; opacity: .85; }
.fx-lq { flex: none; width: 36px; text-align: right; font-size: 12.5px; color: #5b6474; font-variant-numeric: tabular-nums; }
.fx-info { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; display: flex; gap: 9px; align-items: flex-start; }
.fx-info .fx-ico { margin-top: 2px; }
.fx-nc { background: #fffaf0; border-left: 3px solid #ffb300; color: #7a5200; }
.fx-neutre { background: #f5f7fa; color: #4a5466; }
.fx-moi { background: #eef4ff; border-left: 3px solid #2980ff; color: #1b3a6b; }
.fx-det { background: #f6f1ff; border-left: 3px solid #8e44ad; display: block; }
.fx-det > div > b { display: flex; gap: 6px; align-items: center; color: #5f1f8f; }
.fx-dl { margin-top: 6px; }
.fx-exp { color: #a00000; margin-top: 6px; }

/* tuiles « Sous l'orage » */
.fx-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-t { background: #f5f7fa; border-radius: 12px; padding: 9px 10px 10px; border-top: 3px solid; }
.fx-t0 { opacity: .78; }
.fx-ti { font: 700 12.5px/1.2 system-ui, sans-serif; display: flex; gap: 5px; align-items: center; }
.fx-ti span { color: #3d465f; }
.fx-tv { font: 800 15px/1.25 system-ui, sans-serif; margin-top: 5px; overflow-wrap: anywhere; }
.fx-tv small { display: block; font-size: 13px; font-weight: 700; margin-top: 1px; }
.fx-ts { font-size: 11.5px; color: #6b7385; margin-top: 4px; line-height: 1.3; }

/* Doppler */
.fx-prec { margin: 6px 0; padding: 9px 11px; border-radius: 10px; background: #fff4e5; border-left: 4px solid; font-size: 14.5px; color: #4a2a00; }
.fx-ok { color: #1b5e20; font-weight: 700; margin-top: 3px; display: flex; gap: 5px; align-items: center; }
.fx-mt { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #f6f3fb; border-left: 4px solid; font-size: 14.5px; }
.fx-rien { padding: 9px 11px; border-radius: 10px; background: #f1f6f1; color: #2e5130; font-size: 14.5px; }
.fx-hist { list-style: none; margin: 6px 0 0; padding: 0; }
.fx-hist li { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid #eef0f3; font-size: 14px; }
.fx-hh { flex: none; width: 60px; white-space: nowrap; font-weight: 700; color: #3d465f; }
.fx-hi { flex: none; width: 18px; height: 18px; border-radius: 50%; color: #fff; font: 800 11px/18px system-ui, sans-serif; text-align: center; align-self: center; }

/* profil vertical */
.fx-profil { margin: 16px 0 0; padding: 11px 12px; border-radius: 12px; border-left: 4px solid; }
.fx-pt { font: 800 17px/1.25 system-ui, sans-serif; margin-top: 2px; }
.fx-px { font-size: 14.5px; margin-top: 3px; color: #2b3445; }
.fx-pr { margin-top: 7px; font-size: 14.5px; color: #b71c1c; font-weight: 700; }
.fx-pe { margin-top: 7px; padding: 7px 9px; border-radius: 8px; background: #fdecea; font-size: 14.5px; color: #8a1c1c; }
.fx-ps { margin-top: 7px; font-size: 14px; color: #3d465f; }
.fx-pf { margin-top: 7px; padding: 7px 9px; border-radius: 8px; background: #fff8d4; font-size: 14.5px; color: #6b5200; display: flex; gap: 7px; }
.fx-coupe { display: block; max-width: 360px; margin: 8px 0 4px; }

/* tiroir « Pour les curieux » */
.fx-cur { margin: 16px 0 0; border: 1px solid #dfe3ea; border-radius: 12px; background: #fff; }
.fx-cur summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px; cursor: pointer; font: 700 14.5px system-ui, sans-serif; color: #3d465f; }
.fx-cur summary::-webkit-details-marker { display: none; }
.fx-cur summary span { flex: 1; }
.fx-cur summary .fx-ico:last-child { transition: transform .15s; color: #8a93a3; }
.fx-cur[open] summary .fx-ico:last-child { transform: rotate(90deg); }
.fx-cur-corps { padding: 0 12px 12px; }
.fx-cur-corps .fx-lab { margin-top: 14px; }
.fx-phrase { font-size: 15.5px; margin: 0 0 8px; }
.fx-reserve { padding: 7px 10px; background: #f7f8fa; border-left: 3px solid #9aa1b2; border-radius: 6px; font-size: 13.5px; color: #3d465f; margin: 8px 0; }
.fx-traj { width: 100%; border-collapse: collapse; font-size: 14px; }
.fx-traj td { padding: 6px 4px; border-top: 1px solid #eef0f3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-traj td:nth-child(2) { white-space: normal; width: 100%; }
.fx-traj td:nth-child(3), .fx-traj td:nth-child(4) { text-align: right; color: #4a5466; }
.fx-tab-ind { overflow-x: auto; }
.fx-ind { width: 100%; border-collapse: collapse; }
.fx-ind th { text-align: left; padding: 0 8px 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6b7285; }
.fx-ind td { padding: 7px 8px; vertical-align: top; border-top: 1px solid #edeff2; }
.fx-ind td:first-child { font-size: 13.5px; color: #3d465f; width: 38%; }
.fx-ind td:nth-child(2) { font-size: 14.5px; }
.fx-ind tr:nth-child(even) td { background: #fafbfc; }
.fx-ind small { display: block; font-size: 12px; color: #5b6474; }
.fx-ind .fx-gr { color: #4a5466; }
.fx-srep { display: block; font-size: 11.5px; color: #6b7285; margin-top: 2px; }
.fx-csrc { display: none; }
.fx-derecho { color: #b0003a; }
.fx-avert { margin: 10px 0 2px; font-size: 12.6px; line-height: 1.5; color: #7a5200; background: #fffaf0; border-left: 3px solid #ffb300; padding: 7px 9px; border-radius: 6px; }

.fx-mention { margin: 18px 0 0; padding-top: 10px; border-top: 1px solid #eef0f3; font-size: 12.5px; color: #4a5466; }
.fx-uhd { color: #e5262c; }

/* attente */
.fx-squelette { height: 92px; border-radius: 14px; background: linear-gradient(90deg, #f1f3f6, #e7ebf0, #f1f3f6); background-size: 200% 100%; animation: fx-reflet 1.1s linear infinite; margin-top: 8px; }
.fx-squelette.court { height: 160px; }
@keyframes fx-reflet { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fx-squelette { animation: none; } }

/* plus large : sources en colonne */
@container (min-width: 520px) {
  .fx-csrc { display: table-cell; font-size: 12px; color: #6b7285; white-space: nowrap; }
  .fx-srep { display: none; }
  .fx-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* tablette : 2 colonnes, ordinateur : 3 colonnes, plus d'onglets (comme fo-moyen / fo-large) */
@container (min-width: 620px) {
  .fx-onglets { display: none; }
  .fx-col:not(.fx-actif) { display: block; }
  .fx-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
  .fx-col:nth-child(3) { grid-column: 1 / span 2; }
  .fx-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-vie-large { display: block; }
  .fx-vie-etroit { display: none; }
}
@container (min-width: 860px) {
  .fx-haut { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 0 14px; }
  .fx-grille { grid-template-columns: 1.05fr 1fr 1fr; }
  .fx-col:nth-child(3) { grid-column: auto; }
}
