:root {
  --agcl-ink: #20211e;
  --agcl-paper: #fffdfa;
  --agcl-rust: #9e4826;
  --agcl-moss: #4f6045;
  --agcl-sand: #d7c5a5;
  --agcl-pale: #f2ede5;
  --agcl-night: #171916;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--agcl-ink);
  background: var(--agcl-paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.agcl-news-page *, .agcl-news-page *::before, .agcl-news-page *::after { box-sizing: border-box; }
.agcl-news-page a { color: inherit; }
.agcl-news-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
body.admin-bar .agcl-news-header { top: 32px; }

.agcl-news-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,253,250,.96);
  border-bottom: 1px solid rgba(32,33,30,.12);
  backdrop-filter: blur(12px);
}
.agcl-news-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.agcl-news-brand {
  text-decoration: none;
  font-size: .93rem;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -.02em;
  max-width: 260px;
}
.agcl-news-nav { display: flex; align-items: center; gap: 20px; }
.agcl-news-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: .69rem;
  letter-spacing: .09em;
  font-weight: 800;
  white-space: nowrap;
}
.agcl-news-nav a[aria-current="page"] { color: var(--agcl-rust); }
.agcl-news-nav .agcl-news-visit {
  padding: 12px 15px;
  color: #fff;
  background: var(--agcl-rust);
  border: 1px solid var(--agcl-rust);
}
.agcl-news-nav a:hover, .agcl-news-nav a:focus-visible { color: var(--agcl-rust); }
.agcl-news-nav .agcl-news-visit:hover, .agcl-news-nav .agcl-news-visit:focus-visible { color: #fff; background: #7d371d; }

.agcl-news-hero {
  overflow: hidden;
  position: relative;
  padding: 104px 0 88px;
  border-bottom: 1px solid rgba(32,33,30,.13);
  background:
    linear-gradient(165deg, transparent 0 57%, rgba(158,72,38,.11) 57% 64%, transparent 64%),
    linear-gradient(172deg, transparent 0 67%, rgba(79,96,69,.12) 67% 76%, transparent 76%),
    var(--agcl-pale);
}
.agcl-news-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -160px;
  border: 68px solid rgba(215,197,165,.55);
  border-radius: 50%;
}
.agcl-news-kicker {
  margin: 0 0 18px;
  color: var(--agcl-rust);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 850;
}
.agcl-news-hero h1 {
  max-width: 900px;
  margin: 0;
  font: 500 clamp(3rem, 7.5vw, 7rem)/.94 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.agcl-news-hero__intro {
  max-width: 690px;
  margin: 34px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.agcl-news-index { padding: 72px 0 112px; }
.agcl-news-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.agcl-news-section-title h2 { margin: 0; font: 500 clamp(2rem,4vw,3.5rem)/1 Georgia,serif; }
.agcl-news-section-title p { margin: 0; color: #63665f; }
.agcl-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.agcl-news-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(32,33,30,.14);
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.agcl-news-card:hover, .agcl-news-card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(32,33,30,.11); outline: none; }
.agcl-news-card:first-child {
  grid-column: 1 / -1;
  min-height: 470px;
  padding: clamp(32px,5vw,68px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23,25,22,.94), rgba(23,25,22,.72)),
    linear-gradient(25deg, var(--agcl-rust), var(--agcl-moss));
}
.agcl-news-card__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 34px; }
.agcl-news-card__topic, .agcl-news-article__topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .67rem;
  font-weight: 850;
}
.agcl-news-card__topic::before, .agcl-news-article__topic::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--agcl-rust); }
.topic-eau .agcl-news-card__topic::before, .topic-eau .agcl-news-article__topic::before { background: #5c88a3; }
.topic-risques .agcl-news-card__topic::before, .topic-risques .agcl-news-article__topic::before { background: #c56b3c; }
.topic-agenda .agcl-news-card__topic::before, .topic-agenda .agcl-news-article__topic::before { background: #a7b474; }
.agcl-news-card time { color: #6e7169; font-size: .78rem; }
.agcl-news-card:first-child time { color: rgba(255,255,255,.72); }
.agcl-news-card h2 { margin: 0 0 22px; font: 500 clamp(2rem,4vw,4rem)/1.02 Georgia,serif; letter-spacing: -.035em; }
.agcl-news-card:not(:first-child) h2 { font-size: clamp(1.75rem,3vw,2.75rem); }
.agcl-news-card p { margin: 0 0 28px; color: #565951; line-height: 1.65; font-size: 1rem; }
.agcl-news-card:first-child p { max-width: 720px; color: rgba(255,255,255,.82); font-size: 1.1rem; }
.agcl-news-card__read { margin-top: auto; text-transform: uppercase; letter-spacing: .1em; font-size: .71rem; font-weight: 850; }

.agcl-news-article-hero { padding: 86px 0 62px; background: var(--agcl-pale); border-bottom: 1px solid rgba(32,33,30,.13); }
.agcl-news-back { display: inline-block; margin-bottom: 50px; color: #5d6059; text-decoration: none; font-size: .82rem; font-weight: 750; }
.agcl-news-back:hover, .agcl-news-back:focus-visible { color: var(--agcl-rust); }
.agcl-news-article__meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 24px; }
.agcl-news-article__meta time { color: #65685f; font-size: .82rem; }
.agcl-news-article-hero h1 { max-width: 980px; margin: 0; font: 500 clamp(2.8rem,6.5vw,6.2rem)/.98 Georgia,serif; letter-spacing: -.045em; }
.agcl-news-article { padding: 70px 0 110px; }
.agcl-news-prose { width: min(760px, 100%); margin-inline: auto; font-size: 1.08rem; line-height: 1.78; }
.agcl-news-prose > p:first-child { font-size: 1.28rem; line-height: 1.62; font-weight: 650; }
.agcl-news-prose p { margin: 0 0 1.55em; }
.agcl-news-prose a { color: var(--agcl-rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.agcl-news-prose strong { font-weight: 780; }
.agcl-sources { margin-top: 56px; padding: 28px 30px; background: var(--agcl-pale); border-left: 4px solid var(--agcl-rust); }
.agcl-sources h2 { margin: 0 0 13px; font: 600 1.35rem/1.2 Georgia,serif; }
.agcl-sources p, .agcl-sources ul { margin: 0; font-size: .93rem; line-height: 1.65; }
.agcl-sources ul { padding-left: 20px; }
.agcl-signature { margin-top: 44px !important; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }

.agcl-news-footer { padding: 52px 0 28px; color: #eee; background: var(--agcl-night); }
.agcl-news-footer__inner { display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.agcl-news-footer strong { display: block; max-width: 370px; font: 500 1.65rem/1.16 Georgia,serif; }
.agcl-news-footer a { color: #eee; text-underline-offset: 3px; }
.agcl-news-footer small { display: block; margin-top: 36px; color: #aeb0aa; }

@media (max-width: 820px) {
  .agcl-news-shell { width: min(100% - 32px, 1180px); }
  .agcl-news-header__inner { align-items: flex-start; flex-direction: column; padding-block: 14px 12px; gap: 12px; }
  .agcl-news-brand { font-size: .82rem; }
  .agcl-news-nav { width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 4px; scrollbar-width: none; }
  .agcl-news-nav::-webkit-scrollbar { display: none; }
  .agcl-news-nav .agcl-news-visit { padding: 9px 11px; }
  .agcl-news-hero { padding: 70px 0 62px; }
  .agcl-news-hero::after { width: 230px; height: 230px; right: -110px; top: -120px; border-width: 42px; }
  .agcl-news-index { padding: 52px 0 80px; }
  .agcl-news-section-title { align-items: start; flex-direction: column; }
  .agcl-news-grid { grid-template-columns: 1fr; gap: 18px; }
  .agcl-news-card:first-child { grid-column: auto; min-height: 420px; }
  .agcl-news-card { min-height: 320px; padding: 25px; }
  .agcl-news-article-hero { padding: 52px 0 45px; }
  .agcl-news-back { margin-bottom: 35px; }
  .agcl-news-article { padding: 50px 0 80px; }
  .agcl-news-prose { font-size: 1rem; }
  .agcl-news-prose > p:first-child { font-size: 1.14rem; }
  .agcl-news-footer__inner { align-items: start; flex-direction: column; }
}

@media screen and (max-width: 782px) {
  body.admin-bar .agcl-news-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .agcl-news-card { transition: none; }
}
