/* Homepage — editorial front page for the advarP media-tool positioning. */

.newspaper-home{overflow:hidden}
.newspaper-home :where(.home-hero,.home-tool-definition,.home-analyses,.home-browser,.home-krokodil,.home-discovery,.home-manifesto,.home-collab,.home-tools){position:relative}
.newspaper-home .hero h1,.newspaper-home h2,.newspaper-home h3{overflow-wrap:normal;word-break:normal}

/* HERO */
.home-hero{padding:38px 0 34px!important;border-bottom:7px solid var(--line);background:rgba(255,255,255,.72)}
.home-hero-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.55fr);gap:28px;align-items:end}
.home-hero-copy{min-width:0}
.home-hero .tag{display:inline-block;margin-bottom:10px}
.home-hero h1{max-width:15ch!important;margin:.08em 0 .18em!important;font-size:clamp(4rem,7vw,7.2rem)!important;line-height:.84!important;letter-spacing:-.045em!important;text-transform:none!important;text-wrap:balance;color:#111!important}
.home-hero h1 span{color:var(--red)!important}
.home-hero-kicker{max-width:860px;margin:0 0 .65rem;font-family:Arial,Helvetica,sans-serif;font-size:clamp(1.08rem,2vw,1.45rem);font-weight:950;line-height:1.15;text-transform:uppercase;letter-spacing:.025em;color:var(--red)}
.home-hero .lead{max-width:74ch!important;margin:0;font-size:clamp(1.06rem,1.7vw,1.3rem);line-height:1.5}
.home-hero-actions{margin:22px 0 18px!important}
.home-hero-actions .btn{min-width:170px}
.home-hero-chips{max-width:860px}
.home-frontpage-note{align-self:end;border-top:8px solid var(--red);border-bottom:2px solid var(--line);padding:14px 0 16px}
.home-frontpage-note strong{display:block;margin:.2rem 0 .55rem;font-family:var(--display);font-size:clamp(1.7rem,2.6vw,2.45rem);line-height:1;color:#111}
.home-frontpage-note p{margin:.4rem 0 .8rem}
.home-frontpage-note a{font-weight:900;text-underline-offset:4px}

/* MEDIA-TOOL EXPLAINER */
.home-tool-definition{padding:32px 0 42px!important;background:#181512!important;color:#f7f1e8;border-top:0!important;border-bottom:7px solid var(--red)}
.home-definition-head{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,.7fr);gap:28px;align-items:end;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.26)}
.home-definition-head .eyebrow{color:#efcf8b}
.home-definition-head h2{margin:.08em 0 0;font-family:var(--display);font-size:clamp(2.6rem,5.5vw,5rem);line-height:.9;color:#fff;text-transform:none}
.home-definition-head p{margin:0;color:#d6cdc0}
.home-tool-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid rgba(255,255,255,.25)}
.home-tool-cards article{min-width:0;padding:18px;border-right:1px solid rgba(255,255,255,.23)}
.home-tool-cards article:last-child{border-right:0}
.home-tool-cards article>span{display:block;font:950 .75rem/1 Arial,Helvetica,sans-serif;color:#efcf8b;letter-spacing:.08em}
.home-tool-cards h3{margin:.35rem 0 .5rem;font-family:var(--display);font-size:clamp(1.8rem,3vw,2.6rem);line-height:.95;color:#fff;text-transform:none}
.home-tool-cards p{color:#d8d0c4}
.home-tool-cards a{font-weight:900;color:#fff;text-underline-offset:4px}

/* ANALYSES */
.home-analyses{padding-top:38px!important;border-top:0!important;border-bottom:5px double var(--line);background:rgba(255,255,255,.42)}
.home-analyses-head{border-bottom:4px solid var(--line)!important;margin-bottom:20px!important}
.home-analyses-head h2{font-size:clamp(3rem,6vw,5.5rem)!important;color:#111!important}
.home-analyses-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.7fr);gap:20px;align-items:start}
.home-analysis-featured{border:3px solid var(--line);background:#fff;padding:20px}
.home-analysis-meta{display:flex;justify-content:space-between;gap:12px;margin:.55rem 0 .35rem;font:900 .72rem/1.35 Arial,Helvetica,sans-serif;text-transform:uppercase;letter-spacing:.055em;color:var(--red)}
.home-analysis-featured h2{margin:.08em 0 .22em;font-family:var(--display);font-size:clamp(2.6rem,5.2vw,4.8rem);line-height:.9;color:var(--red);text-transform:none}
.home-analysis-featured h2 a,.home-analysis-brief h3 a{color:inherit;text-decoration:none}
.home-analysis-featured h2 a:hover,.home-analysis-featured h2 a:focus-visible,.home-analysis-brief h3 a:hover,.home-analysis-brief h3 a:focus-visible{text-decoration:underline;text-decoration-thickness:.055em;text-underline-offset:.08em}
.home-analysis-featured .lead{max-width:72ch;margin-bottom:18px}
.home-analysis-latest{border-top:7px solid var(--red);border-bottom:2px solid var(--line);background:#fff;padding:14px 16px 16px}
.home-analysis-brief{border-top:1px solid var(--soft-line);padding:14px 0 12px}
.home-analysis-latest>.eyebrow+.home-analysis-brief{margin-top:7px}
.home-analysis-brief h3{margin:.12em 0 .32em;font-family:var(--display);font-size:clamp(1.55rem,2.8vw,2.35rem);line-height:.98;color:var(--red);text-transform:none}
.home-analysis-brief p{margin:.35rem 0 .55rem}
.home-analysis-read{font-family:Arial,Helvetica,sans-serif;font-weight:900;text-transform:uppercase;letter-spacing:.035em}

/* BIG BROWSER */
.home-browser{padding-top:40px!important;background:rgba(255,255,255,.68);border-top:7px solid var(--line)!important}
.home-browser-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:28px;align-items:end;margin-bottom:18px}
.home-browser-head h2{margin:.08em 0 0;font-family:var(--display);font-size:clamp(3.3rem,7vw,6.4rem);line-height:.82;color:var(--red);text-transform:none}
.home-browser-head p{margin:0;font-size:1.05rem}
.home-browser-count{margin:0!important;border:3px solid #4d0808}
.newspaper-home #big-browser .count-panel,.newspaper-home #big-browser .count-panel p,.newspaper-home #big-browser .count-panel .fine,.newspaper-home #big-browser .count-panel strong,.newspaper-home #big-browser .count-panel span{color:#fff!important}
.home-browser-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:2px solid var(--line);border-top:0;background:#fff}
.home-browser-grid article{padding:18px;border-right:1px solid var(--line)}
.home-browser-grid article:last-child{border-right:0}
.home-browser-grid h3{margin:.15em 0 .45em;font-family:var(--display);font-size:clamp(1.6rem,2.7vw,2.35rem);line-height:.98;color:#111;text-transform:none}
.home-browser-grid a{font-weight:900;color:var(--red);text-underline-offset:4px}

/* QUIZ */
.home-quiz{border-top:8px solid var(--red)!important}
.home-quiz .section-head{border-bottom-color:#675e51!important}

/* KROKODIL */
.home-krokodil{background:#efece6;border-top:8px solid var(--line)!important}
.home-krokodil-head{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:28px;align-items:end;margin-bottom:20px;padding-bottom:14px;border-bottom:3px solid var(--line)}
.home-krokodil-head h2{margin:.06em 0 0;font-family:var(--display);font-size:clamp(2.8rem,5.8vw,5.1rem);line-height:.9;color:#111;text-transform:none}
.home-krokodil-head p{margin:0}
.home-krokodil-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;margin-bottom:22px}
.home-krokodil-grid>article{border:2px solid var(--line);background:#fff;padding:18px}
.home-krokodil-grid .home-krokodil-feature{background:var(--red);color:#fff;border-color:#4b0a0a}
.home-krokodil-feature .eyebrow{color:#f0d79c}
.home-krokodil-grid h3{margin:.18em 0 .45em;font-family:var(--display);font-size:clamp(2rem,3.6vw,3.25rem);line-height:.94;text-transform:none}
.home-krokodil-feature h3{color:#fff}
.home-krokodil-feature .btn.primary{background:#fff!important;color:var(--red)!important;border-color:#fff!important;box-shadow:3px 3px 0 #4b0a0a!important}
.home-meme-strip{margin-top:8px}

/* SECONDARY EDITORIAL DOORS */
.home-discovery{background:#fff;border-top:5px double var(--line)!important}
.home-discovery-head{margin-bottom:18px!important}
.home-discovery-head h2{font-size:clamp(2.6rem,5vw,4.6rem)!important;text-transform:none!important}
.home-discovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.home-discovery-grid article{border:2px solid var(--line);background:var(--paper2);padding:18px}
.home-discovery-grid h3{margin:.15em 0 .4em;font-family:var(--display);font-size:clamp(1.9rem,3.4vw,3rem);line-height:.96;text-transform:none}
.home-discovery-grid a{font-weight:900;color:var(--red);text-underline-offset:4px}

/* MANIFESTO */
.home-manifesto{padding:46px 0!important;background:#fff;border-top:7px solid var(--red)!important}
.home-manifesto-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:40px;align-items:start}
.home-manifesto h2{margin:.08em 0;font-family:var(--display);font-size:clamp(2.5rem,5vw,4.6rem);line-height:.92;color:var(--red);text-transform:none}
.home-manifesto .lead{margin-top:0}

/* COLLABORATIONS */
.home-collab{padding:44px 0!important;background:#181512!important;color:#f7f1e8;border-top:0!important;border-bottom:7px solid var(--red)}
.home-collab-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:36px;align-items:start}
.home-collab .eyebrow{color:#efcf8b}
.home-collab h2{margin:.12em 0 .3em;font-family:var(--display);font-size:clamp(2.7rem,5.4vw,5rem);line-height:.9;color:#fff;text-transform:none}
.home-collab .lead{color:#e1d8cb}
.home-collab aside{border-top:6px solid var(--red);padding-top:14px}
.home-collab aside strong{font-family:var(--display);font-size:1.7rem;color:#fff}
.home-collab aside ul{padding-left:1.25rem;color:#ddd3c6}
.home-collab .btn:not(.primary){background:#fff!important;color:#171310!important;border-color:#fff!important}

/* SMALL LOCAL TOOLS */
.home-tools{background:rgba(255,255,255,.5)}
.home-tools .section-head h2{text-transform:none!important}
.home-tool-disclosure{border:2px solid var(--line);background:#fff}
.home-tool-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:14px 16px;cursor:pointer;font-family:Arial,Helvetica,sans-serif;font-weight:900;color:var(--red);list-style:none}
.home-tool-disclosure>summary::-webkit-details-marker{display:none}
.home-tool-disclosure>summary::after{content:"+";font-size:1.6rem;line-height:1;color:var(--ink)}
.home-tool-disclosure[open]>summary{border-bottom:1px solid var(--line)}
.home-tool-disclosure[open]>summary::after{content:"−"}
.home-tool-disclosure .campaign-generator{margin:0;padding:18px}
body.accessible .home-tool-disclosure{border-color:#334f59!important}body.accessible .home-tool-disclosure>summary{font-family:Verdana,Tahoma,Arial,sans-serif!important;color:#005a70!important}

/* ACCESSIBLE MODE */
body.accessible .home-hero,body.accessible .home-analyses,body.accessible .home-browser,body.accessible .home-krokodil,body.accessible .home-discovery,body.accessible .home-manifesto,body.accessible .home-tools{background:#fff!important}
body.accessible .home-tool-definition,body.accessible .home-collab{background:#102f3a!important}
body.accessible .home-hero h1,body.accessible .home-analyses-head h2,body.accessible .home-krokodil-head h2{color:var(--ink)!important}
body.accessible .home-frontpage-note,body.accessible .home-analysis-latest{border-top-color:#005a70!important}
body.accessible .home-krokodil-feature{background:#005a70!important;border-color:#005a70!important}
body.accessible .home-krokodil-feature .btn.primary{color:#005a70!important}

/* CANDIDATURE FICTIVE — l’aperçu se réduit à l’écran sans modifier le PNG 1240×1754 exporté. */
.campaign-leaflet-output{min-width:0;max-width:100%;overflow:hidden}
#campaignLeafletCanvas{display:block;max-width:100%;height:auto;margin:18px auto 0;box-sizing:border-box}
.campaign-leaflet-text{max-width:100%;white-space:normal}

/* RESPONSIVE */
@media(max-width:1040px){
  .home-tool-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-tool-cards article:nth-child(2){border-right:0}
  .home-tool-cards article:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.23)}
}
@media(max-width:920px){
  .home-hero-grid,.home-definition-head,.home-analyses-grid,.home-browser-head,.home-krokodil-head,.home-manifesto-grid,.home-collab-grid{grid-template-columns:1fr}
  .home-discovery-grid{grid-template-columns:1fr}
  .home-hero h1{max-width:18ch!important;font-size:clamp(3rem,9vw,5rem)!important;line-height:.9!important}
  .home-frontpage-note{max-width:720px}
  .home-analysis-latest{border-top-width:4px}
  .home-browser-grid{grid-template-columns:1fr}
  .home-browser-grid article{border-right:0;border-bottom:1px solid var(--line)}
  .home-browser-grid article:last-child{border-bottom:0}
  .home-krokodil-grid{grid-template-columns:1fr}
  .home-manifesto-grid,.home-collab-grid{gap:20px}
}
@media(max-width:680px){
  .campaign-progress{grid-template-columns:1fr}
  .campaign-progress span{border-right:0;border-bottom:1px solid var(--line)}
  .campaign-progress span:last-child{border-bottom:0}
  .campaign-fields,.campaign-promises{grid-template-columns:1fr}
  .campaign-field-wide,.campaign-promise-card:last-child:nth-child(odd){grid-column:auto}
  .campaign-actions{display:grid}
  .campaign-actions .btn{width:100%}

  .home-hero{padding:28px 0!important}
  .home-hero h1{font-size:clamp(2.35rem,11vw,3.5rem)!important;line-height:.93!important;letter-spacing:-.03em!important}
  .home-hero-kicker{font-size:.95rem}
  .home-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .home-hero-actions .btn{width:100%}
  .home-tool-cards{grid-template-columns:1fr}
  .home-tool-cards article{border-right:0;border-bottom:1px solid rgba(255,255,255,.23)}
  .home-tool-cards article:last-child{border-bottom:0}
  .home-definition-head h2,.home-browser-head h2,.home-krokodil-head h2,.home-collab h2{font-size:clamp(2.25rem,11vw,3.5rem)}
  .home-analyses-head h2{font-size:clamp(2.3rem,11vw,3.6rem)!important}
  .home-analysis-featured{padding:14px}
  .home-analysis-featured h2{font-size:clamp(2rem,10vw,3rem)}
  .home-analysis-meta{display:grid;gap:3px}
  .home-browser-count{grid-template-columns:1fr!important}
  .home-browser-count .countcopy{border-left:0!important;border-top:1px solid rgba(255,255,255,.3)!important;padding:16px 0 0!important;margin-top:12px}
  .home-krokodil-grid>article{padding:14px}
  .home-collab aside{margin-top:4px}
}
@media(max-width:440px){
  .home-hero h1{font-size:clamp(2.05rem,10.5vw,2.7rem)!important;line-height:.96!important}
  .home-frontpage-note strong{font-size:1.55rem}
  .home-tool-definition,.home-collab{padding-top:30px!important;padding-bottom:34px!important}
}


/* Presidential-first hierarchy */
.home-presidential-primary{box-shadow:4px 4px 0 #4b0a0a!important}
.home-presidential-tool{border-width:2px!important;border-color:var(--red)!important}
.home-analysis-secondary{opacity:.78}
.home-tool-card-primary{background:#8b1515!important;color:#fff!important}
.home-tool-card-primary h3,.home-tool-card-primary a,.home-tool-card-primary>span{color:#fff!important}
.home-tool-card-primary p{color:#f5e7da!important}
body.accessible .home-tool-card-primary{background:#005a70!important;color:#fff!important}
body.accessible .home-analysis-secondary{opacity:1}

.home-analysis-support{display:flex;justify-content:flex-end;margin:-4px 0 16px}
.home-analysis-support .tipeee-support-button{font-size:.78rem;min-height:40px}
body.accessible .home-analysis-support{justify-content:flex-start}
@media(max-width:680px){.home-analysis-support{justify-content:stretch}.home-analysis-support .tipeee-support-button{width:100%}}
