    :root {
      --bg: #0d160c;
      --surface: rgba(20, 32, 18, 0.92);
      --surface-border: rgba(74, 110, 60, 0.4);
      --accent: #22c55e;
      --accent-glow: rgba(34, 197, 94, 0.35);
      --accent-dark: #15803d;
      --camo-light: #446830;
      --camo-mid: #2d4720;
      --gold: #facc15;
      --danger: #ef4444;
      --danger-dark: #b91c1c;
      --text: #f0fdf4;
      --text-muted: #8ca388;
      --radius: 14px;
      --sat: env(safe-area-inset-top, 0px);
      --sab: env(safe-area-inset-bottom, 0px);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; user-select: none; }
    input, select, textarea { user-select: text; }

    html, body { background-color: var(--bg); color: var(--text); height: 100%; width: 100%; overflow: hidden; overscroll-behavior: none; }
    body {
      display: flex; flex-direction: column; padding-top: var(--sat); padding-bottom: var(--sab);
      max-width: 480px; margin: 0 auto; position: relative; background-image: url('../fond.webp');
      background-size: cover; background-position: center; background-repeat: no-repeat;
    }
    body::before { content: ''; position: absolute; inset: 0; background: rgba(11, 19, 10, 0.85); z-index: 0; pointer-events: none; }
    header, main, nav.bottom-nav, #landscapeBlocker, .modal-overlay, #onboardingModal, #fileProtocolBanner { position: relative; z-index: 10; }

    #landscapeBlocker {
      display: none; position: fixed; inset: 0; background: #0d160c; z-index: 999999;
      flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center;
    }
    @media screen and (orientation: landscape) and (max-height: 550px) { #landscapeBlocker { display: flex !important; } }
    /* Pendant la vue graphique / carte agrandie : ne pas bloquer le paysage */
    body.carp-chart-landscape-open #landscapeBlocker,
    body.carp-map-expand-open #landscapeBlocker { display: none !important; }
    /* Modales (fiches postes, etc.) au-dessus de la carte plein écran */
    body.carp-map-expand-open .modal-overlay { z-index: 1000020 !important; }

    header {
      flex-shrink: 0; background: rgba(13, 22, 12, 0.94); backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--surface-border); padding: 0.4rem 0.7rem;
      display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
      column-gap: 0.45rem; z-index: 50; min-width: 0;
    }
    .header-left {
      display: flex; align-items: center; justify-content: flex-start;
      gap: 0.3rem; min-width: 0; flex-shrink: 0;
    }
    .header-logo {
      width: 64px; height: 64px; max-width: 64px; max-height: 64px;
      object-fit: contain; object-position: center; flex-shrink: 0;
      border-radius: 10px; border: 1px solid rgba(74, 110, 60, 0.4);
      background: rgba(10, 18, 10, 0.7);
    }
    .header-center {
      display: flex; justify-content: center; align-items: center;
      padding: 0 0.25rem; overflow: hidden; min-width: 0;
    }
    .header-title-img {
      max-height: 36px; width: auto; max-width: 100%;
      object-fit: contain; display: block;
    }
    .header-right {
      display: flex; align-items: center; justify-content: flex-end;
      gap: 0.45rem; flex-shrink: 0; min-width: 0;
    }
    .header-notice-btn {
      font-size: 0.55rem; padding: 0.28rem 0.45rem; white-space: nowrap;
      background: rgba(34, 197, 94, 0.15); border-color: var(--accent);
      color: var(--accent); font-weight: 800; line-height: 1.2;
    }

    /* Pastille connexion : vert = en ligne, rouge = hors ligne (pas d’état sync météo) */
    .offline-badge {
      width: 11px; height: 11px; min-width: 11px; min-height: 11px;
      padding: 0; margin: 0; border-radius: 50%;
      border: 1.5px solid rgba(0, 0, 0, 0.35);
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
      flex-shrink: 0; font-size: 0; line-height: 0; color: transparent;
      overflow: hidden; text-indent: -9999px; white-space: nowrap;
      background: #ef4444;
    }
    .offline-badge.online,
    .offline-badge.syncing,
    .offline-badge.partial {
      background: #22c55e;
      border-color: rgba(6, 78, 32, 0.55);
    }
    .offline-badge.offline {
      background: #ef4444;
      border-color: rgba(127, 29, 29, 0.55);
    }

    @media (max-width: 390px) {
      header { padding: 0.35rem 0.5rem; column-gap: 0.35rem; }
      .header-logo { width: 56px; height: 56px; max-width: 56px; max-height: 56px; border-radius: 9px; }
      .header-title-img { max-height: 30px; }
      .header-notice-btn { font-size: 0.52rem; padding: 0.26rem 0.38rem; }
      .offline-badge { width: 10px; height: 10px; min-width: 10px; min-height: 10px; }
    }
    @media (max-width: 340px) {
      .header-logo { width: 52px; height: 52px; max-width: 52px; max-height: 52px; }
      .header-title-img { max-height: 26px; }
      .header-right { gap: 0.35rem; }
    }

    main { flex: 1; position: relative; overflow: hidden; width: 100%; }
    .tab-content { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0.85rem; display: none; }
    .tab-content.active { display: block; }

    nav.bottom-nav {
      flex-shrink: 0; height: 78px; background: rgba(13, 22, 12, 0.96); backdrop-filter: blur(10px);
      border-top: 1.5px solid var(--surface-border); display: flex; justify-content: space-around; align-items: center; z-index: 50; padding: 2px 4px 4px;
    }
    .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.65rem; font-weight: 700; gap: 4px; padding: 4px 0; }
    .nav-icon-wrapper {
      width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
      background: linear-gradient(160deg, rgba(28, 40, 24, 0.95), rgba(10, 16, 10, 0.92));
      border: 1px solid rgba(134, 239, 172, 0.28); border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }
    .nav-icon {
      width: 40px; height: 40px; object-fit: contain; opacity: 0.9;
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)) brightness(1.1) contrast(1.06);
    }
    .nav-item.active .nav-icon-wrapper {
      background: linear-gradient(160deg, rgba(34, 197, 94, 0.28), rgba(20, 40, 18, 0.95));
      border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      transform: translateY(-2px);
    }
    .nav-item.active .nav-icon {
      opacity: 1; transform: scale(1.06);
      filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.35)) brightness(1.14) contrast(1.08);
    }
    .nav-item.active { color: #e2fbd7; font-weight: 800; }

    .card { background: var(--surface); backdrop-filter: blur(8px); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.85rem; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }
    .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85rem; }
    .card-title { font-size: 0.95rem; font-weight: 800; color: #e2fbd7; }

    .form-group { margin-bottom: 0.75rem; }
    .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.3rem; cursor: pointer; }
    input, select, textarea {
      width: 100%; background: rgba(10, 18, 10, 0.9); border: 1px solid var(--surface-border); border-radius: 10px;
      padding: 0.65rem 0.8rem; color: #f0fdf4; font-size: 0.85rem; font-weight: 600; outline: none;
      touch-action: manipulation;
      -webkit-user-select: text; user-select: text;
      -webkit-touch-callout: default;
      position: relative; z-index: 1;
    }
    input:focus, select:focus, textarea:focus { border-color: var(--accent); }
    /* Champs date/heure : une seule valeur FR + icône à DROITE (08/10/2026   📅) */
    .carp-dt-wrap {
      position: relative;
      width: 100%;
      min-height: 44px;
      border-radius: 10px;
      background: rgba(10, 18, 10, 0.9);
      border: 1px solid var(--surface-border);
      overflow: hidden;
    }
    .carp-dt-wrap:focus-within {
      border-color: var(--accent);
    }
    .carp-dt-face {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 0 0.55rem 0 0.8rem;
      pointer-events: none;
      color: #f0fdf4;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.01em;
    }
    .carp-dt-empty .carp-dt-face { color: var(--text-muted); font-weight: 600; }
    .carp-dt-face-text {
      flex: 0 1 auto;
      min-width: 0;
      white-space: nowrap;
    }
    .carp-dt-ico {
      flex: 0 0 auto;
      margin-left: auto; /* icône tout à droite, près de la zone native */
      padding-left: 0.65rem; /* ~2–3 espaces entre valeur et icône */
      font-size: 1.05rem;
      line-height: 1;
      opacity: 0.95;
      pointer-events: none;
    }
    /* Input natif étiré sur tout le rectangle noir (zone tactile complète) */
    .carp-dt-wrap > input[type="date"],
    .carp-dt-wrap > input[type="time"],
    input[type="date"].carp-dt-input,
    input[type="time"].carp-dt-input,
    input.carp-native-picker {
      cursor: pointer;
      min-height: 44px;
      color-scheme: dark;
      color: transparent !important;
      caret-color: transparent;
      background: transparent !important;
      border-color: transparent !important;
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 3;
      -webkit-text-fill-color: transparent;
      margin: 0;
      padding: 0 !important;
      box-sizing: border-box;
    }
    input[type="date"].carp-dt-input::-webkit-datetime-edit,
    input[type="time"].carp-dt-input::-webkit-datetime-edit,
    input[type="date"].carp-dt-input::-webkit-datetime-edit-fields-wrapper,
    input[type="time"].carp-dt-input::-webkit-datetime-edit-fields-wrapper,
    input[type="date"].carp-dt-input::-webkit-datetime-edit-text,
    input[type="time"].carp-dt-input::-webkit-datetime-edit-text,
    input[type="date"].carp-dt-input::-webkit-datetime-edit-month-field,
    input[type="date"].carp-dt-input::-webkit-datetime-edit-day-field,
    input[type="date"].carp-dt-input::-webkit-datetime-edit-year-field,
    input[type="time"].carp-dt-input::-webkit-datetime-edit-hour-field,
    input[type="time"].carp-dt-input::-webkit-datetime-edit-minute-field,
    input[type="time"].carp-dt-input::-webkit-datetime-edit-ampm-field {
      color: transparent;
      -webkit-text-fill-color: transparent;
    }
    /* Toute la surface du rectangle ouvre le sélecteur natif (pas seulement l’icône) */
    input[type="date"].carp-dt-input::-webkit-calendar-picker-indicator,
    input[type="time"].carp-dt-input::-webkit-calendar-picker-indicator,
    input.carp-native-picker::-webkit-calendar-picker-indicator,
    .carp-dt-wrap > input[type="date"]::-webkit-calendar-picker-indicator,
    .carp-dt-wrap > input[type="time"]::-webkit-calendar-picker-indicator {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      opacity: 0;
      cursor: pointer;
      z-index: 4;
    }
    /* Mobile : zone tactile ≥ 44px + 16px pour clavier/focus natif (évite double-tap iOS) */
    @media (max-width: 900px) {
      input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]),
      select,
      textarea {
        font-size: 16px !important;
        min-height: 44px;
        padding: 0.7rem 0.8rem;
      }
      textarea { min-height: 88px; }
      .wx-search-row input[type="search"],
      #mapSearchInput,
      #riverSearchInput,
      #sessionLocation,
      #weatherSearchInput {
        min-height: 44px;
        font-size: 16px !important;
      }
      .prospect-note-input,
      .prospect-photo-comment {
        font-size: 16px !important;
        min-height: 88px;
        padding: 0.55rem 0.65rem;
      }
      .carp-dt-face { font-size: 16px; }
      .carp-dt-wrap { min-height: 44px; }
    }

    .btn { width: 100%; background: linear-gradient(135deg, var(--camo-light), var(--camo-mid)); color: #f0fdf4; border: 1px solid rgba(74, 110, 60, 0.5); padding: 0.75rem; border-radius: 12px; font-size: 0.85rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
    .btn-share { background: linear-gradient(135deg, #15803d, #22c55e); color: #081107; font-weight: 800; border: none; }
    .btn-tactical { background: rgba(34, 197, 94, 0.12); border: 1px solid var(--accent); color: var(--accent); }
    .btn-danger { background: linear-gradient(135deg, var(--danger), var(--danger-dark)); border: 1px solid rgba(239, 68, 68, 0.4); }
    .btn-secondary { background: rgba(20, 32, 18, 0.7); border: 1px solid var(--surface-border); color: var(--text-muted); padding: 0.45rem 0.75rem; border-radius: 8px; font-size: 0.72rem; font-weight: 700; cursor: pointer; width: auto; }

    .cm-card {
      background: linear-gradient(145deg, rgba(28, 24, 16, 0.96), rgba(36, 42, 22, 0.92));
      border: 1px solid rgba(212, 175, 95, 0.45);
      border-radius: var(--radius);
      padding: 0.85rem;
      margin-bottom: 0.85rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    .cm-card-title {
      font-size: 0.82rem;
      font-weight: 900;
      letter-spacing: 0.04em;
      color: #e8d5a3;
      margin-bottom: 0.15rem;
    }
    .cm-card-subtitle {
      font-size: 0.68rem;
      color: var(--text-muted);
      margin-bottom: 0.65rem;
      line-height: 1.35;
    }
    .cm-score-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem;
      margin-bottom: 0.65rem;
    }
    .cm-metric {
      background: rgba(10, 18, 10, 0.75);
      border: 1px solid rgba(212, 175, 95, 0.22);
      border-radius: 10px;
      padding: 0.55rem 0.6rem;
      text-align: center;
    }
    .cm-metric-label {
      font-size: 0.58rem;
      font-weight: 800;
      color: #c4b28a;
      letter-spacing: 0.05em;
      margin-bottom: 0.2rem;
    }
    .cm-metric-value {
      font-size: 1.15rem;
      font-weight: 900;
      color: #f5e6c4;
      line-height: 1.1;
    }
    .cm-metric-sub {
      font-size: 0.58rem;
      color: var(--text-muted);
      margin-top: 0.15rem;
    }
    .cm-stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.35rem;
      margin-bottom: 0.65rem;
    }
    .cm-stat {
      font-size: 0.66rem;
      color: #e2fbd7;
      background: rgba(12, 22, 11, 0.65);
      border: 1px solid rgba(74, 110, 60, 0.25);
      border-radius: 8px;
      padding: 0.4rem 0.5rem;
      line-height: 1.3;
    }
    .cm-stat b { color: #e8d5a3; }
    .cm-insufficient {
      font-size: 0.72rem;
      color: #f0fdf4;
      line-height: 1.45;
      padding: 0.45rem 0.15rem 0.55rem;
    }
    .cm-insufficient strong {
      display: block;
      color: #e8d5a3;
      font-size: 0.78rem;
      margin-bottom: 0.3rem;
    }
    .cm-btn {
      width: 100%;
      background: linear-gradient(135deg, #8a6a2f, #c4a35a);
      color: #1a1408;
      border: none;
      border-radius: 10px;
      padding: 0.55rem;
      font-size: 0.72rem;
      font-weight: 900;
      letter-spacing: 0.03em;
      cursor: pointer;
    }
    .cm-spot-list { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 0.85rem; }
    .cm-section-title {
      font-size: 0.72rem;
      font-weight: 900;
      color: #e8d5a3;
      margin: 0.75rem 0 0.4rem;
      letter-spacing: 0.03em;
    }
    .cm-chip {
      font-size: 0.68rem;
      background: rgba(12, 22, 11, 0.8);
      border: 1px solid rgba(212, 175, 95, 0.28);
      border-radius: 8px;
      padding: 0.45rem 0.55rem;
      margin-bottom: 0.35rem;
      color: #f0fdf4;
      line-height: 1.35;
      word-break: break-word;
    }
    .cm-chip .cm-chip-status { color: #c4a35a; font-weight: 800; font-size: 0.6rem; }
    .cm-chip.unavailable { opacity: 0.75; border-color: rgba(140, 163, 136, 0.35); }

    .gauge-container { display: flex; align-items: center; gap: 0.85rem; margin: 0.75rem 0; background: rgba(10, 18, 10, 0.75); padding: 0.75rem; border-radius: 12px; border: 1px solid var(--surface-border); }
    .gauge-val { font-size: 2.1rem; font-weight: 800; color: var(--accent); line-height: 1; }
    .cadran-table-header, .hour-row { display: grid; grid-template-columns: 50px 1.15fr 0.85fr 1.25fr 70px; align-items: center; padding: 0.45rem 0; font-size: 0.72rem; border-bottom: 1px solid rgba(74, 110, 60, 0.15); gap: 0.2rem; }

    .pressure-cell, .wind-cell { display: inline-flex; align-items: center; gap: 0.28rem; flex-wrap: wrap; }
    .pressure-trend { display: inline-flex; align-items: center; justify-content: center; min-width: 1rem; font-weight: 900; font-size: 0.85rem; line-height: 1; }
    .pressure-trend.up { color: #4ade80; }
    .pressure-trend.down { color: #f87171; }
    .pressure-trend.stable { color: #94a3b8; }
    .wind-dir-arrow {
      display: inline-flex; align-items: center; justify-content: center;
      width: 1.15rem; height: 1.15rem; border-radius: 999px;
      background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.45);
      color: #7dd3fc; font-size: 0.72rem; font-weight: 900; line-height: 1;
      transform-origin: center center; flex-shrink: 0;
    }
    .wind-dir-arrow.empty { opacity: 0.45; border-style: dashed; color: var(--text-muted); }
    .wind-speed { font-weight: 700; color: #e2e8f0; }
    .wind-dir-label { font-size: 0.58rem; color: var(--text-muted); font-weight: 700; }
    .day-detail-hour-row {
      background: rgba(10,18,10,0.85); border: 1px solid var(--surface-border); border-radius: 8px;
      padding: 0.45rem 0.6rem; display: grid; grid-template-columns: 70px 1.1fr 0.85fr 1.2fr;
      gap: 0.35rem; align-items: center; font-size: 0.7rem; margin-bottom: 0.35rem;
    }
    .wx-day-detail-btn {
      width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit;
    }
    .wx-day-detail-extra {
      grid-column: 1 / -1; font-size: 0.62rem; color: var(--text-muted); font-weight: 600;
    }
    .wx-day-slots-container {
      display: block;
      overflow-y: auto;
      max-height: 72vh;
      padding-right: 2px;
      -webkit-overflow-scrolling: touch;
    }
    .wx-day-hours-hint {
      font-size: 0.65rem; color: var(--text-muted); margin: 0.55rem 0 0.35rem; font-weight: 600;
    }
    .wx-day-overview { margin-bottom: 0.25rem; }
    .wx-detail-muted { color: var(--text-muted); font-size: 0.68rem; }
    .wx-day-hour-block {
      background: rgba(10,18,10,0.92); border: 1px solid var(--surface-border);
      border-radius: 10px; margin-bottom: 0.4rem; overflow: hidden;
      flex-shrink: 0;
    }
    .wx-day-hour-summary {
      width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
      gap: 0.45rem; cursor: pointer; padding: 0.6rem 0.7rem;
      background: transparent; border: none; color: #f0fdf4; font: inherit;
      text-align: left; user-select: none; -webkit-appearance: none; appearance: none;
    }
    .wx-day-hour-main {
      display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; flex: 1;
    }
    .wx-day-hour-chevron {
      flex-shrink: 0; color: var(--accent); font-size: 0.8rem; font-weight: 800;
      line-height: 1.2; margin-top: 0.1rem; transition: transform 0.15s ease;
    }
    .wx-day-hour-block.is-open .wx-day-hour-chevron { transform: rotate(180deg); }
    .wx-day-hour-time { font-size: 0.8rem; color: #f0fdf4; font-weight: 800; line-height: 1.25; }
    .wx-day-hour-cond { font-size: 0.7rem; color: var(--accent); font-weight: 700; line-height: 1.25; }
    .wx-day-hour-bits { font-size: 0.64rem; color: #a8b5a4; font-weight: 600; line-height: 1.3; }
    .wx-day-hour-body { padding: 0 0.55rem 0.6rem; }
    .wx-day-hour-body[hidden] { display: none !important; }
    .wx-day-hour-open-btn {
      width: 100%; margin-top: 0.35rem; font-size: 0.68rem !important; padding: 0.4rem !important;
    }

    .premium-day-card,
    .forecast-day-card { background: rgba(12, 22, 11, 0.85); border: 1px solid rgba(74, 110, 60, 0.4); border-radius: 12px; margin-bottom: 0.85rem; overflow: hidden; }
    .premium-day-header,
    .forecast-day-header { padding: 0.65rem 0.85rem; background: rgba(20, 36, 18, 0.95); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--surface-border); cursor: pointer; }
    .wx-details-btn { font-size: 0.68rem; color: var(--accent); font-weight: 800; padding: 0.2rem 0.45rem; border: 1px solid rgba(134, 239, 172, 0.35); border-radius: 999px; }
    .horizontal-scroll-slots { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 0.85rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
    .horizontal-scroll-slots::-webkit-scrollbar { display: none; }
    .day-slot-pill {
      flex: 0 0 122px; background: rgba(10, 18, 10, 0.9); border: 1px solid var(--surface-border);
      border-radius: 10px; padding: 0.5rem 0.35rem; text-align: center; scroll-snap-align: start;
      color: inherit; font: inherit; cursor: pointer; position: relative; overflow: hidden;
      display: flex; flex-direction: column; align-items: center; gap: 0;
      isolation: isolate;
    }
    .day-slot-pill .pressure-cell, .day-slot-pill .wind-cell { justify-content: center; }
    .day-slot-pill .wind-dir-label { display: none; }
    .wx-pill-bg {
      position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
      border-radius: inherit; opacity: 0.52;
    }
    .wx-pill-canvas {
      position: absolute; inset: 0; z-index: 0; pointer-events: none;
      border-radius: inherit; display: block;
    }
    .wx-pill-fx {
      position: absolute; pointer-events: none; display: block;
    }
    /* Canvas gère les particules : désactiver les couches CSS redondantes */
    .day-slot-pill.wx-canvas-particles .wx-pill-bg::before,
    .day-slot-pill.wx-canvas-particles .wx-pill-bg::after,
    .day-slot-pill.wx-canvas-particles .wx-pill-fx {
      display: none !important;
      animation: none !important;
    }
    /* Canvas gère soleil / lune / nuages : adoucir le CSS pour éviter le double rendu */
    .day-slot-pill.wx-canvas-scene .wx-pill-bg {
      opacity: 0.28;
    }
    .day-slot-pill.wx-canvas-scene .wx-pill-bg::before,
    .day-slot-pill.wx-canvas-scene .wx-pill-bg::after,
    .day-slot-pill.wx-canvas-scene .wx-pill-fx {
      opacity: 0.25;
    }
    .wx-pill-content {
      position: relative; z-index: 1;
      display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
      width: 100%; text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.45);
    }
    .wx-pill-hour { font-size: 0.72rem; color: #f0fdf4; font-weight: 800; }
    .wx-pill-emoji { font-size: 1.05rem; line-height: 1.15; }
    .wx-pill-temp { font-size: 0.82rem; font-weight: 900; color: var(--accent); }
    .wx-pill-wind { font-size: 0.6rem; color: #cbd5e1; font-weight: 700; }
    .wx-pill-humidity { font-size: 0.58rem; color: #a5b4fc; font-weight: 700; }
    .wx-pill-rain { font-size: 0.58rem; color: #7dd3fc; font-weight: 700; }
    .wx-pill-pressure { font-size: 0.6rem; font-weight: 800; color: #e2e8f0; margin-top: 0.05rem; }

    /* Arrière-plans météo animés (CSS léger, derrière le texte) */
    .wx-pill-bg::before,
    .wx-pill-bg::after {
      content: ''; position: absolute; pointer-events: none;
    }

    /* ——— SOLEIL ——— */
    .wx-visual-sunny .wx-pill-bg {
      background:
        radial-gradient(circle at 78% 12%, rgba(254,249,195,0.85) 0 22px, transparent 48px),
        radial-gradient(circle at 78% 12%, rgba(250,204,21,0.4) 0 42px, transparent 68px),
        linear-gradient(165deg, rgba(250,204,21,0.28), transparent 58%);
    }
    .wx-visual-sunny .wx-pill-bg::before {
      width: 48px; height: 48px; border-radius: 50%;
      top: 0; right: 0;
      background:
        radial-gradient(circle at 38% 32%, #fffef5 0%, #fef9c3 18%, #fde047 42%, #facc15 70%, #eab308 100%);
      box-shadow:
        0 0 0 4px rgba(254,240,138,0.45),
        0 0 22px 12px rgba(250,204,21,0.7),
        0 0 44px 22px rgba(253,224,71,0.42),
        0 0 64px 32px rgba(250,204,21,0.22);
      animation: wx-sun-pulse 5.5s ease-in-out infinite;
      opacity: 1;
    }
    .wx-visual-sunny .wx-pill-bg::after {
      width: 72px; height: 72px; border-radius: 50%;
      top: -12px; right: -12px;
      background: conic-gradient(
        from 0deg,
        transparent 0deg, rgba(253,224,71,0.4) 10deg, transparent 20deg,
        transparent 45deg, rgba(250,204,21,0.32) 55deg, transparent 65deg,
        transparent 90deg, rgba(253,224,71,0.38) 100deg, transparent 110deg,
        transparent 135deg, rgba(250,204,21,0.28) 145deg, transparent 155deg,
        transparent 180deg, rgba(253,224,71,0.35) 190deg, transparent 200deg,
        transparent 225deg, rgba(250,204,21,0.3) 235deg, transparent 245deg,
        transparent 270deg, rgba(253,224,71,0.36) 280deg, transparent 290deg,
        transparent 315deg, rgba(250,204,21,0.28) 325deg, transparent 335deg
      );
      opacity: 0.7;
      animation: wx-sun-rays 18s linear infinite;
    }
    .wx-visual-sunny .wx-pill-fx-a {
      width: 56px; height: 56px; border-radius: 50%;
      top: -4px; right: -4px;
      background: radial-gradient(circle, rgba(254,249,195,0.5) 0%, rgba(253,224,71,0.2) 45%, transparent 72%);
      animation: wx-sun-halo 6s ease-in-out infinite;
    }
    .wx-visual-sunny .wx-pill-fx-b {
      width: 64px; height: 64px; border-radius: 50%;
      top: -8px; right: -8px;
      background: radial-gradient(circle, transparent 35%, rgba(250,204,21,0.18) 50%, transparent 70%);
      animation: wx-sun-halo 7.5s ease-in-out infinite reverse;
      opacity: 0.8;
    }
    @keyframes wx-sun-pulse {
      0%, 100% { opacity: 0.9; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.06); }
    }
    @keyframes wx-sun-rays {
      0% { transform: rotate(0deg); opacity: 0.55; }
      50% { opacity: 0.75; }
      100% { transform: rotate(360deg); opacity: 0.55; }
    }
    @keyframes wx-sun-halo {
      0%, 100% { opacity: 0.5; transform: scale(1); }
      50% { opacity: 0.85; transform: scale(1.12); }
    }

    /* ——— NUIT + LUNE ——— */
    .wx-visual-clear-night .wx-pill-bg {
      background:
        radial-gradient(circle at 78% 14%, rgba(226,232,240,0.35) 0 16px, transparent 34px),
        linear-gradient(180deg, rgba(15,23,42,0.6), rgba(30,41,59,0.22) 45%, transparent 70%);
    }
    .wx-visual-clear-night .wx-pill-bg::before {
      width: 32px; height: 32px; border-radius: 50%;
      top: 4px; right: 6px;
      background:
        radial-gradient(circle at 30% 26%, #ffffff 0%, #f8fafc 38%, #e2e8f0 70%, #94a3b8 100%);
      box-shadow:
        inset -7px -5px 0 2px rgba(30,41,59,0.5),
        inset 2px 2px 4px rgba(255,255,255,0.7),
        0 0 0 2px rgba(226,232,240,0.25),
        0 0 16px 7px rgba(248,250,252,0.5),
        0 0 30px 14px rgba(148,163,184,0.25);
      animation: wx-moon-glow 7s ease-in-out infinite;
      opacity: 1;
      z-index: 2;
    }
    .wx-visual-clear-night .wx-pill-fx-a {
      width: 2px; height: 2px; border-radius: 50%;
      top: 18px; left: 14%;
      background: rgba(248,250,252,0.85);
      box-shadow:
        22px 12px 0 0 rgba(248,250,252,0.55),
        48px 28px 0 0.5px rgba(226,232,240,0.45),
        10px 40px 0 0 rgba(248,250,252,0.4),
        60px 8px 0 0 rgba(226,232,240,0.35),
        35px 48px 0 0 rgba(248,250,252,0.3);
      opacity: 0.7;
      z-index: 1;
    }
    .wx-visual-clear-night .wx-pill-bg::after {
      width: 46px; height: 46px; border-radius: 50%;
      top: -3px; right: -1px;
      background: radial-gradient(circle, rgba(226,232,240,0.35) 0%, transparent 68%);
      animation: wx-moon-halo 8s ease-in-out infinite;
      z-index: 1;
    }
    @keyframes wx-moon-glow {
      0%, 100% { opacity: 0.7; }
      50% { opacity: 0.95; }
    }
    @keyframes wx-moon-halo {
      0%, 100% { opacity: 0.35; transform: scale(1); }
      50% { opacity: 0.55; transform: scale(1.1); }
    }

    /* ——— SOLEIL + NUAGES ——— */
    .wx-visual-partly .wx-pill-bg {
      background:
        radial-gradient(circle at 80% 12%, rgba(254,249,195,0.55) 0 14px, transparent 30px),
        linear-gradient(160deg, rgba(148,163,184,0.14), transparent 52%);
    }
    .wx-visual-partly .wx-pill-bg::before {
      width: 30px; height: 30px; border-radius: 50%;
      top: 3px; right: 4px;
      background:
        radial-gradient(circle at 40% 35%, #fffbeb 0%, #fef08a 30%, #fde047 55%, #facc15 78%, rgba(250,204,21,0.2) 100%);
      box-shadow:
        0 0 14px 6px rgba(250,204,21,0.5),
        0 0 28px 12px rgba(253,224,71,0.28);
      animation: wx-sun-pulse 6s ease-in-out infinite;
      z-index: 0;
    }
    .wx-visual-partly .wx-pill-fx-a,
    .wx-visual-partly .wx-pill-fx-b,
    .wx-visual-partly .wx-pill-fx-c,
    .wx-visual-cloudy .wx-pill-fx-a,
    .wx-visual-cloudy .wx-pill-fx-b,
    .wx-visual-cloudy .wx-pill-fx-c,
    .wx-visual-overcast .wx-pill-fx-a,
    .wx-visual-overcast .wx-pill-fx-b,
    .wx-visual-overcast .wx-pill-fx-c,
    .wx-visual-thunder .wx-pill-fx-a,
    .wx-visual-thunder .wx-pill-fx-b {
      border-radius: 50%;
      filter: blur(0.3px);
    }
    /* Nuage proche (masse irrégulière via box-shadow) */
    .wx-visual-partly .wx-pill-fx-a {
      width: 24px; height: 15px; top: 22px; left: 2%;
      background: rgba(241,245,249,0.55);
      box-shadow:
        11px -5px 0 3px rgba(226,232,240,0.5),
        22px 1px 0 1px rgba(241,245,249,0.48),
        8px 6px 0 2px rgba(203,213,225,0.4),
        -7px 2px 0 1px rgba(226,232,240,0.42);
      animation: wx-cloud-drift-a 14s ease-in-out infinite;
      z-index: 1; opacity: 0.92;
    }
    .wx-visual-partly .wx-pill-fx-b {
      width: 18px; height: 11px; top: 38px; left: 36%;
      background: rgba(226,232,240,0.42);
      box-shadow:
        9px -3px 0 2px rgba(203,213,225,0.38),
        16px 1px 0 0 rgba(226,232,240,0.34),
        -5px 1px 0 0 rgba(148,163,184,0.3);
      animation: wx-cloud-drift-b 18s ease-in-out infinite;
      opacity: 0.8;
    }
    .wx-visual-partly .wx-pill-fx-c {
      width: 13px; height: 9px; top: 12px; left: 46%;
      background: rgba(241,245,249,0.38);
      box-shadow:
        7px -2px 0 1px rgba(226,232,240,0.34),
        12px 1px 0 0 rgba(203,213,225,0.3);
      animation: wx-cloud-drift-c 22s ease-in-out infinite;
      opacity: 0.65;
    }
    .wx-visual-partly .wx-pill-bg::after {
      width: 20px; height: 11px; border-radius: 50%;
      top: 50px; left: 16%;
      background: rgba(203,213,225,0.32);
      box-shadow: 8px -2px 0 1px rgba(148,163,184,0.26), 14px 1px 0 0 rgba(203,213,225,0.24);
      animation: wx-cloud-drift-b 16s ease-in-out infinite reverse;
      opacity: 0.6;
    }

    /* ——— NUAGEUX ——— */
    .wx-visual-cloudy .wx-pill-bg {
      background: linear-gradient(180deg, rgba(148,163,184,0.38), rgba(100,116,139,0.16) 50%, transparent 70%);
    }
    .wx-visual-cloudy .wx-pill-fx-a {
      width: 36px; height: 20px; top: 6px; left: -10%;
      background: rgba(248,250,252,0.72);
      box-shadow:
        14px -7px 0 5px rgba(241,245,249,0.68),
        30px -1px 0 3px rgba(248,250,252,0.62),
        9px 8px 0 3px rgba(226,232,240,0.55),
        -10px 3px 0 2px rgba(241,245,249,0.55),
        38px 6px 0 1px rgba(203,213,225,0.48),
        22px 10px 0 0 rgba(226,232,240,0.42);
      animation: wx-cloud-drift-a 16s ease-in-out infinite;
      opacity: 1;
    }
    .wx-visual-cloudy .wx-pill-fx-b {
      width: 28px; height: 16px; top: 26px; left: 22%;
      background: rgba(241,245,249,0.65);
      box-shadow:
        13px -5px 0 3px rgba(226,232,240,0.58),
        24px 1px 0 2px rgba(241,245,249,0.52),
        -8px 3px 0 2px rgba(203,213,225,0.48),
        18px 7px 0 1px rgba(226,232,240,0.45),
        6px -8px 0 1px rgba(248,250,252,0.4);
      animation: wx-cloud-drift-b 20s ease-in-out infinite;
      opacity: 0.95;
    }
    .wx-visual-cloudy .wx-pill-fx-c {
      width: 20px; height: 12px; top: 48px; left: 4%;
      background: rgba(226,232,240,0.58);
      box-shadow:
        10px -4px 0 2px rgba(203,213,225,0.52),
        17px 1px 0 1px rgba(226,232,240,0.48),
        -6px 2px 0 1px rgba(148,163,184,0.42),
        8px 6px 0 0 rgba(203,213,225,0.4);
      animation: wx-cloud-drift-c 24s ease-in-out infinite;
      opacity: 0.88;
    }
    .wx-visual-cloudy .wx-pill-bg::before {
      width: 26px; height: 15px; border-radius: 50%;
      top: 12px; left: 48%;
      background: rgba(248,250,252,0.58);
      box-shadow:
        11px -4px 0 3px rgba(226,232,240,0.52),
        20px 1px 0 1px rgba(241,245,249,0.48),
        -7px 2px 0 1px rgba(203,213,225,0.42),
        14px 6px 0 0 rgba(226,232,240,0.4);
      animation: wx-cloud-drift-a 19s ease-in-out infinite reverse;
      opacity: 0.9;
    }
    .wx-visual-cloudy .wx-pill-bg::after {
      width: 18px; height: 11px; border-radius: 50%;
      top: 56px; left: 38%;
      background: rgba(203,213,225,0.5);
      box-shadow:
        9px -3px 0 2px rgba(148,163,184,0.45),
        14px 1px 0 0 rgba(226,232,240,0.4),
        -4px 2px 0 0 rgba(100,116,139,0.35);
      animation: wx-cloud-drift-b 22s ease-in-out infinite;
      opacity: 0.8;
    }
    @keyframes wx-cloud-drift-a {
      0% { transform: translateX(0) translateY(0); }
      40% { transform: translateX(14px) translateY(-1px); }
      70% { transform: translateX(8px) translateY(1px); }
      100% { transform: translateX(0) translateY(0); }
    }
    @keyframes wx-cloud-drift-b {
      0% { transform: translateX(0) translateY(0); }
      35% { transform: translateX(-10px) translateY(1px); }
      65% { transform: translateX(6px) translateY(-1px); }
      100% { transform: translateX(0) translateY(0); }
    }
    @keyframes wx-cloud-drift-c {
      0% { transform: translateX(0); }
      50% { transform: translateX(12px); }
      100% { transform: translateX(0); }
    }

    /* ——— COUVERT ——— */
    .wx-visual-overcast .wx-pill-bg {
      background: linear-gradient(180deg, rgba(100,116,139,0.38), rgba(71,85,105,0.18) 55%, transparent);
    }
    .wx-visual-overcast .wx-pill-fx-a {
      width: 34px; height: 18px; top: 6px; left: -8%;
      background: rgba(100,116,139,0.5);
      box-shadow:
        14px -5px 0 3px rgba(71,85,105,0.46),
        28px 1px 0 1px rgba(100,116,139,0.42),
        6px 7px 0 2px rgba(51,65,85,0.4),
        -10px 2px 0 1px rgba(71,85,105,0.36);
      animation: wx-cloud-drift-a 18s ease-in-out infinite;
      opacity: 0.95;
    }
    .wx-visual-overcast .wx-pill-fx-b {
      width: 26px; height: 14px; top: 24px; left: 22%;
      background: rgba(71,85,105,0.44);
      box-shadow:
        12px -4px 0 2px rgba(51,65,85,0.4),
        22px 1px 0 0 rgba(100,116,139,0.36),
        -8px 3px 0 1px rgba(51,65,85,0.34);
      animation: wx-cloud-drift-b 22s ease-in-out infinite;
      opacity: 0.85;
    }
    .wx-visual-overcast .wx-pill-fx-c {
      width: 20px; height: 11px; top: 42px; left: 5%;
      background: rgba(51,65,85,0.4);
      box-shadow:
        9px -3px 0 1px rgba(71,85,105,0.36),
        16px 1px 0 0 rgba(51,65,85,0.32);
      animation: wx-cloud-drift-c 26s ease-in-out infinite;
      opacity: 0.7;
    }
    .wx-visual-overcast .wx-pill-bg::before {
      width: 22px; height: 12px; border-radius: 50%;
      top: 14px; left: 50%;
      background: rgba(100,116,139,0.4);
      box-shadow: 10px -3px 0 2px rgba(71,85,105,0.36), 16px 1px 0 0 rgba(51,65,85,0.3);
      animation: wx-cloud-drift-a 20s ease-in-out infinite reverse;
    }
    .wx-visual-overcast .wx-pill-bg::after {
      width: 16px; height: 9px; border-radius: 50%;
      top: 50px; left: 40%;
      background: rgba(51,65,85,0.36);
      box-shadow: 7px -2px 0 1px rgba(30,41,59,0.3);
      animation: wx-cloud-drift-b 24s ease-in-out infinite;
    }

    /* ——— PLUIE / FORTE PLUIE / ORAGE — gouttes verticales ——— */
    .wx-visual-rain .wx-pill-bg,
    .wx-visual-heavyrain .wx-pill-bg,
    .wx-visual-thunder .wx-pill-bg {
      background: linear-gradient(180deg, rgba(56,189,248,0.12), rgba(14,116,144,0.08) 45%, transparent 70%);
    }
    /* Gouttes verticales via couches CSS (pas de barres horizontales) */
    .wx-visual-rain .wx-pill-bg::before,
    .wx-visual-heavyrain .wx-pill-bg::before,
    .wx-visual-thunder .wx-pill-bg::before {
      /* couche dense de gouttes verticales (pseudo-éléments box-shadow) */
      display: none;
    }
    .wx-visual-rain .wx-pill-fx-a,
    .wx-visual-heavyrain .wx-pill-fx-a,
    .wx-visual-thunder .wx-pill-fx-a,
    .wx-visual-rain .wx-pill-fx-b,
    .wx-visual-heavyrain .wx-pill-fx-b,
    .wx-visual-thunder .wx-pill-fx-b,
    .wx-visual-rain .wx-pill-fx-c,
    .wx-visual-heavyrain .wx-pill-fx-c {
      top: -40%;
      width: 2px;
      border-radius: 999px;
      background: linear-gradient(180deg,
        rgba(255,255,255,0.15) 0%,
        rgba(186,230,253,0.95) 25%,
        rgba(125,211,252,0.9) 70%,
        rgba(56,189,248,0.2) 100%);
      transform: none;
      opacity: 0.9;
    }
    .wx-visual-rain .wx-pill-fx-a,
    .wx-visual-heavyrain .wx-pill-fx-a,
    .wx-visual-thunder .wx-pill-fx-a {
      left: 8%; height: 11px;
      box-shadow:
        10px 14px 0 0 rgba(186,230,253,0.9),
        22px 4px 0 0 rgba(125,211,252,0.85),
        34px 28px 0 0 rgba(147,197,253,0.8),
        46px 10px 0 0 rgba(186,230,253,0.85),
        58px 36px 0 0 rgba(125,211,252,0.75),
        70px 18px 0 0 rgba(186,230,253,0.8),
        6px 44px 0 0 rgba(125,211,252,0.7),
        18px 58px 0 0 rgba(186,230,253,0.8),
        30px 48px 0 0 rgba(147,197,253,0.75),
        42px 68px 0 0 rgba(125,211,252,0.7),
        54px 54px 0 0 rgba(186,230,253,0.75),
        66px 72px 0 0 rgba(125,211,252,0.65),
        14px 80px 0 0 rgba(186,230,253,0.6),
        38px 88px 0 0 rgba(147,197,253,0.6),
        50px 96px 0 0 rgba(125,211,252,0.55),
        26px 104px 0 0 rgba(186,230,253,0.5);
      animation: wx-rain-drops 0.9s linear infinite;
    }
    .wx-visual-rain .wx-pill-fx-b,
    .wx-visual-heavyrain .wx-pill-fx-b,
    .wx-visual-thunder .wx-pill-fx-b {
      left: 18%; height: 14px;
      width: 1.5px;
      box-shadow:
        12px 20px 0 0 rgba(125,211,252,0.85),
        24px 6px 0 0 rgba(186,230,253,0.8),
        36px 32px 0 0 rgba(147,197,253,0.8),
        48px 12px 0 0 rgba(125,211,252,0.75),
        60px 40px 0 0 rgba(186,230,253,0.7),
        8px 50px 0 0 rgba(125,211,252,0.7),
        20px 62px 0 0 rgba(186,230,253,0.75),
        32px 54px 0 0 rgba(147,197,253,0.7),
        44px 74px 0 0 rgba(125,211,252,0.65),
        56px 58px 0 0 rgba(186,230,253,0.7),
        68px 78px 0 0 rgba(125,211,252,0.6),
        16px 90px 0 0 rgba(186,230,253,0.55),
        40px 98px 0 0 rgba(147,197,253,0.55),
        28px 108px 0 0 rgba(125,211,252,0.5);
      animation: wx-rain-drops 1.15s linear infinite;
      animation-delay: -0.35s;
      opacity: 0.8;
    }
    .wx-visual-rain .wx-pill-fx-c,
    .wx-visual-heavyrain .wx-pill-fx-c {
      left: 28%; height: 8px;
      width: 2px;
      box-shadow:
        11px 10px 0 0 rgba(186,230,253,0.8),
        23px 26px 0 0 rgba(125,211,252,0.75),
        35px 8px 0 0 rgba(147,197,253,0.75),
        47px 34px 0 0 rgba(186,230,253,0.7),
        59px 16px 0 0 rgba(125,211,252,0.7),
        71px 42px 0 0 rgba(186,230,253,0.65),
        9px 52px 0 0 rgba(125,211,252,0.65),
        21px 66px 0 0 rgba(186,230,253,0.7),
        33px 56px 0 0 rgba(147,197,253,0.65),
        45px 78px 0 0 rgba(125,211,252,0.6),
        57px 64px 0 0 rgba(186,230,253,0.65),
        17px 88px 0 0 rgba(125,211,252,0.55),
        41px 96px 0 0 rgba(186,230,253,0.5);
      animation: wx-rain-drops 1.35s linear infinite;
      animation-delay: -0.7s;
      opacity: 0.75;
    }
    .wx-visual-heavyrain .wx-pill-fx-a,
    .wx-visual-heavyrain .wx-pill-fx-b,
    .wx-visual-heavyrain .wx-pill-fx-c {
      opacity: 1;
    }
    .wx-visual-heavyrain .wx-pill-fx-a { animation-duration: 0.65s; }
    .wx-visual-heavyrain .wx-pill-fx-b { animation-duration: 0.8s; }
    .wx-visual-heavyrain .wx-pill-fx-c { animation-duration: 0.95s; }
    @keyframes wx-rain-drops {
      0% { transform: translateY(-30%); opacity: 0.15; }
      8% { opacity: 0.95; }
      92% { opacity: 0.85; }
      100% { transform: translateY(120%); opacity: 0.05; }
    }

    /* Orage : nuages denses + pluie + éclair subtil */
    .wx-visual-thunder .wx-pill-fx-c {
      width: 36px; height: 16px; top: 4px; left: -6%;
      border-radius: 50%;
      background: rgba(51,65,85,0.5);
      box-shadow:
        14px -4px 0 3px rgba(30,41,59,0.48),
        28px 1px 0 1px rgba(51,65,85,0.42),
        6px 6px 0 2px rgba(15,23,42,0.4);
      animation: wx-cloud-drift-a 20s ease-in-out infinite;
      opacity: 0.85;
    }
    .wx-visual-thunder .wx-pill-bg::after {
      width: 12px; height: 20px; top: 28%; left: 58%;
      background:
        linear-gradient(135deg, transparent 42%, rgba(254,240,138,0.55) 42% 48%, transparent 48%),
        linear-gradient(225deg, transparent 44%, rgba(250,204,21,0.4) 44% 50%, transparent 50%);
      opacity: 0;
      animation: wx-flash 6.5s ease-in-out infinite;
      filter: blur(0.4px);
    }
    @keyframes wx-flash {
      0%, 90%, 100% { opacity: 0; }
      91.5% { opacity: 0.45; }
      92.5% { opacity: 0.08; }
      93.5% { opacity: 0.35; }
      95% { opacity: 0; }
    }

    /* ——— NEIGE ——— */
    .wx-visual-snow .wx-pill-bg {
      background: linear-gradient(180deg, rgba(226,232,240,0.22), transparent 55%);
    }
    .wx-visual-snow .wx-pill-bg::before {
      inset: -40% 0 0 0; width: 100%; height: 160%;
      background-image:
        radial-gradient(circle, rgba(248,250,252,0.9) 0 1.6px, transparent 2px),
        radial-gradient(circle, rgba(226,232,240,0.75) 0 1.1px, transparent 1.5px),
        radial-gradient(circle, rgba(248,250,252,0.65) 0 0.8px, transparent 1.2px);
      background-size: 16px 20px, 12px 16px, 20px 24px;
      background-position: 0 0, 7px 8px, 3px 12px;
      opacity: 0.6;
      animation: wx-snow-fall 3.4s linear infinite;
    }
    .wx-visual-snow .wx-pill-fx-a {
      inset: -50% 0 0 0; width: 100%; height: 170%;
      background-image:
        radial-gradient(circle, rgba(248,250,252,0.8) 0 1.3px, transparent 1.8px),
        radial-gradient(circle, rgba(226,232,240,0.55) 0 0.9px, transparent 1.3px);
      background-size: 22px 26px, 14px 18px;
      background-position: 4px 0, 11px 10px;
      opacity: 0.45;
      animation: wx-snow-drift 4.8s linear infinite;
    }
    .wx-visual-snow .wx-pill-fx-b {
      inset: -30% 0 0 0; width: 100%; height: 150%;
      background-image:
        radial-gradient(circle, rgba(255,255,255,0.7) 0 1px, transparent 1.4px);
      background-size: 18px 22px;
      background-position: 2px 6px;
      opacity: 0.4;
      animation: wx-snow-drift 5.6s linear infinite reverse;
    }
    @keyframes wx-snow-fall {
      0% { transform: translateY(-12%) translateX(0); }
      100% { transform: translateY(14%) translateX(4px); }
    }
    @keyframes wx-snow-drift {
      0% { transform: translateY(-10%) translateX(-3px); }
      100% { transform: translateY(16%) translateX(6px); }
    }

    /* ——— BROUILLARD ——— */
    .wx-visual-fog .wx-pill-bg {
      background: linear-gradient(180deg, rgba(203,213,225,0.28), rgba(148,163,184,0.14) 45%, transparent);
    }
    .wx-visual-fog .wx-pill-bg::before {
      inset: 15% -20% 25% -20%;
      background: rgba(226,232,240,0.22);
      filter: blur(6px);
      animation: wx-fog-drift 7s ease-in-out infinite;
    }
    .wx-visual-fog .wx-pill-bg::after {
      inset: 40% -15% 10% -15%;
      background: rgba(148,163,184,0.18);
      filter: blur(5px);
      animation: wx-fog-drift 9s ease-in-out infinite reverse;
    }
    @keyframes wx-fog-drift {
      0%, 100% { transform: translateX(-4%); opacity: 0.4; }
      50% { transform: translateX(6%); opacity: 0.65; }
    }
    @media (prefers-reduced-motion: reduce) {
      .wx-pill-bg::before,
      .wx-pill-bg::after,
      .wx-pill-fx {
        animation: none !important;
      }
    }

    .wx-location-bar {
      display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
      margin: 0.35rem 0 0.55rem; flex-wrap: wrap;
    }
    .wx-location-current { min-width: 0; flex: 1; }
    .wx-location-mode {
      display: inline-block; font-size: 0.58rem; font-weight: 800; color: #86efac;
      background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
      border-radius: 999px; padding: 0.1rem 0.45rem; margin-bottom: 0.2rem;
    }
    .wx-location-name { font-size: 0.78rem; font-weight: 800; color: #f0fdf4; }
    .wx-gps-btn { font-size: 0.62rem !important; padding: 0.25rem 0.5rem !important; align-items: center; gap: 0.25rem; }
    .wx-search-row { display: flex; gap: 0.4rem; margin-bottom: 0.35rem; }
    .wx-search-row input[type="search"] {
      flex: 1; font-size: 0.75rem; padding: 0.45rem 0.65rem; min-width: 0;
    }
    .wx-search-results {
      display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.65rem;
      max-height: 180px; overflow-y: auto;
    }
    .wx-search-hint { font-size: 0.65rem; color: var(--text-muted); font-style: italic; padding: 0.35rem 0.2rem; }
    .wx-search-result {
      display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
      width: 100%; text-align: left; cursor: pointer; border-radius: 8px;
      border: 1px solid var(--surface-border); background: rgba(10,18,10,0.85);
      color: #f0fdf4; padding: 0.45rem 0.55rem; font: inherit;
    }
    .wx-search-result-name { font-size: 0.75rem; font-weight: 800; }
    .wx-search-result-meta { font-size: 0.6rem; color: var(--text-muted); font-weight: 600; }

    .wx-hour-detail-modal { max-width: min(420px, 94vw); margin: auto; }
    .wx-detail-groups { display: flex; flex-direction: column; gap: 0.55rem; }
    .wx-detail-group {
      background: rgba(10,18,10,0.7); border: 1px solid var(--surface-border);
      border-radius: 10px; padding: 0.55rem 0.65rem;
    }
    .wx-detail-group h4 {
      margin: 0 0 0.4rem; font-size: 0.72rem; font-weight: 800; color: var(--accent);
    }
    .wx-detail-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.5rem;
    }
    .wx-detail-grid > div {
      display: flex; flex-direction: column; gap: 0.1rem;
      font-size: 0.62rem; color: var(--text-muted);
    }
    .wx-detail-grid b { font-size: 0.72rem; color: #f0fdf4; font-weight: 800; }
    .wx-detail-aqi, .wx-detail-alerts { font-size: 0.7rem; color: #e2e8f0; line-height: 1.35; }
    .wx-alert-item { margin-bottom: 0.4rem; }
    .wx-alert-desc { font-size: 0.62rem; color: var(--text-muted); margin-top: 0.15rem; }

    @media (max-width: 480px) {
      .day-slot-pill { flex-basis: 112px; }
      .wx-detail-grid { grid-template-columns: 1fr 1fr; }
    }

    .map-wrapper { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--surface-border); height: 210px; min-height: 210px; background: #142410; width: 100%; display: block; }
    #tacticalMap, #rodModalMap, #pastSessionMap, #analysisMap { width: 100% !important; height: 100% !important; position: absolute; inset: 0; z-index: 1; }

    /* ——— Carte & repérage : agrandir / orientation ——— */
    .carp-map-slot { margin-bottom: 0.5rem; }
    .carp-map-frame {
      position: relative;
      width: 100%;
      /* Empêche les panes Leaflet (z-index jusqu’à 1000) de recouvrir le FAB */
      isolation: isolate;
    }
    .carp-map-frame > .map-wrapper {
      margin-bottom: 0;
    }
    .carp-map-expand-fab {
      position: absolute; top: 0.45rem; right: 0.45rem;
      /* Au-dessus des contrôles Leaflet (.leaflet-top = 1000) */
      z-index: 1100;
      width: 2.65rem; height: 2.65rem; min-width: 2.65rem; min-height: 2.65rem;
      border-radius: 10px; border: 1px solid rgba(134, 239, 172, 0.65);
      background: rgba(8, 16, 8, 0.94); color: #86efac;
      font-size: 1.1rem; font-weight: 800; cursor: pointer;
      display: inline-flex !important; align-items: center; justify-content: center;
      -webkit-tap-highlight-color: transparent; touch-action: manipulation;
      box-shadow: 0 2px 10px rgba(0,0,0,0.45);
      pointer-events: auto;
    }
    .carp-map-expand-fab:hover,
    .carp-map-expand-fab:focus-visible {
      background: rgba(34, 197, 94, 0.28);
      outline: 2px solid #86efac;
      outline-offset: 2px;
    }
    .carp-map-expand-fab:active { background: rgba(34, 197, 94, 0.35); }
    /* Bouton sous la carte : visible PC + tactile (style CTA explicite) */
    .carp-map-expand-under {
      display: flex !important; align-items: center; justify-content: center; gap: 0.4rem;
      width: 100% !important; margin-top: 0.5rem; min-height: 2.75rem;
      border-radius: 10px;
      font-size: 0.78rem !important; font-weight: 800 !important;
      padding: 0.55rem 0.75rem !important;
      -webkit-tap-highlight-color: transparent; touch-action: manipulation;
      cursor: pointer; pointer-events: auto;
      visibility: visible !important; opacity: 1 !important;
    }
    .carp-map-expand-placeholder {
      height: 220px; min-height: 220px; border-radius: var(--radius);
      border: 1px dashed rgba(134, 239, 172, 0.35);
      background: rgba(10, 18, 10, 0.65);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
    }
    .carp-map-expand {
      position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0;
      width: 100%; max-width: none; height: 100%; height: 100dvh; min-height: 100%;
      z-index: 1000010;
      display: none; flex-direction: column;
      background: #0a120a;
      margin: 0;
      padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
      visibility: visible; pointer-events: auto;
      box-sizing: border-box;
    }
    body.carp-map-expand-open .carp-map-expand {
      display: flex !important;
      visibility: visible !important;
      pointer-events: auto !important;
    }
    /* Sécurité : [hidden] ne doit pas gagner contre le mode ouvert */
    body.carp-map-expand-open .carp-map-expand[hidden] {
      display: flex !important;
    }
    .carp-map-expand-inner {
      flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
      padding: 0.35rem 0.4rem 0.35rem; gap: 0.3rem;
    }
    .carp-map-expand-top {
      display: flex; align-items: flex-start; gap: 0.4rem; flex: 0 0 auto;
    }
    .carp-map-expand-close {
      width: 2.5rem; height: 2.5rem; border-radius: 999px; border: none;
      background: rgba(0, 0, 0, 0.45); color: #86efac; font-size: 1.4rem;
      line-height: 1; cursor: pointer; flex: 0 0 auto;
    }
    .carp-map-expand-titles { flex: 1 1 auto; min-width: 0; }
    .carp-map-expand-titles h3 {
      margin: 0; font-size: 0.88rem; font-weight: 900; color: #86efac;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .carp-map-expand-titles p {
      margin: 0.1rem 0 0; font-size: 0.58rem; color: var(--text-muted);
    }
    .carp-map-expand-orient {
      flex: 0 0 auto; min-height: 2.5rem; padding: 0.35rem 0.55rem;
      border-radius: 10px; border: 1px solid rgba(134, 239, 172, 0.4);
      background: rgba(20, 40, 20, 0.9); color: #ecfccb;
      font-size: 0.62rem; font-weight: 800; cursor: pointer;
      display: inline-flex; align-items: center; gap: 0.25rem;
      white-space: nowrap; -webkit-tap-highlight-color: transparent;
    }
    .carp-map-expand-orient[aria-pressed="true"] {
      background: rgba(34, 197, 94, 0.22); border-color: rgba(134, 239, 172, 0.7);
    }
    .carp-map-expand-host {
      flex: 1 1 auto; min-height: 0; position: relative;
      border-radius: 12px; overflow: hidden;
      border: 1px solid rgba(74, 110, 60, 0.45); background: #142410;
    }
    .carp-map-wrapper--expanded {
      position: absolute !important; inset: 0 !important;
      width: 100% !important; height: 100% !important;
      min-height: 0 !important; margin: 0 !important;
      border-radius: 0 !important; border: none !important;
    }
    body.carp-map-expand-open .carp-map-expand-fab,
    body.carp-map-expand-open .carp-map-expand-under,
    body.carp-map-expand-open .carp-map-frame { display: none !important; }
    .carp-map-slot--past { margin-bottom: 0.15rem; }
    .past-session-pin-icon {
      background: transparent !important;
      border: none !important;
    }
    .past-session-pin {
      pointer-events: none;
    }
    .carp-map-expand-hint {
      flex: 0 0 auto; margin: 0; font-size: 0.58rem; color: #facc15;
      text-align: center; line-height: 1.3;
    }
    @media (orientation: landscape) and (max-height: 480px) {
      .carp-map-expand-inner { padding: 0.2rem 0.3rem; gap: 0.2rem; }
      .carp-map-expand-titles h3 { font-size: 0.78rem; }
      .carp-map-expand-close { width: 2.2rem; height: 2.2rem; }
      .carp-map-expand-orient { min-height: 2.2rem; font-size: 0.58rem; }
    }

    #fileProtocolBanner {
      display: none; flex-shrink: 0; z-index: 55; background: rgba(250, 204, 21, 0.12);
      border-bottom: 1px solid rgba(250, 204, 21, 0.45); color: #fde68a; font-size: 0.68rem;
      font-weight: 700; padding: 0.45rem 0.75rem; line-height: 1.35; gap: 0.5rem; align-items: flex-start;
    }
    #fileProtocolBanner.visible { display: flex; }
    #fileProtocolBanner button {
      background: none; border: 1px solid rgba(250, 204, 21, 0.5); color: #fde68a; border-radius: 6px;
      font-size: 0.6rem; font-weight: 800; padding: 0.15rem 0.4rem; cursor: pointer; flex-shrink: 0;
    }

    .catch-item { background: rgba(12, 20, 11, 0.65); border: 1px solid var(--surface-border); border-radius: 10px; padding: 0.65rem 0.85rem; display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
    .catch-tag { font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 5px; background: rgba(45, 71, 32, 0.4); color: #86efac; }

    .modal-overlay {
      position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
      background: rgba(5, 10, 5, 0.96); backdrop-filter: blur(10px); z-index: 2000; display: none; flex-direction: column; padding: 0.5rem;
      padding-top: calc(var(--sat) + 0.4rem); padding-bottom: calc(var(--sab) + 0.4rem); box-sizing: border-box;
    }
    .modal-content { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); width: 100%; max-height: 100%; overflow-y: auto; padding: 0.6rem; display: flex; flex-direction: column; }

    .subtabs-bar { display: flex; gap: 0.35rem; background: rgba(10, 18, 10, 0.8); border: 1px solid var(--surface-border); border-radius: 10px; padding: 0.25rem; margin-bottom: 0.85rem; }
    .subtab-btn { flex: 1; background: none; border: none; color: var(--text-muted); padding: 0.45rem 0.2rem; font-size: 0.68rem; font-weight: 700; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.2rem; }
    .subtab-btn.active { background: var(--surface); color: #f0fdf4; border: 1px solid var(--surface-border); }

    /* ——— Sélecteur mode de pêche (compact, sous lieu / débit) ——— */
    .session-mode-seg {
      display: flex; width: 100%; box-sizing: border-box;
      margin: 0 0 0.55rem; padding: 2px; gap: 2px;
      border: 1px solid rgba(74, 110, 60, 0.4);
      border-radius: 8px; background: rgba(8, 14, 8, 0.55);
    }
    .session-mode-seg-opt {
      flex: 1 1 0; min-width: 0;
      display: flex; align-items: center; justify-content: center;
      margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
      border-radius: 6px; min-height: 2rem;
    }
    .session-mode-seg-opt input {
      position: absolute; opacity: 0; width: 1px; height: 1px;
      margin: 0; pointer-events: none;
    }
    .session-mode-seg-opt span {
      display: block; width: 100%; text-align: center;
      padding: 0.32rem 0.35rem;
      font-size: 0.68rem; font-weight: 700; line-height: 1.2;
      color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      border-radius: 6px;
    }
    .session-mode-seg-opt:has(input:checked) span,
    .session-mode-seg-opt.is-selected span {
      color: #ecfccb; font-weight: 800;
      background: rgba(34, 197, 94, 0.22);
      box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.4);
    }
    .session-mode-seg-opt:focus-within span {
      outline: 2px solid rgba(134, 239, 172, 0.55);
      outline-offset: 1px;
    }
    /* Legacy (si encore référencé) */
    .session-mode-fieldset, .session-mode-choices, .session-mode-choice,
    .session-mode-hint, .session-mode-legend { display: none !important; }

    .stalking-active-panel {
      margin-top: 0.65rem; padding: 0.45rem 0.5rem;
      border-radius: 8px; border: 1px solid rgba(134, 239, 172, 0.35);
      background: rgba(20, 40, 20, 0.55);
    }
    .stalking-status { font-size: 0.72rem; color: #ecfccb; line-height: 1.35; }
    .stalking-status--between { color: #fde68a; }
    .stalking-muted { font-size: 0.62rem; color: var(--text-muted); font-weight: 600; }
    .stalking-meta { font-size: 0.62rem; color: #86efac; font-weight: 700; margin-top: 0.25rem; }
    .stalking-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
    .stalking-btn { font-size: 0.65rem !important; padding: 0.35rem 0.55rem !important; min-height: 2rem; }
    .stalking-badge { font-size: 0.85rem; }
    .stalking-mode-chip {
      display: inline-flex; align-items: center; gap: 0.2rem;
      margin-left: 0.35rem; padding: 0.1rem 0.4rem;
      border-radius: 999px; font-size: 0.58rem; font-weight: 800;
      background: rgba(34, 197, 94, 0.18); border: 1px solid rgba(134, 239, 172, 0.4);
      color: #bbf7d0; vertical-align: middle; white-space: nowrap;
    }
    .stalking-feed-tag {
      display: inline-block; margin-left: 0.25rem; padding: 0.05rem 0.3rem;
      border-radius: 4px; font-size: 0.55rem; font-weight: 800;
      background: rgba(134, 239, 172, 0.12); color: #86efac;
      border: 1px solid rgba(134, 239, 172, 0.25);
    }
    .stalking-history-summary {
      margin-bottom: 0.55rem; padding: 0.45rem 0.5rem;
      border-radius: 8px; border: 1px solid rgba(134, 239, 172, 0.3);
      background: rgba(8, 16, 8, 0.65);
    }
    .stalking-history-summary-title {
      font-size: 0.7rem; font-weight: 800; color: #bbf7d0; margin-bottom: 0.25rem;
    }
    .stalking-post-chrono {
      margin: 0.2rem 0 0; padding-left: 1.1rem;
      font-size: 0.62rem; color: #d1fae5; line-height: 1.45;
    }
    .stalking-post-pin {
      width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.65rem; font-weight: 900; color: #052e16;
      background: #86efac; border: 2px solid #14532d;
      box-shadow: 0 1px 4px rgba(0,0,0,0.45);
    }
    .stalking-post-pin.is-active {
      background: #facc15; border-color: #854d0e; color: #422006;
    }
    .stalking-post-map-icon { background: transparent !important; border: none !important; }

    .history-filters-bar {
      display: flex; flex-direction: column; gap: 0.4rem;
      background: rgba(8, 14, 8, 0.92); border: 1px solid var(--surface-border);
      border-radius: 10px; padding: 0.5rem 0.55rem; margin-bottom: 0.7rem;
    }
    .history-filter-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-end; }
    .history-filter-field { display: flex; flex-direction: column; gap: 0.18rem; flex: 1 1 7.5rem; min-width: 0; }
    .history-filter-label {
      font-size: 0.58rem; font-weight: 800; letter-spacing: 0.03em;
      text-transform: uppercase; color: var(--text-muted);
    }
    .history-filter-select {
      width: 100%; box-sizing: border-box;
      background: #000; color: #f0fdf4; border: 1px solid rgba(90, 122, 70, 0.65);
      border-radius: 8px; padding: 0.42rem 0.45rem; font-size: 0.72rem; font-weight: 700;
      min-height: 2.35rem;
    }
    .history-filter-reset {
      flex: 0 0 auto; align-self: flex-end;
      font-size: 0.62rem !important; padding: 0.42rem 0.55rem !important;
      min-height: 2.35rem;
    }
    .history-result-count {
      font-size: 0.65rem; font-weight: 700; color: #86efac; margin-top: 0.05rem;
    }
    .history-group-header {
      font-size: 0.75rem; font-weight: 800; color: #facc15;
      margin: 0.5rem 0 0.3rem 0; display: flex; align-items: center; gap: 0.25rem;
    }
    .history-year-subheader {
      font-size: 0.65rem; font-weight: 800; color: #7dd3fc;
      margin: 0.25rem 0 0.2rem 0.15rem;
    }
    .history-stats-box { margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.55rem; }
    .history-stats-card {
      background: rgba(8, 14, 8, 0.95); border: 1px solid var(--surface-border);
      border-radius: 10px; padding: 0.55rem 0.6rem;
    }
    .history-stats-title {
      font-size: 0.72rem; font-weight: 800; color: #e8d5a3;
      margin-bottom: 0.4rem; letter-spacing: 0.02em;
    }
    .history-stats-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
    }
    .history-stats-item {
      background: #000; border: 1px solid rgba(90, 122, 70, 0.45);
      border-radius: 8px; padding: 0.35rem 0.4rem;
      font-size: 0.62rem; color: var(--text-muted); font-weight: 700;
    }
    .history-stats-item b { color: #f0fdf4; font-weight: 800; display: block; margin-top: 0.1rem; font-size: 0.72rem; }
    .history-stats-item--wide { grid-column: 1 / -1; }
    .history-stats-legend, .history-stats-note {
      margin-top: 0.4rem; font-size: 0.58rem; line-height: 1.35; color: #94a3b8;
    }
    .history-stats-note { color: #facc15; font-weight: 700; }
    .history-stats-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .history-stats-table {
      width: 100%; border-collapse: collapse; font-size: 0.62rem; min-width: 280px;
    }
    .history-stats-table th, .history-stats-table td {
      border-bottom: 1px solid rgba(90, 122, 70, 0.35);
      padding: 0.35rem 0.3rem; text-align: left; color: #f0fdf4; white-space: nowrap;
    }
    .history-stats-table th { color: #c4a35a; font-weight: 800; }
    .history-stats-table td:not(:first-child), .history-stats-table th:not(:first-child) { text-align: right; }
    .history-empty-filter { padding: 0.75rem 0.4rem; }

    .history-spot-entry {
      width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 0.5rem;
      text-align: left; cursor: pointer;
      background: rgba(8, 14, 8, 0.95); border: 1px solid var(--surface-border);
      border-radius: 10px; padding: 0.7rem 0.75rem; margin-bottom: 0.5rem;
      color: #f0fdf4; font: inherit;
    }
    .history-spot-entry:active { border-color: rgba(134, 239, 172, 0.55); }
    .history-spot-entry-main { flex: 1; min-width: 0; }
    .history-spot-entry-title {
      font-size: 0.82rem; font-weight: 800; color: #facc15;
      display: flex; align-items: center; gap: 0.25rem;
    }
    .history-spot-entry-meta {
      font-size: 0.65rem; font-weight: 700; color: var(--text-muted); margin-top: 0.2rem;
    }
    .history-spot-entry-chevron {
      flex: 0 0 auto; font-size: 1.4rem; font-weight: 800; color: #86efac; line-height: 1;
    }
    .history-spot-detail { display: flex; flex-direction: column; gap: 0.55rem; }
    .history-spot-detail-bar {
      display: flex; flex-direction: column; gap: 0.4rem;
      background: rgba(8, 14, 8, 0.95); border: 1px solid var(--surface-border);
      border-radius: 10px; padding: 0.55rem 0.6rem;
    }
    .history-spot-back {
      align-self: flex-start; font-size: 0.65rem !important; padding: 0.35rem 0.6rem !important;
    }
    .history-spot-detail-title {
      font-size: 0.88rem; font-weight: 900; color: #facc15;
      display: flex; align-items: center; gap: 0.3rem;
    }
    .history-spot-detail-note {
      font-size: 0.58rem; line-height: 1.35; color: #94a3b8; font-weight: 600;
    }
    .history-spot-detail-note b { color: #c4a35a; }
    .history-spot-cm-card { margin: 0; }
    .history-spot-sessions-title {
      font-size: 0.72rem; font-weight: 800; color: #e8d5a3; margin: 0.15rem 0 0.1rem;
    }

    .history-demo-banner {
      display: none; flex-direction: column; gap: 0.35rem;
      background: rgba(120, 53, 15, 0.35); border: 1px solid rgba(251, 191, 36, 0.65);
      border-radius: 10px; padding: 0.55rem 0.65rem; margin-bottom: 0.55rem;
    }
    .history-demo-banner[style*="display: flex"],
    .history-demo-banner.is-visible { display: flex !important; }
    .history-demo-banner strong {
      font-size: 0.68rem; font-weight: 900; color: #fde68a; letter-spacing: 0.02em;
    }
    .history-demo-banner span {
      font-size: 0.6rem; line-height: 1.35; color: #fef3c7; font-weight: 600;
    }
    .history-demo-chip {
      display: inline-block; margin-top: 0.2rem;
      font-size: 0.55rem; font-weight: 900; letter-spacing: 0.03em;
      color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.55);
      border-radius: 6px; padding: 0.12rem 0.35rem; background: rgba(0,0,0,0.45);
    }
    .history-spot-entry--demo {
      border-color: rgba(251, 191, 36, 0.55);
      box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.12);
    }

    /* Per-chart compact nav: visual controls on each card, one shared scrollX */
    .chart-nav {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      flex: 0 0 auto;
      margin-left: auto;
    }
    .chart-nav-btn {
      box-sizing: border-box;
      flex: 0 0 auto;
      width: 44px;
      height: 40px;
      min-width: 44px;
      min-height: 40px;
      margin: 0;
      padding: 2px;
      display: block;
      border: 1px solid rgba(90, 122, 70, 0.72);
      border-radius: 10px;
      background:
        linear-gradient(145deg, rgba(58, 78, 42, 0.95) 0%, rgba(28, 40, 18, 0.98) 48%, rgba(42, 58, 28, 0.92) 100%);
      box-shadow:
        0 1px 0 rgba(180, 200, 140, 0.1) inset,
        0 1px 4px rgba(0, 0, 0, 0.3);
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      appearance: none;
      -webkit-appearance: none;
      color: inherit;
      font: inherit;
      transition: border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    }
    .chart-nav-btn-face {
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      border-radius: 8px;
      border: 1px solid rgba(74, 110, 60, 0.32);
      background: linear-gradient(180deg, #0a120a 0%, #050805 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
      pointer-events: none; /* entire <button> is the hit target */
    }
    .chart-nav-arrow {
      pointer-events: none;
      font-size: 1.05rem;
      font-weight: 800;
      line-height: 1;
      color: #86efac;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
      user-select: none;
    }
    .chart-nav-btn:hover:not(:disabled) {
      border-color: rgba(134, 239, 172, 0.55);
      filter: brightness(1.07);
    }
    .chart-nav-btn:hover:not(:disabled) .chart-nav-arrow { color: #bbf7d0; }
    .chart-nav-btn:active:not(:disabled) {
      filter: brightness(0.92);
      transform: translateY(1px);
    }
    .chart-nav-btn:focus-visible {
      outline: 2px solid rgba(134, 239, 172, 0.65);
      outline-offset: 2px;
    }
    .chart-nav-btn:disabled {
      opacity: 0.38;
      cursor: default;
      filter: grayscale(0.25);
      box-shadow: none;
    }
    .chart-nav-btn:disabled .chart-nav-arrow { color: #64748b; }
    @media (min-width: 640px) {
      .chart-nav { gap: 0.35rem; }
      .chart-nav-btn { width: 46px; height: 40px; min-width: 46px; min-height: 40px; }
      .chart-nav-arrow { font-size: 1.1rem; }
    }
    .tactical-chart-card {
      background: rgba(10, 18, 10, 0.9); border: 1px solid var(--surface-border); border-radius: 12px;
      padding: 0.65rem 0.7rem 0.7rem; margin-bottom: 0.85rem; position: relative;
      overflow: visible;
    }
    .chart-card-toolbar {
      display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.5rem;
      margin-bottom: 0.35rem; font-size: 0.68rem; font-weight: 700;
    }
    .chart-card-toolbar > strong { min-width: 0; flex: 1 1 auto; }
    .chart-readout {
      flex: 1 1 100%; text-align: left; min-width: 0; font-weight: 600;
      order: 3;
    }
    @media (min-width: 520px) {
      .chart-readout {
        flex: 1 1 auto; text-align: right; order: 0; min-width: 8rem;
      }
      .chart-nav { order: 2; }
    }
    .chart-scroll-viewport {
      overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain; border-radius: 8px;
      /* Navigation via ← → (and optional finger pan) — hide the awkward scrollbar */
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .chart-scroll-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .chart-canvas {
      min-width: 100%; height: 220px !important; background: rgba(5, 10, 5, 0.85); border-radius: 8px;
      display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
    }
    .chart-canvas.is-panning { cursor: grabbing; }

    /* ——— Sélecteur de paramètres (Météo / Historique) ——— */
    .carp-param-chips {
      display: flex; flex-wrap: nowrap; gap: 0.3rem; overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
      scrollbar-width: none; margin: 0 0 0.4rem; padding: 0.1rem 0 0.25rem;
      touch-action: pan-x;
    }
    .carp-param-chips::-webkit-scrollbar { display: none; height: 0; }
    .carp-param-chip {
      flex: 0 0 auto; min-height: 2rem; padding: 0.28rem 0.55rem;
      border-radius: 999px; border: 1px solid rgba(134, 239, 172, 0.28);
      background: rgba(8, 16, 8, 0.75); color: #d1fae5;
      font-size: 0.62rem; font-weight: 800; cursor: pointer;
      white-space: nowrap; -webkit-tap-highlight-color: transparent;
    }
    .carp-param-chip.is-active {
      background: rgba(34, 197, 94, 0.22); border-color: rgba(134, 239, 172, 0.75);
      color: #ecfccb; box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.25);
    }
    .carp-param-chip:focus-visible { outline: 2px solid #86efac; outline-offset: 2px; }
    .carp-chart-expand-btn {
      flex: 0 0 auto; min-height: 2rem; padding: 0.28rem 0.55rem;
      border-radius: 8px; border: 1px solid rgba(134, 239, 172, 0.4);
      background: rgba(20, 40, 20, 0.85); color: #86efac;
      font-size: 0.62rem; font-weight: 800; cursor: pointer;
      white-space: nowrap; -webkit-tap-highlight-color: transparent;
    }
    .carp-chart-expand-btn:active { background: rgba(34, 197, 94, 0.25); }
    /* Agrandir discret (analyse météo) — icône seule, sans trait séparateur */
    .carp-chart-expand-btn--quiet {
      min-height: 1.55rem; min-width: 1.55rem; width: 1.55rem; height: 1.55rem;
      padding: 0; border: 1px solid transparent; border-radius: 6px;
      background: transparent; color: rgba(134, 239, 172, 0.55);
      font-size: 0.78rem; font-weight: 700; line-height: 1;
      display: inline-flex; align-items: center; justify-content: center;
    }
    .carp-chart-expand-btn--quiet:hover,
    .carp-chart-expand-btn--quiet:focus-visible {
      border-color: rgba(134, 239, 172, 0.35);
      background: rgba(20, 40, 20, 0.45); color: #86efac;
      outline: none;
    }
    .carp-chart-expand-btn--quiet:active {
      background: rgba(34, 197, 94, 0.18); color: #bbf7d0;
    }

    /* ——— Vue agrandie / paysage graphiques ——— */
    .carp-chart-ls {
      position: fixed; inset: 0; z-index: 1000000;
      display: none; flex-direction: column;
      background: #0a120a;
      padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    }
    body.carp-chart-landscape-open .carp-chart-ls { display: flex !important; }
    .carp-chart-ls-inner {
      flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
      padding: 0.35rem 0.45rem 0.4rem; gap: 0.3rem;
    }
    .carp-chart-ls-top {
      display: flex; align-items: flex-start; gap: 0.45rem; flex: 0 0 auto;
    }
    .carp-chart-ls-close {
      width: 2.4rem; height: 2.4rem; border-radius: 999px; border: none;
      background: rgba(0, 0, 0, 0.45); color: #86efac; font-size: 1.35rem;
      line-height: 1; cursor: pointer; flex: 0 0 auto;
    }
    .carp-chart-ls-titles { flex: 1 1 auto; min-width: 0; }
    .carp-chart-ls-titles h3 {
      margin: 0; font-size: 0.88rem; font-weight: 900; color: #86efac;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .carp-chart-ls-titles p {
      margin: 0.1rem 0 0; font-size: 0.62rem; color: var(--text-muted);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .carp-chart-ls-controls {
      flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.28rem; min-height: 0;
    }
    .carp-chart-ls-daybar {
      display: flex; align-items: center; gap: 0.35rem;
    }
    .carp-chart-ls-daybar .wx-week-nav-btn,
    .carp-chart-ls-nav-btn {
      width: 2.4rem; height: 2.4rem; min-width: 2.4rem; border-radius: 10px;
      border: 1px solid rgba(134, 239, 172, 0.35); background: rgba(8, 16, 8, 0.85);
      color: #86efac; font-size: 1.25rem; font-weight: 800; cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center;
    }
    .carp-chart-ls-nav-btn:disabled { opacity: 0.35; cursor: default; }
    .carp-chart-ls-daylabel {
      flex: 1 1 auto; text-align: center; font-size: 0.72rem; font-weight: 800; color: #ecfccb;
      min-width: 0;
    }
    .carp-chart-ls-stage {
      flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0.2rem;
    }
    .carp-chart-ls-scroll {
      flex: 1 1 auto; min-height: 0; overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
      border-radius: 10px; background: rgba(5, 10, 5, 0.9);
      border: 1px solid rgba(74, 110, 60, 0.4);
      scrollbar-width: none;
    }
    .carp-chart-ls-scroll::-webkit-scrollbar { display: none; }
    .carp-chart-ls-canvas {
      display: block; width: 100%; height: 100%;
      touch-action: none; background: transparent;
    }
    .carp-chart-ls-readout {
      flex: 0 0 auto; font-size: 0.62rem; font-weight: 700; color: #94a3b8;
      min-height: 1rem; padding: 0 0.15rem;
    }
    .carp-chart-ls-hint {
      flex: 0 0 auto; margin: 0; font-size: 0.58rem; color: #facc15;
      text-align: center; line-height: 1.3;
    }
    @media (orientation: landscape) and (max-height: 480px) {
      .carp-chart-ls-inner { padding: 0.2rem 0.35rem 0.25rem; gap: 0.2rem; }
      .carp-chart-ls-titles h3 { font-size: 0.78rem; }
      .carp-chart-ls-close { width: 2.1rem; height: 2.1rem; font-size: 1.2rem; }
      .carp-param-chip { min-height: 1.75rem; font-size: 0.58rem; padding: 0.2rem 0.45rem; }
    }

    .session-conditions-card {
      margin-bottom: 0.55rem;
      border-color: rgba(74, 110, 60, 0.55);
      padding: 0.7rem 0.75rem 0.75rem;
    }
    .session-conditions-title {
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.04em;
      color: #86efac;
      margin-bottom: 0.45rem;
    }
    .session-conditions-row {
      font-size: 0.78rem;
      color: #f0fdf4;
      font-weight: 600;
      line-height: 1.45;
      margin-bottom: 0.18rem;
    }
    .session-conditions-sun {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 1.1rem;
      align-items: baseline;
    }
    .session-conditions-sun span {
      color: #f0fdf4;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.02em;
    }
    .session-conditions-details-btn {
      margin-top: 0.55rem;
      width: 100%;
      padding: 0.55rem 0.75rem;
      font-size: 0.78rem;
      font-weight: 800;
      min-height: 42px;
    }
    .session-weather-details-body {
      overflow-y: auto;
      max-height: 68vh;
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
      padding-right: 0.15rem;
    }
    .swd-section {
      background: rgba(10, 18, 10, 0.72);
      border: 1px solid var(--surface-border);
      border-radius: 10px;
      padding: 0.6rem 0.7rem;
    }
    .swd-section h4 {
      margin: 0 0 0.35rem;
      font-size: 0.72rem;
      font-weight: 800;
      color: #86efac;
      letter-spacing: 0.03em;
    }
    .swd-section.swd-prediction h4 { color: #fde68a; }
    .swd-line {
      font-size: 0.74rem;
      color: #f0fdf4;
      line-height: 1.45;
      margin-bottom: 0.15rem;
    }
    .swd-line b { color: #fff; font-weight: 800; }
    .swd-muted { color: var(--text-muted); font-size: 0.68rem; margin-top: 0.25rem; line-height: 1.4; }
    .swd-prediction-score {
      display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap;
      margin: 0.15rem 0 0.25rem;
    }
    .swd-prediction-score .pct { font-size: 1.25rem; font-weight: 900; color: #f0fdf4; }

    .timeline-event-row { display: flex; gap: 0.65rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid rgba(74, 110, 60, 0.15); font-size: 0.75rem; cursor: pointer; }
    .timeline-event-row:hover { background: rgba(255,255,255,0.02); }

    .locked-feature-banner {
      background: rgba(10, 18, 10, 0.9); border: 1.5px dashed var(--gold); border-radius: 10px; padding: 1.2rem; text-align: center; margin-top: 0.5rem;
    }

    #onboardingModal {
      position: fixed; inset: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
      background: rgba(5, 10, 5, 0.98); backdrop-filter: blur(14px); z-index: 99999; display: none; flex-direction: column; padding: 1.5rem; justify-content: space-between; box-sizing: border-box;
      padding-top: calc(var(--sat) + 1rem); padding-bottom: calc(var(--sab) + 1rem);
    }
    .slide-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex: 1; padding: 0.5rem 0; position: relative; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .slide-logo-container { width: 100%; display: flex; justify-content: center; margin-bottom: 0.45rem; }
    .slide-logo-small { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; border: 1px solid rgba(74, 110, 60, 0.4); background: rgba(10, 18, 10, 0.7); }
    .slide-logo-large { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; border: 1px solid rgba(74, 110, 60, 0.5); background: rgba(10, 18, 10, 0.85); box-shadow: 0 4px 20px rgba(34,197,94,0.3); margin-bottom: 0.45rem; }
    .slide-title-banner { max-height: 28px; width: auto; max-width: 88%; object-fit: contain; margin-bottom: 0.55rem; }
    .slide-feature-icon { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; border: 1px solid rgba(74, 110, 60, 0.45); background: rgba(10, 18, 10, 0.8); }
    .slide-shot { width: min(100%, 320px); max-height: 34vh; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid rgba(74, 110, 60, 0.4); margin-top: 0.35rem; box-shadow: 0 6px 18px rgba(0,0,0,0.4); }
    .slide-title { font-size: 1.08rem; font-weight: 900; color: #facc15; margin-bottom: 0.45rem; padding: 0 0.25rem; }
    .slide-desc { font-size: 0.74rem; color: #f0fdf4; line-height: 1.45; margin-bottom: 0.55rem; max-width: 360px; padding: 0 0.35rem; }
    .dots-container { display: flex; gap: 5px; justify-content: center; margin-bottom: 0.75rem; flex-wrap: wrap; }
    .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: all 0.3s; }
    .dot.active { width: 20px; border-radius: 4px; background: var(--accent); }
    .onboarding-footer { display: flex; gap: 0.5rem; width: 100%; align-items: center; }

    /* —— Notice illustrée —— */
    .notice-modal { align-items: stretch; justify-content: stretch; padding: 0.35rem; }
    .notice-modal-content {
      max-height: 100%; height: 100%; display: flex; flex-direction: column;
      padding: 0.55rem; gap: 0.4rem;
    }
    .notice-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; flex-shrink: 0; }
    .notice-modal-brand { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
    .notice-modal-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; border: 1px solid rgba(74,110,60,0.4); background: rgba(10,18,10,0.75); flex-shrink: 0; }
    .notice-modal-header h3 { margin: 0; font-size: 0.92rem; font-weight: 900; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .notice-close-btn { background: none; border: none; color: var(--accent); font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 0.15rem 0.35rem; }
    .notice-toc {
      display: flex; gap: 0.35rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
      padding: 0.15rem 0 0.35rem; flex-shrink: 0; scrollbar-width: thin;
    }
    .notice-toc-btn {
      flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.28rem;
      background: rgba(12, 22, 11, 0.9); border: 1px solid var(--surface-border); color: var(--text-muted);
      border-radius: 999px; padding: 0.28rem 0.55rem; font-size: 0.62rem; font-weight: 800; cursor: pointer; white-space: nowrap;
    }
    .notice-toc-btn.active { border-color: var(--accent); color: #e2fbd7; background: rgba(34,197,94,0.14); }
    .notice-toc-icon { width: 16px; height: 16px; object-fit: contain; }
    .notice-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 0.15rem; }
    .notice-section { margin-bottom: 1.25rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(74,110,60,0.25); }
    .notice-section:last-child { border-bottom: none; }
    .notice-section h2 { margin: 0 0 0.45rem; font-size: 0.95rem; font-weight: 900; color: #facc15; }
    .notice-section h3 { margin: 0.7rem 0 0.3rem; font-size: 0.78rem; font-weight: 800; color: #86efac; }
    .notice-section p { margin: 0 0 0.45rem; font-size: 0.72rem; line-height: 1.45; color: #e8f5e4; }
    .notice-steps, .notice-list { margin: 0.25rem 0 0.55rem; padding-left: 1.1rem; font-size: 0.72rem; line-height: 1.45; color: #e8f5e4; }
    .notice-steps li, .notice-list li { margin-bottom: 0.28rem; }
    .notice-shot {
      display: block; width: 100%; max-width: 420px; height: auto; max-height: 52vh;
      object-fit: contain; object-position: top; border-radius: 12px;
      border: 1px solid rgba(74,110,60,0.4); margin: 0.45rem 0 0.25rem; background: rgba(8,14,8,0.85);
    }
    .notice-caption { font-size: 0.62rem !important; color: var(--text-muted) !important; margin-top: 0 !important; }
    .notice-warn { color: #fde68a !important; }
    .notice-inline-icon { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 0.15rem; }
    .notice-hero { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin-bottom: 0.65rem; }
    .notice-hero-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 14px; border: 1px solid rgba(74,110,60,0.45); background: rgba(10,18,10,0.8); }
    .notice-hero-title { max-height: 30px; width: auto; max-width: 90%; object-fit: contain; }
    .notice-replay-box {
      margin-top: 0.75rem; padding: 0.7rem; border-radius: 12px; border: 1px solid rgba(34,197,94,0.35);
      background: rgba(34,197,94,0.08); text-align: center;
    }
    .notice-modal-footer { display: flex; gap: 0.45rem; flex-shrink: 0; padding-top: 0.2rem; }
    .notice-section code { font-size: 0.62rem; color: #bbf7d0; }

    .catch-share-modal { max-height: 96vh; }
    .catch-share-format-bar { display: flex; gap: 0.4rem; margin-bottom: 0.55rem; }
    .catch-share-format-btn {
      flex: 1; background: rgba(12, 22, 11, 0.85); border: 1px solid var(--surface-border); color: var(--text-muted);
      border-radius: 10px; padding: 0.45rem 0.35rem; font-size: 0.68rem; font-weight: 800; cursor: pointer;
    }
    .catch-share-format-btn.active {
      background: rgba(250, 204, 21, 0.14); border-color: rgba(250, 204, 21, 0.55); color: #facc15;
    }
    .catch-share-preview-frame {
      width: 100%; display: flex; justify-content: center; align-items: center;
      background: rgba(5, 10, 5, 0.9); border: 1px solid var(--surface-border); border-radius: 12px;
      padding: 0.55rem; margin-bottom: 0.45rem; min-height: 220px;
    }
    .catch-share-preview-frame.is-story .catch-share-preview-canvas { max-height: 52vh; }
    .catch-share-preview-frame.is-post .catch-share-preview-canvas { max-height: 42vh; }
    .catch-share-preview-canvas {
      display: block; border-radius: 10px; touch-action: none; cursor: grab;
      box-shadow: 0 8px 24px rgba(0,0,0,0.45); background: #0a120a; max-width: 100%;
    }
    .catch-share-preview-canvas:active { cursor: grabbing; }
    .catch-share-hint { font-size: 0.62rem; color: var(--text-muted); line-height: 1.35; margin: 0 0 0.45rem; }
    .catch-share-zoom-row {
      display: grid; grid-template-columns: auto 1fr auto; gap: 0.45rem; align-items: center;
      margin-bottom: 0.55rem; font-size: 0.68rem; color: var(--text-muted); font-weight: 700;
    }
    .catch-share-zoom-row input[type="range"] { width: 100%; accent-color: #facc15; }
    .catch-share-upload-wrap { margin-bottom: 0.55rem; }
    .catch-share-actions { display: flex; flex-direction: column; gap: 0.4rem; }
    .catch-share-media-section {
      margin: 0.35rem 0 0.65rem;
      padding: 0.5rem 0.55rem;
      border: 1px solid rgba(74, 110, 60, 0.4);
      border-radius: 10px;
      background: rgba(8, 16, 8, 0.45);
    }
    .catch-share-media-title {
      font-size: 0.72rem;
      font-weight: 800;
      color: #86efac;
      margin: 0 0 0.2rem;
    }
    .catch-share-media-note {
      font-size: 0.58rem;
      color: var(--text-muted);
      margin: 0 0 0.45rem;
      line-height: 1.35;
    }
    .catch-share-media-list {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      margin-top: 0.45rem;
      max-height: 220px;
      overflow-y: auto;
    }
    .catch-share-media-empty {
      font-size: 0.58rem;
      color: var(--text-muted);
      font-style: italic;
      margin: 0.35rem 0 0;
    }
    .catch-share-media-item {
      display: grid;
      grid-template-columns: 4.2rem 1fr auto;
      gap: 0.4rem;
      align-items: center;
      padding: 0.3rem;
      border-radius: 8px;
      background: rgba(10, 18, 10, 0.75);
      border: 1px solid rgba(74, 110, 60, 0.3);
    }
    .catch-share-media-thumb {
      width: 4.2rem;
      height: 3rem;
      object-fit: cover;
      border-radius: 6px;
      background: #0a120a;
      display: block;
    }
    video.catch-share-media-thumb { object-fit: contain; }
    .catch-share-media-name {
      font-size: 0.62rem;
      font-weight: 700;
      color: #e2e8f0;
      word-break: break-all;
      line-height: 1.25;
    }
    .catch-share-media-size {
      font-size: 0.55rem;
      color: var(--text-muted);
      margin-top: 0.1rem;
    }
    .catch-share-media-remove {
      font-size: 0.55rem !important;
      padding: 0.25rem 0.4rem !important;
      white-space: nowrap;
    }
    .catch-share-media-msg {
      font-size: 0.58rem;
      color: #fbbf24;
      margin: 0.4rem 0 0;
      line-height: 1.35;
      min-height: 0.8rem;
    }
    .live-feed-share-btn {
      background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.4); color: #facc15;
      border-radius: 6px; font-size: 0.58rem; font-weight: 800; padding: 0.12rem 0.35rem; cursor: pointer; flex-shrink: 0;
    }

/*
 * Petites icônes INTERNES uniquement (.ui-icon*).
 * NE PAS modifier .nav-icon / .nav-icon-wrapper / nav.bottom-nav ici.
 */
.ui-icon {
  width: 1.78em;
  height: 1.78em;
  object-fit: contain;
  vertical-align: -0.32em;
  display: inline-block;
  flex-shrink: 0;
  /* Contraste de base ; renforcement ciblé dans css/carp-fx.css (sans agrandir) */
  filter: drop-shadow(0 1px 2.5px rgba(0, 0, 0, 0.7)) brightness(1.16) contrast(1.08);
}
.ui-icon-sm {
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
  vertical-align: -0.2em;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)) brightness(1.14);
}
.ui-icon-md {
  width: 2.15em;
  height: 2.15em;
  object-fit: contain;
  vertical-align: -0.36em;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2.5px rgba(0, 0, 0, 0.65)) brightness(1.16) contrast(1.08);
}
.ui-icon-lg {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6)) brightness(1.14);
}
.ui-icon-xl {
  width: 3.85rem;
  height: 3.85rem;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.6)) brightness(1.15);
}
.card-title .ui-icon,
.card-title .ui-icon-md {
  margin-right: 0.32rem;
}
label .ui-icon {
  margin-right: 0.18rem;
}
.subtab-btn .ui-icon,
.subtab-btn .ui-icon-md {
  width: 1.6em;
  height: 1.6em;
  margin-right: 0.2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)) brightness(1.15) contrast(1.08);
}
.btn .ui-icon,
.btn-secondary .ui-icon,
.btn-tactical .ui-icon,
.live-feed-share-btn .ui-icon {
  width: 1.5em;
  height: 1.5em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)) brightness(1.15);
}
/* Pastille discrète derrière les icônes dans titres / labels sombres */
.card-title .ui-icon,
.card-header .ui-icon,
.card-header .ui-icon-md {
  background: radial-gradient(circle, rgba(12, 22, 11, 0.9) 40%, transparent 74%);
  border-radius: 50%;
  padding: 0.1em;
  box-sizing: content-box;
}
/* Labels de formulaires : un peu plus d’air autour de l’icône */
label .ui-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)) brightness(1.16) contrast(1.08);
}
.map-emoji-icon .ui-icon,
.map-emoji-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
}

.map-emoji-icon img {
  width: 82% !important;
  height: 82% !important;
  object-fit: contain;
  display: block;
  margin: auto;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)) brightness(1.08);
}
/* Marqueurs carte : ne pas écraser les tailles inline des helpers makeRod/PostDivIcon */
.leaflet-div-icon.custom-rod-icon,
.leaflet-div-icon.custom-post-icon,
.leaflet-div-icon.custom-gps-red-marker {
  background: transparent !important;
  border: none !important;
}
.leaflet-div-icon.custom-rod-icon img,
.leaflet-div-icon.custom-post-icon img,
.leaflet-div-icon.custom-gps-red-marker img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  display: block;
  margin: auto;
  filter: brightness(1.12);
}

/* ═══════════════════════════════════════════════════════════
   Podium Palmarès — marches 3D or / argent / bronze (v2)
   Styles scopés sous #podiumContainer / .carp-podium-*
   Hauteurs : or (centre) > argent (gauche) > bronze (droite)
   Lumière cohérente : haut-gauche → bas-droite
   ═══════════════════════════════════════════════════════════ */
#podiumContainer.carp-podium {
  --podium-gold-hi: #fff6c2;
  --podium-gold-mid: #f0c94a;
  --podium-gold-deep: #b8860b;
  --podium-gold-shade: #6b4a0a;
  --podium-silver-hi: #ffffff;
  --podium-silver-mid: #c8d0da;
  --podium-silver-deep: #7b8794;
  --podium-silver-shade: #3d4654;
  --podium-bronze-hi: #f3d0a8;
  --podium-bronze-mid: #c67b3a;
  --podium-bronze-deep: #8a4f24;
  --podium-bronze-shade: #4a2a14;
  --podium-light: rgba(255, 255, 255, 0.38);
  --podium-shade: rgba(0, 0, 0, 0.42);
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0.1rem 0 0.15rem;
  padding: 0.7rem 0.6rem 0.8rem;
  overflow: visible;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 55% 42% at 50% 12%, rgba(250, 204, 21, 0.16), transparent 70%),
    radial-gradient(ellipse 95% 55% at 50% 100%, rgba(8, 14, 8, 0.96), transparent 65%),
    linear-gradient(168deg, #101a0e 0%, #1c2c16 46%, #0c120a 100%);
  border: 1px solid rgba(74, 110, 60, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -24px 48px rgba(0, 0, 0, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.28);
}
#podiumContainer.carp-podium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.09;
  background-image:
    repeating-linear-gradient(
      125deg,
      transparent 0 3px,
      rgba(255, 255, 255, 0.035) 3px 4px,
      transparent 4px 9px
    ),
    radial-gradient(circle at 20% 80%, rgba(68, 104, 48, 0.35), transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(45, 71, 32, 0.3), transparent 40%);
  overflow: hidden;
}

.carp-podium-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr);
  align-items: end;
  column-gap: 0.4rem;
  width: 100%;
  min-height: 14.5rem;
  padding: 0.2rem 0.25rem 0;
  perspective: 900px;
  perspective-origin: 50% 80%;
}

/* Colonnes : --step-h UNIQUEMENT ici (hérité par .carp-podium-block) */
.carp-podium-column {
  --step-h: 2.75rem;
  --step-top: 16px;
  --step-side: 13px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.carp-podium-column.bronze { --step-h: 2.7rem; }
.carp-podium-column.silver { --step-h: 4.45rem; }
.carp-podium-column.gold { --step-h: 7.05rem; }

.carp-podium-column:not(.empty) { cursor: pointer; }
.carp-podium-column:not(.empty):focus-visible .carp-podium-block-front {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.carp-podium-column:not(.empty):active .carp-podium-athlete {
  transform: translateY(1px) scale(0.985);
}

/* Infos capture au-dessus de la marche */
.carp-podium-athlete {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 100%;
  max-width: 100%;
  padding: 0 0.1rem 0.4rem;
  text-align: center;
  transition: transform 0.18s ease;
}
.carp-podium-column.gold .carp-podium-athlete { padding-bottom: 0.5rem; }

.carp-podium-medal-wrap {
  width: 1.95rem;
  height: 2.3rem;
  margin-bottom: 0.08rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}
.carp-podium-column.gold .carp-podium-medal-wrap {
  width: 2.35rem;
  height: 2.75rem;
  filter:
    drop-shadow(0 0 7px rgba(250, 204, 21, 0.4))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}
.carp-podium-medal-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

#podiumContainer .podium-thumb-frame,
#podiumContainer .podium-thumb-fallback {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  background: rgba(10, 18, 10, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}
#podiumContainer .podium-thumb-frame .podium-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  object-fit: fill;
}
#podiumContainer .podium-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
#podiumContainer .podium-thumb-fallback img {
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) brightness(1.12);
}
.carp-podium-column.gold .podium-thumb-frame,
.carp-podium-column.gold .podium-thumb-fallback {
  width: 3.15rem;
  height: 3.15rem;
  border-color: var(--podium-gold-mid);
  box-shadow:
    0 0 0 1px rgba(184, 134, 11, 0.65),
    0 0 16px rgba(250, 204, 21, 0.38),
    0 4px 10px rgba(0, 0, 0, 0.5);
}
.carp-podium-column.silver .podium-thumb-frame,
.carp-podium-column.silver .podium-thumb-fallback {
  border-color: var(--podium-silver-mid);
}
.carp-podium-column.bronze .podium-thumb-frame,
.carp-podium-column.bronze .podium-thumb-fallback {
  border-color: var(--podium-bronze-mid);
}

.carp-podium-species {
  font-size: 0.58rem;
  font-weight: 800;
  color: #e8efe6;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.carp-podium-column.gold .carp-podium-species {
  font-size: 0.66rem;
  color: #fff8de;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.carp-podium-metrics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  max-width: 100%;
}
.carp-podium-weight {
  font-size: 0.78rem;
  font-weight: 900;
  color: #f0fdf4;
  line-height: 1.1;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.carp-podium-column.gold .carp-podium-weight {
  font-size: 0.92rem;
  color: #fef08a;
}
.carp-podium-secondary {
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.78);
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.carp-podium-rank-tag {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}
.carp-podium-column.gold .carp-podium-rank-tag { color: rgba(254, 240, 138, 0.92); }
.carp-podium-empty-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(140, 163, 136, 0.7);
  padding: 0.4rem 0 0.15rem;
}

/* ——— Marches 3D ——— */
.carp-podium-block {
  position: relative;
  z-index: 2;
  width: calc(100% - var(--step-side));
  height: var(--step-h);
  margin: 0 var(--step-side) 0 0;
  transform-style: preserve-3d;
  transform: rotateX(5deg);
  transform-origin: bottom center;
}
/* Ombre portée au sol — direction unique (bas-droite) */
.carp-podium-block::after {
  content: '';
  position: absolute;
  left: 6%;
  right: -8%;
  bottom: -9px;
  height: 12px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.58), transparent 72%);
  pointer-events: none;
}

.carp-podium-block-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px 2px 3px 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.42);
  border-bottom: 3px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.3),
    0 10px 18px rgba(0, 0, 0, 0.32),
    inset 0 2px 0 var(--podium-light),
    inset 0 -16px 24px var(--podium-shade),
    inset 12px 0 18px rgba(255, 255, 255, 0.06),
    inset -12px 0 18px rgba(0, 0, 0, 0.22);
}
/* Bandeau métallique brossé */
.carp-podium-block-front::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: soft-light;
}
/* Reflet localisé (source haut-gauche) */
.carp-podium-block-front::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 46%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 0%,
    rgba(255, 255, 255, 0.34) 40%,
    transparent 70%
  );
  opacity: 0.55;
}

.carp-podium-block-top {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  height: var(--step-top);
  width: calc(100% - 2px);
  transform: translateY(-100%) skewX(-24deg);
  transform-origin: bottom left;
  border-radius: 3px 5px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 5px rgba(0, 0, 0, 0.2),
    3px -2px 0 rgba(0, 0, 0, 0.12);
}
.carp-podium-block-side {
  position: absolute;
  top: calc(var(--step-top) * -0.15);
  right: calc(var(--step-side) * -1);
  width: var(--step-side);
  height: calc(100% + var(--step-top) * 0.15);
  z-index: 1;
  transform: skewY(-40deg);
  transform-origin: top left;
  border-radius: 0 3px 3px 0;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-left: none;
  box-shadow:
    inset -4px 0 10px rgba(0, 0, 0, 0.4),
    4px 6px 10px rgba(0, 0, 0, 0.28);
}

.carp-podium-num {
  position: relative;
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.carp-podium-column.gold .carp-podium-num { font-size: 2.05rem; }

/* ——— Métaux ——— */
.carp-podium-column.gold .carp-podium-block-front {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 36%),
    linear-gradient(155deg,
      var(--podium-gold-hi) 0%,
      var(--podium-gold-mid) 26%,
      var(--podium-gold-deep) 58%,
      var(--podium-gold-shade) 100%);
  border-color: rgba(255, 236, 160, 0.55);
}
.carp-podium-column.gold .carp-podium-block-top {
  background:
    linear-gradient(90deg, #fff9d4 0%, var(--podium-gold-hi) 28%, var(--podium-gold-mid) 62%, var(--podium-gold-deep) 100%);
}
.carp-podium-column.gold .carp-podium-block-side {
  background: linear-gradient(180deg, var(--podium-gold-deep), var(--podium-gold-shade));
}
.carp-podium-column.gold .carp-podium-num { color: #4a3206; }

.carp-podium-column.silver .carp-podium-block-front {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 38%),
    linear-gradient(155deg,
      var(--podium-silver-hi) 0%,
      var(--podium-silver-mid) 30%,
      var(--podium-silver-deep) 68%,
      var(--podium-silver-shade) 100%);
  border-color: rgba(241, 245, 249, 0.5);
}
.carp-podium-column.silver .carp-podium-block-top {
  background: linear-gradient(90deg, #ffffff, var(--podium-silver-hi) 30%, var(--podium-silver-mid) 70%, var(--podium-silver-deep));
}
.carp-podium-column.silver .carp-podium-block-side {
  background: linear-gradient(180deg, var(--podium-silver-deep), var(--podium-silver-shade));
}
.carp-podium-column.silver .carp-podium-num { color: #1e293b; }

.carp-podium-column.bronze .carp-podium-block-front {
  background:
    linear-gradient(180deg, rgba(255, 220, 180, 0.28) 0%, transparent 38%),
    linear-gradient(155deg,
      var(--podium-bronze-hi) 0%,
      var(--podium-bronze-mid) 32%,
      var(--podium-bronze-deep) 68%,
      var(--podium-bronze-shade) 100%);
  border-color: rgba(240, 201, 160, 0.45);
}
.carp-podium-column.bronze .carp-podium-block-top {
  background: linear-gradient(90deg, #f8e0c4, var(--podium-bronze-hi) 35%, var(--podium-bronze-mid) 75%, var(--podium-bronze-deep));
}
.carp-podium-column.bronze .carp-podium-block-side {
  background: linear-gradient(180deg, var(--podium-bronze-deep), var(--podium-bronze-shade));
}
.carp-podium-column.bronze .carp-podium-num { color: #3a2412; }

.carp-podium-column.empty { opacity: 0.5; cursor: default; }
.carp-podium-column.empty .carp-podium-block-front {
  border-style: dashed;
  filter: saturate(0.75);
}
.carp-podium-column.empty .carp-podium-block-front::after { opacity: 0.25; }

/* Halo or */
.carp-podium-halo {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 86%;
  height: 48%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(250, 204, 21, 0.32), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.carp-podium-column.gold:not(.empty) .carp-podium-halo { opacity: 1; }

.carp-podium-particles {
  position: absolute;
  inset: 0 8% 48%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.carp-podium-column.gold:not(.empty) .carp-podium-particles { opacity: 1; }
.carp-podium-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(254, 240, 138, 0.8);
  box-shadow: 0 0 5px rgba(250, 204, 21, 0.55);
}
.carp-podium-particles span:nth-child(1) { left: 16%; top: 28%; }
.carp-podium-particles span:nth-child(2) { left: 74%; top: 18%; width: 2px; height: 2px; }
.carp-podium-particles span:nth-child(3) { left: 48%; top: 6%; width: 2px; height: 2px; opacity: 0.7; }
.carp-podium-particles span:nth-child(4) { left: 28%; top: 52%; width: 2px; height: 2px; }
.carp-podium-particles span:nth-child(5) { left: 64%; top: 44%; }

/* Base camouflage commune */
.carp-podium-plinth {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0.05rem 0;
  height: 0.85rem;
  border-radius: 3px 3px 9px 9px;
  background:
    linear-gradient(180deg, rgba(90, 120, 60, 0.45) 0%, transparent 40%),
    linear-gradient(90deg, #152214 0%, #2a4020 22%, #3d5830 50%, #2a4020 78%, #152214 100%),
    repeating-linear-gradient(95deg, transparent 0 6px, rgba(0, 0, 0, 0.12) 6px 8px);
  border: 1px solid rgba(74, 110, 60, 0.5);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -4px 10px rgba(0, 0, 0, 0.4);
}
.carp-podium-plinth::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.4), transparent);
}
.carp-podium-plinth::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -6px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4), transparent 70%);
  pointer-events: none;
}

/* Animations */
@keyframes carp-podium-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes carp-podium-halo-pulse {
  0%, 100% { opacity: 0.72; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}
@keyframes carp-podium-spark {
  0%, 100% { opacity: 0.2; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.12); }
}
@keyframes carp-podium-new-leader {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.035); filter: brightness(1.12); }
  100% { transform: scale(1); filter: brightness(1); }
}
@keyframes carp-podium-shine {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(230%); }
}

#podiumContainer.carp-podium.is-animated .carp-podium-column {
  animation: carp-podium-rise 0.52s cubic-bezier(0.22, 0.9, 0.28, 1) both;
}
#podiumContainer.carp-podium.is-animated .carp-podium-column.bronze { animation-delay: 0.04s; }
#podiumContainer.carp-podium.is-animated .carp-podium-column.silver { animation-delay: 0.1s; }
#podiumContainer.carp-podium.is-animated .carp-podium-column.gold { animation-delay: 0.2s; }

.carp-podium-column.gold:not(.empty) .carp-podium-halo {
  animation: carp-podium-halo-pulse 3.8s ease-in-out infinite;
}
.carp-podium-column.gold:not(.empty) .carp-podium-particles span {
  animation: carp-podium-spark 3s ease-in-out infinite;
}
.carp-podium-column.gold:not(.empty) .carp-podium-particles span:nth-child(2) { animation-delay: 0.45s; }
.carp-podium-column.gold:not(.empty) .carp-podium-particles span:nth-child(3) { animation-delay: 0.95s; }
.carp-podium-column.gold:not(.empty) .carp-podium-particles span:nth-child(4) { animation-delay: 1.35s; }
.carp-podium-column.gold:not(.empty) .carp-podium-particles span:nth-child(5) { animation-delay: 1.8s; }
.carp-podium-column.gold:not(.empty) .carp-podium-block-front::after {
  animation: carp-podium-shine 5.2s ease-in-out 0.6s infinite;
}

.carp-podium-column.is-new-leader .carp-podium-athlete {
  animation: carp-podium-new-leader 0.75s ease;
}

@media (prefers-reduced-motion: reduce) {
  #podiumContainer.carp-podium.is-animated .carp-podium-column,
  .carp-podium-column.gold:not(.empty) .carp-podium-halo,
  .carp-podium-column.gold:not(.empty) .carp-podium-particles span,
  .carp-podium-column.gold:not(.empty) .carp-podium-block-front::after,
  .carp-podium-column.is-new-leader .carp-podium-athlete {
    animation: none !important;
  }
  .carp-podium-column.gold:not(.empty) .carp-podium-halo { opacity: 0.85; }
  .carp-podium-column.gold:not(.empty) .carp-podium-particles { opacity: 0.45; }
  .carp-podium-column.gold:not(.empty) .carp-podium-block-front::after { opacity: 0.35; }
}

@media (max-width: 360px) {
  .carp-podium-stage { column-gap: 0.22rem; min-height: 12rem; }
  .carp-podium-column { --step-top: 13px; --step-side: 10px; }
  .carp-podium-column.bronze { --step-h: 2.35rem; }
  .carp-podium-column.silver { --step-h: 3.95rem; }
  .carp-podium-column.gold { --step-h: 6.25rem; }
  #podiumContainer .podium-thumb-frame,
  #podiumContainer .podium-thumb-fallback { width: 2.3rem; height: 2.3rem; }
  .carp-podium-column.gold .podium-thumb-frame,
  .carp-podium-column.gold .podium-thumb-fallback { width: 2.75rem; height: 2.75rem; }
  .carp-podium-weight { font-size: 0.7rem; }
  .carp-podium-column.gold .carp-podium-weight { font-size: 0.82rem; }
  .carp-podium-num { font-size: 1.35rem; }
  .carp-podium-column.gold .carp-podium-num { font-size: 1.7rem; }
}

@media (min-width: 480px) {
  .carp-podium-stage { min-height: 14.5rem; column-gap: 0.55rem; }
  .carp-podium-column { --step-top: 18px; --step-side: 15px; }
  .carp-podium-column.bronze { --step-h: 3.05rem; }
  .carp-podium-column.silver { --step-h: 5.0rem; }
  .carp-podium-column.gold { --step-h: 7.85rem; }
}

/* Entrées classement Palmarès */
.records-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  background: rgba(12, 20, 11, 0.72);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.records-entry:active,
.records-entry:focus-visible {
  border-color: var(--accent);
  background: rgba(20, 36, 18, 0.9);
  outline: none;
}
.records-entry-rank {
  flex-shrink: 0;
  min-width: 1.6rem;
  font-size: 0.78rem;
  font-weight: 900;
  color: #86efac;
}
.records-entry-photo-frame {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: #0a120a;
  position: relative;
  overflow: hidden;
}
.records-entry-photo-frame .records-entry-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border: none;
  border-radius: 0;
  object-fit: fill;
  background: transparent;
}
.records-entry-photo-fallback {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(145deg, rgba(20, 32, 18, 0.95), rgba(36, 52, 28, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
}
.records-entry-photo-fallback img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)) brightness(1.12);
}
.records-entry-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.records-entry-species {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f0fdf4;
  line-height: 1.2;
}
.records-entry-weight {
  font-size: 0.95rem;
  font-weight: 900;
  color: #facc15;
}
.records-entry-date {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
}
.ux-emoji {
  font-style: normal;
  line-height: 1;
}
.btn-delete-emoji {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

/* Carte & repérage — marqueurs postes persistants + statut pêche */
.prospect-status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2px;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  z-index: 2;
}
.prospect-status-ok {
  background: #16a34a;
  color: #ecfdf5;
}
.prospect-status-empty {
  background: #1e293b;
  color: #fca5a5;
}
.leaflet-div-icon.prospect-spot-marker {
  background: transparent !important;
  border: none !important;
}
.prospect-marker-popup .btn,
.prospect-marker-popup .btn-secondary {
  width: 100%;
}
.prospect-spot-detail-modal {
  max-width: min(420px, 94vw);
  margin: auto;
  max-height: 90vh;
}
.prospect-gps-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #f0fdf4;
  flex-wrap: wrap;
}
.prospect-gps-coords {
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.prospect-gps-copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(134, 239, 172, 0.4);
  background: rgba(20, 40, 20, 0.75);
  color: #86efac;
  cursor: pointer;
  flex: 0 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.prospect-gps-copy-icon:active {
  background: rgba(34, 197, 94, 0.25);
}
.prospect-gps-copy-msg {
  font-size: 0.58rem;
  color: #86efac;
  margin: 0.2rem 0 0;
  min-height: 0.85rem;
  line-height: 1.3;
}
.prospect-gps-copy-msg.is-error {
  color: #fca5a5;
}
.prospect-gps-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.prospect-gps-btn {
  font-size: 0.68rem !important;
  padding: 0.55rem 0.7rem !important;
  min-height: 2.75rem;
  width: 100%;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.prospect-gps-hint {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin: 0.28rem 0 0;
  line-height: 1.3;
}
.prospect-note-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: start;
  background: rgba(10, 18, 10, 0.65);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.4rem;
}
.prospect-note-input,
.prospect-photo-comment {
  width: 100%;
  font-size: 0.7rem;
  padding: 0.35rem 0.45rem;
  resize: vertical;
  min-height: 2.4rem;
  background: rgba(8, 17, 7, 0.85);
  color: #f0fdf4;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
}
.prospect-photos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.prospect-photo-card {
  background: rgba(10, 18, 10, 0.65);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
}
.prospect-photo-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.prospect-photo-missing {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 1rem 0.5rem;
  text-align: center;
}
@media (max-width: 480px) {
  .prospect-status-badge {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
  .prospect-spot-detail-modal {
    max-width: 96vw;
  }
}

/* —— Sélecteur photo prise (libellés FR, input natif masqué) —— */
.carp-photo-picker { margin-bottom: 0.65rem; }
.carp-photo-picker-label {
  display: block; font-size: 0.65rem; font-weight: 800;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.carp-photo-input-native {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.carp-photo-picker-ui {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.55rem;
}
.carp-photo-pick-btn {
  width: auto !important; flex: 0 0 auto;
  font-size: 0.68rem !important; padding: 0.35rem 0.65rem !important;
  min-height: 2.1rem; font-weight: 800;
}
.carp-photo-status {
  flex: 1 1 8rem; min-width: 0;
  font-size: 0.62rem; font-weight: 600; color: var(--text-muted); line-height: 1.3;
}

/* —— Éditeur de cadrage photo (prises) —— */
.catch-photo-crop-hint {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: #86efac;
  line-height: 1.35;
}
body.carp-photo-crop-open {
  overflow: hidden;
  touch-action: none;
}
.photo-crop-overlay {
  /* Au-dessus de l’onboarding (99999) et des autres modales métier */
  z-index: 100500;
  max-width: 480px;
}
.photo-crop-modal {
  max-height: 96vh;
  gap: 0.45rem;
  background: linear-gradient(165deg, rgba(18, 28, 16, 0.98), rgba(10, 16, 10, 0.98));
}
.photo-crop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.photo-crop-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--accent);
}
.photo-crop-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.photo-crop-hint {
  margin: 0;
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.photo-crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 320px);
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(74, 110, 60, 0.65);
  background:
    linear-gradient(135deg, rgba(20, 36, 16, 0.95), rgba(8, 14, 8, 0.98)),
    repeating-linear-gradient(
      -45deg,
      rgba(34, 197, 94, 0.04) 0 6px,
      transparent 6px 12px
    );
  touch-action: none;
  overscroll-behavior: contain;
  cursor: grab;
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.12), 0 8px 22px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-select: none;
}
.photo-crop-stage:active { cursor: grabbing; }
.photo-crop-stage-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform, width, height;
}
.photo-crop-zoom-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.photo-crop-zoom-btn {
  width: 2.6rem;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: 10px;
  color: #f0fdf4;
  border-color: rgba(74, 110, 60, 0.55);
}
.photo-crop-zoom-label {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #facc15;
}
.photo-crop-recenter-btn {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
}
.photo-crop-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.photo-crop-actions .btn {
  min-height: 2.75rem;
  font-size: 0.78rem;
}

/* Cadre d’affichage 16:9 (détail prise) */
.catch-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  margin-bottom: 0.5rem;
  background: #0a120a;
}
.catch-photo-frame .catch-photo-img,
.catch-photo-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  display: block;
}
@media (max-width: 380px) {
  .photo-crop-stage { max-height: min(46vh, 280px); }
}

/* —— Analyse hydrologique (débits / postes) —— */
.hydro-session-block,
.hydro-spot-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hydro-session-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #7dd3fc;
}
.hydro-measure-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hydro-measure-item {
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 8px;
  background: rgba(8, 20, 28, 0.55);
  font-size: 0.68rem;
  color: #e2fbd7;
}
.hydro-measure-meta {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}
.hydro-trend {
  font-size: 0.65rem;
  color: #bae6fd;
  margin-top: 0.25rem;
}
.hydro-note,
.hydro-empty {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}
.hydro-summary {
  font-size: 0.68rem;
  color: #f0fdf4;
  line-height: 1.35;
  margin: 0.25rem 0;
}
.hydro-sub {
  font-size: 0.65rem;
  font-weight: 800;
  color: #86efac;
  margin-top: 0.35rem;
}
.hydro-limitations {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  font-size: 0.58rem;
  color: var(--text-muted);
}
.hydro-spot-context select,
.hydro-spot-context textarea {
  background: rgba(10, 18, 10, 0.85);
  color: #f0fdf4;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
}
