/* MeteoFlash France — Guide Sécheresse — V4 finalisation technique (sur V3 illustrée validée)
   Style dédié, indépendant de style.css ; aucun changement aux scripts communs. */
html{scroll-behavior:smooth;scroll-padding-top:115px}
body{background:linear-gradient(180deg,#fff9ef 0%,#fcfaf5 36%,#fff 100%)}
.secheresse-skip{position:fixed;left:16px;top:-110px;z-index:9999;background:#553515;color:#fff;padding:.85rem 1rem;border-radius:0 0 12px 12px;font-weight:800}
.secheresse-skip:focus{top:0;outline:3px solid #0b8b92;outline-offset:3px}
.secheresse-page{max-width:1540px;padding-top:1.5rem}
.secheresse-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:295px;color:#fff;overflow:hidden;border-bottom:5px solid #e3aa50;background:linear-gradient(90deg,rgba(49,29,12,.96) 0%,rgba(94,55,18,.90) 45%,rgba(78,56,33,.36) 100%),url('images/guides/secheresse/secheresse-bandeau-hd.jpg') center 52%/cover no-repeat}
.secheresse-hero::before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(0deg,rgba(39,22,9,.25),transparent 80%)}
.secheresse-hero-inner{width:min(1500px,100%);margin:auto;padding:35px max(23px,calc((100vw - 1450px)/2))}
.secheresse-hero-eyebrow{font-size:.79rem;letter-spacing:.14em;font-weight:800;text-transform:uppercase;color:#fff0ce;margin:0 0 .65rem}
.secheresse-hero-title{font-size:clamp(1.9rem,3.65vw,3.45rem);font-weight:900;line-height:1.15;letter-spacing:-.02em;max-width:1050px;text-shadow:0 2px 14px #1f160a70}
.secheresse-hero-desc{max-width:900px;font-size:clamp(.96rem,1.35vw,1.12rem);line-height:1.65;color:#fff9ee;margin-top:.85rem}
.secheresse-hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.35rem}
.secheresse-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}
.secheresse-hero-primary{background:#f7ce83;color:#3b230c}.secheresse-hero-secondary{background:#152f30ae;border:1px solid #d8f5ef;color:#fff}
.secheresse-hero-actions a:hover{background:#ffebbb;color:#33200e;transform:translateY(-2px)}
.secheresse-page a:focus-visible,.secheresse-hero a:focus-visible{outline:3px solid #058b97;outline-offset:3px}
.secheresse-editorial-layout{display:grid;grid-template-columns:minmax(265px,330px) minmax(0,1fr);gap:clamp(1rem,2.1vw,2rem);align-items:start}
.secheresse-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:#ddbd89 transparent}
.secheresse-editorial-toc{margin:0!important;padding:0!important;border:1px solid #e9d8bd!important;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 30px #6e492217}
.secheresse-editorial-toc>h2{background:linear-gradient(110deg,#754619,#ae722c);color:#fff;margin:0;padding:1rem 1.1rem;font-size:1.2rem;line-height:1.35}
.secheresse-toc-subtitle{font-size:.8rem;line-height:1.5;color:#76634d;margin:.65rem 1rem .25rem}
.secheresse-editorial-toc .secheresse-toc-grid{display:grid!important;grid-template-columns:1fr!important;gap:0!important;padding:.45rem .6rem .7rem!important;margin:0!important;list-style:none}
.secheresse-editorial-toc .secheresse-toc-grid li{min-width:0}
.secheresse-editorial-toc .secheresse-toc-card{display:flex!important;gap:.7rem;align-items:center;min-height:46px;padding:.47rem .55rem!important;background:#fff!important;border:0!important;border-bottom:1px solid #f1e6d7!important;border-radius:9px!important;text-decoration:none!important;box-shadow:none!important;transition:background .2s}
.secheresse-editorial-toc .secheresse-toc-grid li:last-child .secheresse-toc-card{border-bottom:0!important}
.secheresse-editorial-toc .secheresse-toc-card:hover{background:#fff1d9!important}
.secheresse-editorial-toc .secheresse-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,#bf7e26,#e8b75a);color:#292012;font-size:.83rem;font-weight:900}
.secheresse-editorial-toc .secheresse-toc-label{font-size:.86rem;line-height:1.3;color:#4d351f;font-weight:750}
.secheresse-editorial-layout .secheresse-article{min-width:0;padding:clamp(1.15rem,2.3vw,2rem);border:1px solid #ece0d0;border-radius:20px;box-shadow:0 15px 35px #634b2c0d;background:#fff;color:#44443f}
.secheresse-editorial-layout .secheresse-article>.flex.flex-wrap{margin:0 0 1.2rem}
.secheresse-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 #f0e3cf}
.secheresse-editorial-lead h2{color:#835115;font-size:clamp(1.35rem,2.1vw,1.85rem);font-weight:850;line-height:1.25;margin:0 0 .7rem}
.secheresse-editorial-lead>p{color:#4a514d;line-height:1.8;font-size:1rem;margin:0}
.secheresse-editorial-intro .secheresse-keypoint{margin:0!important;padding:1.1rem 1.2rem!important;border:1px solid #efdfc0;border-left:4px solid #c7842c;border-radius:18px;background:linear-gradient(140deg,#fff5df,#fcfbf4);box-shadow:0 8px 20px #7952230b}
.secheresse-editorial-intro .secheresse-keypoint h2{font-weight:850;color:#71420c;margin:0 0 .55rem;font-size:1.1rem}
.secheresse-editorial-intro .secheresse-keypoint p{font-size:.93rem;line-height:1.75;color:#55462d}
.secheresse-editorial-intro .secheresse-keypoint a{color:#075f69;font-weight:800}
.secheresse-editorial-layout .secheresse-chapter{padding:clamp(1.1rem,2.2vw,1.7rem);margin-bottom:1.2rem;border:1px solid #ebdfce;border-radius:17px;background:#fff;box-shadow:0 9px 26px #614a2b10;min-width:0;scroll-margin-top:115px}
.secheresse-editorial-layout .secheresse-chapter>h2.secheresse-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:#70471e;border-bottom:2px solid #f1d9ac}
.secheresse-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,#b36e20,#eab965);box-shadow:0 5px 12px #9b692b28;color:#fff;font-size:1.15rem;font-weight:900}
.secheresse-heading-text{flex:1;min-width:0}
.secheresse-chapter p,.secheresse-chapter li{line-height:1.82;overflow-wrap:break-word}
.secheresse-chapter h3{line-height:1.4}
.secheresse-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}
.secheresse-first-copy p{margin-bottom:.8rem}
.secheresse-main-figure{margin:0!important;overflow:hidden;border:1px solid #edddc5;border-radius:16px;background:#fff;box-shadow:0 8px 24px #6f51231c}
.secheresse-main-figure img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.secheresse-main-figure figcaption{padding:.75rem .85rem;background:#fff9ef;font-size:.82rem;line-height:1.55;color:#6b5339}
/* Hover sur toutes les illustrations de contenu, y compris la première. */
.secheresse-hover-figure{position:relative;overflow:hidden!important;border-radius:16px!important;box-shadow:0 8px 22px #654d2919;transition:box-shadow .3s ease,transform .3s ease}
.secheresse-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){.secheresse-hover-figure:hover{box-shadow:0 14px 32px #6f532937;transform:translateY(-2px)}.secheresse-hover-figure:hover .secheresse-hover-image{transform:scale(1.045);filter:saturate(1.06)}}
.secheresse-hover-figure:focus-within{outline:3px solid #0b8290;outline-offset:3px}
.secheresse-sources{margin-top:2rem;padding:1.25rem;border-radius:17px;border:1px solid #eee1cd;background:#fffbf4}
.secheresse-sources a{overflow-wrap:anywhere;color:#0c6571}
.secheresse-table-scroll{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.secheresse-table-scroll:focus-visible{outline:3px solid #0b8290;outline-offset:2px}
.secheresse-table{min-width:560px}
.secheresse-article a[href="guides-meteo.html"]{min-height:44px}
@media(max-width:1060px){.secheresse-editorial-layout{grid-template-columns:1fr}.secheresse-editorial-sidebar{position:static;max-height:none;overflow:visible}.secheresse-editorial-toc .secheresse-toc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.15rem .65rem!important}}
@media(max-width:700px){.secheresse-hero{min-height:320px;background-position:center,62% center}.secheresse-hero-inner{padding:29px 20px}.secheresse-hero-actions a{font-size:.85rem;padding:.6rem .85rem}.secheresse-editorial-intro,.secheresse-first-media{grid-template-columns:1fr}.secheresse-editorial-toc .secheresse-toc-grid{grid-template-columns:1fr!important}.secheresse-editorial-layout .secheresse-article{padding:1rem;border-radius:14px}.secheresse-editorial-layout .secheresse-chapter>h2.secheresse-editorial-heading{align-items:flex-start}.secheresse-heading-num{flex-basis:2rem;height:2rem;font-size:1rem}.secheresse-heading-text{overflow-wrap:anywhere}.secheresse-page{overflow-wrap:break-word}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.secheresse-hero-actions a,.secheresse-toc-card,.secheresse-hover-image,.secheresse-hover-figure{transition:none!important}.secheresse-hero-actions a:hover,.secheresse-hover-figure:hover,.secheresse-hover-figure:hover img{transform:none!important;filter:none!important}}


/* V3 corrigée — composition alternée et alignement fiable */
.secheresse-editorial-layout .secheresse-illustrated-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:start;
  column-gap:clamp(1rem,2.3vw,1.6rem);
  row-gap:1rem;
}
.secheresse-editorial-layout .secheresse-illustrated-row > .secheresse-illustrated-copy,
.secheresse-editorial-layout .secheresse-illustrated-row > .secheresse-illustrated-figure{
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;
}
.secheresse-illustrated-figure img{
  display:block;width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;
}
.secheresse-main-figure{transition:box-shadow .3s ease,transform .3s ease}
.secheresse-main-figure img.secheresse-hover-image{transition:transform .38s ease,filter .38s ease}
@media (max-width:850px){
 .secheresse-editorial-layout .secheresse-illustrated-row{grid-template-columns:minmax(0,1fr)!important;}
}
@media (prefers-reduced-motion:reduce){
 .secheresse-main-figure,.secheresse-main-figure img.secheresse-hover-image{transition:none!important}
}


/* V4 — refinements responsive, accessibilité et stabilité de la mise en page. */
.secheresse-editorial-layout > *{min-width:0}
.secheresse-editorial-layout .secheresse-illustrated-row > *{min-width:0}
.secheresse-illustrated-figure figcaption{overflow-wrap:anywhere}
.secheresse-main-figure img,
.secheresse-illustrated-figure img{aspect-ratio:16 / 9;object-fit:cover}
.secheresse-editorial-layout .secheresse-chapter{overflow-wrap:anywhere}
.secheresse-scroll-hint{display:none;color:#6b4b20;font-size:.82rem;line-height:1.5;margin:.5rem 0 .6rem}
.secheresse-table-scroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.secheresse-table-scroll:focus-visible,
.secheresse-editorial-toc a:focus-visible,
.secheresse-chapter a:focus-visible,
.secheresse-sources a:focus-visible{outline:3px solid #087f8d;outline-offset:3px;border-radius:4px}
@media (max-width:700px){
 .secheresse-scroll-hint{display:block}
 .secheresse-hero-title{hyphens:auto;overflow-wrap:break-word}
 .secheresse-editorial-layout .secheresse-illustrated-row{grid-template-columns:minmax(0,1fr)!important}
 .secheresse-article,.secheresse-editorial-intro{min-width:0}
}
@media (prefers-reduced-motion:reduce){
 .secheresse-hover-figure,.secheresse-hover-image,.secheresse-main-figure{
  animation:none!important;transition:none!important;transform:none!important;
 }
 .secheresse-hover-figure:hover,.secheresse-hover-figure:hover .secheresse-hover-image{
  transform:none!important;filter:none!important;
 }
}
