:root{
  --ivoire:#FAF6EF; --vert:#1F4D3A; --vert-fonce:#143527;
  --rouge:#C0392B; --ocre:#D4A017; --texte:#2b2b2b; --muted:#5a5347;
  --carte:#ffffff; --bord:#e6ded0;
  /* --- Tokens Sémantiques Studio Argon (TOK-*) --- */
  --tok-surface-page:#FAF6EF;
  --tok-surface-elevated:#FFFFFF;
  --tok-surface-muted:#F2ECE1;
  --tok-surface-brand:#1F4D3A;
  --tok-surface-inverse:#143527;
  --tok-text-primary:#2B2B2B;
  --tok-text-secondary:#5A5347;
  --tok-text-on-brand:#F4EFE4;
  --tok-accent-primary:#C0392B;
  --tok-accent-secondary:#D4A017;
  --tok-border-subtle:#E6DED0;
  --tok-border-focus:#D4A017;
  --tok-halo-plume:0 12px 32px -8px rgba(20,53,39,.14), 0 2px 6px rgba(20,53,39,.06);
  --tok-glass-surface-light:rgba(250,246,239,.84);
  --tok-glass-surface-dark:rgba(20,53,39,.92);
}
*{box-sizing:border-box; margin:0; padding:0}
html,body{overflow-x:clip}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
     font-size:clamp(1rem,0.22vw + 0.96rem,1.0625rem);
     background:var(--tok-surface-page); color:var(--tok-text-primary); line-height:1.65}
h1,h2,h3,h4,.serif{font-family:Georgia,"Times New Roman",serif}
.wrap{max-width:1120px; margin:0 auto; padding:0 20px}
img{max-width:100%; height:auto}
a{color:var(--rouge)}

header.liquid-glass-nav{
  background:var(--tok-glass-surface-light);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--bord);
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset, 0 4px 18px rgba(20,53,39,.06);
  position:sticky; top:0; z-index:10
}
@supports not (backdrop-filter: blur(1px)){
  header.liquid-glass-nav{background:var(--ivoire)}
}
@media (prefers-reduced-transparency: reduce){
  header.liquid-glass-nav{background:var(--ivoire); backdrop-filter:none; -webkit-backdrop-filter:none}
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:12px 0; gap:16px}
.logo{font-family:Georgia,serif; font-weight:bold; font-size:1.05rem; color:var(--vert); text-decoration:none; min-height:44px; display:inline-flex; align-items:center}
.logo span{background:var(--vert); color:#fff; padding:2px 10px; margin-right:10px; border-radius:2px}
nav a{text-decoration:none; color:var(--vert-fonce); font-size:.95rem; padding:10px 12px; min-height:44px; display:inline-flex; align-items:center}
nav a:hover{color:var(--rouge); border-bottom:2px solid var(--rouge)}
nav a.cta{background:var(--rouge); color:#fff; border-radius:4px}
nav a.cta:hover{background:#a92f22; border-bottom:none}
nav a.actuel{border-bottom:2px solid var(--ocre)}
@media (max-width:720px){ nav{display:flex; flex-wrap:wrap; justify-content:center} }

.hero{background:var(--vert-fonce); color:#f4efe4; padding:clamp(44px,6vw,68px) 0 clamp(40px,5vw,56px)}
.hero .kicker{color:var(--ocre); letter-spacing:.15em; text-transform:uppercase; font-size:.78rem}
.hero h1{font-size:clamp(1.75rem,3vw + 1rem,2.35rem); line-height:1.22; margin:12px 0 16px; max-width:22ch}
.hero p{max-width:60ch; color:#e6dfd0}
blockquote{margin:26px 0 0; padding-left:14px; border-left:3px solid var(--ocre); font-style:italic; color:#ece5d2; font-family:Georgia,serif}
blockquote cite{display:block; font-style:normal; font-size:.85rem; color:var(--ocre); margin-top:6px}
.hero-btns{margin-top:28px; display:flex; gap:12px; flex-wrap:wrap}
.btn{display:inline-flex; align-items:center; justify-content:center; min-height:44px; text-decoration:none; padding:11px 20px; border-radius:4px; font-weight:600; font-size:.95rem}
.btn-rouge{background:var(--rouge); color:#fff}
.btn-bord{border:1px solid #cfc7b4; color:#efe9da}
.btn-ocre{background:var(--ocre); color:#2b230c}

section{padding:clamp(36px,5vw,52px) 0}
.page-bandeau{background:var(--vert); color:#f0ead9; padding:clamp(32px,4.5vw,46px) 0}
.page-bandeau h1{font-size:clamp(1.5rem,2.4vw + 0.9rem,2rem); max-width:30ch; line-height:1.25}
.page-bandeau p{color:#e2dbca; max-width:65ch; margin-top:10px}
.titre-sec{font-size:clamp(1.25rem,1.6vw + 0.85rem,1.55rem); color:var(--vert); border-bottom:3px solid var(--ocre); display:inline-block; padding-bottom:6px; margin-bottom:26px}

.grid4{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
@media (max-width:960px){.grid4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.grid4{grid-template-columns:1fr}}
.heros-card{background:var(--carte); border:1px solid var(--bord); border-top:4px solid var(--rouge); padding:20px; text-align:center; border-radius:3px}
.heros-avatar{width:76px; height:76px; margin:0 auto 12px; border-radius:50%; background:var(--vert); color:#fff;
             font-family:Georgia,serif; font-size:1.6rem; display:flex; align-items:center; justify-content:center}
.heros-card h3{font-size:1.05rem; color:var(--vert-fonce)}
.heros-dates{color:var(--rouge); font-size:.85rem; font-weight:600; margin:2px 0 8px}
.heros-card p{font-size:.88rem; color:var(--muted); text-align:left}
.heros-card a{display:inline-block; margin-top:12px; color:var(--rouge); text-decoration:none; font-weight:600; font-size:.85rem}
.heros-liens{margin-top:10px; text-align:left; font-size:.84rem; color:var(--muted)}
.heros-liens a{display:inline; font-weight:600}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
@media (max-width:960px){.grid3{grid-template-columns:1fr}}
.pub-card{background:var(--carte); border:1px solid var(--bord); border-radius:3px; overflow:hidden; display:flex; flex-direction:column}
.pub-card .visuel{height:150px; background:linear-gradient(135deg,var(--vert) 0%,var(--vert-fonce) 70%);
                  display:flex; align-items:center; justify-content:center; color:#e8e0cd; font-family:Georgia,serif;
                  background-size:cover; background-position:center; overflow:hidden}
.pub-card .visuel img{width:100%; height:100%; object-fit:cover}
.pub-body{padding:18px 20px 22px; flex:1}
.pub-tag{color:var(--ocre); font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; font-weight:700}
.pub-date{color:var(--muted); font-size:.8rem; float:right; max-width: 45%; text-align: right}
.pub-body h3{font-size:1.05rem; color:var(--vert-fonce); margin:6px 0 8px; line-height:1.35}
.pub-body p{font-size:.9rem; color:var(--muted)}
.pub-more{margin-top:12px; color:var(--rouge); font-weight:600; text-decoration:none; font-size:.85rem; display:inline-block}
.voir-tout{text-align:center; margin-top:30px}

.soutien{background:var(--vert); color:#f0ead9; border-radius:6px; padding:36px 32px; display:flex; gap:28px; align-items:center; flex-wrap:wrap}
.soutien h2{font-size:1.4rem; max-width:24ch}
.soutien p{flex:1 1 360px; color:#d8d1bf; font-size:.95rem}

article.page-article{max-width:760px; margin:0 auto}
article.page-article h1{font-size:1.8rem; color:var(--vert-fonce); line-height:1.3; margin:26px 0 6px}
.meta{color:var(--muted); font-size:.88rem; margin-bottom:22px}
.entete{font-size:1.05rem; color:var(--vert); border-left:3px solid var(--ocre); padding-left:14px; margin:0 0 26px; font-family:Georgia,serif}
.article-contenu{font-size:1rem}
.article-contenu p{margin:0 0 14px; text-align:justify}
.article-contenu img{display:block; margin:16px auto}
.article-contenu figure{margin:16px 0; text-align:center}
.article-contenu h2,.article-contenu h3,.article-contenu h4{color:var(--vert); margin:24px 0 10px}
.article-contenu ul,.article-contenu ol{margin:0 0 14px 22px}
.article-contenu .pub-fichier{border:1px solid var(--bord); background:#fff; border-radius:4px; padding:12px 16px; margin:16px 0}
.article-contenu .pub-fichier a{text-decoration:none; font-weight:600}
.article-contenu .img-legende{font-size:.82rem; color:var(--muted); text-align:center; margin-top:6px}
.article-actions-nav{display:flex; justify-content:space-between; gap:12px; margin:36px 0 0; padding-top:18px; border-top:1px solid var(--bord); font-size:.9rem}

.basis{background:#fff; padding:26px; border:1px solid var(--bord); border-radius:4px; margin-bottom:22px; text-align:justify}
.note-cadre{border-left:4px solid var(--ocre); background:#fff; padding:14px 18px; margin:22px 0; color:var(--muted)}

.heros-dates,.pub-date,.tl-date,.compteur,.frise-borne{font-variant-numeric:tabular-nums}
footer.liquid-glass-shell{
  background:var(--tok-glass-surface-dark);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 1px 0 rgba(255,255,255,.12) inset;
  color:#cfc7b4; padding:44px 0 28px; font-size:.9rem
}
@supports not (backdrop-filter: blur(1px)){
  footer.liquid-glass-shell{background:var(--vert-fonce)}
}
@media (prefers-reduced-transparency: reduce){
  footer.liquid-glass-shell{background:var(--vert-fonce); backdrop-filter:none; -webkit-backdrop-filter:none}
}
@media (max-width:520px){
  .frise{grid-template-columns:1fr; gap:4px; margin:12px 0; padding-bottom:8px; border-bottom:1px solid var(--bord)}
  .frise-piste{width:100%}
  .soutien{padding:24px 18px}
}
footer .cols{display:grid; grid-template-columns:2fr 1fr 1fr; gap:28px}
@media (max-width:720px){footer .cols{grid-template-columns:1fr}}
footer h4, .footer-titre{color:var(--ocre); font-family:Georgia,serif; font-weight:bold; margin-bottom:10px; font-size:.95rem}
footer a{color:#cfc7b4; text-decoration:none; display:block; padding:3px 0}
footer a:hover{color:#fff}
.baseline{margin-top:28px; padding-top:16px; border-top:1px solid #2c533f; color:#9a927f; font-size:.8rem; text-align:center}

/* --- Accessibilité structurelle (Skip-link & SR-only) --- */
.skip-link{position:absolute; left:-9999px; top:8px; z-index:100; background:var(--vert-fonce); color:#fff;
           padding:10px 16px; border-radius:4px; font-weight:600; text-decoration:none; border:2px solid var(--ocre)}
.skip-link:focus,.skip-link:focus-visible{left:16px}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

/* --- Panthéon photo --- */
.heros-photo{width:100%; aspect-ratio:1/1; object-fit:cover; display:block; margin-bottom:12px; border-radius:3px; background:var(--vert-fonce)}
.heros-photo-note{font-size:.74rem; color:var(--muted); margin-top:6px; display:block}

/* --- Menu burger mobile (CSS seul) --- */
.burger-box{display:none}
.burger-lbl{display:none; cursor:pointer; font-size:1.5rem; color:var(--vert); padding:6px 10px; border:1px solid var(--vert); border-radius:4px; line-height:1}
@media (max-width:820px){
  .burger-lbl{display:block}
  nav.site-nav{display:none; flex-basis:100%; flex-direction:column; align-items:flex-start; padding:8px 0 14px}
  .burger-box:checked ~ .site-nav{display:flex}
  nav.site-nav a{padding:6px 0}
}

/* --- Timeline UPC --- */
.timeline{list-style:none; padding-left:0; position:relative; margin:0 0 10px}
.timeline:before{content:""; position:absolute; left:14px; top:0; bottom:0; width:3px; background:var(--ocre)}
.timeline li{position:relative; padding:0 0 26px 44px}
.timeline .tl-date{position:absolute; left:-4px; top:0; background:var(--vert); color:#fff; font-size:.78rem; font-weight:600;
                 padding:4px 10px; border-radius:20px; white-space:nowrap}
.timeline h3,.timeline h4{border:none; padding:0; margin:34px 0 4px; font-size:1rem; color:var(--vert-fonce)}
.timeline p{font-size:0.95rem; color:var(--texte); text-align:justify; margin:0}
.timeline a{font-size:.85rem}

/* --- Recherche & Cockpit de filtrage publications --- */
.bloc-recherche{display:flex; flex-direction:column; gap:12px; margin-bottom:26px;
                background:#fff; border:1px solid var(--bord); border-radius:6px; padding:14px 16px}
.bloc-recherche-top{display:flex; align-items:center; gap:12px; flex-wrap:wrap; width:100%}
.bloc-recherche input{flex:1; min-width:220px; padding:10px 13px; font-size:1rem; border:1px solid var(--bord); border-radius:4px; font-family:inherit}
.bloc-recherche .compteur{font-size:.88rem; color:var(--muted); font-weight:600}
.filtres-tags{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.tag-btn{background:var(--ivoire); color:var(--vert-fonce); border:1px solid var(--bord); border-radius:20px;
         padding:5px 12px; font-size:.82rem; font-weight:600; cursor:pointer; font-family:inherit; transition:background .15s,color .15s}
.tag-btn:hover{border-color:var(--vert)}
.tag-btn[aria-pressed="true"]{background:var(--vert); color:#fff; border-color:var(--vert)}
.etat-vide-pubs{background:#fff; border:1px dashed var(--bord); border-radius:6px; padding:32px 20px; text-align:center; margin:16px 0}
.etat-vide-pubs p{color:var(--muted); margin-bottom:14px; font-size:1rem}
.etat-vide-pubs button{cursor:pointer; border:none; font-family:inherit}
.pub-card.cache{display:none}
.rebond-navigation{display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:space-between;
                   background:#fff; border:1px solid var(--bord); border-left:4px solid var(--vert); border-radius:4px; padding:18px 22px; margin-top:32px}


/* --- Tier 2 : texture papier & matière --- */
body{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0 0.07 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.pub-card,.heros-card,.basis,.note-cadre{box-shadow:0 1px 3px rgba(20,53,39,.10)}
.pub-card,.heros-card{transition:transform .18s ease,box-shadow .18s ease}
.pub-card:hover,.heros-card:hover{transform:translateY(-3px); box-shadow:0 8px 22px rgba(20,53,39,.16)}

/* --- Capitale lettrine (page article) --- */
.page-article .article-contenu>p:first-of-type::first-letter{
  font-family:Georgia,"Times New Roman",serif; font-size:3.2em; float:left;
  line-height:.85; padding:6px 12px 2px 0; color:var(--vert)}

/* --- Portraits d'époque : sépia discret, couleur au survol --- */
.heros-photo{filter:sepia(.32) contrast(1.04) brightness(.99); transition:filter .25s ease}
.heros-card:hover .heros-photo{filter:none}

/* --- Frise de vies (Panthéon) --- */
.frise{display:grid; grid-template-columns:1fr auto auto auto; align-items:center; gap:10px; margin:6px 0}
.frise-nom{font-family:Georgia,serif; color:var(--vert-fonce); font-size:.92rem}
.frise-borne{font-size:.78rem; color:var(--muted); min-width:3.2ch}
.frise-piste{position:relative; width:min(420px,38vw); height:6px; background:#e8e0cd; border-radius:3px}
.frise-piste i{position:absolute; top:-2px; bottom:-2px; background:var(--rouge); border-radius:4px; opacity:.9}

/* --- Sommaire auto (Tier 3) --- */
.sommaire{background:#fff; border:1px solid var(--bord); border-left:4px solid var(--vert);
          border-radius:4px; padding:14px 20px; margin:0 0 26px}
.sommaire-tt{font-family:Georgia,serif; color:var(--vert); font-weight:bold}
.sommaire ol{margin:8px 0 0 18px; line-height:1.7}
.sommaire li.lv3{margin-left:16px}
.sommaire a{color:var(--vert-fonce); text-decoration:none}
.sommaire a:hover{color:var(--rouge); text-decoration:underline}
h2 .pl,h3 .pl{opacity:0; font-weight:normal; font-size:.8em; margin-left:6px; color:var(--muted); text-decoration:none}
h2:hover .pl,h3:hover .pl{opacity:.75}

/* --- Numérotation discrète des cartes publications --- */
.grid3{counter-reset:pubc}
.grid3>.pub-card{counter-increment:pubc; position:relative}
.grid3>.pub-card::before{content:counter(pubc,decimal-leading-zero); position:absolute; top:10px; right:12px;
  z-index:2; background:rgba(20,53,39,.62); color:#f0ead9; font-family:Georgia,serif; font-size:.72rem;
  padding:2px 8px; border-radius:10px; letter-spacing:.08em}

/* --- Lightbox CSS-only (:target) --- */
a.lb-open{cursor:zoom-in}
.lightbox{display:none; position:fixed; inset:0; background:rgba(15,22,18,.93); z-index:60}
.lightbox:target{display:flex; align-items:center; justify-content:center}
.lightbox .lb-body{display:flex; align-items:center; justify-content:center; width:100%; height:100%; cursor:zoom-out}
.lightbox img{max-width:94vw; max-height:90vh; object-fit:contain; box-shadow:0 10px 40px rgba(0,0,0,.5); background:#fff}
.lightbox .fermer{position:absolute; top:12px; right:22px; color:#fff; font-size:2.1rem; text-decoration:none; z-index:61}

/* --- Accessibilité --- */
:focus-visible{outline:3px solid var(--ocre); outline-offset:2px; border-radius:2px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none !important; animation:none !important}
}

/* --- Impression « pièce d'archive » --- */
@media print{
  @page{margin:2cm 1.8cm}
  header,footer,.hero-btns,.bloc-recherche,.article-actions-nav,.sommaire,.burger-lbl,.lightbox,.btn{display:none !important}
  body{background:#fff; color:#000; font-size:11pt}
  .page-article{max-width:none}
  .article-contenu{font-size:11pt; line-height:1.55}
  .article-contenu a[href^="http"]::after{content:" (" attr(href) ")"; font-size:.8em; color:#444; word-break:break-all}
  .note-cadre{border-color:#888}
}
