/* MeteoFlash France — Hydrologie : harmonisation graphique V1 */
:root{--hydro-deep:#06466b;--hydro-blue:#086d9c;--hydro-cyan:#21b6ce;--hydro-ink:#173f54;--hydro-line:#c9e8f1}
html{scroll-behavior:smooth}
body{background:linear-gradient(180deg,#f0faff 0%,#f8fcff 25%,#fff 100%)}
/* La bannière est extérieure au conteneur, identique au gabarit Marine. */
.hydro-hero{position:relative;isolation:isolate;min-height:265px;display:flex;align-items:center;color:#fff;overflow:hidden;border-bottom:5px solid #35bfd0;background:linear-gradient(90deg,rgba(4,48,76,.91) 0%,rgba(6,78,104,.75) 49%,rgba(5,84,103,.22) 100%),url('images/rivieres/pont-de-pierre.jpg') center 54% /cover no-repeat}
/* Strates abstraites évoquant le courant d'une rivière ; pas d'image externe. */
.hydro-hero:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.13;background:repeating-radial-gradient(ellipse 90% 64% at 93% 111%,transparent 0,transparent 43px,rgba(193,250,250,.21) 44px,rgba(193,250,250,.21) 47px,transparent 48px,transparent 95px);transform:rotate(-8deg) scale(1.25)}
.hydro-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(4,40,69,.52),transparent 74%)}
.hydro-hero-inner{width:min(1500px,100%);margin:auto;padding:34px max(22px,calc((100vw - 1450px)/2));position:relative}
.hydro-hero-eyebrow{display:flex;align-items:center;gap:.6rem;font-size:.8rem;letter-spacing:.16em;font-weight:800;color:#bbf4ff;text-transform:uppercase;margin-bottom:.8rem}
.hydro-hero h1{font-size:clamp(2rem,4vw,3.8rem);font-weight:850;line-height:1.12;letter-spacing:-.03em;max-width:980px;text-shadow:0 2px 12px rgba(0,25,45,.2)}
.hydro-hero p{font-size:clamp(1rem,1.6vw,1.26rem);margin-top:.6rem;max-width:860px;color:#eefaff}
.hydro-hero-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.5rem}
.hydro-hero-actions a{display:inline-flex;align-items:center;gap:.55rem;padding:.7rem 1rem;border-radius:30px;font-weight:750;text-decoration:none;transition:background .2s,transform .2s,color .2s}
.hydro-hero-action{background:#10b7d2;color:#fff}.hydro-hero-secondary{background:rgba(0,48,82,.42);color:#fff;border:1px solid rgba(222,249,255,.72)}
.hydro-hero-actions a:hover{transform:translateY(-2px);background:#e4fbff;color:#074c70}.hydro-hero-actions a:focus-visible{outline:3px solid #fff;outline-offset:3px}
/* Respect des limites de contenu de la V5 et de la carte Leaflet. */
.hydro-page{max-width:1500px}.hydro-content{max-width:1200px}
.hydro-page .glass-panel{border:1px solid rgba(167,215,228,.65);border-radius:24px;background:rgba(255,255,255,.96);box-shadow:0 17px 42px rgba(24,93,125,.065)}
/* Sommaire : 6 tuiles inchangées fonctionnellement. */
.hydro-page .hydro-summary{background:linear-gradient(160deg,#f4fcff,#eaf8fa);border-color:#cbe8ef;padding:1.35rem 1.45rem}
.hydro-summary h2{color:#0e4a65}.hydro-summary .hydro-summary-link{border:1px solid #d1e7ed;border-radius:18px;min-height:94px;padding:1rem;box-shadow:0 9px 22px rgba(8,85,121,.05);color:#17445c;line-height:1.35;text-decoration:none;background:#fff;transition:transform .2s,border-color .2s,box-shadow .2s}
.hydro-summary .hydro-summary-link:hover{transform:translateY(-3px);border-color:#79cada;box-shadow:0 15px 28px rgba(8,85,121,.11)}
.hydro-summary .hydro-summary-number{border-radius:999px;min-width:2.25rem;height:2.25rem;display:inline-flex;align-items:center;justify-content:center;background:#e8f8fb;color:#076a90;font-size:.83rem}
.hydro-summary-link .hydro-summary-arrow{color:#3696b3}
.hydro-page #hydro-recherche,.hydro-page #hydro-map-section{background:linear-gradient(180deg,#fff,#fbfeff)}
.hydro-page #hydro-search-btn,.hydro-page #hydro-map-refresh{background:#087da7;transition:background .2s}.hydro-page #hydro-search-btn:hover,.hydro-page #hydro-map-refresh:hover{background:#075d83}
.hydro-page #hydro-map{border-radius:16px;border-color:#c8e1eb}
.hydro-page .hydro-chapter-icon{background:#e6f5fc;color:#087da7}
.hydro-page .hydro-info-tile{background:#f5fbff;border-color:#d6ebf3;border-radius:16px}
.hydro-page .hydro-faq details{border-radius:14px;border-color:#d4e7ef}
.hydro-page .hydro-source-link{color:#086b96}
#hydro-summary-title,#contenu-principal,#hydro-recherche,#hydro-map-section,#hydro-comprendre,#hydro-lire,#hydro-limites,#hydro-risques{scroll-margin-top:7.5rem}
@media(max-width:520px){.hydro-hero{min-height:320px}.hydro-hero-inner{padding:28px 20px}.hydro-hero-actions a{font-size:.82rem;padding:.55rem .8rem}.hydro-page .hydro-summary{padding:1rem}.hydro-summary .hydro-summary-link{min-height:74px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hydro-hero-actions a,.hydro-summary .hydro-summary-link{transition:none}.hydro-hero-actions a:hover,.hydro-summary .hydro-summary-link:hover{transform:none}}
