/* POL-103 — couche « application » : rendu plus vivant et navigation mobile
   type app (barre d'onglets en bas). Chargée en dernier : surcharge seulement
   la présentation, jamais le contenu ni l'ordre des partis (neutralité inchangée).
   Couleurs : uniquement les tokens de tokens.css. */

:root {
  --pol-grad-hero: linear-gradient(160deg, #0B3D91 0%, #2563EB 55%, #7C3AED 120%);
  --pol-bg-app: #F4F6FB;
  --tabbar-h: 64px;
}

body { background: var(--pol-bg-app); -webkit-tap-highlight-color: transparent; }
main { background: transparent; }

/* ---------- En-tête ---------- */
.pol-nav { background: rgba(255,255,255,.88); box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(15,23,42,.04); }
.pol-nav__inner { min-height: 64px; }
.pol-nav__brand img { width: 40px; height: 40px; }
.pol-nav__brand-name { font-weight: 800; letter-spacing: -.01em; }
.pol-nav__ico { display: none; }
.pol-nav__link { border-radius: var(--radius-pill); }

/* ---------- Hero ---------- */
.pol-hero {
  background: var(--pol-grad-hero); color: #fff;
  padding-block: var(--space-6) var(--space-7);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative; overflow: hidden;
}
.pol-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); pointer-events: none;
}
.pol-hero .pol-container { position: relative; z-index: 1; }
.pol-hero__kicker { color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.pol-hero__tagline { color: #fff; max-width: 24ch; }
.pol-hero__lede { color: rgba(255,255,255,.9); }
.pol-hero .pol-portes__note, .pol-hero__stats { color: rgba(255,255,255,.85); }
.pol-hero__stats { border-top-color: rgba(255,255,255,.25); }
.pol-hero__stats a, .pol-hero .pol-hero__nouveau { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Recherche : barre unique, façon app */
.pol-hero .pol-hero__recherche { background: #fff; border-radius: var(--radius-pill); padding: .35rem .35rem .35rem 1.1rem; gap: 0; flex-wrap: nowrap; align-items: center; box-shadow: var(--shadow-md); }
.pol-hero .pol-hero__recherche .pol-recherche__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pol-hero .pol-hero__recherche .pol-recherche__champ { border: 0; background: transparent; padding: .7rem .4rem; outline: none; flex: 1 1 auto; font-size: 1rem; }
.pol-hero .pol-hero__recherche .pol-btn { width: auto; min-height: 44px; padding-inline: 1.2rem; flex: 0 0 auto; }
.pol-hero__exemples { color: rgba(255,255,255,.85); }
.pol-hero .pol-chip { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; backdrop-filter: blur(4px); }
.pol-hero .pol-chip:hover { background: rgba(255,255,255,.28); }
.pol-hero .pol-btn--secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }

/* Deux portes : tuiles colorées côte à côte */
.pol-portes { gap: var(--space-3); margin-bottom: var(--space-4); }
.pol-porte { border: 0 !important; border-radius: var(--radius-md); box-shadow: var(--shadow-md); background: #fff; position: relative; overflow: hidden; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.pol-porte:active { transform: scale(.98); }
.pol-porte--consulter { background: #fff; }
.pol-porte--decouvrir { background: linear-gradient(145deg, #f5f0ff, #e9ddff); }
.pol-porte__icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--pol-navy) 10%, white); font-size: 1.7rem; }
.pol-porte--decouvrir .pol-porte__icone { background: color-mix(in srgb, var(--pol-violet) 16%, white); }
.pol-porte__action { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Sections en cartes ---------- */
.pol-partis, .pol-atlas { padding-block: var(--space-5) var(--space-5); }
.pol-atlas__title { font-weight: 800; letter-spacing: -.01em; }
.pol-partis__duel { background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.pol-partis__duel select { min-height: 48px; border-radius: var(--radius-sm); }

/* Thèmes : tuiles plus vives, 2 colonnes même sur mobile */
.pol-theme { box-shadow: var(--shadow-sm); border-radius: var(--radius-md); }
.pol-theme:active { transform: scale(.98); }
.pol-theme__affordance { opacity: 1; transform: none; }
.pol-theme--hero::after { background: linear-gradient(180deg, rgba(15,23,42,.05) 20%, rgba(15,23,42,.8) 100%); }
.pol-theme:not(.pol-theme--hero)::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 5px; background: var(--pol-accent, var(--pol-navy));
}

/* Partis : carte-puce avec logo, 2 colonnes */
.pol-partis__carte { box-shadow: var(--shadow-sm); border: 0; transition: transform var(--duration) var(--ease); }
.pol-partis__carte:active { transform: scale(.98); }
.pol-partis__carte img { width: 40px; height: 40px; border: 1px solid var(--border); padding: 3px; }

/* Cartes génériques des autres pages */
.pol-comp__bref, .pol-comp__constats, .pol-duel__carte { box-shadow: var(--shadow-sm); border-radius: var(--radius-md); }
.pol-comp__territoire { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-1) var(--space-4); margin-bottom: var(--space-3); }

/* Pied de page */
.pol-footer { margin-top: var(--space-6); }

/* ---------- Mobile : barre d'onglets en bas ---------- */
@media (max-width: 720px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); font-size: 1.02rem; }

  .pol-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .pol-nav__inner { flex-wrap: nowrap; min-height: 56px; padding-block: 0; }
  .pol-nav__brand { display: flex !important; }
  .pol-nav__brand-name { display: inline !important; font-size: 1.15rem; }
  .pol-nav__brand img { width: 34px; height: 34px; }

  .pol-nav__links {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; width: auto; margin: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 .25rem env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; flex-wrap: nowrap;
    background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(15,23,42,.08);
  }
  .pol-nav__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: .3rem 0; border-radius: 12px; font-size: .68rem; font-weight: 700; color: var(--muted); background: none; min-width: 0; }
  .pol-nav__link:hover { background: none; color: var(--muted); }
  .pol-nav__ico { display: block; font-size: 1.35rem; line-height: 1; }
  .pol-nav__link[aria-current="page"] { color: var(--pol-navy); background: color-mix(in srgb, var(--pol-navy) 8%, white); }
  .pol-nav__link--secondaire { display: none; }

  /* Hero plus compact : la recherche remonte */
  .pol-hero { padding-block: var(--space-5) var(--space-6); }
  .pol-hero__tagline { font-size: 1.55rem; }
  .pol-hero__lede { margin-bottom: var(--space-4); font-size: .95rem; }
  .pol-hero .pol-container { display: flex; flex-direction: column; }
  .pol-hero__kicker { order: 0; } .pol-hero__tagline { order: 1; } .pol-hero__lede { order: 2; }
  .pol-hero .pol-hero__recherche { order: 3; margin: 0 0 var(--space-2); }
  .pol-hero .pol-hero__exemples { order: 4; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -.6rem var(--space-4); padding: 0 .6rem; }
  .pol-hero .pol-hero__exemples::-webkit-scrollbar { display: none; }
  .pol-hero .pol-hero__exemples span { display: none; }
  .pol-hero .pol-hero__exemples .pol-chip { flex: 0 0 auto; }
  .pol-hero .pol-portes { order: 5; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-3); }
  .pol-hero .pol-portes__note { order: 6; display: none; }
  .pol-hero__ctas { order: 7; flex-direction: row; }
  .pol-hero__ctas .pol-btn { width: auto; flex: 1 1 0; min-height: 44px; font-size: .88rem; padding-inline: .6rem; }
  .pol-hero__stats { order: 8; margin-top: var(--space-4); }
  .pol-porte { padding: var(--space-3) !important; gap: var(--space-1); }
  .pol-porte__icone { width: 42px; height: 42px; font-size: 1.4rem; border-radius: 13px; }
  .pol-porte__titre { font-size: 1.15rem; }
  .pol-porte__texte { font-size: .78rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pol-porte__action { font-size: .85rem; }

  .pol-hero .pol-hero__recherche .pol-btn { width: auto; }
  .pol-btn { width: auto; }
  .pol-partis__duel .pol-btn, .pol-partis__duel select, .pol-partis__duel label { width: 100%; min-width: 0; }

  /* Thèmes en 2 colonnes, tuiles homogènes */
  .pol-atlas__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .pol-theme, .pol-theme--large, .pol-theme--haute { min-height: 128px; padding: var(--space-3); grid-column: auto; grid-row: auto; }
  .pol-theme__label, .pol-theme--large .pol-theme__label, .pol-theme--haute .pol-theme__label { font-size: .95rem; }
  .pol-theme__affordance { display: none; }
  .pol-theme:not(.pol-theme--large):not(.pol-theme--haute):nth-child(3n+2) { margin-block-start: 0; }

  /* Partis en 2 colonnes compactes */
  .pol-partis__liste { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .pol-partis__carte { padding: var(--space-2) var(--space-3); font-size: .85rem; gap: var(--space-2); }
  .pol-partis__carte img { width: 34px; height: 34px; }

  .pol-atlas__title { font-size: 1.35rem; }
  .pol-atlas__lede { font-size: .92rem; }
}

@media (max-width: 720px) {
  .pol-comp .pol-comp__sommaire { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.6rem; padding: 0 .6rem .25rem; }
  .pol-comp__sommaire::-webkit-scrollbar { display: none; }
  .pol-comp__sommaire .pol-chip { flex: 0 0 auto; background: #fff; box-shadow: var(--shadow-sm); }
  .pol-comp__titre { letter-spacing: -.02em; }
  .pol-comp__fil { color: var(--pol-red); font-weight: 700; }
}
/* ---------- Pages intérieures : entête, citations, listes en cartes ---------- */
.pol-comp__comparer .pol-btn { background: var(--pol-navy); color: #fff; box-shadow: var(--shadow-sm); }
.pol-comp__titre { color: var(--pol-navy); }
.pol-comp__fil { color: var(--pol-red); font-weight: 700; }
.pol-comp__sujet, .pol-comp__citation { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.pol-comp__sujet { border-left: 4px solid var(--pol-blue); padding: var(--space-3) var(--space-4); }
.pol-comp__parti { background: #fff; border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-4); }
.pol-recherche__champ { min-height: 48px; border-radius: var(--radius-pill); padding-inline: 1.1rem; box-shadow: var(--shadow-sm); }
.pol-portal__porte, .pol-sujet-lien { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 0; margin-bottom: var(--space-2); }
.pol-comp__territoire > summary { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.pol-partis__duel, .pol-comp__absents { border-radius: var(--radius-md); }

@media (max-width: 720px) {
  .pol-comp, .pol-methode { padding-top: var(--space-4); }
  .pol-comp__bref { font-size: .95rem; }
  .pol-comp__parti { padding: var(--space-3); }
  .pol-recherche .pol-btn { width: 100%; }
  .pol-comp__comparer .pol-btn { width: 100%; }
  .pol-comp__citation { margin-left: 0; padding: var(--space-3); }
}

/* Tableau « qui a des propositions sur quoi » : une carte par territoire sur mobile */
@media (max-width: 720px) {
  .pol-pilier__tableau { overflow: visible; }
  .pol-pilier__tableau table { min-width: 0; display: block; }
  .pol-pilier__tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  main .pol-pilier__tableau table, main .pol-pilier__tableau tbody, main .pol-pilier__tableau tr, main .pol-pilier__tableau td, main .pol-pilier__tableau th[scope="row"] { width: 100%; max-width: 100%; min-width: 0; }
  .pol-pilier__tableau td { box-sizing: border-box; }
  .pol-pilier__tableau tbody { display: grid; gap: var(--space-3); }
  .pol-pilier__tableau tr { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
  .pol-pilier__tableau th[scope="row"] { grid-column: 1 / -1; min-width: 0; padding: var(--space-3) var(--space-4); background: color-mix(in srgb, var(--pol-navy) 8%, white); border-bottom: 0; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
  .pol-pilier__tableau td { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: .55rem var(--space-4); border-bottom: 1px solid var(--border); font-size: .85rem; text-align: right; }
  .pol-pilier__tableau td::before { content: attr(data-label); text-align: left; color: var(--muted); font-weight: 600; }
  .pol-pilier__tableau td a, .pol-pilier__tableau td > span { font-weight: 800; }
}
@media (prefers-reduced-motion: reduce) { .pol-porte, .pol-theme, .pol-partis__carte { transition: none; } }

/* ---------- Textes longs repliés (POL-103) : extrait exact cliquable ---------- */
.pol-repli { margin: 0; }
.pol-repli > summary { list-style: none; cursor: pointer; display: block; position: relative; padding-right: 0; }
.pol-repli > summary::-webkit-details-marker { display: none; }
.pol-repli__debut { font-weight: 600; color: var(--pol-navy); }
.pol-repli__plus { display: inline-flex; align-items: center; gap: .25rem; margin-left: .4rem; padding: .15rem .6rem; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--pol-blue) 12%, white); color: var(--pol-blue); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pol-repli__plus::after { content: "▾"; }
.pol-repli[open] > summary .pol-repli__plus { margin: 0 0 .4rem; font-size: 0; }
.pol-repli[open] > summary .pol-repli__plus::before { content: "Réduire"; font-size: .78rem; }
.pol-repli[open] > summary .pol-repli__plus::after { content: "▴"; font-size: .78rem; }
.pol-repli[open] > summary .pol-repli__debut { display: none; }
.pol-repli__corps { color: var(--text); line-height: 1.55; animation: pol-reveal .3s var(--ease) both; }
@media (min-width: 721px) { .pol-repli__debut { font-weight: 500; } }

/* Bandeau de consentement (script commun serviceproi.fr/mesure/sp.js, .sp-consent) :
   sur mobile, il se pose AU-DESSUS de la barre d'onglets au lieu de la recouvrir.
   Réglage propre à Politicorama ; le script partagé n'est pas modifié. */
@media (max-width: 720px) {
  body .sp-consent {
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px) !important;
    left: 8px !important; right: 8px !important; max-width: none !important;
    padding: 12px 14px !important; font-size: 13px !important; line-height: 1.4 !important;
    max-height: calc(100vh - var(--tabbar-h) - 90px); overflow-y: auto;
  }
  body .sp-consent .sp-consent-titre { font-size: 14.5px !important; margin-bottom: 4px !important; }
  body .sp-consent p { margin-bottom: 10px !important; }
  body .sp-consent button { padding: 9px 10px !important; font-size: 14px !important; min-height: 44px; }
}

/* ================= POL-105 — plus de contraste, plus de couleur ================= */
:root {
  --text: #0F172A;            /* texte plus noir */
  --muted: #475569;           /* gris secondaire plus foncé (contraste AA) */
  --pol-bg-app: #EAF0FF;      /* fond teinté bleu, plus de blanc délavé */
  --pol-grad-hero: linear-gradient(155deg, #0A2F73 0%, #1D4ED8 50%, #7C3AED 105%);
}
body { color: var(--text); }
.pol-comp__lede, .pol-atlas__lede, .pol-hero__lede { color: var(--muted); }
.pol-hero__lede { color: #fff; }

/* Titres de section : pastille de couleur + graisse maximale */
.pol-atlas__title, .pol-comp__h2, .pol-pilier__section > h2 {
  position: relative; padding-left: 14px; color: #0A2F73; font-weight: 800;
}
.pol-atlas__title::before, .pol-comp__h2::before, .pol-pilier__section > h2::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 6px; border-radius: 6px;
  background: linear-gradient(180deg, var(--pol-red), var(--pol-orange));
}

/* Hero : bouton de recherche en accent chaud, chips plus lisibles */
.pol-hero .pol-hero__recherche .pol-btn { background: var(--pol-red); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.45); }
.pol-hero .pol-chip { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.55); font-weight: 600; }
.pol-hero .pol-btn--secondary { background: #fff; color: #0A2F73; border-color: #fff; font-weight: 700; }
.pol-porte--consulter { background: #fff; border-top: 5px solid var(--pol-blue) !important; }
.pol-porte--decouvrir { background: linear-gradient(145deg, #F3ECFF, #DCCBFF); border-top: 5px solid var(--pol-violet) !important; }
.pol-porte__titre { font-weight: 800; }

/* « Comparer deux partis » : bandeau plein, formulaire blanc posé dessus */
.pol-partis#comparer, #comparer.pol-partis {
  background: linear-gradient(160deg, #0A2F73, #1D4ED8); width: auto; max-width: none;
  margin: var(--space-5) 0; padding: var(--space-5) max(1rem, calc((100% - var(--container)) / 2));
}
#comparer .pol-atlas__title { color: #fff; }
#comparer .pol-atlas__title::before { background: #fff; }
#comparer .pol-atlas__lede { color: rgba(255,255,255,.92); }
#comparer .pol-partis__duel { background: #fff; border: 0; box-shadow: var(--shadow-md); }
#comparer .pol-btn--primary { background: var(--pol-red); }

/* Tuiles de thèmes : voile plus sombre, texte gras avec ombre, compteur en pastille */
.pol-theme--hero::after { background: linear-gradient(180deg, rgba(10,20,50,.15) 0%, rgba(10,20,50,.55) 45%, rgba(10,20,50,.92) 100%); }
.pol-theme__label { text-shadow: 0 1px 6px rgba(0,0,0,.7); font-weight: 800; }
.pol-theme__count { align-self: flex-start; padding: .12rem .55rem; border-radius: var(--radius-pill); background: var(--pol-accent, var(--pol-blue)); color: #fff !important; font-weight: 700; font-size: .75rem; text-shadow: none; }
.pol-theme--hero { color: #fff; }

/* Cartes de partis : liseré de couleur (cycle par position, jamais par parti) */
.pol-partis__liste li:nth-child(5n+1) .pol-partis__carte { border-left: 6px solid var(--pol-blue); }
.pol-partis__liste li:nth-child(5n+2) .pol-partis__carte { border-left: 6px solid var(--pol-red); }
.pol-partis__liste li:nth-child(5n+3) .pol-partis__carte { border-left: 6px solid var(--pol-teal); }
.pol-partis__liste li:nth-child(5n+4) .pol-partis__carte { border-left: 6px solid var(--pol-orange); }
.pol-partis__liste li:nth-child(5n+5) .pol-partis__carte { border-left: 6px solid var(--pol-violet); }
.pol-partis__carte { color: #0A2F73; font-weight: 800; }
.pol-partis__carte:hover { background: #F1F6FF; }

/* Pages intérieures : « En bref » teinté, cartes à liseré, boutons francs */
.pol-comp__bref { background: #fff; border: 0; border-left: 6px solid var(--pol-blue); box-shadow: var(--shadow-md); }
.pol-comp__bref strong { color: #0A2F73; }
.pol-comp__constats { background: #fff; border: 0; border-top: 6px solid var(--pol-violet); box-shadow: var(--shadow-md); }
.pol-comp__constats h2 { color: #0A2F73; }
.pol-comp__constats-type--commun { color: var(--pol-green) !important; font-weight: 800; }
.pol-comp__constats-type--difference { color: var(--pol-orange) !important; font-weight: 800; }
.pol-comp__constats-type { font-weight: 800; }
.pol-comp__parti { border-top: 6px solid var(--pol-blue); }
.pol-comp__parti:nth-of-type(3n+2) { border-top-color: var(--pol-red); }
.pol-comp__parti:nth-of-type(3n+3) { border-top-color: var(--pol-teal); }
.pol-comp__sujet { border-left-color: var(--pol-red); }
.pol-comp__territoire > summary { color: #0A2F73; }
.pol-comp__fil { color: var(--pol-red); font-weight: 800; letter-spacing: .06em; font-size: .76rem; padding-left: 10px; border-left: 4px solid var(--pol-red); }
.pol-comp__titre { color: #0A2F73; font-weight: 800; }
.pol-comp__titre span { color: var(--text); }
.pol-repli__debut { color: #0A2F73; font-weight: 700; }
.pol-repli__plus { background: var(--pol-blue); color: #fff; }
.pol-chip { background: #fff; color: #0A2F73; border-color: #C7D6F5; font-weight: 600; }
.pol-comp__source, .pol-comp__source-ligne, .pol-comp__citation .pol-comp__source { color: var(--muted); }
.pol-btn--primary, .pol-comp__comparer .pol-btn { background: #0A2F73; }
.pol-pilier__tableau th[scope="row"] { color: #0A2F73; }

@media (max-width: 720px) {
  .pol-pilier__tableau th[scope="row"] { background: linear-gradient(90deg, #0A2F73, #1D4ED8) !important; color: #fff; }
  .pol-pilier__tableau th[scope="row"] a, .pol-pilier__tableau th[scope="row"] .pol-comp__discret { color: #fff; }
  main .pol-pilier__tableau td.num a { background: var(--pol-blue); color: #fff; }
  main .pol-pilier__tableau td.num span { background: #E2E8F0; color: #334155; display: inline-block; min-width: 2rem; text-align: center; padding: .15rem .4rem; border-radius: var(--radius-sm); }
  .pol-atlas__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pol-nav__link[aria-current="page"] { color: var(--pol-blue); background: #E3ECFF; }
  .pol-nav__link { color: #334155; }
}

/* ================= POL-106 — pages parti, duel, Découvrir, Méthode ================= */
/* Extraits repliés : moins lourds */
.pol-repli__debut { font-weight: 600; color: var(--text); }

/* Découvrir : « En chiffres » en tuiles pleines, entrées en cartes à bandeau */
.pol-chiffres__cles li { border: 0; color: #fff; box-shadow: var(--shadow-sm); }
.pol-chiffres__cles li strong { color: #fff; }
.pol-chiffres__cles li:nth-child(1) { background: linear-gradient(145deg, #0A2F73, #2563EB); }
.pol-chiffres__cles li:nth-child(2) { background: linear-gradient(145deg, #6D28D9, #A78BFA); }
.pol-chiffres__cles li:nth-child(3) { background: linear-gradient(145deg, #DC2626, #F97316); }
.pol-chiffres__cles li:nth-child(4) { background: linear-gradient(145deg, #0F766E, #14B8A6); }
.pol-chiffres__sous { color: #0A2F73; }
.pol-chiffres__ligne { box-shadow: var(--shadow-sm); border: 0; }
.pol-entree, a.pol-entree { background: #fff; box-shadow: var(--shadow-md); border-width: 0; border-top: 6px solid var(--pol-violet); }
.pol-entree:nth-of-type(2n) { border-top-color: var(--pol-red); }
.pol-entree:nth-of-type(3n) { border-top-color: var(--pol-teal); }

/* Page parti : territoires dépliables avec bandeau de couleur (cycle par position) */
.pol-comp__territoire { border-left: 6px solid var(--pol-blue); box-shadow: var(--shadow-sm); }
.pol-comp__territoire:nth-of-type(5n+2) { border-left-color: var(--pol-red); }
.pol-comp__territoire:nth-of-type(5n+3) { border-left-color: var(--pol-teal); }
.pol-comp__territoire:nth-of-type(5n+4) { border-left-color: var(--pol-orange); }
.pol-comp__territoire:nth-of-type(5n+5) { border-left-color: var(--pol-violet); }
.pol-comp__territoire > summary span { color: var(--muted); font-weight: 600; }

/* Méthode : règles en cartes numérotées */
.pol-methode ol { counter-reset: regle; list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.pol-methode ol > li { counter-increment: regle; position: relative; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-3) var(--space-4) var(--space-3) 3.4rem; margin: 0; }
.pol-methode ol > li::before { content: counter(regle); position: absolute; left: .8rem; top: .8rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--pol-blue); color: #fff; font-weight: 800; }
.pol-methode h2 { color: #0A2F73; }

/* Tableaux de documents (Méthode, Comparatif) : une carte par document sur mobile */
@media (max-width: 720px) {
  main .pol-table-cartes, main .pol-table-cartes tbody { display: block; width: 100%; min-width: 0; }
  main .pol-table-cartes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  main .pol-table-cartes tbody { display: grid; gap: var(--space-3); }
  main .pol-table-cartes tr { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; border-top: 5px solid var(--pol-blue); }
  main .pol-table-cartes td { display: flex; justify-content: space-between; gap: var(--space-3); padding: .5rem var(--space-4); border-bottom: 1px solid var(--border); text-align: right; font-size: .88rem; min-width: 0; overflow-wrap: anywhere; }
  main .pol-table-cartes td::before { content: attr(data-label); flex: 0 0 auto; text-align: left; color: var(--muted); font-weight: 700; }
  main .pol-table-cartes td[data-label="Parti"] { background: #EAF0FF; color: #0A2F73; font-weight: 800; font-size: 1rem; }
  main .pol-table-cartes td[data-label="Parti"]::before { display: none; }
  main .pol-methode__table, main .pol-methode__table { overflow: visible; }
}
.pol-chiffres__cles li, .pol-chiffres__cles li * { color: #fff !important; }
@media (max-width: 720px) {
  main .pol-table-cartes td[data-label="Lecture"] { display: block; text-align: left; }
  main .pol-table-cartes td[data-label="Lecture"]::before { display: block; margin-bottom: 2px; }
}

/* ================= POL-107 — pages secondaires ================= */
/* Contact : champs jamais plus larges que l'écran */
.pol-contact select, .pol-contact input, .pol-contact textarea, .pol-contact .pol-recherche__champ { width: 100%; max-width: 100%; box-sizing: border-box; }
.pol-contact label { font-weight: 700; color: #0A2F73; }
.pol-contact textarea { border-radius: var(--radius-md); }

/* Données ouvertes : fichiers à télécharger en cartes */
ul:has(> li > a[href^="/jeu-de-donnees/"]) { padding: 0; }
li:has(> a[href^="/jeu-de-donnees/"]) { list-style: none; margin: 0 0 var(--space-2); padding: var(--space-3) var(--space-4); background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border-left: 6px solid var(--pol-teal); }
li > a[href^="/jeu-de-donnees/"] { font-weight: 800; display: inline-block; word-break: break-word; }

/* Corrections et historique : une carte par entrée, détail à déplier */
.pol-histo { margin: 0 0 var(--space-3) !important; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border-left: 6px solid var(--pol-orange); padding: var(--space-3) var(--space-4); }
.pol-histo:nth-child(3n+2) { border-left-color: var(--pol-blue); }
.pol-histo:nth-child(3n+3) { border-left-color: var(--pol-teal); }
.pol-histo__meta, .pol-histo__titre { display: block; }
.pol-histo__meta { color: var(--muted); font-size: .85rem; }
.pol-histo__titre { color: #0A2F73; font-weight: 800; font-size: 1.05rem; line-height: 1.3; margin: .15rem 0 .4rem; }
.pol-histo__entete, .pol-histo__texte { margin: 0; }
.pol-histo__repli > summary { display: block; }

/* POL-108 — page duel : constats en cartes compactes (liseré vert = point commun, orange = différence) */
main .pol-comp__constats-liste { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: .6rem; }
main .pol-comp__constats-liste > li { margin: 0; padding: .7rem .85rem; background: #F4F7FF; border-radius: var(--radius-md); border-left: 4px solid var(--pol-green); font-size: .95rem; line-height: 1.45; }
main .pol-comp__constats-type--difference + .pol-comp__constats-liste > li { border-left-color: var(--pol-orange); background: #FFF8F0; }
main .pol-comp__constats-liste .pol-repli__debut { font-weight: 600; color: #0A2F73; }
main .pol-comp__constats-liste .pol-repli__plus { margin-left: .3rem; padding: .1rem .55rem; font-size: .74rem; }
main .pol-comp__constats-liste .pol-comp__constats-sources { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); }
main .pol-comp__constats-type { margin: var(--space-4) 0 .6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
