/* =====================================================================
   LEGIA CUDZOZIEMSKA — Stowarzyszenie byłych żołnierzy i przyjaciół
   Legii Cudzoziemskiej w Polsce
   Heritage Parchment design system  ·  upgraded UI/UX (static)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Parchment / paper */
  --paper:        #f4ecd8;
  --paper-2:      #faf5e8;
  --paper-3:      #efe5cd;
  --card:         #fffdf6;

  /* Ink */
  --ink:          #2a2419;
  --ink-soft:     #4a4332;
  --ink-faint:    #7a7058;

  /* Legion green */
  --green:        #1f4a2c;
  --green-2:      #2c6038;
  --green-soft:   #3c7a4a;

  /* French red */
  --red:          #a82b22;
  --red-2:        #c2392c;

  /* Brass / gold */
  --gold:         #b08a3e;
  --gold-2:       #cda85a;
  --gold-soft:    #e6d3a3;

  /* Lines & shadow */
  --line:         #d9cba8;
  --line-strong:  #c3b187;
  --shadow-sm:    0 1px 3px rgba(42,36,25,.10), 0 1px 2px rgba(42,36,25,.06);
  --shadow-md:    0 6px 20px rgba(42,36,25,.12), 0 2px 6px rgba(42,36,25,.08);
  --shadow-lg:    0 18px 50px rgba(42,36,25,.22);

  /* Type */
  --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --font-body:    "EB Garamond", Georgia, "Times New Roman", serif;
  --font-ui:      "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Metrics */
  --wrap:         1120px;
  --wrap-narrow:  820px;
  --radius:       4px;
  --radius-lg:    8px;
  --gap:          clamp(1rem, 2.5vw, 2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.5vw + 0.95rem, 1.18rem);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(176,138,62,.06), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(31,74,44,.05), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ---------- Utilities ---------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, var(--wrap-narrow)); margin-inline: auto; }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: 0 0 6px 0;
  font-family: var(--font-ui); font-weight: 600;
}
.skip-link:focus { left: 0; color:#fff; }

/* ---------- Top accent strip ---------- */
.tricolor { height: 4px; display: flex; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1){ background: var(--green); }
.tricolor span:nth-child(2){ background: var(--paper-2); }
.tricolor span:nth-child(3){ background: var(--red); }

.topbar {
  background: var(--green);
  color: var(--gold-soft);
  font-family: var(--font-ui);
  font-size: .8rem;
  letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; flex-wrap: wrap; }
.topbar a { color: var(--gold-soft); }
.topbar a:hover { color: #fff; }
.topbar .motto { font-style: italic; font-family: var(--font-body); font-size: .95rem; color: var(--gold-2); }

/* ---------- Site header ---------- */
.site-header {
  background:
    linear-gradient(180deg, rgba(255,253,246,.6), rgba(244,236,216,.2)),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  padding: 1.1rem 0; flex-wrap: wrap; justify-content: center; text-align: center;
}
.brand-logo { flex: 0 0 auto; }
.brand-logo img {
  height: 84px; width: auto;
  filter: drop-shadow(0 3px 6px rgba(42,36,25,.25));
}
.brand-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; }
.brand-text .fr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.2vw + 1rem, 2rem);
  letter-spacing: .06em;
  color: var(--green);
  line-height: 1.1;
}
.brand-text .fr b { color: var(--red); }
.brand-text .sub {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: clamp(.95rem, .4vw + .85rem, 1.1rem);
  font-style: italic;
  max-width: 46ch;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: var(--green);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--gold);
}
.nav .wrap { display: flex; align-items: stretch; justify-content: center; }
.nav-toggle {
  display: none;
  background: transparent; border: 0; color: var(--gold-soft);
  font-family: var(--font-ui); font-weight: 600; letter-spacing: .08em;
  padding: .9rem 1rem; cursor: pointer; align-items: center; gap: .55rem;
  font-size: .95rem; text-transform: uppercase;
}
.nav-toggle .bars { width: 22px; height: 15px; position: relative; display: inline-block; }
.nav-toggle .bars span { position:absolute; left:0; right:0; height:2px; background: var(--gold-soft); transition: .25s; }
.nav-toggle .bars span:nth-child(1){ top:0; }
.nav-toggle .bars span:nth-child(2){ top:6px; }
.nav-toggle .bars span:nth-child(3){ top:12px; }
.nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.nav-list a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem;
  padding: .85rem 1.25rem;
  color: var(--paper-2);
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem; letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  position: relative;
}
.nav-list a .pl {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
  font-size: .78rem; font-style: italic; color: var(--gold-2); font-weight: 400;
}
.nav-list a:hover,
.nav-list a:focus-visible { background: rgba(255,255,255,.08); color: #fff; border-bottom-color: var(--gold); }
.nav-list a[aria-current="page"] { color: #fff; border-bottom-color: var(--red-2); background: rgba(0,0,0,.18); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--paper-2);
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    linear-gradient(rgba(20,38,24,.78), rgba(20,38,24,.86)),
    url("http://www.legia-cudzoziemska.pl/glowna_zdj.jpg") center/cover no-repeat;
  border-bottom: 3px solid var(--gold);
}
.hero::after {
  content:""; position:absolute; inset:0;
  box-shadow: inset 0 0 140px rgba(0,0,0,.45);
  pointer-events:none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow {
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .3em;
  font-size: .8rem; color: var(--gold-2); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: .04em;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.hero h1 .fr { color: var(--gold-2); display:block; font-size: .62em; margin-top:.4rem; letter-spacing:.06em; }
.hero p.lead { max-width: 60ch; margin: 1.3rem auto 0; font-size: 1.18rem; font-style: italic; color: #f0e9d6; }
.hero .hero-actions { margin-top: 2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-weight: 600; letter-spacing: .04em;
  padding: .7rem 1.4rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
  font-size: .98rem; text-decoration: none;
}
.btn-primary { background: var(--gold); color: #2a2010; border-color: var(--gold-2); }
.btn-primary:hover { background: var(--gold-2); color: #2a2010; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--paper-2); border-color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.btn-outline { background: var(--card); color: var(--green); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--green); color: var(--paper-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Back link ("Powrót - back") ---------- */
.backlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .92rem;
  color: var(--green-2); padding: .45rem .9rem; border: 1.5px solid var(--line-strong);
  border-radius: 999px; background: var(--card); transition: .2s;
}
.backlink:hover { background: var(--green); color: var(--paper-2); border-color: var(--green); }
.backlink::before { content: "←"; font-size: 1.1em; }

/* ---------- Page header band ---------- */
.page-band {
  background: linear-gradient(180deg, var(--paper-3), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}
.page-band h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem); letter-spacing: .05em; color: var(--green);
}
.page-band .fr { display:block; font-family: var(--font-body); font-style: italic;
  font-weight: 400; color: var(--red); font-size: .5em; letter-spacing: .04em; margin-top:.3rem; }
.page-band .crumbs { margin-top: 1rem; font-family: var(--font-ui); font-size: .82rem;
  color: var(--ink-faint); letter-spacing: .03em; }
.page-band .crumbs a { color: var(--ink-soft); }

/* Decorative engraved divider */
.divider { display:flex; align-items:center; gap:1rem; justify-content:center; margin: 1.2rem auto; max-width: 280px; color: var(--gold); }
.divider::before { content:""; height:1px; flex:1; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.divider::after  { content:""; height:1px; flex:1; background: linear-gradient(90deg, var(--line-strong), transparent); }
.divider .star { font-size: .9rem; color: var(--gold); }

/* ---------- Generic content section ---------- */
main { display: block; }
.section { padding: clamp(2.4rem, 6vw, 4.5rem) 0; }
.section-title {
  font-family: var(--font-display); font-weight: 700; color: var(--green);
  font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: .04em; text-align: center;
}
.section-title .fr { color: var(--red); font-style: italic; font-family: var(--font-body); }
.section-intro { max-width: 70ch; margin: 1rem auto 0; text-align: center; color: var(--ink-soft); }

/* ---------- Card grid ---------- */
.grid { display: grid; gap: var(--gap); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .card-media { aspect-ratio: 3/2; overflow: hidden; background: var(--paper-3); }
.card .card-media img { width:100%; height:100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card .card-body { padding: 1.1rem 1.2rem 1.3rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.card .card-kicker { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; color: var(--gold); font-weight: 600; }
.card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--green); letter-spacing: .02em; line-height: 1.25; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .card-link { margin-top: auto; font-family: var(--font-ui); font-weight: 600; font-size: .9rem; color: var(--red); }
.card .card-link::after { content:" →"; }

/* ---------- History index : grouped lists ---------- */
.cat-block { margin-bottom: clamp(2rem, 4vw, 3rem); }
.cat-head {
  font-family: var(--font-display); font-weight: 700; color: var(--green);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: .05em;
  text-align: center; margin-bottom: 1.6rem; line-height: 1.25;
}
.cat-head span { display: inline-block; text-wrap: balance; max-width: min(100%, 40ch); }
.cat-head::after {
  content: ""; display: block; height: 2px; width: clamp(90px, 16%, 170px);
  margin: .8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.linklist { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.linkrow {
  display: flex; align-items: center; gap: .85rem;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green-soft);
  border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s, border-left-color .18s, background .18s;
  font-family: var(--font-body);
}
.linkrow:hover { transform: translateX(3px); box-shadow: var(--shadow-md); border-left-color: var(--red); background: var(--paper-2); }
.linkrow .ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 6px;
  display: grid; place-items: center; background: var(--paper-3); color: var(--green);
}
.linkrow .ico svg { width: 18px; height: 18px; }
.linkrow.is-pdf .ico { background: #f6e4df; color: var(--red); }
.linkrow .lt { display:flex; flex-direction: column; }
.linkrow .lt .title { color: var(--ink); font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.linkrow .lt .meta { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint); }
.linkrow:hover .lt .title { color: var(--green); }

/* Sub-event groups in history (Z życia Amicale) */
.event-group { margin: 1.6rem 0; }
.event-group > h4 {
  font-family: var(--font-body); font-style: italic; font-weight: 600;
  color: var(--red); text-align: center; font-size: 1.15rem; margin-bottom: .9rem;
}

/* ---------- Article ---------- */
.article { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 4vw, 3.5rem); margin: clamp(1.5rem,4vw,2.5rem) 0; }
.article .article-top { display:flex; justify-content: space-between; align-items:center; gap:1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.article h1, .article h2.title {
  font-family: var(--font-display); color: var(--green); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: .02em;
  text-align: center; margin-bottom: .4rem;
}
.article .article-body { font-size: 1.12rem; }
.article .article-body p { margin: 0 0 1.15rem; text-align: justify; }
.article .article-body p:last-child { margin-bottom: 0; }
.article .article-body b, .article .article-body strong { color: var(--ink); }
.article .article-body i { color: var(--ink-soft); }
.article .article-body h3 { font-family: var(--font-display); color: var(--green); margin: 2rem 0 .8rem; font-size: 1.4rem; text-align:center; letter-spacing:.03em; }
.article .article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article figure { margin: 1.8rem auto; text-align: center; }
.article figure img {
  display: inline-block; border-radius: var(--radius); box-shadow: var(--shadow-md);
  border: 1px solid var(--line); background: var(--paper-3);
}
.article figure figcaption { font-family: var(--font-body); font-style: italic;
  color: var(--ink-faint); font-size: .95rem; margin-top: .55rem; }
.article .img-row { display:flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: flex-start; margin: 1.8rem 0; }
.article .img-row figure { margin: 0; }
.casualties { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem auto; max-width: 540px; }
.casualties h4 { font-family: var(--font-display); color: var(--green); letter-spacing: .04em; margin-bottom:.5rem; }

/* ---------- Code of honour ---------- */
.code-wrap { background: var(--card); border:1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.4rem,4vw,3rem); }
.code-figure { text-align:center; margin: 1.5rem 0; }
.code-figure img { display:inline-block; border-radius: var(--radius); box-shadow: var(--shadow-md); border:1px solid var(--line); }
.creed { display: grid; gap: 1rem; counter-reset: creed; margin: 1.5rem 0; }
.creed-item { background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem 1.1rem 3.4rem; position: relative; }
.creed-item::before { counter-increment: creed; content: counter(creed);
  position:absolute; left: .9rem; top: 1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--green); color: var(--gold-soft); display:grid; place-items:center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.creed-item .fr { color: var(--green-2); font-weight: 600; }
.creed-item .pl { color: var(--red); display:block; margin-top:.4rem; font-style: italic; }
.code-intro p .fr { color: var(--green-2); }
.code-intro p .pl { color: var(--red); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.gallery-grid figure { margin:0; }
.gallery-grid button.thumb {
  display:block; width:100%; padding:0; border:1px solid var(--line); cursor: zoom-in;
  border-radius: var(--radius); overflow:hidden; background: var(--paper-3);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s, border-color .2s;
  aspect-ratio: 1/1;
}
.gallery-grid button.thumb img { width:100%; height:100%; object-fit: cover; transition: transform .45s ease; }
.gallery-grid button.thumb:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.gallery-grid button.thumb:hover img { transform: scale(1.07); }
.gallery-count { text-align:center; font-family: var(--font-ui); color: var(--ink-faint);
  letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1.2rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset:0; z-index: 200; display:none;
  background: rgba(18,16,10,.92); backdrop-filter: blur(3px);
  align-items:center; justify-content:center; padding: 2.5rem 1rem; }
.lightbox.open { display:flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 4px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(230,211,163,.3); }
.lightbox figcaption { color: var(--gold-soft); font-family: var(--font-body); font-style: italic; }
.lb-fig { margin:0; display:flex; flex-direction:column; gap:.7rem; align-items:center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.08); color: var(--gold-soft);
  border: 1px solid rgba(230,211,163,.35); width: 50px; height: 50px; border-radius: 50%;
  font-size: 1.5rem; cursor:pointer; display:grid; place-items:center; transition: .2s; }
.lb-btn:hover { background: var(--gold); color: #2a2010; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-close { right: 1.2rem; top: 1.2rem; width: 44px; height: 44px; font-size: 1.3rem; }
.lb-counter { position:absolute; bottom: 1.2rem; left:50%; transform: translateX(-50%);
  color: var(--gold-soft); font-family: var(--font-ui); letter-spacing: .1em; font-size: .85rem; }

/* ---------- Contact ---------- */
.contact-card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.6rem,4vw,3rem); display:grid; gap:1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr)); align-items:center; }
.contact-card .ci { display:flex; gap: 1rem; align-items:flex-start; }
.contact-card .ci .ico { flex:0 0 auto; width:46px; height:46px; border-radius: 10px; background: var(--paper-3);
  color: var(--green); display:grid; place-items:center; }
.contact-card .ci .ico svg { width: 24px; height:24px; }
.contact-card h3 { font-family: var(--font-display); color: var(--green); font-size: 1.1rem; letter-spacing:.03em; }
.contact-card .fr { color: var(--red); font-style: italic; }

/* ---------- Info / data table (association) ---------- */
.info-panel { background: var(--card); border:1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.5rem,4vw,2.6rem); }
.info-panel h2 { font-family: var(--font-display); color: var(--green); text-align:center; letter-spacing:.04em; }
.info-panel h2 .fr { color: var(--red); font-style:italic; font-family: var(--font-body); }
.roster { list-style:none; padding:0; margin: 1.2rem 0; display:grid; gap:.6rem; }
.roster li { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  border-bottom: 1px dashed var(--line); padding: .55rem .2rem; }
.roster li .role { color: var(--ink-soft); font-style: italic; }
.roster li .role .fr { color: var(--red); }
.roster li .name { font-weight: 600; font-family: var(--font-display); color: var(--green); letter-spacing:.02em; }
.idtags { display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; margin: 1rem 0; }
.idtags span { font-family: var(--font-ui); font-size:.82rem; letter-spacing:.05em;
  background: var(--paper-3); border:1px solid var(--line); border-radius: 999px; padding:.35rem .9rem; color: var(--ink-soft); }
.bank { text-align:center; margin-top:1.5rem; padding-top:1.2rem; border-top:1px solid var(--line); }
.bank .iban { font-family: var(--font-ui); font-weight:700; font-size: clamp(1.1rem,2.5vw,1.5rem);
  letter-spacing: .08em; color: var(--green); }
.bank .swift { font-family: var(--font-ui); color: var(--ink-soft); margin-top:.3rem; }

/* ---------- Statut (legal) ---------- */
.legal { background: var(--card); border:1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.4rem,4vw,3rem); }
.legal h2 { font-family: var(--font-display); color: var(--green); letter-spacing:.04em;
  margin: 2rem 0 .6rem; font-size: 1.4rem; border-bottom: 2px solid var(--line); padding-bottom:.4rem; }
.legal h3 { font-family: var(--font-display); color: var(--red); margin: 1.4rem 0 .4rem; font-size: 1.1rem; text-align:center; letter-spacing:.06em; }
.legal p { margin: 0 0 .8rem; }
.legal .para-num { font-weight:700; color: var(--green); }

/* ---------- Welcome / disclaimer (home) ---------- */
.welcome { display:grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); }
.welcome .panel { background: var(--card); border:1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.4rem 1.6rem; }
.welcome .panel h3 { font-family: var(--font-display); letter-spacing:.04em; margin-bottom:.6rem; }
.welcome .panel.fr h3 { color: var(--green); }
.welcome .panel.pl h3 { color: var(--green); }
.notice { background: #f6e4df; border:1px solid #e6c2ba; border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 1rem 1.3rem; color: #7a2018; font-size: .98rem; }
.media-figure { text-align:center; }
.media-figure img { display:inline-block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border:1px solid var(--line); }

/* ---------- Name sign (home — modern brass plaque, replaces old GIF) ---------- */
.namesign {
  position: relative; overflow: hidden; text-align: center;
  width: min(100%, 760px); margin-inline: auto;
  padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1.1rem, 4vw, 2.4rem);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(205,168,90,.16), transparent 60%),
    linear-gradient(180deg, #245232, #1a3f27);
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 0 5px rgba(205,168,90,.22), inset 0 0 42px rgba(0,0,0,.40), 0 14px 36px rgba(20,38,24,.28);
}
.namesign::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.namesign p { margin: 0; position: relative; }
.namesign .pl {
  font-family: var(--font-display); font-weight: 700;
  color: var(--gold-soft); letter-spacing: .055em; line-height: 1.32;
  font-size: clamp(.72rem, 2.7vw, 1.4rem); white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.namesign .orn { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: .7rem auto; color: var(--gold-2); font-size: .9rem; }
.namesign .orn::before, .namesign .orn::after { content: ""; height: 1px; width: min(26%, 140px); }
.namesign .orn::before { background: linear-gradient(90deg, transparent, var(--gold-2)); }
.namesign .orn::after { background: linear-gradient(90deg, var(--gold-2), transparent); }
.namesign .fr {
  font-family: var(--font-body); font-style: italic;
  color: var(--gold-2); line-height: 1.4; font-size: clamp(.85rem, 2vw, 1.18rem);
}
@media (max-width: 430px) { .namesign .pl { white-space: normal; text-wrap: balance; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: var(--paper-3); margin-top: 3rem;
  border-top: 4px solid var(--gold); }
.site-footer .wrap { display:grid; gap: 2rem; padding: 2.6rem 0 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,250px),1fr)); }
.site-footer h4 { font-family: var(--font-display); color: var(--gold-2); letter-spacing:.06em;
  font-size: 1rem; margin-bottom:.8rem; text-transform: uppercase; }
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color:#fff; }
.site-footer p { font-size: .95rem; color: var(--paper-3); line-height:1.6; }
.site-footer .ft-brand .fr { font-family: var(--font-display); color: var(--paper-2); font-size:1.05rem; letter-spacing:.03em; }
.site-footer .ft-brand .pl { font-style: italic; color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(230,211,163,.2); }
.footer-bottom .wrap { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  padding: 1rem 0; font-family: var(--font-ui); font-size: .8rem; color: var(--gold-soft); letter-spacing:.03em; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold);
  background: var(--green); color: var(--gold-soft); cursor: pointer; font-size: 1.2rem;
  display:grid; place-items:center; opacity:0; pointer-events:none; transition: .25s; box-shadow: var(--shadow-md); }
.to-top.show { opacity:1; pointer-events:auto; }
.to-top:hover { background: var(--gold); color:#2a2010; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav .wrap { flex-direction: column; align-items: stretch; }
  .nav-toggle { display: flex; justify-content: space-between; width:100%; }
  .nav-list { flex-direction: column; max-height: 0; overflow: hidden;
    transition: max-height .3s ease; border-top: 1px solid rgba(230,211,163,.18); }
  .nav-list.open { max-height: 640px; }
  .nav-list li { width: 100%; border-bottom: 1px solid rgba(230,211,163,.12); }
  .nav-list a { flex-direction: row; gap: .6rem; justify-content: flex-start; padding: .95rem 1.4rem; border-bottom: 0; }
  .nav-list a[aria-current="page"] { border-bottom: 0; border-left: 4px solid var(--red-2); }
  .site-header .wrap { flex-direction: column; }
  .lb-prev { left:.4rem; } .lb-next { right:.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity:1; transform:none; }
}
@media print {
  .nav, .topbar, .tricolor, .to-top, .site-footer, .backlink, .hero-actions { display:none !important; }
  body { background: #fff; }
  .article, .legal, .info-panel { box-shadow:none; border:0; }
}
