
/* CC Villeneuvois — modernized 2003 palette */
:root {
  --bg: #FEECBA;
  --bg-alt: #FEEECF;
  --surface: #FFFFFF;
  --charcoal: #333333;
  --gold: #FFCC66;
  --gold-light: #FFFF99;
  --navy: #336699;
  --navy-light: #6699CC;
  --orange: #FF6633;
  --orange-pure: #FF6600;
  --teal: #008679;
  --red: #990000;
  --text: #333333;
  --text-secondary: rgba(51,51,51,.72);
  --border: rgba(51,51,51,.14);
  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08);
  --container-w: 1140px;
  --font: Verdana, Arial, Geneva, "DejaVu Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 14px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--orange); margin: 0 0 .6rem; }
h1 { font-size: 28px; line-height: 1.25; }
h2 { font-size: 22px; line-height: 1.3; }
h3 { font-size: 18px; color: var(--charcoal); }
h4 { font-size: 16px; color: var(--charcoal); }
p  { margin: 0 0 1rem; }
.lead { font-size: 16px; line-height: 1.6; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--charcoal); color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Announcement bar */
.announcement {
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  padding: .5rem 0;
  text-align: center;
  border-bottom: 2px solid var(--orange-pure);
}
.announcement .container { padding: 0 20px; }

/* Header */
.site-header { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 1rem; flex-wrap: wrap; }
.brand img { display: block; height: 64px; width: auto; }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.lang-switcher { display: inline-flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: var(--radius-pill); border: 1px solid var(--border); }
.lang-switcher .lang {
  display: inline-block; min-width: 36px; padding: 4px 10px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 12px; color: var(--charcoal); text-align: center;
}
.lang-switcher .lang.active { background: var(--charcoal); color: var(--gold); }

/* Nav bar — the dark 2003 strip */
.nav-bar { background: var(--charcoal); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.nav-bar .container { padding: 0 20px; }
.nav.primary { display: flex; align-items: center; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--gold); font-size: 24px; padding: 10px; cursor: pointer; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; flex-wrap: wrap; }
.nav-list li { margin: 0; }
.nav-list a {
  display: inline-block; color: var(--gold); padding: 12px 16px;
  font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.nav-list a:hover { color: var(--gold-light); background: rgba(255,255,255,.05); text-decoration: none; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; width: 100%; flex-direction: column; padding: 0.4rem 0; }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: 12px 20px; }
}

/* Hero */
.hero { background: var(--bg-alt); padding: 32px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hero-text h1 { font-size: 36px; line-height: 1.15; color: var(--orange); }
.hero-img img { border-radius: var(--radius-card); box-shadow: var(--shadow-card); aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 26px; }
}

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; border: 0; }
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-pure); text-decoration: none; color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--charcoal); color: var(--charcoal); }
.btn.ghost:hover { background: var(--charcoal); color: var(--gold); text-decoration: none; }

/* Band sections */
.band { padding: 40px 0; }
.band.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 1rem; flex-wrap: wrap; }
.row-head .more { font-weight: 700; }
.row-head .count { color: var(--text-secondary); font-weight: 400; }

/* Tiles grid (home) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { display: block; background: var(--surface); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border); color: var(--charcoal); }
.tile:hover { transform: translateY(-2px); transition: transform .15s ease; text-decoration: none; }
.tile-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.tile-body { padding: 14px 16px; }
.tile-body h3 { margin: 0; color: var(--charcoal); }
.tile-count { color: var(--orange); font-weight: 700; font-size: 22px; margin: .3rem 0 0; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

/* Cards (catalog) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border); display: flex; flex-direction: column; }
.card-img img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { margin: 0; font-size: 17px; color: var(--charcoal); }
.card-title a { color: var(--charcoal); }
.card-title a:hover { color: var(--orange); }
.card-sub { color: var(--text-secondary); font-size: 13px; margin: 0; }
.card-desc { margin: .25rem 0 .8rem; font-size: 14px; line-height: 1.55; }
.card .btn { align-self: flex-start; margin-top: auto; }
.badge { display: inline-block; background: var(--gold); color: var(--charcoal); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; }

/* Filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.chip { background: var(--bg-alt); border: 1px solid var(--border); color: var(--charcoal); padding: 6px 14px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; }
.chip:hover { background: var(--gold); }
.chip.active { background: var(--charcoal); color: var(--gold); border-color: var(--charcoal); }

/* Big tile (discover index) */
.big-tile { display: block; position: relative; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.big-tile img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.big-tile-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, transparent, rgba(51,51,51,.85)); color: #fff; padding: 24px; }
.big-tile-overlay h3 { color: #fff; margin: 0; font-size: 22px; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--text-secondary); margin: 16px 0 8px; }
.breadcrumb a { color: var(--navy); }

/* Detail page */
.detail-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.detail .container { padding-bottom: 40px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.facts { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; background: var(--bg-alt); padding: 18px 20px; border-radius: var(--radius-card); border: 1px solid var(--border); margin: 16px 0; }
.facts dt { font-weight: 700; color: var(--charcoal); }
.facts dd { margin: 0; }
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { margin-top: .4rem; }
}

/* News article */
.news-article .meta { color: var(--text-secondary); font-size: 13px; }
.article-body { font-size: 15px; line-height: 1.7; }
.article-body p + p { margin-top: 1rem; }
.article-body h2 { margin-top: 1.6rem; color: var(--orange); font-size: 20px; }
.article-body h3 { margin-top: 1.2rem; }
.news-article .source { color: var(--text-secondary); font-size: 13px; margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--border); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; background: var(--surface); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-item figcaption { padding: 10px 12px; font-size: 12px; }
.gallery-item .credit { display: block; color: var(--text-secondary); margin-top: 4px; font-size: 11px; }

/* Static map */
.static-map { background: var(--bg-alt); border-radius: var(--radius-card); padding: 12px; border: 1px solid var(--border); margin-top: 16px; }
.static-map svg { width: 100%; height: auto; }

/* Lists */
.link-list { list-style: none; padding: 0; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.commune-list { columns: 2; column-gap: 24px; }
.commune-list li { padding: 4px 0; break-inside: avoid; }
@media (max-width: 600px) { .commune-list { columns: 1; } }

/* Forms */
.contact-form { display: grid; gap: 8px; margin-top: 1rem; }
.contact-form label { font-weight: 700; margin-top: .4rem; }
.contact-form input, .contact-form textarea {
  font: 14px var(--font); padding: 8px 10px; border-radius: 4px; border: 1px solid var(--border); background: #fff;
}
.contact-form button { margin-top: 12px; }

/* Footer */
.site-footer { background: var(--charcoal); color: #f0eee5; margin-top: 60px; padding: 40px 0 24px; border-top: 4px solid var(--gold); }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-title { color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.site-footer li { padding: 3px 0; }
.footer-credits { color: rgba(240,238,229,.7); font-size: 12px; }
.footer-disclaimer { font-size: 11px; color: rgba(240,238,229,.6); border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; }
.footer-disclaimer p { margin: .25rem 0; }
.footer-built { margin-top: 1rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
