/* MeteoFlash France — Feux de forêt V4 : finalisation technique (base scientifique V1 inchangée). */
html{scroll-behavior:smooth;scroll-padding-top:115px}
body{background:linear-gradient(180deg,#f3efe7 0%,#fbf8f2 40%,#ffffff 100%)}
.feux-page{max-width:1540px;min-width:0;padding-top:1.5rem}
.feux-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:310px;margin:0;overflow:hidden;border-radius:0;border-bottom:5px solid #e1a451;background:linear-gradient(90deg,rgba(20,38,29,.97) 0%,rgba(44,52,37,.91) 43%,rgba(102,59,30,.38) 100%),url('images/guides/feux/feux-bandeau-hd.jpg') 50% 54%/cover no-repeat;color:#fff;box-shadow:none}
.feux-hero-inner{position:relative;z-index:1;width:min(1500px,100%);margin:auto;padding:35px max(23px,calc((100vw - 1450px)/2))}
.feux-eyebrow{font-size:.78rem;text-transform:uppercase;letter-spacing:.14em;font-weight:800;color:#ffe3b8;margin:0 0 .8rem}
.feux-hero-title{font-size:clamp(1.95rem,3.3vw,3.45rem);font-weight:900;line-height:1.16;max-width:1050px;margin:0 0 .75rem;text-shadow:0 3px 12px #1025379c;letter-spacing:-.02em}
.feux-hero-desc{max-width:800px;font-size:clamp(.98rem,1.35vw,1.12rem);line-height:1.7;color:#fff0d7;margin:0 0 1.15rem}
.feux-hero-action{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:.7rem 1.15rem;border-radius:999px;background:#f4cb84;color:#3b301d;text-decoration:none;font-weight:800;transition:transform .22s,background .22s}
.feux-hero-action:hover{background:#ffe5ad;color:#3b301d;transform:translateY(-2px)}
.feux-layout{display:grid;grid-template-columns:minmax(255px,325px) minmax(0,1fr);gap:clamp(1rem,2vw,2rem);align-items:start}
.feux-sidebar{position:sticky;top:105px;align-self:start;max-height:calc(100vh - 125px);overflow-y:auto;scrollbar-width:thin;min-width:0}
.feux-toc{background:#fff;border:1px solid #e8e1d2;border-radius:17px;overflow:hidden;box-shadow:0 10px 30px #45352412}
.feux-toc-heading{margin:0;padding:1rem 1.15rem;font-size:1.13rem;font-weight:850;line-height:1.35;color:#fff;background:linear-gradient(115deg,#325842,#b46c33)}
.feux-toc-help{margin:.7rem 1rem .4rem;font-size:.82rem;color:#6b695f}
.feux-toc-items{display:grid;grid-template-columns:1fr;gap:0;list-style:none;padding:.35rem .55rem .75rem;margin:0}
.feux-toc-items li{min-width:0}
.feux-toc-link{display:flex;align-items:center;gap:.65rem;min-height:44px;border-radius:9px;border-bottom:1px solid #e8f0f3;padding:.45rem .5rem;color:#35523c;text-decoration:none;transition:background .2s}
.feux-toc-link:hover{background:#fdf2dd;text-decoration:none;color:#8d4b21}
.feux-toc-number{display:flex;align-items:center;justify-content:center;flex:0 0 1.85rem;height:1.85rem;border-radius:7px;background:linear-gradient(135deg,#396447,#c5803b);color:#fff;font-size:.8rem;font-weight:850}
.feux-toc-label{flex:1;min-width:0;line-height:1.36;font-size:.85rem;font-weight:700;overflow-wrap:anywhere}
.feux-article{min-width:0;background:#fff;border:1px solid #e8e4d7;border-radius:19px;padding:clamp(1.05rem,2.2vw,2rem);box-shadow:0 12px 32px #42361f12;color:#3b4d58}
.feux-back-link{display:inline-flex;align-items:center;min-height:44px;font-size:.87rem;font-weight:800;color:#8c4f28;margin-bottom:.8rem;text-decoration:none}
.feux-back-link:hover{text-decoration:none}
.feux-intro{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(240px,.94fr);gap:1.2rem;align-items:start;margin:.9rem 0 1.8rem;padding:1rem 0 1.55rem;border-bottom:1px solid #ebe5d7}
.feux-intro-copy h2{font-size:clamp(1.35rem,2.1vw,1.8rem);color:#405a40;font-weight:850;line-height:1.3;margin:0 0 .7rem}
.feux-intro-copy p{font-size:1rem;color:#60685c;line-height:1.8}
.feux-keypoint{border:1px solid #eed6ba;border-left:4px solid #d39446;border-radius:15px;background:linear-gradient(135deg,#fff3df,#fffaf4);padding:1.1rem 1.2rem;box-shadow:0 8px 18px #8a5a2414}
.feux-keypoint h2{font-size:1.12rem;font-weight:850;color:#4c593b;margin:0 0 .55rem}
.feux-keypoint p{font-size:.95rem;color:#534c37;line-height:1.75}
.feux-chapter{min-width:0;margin:0 0 1.25rem;padding:clamp(1.05rem,2.15vw,1.7rem);border:1px solid #e9dfd0;border-radius:17px;background:#fff;box-shadow:0 8px 25px #4f412b12;scroll-margin-top:115px}
.feux-chapter-heading{display:flex;align-items:center;gap:.75rem;border-bottom:2px solid #eee2cc;padding:0 0 .8rem;margin:0 0 1.2rem;font-size:clamp(1.25rem,2vw,1.75rem);color:#405a3e;font-weight:850;line-height:1.35}
.feux-heading-num{display:flex;align-items:center;justify-content:center;flex:0 0 2.35rem;height:2.35rem;border-radius:9px;background:linear-gradient(135deg,#366146,#bd7638);color:#fff;font-size:1.1rem;font-weight:900}
.feux-heading-text{min-width:0;flex:1;overflow-wrap:anywhere}
.feux-chapter p,.feux-chapter li{line-height:1.82;overflow-wrap:break-word}
.feux-chapter h3{line-height:1.4}
.feux-illustrated-row{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(220px,.95fr);gap:1.25rem;align-items:start;margin:0 0 1.15rem}
.feux-illustrated-row>*{min-width:0}
.feux-row-copy{grid-column:1;grid-row:1}
.feux-illustrated-row .feux-figure{grid-column:2;grid-row:1}
.feux-illustration-left .feux-figure{grid-column:1;grid-row:1}
.feux-illustration-left .feux-row-copy{grid-column:2;grid-row:1}
.feux-figure{margin:0;overflow:hidden;border:1px solid #e8d8c6;border-radius:14px;background:#fff9ed;box-shadow:0 7px 20px #6550351c;transition:transform .3s,box-shadow .3s}
.feux-hover-image{display:block;width:100%;height:auto;max-height:none;aspect-ratio:16/9;object-fit:cover;transition:transform .35s,filter .35s}
.feux-caption{padding:.75rem .9rem;font-size:.84rem;line-height:1.55;color:#4c5c45;background:#faf0df;text-align:center}
@media(hover:hover) and (pointer:fine){.feux-figure:hover{transform:translateY(-2px);box-shadow:0 14px 30px #624b2a2b}.feux-figure:hover .feux-hover-image{transform:scale(1.045);filter:saturate(1.06)}}
.feux-article a:focus-visible,.feux-hero a:focus-visible,.feux-toc a:focus-visible{outline:3px solid #bf671f;outline-offset:3px}
.feux-sources{margin:2rem 0 .7rem;padding:1.2rem;border-radius:15px;background:#fffcf5;border:1px solid #eae2d4}
.feux-sources a{color:#855025;overflow-wrap:anywhere}
.feux-chapter .overflow-x-auto{max-width:100%;scrollbar-width:thin}
@media(max-width:1070px){.feux-layout{grid-template-columns:1fr}.feux-sidebar{position:static;max-height:none;overflow:visible}.feux-toc-items{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:.65rem}}
@media(max-width:740px){.feux-hero{min-height:330px;background-position:center,63% center}.feux-hero-inner{padding:29px 20px}.feux-intro{grid-template-columns:1fr}.feux-illustrated-row{grid-template-columns:1fr}.feux-illustrated-row .feux-row-copy,.feux-illustrated-row .feux-figure,.feux-illustration-left .feux-row-copy,.feux-illustration-left .feux-figure{grid-column:1;grid-row:auto}.feux-illustrated-row .feux-row-copy{order:0}.feux-illustrated-row .feux-figure{order:1}.feux-toc-items{grid-template-columns:1fr}.feux-article{padding:1rem}}
@media(max-width:480px){.feux-hero-title{font-size:1.9rem}.feux-chapter-heading{align-items:flex-start}.feux-heading-num{flex:0 0 2rem;height:2rem;font-size:1rem}.feux-chapter{padding:1rem}.feux-article{border-radius:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.feux-figure,.feux-hover-image,.feux-hero-action,.feux-toc-link{transition:none!important}.feux-figure:hover,.feux-figure:hover img,.feux-hero-action:hover{transform:none!important;filter:none!important}}

/* Feux de forêt — identité forestière et ambre, bandeau full-bleed. */
.feux-hero{background-position:center,50% 50%;background-size:cover;box-shadow:none;border-radius:0}
.feux-hero-title{color:#fff}.feux-hero-desc{color:#fff4de}.feux-page{padding-top:1.5rem}


/* === V4 : navigation clavier, petits écrans, impression === */
.feux-skip-link{position:fixed;left:1rem;top:-8rem;z-index:9999;padding:.8rem 1.1rem;background:#fff9e7;color:#1d412e;border:3px solid #b86b29;border-radius:.65rem;box-shadow:0 6px 18px #0003;font-weight:800;text-decoration:none}
.feux-skip-link:focus,.feux-skip-link:focus-visible{top:.8rem;outline:3px solid #174d49;outline-offset:3px}
.feux-page:focus{outline:none}
.feux-page a:focus-visible,.feux-hero a:focus-visible,.feux-sidebar a:focus-visible,.feux-chapter [tabindex="0"]:focus-visible{outline:3px solid #955115;outline-offset:3px;border-radius:4px}
.feux-chapter .overflow-x-auto[role="region"]{max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin}
.feux-chapter table{min-width:560px}
.feux-article,.feux-chapter,.feux-row-copy{overflow-wrap:anywhere}
.feux-sources a{overflow-wrap:anywhere}
@media(max-width:780px){
 .feux-hero-inner{padding:2rem 1.1rem}
 .feux-hero{min-height:unset;padding:1.25rem 0}
 .feux-page{padding-left:.8rem;padding-right:.8rem}
 .feux-layout{gap:.9rem}
 .feux-sidebar{position:static;max-height:none}
 .feux-chapter-heading{word-break:normal}
}
@media(max-width:480px){
 .feux-hero-inner{padding:1.65rem .95rem}
 .feux-hero-title{font-size:clamp(1.6rem,7.1vw,1.95rem)}
 .feux-hero-desc{font-size:.95rem;line-height:1.55}
 .feux-hero-action{width:100%;max-width:320px}
 .feux-page{padding-left:.65rem;padding-right:.65rem}
 .feux-article{padding:.8rem}
 .feux-chapter{padding:.85rem}
 .feux-chapter-heading{font-size:1.2rem;gap:.5rem}
 .feux-toc-link{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
 html:focus-within{scroll-behavior:auto}
 .feux-hero-action,.feux-hover-image,.feux-figure,.feux-toc-link{transition:none!important;animation:none!important}
 .feux-hero-action:hover,.feux-figure:hover,.feux-figure:hover .feux-hover-image{transform:none!important;filter:none!important}
}
@media print{
 @page{size:A4;margin:14mm}
 html,body{background:#fff!important;color:#111!important;scroll-behavior:auto!important}
 #global-header,#global-footer,#toast-container,.feux-sidebar,.feux-hero-action,.feux-back-link,.feux-skip-link{display:none!important}
 .feux-hero{min-height:0!important;padding:0!important;border:0!important;background:none!important;color:#111!important;box-shadow:none!important}
 .feux-hero-inner{width:100%!important;padding:0 0 12pt!important}
 .feux-hero-title,.feux-hero-desc,.feux-eyebrow{color:#111!important;text-shadow:none!important}
 .feux-page{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
 .feux-layout{display:block!important}
 .feux-article,.feux-chapter{display:block!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:#fff!important;padding:0!important}
 .feux-chapter{padding-top:9pt!important;border-top:1pt solid #bbb!important;margin:0 0 12pt!important;break-inside:auto}
 .feux-chapter-heading,h2,h3,figure,table,tr{break-inside:avoid;page-break-inside:avoid}
 .feux-chapter-heading{color:#222!important}
 .feux-intro{display:block!important}
 .feux-illustrated-row{display:block!important}
 .feux-figure{display:block!important;width:min(100%,145mm)!important;margin:9pt auto!important;box-shadow:none!important;break-inside:avoid}
 .feux-figure img{max-height:75mm!important;object-fit:contain!important}
 .feux-figure figcaption{color:#222!important;background:#fff!important}
 .feux-chapter .overflow-x-auto{overflow:visible!important}
 .feux-chapter table{min-width:0!important;width:100%!important;font-size:9pt!important}
 a{color:#222!important;text-decoration:underline!important}
 .feux-hover-image,.feux-figure{transform:none!important;filter:none!important;transition:none!important}
}

/* V4 — Harmonisation des liens de retour aux guides météo */
.feux-back-link,.feux-bottom-back-link{column-gap:.55rem;text-decoration:none}
.feux-back-link:hover,.feux-back-link:focus-visible{color:#593018;text-decoration:none}
.feux-bottom-back-link:hover,.feux-bottom-back-link:focus-visible{background-color:#b91c1c;color:#fff;text-decoration:none}
.feux-back-link i,.feux-bottom-back-link i{flex-shrink:0}
