*{box-sizing:border-box}
:root{--bg:#eee1c5;--paper:#f7eedc;--text:#34271d;--muted:#765f45;--line:#9a825f;--accent:#762c27;--nav:#1b1713}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-family:Georgia,"Times New Roman",serif;line-height:1.7;transition:background .25s,color .25s}
a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}
header{background:var(--paper);text-align:center;padding:2rem 1rem 1.25rem;border-bottom:6px double var(--line)}
header h1{margin:0;font-size:clamp(2.8rem,9vw,5.5rem);line-height:1;letter-spacing:.03em}
header p{margin:.5rem 0;font-size:1.1rem;font-style:italic}
.date{font-size:.9rem;color:var(--muted)}
nav{display:flex;justify-content:center;align-items:center;gap:.35rem;flex-wrap:wrap;background:var(--nav);padding:.65rem}
nav a,nav button{border:0;border-bottom:2px solid transparent;background:transparent;color:#eadfc9;padding:.65rem .85rem;font:inherit;cursor:pointer;border-radius:4px;transition:background .2s ease,border-color .2s ease}
nav a:hover,nav button:hover{background:#352c23}
nav a[aria-current="page"]{border-color:var(--accent);font-weight:bold}
main{max-width:1050px;margin:2rem auto;padding:0 1rem}
.paper{background:var(--paper);border:1px solid var(--line);padding:clamp(1rem,4vw,2.5rem);box-shadow:0 6px 20px rgba(60,40,20,.14);margin-bottom:1.5rem}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:center}
.hero img,.article img{width:100%;height:auto;display:block;border:1px solid var(--line)}
h2{font-size:clamp(2rem,5vw,3.4rem);line-height:1.1;margin:.3rem 0}
h3{font-size:1.5rem;line-height:1.2;margin-top:2rem;border-bottom:1px solid var(--line);padding-bottom:.3rem}
.label{text-transform:uppercase;letter-spacing:.18em;font-size:.75rem;font-weight:bold;color:var(--accent)}
.meta{font-style:italic;color:var(--muted)}
.chapo{font-size:1.1rem}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}
.card{background:var(--paper);border:1px solid var(--line);padding:1rem;transition:transform .2s ease,box-shadow .2s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(60,40,20,.18)}
.card h3{margin-top:1rem}
.search{width:100%;padding:.8rem;font:inherit;border:1px solid var(--line);background:#fffaf0;color:var(--text);border-radius:4px}
.button{display:inline-block;padding:.65rem .9rem;background:var(--accent);border:1px solid var(--accent);border-radius:4px;color:#fff;text-decoration:none;font:inherit;cursor:pointer;transition:background .2s ease,transform .2s ease}
.button:hover{background:#54201c;text-decoration:none;transform:translateY(-2px)}
.button-secondary{background:transparent;color:var(--accent)}
.breadcrumbs{font-size:.9rem;color:var(--muted);margin-bottom:1rem}
.breadcrumbs a{transition:color .2s ease}
.back-link{margin:0 0 1rem}
.back-link a{display:inline-block;transition:transform .2s ease}
.back-link a:hover{transform:translateX(-3px)}
.map{height:min(70vh,680px);min-height:420px;border:1px solid var(--line)}
.map iframe{display:block;width:100%;height:100%;border:0}
.signature{text-align:right;font-size:1.2rem;margin-top:2rem}
footer{text-align:center;border-top:1px solid var(--line);padding:2rem 1rem;margin-top:2rem}
#leaves{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:100}
.leaf{position:absolute;top:-30px;animation:fall linear infinite;opacity:.7}
@keyframes fall{to{transform:translate3d(20vw,110vh,0) rotate(540deg)}}
html.dark,html.dark body{background:#181512;color:#eadfc9}
html.dark header,html.dark .paper,html.dark .card{background:#27231f;color:#eadfc9;border-color:#665846}
html.dark nav{background:#0f0d0b}
html.dark .search{background:#181512;color:#eadfc9;border-color:#665846}
html.dark a{color:#d9a99a}
html.dark .button{color:#fff}
html.dark .button-secondary{background:transparent;color:#d9a99a;border-color:#d9a99a}
html.dark .meta,.dark .date{color:#c5b293}
@media(max-width:700px){.hero{grid-template-columns:1fr}nav a,nav button{padding:.6rem .65rem;font-size:.9rem}}
@media(prefers-reduced-motion:reduce){#leaves{display:none}}


/* L'Écho — améliorations Une / recherche / catégories */
.e-section{margin:2rem auto;max-width:1100px;padding:0 1rem}
.e-paper{background:var(--paper,#f7eedc);border:1px solid var(--line,#9a825f);padding:1.25rem;box-shadow:0 6px 20px rgba(60,40,20,.12)}
.e-section-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.8rem,5vw,3rem);margin:.2rem 0 1rem;border-bottom:1px solid var(--line,#9a825f);padding-bottom:.4rem}
.e-lead{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:1.5rem;align-items:center}
.e-lead img{width:100%;display:block;border:1px solid var(--line,#9a825f)}
.e-kicker{text-transform:uppercase;letter-spacing:.16em;font-size:.75rem;font-weight:bold;color:var(--accent,#762c27)}
.e-meta{font-style:italic;color:var(--muted,#765f45)}
.e-title{font-size:clamp(2rem,5vw,3.4rem);line-height:1.1;margin:.35rem 0}
.e-btn{display:inline-block;padding:.65rem .9rem;border:1px solid var(--line,#9a825f);border-radius:4px;background:transparent;color:inherit;text-decoration:none;cursor:pointer}
.e-btn:hover{text-decoration:none;filter:brightness(.95)}
.e-tools{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}
.e-search{flex:1 1 260px;min-width:0;padding:.75rem;border:1px solid var(--line,#9a825f);background:#fffaf0;color:inherit;border-radius:4px;font:inherit}
.e-cats{display:flex;gap:.4rem;flex-wrap:wrap}
.e-cat{padding:.5rem .7rem;border:1px solid var(--line,#9a825f);border-radius:99px;background:transparent;color:inherit;cursor:pointer}
.e-cat.active{background:var(--accent,#762c27);color:#fff;border-color:var(--accent,#762c27)}
.e-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}
.e-card{border:1px solid var(--line,#9a825f);padding:1rem;background:var(--paper,#f7eedc)}
.e-card h3{margin:.4rem 0;line-height:1.2}
.e-empty{padding:1rem;text-align:center;font-style:italic}
@media(max-width:700px){.e-lead{grid-template-columns:1fr}.e-section{padding:0 .75rem}}

/* UNE PROPRE — identité éditoriale */
.newspaper-head{padding:1.15rem 1rem 1rem!important}
.newspaper-head h1{font-size:clamp(3rem,10vw,6.2rem)!important;line-height:.95!important;margin:.15rem 0!important}
.mast-rule{height:1px;background:var(--line);max-width:950px;margin:.45rem auto}
.edition{margin:.1rem 0!important;font-size:.76rem!important;letter-spacing:.2em;text-transform:uppercase;font-style:normal!important;color:var(--muted)!important}
.motto{margin:.2rem 0 .45rem!important;font-size:.9rem!important;letter-spacing:.12em}
.front-page{max-width:1120px}
.front-lead{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);gap:2rem;align-items:center;border-top:4px double var(--line)}
.front-lead h2{font-size:clamp(2.4rem,6vw,4.6rem);line-height:1.02;margin:.4rem 0}
.front-image{width:100%;height:auto;display:block;border:1px solid var(--line);box-shadow:0 5px 15px rgba(50,35,20,.15)}
.section-bar{display:flex;justify-content:space-between;border-top:3px double var(--line);border-bottom:1px solid var(--line);padding:.45rem 0;margin-bottom:1rem;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:bold}
.front-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.5rem}
.front-card{padding:1rem 0;border-bottom:1px solid var(--line)}
.front-card h3{margin:.3rem 0;font-size:1.45rem}
.front-card p{margin:.4rem 0}
.front-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
.front-cat{display:flex;flex-direction:column;gap:.2rem;border:1px solid var(--line);padding:.8rem;color:inherit;background:rgba(255,255,255,.12);transition:transform .2s ease}
.front-cat:hover{text-decoration:none;transform:translateY(-2px)}
.front-cat span{font-size:.78rem;color:var(--muted)}
html.dark .front-cat{background:#211d19}
html.dark .front-image{box-shadow:none}
@media(max-width:750px){
 .front-lead{grid-template-columns:1fr}
 .front-columns{grid-template-columns:1fr}
 .front-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Sceau officiel — intégration finale dans le masthead */
.echo-seal-wrap{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;margin:0 auto 8px!important;position:relative!important;z-index:20!important}
.echo-seal-wrap .echo-seal{display:block!important;width:82px!important;height:82px!important;min-width:82px!important;min-height:82px!important;max-width:82px!important;max-height:82px!important;object-fit:cover!important;border-radius:50%!important;opacity:1!important;visibility:visible!important;filter:drop-shadow(0 3px 4px rgba(0,0,0,.28))!important}
.newspaper-head .echo-seal-wrap{order:-1!important}
@media(max-width:600px){
 .echo-seal-wrap .echo-seal{width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;max-width:68px!important;max-height:68px!important}
 .echo-seal-wrap{margin-bottom:6px!important}
}
