/* MeteoFlash France — Froid, neige et verglas — V4 technique, issue de la V3 validée.
   Les ressources partagées style.css, app.js et AdSense ne sont pas modifiées. */
html{scroll-behavior:smooth;scroll-padding-top:115px}
body{background:linear-gradient(180deg,#eef9ff 0%,#f8fcff 35%,#fff 100%)}
.froid-skip{position:fixed;left:16px;top:-120px;z-index:9999;background:#07304b;color:#fff;padding:.85rem 1rem;border-radius:0 0 12px 12px;font-weight:800}
.froid-skip:focus{top:0;outline:3px solid #16b5d0;outline-offset:3px}
.froid-page{max-width:1540px;padding-top:1.5rem}
.froid-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:295px;color:#fff;overflow:hidden;border-bottom:5px solid #59c9e5;background:linear-gradient(90deg,rgba(4,25,49,.96) 0%,rgba(10,46,76,.87) 46%,rgba(7,53,93,.32) 100%),url('images/guides/froid/froid-bandeau-hd.jpg') center 55%/cover no-repeat}
.froid-hero::before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(0deg,rgba(1,18,31,.18),transparent 80%)}
.froid-hero-inner{width:min(1500px,100%);margin:auto;padding:35px max(23px,calc((100vw - 1450px)/2))}
.froid-hero-eyebrow{font-size:.8rem;letter-spacing:.13em;font-weight:800;text-transform:uppercase;color:#d8f7ff;margin:0 0 .65rem}
.froid-hero-title{font-size:clamp(1.9rem,3.65vw,3.4rem);font-weight:900;line-height:1.16;letter-spacing:-.02em;max-width:1050px;text-shadow:0 2px 13px #041b3280}
.froid-hero-desc{max-width:900px;font-size:clamp(.98rem,1.35vw,1.12rem);line-height:1.65;color:#ebfaff;margin-top:.85rem}
.froid-hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.35rem}
.froid-hero-actions a{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:.72rem 1rem;border-radius:999px;font-weight:800;text-decoration:none;transition:transform .2s,background .2s,color .2s}
.froid-hero-primary{background:#b5f1ff;color:#06314a}.froid-hero-secondary{background:#0b3e61ae;border:1px solid #d6faff;color:#fff}
.froid-hero-actions a:hover{background:#e1faff;color:#072d49;transform:translateY(-2px)}
.froid-page a:focus-visible,.froid-hero a:focus-visible{outline:3px solid #0b9cc3;outline-offset:3px}
.froid-editorial-layout{display:grid;grid-template-columns:minmax(265px,330px) minmax(0,1fr);gap:clamp(1rem,2.1vw,2rem);align-items:start}
.froid-editorial-sidebar{min-width:0;position:sticky;top:105px;align-self:start;max-height:calc(100vh - 120px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#aad9e8 transparent}
.froid-editorial-toc{margin:0!important;padding:0!important;border:1px solid #d4e7f2!important;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 30px #18476616}
.froid-editorial-toc>h2{background:linear-gradient(110deg,#0b4973,#0a81ad);color:#fff;margin:0;padding:1rem 1.1rem;font-size:1.2rem;line-height:1.35}
.froid-toc-subtitle{font-size:.8rem;line-height:1.5;color:#49677a;margin:.65rem 1rem .25rem}
.froid-editorial-toc .froid-toc-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important;padding:.45rem .6rem .7rem!important;margin:0!important;list-style:none}
.froid-editorial-toc .froid-toc-grid li{min-width:0}
.froid-editorial-toc .froid-toc-card{display:flex!important;gap:.7rem;align-items:center;min-height:46px;padding:.48rem .55rem!important;background:#fff!important;border:0!important;border-bottom:1px solid #e8f3fa!important;border-radius:9px!important;text-decoration:none!important;box-shadow:none!important;transition:background .2s}
.froid-editorial-toc .froid-toc-grid li:last-child .froid-toc-card{border-bottom:0!important}
.froid-editorial-toc .froid-toc-card:hover{background:#eaf8ff!important}
.froid-editorial-toc .froid-toc-num{display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;flex:0 0 1.9rem;border-radius:7px;background:linear-gradient(135deg,#0b6095,#36c1e2);color:#fff;font-size:.83rem;font-weight:900}
.froid-editorial-toc .froid-toc-label{font-size:.86rem;line-height:1.3;color:#173c55;font-weight:750}
.froid-editorial-layout .froid-article{min-width:0;padding:clamp(1.15rem,2.3vw,2rem);border:1px solid #dbeaf3;border-radius:20px;box-shadow:0 15px 35px #1847660d;background:#fff;color:#354852}
.froid-editorial-layout .froid-article>.flex.flex-wrap{margin:0 0 1.2rem}
.froid-editorial-intro{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(230px,.95fr);gap:clamp(1rem,2vw,1.7rem);align-items:start;margin:1.2rem 0 1.8rem;padding-bottom:1.25rem;border-bottom:1px solid #dfeff6}
.froid-editorial-lead h2{color:#0b537a;font-size:clamp(1.35rem,2.1vw,1.85rem);font-weight:850;line-height:1.25;margin:0 0 .7rem}
.froid-editorial-lead>p{color:#465761;line-height:1.8;font-size:1rem;margin:0}
.froid-editorial-intro .froid-keypoint{margin:0!important;padding:1.1rem 1.2rem!important;border:1px solid #d4ebf5;border-left:4px solid #0797be;border-radius:18px;background:linear-gradient(140deg,#e8faff,#fbfeff);box-shadow:0 8px 20px #105a7a0b}
.froid-editorial-intro .froid-keypoint h2{font-weight:850;color:#085378;margin:0 0 .55rem;font-size:1.1rem}
.froid-editorial-intro .froid-keypoint p{font-size:.93rem;line-height:1.75;color:#224c64}
.froid-editorial-layout .froid-chapter{padding:clamp(1.1rem,2.2vw,1.7rem);margin-bottom:1.2rem;border:1px solid #dcecf5;border-radius:17px;background:#fff;box-shadow:0 9px 26px #18476610;min-width:0;scroll-margin-top:115px}
.froid-editorial-layout .froid-chapter>h2.froid-editorial-heading{display:flex;align-items:center;gap:.8rem;margin:0 0 1.25rem!important;padding:0 0 .75rem;font-size:clamp(1.25rem,2.1vw,1.75rem);font-weight:850;line-height:1.35;color:#164c70;border-bottom:2px solid #c9ebf6}
.froid-heading-num{display:inline-flex;align-items:center;justify-content:center;flex:0 0 2.3rem;height:2.3rem;border-radius:9px;background:linear-gradient(135deg,#085789,#27b8d8);box-shadow:0 5px 12px #08608c28;color:#fff;font-size:1.15rem;font-weight:900}
.froid-heading-text{flex:1;min-width:0}
.froid-chapter p,.froid-chapter li{line-height:1.82;overflow-wrap:break-word}
.froid-chapter h3{line-height:1.4}
.froid-first-media{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(230px,.97fr);gap:1.35rem;align-items:start;margin:0 0 1.15rem}
.froid-first-copy p{margin-bottom:.8rem}
.froid-main-figure{margin:0!important;border:1px solid #d7eaf4;border-radius:16px;background:#fff}
.froid-main-figure img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.froid-main-figure figcaption{padding:.75rem .85rem;background:#f2faff;font-size:.82rem;line-height:1.55;color:#3d6176}
.froid-hover-figure{position:relative;overflow:hidden!important;border-radius:16px!important;box-shadow:0 8px 22px #18476619;transition:box-shadow .3s ease,transform .3s ease}
.froid-hover-image{display:block;width:100%;height:auto;object-fit:cover;transition:transform .38s ease,filter .38s ease;transform-origin:center center}
@media(hover:hover) and (pointer:fine){.froid-hover-figure:hover{box-shadow:0 14px 32px #18476637;transform:translateY(-2px)}.froid-hover-figure:hover .froid-hover-image{transform:scale(1.045);filter:saturate(1.06)}}
.froid-hover-figure:focus-within{outline:3px solid #08769a;outline-offset:3px}
.froid-illustrated-row>div,.froid-illustrated-row>figure{min-width:0;flex:1 1 0;width:auto!important}
.froid-illustrated-row img{aspect-ratio:16/9;max-height:none;object-fit:cover}
.froid-illustrated-row figcaption{background:#f2faff}
.froid-sources{margin-top:2rem;padding:1.25rem;border-radius:17px;border:1px solid #e2eff7;background:#f7fcff}
.froid-sources a{overflow-wrap:anywhere;color:#075f81}
.froid-table-scroll{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.froid-table-scroll:focus-visible{outline:3px solid #08769a;outline-offset:2px}
.froid-table{min-width:560px}
.froid-article a[href="guides-meteo.html"]{min-height:44px}
@media(max-width:1060px){.froid-editorial-layout{grid-template-columns:1fr}.froid-editorial-sidebar{position:static;max-height:none;overflow:visible}.froid-editorial-toc .froid-toc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.15rem .65rem!important}}
@media(max-width:700px){.froid-hero{min-height:320px;background-position:center,62% center}.froid-hero-inner{padding:29px 20px}.froid-hero-actions a{font-size:.85rem;padding:.6rem .85rem}.froid-editorial-intro,.froid-first-media{grid-template-columns:1fr}.froid-editorial-toc .froid-toc-grid{grid-template-columns:1fr!important}.froid-editorial-layout .froid-article{padding:1rem;border-radius:14px}.froid-editorial-layout .froid-chapter>h2.froid-editorial-heading{align-items:flex-start}.froid-heading-num{flex-basis:2rem;height:2rem;font-size:1rem}.froid-heading-text{overflow-wrap:anywhere}.froid-page{overflow-wrap:break-word}.froid-illustrated-row>div,.froid-illustrated-row>figure{width:100%!important;flex-basis:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.froid-hero-actions a,.froid-toc-card,.froid-hover-image,.froid-hover-figure{transition:none!important}.froid-hero-actions a:hover,.froid-hover-figure:hover,.froid-hover-figure:hover img{transform:none!important;filter:none!important}}

/* V3 : nouvelles planches scientifiques intégrées en alternance */
.froid-v3-media{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1rem,2vw,1.5rem);align-items:start;min-width:0;margin-bottom:1.2rem}
.froid-v3-media>.froid-v3-copy,.froid-v3-media>.froid-v3-figure{min-width:0;width:100%}
.froid-v3-figure{margin:0!important;border:1px solid #d7e8f1;background:#fff}
.froid-v3-figure img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.froid-v3-figure figcaption{padding:.65rem .85rem;background:#f2faff;color:#33566d;font-size:.8rem;line-height:1.5;text-align:center}
.froid-v3-copy>:first-child{margin-top:0}
@media(max-width:780px){.froid-v3-media{grid-template-columns:1fr}.froid-v3-media>.froid-v3-figure{order:1}.froid-v3-media>.froid-v3-copy{order:2}}
@media print{.froid-v3-media{grid-template-columns:1fr 1fr;break-inside:avoid}}


/* V4 — lisibilité, robustesse responsive et navigation clavier. */
.froid-editorial-layout,.froid-editorial-layout>*{min-width:0}
.froid-article{overflow-wrap:break-word}
.froid-chapter img{max-width:100%}
.froid-first-copy,.froid-v3-copy{overflow-wrap:break-word;min-width:0}
.froid-editorial-sidebar a:focus-visible,.froid-editorial-toc a:focus-visible,
.froid-chapter a:focus-visible,.froid-sources a:focus-visible,
.froid-table-scroll:focus-visible,.froid-hero a:focus-visible{
  outline:3px solid #007caa!important;outline-offset:3px;position:relative;z-index:2
}
.froid-editorial-toc .froid-toc-card:focus-visible{background:#e6faff!important}
.froid-table-scroll{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.froid-table-note{font-size:.84rem;color:#466576;margin:0 0 .5rem}
.froid-table{width:100%;border-collapse:collapse}
.froid-table th,.froid-table td{vertical-align:top}
.froid-main-figure{overflow:hidden}
.froid-hover-figure img{display:block}
.froid-hero-actions a{min-height:44px}
@media(max-width:1060px){
  .froid-editorial-sidebar{z-index:auto}
}
@media(max-width:780px){
  .froid-v3-media{grid-template-columns:minmax(0,1fr)}
  .froid-v3-media>.froid-v3-figure{order:1}
  .froid-v3-media>.froid-v3-copy{order:2}
}
@media(max-width:480px){
  .froid-hero{min-height:315px}
  .froid-hero-title{font-size:clamp(1.65rem,7vw,2.12rem)}
  .froid-hero-actions{gap:.5rem}
  .froid-hero-actions a{width:100%;justify-content:center}
  .froid-editorial-layout .froid-article{padding:.8rem}
  .froid-editorial-layout .froid-chapter{padding:.9rem}
  .froid-editorial-layout .froid-chapter>h2.froid-editorial-heading{gap:.55rem;font-size:1.18rem}
  .froid-editorial-toc .froid-toc-card{overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){
  .froid-hover-figure,.froid-hover-image,.froid-hero-actions a,.froid-toc-card{
    animation:none!important;transition:none!important
  }
}
@media print{
  html{scroll-behavior:auto}
  body{background:#fff!important}
  #global-header,#global-footer,.froid-skip,.froid-editorial-sidebar,
  .froid-hero-actions,.froid-table-note{display:none!important}
  .froid-hero{min-height:auto!important;padding:1rem 0;color:#172b3b!important;background:none!important;border-bottom:2px solid #1f86af}
  .froid-hero-title,.froid-hero-desc,.froid-hero-eyebrow{color:#172b3b!important;text-shadow:none!important}
  .froid-editorial-layout{display:block!important}
  .froid-article,.froid-chapter{box-shadow:none!important;border:0!important}
  .froid-v3-media{grid-template-columns:1fr 1fr}
  .froid-table-scroll{overflow:visible!important}
  .froid-table{min-width:0!important}
  .froid-chapter{break-inside:avoid}
}
