/* Thème « DA verte » — étape 1.
   Surcouche chargée après styles.css : halo vert doux en haut de page, grand
   titre Poppins, barre de choix flottante (élection + tour) et panneaux clairs
   arrondis. Les graphiques restent sur fond clair.
   Pour revenir en arrière : retirer le <link> vers ce fichier dans index.html
   (le déplacement du choix de l'élection dans la barre relève du HTML). */

/* Quatre fichiers seulement : chaque face couvre une plage de graisses pour que
   les valeurs intermédiaires de styles.css (650, 700, 720…) tombent sur le
   SemiBold au lieu d'être arrondies à l'ExtraBold. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 100 449; font-display: swap; src: url("fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 450 579; font-display: swap; src: url("fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 580 739; font-display: swap; src: url("fonts/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 740 900; font-display: swap; src: url("fonts/poppins-extrabold.woff2") format("woff2"); }

:root {
  --da-green: #283d3b;
  --da-accent: #2c5f57;
  --da-page: #e2ece7;
  --da-radius: 24px;
  --da-heading-font: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Fond clair avec deux halos verts très diffus : la couleur de la marque est
   présente dès l'arrivée, sans aplat ni contraste dur. */
body {
  font-family: var(--da-heading-font);
  background:
    radial-gradient(900px 520px at 88% -120px, rgba(46, 107, 98, 0.16), transparent 70%),
    radial-gradient(700px 420px at -10% 40px, rgba(46, 107, 98, 0.12), transparent 70%),
    var(--da-page);
  background-repeat: no-repeat;
}

/* En-tête éditorial : grand titre dans le vert des boutons */
.topbar {
  align-items: flex-end;
  margin-bottom: 30px;
}

h1 {
  color: var(--da-accent);
  font-family: var(--da-heading-font);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 12px;
  color: #3f5c59;
  font-size: 1.02rem;
}

/* Date de mise à jour : simple ligne de texte discrète sous le sous-titre */
.intro .freshness {
  max-width: none;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: left;
}

/* Barre de choix flottante : pilule translucide qui suit le défilement */
.round-modebar {
  position: sticky;
  top: 14px;
  z-index: 40;
  gap: 6px;
  width: fit-content;
  min-height: 0;
  margin: 0 auto 36px;
  padding: 6px;
  border: 1px solid rgba(40, 61, 59, 0.10);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 1px 2px rgba(40, 61, 59, 0.06), 0 12px 32px rgba(40, 61, 59, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.round-modebar .control label {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.round-modebar .election-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding-left: 16px;
}

.round-modebar .election-control select {
  width: 92px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background-color: rgba(46, 107, 98, 0.10);
  color: var(--da-green);
  font-weight: 700;
}

.round-modebar .election-control select:hover {
  background-color: rgba(46, 107, 98, 0.17);
}

.round-modebar .round-control {
  gap: 10px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(40, 61, 59, 0.12);
}

.round-modebar .round-switch {
  overflow: hidden;
  width: 200px;
  border: 0;
  border-radius: 999px;
  background: rgba(46, 107, 98, 0.10);
}

.round-modebar .round-switch button {
  border-right: 0;
  border-radius: 999px;
}

/* Nom du site repris dans la barre après défilement : il s'ouvre depuis la
   gauche (largeur, fondu, léger glissement) et se referme en remontant. */
.round-modebar .modebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  margin: 0 -6px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--da-accent);
  cursor: pointer;
  font-family: var(--da-heading-font);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.round-modebar .modebar-brand img {
  width: 38px;
  height: 20px;
  flex: none;
}

.round-modebar.is-condensed .modebar-brand {
  max-width: 200px;
  margin-right: 4px;
  padding: 0 12px 0 10px;
  opacity: 1;
  transform: none;
  transition-property: max-width, margin, padding, transform, opacity;
  transition-delay: 0s, 0s, 0s, 0s, 0.12s;
}

.round-modebar .modebar-brand:hover {
  background: var(--da-pill-bg);
}

.round-modebar .modebar-brand:focus-visible {
  outline: 2px solid var(--da-accent);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .round-modebar .modebar-brand {
    transition: none;
  }
}

/* Panneaux : cartes claires arrondies, filet discret et ombre douce */
.chart-panel,
.nowcast-panel,
.nowcast-score-panel,
.duel-mosaic-panel,
.comparison-panel,
.polls-table-panel,
.second-round-cta {
  border: 1px solid rgba(46, 107, 98, 0.10);
  border-radius: var(--da-radius);
  box-shadow: 0 1px 2px rgba(40, 61, 59, 0.05), 0 10px 28px rgba(40, 61, 59, 0.07);
}

/* Le bandeau de légende ferme le bas du graphique : il suit l'arrondi. */
.chart-panel .legend-panel {
  border-radius: 0 0 var(--da-radius) var(--da-radius);
}

/* Titre du site et titres de section partagent une seule couleur. */
h1,
h2 {
  color: var(--da-accent);
}

h2 {
  font-family: var(--da-heading-font);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Contrôles : même langage que la barre du haut — pilules sans bordure sur un
   fond vert très léger, option active en vert plein. */
:root {
  --da-pill-bg: rgba(46, 107, 98, 0.10);
  --da-pill-bg-hover: rgba(46, 107, 98, 0.17);
}

.segmented {
  gap: 2px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--da-pill-bg);
}

.segmented button {
  border-right: 0;
  border-radius: 999px;
  color: #4f6360;
}

.segmented button:hover {
  background: rgba(255, 253, 249, 0.75);
  color: var(--da-green);
}

.segmented button[aria-pressed="true"],
.segmented button[aria-pressed="true"]:hover {
  background: var(--da-accent);
  color: #ffffff;
}

.segmented button:focus-visible {
  outline-offset: 1px;
}

.control select {
  border-color: transparent;
  border-radius: 999px;
  background-color: var(--da-pill-bg);
}

.control select:hover {
  border-color: transparent;
  background-color: var(--da-pill-bg-hover);
}

.filters-toggle,
.legend-toggle,
.nowcast-candidate-picker summary {
  border: 0;
  border-radius: 999px;
  background: var(--da-pill-bg);
  color: var(--da-green);
}

.filters-toggle:hover,
.legend-toggle:hover,
.nowcast-candidate-picker summary:hover,
.nowcast-candidate-picker[open] summary {
  border-color: transparent;
  background: var(--da-pill-bg-hover);
}

.action-button,
.icon-button {
  border: 0;
  border-radius: 999px;
}

.action-button {
  padding: 0 20px;
}

/* Boutons d'action pleins dans le même vert que les options actives. */
.action-button,
.icon-button {
  background: var(--da-accent);
}

.action-button:hover,
.icon-button:hover {
  background: var(--da-green);
}

.secondary-action {
  color: var(--da-green);
  background: var(--da-pill-bg);
}

.secondary-action:hover {
  background: var(--da-pill-bg-hover);
}

.legend-item {
  border-color: rgba(40, 61, 59, 0.12);
  border-radius: 999px;
  padding: 5px 12px;
}

.chart-export-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--da-pill-bg);
}

.chart-export-button:hover {
  background: var(--da-pill-bg-hover);
}

/* Encarts internes aux graphiques (choix des candidats, période personnalisée) :
   cartes arrondies sans filet sur un voile vert, champs clairs à l'intérieur. */
.filters-card,
.time-range-editor {
  border: 0;
  border-radius: 20px;
  background: rgba(46, 107, 98, 0.06);
}

.filters-card {
  padding: 20px 22px 22px;
}

.filters-card .control select {
  background-color: var(--panel);
}

.filters-card .control select:hover {
  background-color: #ffffff;
}

/* Avertissement de scénarios : encart doux arrondi plutôt qu'un cadre rouge. */
.scenario-notice {
  border: 0;
  border-radius: 14px;
  background: rgba(196, 69, 54, 0.08);
  color: #8a3a2e;
  padding: 13px 18px;
}

/* Frise de période personnalisée */
.time-range-editor output {
  color: var(--da-accent);
}

.time-range-overview {
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(46, 107, 98, 0.10);
}

.time-range-density span {
  border-radius: 2px 2px 0 0;
  background: rgba(46, 107, 98, 0.18);
}

.time-range-selection {
  background: rgba(46, 107, 98, 0.14);
}

.time-range-selection::before,
.time-range-selection::after {
  background: var(--da-accent);
}

.time-range-overview input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 32px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--da-accent);
  box-shadow: 0 2px 8px rgba(40, 61, 59, 0.22);
}

.time-range-overview input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 32px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: var(--da-accent);
  box-shadow: 0 2px 8px rgba(40, 61, 59, 0.22);
}

.time-range-overview input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 3px solid rgba(46, 107, 98, 0.3);
}

/* Cases à cocher et liens dans la couleur d'accent */
input[type="checkbox"] {
  accent-color: var(--da-accent);
}

.polls-source-link {
  color: var(--da-accent);
}

/* Tableau des sondages : zone de défilement arrondie, en-tête teinté sans
   double filet, séparations légères entre sondages. */
.polls-table-wrap {
  margin: 22px 20px 20px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(46, 107, 98, 0.10);
}

.polls-table thead th {
  border-bottom: 1px solid rgba(46, 107, 98, 0.16);
  background: #edf3f0;
  color: var(--da-green);
}

.polls-table th,
.polls-table td {
  border-bottom-color: rgba(40, 61, 59, 0.07);
}

.polls-table tbody tr.polls-poll-start td {
  border-top-color: rgba(46, 107, 98, 0.16);
}

.polls-table tbody tr:hover td {
  background-image: linear-gradient(rgba(46, 107, 98, 0.05), rgba(46, 107, 98, 0.05));
}

/* Bloc « Qui se qualifierait aujourd'hui ? » et fourchettes de score. */

/* Bouton « Candidats · N » : pilule avec le même chevron que « Choisir », à la
   place du triangle natif de <details>. */
.nowcast-candidate-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px;
  list-style: none;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}

.nowcast-candidate-picker summary::-webkit-details-marker {
  display: none;
}

.nowcast-candidate-picker summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.nowcast-candidate-picker[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

/* Menu déroulant : carte arrondie flottante, options en pilules au survol. */
.nowcast-candidate-menu {
  top: calc(100% + 8px);
  padding: 14px;
  border: 0;
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(46, 107, 98, 0.10), 0 16px 36px rgba(40, 61, 59, 0.16);
}

.nowcast-candidate-menu p {
  margin: 2px 6px 8px;
}

.nowcast-candidate-option {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
}

.nowcast-candidate-option:hover {
  background: var(--da-pill-bg);
}

.nowcast-candidate-reset {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 10px 0 0;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--da-pill-bg);
  color: var(--da-green);
  font-weight: 600;
  text-decoration: none;
}

.nowcast-candidate-reset:hover {
  background: var(--da-pill-bg-hover);
}

/* Titres de colonne : vrais sous-titres en Poppins, dans la couleur des titres,
   au lieu de petites capitales grises espacées. */
.nowcast-overview-title {
  margin: 0 0 6px;
  color: var(--da-accent);
  font-family: var(--da-heading-font);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-transform: none;
}

/* La note du graphique d'évolution suit la largeur du graphique : limitée à
   46 caractères, elle s'étirait sur cinq lignes. */
.nowcast-overview-column.is-history .nowcast-overview-note {
  max-width: none;
}

/* Noms : SemiBold plutôt qu'ExtraBold, pastille ronde comme dans la légende. */
.nowcast-candidate {
  font-weight: 600;
}

.nowcast-candidate::before {
  border-radius: 50%;
}

/* Liste et graphique : cartes arrondies sans filet, sur fond clair. */
.nowcast-overview-list,
.nowcast-history-chart-wrap,
.nowcast-overview-chart-wrap {
  border: 0;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(46, 107, 98, 0.12);
}

.nowcast-overview-list {
  padding: 6px;
}

.nowcast-overview-row {
  padding: 9px 12px;
  border-radius: 12px;
}

.nowcast-overview-row + .nowcast-overview-row {
  border-top-color: rgba(46, 107, 98, 0.10);
}

.nowcast-history-chart-wrap,
.nowcast-overview-chart-wrap {
  padding: 10px 12px;
}

.nowcast-overview-gauge {
  background: rgba(46, 107, 98, 0.12);
}

.nowcast-grid-line {
  stroke: rgba(46, 107, 98, 0.14);
}

/* Séparateurs et note de méthode : filets légers, chevron au lieu du triangle. */
.nowcast-interpretation,
.nowcast-method-note {
  border-top-color: rgba(46, 107, 98, 0.12);
}

.nowcast-method-note summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  color: var(--da-green);
  font-weight: 600;
}

.nowcast-method-note summary::-webkit-details-marker {
  display: none;
}

.nowcast-method-note summary::after {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.nowcast-method-note[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.nowcast-method-note a {
  color: var(--da-accent);
}

.nowcast-violin-hit:focus-visible {
  outline-color: var(--da-accent);
}

/* Fenêtre « Modifier les séries » : carte arrondie flottante sur un fond
   assombri et flouté, sans le cadre carré épais. Elle passe au-dessus de la
   barre de choix collante (z-index 40), qui masquait sinon son titre. */
.comparison-modal {
  z-index: 60;
}

.comparison-modal-backdrop {
  background: rgba(40, 61, 59, 0.36);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.comparison-modal-card {
  border: 0;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(40, 61, 59, 0.28);
}

/* Fermer : pilule claire, l'action principale reste « Terminer ». */
.comparison-modal-head .icon-button {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  flex: 0 0 40px;
  background: var(--da-pill-bg);
  color: var(--da-green);
}

.comparison-modal-head .icon-button:hover {
  background: var(--da-pill-bg-hover);
}

.comparison-row {
  border-bottom-color: rgba(46, 107, 98, 0.10);
}

/* Supprimer une courbe : rouge doux lisible (et non rouge sur vert), à la
   hauteur des menus pour s'aligner sur leur ligne. Le thème avait appliqué le
   vert des boutons d'action à ce bouton aussi. */
.danger-icon-button {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border: 0;
  background: rgba(196, 69, 54, 0.10);
  color: #b23a2c;
}

.danger-icon-button:hover {
  background: #c44536;
  color: #ffffff;
}

.danger-icon-button:focus-visible {
  outline: 2px solid #c44536;
  outline-offset: 2px;
}

.comparison-row .control select {
  min-height: 42px;
}

.comparison-swatch {
  margin-bottom: 14.5px;
}

.control select:focus {
  outline-color: rgba(46, 107, 98, 0.35);
}

/* Page « Toutes les hypothèses » (scenarios.html) : mêmes cartes, titres et
   couleurs que l'accueil. */
/* Retour aux sondages : pilule claire avec chevron, comme les autres boutons. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin-bottom: 18px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--da-pill-bg);
  color: var(--da-green);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  background: var(--da-pill-bg-hover);
  color: var(--da-green);
}

.back-link-chevron {
  width: 7px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(2px) rotate(45deg);
}

/* Intro simplifiée : titre, une phrase, une ligne de contexte. */
.scenarios-intro {
  margin-bottom: 28px;
}

.scenarios-intro-text {
  max-width: 70ch;
  margin-top: 10px;
  color: #3f5c59;
  font-size: 1.02rem;
  line-height: 1.5;
}

.scenarios-intro-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Variante d'un nom partagé par plusieurs hypothèses. */
.scenario-block-variant {
  color: var(--muted);
  font-size: 0.86em;
  font-weight: 500;
}

.scenario-block {
  border: 1px solid rgba(46, 107, 98, 0.10);
  border-radius: var(--da-radius);
  box-shadow: 0 1px 2px rgba(40, 61, 59, 0.05), 0 10px 28px rgba(40, 61, 59, 0.07);
  padding: 26px 28px 28px;
}

.scenario-block-head h3 {
  color: var(--da-accent);
  font-family: var(--da-heading-font);
  font-weight: 800;
  letter-spacing: -0.005em;
}

.scenario-block-warning {
  border-radius: 14px;
  background: rgba(46, 107, 98, 0.07);
  padding: 11px 16px;
}

.nowcast-scenario-candidate {
  border-color: rgba(40, 61, 59, 0.12);
  border-radius: 999px;
}

.scenario-block-list,
.scenario-chart-wrap {
  border: 0;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(46, 107, 98, 0.12);
}

.scenario-block-list {
  padding: 6px;
}

.scenario-candidate-row {
  padding: 9px 12px;
}

.scenario-candidate-row + .scenario-candidate-row {
  border-top-color: rgba(46, 107, 98, 0.10);
}

.scenario-chart-wrap {
  padding: 10px 12px;
}

/* Même sous-titre que « Évolution de l'indice » sur l'accueil. */
.scenario-block-chart h4 {
  margin: 0 0 8px;
  color: var(--da-accent);
  font-family: var(--da-heading-font);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-transform: none;
}

/* Infobulles de survol : petite carte arrondie flottante, comme les menus. */
.tooltip {
  border: 0;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.96);
  padding: 10px 14px;
  box-shadow: 0 0 0 1px rgba(46, 107, 98, 0.12), 0 12px 28px rgba(40, 61, 59, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tooltip strong {
  margin-bottom: 4px;
  color: var(--da-green);
  font-weight: 600;
}

.tooltip span {
  font-size: 0.78rem;
}

.hover-dot {
  stroke-width: 3;
}

/* Mosaïque des duels récents : vignettes arrondies sans filet sur un voile
   vert, sélection marquée par un contour vert, axes et seuil dans la palette. */
.duel-tile {
  border: 0;
  border-radius: 18px;
  background: rgba(46, 107, 98, 0.06);
  padding: 14px 16px 12px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.duel-tile:hover {
  border-color: transparent;
  background: rgba(46, 107, 98, 0.11);
}

.duel-tile.is-selected {
  border: 0;
  background: var(--panel);
  box-shadow: inset 0 0 0 2px var(--da-accent), 0 8px 22px rgba(40, 61, 59, 0.10);
}

.duel-tile.is-selected .duel-tile-chart {
  border-radius: 12px;
  background: rgba(46, 107, 98, 0.05);
  box-shadow: none;
}

.duel-tile:focus-visible {
  outline: 2px solid var(--da-accent);
  outline-offset: 3px;
}

.duel-tile-side.is-leading {
  color: var(--da-green);
  font-weight: 600;
}

.duel-tile-axis {
  stroke: rgba(46, 107, 98, 0.18);
}

.duel-tile-threshold {
  stroke: var(--da-accent);
  opacity: 0.45;
}

/* Mobile : barre compacte centrée, même marge de 5 px tout autour, et deux
   pilules de même hauteur aux largeurs équilibrées. Les écarts passent par
   des marges explicites (gap 0) pour qu'un logo replié ne laisse aucun vide. */
@media (max-width: 860px) {
  .round-modebar {
    top: 8px;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 24px;
    padding: 5px;
  }

  .round-modebar .round-control label,
  .round-modebar .election-control label {
    display: none;
  }

  .round-modebar .election-control {
    padding-left: 0;
  }

  .round-modebar .election-control select {
    width: 88px;
    min-height: 40px;
    padding-left: 16px;
  }

  .round-modebar .round-control {
    flex: none;
    margin-left: 5px;
    padding-left: 0;
    border-left: 0;
  }

  .round-modebar .round-switch {
    width: 164px;
    min-height: 40px;
    padding: 3px;
  }

  /* Le thème est chargé après styles.css : il rétablit ici les marges serrées
     que ses propres règles de bureau écraseraient sur mobile. */
  .filters-card {
    padding: 16px;
  }

  .polls-table-wrap {
    margin: 18px 12px 12px;
  }

  /* Poppins est plus large : un libellé long sur une seule ligne (« Explorer
     les sondages du second tour ») faisait déborder la page horizontalement. */
  .action-button {
    max-width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    line-height: 1.25;
    white-space: normal;
  }

  .second-round-cta .action-button {
    width: 100%;
  }

  /* styles.css empile l'en-tête de la fenêtre de séries sur mobile : le bouton
     Fermer tombait sous le titre. Il reste à droite du titre. */
  .comparison-modal-head {
    display: flex;
  }

  /* Seul le logo s'ajoute à la barre sur mobile. */
  .round-modebar .modebar-brand {
    margin: 0;
  }

  .round-modebar .modebar-brand span {
    display: none;
  }

  .round-modebar.is-condensed .modebar-brand {
    max-width: 58px;
    margin-right: 5px;
    padding: 0 6px 0 10px;
  }
}
