/* =========================================================
   Violences faites aux femmes âgées — Page d'accueil
   Inspiré de l'esthétique « presse écrite » : Libre Baskerville + Source Sans 3
   Palette : rouge bordeaux + ocre + vert
   ========================================================= */

:root {
  --rouge: #8B2635;
  --rouge-clair: #f5eaec;
  --rouge-medium: #c9636f;
  --ocre: #C47C3E;
  --ocre-clair: #fdf5ec;
  --vert: #2E6B5E;
  --vert-clair: #e8f3f0;
  --gris-fonce: #1a1a1a;
  --gris-moyen: #555;
  --gris-clair: #e8e6e1;
  --gris-fin: #f4f2ef;
  --blanc: #fafaf8;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--blanc);
  color: var(--gris-fonce);
  line-height: 1.7;
}

a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== HEADER ===== */
.vfa-header {
  border-bottom: 1px solid var(--gris-clair);
  position: sticky;
  top: 0;
  background: var(--blanc);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 1.25rem;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--gris-fonce);
  line-height: 1.2;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--rouge);
  font-style: italic;
  font-weight: 400;
  margin-top: 2px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gris-fonce);
  cursor: pointer;
  margin-left: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a, .nav-btn {
  font-size: 13px;
  color: var(--gris-moyen);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 0;
}
.nav-links a:hover, .nav-btn:hover {
  color: var(--rouge);
  text-decoration: none;
}
.nav-search {
  font-size: 17px !important;
  color: var(--rouge) !important;
}

/* ===== PANNEAU RECHERCHE PLEINE PAGE ===== */
.search-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--blanc);
  z-index: 200;
  overflow-y: auto;
}
.search-modal-inner {
  max-width: var(--max);
  margin: 3rem auto;
  padding: 0 1.25rem;
}
.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.search-modal-header h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: .25rem;
}
.search-modal-header p {
  font-size: 13.5px;
  color: var(--gris-moyen);
}
.search-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--gris-moyen);
  margin-top: 4px;
}
.search-form-vfa {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.search-form-vfa input {
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 14px;
  border: 1.5px solid var(--gris-clair);
  outline: none;
  background: var(--gris-fin);
}
.search-form-vfa input:focus { border-color: var(--rouge); }
.search-form-vfa button {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 18px;
  background: var(--rouge);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.search-count {
  font-size: 13px;
  color: var(--gris-moyen);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ===== PANNEAU THÈMES ===== */
.themes-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--blanc);
  border-left: 1px solid var(--gris-clair);
  z-index: 200;
  overflow-y: auto;
  box-shadow: -2px 0 16px rgba(0,0,0,.05);
}
.themes-panel-inner {
  padding: 2rem 1.5rem;
}
.themes-panel h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: .75rem;
}
.themes-intro {
  font-size: 13px;
  color: var(--gris-moyen);
  margin-bottom: 1rem;
  font-style: italic;
}
.themes-search-wrap {
  margin-bottom: 1rem;
}
.themes-search-wrap input {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--gris-clair);
  background: var(--gris-fin);
}
.themes-alpha-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.theme-alpha-group {
  border-top: 1px solid var(--gris-clair);
  padding: 8px 0;
}
.theme-alpha-letter {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--rouge);
  margin-right: 12px;
  font-size: 16px;
  min-width: 18px;
}
.theme-alpha-item {
  display: inline-block;
  font-size: 13px;
  color: var(--gris-fonce);
  margin-right: 10px;
  padding: 2px 0;
}
.theme-alpha-item span {
  color: var(--gris-moyen);
  font-size: 11px;
}
.theme-alpha-item:hover {
  color: var(--rouge);
  text-decoration: none;
}

/* ===== PAGE ===== */
.page {
  max-width: var(--max);
  margin: 2rem auto;
  padding: 0 1.25rem;
}

/* ===== HERO ===== */
.hero h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--gris-fonce);
}
.hero p {
  font-size: 15px;
  color: var(--gris-moyen);
  margin-bottom: 1rem;
}

/* ===== CHIFFRES CLÉS ===== */
.chiffres {
  background: var(--rouge-clair);
  border-left: 4px solid var(--rouge);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
/* .chiffre-item devient un <a> cliquable */
a.chiffre-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: .5rem .75rem;
  margin: -.5rem -.75rem;
  border-radius: 3px;
  transition: background .15s ease, transform .15s ease;
}
a.chiffre-item:hover {
  background: rgba(255, 255, 255, .6);
  text-decoration: none;
  transform: translateY(-1px);
}
a.chiffre-item:hover .number {
  color: #6e1d2a;
}
a.chiffre-item:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 2px;
}
.chiffre-item .number {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--rouge);
  line-height: 1;
  transition: color .15s ease;
}
.chiffre-item .label {
  font-size: 13px;
  color: var(--gris-fonce);
  line-height: 1.5;
}
.chiffre-item .label em {
  font-style: italic;
  color: var(--gris-moyen);
  font-size: 12px;
}

/* ===== NEWSLETTER ===== */
.newsletter-vfa {
  background: var(--vert-clair);
  border-left: 4px solid var(--vert);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}
.newsletter-vfa strong {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--vert);
  display: block;
  margin-bottom: .25rem;
}
.newsletter-vfa p {
  font-size: 13.5px;
  color: var(--gris-moyen);
  margin-bottom: .75rem;
}
.newsletter-form-vfa {
  display: flex;
  gap: 8px;
  max-width: 420px;
}
.newsletter-form-vfa input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--gris-clair);
  background: #fff;
}
.newsletter-form-vfa button {
  font-family: var(--sans);
  font-size: 13px;
  padding: 8px 16px;
  background: var(--vert);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.newsletter-form-vfa button:hover {
  background: #244e44;
}
.newsletter-msg {
  font-size: 13px;
  margin-top: .5rem;
  min-height: 1em;
}
.newsletter-msg.ok { color: var(--vert); }
.newsletter-msg.err { color: var(--rouge); }

/* ===== SECTIONS ===== */
.section {
  margin: 2.5rem 0;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--gris-fonce);
}
.section-meta {
  font-size: 13px;
  color: var(--gris-moyen);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ===== LISTE D'ARTICLES ===== */
.vfa-article-list {
  list-style: none;
}
.article-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gris-clair);
}
.article-item:last-child { border-bottom: none; }
.article-tags {
  display: flex;
  gap: 6px;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 10.5px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #fff;
  font-weight: 600;
}
.tag-rouge  { background: var(--rouge); }
.tag-ocre   { background: var(--ocre); }
.tag-vert   { background: var(--vert); }
.tag-gris   { background: var(--gris-moyen); }
.tag-violence {
  font-size: 10.5px;
  padding: 2px 8px;
  background: var(--gris-fin);
  color: var(--gris-moyen);
  border: 1px solid var(--gris-clair);
}
.tag-violence:hover, .tag:hover {
  text-decoration: none;
  filter: brightness(1.1);
}
.article-item h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  margin: .35rem 0;
  line-height: 1.35;
}
.article-item h3 a {
  color: var(--gris-fonce);
}
.article-item h3 a:hover {
  color: var(--rouge);
  text-decoration: none;
}
.article-item p {
  font-size: 14px;
  color: var(--gris-moyen);
  margin-bottom: .25rem;
}
.article-source {
  font-size: 12px;
  color: var(--gris-moyen);
  font-style: italic;
  margin-top: .25rem;
}
.article-date {
  font-size: 11.5px;
  color: var(--gris-moyen);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: .25rem;
}

/* ===== MOIS PRÉCÉDENTS ===== */
.prev-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.prev-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dotted var(--gris-clair);
}
.prev-list a {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gris-fonce);
}
.prev-list a:hover { color: var(--rouge); }
.prev-list .count {
  font-size: 12px;
  color: var(--gris-moyen);
}

.more-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--rouge);
  margin-top: 1rem;
  font-weight: 700;
}

/* ===== SÉPARATEUR ===== */
.sep {
  border: none;
  border-top: 2px solid var(--gris-clair);
  margin: 3rem 0;
}

/* ===== ONGLETS ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gris-clair);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gris-moyen);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 600;
}
.tab-btn:hover { color: var(--rouge); }
.tab-btn.active {
  color: var(--rouge);
  border-bottom-color: var(--rouge);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-intro {
  font-size: 13.5px;
  color: var(--gris-moyen);
  margin-bottom: 1rem;
  font-style: italic;
}

/* Highlight des termes recherchés */
mark {
  background: #fff3b3;
  color: inherit;
  padding: 0 .15em;
}

/* ===== FOOTER ===== */
.vfa-footer {
  border-top: 1px solid var(--gris-clair);
  padding: 2rem 1.25rem;
  margin-top: 4rem;
  background: var(--gris-fin);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gris-fonce);
}
.vfa-footer a {
  color: var(--gris-moyen);
}
.vfa-footer a:hover { color: var(--rouge); }
.footer-copy {
  margin-left: auto;
  color: var(--gris-moyen);
  font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--gris-clair);
    margin-top: 8px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 26px; }
  .chiffres { padding: 1rem; gap: 1rem; }
  .chiffre-item .number { font-size: 24px; }
  .footer-copy { margin-left: 0; width: 100%; }
}
