/* senateur67.fr — feuille de style commune */

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

:root {
  --bleu: #1a3a5c;
  --bleu-clair: #2e5f8a;
  --bleu-pale: #e8f0f8;
  --or: #b8963e;
  --or-clair: #d4af62;
  --or-pale: #f7f0e0;
  --rouge: #8b1a1a;
  --creme: #f9f6f0;
  --creme-sombre: #ede8df;
  --texte: #1c1c1c;
  --texte-doux: #4a4640;
  --bordure: #c8bfb0;
  --serif: 'Playfair Display', Georgia, serif;
  --corps: 'Source Serif 4', Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--creme);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 18px;
  line-height: 1.75;
}

/* barre tricolore en haut */
.tricolor { display: flex; height: 4px; position: sticky; top: 0; z-index: 200; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: #002395; }
.tricolor span:nth-child(2) { background: #fff; }
.tricolor span:nth-child(3) { background: #ED2939; }

/* navigation */
nav {
  background: var(--bleu);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 4px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-brand { font-family: var(--serif); font-size: 1rem; color: #fff; text-decoration: none; }
.nav-brand em { color: var(--or-clair); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: 0.82rem; color: rgba(255,255,255,0.75); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.actuel,
.nav-links a.actif { color: var(--or-clair); }
.nav-ge {
  font-size: 0.78rem;
  background: transparent;
  border: 1px solid var(--or);
  color: var(--or-clair);
  padding: 6px 14px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-ge:hover { background: var(--or); color: var(--bleu); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; } /* TODO animer le burger */
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 1px; }

/* fil d'ariane */
.fil-ariane {
  background: var(--creme-sombre);
  border-bottom: 1px solid var(--bordure);
  padding: 0.55rem 5%;
  font-size: 0.78rem;
  color: var(--texte-doux);
}
.fil-ariane a { color: var(--bleu-clair); text-decoration: none; }
.fil-ariane a:hover { text-decoration: underline; }
.fil-ariane span { margin: 0 0.4rem; color: var(--or); }

/* banniere */
.banniere {
  background: var(--bleu);
  color: #fff;
  padding: 4rem 5% 3.5rem;
  position: relative;
  overflow: hidden;
}
.banniere::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(255,255,255,0.022) 38px, rgba(255,255,255,0.022) 39px);
  pointer-events: none;
}
.banniere-label { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 1.2rem; }
.banniere h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  max-width: 700px;
  margin-bottom: 1.4rem;
}
.banniere h1 em { color: var(--or-clair); font-style: italic; }
.banniere-accroche {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  line-height: 1.75;
  border-left: 3px solid var(--or);
  padding-left: 1.2rem;
  font-style: italic;
}
/* variante pour les tribunes */
.banniere-sous { font-size: 1.05rem; color: #a8c0d8; font-style: italic; font-family: var(--serif); }
.banniere-tag {
  display: inline-block;
  background: rgba(184,150,62,0.18);
  border: 1px solid rgba(184,150,62,0.4);
  color: var(--or-clair);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.28rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.or-bar { width: 52px; height: 3px; background: var(--or); margin: 1.4rem 0 0; }

/* chiffres clés (pages programme) */
.chiffres { background: var(--or); padding: 2rem 5%; }
.chiffres-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}
.chiffre-item { text-align: center; padding: 0.5rem 1.5rem; border-right: 1px solid rgba(26,58,92,0.2); }
.chiffre-item:last-child { border-right: none; }
.chiffre-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--bleu); display: block; line-height: 1; margin-bottom: 0.3rem; }
.chiffre-label { font-size: 0.75rem; color: rgba(26,58,92,0.8); letter-spacing: 0.03em; line-height: 1.35; }

/* zone de contenu principale */
.contenu { max-width: 860px; margin: 0 auto; padding: 3.5rem 5% 4rem; }

/* bloc d'introduction encadré */
.conviction {
  background: var(--bleu-pale);
  border-left: 4px solid var(--bleu-clair);
  border-radius: 0 3px 3px 0;
  padding: 2rem 2.2rem;
  margin-bottom: 3.5rem;
}
.conviction p { font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--bleu); line-height: 1.75; }
.conviction p strong { font-style: normal; font-weight: 700; }

/* engagements */
.engagement { margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--bordure); }
.engagement:last-child { border-bottom: none; margin-bottom: 0; }
.engagement-header { display: flex; align-items: flex-start; gap: 1.4rem; margin-bottom: 1.5rem; }
.engagement-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--creme-sombre);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -0.2rem;
  user-select: none;
  -webkit-text-stroke: 1px var(--bordure);
}
.engagement-titre { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--bleu); line-height: 1.25; padding-top: 0.15rem; }
.engagement-titre .sous-titre {
  display: block;
  font-family: var(--corps);
  font-size: 0.72rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.4rem;
}
.engagement p { color: var(--texte-doux); margin-bottom: 1.1rem; line-height: 1.8; }
.engagement p:last-child { margin-bottom: 0; }

/* encadré statistique bleu */
.encadre-stat { background: var(--bleu); border-radius: 3px; padding: 1.4rem 1.8rem; margin: 1.5rem 0; }
.encadre-stat p { font-size: 0.9rem; color: rgba(255,255,255,0.82); margin-bottom: 0.5rem; line-height: 1.65; }
.encadre-stat p:last-child { margin: 0; }
.encadre-stat strong { color: var(--or-clair); font-weight: 400; }

/* citation mise en avant */
.citation-forte { border-left: 3px solid var(--or); padding: 1rem 1.4rem; margin: 1.8rem 0; background: var(--or-pale); }
.citation-forte p { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--bleu) !important; margin: 0 !important; line-height: 1.7; }

/* accordeon mesures -- details/summary natif, pas de JS */
.mesures {
  list-style: none;
  margin: 1.3rem 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--bordure);
  border-radius: 3px;
  overflow: hidden;
}
.mesures li { border-bottom: 1px solid var(--bordure); }
.mesures li:last-child { border-bottom: none; }
.mesures details { width: 100%; }
.mesures summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--texte-doux);
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  background: var(--creme);
  transition: background 0.15s;
  user-select: none;
}
.mesures summary::-webkit-details-marker { display: none; }
.mesures summary::marker { display: none; }
.mesures summary:hover { background: var(--or-pale); }
.mesures details[open] summary { background: var(--bleu-pale); color: var(--bleu); }
.mesures summary .fleche {
  flex-shrink: 0;
  color: var(--or);
  font-size: 0.85rem;
  margin-top: 2px;
  transition: transform 0.25s;
  line-height: 1;
}
.mesures details[open] summary .fleche { transform: rotate(90deg); color: var(--bleu-clair); }
.mesures summary .texte-mesure { flex: 1; }
.mesures summary .indice {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--or);
  letter-spacing: 0.08em;
  margin-top: 3px;
  opacity: 0.7;
  font-style: italic;
  white-space: nowrap;
}
.mesures details[open] summary .indice { opacity: 0; }
.explication {
  padding: 1.1rem 1rem 1.2rem 2.5rem;
  font-size: 0.9rem;
  color: var(--texte-doux);
  line-height: 1.75;
  background: #fff;
  border-top: 1px solid var(--bordure);
}
.explication p { margin-bottom: 0.7rem; }
.explication p:last-child { margin-bottom: 0; }
.explication strong { color: var(--bleu); font-weight: 400; font-style: italic; }

/* note de source en bas de page */
.source-note { max-width: 860px; margin: 2rem auto 0; padding: 1.2rem 5% 3rem; font-size: 0.72rem; color: #999; border-top: 1px solid var(--bordure); }
.source-note a { color: var(--bleu-clair); text-decoration: none; }
.source-note a:hover { text-decoration: underline; }

/* section conclusion */
.conclusion { background: var(--bleu); color: #fff; padding: 3.5rem 5%; }
.conclusion-inner { max-width: 860px; margin: 0 auto; }
.conclusion h2 { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 1.2rem; font-weight: 700; }
.conclusion p { color: rgba(255,255,255,0.78); line-height: 1.8; max-width: 700px; margin-bottom: 0.9rem; font-size: 0.98rem; }
.conclusion p:last-child { margin: 0; }
.conclusion strong { color: var(--or-clair); font-weight: 400; }

/* boutons retour en bas des pages programme et tribunes */
.retour-programme,
.retour-tribunes {
  background: var(--creme-sombre);
  border-top: 1px solid var(--bordure);
  padding: 2rem 5%;
  text-align: center;
}
.retour-programme p,
.retour-tribunes p { font-size: 0.9rem; color: var(--texte-doux); margin-bottom: 1rem; }
.btn-retour {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--bleu);
  border: 1px solid var(--bleu-clair);
  padding: 8px 20px;
  border-radius: 2px;
  text-decoration: none;
  margin: 0 0.5rem 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.btn-retour:hover { background: var(--bleu); color: #fff; }
.btn-ge {
  display: inline-block;
  font-size: 0.85rem;
  background: var(--or);
  color: var(--bleu);
  border: 1px solid var(--or);
  padding: 8px 20px;
  border-radius: 2px;
  text-decoration: none;
  margin: 0 0.5rem 0.5rem;
  transition: background 0.2s;
}
.btn-ge:hover { background: var(--or-clair); }

/* tribunes : éléments partagés */
.chapeau { font-size: 1.12rem; color: var(--texte); margin-bottom: 2rem; line-height: 1.8; border-left: 3px solid var(--or); padding-left: 1.2rem; }
.corps p { font-size: 1rem; color: var(--texte); margin-bottom: 1.5rem; line-height: 1.85; }
.corps h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--bleu); margin: 2.5rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--or); }
.accroche { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--bleu); border-left: 3px solid var(--or); padding: 0.8rem 1.4rem; margin: 2rem 0; line-height: 1.6; background: var(--or-pale); }
.stat-bloc { background: var(--bleu-pale); border-left: 4px solid var(--bleu); padding: 1.4rem 1.8rem; margin: 2.2rem 0; border-radius: 0 4px 4px 0; }
.stat-bloc strong { font-family: var(--serif); font-size: 1.9rem; color: var(--bleu); display: block; line-height: 1.2; margin-bottom: 0.3rem; }
.stat-bloc span { font-size: 0.95rem; color: var(--texte-doux); }
.alerte-bloc { background: #fdf0f0; border-left: 4px solid var(--rouge); padding: 1.4rem 1.8rem; margin: 2.2rem 0; border-radius: 0 4px 4px 0; }
.alerte-bloc strong { font-size: 0.85rem; color: var(--rouge); display: block; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.08em; }
.alerte-bloc p { font-size: 0.97rem; color: #3a1a1a; margin: 0; line-height: 1.75; }
.sep { border: none; border-top: 1px solid var(--bordure); margin: 2.5rem 0; }
.slogan { text-align: right; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--bleu-clair); margin-top: 2rem; }

/* pied de page */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 5%;
  background: #111c2b;
}
.footer-brand { font-family: var(--serif); font-size: 0.92rem; color: rgba(255,255,255,0.3); }
.footer-legal { font-size: 0.7rem; color: rgba(255,255,255,0.18); letter-spacing: 0.04em; line-height: 1.65; text-align: right; }

/* responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.ouvert {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bleu);
    padding: 1.2rem 5%;
    gap: 1rem;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-burger { display: block; }
  .banniere { padding: 2.8rem 5% 2.5rem; }
  .chiffre-item { border-right: none; border-bottom: 1px solid rgba(26,58,92,0.15); padding: 0.9rem 1rem; }
  .chiffre-item:last-child { border-bottom: none; }
  .engagement-num { font-size: 2rem; }
  .explication { padding-left: 1rem; }
}

/* stats admin -- ajouté avec le tracker */
.stats-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stats-grille .stat { background: #fff; border-radius: 8px; padding: 18px 20px; border: 1px solid #e5e8f0; }
.stats-grille .stat .n { font-size: 2rem; font-weight: 700; color: #1a3a5c; line-height: 1; }
.stats-grille .stat .l { font-size: 0.72rem; color: #8892a0; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.chart-bar { display: flex; align-items: flex-end; gap: 3px; height: 80px; margin: 8px 0 4px; }
.chart-bar div { flex: 1; background: #1a3a5c; border-radius: 2px 2px 0 0; min-width: 4px; transition: background 0.15s; }
.chart-bar div:hover { background: #b8963e; }
.chart-labels { display: flex; gap: 3px; }
.chart-labels span { flex: 1; font-size: 0.6rem; color: #aaa; text-align: center; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 8px; }
.stats-table th { background: #1a3a5c; color: rgba(255,255,255,0.7); padding: 8px 12px; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stats-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
.stats-table tr:hover td { background: #fafafa; }
.bar-inline { display: inline-block; height: 8px; background: #1a3a5c; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
