﻿/* ── Variables ─────────────────────────────────────────────── */
      :root {
        --bleu: #1a3a6b;
        --bleu-mid: #2558a8;
        --bleu-clair: #e8eef8;
        --rouge: #c0392b;
        --or: #d4a017;
        --texte: #1e1e2e;
        --gris-doux: #f5f6fa;
        --gris-bord: #dde2ef;
        --blanc: #ffffff;
        --radius: 8px;
        --shadow: 0 2px 12px rgba(26, 58, 107, 0.1);
      }

      /* ── Reset & base ────────────────────────────────────────────── */
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html {
        scroll-behavior: smooth;
      }
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }
      body {
        font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
        font-size: 18px;
        line-height: 1.7;
        color: var(--texte);
        background: var(--gris-doux);
      }
      a {
        color: var(--bleu-mid);
        text-decoration: none;
      }
      a:hover {
        text-decoration: underline;
      }
      a:focus-visible {
        outline: 3px solid var(--or);
        outline-offset: 2px;
        border-radius: 2px;
      }
      strong {
        font-weight: 600;
      }
      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      /* ── Header ──────────────────────────────────────────────────── */
      .site-header {
        background-color: #a8d8f0;
        background-image: url("https://www.proxiti.info/css/header-field-center.jpg");
        background-repeat: repeat-x;
        background-position: center bottom;
        background-size: auto 100%;
        min-height: 170px;
        position: relative;
        overflow: visible;
      }
      .header-inner {
        width: 100%;
        padding: 1.2rem 2% 4rem;
        display: flex;
        align-items: flex-start;
        gap: 1.2rem;
      }
      .header-logo-img {
        width: 90px;
        height: auto;
        flex-shrink: 0;
        margin-top: 0.2rem;
      }
      .header-text {
        flex: 1;
      }
      .header-commune {
        font-family: "Montserrat", sans-serif;
        font-size: 1.8rem;
        font-weight: 900;
        color: #e6f2ff;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
      }
      .header-commune span {
        font-weight: 400;
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.9);
      }
      .header-url {
        font-family: "Montserrat", sans-serif;
        font-size: 1.7rem;
        font-weight: 900;
        color: #143f7b;
        letter-spacing: 1px;
        display: inline-block;
        margin-top: 0.15rem;
        background: rgba(255, 255, 255, 0.68);
        border: 1px solid rgba(20, 63, 123, 0.2);
        border-radius: 8px;
        padding: 0.1rem 0.55rem 0.15rem;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
      }
      .header-reseau {
        font-size: 0.95rem;
        color: #334155;
        margin-top: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
      }
      .header-reseau-logo {
        height: 28px;
        width: auto;
        vertical-align: middle;
      }
      /* Barre de navigation */
      .header-nav-bar {
        background: transparent;
        border-top: 3px solid #e26a2d;
        padding: 0;
        position: relative;
        z-index: 10;
        height: 0;
      }
      .header-nav-inner {
        width: 100%;
        padding: 0 2%;
        display: flex;
        gap: 0;
        flex-wrap: wrap;
        transform: translateY(-50%);
      }
      /* Conteneur pilule unique qui groupe les boutons */
      .nav-pill-group {
        display: inline-flex;
        background: linear-gradient(
          to bottom,
          #5a7ec8 0%,
          #2a4a9a 50%,
          #1a3270 100%
        );
        border-radius: 30px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow:
          0 3px 10px rgba(0, 0, 0, 0.4),
          inset 0 1px 0 rgba(255, 255, 255, 0.25);
        overflow: hidden;
        padding: 0.15rem 0.25rem;
        gap: 0.15rem;
      }
      .header-nav-bar a {
        display: inline-block;
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
        padding: 0.5rem 1.6rem;
        border-radius: 25px;
        background: transparent;
        border: none;
        transition: background 0.18s;
        text-decoration: none;
      }
      .header-nav-bar a:hover {
        background: rgba(255, 255, 255, 0.2);
        text-decoration: none;
      }
      .header-nav-bar .btn-inscription {
        background: transparent;
        color: #fff;
        font-weight: 700;
      }
      .header-nav-bar .btn-inscription:hover {
        background: rgba(255, 255, 255, 0.2);
      }

      /* ── Hero card (dans colonne principale) ─────────────────────── */
      .hero-card {
        background: linear-gradient(
          135deg,
          var(--bleu) 0%,
          var(--bleu-mid) 60%,
          #3a72c8 100%
        );
        color: var(--blanc);
        padding: 2rem 2rem 1.75rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
      }
      .hero-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        position: relative;
        z-index: 1;
      }
      .hero-text {
        min-width: 0;
        flex: 1 1 62%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) min(320px, 40%);
        grid-template-areas:
          "title dates"
          "meta dates";
        align-items: center;
        gap: 0.8rem 1.5rem;
      }
      .hero-illustration {
        flex: 0 0 clamp(300px, 25%, 230px);
        align-self: flex-end;
      }
      .hero-illustration img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 6px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
      }
      .hero-card::before {
        content: none;
      }
      .hero-card::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 25px;
        background:
          linear-gradient(
            to right,
            #1f5ea8 0%,
            #1f5ea8 33.33%,
            #ffffff 33.33%,
            #ffffff 66.66%,
            #c23b3b 66.66%,
            #c23b3b 100%
          );
        opacity: 0.95;
        pointer-events: none;
      }
      .hero-card h1,
      .hero-title {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(1.6rem, 3vw, 2.4rem);
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 0.85rem;
        grid-area: title;
      }
      .hero-card h1 em {
        font-style: normal;
        color: var(--or);
      }
      .hero-card .hero-meta {
        display: block;
        font-size: 1rem;
        opacity: 0.9;
        margin-top: 0.1rem;
        grid-area: meta;
      }
      .hero-card .hero-meta > span {
        display: block;
      }
      .hero-card .hero-meta > span + span {
        margin-top: 0.35rem;
      }
      .hero-card .hero-meta > span::before {
        content: "›";
        margin-right: 0.35rem;
        color: var(--or);
      }
      .hero-number {
        display: inline;
        color: var(--or);
        font-weight: 700;
      }
      .hero-dates-pill {
        flex: 0 0 min(320px, 40%);
        grid-area: dates;
        align-self: center;
        margin-top: 25px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 14px;
        padding: 0.9rem 1rem;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
      }
      .hero-dates-title {
        margin: 0 0 0.45rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: #ffffff;
      }
      .hero-date-line {
        margin: 0.2rem 0;
        color: #f1f6ff;
        font-size: 1rem;
        line-height: 1.35;
        white-space: normal;
      }
      .hero-date-line strong {
        color: var(--or);
        white-space: nowrap;
      }
      .hero-date-value {
        white-space: normal;
      }

      /* ── Layout ─────────────────────────────────────────────────── */
      .page-body {
        width: 96%;
        margin: 2rem auto;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 1.5rem;
        align-items: start;
      }
      @media (max-width: 860px) {
        .page-body {
          grid-template-columns: 1fr;
        }
        .sidebar {
          order: 1;
        }
        .main-col {
          order: 0;
        }
      }
      .main-col {
        min-width: 0;
      }

      /* ── Cards / sections ────────────────────────────────────────── */
      .card {
        background: var(--blanc);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 2rem;
        margin-bottom: 2rem;
      }
      .card h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 1.45rem;
        font-weight: 700;
        color: var(--bleu);
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid var(--bleu-clair);
      }
      .card h3 {
        font-family: "Montserrat", sans-serif;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--bleu-mid);
        margin: 1.25rem 0 0.5rem;
      }
      .card p {
        margin-bottom: 0.75rem;
        font-size: 1.05rem;
      }
      .card p:last-child {
        margin-bottom: 0;
      }
      .card ul {
        padding-left: 1.3rem;
        font-size: 1rem;
      }
      .card ul li {
        margin-bottom: 0.4rem;
      }

      /* ── Intro texte ──────────────────────────────────────────────── */
      .intro-text {
        font-size: 1.08rem;
      }
      .intro-text p {
        margin-bottom: 0.9rem;
      }
      .intro-text strong {
        color: var(--rouge);
      }
      .meta-line {
        font-size: 0.9rem;
        color: #556;
        margin-bottom: 0.85rem;
      }
      .fine-print {
        font-size: 0.88rem;
        color: #667;
        margin-bottom: 0.9rem;
      }
      .fine-print-note {
        margin-top: 1rem;
        font-size: 0.88rem;
        color: #556;
      }
      .note-italic {
        margin-top: 0.5rem;
        font-style: italic;
        color: #556;
      }

      /* ── Jump nav listes ─────────────────────────────────────────── */
      .listes-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 1rem 0 0.5rem;
      }
      .listes-nav a {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.7rem 1rem;
        border-radius: var(--radius);
        background: var(--bleu-clair);
        border-left: 4px solid var(--bleu-mid);
        font-weight: 600;
        font-size: 0.93rem;
        color: var(--bleu);
        transition:
          background 0.18s,
          border-color 0.18s;
      }
      .listes-nav .liste-nav-text {
        display: flex;
        flex-direction: column;
        gap: 0.12rem;
        min-width: 0;
      }
      .listes-nav .liste-nav-name {
        font-weight: 600;
        line-height: 1.2;
      }
      .listes-nav a:hover {
        background: #d4dcf0;
        text-decoration: none;
        border-color: var(--bleu);
      }
      .listes-nav .num {
        background: var(--bleu-mid);
        color: #fff;
        border-radius: 50%;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 700;
        flex-shrink: 0;
      }
      .listes-nav .liste-nuance-nav {
        display: block;
        margin-top: 0.2rem;
      }
      .nuance-badge {
        display: inline-block;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.1px;
        line-height: 1.2;
        border: 1px solid rgba(0, 0, 0, 0.08);
      }
      .nuance-default { background: #e9edf3; color: #304057; }
      .nuance-lcom { background: #d12229; color: #fff; }
      .nuance-ldiv { background: #7b8798; color: #fff; }
      .nuance-ldsv { background: #355e95; color: #fff; }
      .nuance-ldvc { background: #4f82d8; color: #fff; }
      .nuance-ldvd { background: #2957a4; color: #fff; }
      .nuance-ldvg { background: #f18ea5; color: #fff; }
      .nuance-leco { background: #2f8f46; color: #fff; }
      .nuance-lexd { background: #2d2f7f; color: #fff; }
      .nuance-lexg { background: #a5161c; color: #fff; }
      .nuance-lfi { background: #7c1234; color: #fff; }
      .nuance-lhor { background: #f3be2e; color: #fff; }
      .nuance-llr { background: #1f3f75; color: #fff; }
      .nuance-lmdm { background: #f28c28; color: #fff; }
      .nuance-lrec { background: #2d2f7f; color: #fff; }
      .nuance-lreg { background: #6a4caf; color: #fff; }
      .nuance-lren { background: #f3be2e; color: #2b2b2b; }
      .nuance-lrn { background: #1f4fa3; color: #fff; }
      .nuance-lsoc { background: #e85a78; color: #fff; }
      .nuance-luc { background: #5fa9de; color: #fff; }
      .nuance-lud { background: #2e4f8d; color: #fff; }
      .nuance-ludi { background: #4a7ac8; color: #fff; }
      .nuance-ludr { background: #203767; color: #fff; }
      .nuance-lug { background: #d64e72; color: #fff; }
      .nuance-luxd { background: #232323; color: #fff; }
      .nuance-lvec { background: #3ea95a; color: #fff; }

     

      /* ── Tableaux de candidats ───────────────────────────────────── */
      .liste-card {
        background: var(--blanc);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-bottom: 1.75rem;
        overflow: hidden;
      }
      .liste-header {
        background: #1f3f75;
        color: var(--blanc);
        padding: 1.1rem 1.4rem;
        display: flex;
        align-items: center;
        gap: 1.1rem;
        flex-wrap: wrap;
      }
      .liste-num {
        font-family: "Montserrat", sans-serif;
        font-size: 4rem;
        font-weight: 800;
        color: #f4bc2c;
        line-height: 1;
        flex-shrink: 0;
      }
      .liste-info h3 {
        font-family: "Montserrat", sans-serif;
        font-size: 2rem;
        font-weight: 700;
        color: #fff !important;
        letter-spacing: 0.2px;
        margin: 0 0 0.3rem;
      }
      .liste-info p {
        font-size: 1.15rem;
        color: #d6e3fa;
        margin: 0;
      }
      .liste-info .liste-nuance {
        font-size: 1rem;
        color: #c7d8f7;
        margin: 0 0 0.25rem;
      }
      .liste-info .liste-nuance .nuance-badge {
        margin-left: 0.35rem;
      }
      .liste-info p strong {
        color: #ffffff;
        font-weight: 700;
      }
      .liste-body {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      table.candidats {
        width: 100%;
        max-width: 920px;
        margin: 0 auto;
        border-collapse: collapse;
        font-size: 1rem;
      }
      table.candidats thead th {
        background: var(--bleu-clair);
        color: var(--bleu);
        font-weight: 600;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        padding: 0.75rem 1rem;
        text-align: left;
        border-bottom: 2px solid var(--gris-bord);
      }
      table.candidats thead th:first-child {
        width: 44px;
        text-align: center;
      }
      table.candidats thead th:last-child {
        text-align: center;
        width: 160px;
      }
      table.candidats tbody tr {
        border-bottom: 1px solid var(--gris-bord);
        transition: background 0.12s;
      }
      table.candidats tbody tr:last-child {
        border-bottom: none;
      }
      table.candidats tbody tr:hover {
        background: var(--gris-doux);
      }
      table.candidats tbody tr:nth-child(even) {
        background: #fafbfd;
      }
      table.candidats tbody tr:nth-child(even):hover {
        background: var(--gris-doux);
      }
      table.candidats td {
        padding: 0.65rem 1rem;
        vertical-align: middle;
      }
      table.candidats td:first-child {
        text-align: center;
        color: #aab;
        font-weight: 600;
        font-size: 0.82rem;
      }
      table.candidats td:last-child {
        text-align: center;
      }
      table.candidats .badge-communautaire {
        display: inline-block;
        background: var(--bleu-mid);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        padding: 0.2rem 0.55rem;
        border-radius: 20px;
      }
      table.candidats tbody tr.candidat-homme td:nth-child(2) {
        color: #1f5ea8;
      }
      table.candidats tbody tr.candidat-femme td:nth-child(2) {
        color: #b03b72;
      }

      /* ── Sections informatives ────────────────────────────────────── */
      .info-sections {
      }
      .info-section {
        background: var(--blanc);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        margin-bottom: 1.25rem;
      }
      .info-section summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.5rem;
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        font-size: 1.08rem;
        color: var(--bleu);
        user-select: none;
      }
      .info-section summary::-webkit-details-marker {
        display: none;
      }
      .info-section summary::after {
        content: "▾";
        font-size: 2.2rem;
        font-weight: 700;
        line-height: 1;
        color: var(--bleu-mid);
        transition: transform 0.25s;
      }
      .info-section[open] summary::after {
        transform: rotate(180deg);
      }
      .info-section .section-body {
        padding: 0 1.5rem 1.25rem;
        font-size: 1rem;
      }
      .info-section .section-body p {
        margin-bottom: 0.6rem;
      }
      .info-section .section-body ul {
        padding-left: 1.2rem;
      }
      .info-section .section-body ul li {
        margin-bottom: 0.3rem;
      }

      /* ── Sidebar ─────────────────────────────────────────────────── */
      .sidebar {
      }
      .sidebar-card {
        background: var(--blanc);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 1.25rem;
        margin-bottom: 1.25rem;
      }
      .sidebar-card h4 {
        font-family: "Montserrat", sans-serif;
        font-size: 0.88rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--bleu);
        margin-bottom: 0.9rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--bleu-clair);
      }
      .communes-list {
        list-style: none;
        padding: 0;
        max-height: none;
        overflow-y: visible;
      }
      .communes-list li {
        border-bottom: 1px solid var(--gris-bord);
      }
      .communes-list li:last-child {
        border-bottom: none;
      }
      .communes-list a {
        display: block;
        padding: 0.45rem 0.3rem;
        font-size: 0.87rem;
        color: var(--texte);
        transition:
          color 0.15s,
          padding 0.15s;
      }
      .communes-list a:hover {
        color: var(--bleu-mid);
        padding-left: 0.6rem;
        text-decoration: none;
      }
      .share-btn {
        display: block;
        text-align: center;
        background: var(--bleu-mid);
        color: #fff;
        padding: 0.7rem 1rem;
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 0.9rem;
        transition: background 0.18s;
      }
      .sidebar-card .share-arrow {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        font-size: 3rem !important;
        line-height: 1;
        color: var(--bleu-mid);
        margin: 0.25rem auto 0.45rem;
        font-weight: 700;
      }
      .share-btn:hover {
        background: var(--bleu);
        color: #fff;
        text-decoration: none;
      }

      /* ── Indemnités tableau ───────────────────────────────────────── */
      .indemnites-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        margin-top: 0.75rem;
      }
      .indem-box {
        background: var(--bleu-clair);
        border-radius: 6px;
        padding: 0.9rem 1rem;
        text-align: center;
      }
      .indem-box .montant {
        font-family: "Montserrat", sans-serif;
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--bleu);
        display: block;
      }
      .indem-box .label {
        font-size: 0.78rem;
        color: #556;
        margin-top: 0.2rem;
      }

      /* ── Footer ──────────────────────────────────────────────────── */
      footer {
        background: #2b1f14;
        color: rgba(255, 255, 255, 0.7);
        padding: 2rem 1.5rem;
        margin-top: 2rem;
        font-size: 0.85rem;
        border-top: 3px solid #8b6340;
      }
      .footer-inner {
        width: 96%;
        margin: auto;
        margin: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
      }
      .footer-nav {
        display: flex;
        gap: 0.75rem 1.5rem;
        flex-wrap: wrap;
      }
      .footer-nav a {
        color: rgba(255, 255, 255, 0.65);
      }
      .footer-nav a:hover {
        color: #d4a017;
        text-decoration: none;
      }
      footer p {
        margin: 0;
      }

      /* ── Responsive ────────────────────────────────────────────── */
      @media (max-width: 600px) {
        .hero {
          padding: 2rem 1rem;
        }
        .card {
          padding: 1.25rem;
        }
        .liste-header {
          padding: 0.85rem 1rem;
        }
        table.candidats thead th,
        table.candidats td {
          padding: 0.5rem 0.65rem;
        }
        .info-section summary {
          padding: 0.85rem 1rem;
        }
        .info-section .section-body {
          padding: 0 1rem 1rem;
        }
        .hero-inner {
          flex-direction: column;
          align-items: flex-start;
        }
        .hero-text {
          width: 100%;
          display: grid;
          grid-template-columns: 1fr;
          grid-template-areas:
            "title"
            "dates"
            "meta";
          gap: 0.8rem;
        }
        .hero-title {
          margin-bottom: 0;
        }
        .hero-dates-pill {
          width: 100%;
          max-width: 460px;
        }
        .hero-illustration {
          width: min(70%, 260px);
          align-self: center;
        }
      }
      /* ── Compatibilite rendu PHP (contenu info inchange) ───────── */
      .generated-content {
        background: var(--blanc);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 2rem;
        margin-bottom: 2rem;
      }
      .generated-content h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 1.45rem;
        font-weight: 700;
        color: var(--bleu);
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid var(--bleu-clair);
      }
      .generated-content h3 {
        font-family: "Montserrat", sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--bleu-mid);
        margin: 1rem 0 0.5rem;
      }
      .generated-content p {
        margin-bottom: 0.75rem;
      }
      .generated-content ul {
        padding-left: 1.2rem;
        margin: 0.4rem 0 0.9rem;
      }
      .generated-content li {
        margin-bottom: 0.35rem;
      }
      .generated-content .important {
        color: var(--rouge);
        font-weight: 700;
      }
      .generated-content .chiffre,
      .generated-content .chiffreimportant {
        color: var(--bleu);
        font-weight: 700;
      }
      .generated-content img {
        max-width: 100%;
        height: auto;
      }
      .generated-content table:not(.candidats) {
        width: 100%;
        border-collapse: collapse;
        margin: 0.9rem 0 1.1rem;
      }
      .generated-content table:not(.candidats) td,
      .generated-content table:not(.candidats) th {
        border: 1px solid var(--gris-bord);
        padding: 0.55rem 0.75rem;
      }
      .generated-content .intro-section,
      .generated-content .listes-section,
      .generated-content .remuneration-section,
      .generated-content .share-section {
        margin-bottom: 1.5rem;
      }
      .generated-content .share-section {
        padding-top: 0.5rem;
        border-top: 1px solid var(--gris-bord);
      }
      .generated-content .liste-context {
        margin: 0.6rem 0 0.7rem;
        color: #334;
      }
      .generated-content table.tabcandidats {
        font-size: 1rem;
      }
      .generated-content table.tabcandidats thead th,
      .generated-content table.tabcandidats tfoot th {
        background: var(--bleu-clair);
        color: var(--bleu);
      }
      .generated-content table.tabcandidats td.nomcandidat.homme {
        color: #1f5ea8;
      }
      .generated-content table.tabcandidats td.nomcandidat.femme {
        color: #b03b72;
      }
      .generated-content table.tabcandidats td.numordre {
        width: 44px;
        text-align: center;
        color: #99a;
        font-weight: 700;
      }
      .generated-content table.tabcandidats td.candidatcom {
        width: 130px;
        text-align: center;
        font-weight: 700;
      }
      .communes-proches ul {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: none;
        overflow-y: visible;
      }
      .communes-proches li {
        border-bottom: 1px solid var(--gris-bord);
      }
      .communes-proches li:last-child {
        border-bottom: none;
      }
      .communes-proches a {
        display: block;
        padding: 0.45rem 0.3rem;
        font-size: 0.87rem;
        color: var(--texte);
      }
      .communes-proches a:hover {
        color: var(--bleu-mid);
        text-decoration: none;
      }
