/* styles.css */

/* --- Fond global neutre --- */
:root{
    --green:#0b6b3a;
    --green2:#0a5e34;
    --lime:#cbe86b;
    --paper:#ffffff;
    --soft:#f6f2e8;
    --sand:#efe7cf;
    --gold:#d7b34a;
    --ink:#1e1e1e;
    --muted:#4b4b4b;
    --shadow: 0 10px 30px rgba(0,0,0,.10);
    --radius: 18px;
  }
  
  html, body {
    min-height: 100%;
  }
  
body{
  margin:0;
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* dégradé neutre cohérent avec le site */
  background: linear-gradient(
    to bottom,
    #f4f1eb 0%,
    #ece9e1 45%,
    #e3e7df 100%
  );

  background-repeat: no-repeat;
}
  
  .wrap{
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
  }
  
  /* --- Barre du haut (titre + numéro) --- */
  .topbar{
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .topbar__inner{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 16px;
    padding: 14px 0;
  }
  .topbar__left{
    display:flex;
    align-items:flex-end;
    gap: 12px;
  }
  .topbar__home{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    text-decoration:none;
    color: var(--green2);
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    border-radius: 999px;
    border: 2px solid rgba(11,107,58,.35);
    background: rgba(255,255,255,.85);
  }
  .topbar__homeIcon{
    transform: translateX(-1px);
  }
  .topbar__home:hover{
    border-color: var(--green);
    background: #fff;
  }
  .brandline__title{
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 26px;
  }
  .brandline__subtitle{
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.25;
  }
  .issue{
    flex:0 0 auto;
    border: 3px solid var(--green);
    border-radius: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.85);
    text-align:center;
    min-width: 110px;
  }
  .issue__n{
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
  }
  .issue__n span{
    color: var(--green);
    font-size: 34px;
  }
  .issue__date{
    margin-top: 6px;
    font-weight: 800;
    color: var(--green2);
    font-size: 14px;
  }
  
  /* --- Hero (image + titrage) --- */
  .page{ padding: 18px 0 56px; }
  
  .hero{
    margin-top: 14px;
    margin-bottom: 18px;
  }
  .hero__img{
    border-radius: var(--radius);
    overflow:hidden;
    box-shadow: var(--shadow);
    background: #fff;
  }
  .hero__img img{
    display:block;
    width:100%;
    height:auto;
  }
  .hero__title{
    margin-top: 12px;
    padding: 10px 4px;
  }
  .hero__edition{
    display:inline-block;
    font-weight: 900;
    font-size: 22px;
    transform: rotate(-2deg);
    background: linear-gradient(90deg, #ffe08a, #f1c24f);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
  }
  .hero__edition span{
    margin-left: 10px;
    font-weight: 800;
    color: #2a2a2a;
  }
  .hero__h1{
    margin: 14px 0 0;
    display:flex;
    align-items:baseline;
    gap: 12px;
    flex-wrap:wrap;
  }
  .hero__h1Main{
    font-size: clamp(44px, 5.2vw, 78px);
    font-weight: 1000;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow:
      -2px 0 0 var(--green),
      2px 0 0 var(--green),
      0 -2px 0 var(--green),
      0 2px 0 var(--green),
      -2px -2px 0 var(--green),
      2px -2px 0 var(--green),
      -2px 2px 0 var(--green),
      2px 2px 0 var(--green),
      -1px -2px 0 var(--green),
      1px -2px 0 var(--green),
      -1px 2px 0 var(--green),
      1px 2px 0 var(--green),
      -2px -1px 0 var(--green),
      2px -1px 0 var(--green),
      -2px 1px 0 var(--green),
      2px 1px 0 var(--green),
      0 6px 20px rgba(0,0,0,.18);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }
  .hero__h1Script{
    font-size: clamp(38px, 4.4vw, 64px);
    font-weight: 900;
    font-family: "Brush Script MT", "Segoe Script", "Comic Sans MS", cursive;
    color: var(--green);
    text-shadow: 0 6px 20px rgba(0,0,0,.10);
  }
  
  /* --- Cartes / blocs --- */
  .card{
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-top: 16px;
  }
  .card--soft{
    background: rgba(239,231,207,.70);
  }
  
  .grid2{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .grid2--tight{ gap: 14px; }
  
  .block{
    background: rgba(255,255,255,.55);
    border-radius: 14px;
    padding: 14px 14px;
    border: 1px solid rgba(0,0,0,.06);
  }
  .h2{
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .2px;
  }
  .h2--big{ font-size: 26px; }
  .h3{
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
  }
  .lead{
    margin-top: 0;
    font-style: italic;
    color: #2b2b2b;
  }
  p{ line-height: 1.35; margin: 10px 0; }
  .muted{ color: var(--muted); font-style: italic; }
  
  /* --- Encadré vote --- */
  .callout{
    margin: 14px 0;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.70);
    border: 2px solid rgba(0,0,0,.10);
    text-align:center;
  }
  .callout__big{
    font-weight: 1000;
    letter-spacing: .4px;
  }
  .callout__bigger{
    margin-top: 6px;
    font-weight: 1000;
    font-size: 20px;
  }
  
  /* --- Liste candidats (boite jaune/orange style PDF) --- */
  .listbox{
    margin-top: 10px;
    background: linear-gradient(180deg, #ffd27a, #f0b64d);
    border-radius: 14px;
    padding: 12px 12px;
    border: 2px solid rgba(0,0,0,.12);
  }
  .cand{
    margin: 0;
    padding-left: 18px;
    columns: 2;
    column-gap: 18px;
    font-size: 13px;
    line-height: 1.25;
  }
  .cand li{ break-inside: avoid; margin: 2px 0; }
  
  /* --- Footer ligne contact + pagination --- */
  .footerline{
    margin-top: 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    font-weight: 700;
  }
  .mail{
    color: var(--ink);
    text-decoration:none;
    border-bottom: 2px solid rgba(11,107,58,.35);
  }
  .mail:hover{
    border-bottom-color: var(--green);
  }
  .pager{
    font-weight: 900;
    color: rgba(0,0,0,.65);
  }
  
  /* --- En-tête section page 2 --- */
  .sectionHead{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 12px;
    margin-bottom: 12px;
  }
  .sectionHead__meta{
    display:flex;
    align-items:center;
    gap: 8px;
    flex-wrap:wrap;
    font-size: 13px;
    color: rgba(0,0,0,.70);
  }
  
  /* --- Bandes vertes (titres de parties) --- */
  .band{
    margin: 10px 0 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.08);
  }
  .band__title{
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .3px;
  }
  .band__subtitle{
    margin-top: 4px;
    font-weight: 1000;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: .3px;
  }
  .band--alt .band__subtitle{ color:#2a2a2a; }
  .band--alt2 .band__subtitle{ color:#2a2a2a; }
  
  /* --- Listes “checkbox” --- */
  .tick{
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
  }
  .tick li{
    position: relative;
    padding-left: 26px;
    margin: 8px 0;
    line-height: 1.3;
  }
  .tick li::before{
    content:"☐";
    position:absolute;
    left: 0;
    top: 0;
    font-weight: 900;
  }
  
  /* --- Steps (Sommes-nous prêt·es ?) --- */
  .steps{
    margin: 8px 0 0;
    padding-left: 20px;
  }
  .steps > li{ margin: 8px 0; }
  .subtick{
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
  }
  .subtick li{
    position: relative;
    padding-left: 20px;
    margin: 6px 0;
  }
  .subtick li::before{
    content:"✔";
    position:absolute;
    left:0;
    top:0;
    font-weight: 900;
    color: var(--green);
  }
  
  /* --- Bande “retrouvez-nous” --- */
  .bannerLink{
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, #ffd27a, #f0b64d);
    border: 2px solid rgba(0,0,0,.12);
  }
  .bannerLink a{
    color: #1f1f1f;
    text-decoration: none;
    border-bottom: 2px solid rgba(11,107,58,.45);
    font-weight: 700;
  }
  .bannerLink a:hover{
    border-bottom-color: var(--green);
  }
  .hl{
    font-weight: 1000;
    text-decoration: underline;
  }
  
  /* --- Responsive --- */
  @media (max-width: 900px){
    .topbar__inner{ align-items:flex-start; }
    .topbar__left{
      align-items:flex-start;
    }
    .topbar__home{
      width: 40px;
      height: 40px;
    }
    .grid2{ grid-template-columns: 1fr; }
    .cand{ columns: 1; }
    .sectionHead{ flex-direction: column; align-items:flex-start; }
  }
  
  @media (max-width: 520px){
    .brandline__title{ font-size: 22px; }
    .issue{ min-width: 96px; padding: 8px 12px; }
    .issue__n span{ font-size: 30px; }
    .hero__edition{ font-size: 18px; }
    .card{ padding: 14px; }
    .block{ padding: 12px; }
  }
