/* Page « Cumul de pluie radar » (/cumul-pluie/) */
html.tmc-actif .col-gauche>:not(#tmc-page){display:none!important}
html.tmc-actif .col-gauche>#tmc-page{grid-column:1/-1;flex:1 1 100%;width:100%;min-width:0;box-sizing:border-box}
html.tmc-actif main>:not(.col-gauche):not(.zone-droite):not(script):not(style){display:none!important}
html.tmc-actif main .cote-carte,html.tmc-actif #bulletin-accueil{display:none!important}

.tmc-page{background:#fff;border:1px solid #e3e7ec;border-radius:12px;padding:20px;margin:0 0 16px;color:#1d2b3c}
.tmc-page h1{margin:0 0 .35em}
.tmc-sous{color:#5d6b7c;margin:0 0 14px}
.tmc-fil{margin:0 0 6px;font-size:.92rem}
.tmc-fil a{color:#14335c;text-decoration:none;font-weight:600}
.tmc-fil a:hover{text-decoration:underline}

.tmc-barre{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 14px}
.tmc-periodes{display:flex;flex-wrap:wrap;gap:6px}
.tmc-periodes button{font:inherit;font-size:.92rem;font-weight:600;padding:7px 13px;border-radius:999px;border:1px solid #c9d2dd;background:#fff;color:#14335c;cursor:pointer}
.tmc-periodes button:hover{border-color:#14335c}
.tmc-periodes button[aria-pressed="true"]{background:#14335c;border-color:#14335c;color:#fff}
.tmc-periodes button:disabled{opacity:.4;cursor:not-allowed}
.tmc-choix-zone{display:flex;align-items:center;gap:8px;font-size:.92rem;color:#5d6b7c}
.tmc-choix-zone select{font:inherit;font-size:.95rem;padding:7px 30px 7px 10px;border:1px solid #c9d2dd;border-radius:8px;background:#fff;color:#14335c;font-weight:600}

.tmc-corps{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.tmc-carte-bloc{position:relative;min-width:0}
.tmc-carte{position:relative;border-radius:12px;overflow:hidden;background:var(--mer,#dce7f1);border:1px solid #e3e7ec}
.tmc-logo{position:absolute;left:10px;bottom:10px;height:42px;width:auto;background:rgba(255,255,255,.92);border-radius:8px;padding:4px 8px;box-shadow:0 1px 4px rgba(20,51,92,.15);pointer-events:none}
.tmc-carte svg{display:block;width:100%;height:auto;max-height:calc(100vh - 150px);touch-action:manipulation;user-select:none;-webkit-user-select:none}
.tmc-attente{padding:120px 20px;text-align:center;color:#5d6b7c;margin:0}
.tmc-carte .tmc-cible{fill:transparent;cursor:pointer}
.tmc-carte .tmc-cible:hover{fill:rgba(232,119,46,.10);stroke:#e8772e;stroke-width:2.5}
.tmc-carte text{font-family:inherit;pointer-events:none}
.tmc-bulle{position:absolute;z-index:3;pointer-events:none;background:#14335c;color:#fff;font-size:.86rem;line-height:1.3;padding:6px 10px;border-radius:8px;white-space:nowrap;box-shadow:0 4px 14px rgba(20,51,92,.25);transform:translate(-50%,calc(-100% - 12px))}
.tmc-bulle b{font-size:1rem}
.tmc-legende{display:flex;flex-wrap:wrap;align-items:flex-end;margin:10px 0 0;font-size:.74rem;color:#5d6b7c}
.tmc-legende span{flex:1 1 0;min-width:24px;text-align:center}
.tmc-legende i{display:block;height:12px;margin:0 0 3px}
.tmc-legende span:first-child i{border-radius:6px 0 0 6px}
.tmc-legende span:last-child i{border-radius:0 6px 6px 0}
.tmc-legende .tmc-unite{flex:0 0 auto;min-width:0;padding-left:6px;font-weight:600;color:#14335c}
.tmc-aide{font-size:.85rem;color:#5d6b7c;margin:8px 0 0}

.tmc-sous-carte{margin:22px 0 0}
.tmc-sous-carte p{font-size:.97rem;line-height:1.6;color:#3c4a5c;margin:0 0 .7em}
.tmc-sous-carte b{color:#14335c}
.tmc-sous-carte h2,.tmc-cote h2{display:inline-block;font-size:1.08rem;margin:0 0 .8em;padding-bottom:3px;border-bottom:3px solid #e8772e}
.tmc-cote section{margin:0 0 22px}
.tmc-table{width:100%;border-collapse:collapse;font-size:.93rem}
.tmc-table td{padding:7px 4px;border-bottom:1px solid #edf0f3}
.tmc-table td:last-child{text-align:right;font-weight:700;color:#14335c;white-space:nowrap}
.tmc-table a{color:#1d2b3c;text-decoration:none}
.tmc-table a:hover{color:#14335c;text-decoration:underline}
.tmc-table .tmc-pastille{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:0}
.tmc-dep{color:#8a96a5;font-size:.85em}
.tmc-vide{color:#5d6b7c;font-size:.93rem}
.tmc-chiffres{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tmc-chiffres:empty{display:none}
.tmc-chiffre{background:#f5f7fa;border-radius:10px;padding:10px 12px}
.tmc-chiffre b{display:block;font-size:1.3rem;color:#14335c}
.tmc-chiffre span{font-size:.82rem;color:#5d6b7c}
.tmc-regions{list-style:none;margin:0;padding:0;columns:2;column-gap:14px;font-size:.9rem}
.tmc-regions li{break-inside:avoid;margin:0 0 6px}
.tmc-regions a{color:#14335c;text-decoration:none}
.tmc-regions a:hover,.tmc-regions a[aria-current]{text-decoration:underline;font-weight:600}
.tmc-texte p{font-size:.92rem;color:#3c4a5c;line-height:1.5}
.tmc-page button:focus-visible,.tmc-page select:focus-visible,.tmc-page a:focus-visible{outline:3px solid #e8772e;outline-offset:2px}

@media (max-width:1100px){.tmc-corps{grid-template-columns:1fr}.tmc-cote{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}}
@media (max-width:640px){
  .tmc-page{padding:12px;border-radius:10px}
  .tmc-page h1{font-size:1.3rem}
  .tmc-cote{display:block}
  .tmc-barre{flex-direction:column;align-items:stretch}
  .tmc-periodes{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
  .tmc-periodes button{padding:7px 0;font-size:.85rem}
  .tmc-choix-zone select{flex:1}
  .tmc-carte svg{max-height:none}
  .tmc-legende{font-size:.66rem}
  .tmc-legende span{min-width:0}
  .tmc-logo{height:24px;left:6px;bottom:6px;padding:3px 6px}
}
.tmc-liens ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tmc-liens li{border:1px solid #e3e7ec;border-radius:10px;padding:10px 12px;transition:border-color .15s}
.tmc-liens li:hover{border-color:#e8772e}
.tmc-liens a{display:block;font-weight:700;color:#14335c;text-decoration:none}
.tmc-liens a::after{content:" →";color:#e8772e}
.tmc-liens span{display:block;font-size:.85rem;color:#5d6b7c;margin-top:2px}
@media (max-width:640px){.tmc-liens ul{grid-template-columns:1fr}}
