/* La feuille du Nouveau-Brunswick, posée PAR-DESSUS commun/dq.css.
 *
 * dq.css est la copie conforme de DossierQuébec et ne se modifie jamais ici : un correctif de
 * DQ se recopie tel quel. Ce fichier ne fait que redéfinir ce que le design du N.-B. montre
 * (cahier du 7 nov. 2026, design-dossiernbrunswick.zip) : la palette du drapeau, les polices
 * Barlow, des filets fins et des ombres douces au lieu des traits noirs et des ombres dures,
 * l'affiche tricolore de l'accueil et le filet tricolore du pied. Tout ce qu'il ne redéfinit
 * pas reste celui de DQ.
 *
 * Quatre blocs, dans cet ordre :
 *   1. les polices (Barlow prend la place d'Archivo, sans toucher aux règles de dq.css) ;
 *   2. la palette, en clair et en sombre ;
 *   3. les FILETS, générés par scripts/nb-filets.js à partir de dq.css ;
 *   4. les pièces que le design redessine (en-tête, affiche, cartes, pied).
 */

/* ---------- 1. LES POLICES ----------
   dq.css nomme 'Archivo' et 'Archivo Narrow' dans plus de deux cents règles. Plutôt que de
   les réécrire, on donne ces deux noms aux fichiers Barlow : chaque règle de DQ tombe alors
   sur la police du N.-B., y compris celles qu'un futur correctif ajoutera. Le gabarit ne
   charge plus Archivo chez Google, sinon les deux définitions se disputeraient le nom.
   Fichiers servis par le site (commun/polices/), licence SIL Open Font License. */
@font-face{font-family:'Archivo'; font-weight:400; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-400.woff2) format('woff2');}
@font-face{font-family:'Archivo'; font-weight:500; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-500.woff2) format('woff2');}
@font-face{font-family:'Archivo'; font-weight:600; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-600.woff2) format('woff2');}
@font-face{font-family:'Archivo'; font-weight:700 900; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-700.woff2) format('woff2');}
@font-face{font-family:'Archivo Narrow'; font-weight:400 500; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-condensed-400.woff2) format('woff2');}
@font-face{font-family:'Archivo Narrow'; font-weight:600 900; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-condensed-600.woff2) format('woff2');}
/* 'Barlow' sous son propre nom : nb.css le nomme directement (surtitres, pied, bandeau d'état).
   Sans ces quatre lignes, ces textes tombaient sur la police du système. */
@font-face{font-family:'Barlow'; font-weight:400; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-400.woff2) format('woff2');}
@font-face{font-family:'Barlow'; font-weight:500; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-500.woff2) format('woff2');}
@font-face{font-family:'Barlow'; font-weight:600; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-600.woff2) format('woff2');}
@font-face{font-family:'Barlow'; font-weight:700 900; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-700.woff2) format('woff2');}
@font-face{font-family:'Barlow Condensed'; font-weight:400 500; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-condensed-400.woff2) format('woff2');}
@font-face{font-family:'Barlow Condensed'; font-weight:600 900; font-style:normal; font-display:swap; src:url(/commun/polices/barlow-condensed-600.woff2) format('woff2');}

/* ---------- 2. LA PALETTE ----------
   MANITOBA (Martin, 4 déc. 2026) : le design du N.-B., couleurs changées seulement. Chaque langue
   prend son drapeau. FRANÇAIS = le drapeau franco-manitobain (Cyril Parent, 1980) : fond blanc,
   vert #06622f pour la plante en « F », or #f7cd05 pour le blé, rouge #9b0010 pour la rivière
   Rouge. ANGLAIS (plus bas) = le drapeau du Manitoba : le rouge #c8102e du champ et le bleu
   #012169 de l'Union Jack. Les deux relevés dans les fichiers officiels de Wikimedia Commons,
   dans le domaine public.
   Les rôles ne changent pas : le jeton --nb-bleu PORTE (l'affiche, la marque), --nb-rouge SIGNALE,
   --nb-jaune APPELLE À L'ACTION. Ils gardent leurs noms de couleur du N.-B. ; ici le « bleu » est
   vert en français et rouge en anglais. Mêmes jetons que dq.css, nouvelles valeurs ;
   --nb-* pour ce que DQ n'a pas. */
:root{
  --nb-bleu:#06622f;        /* la plante du drapeau franco-manitobain */
  --nb-bleu-fonce:#044a24;
  --nb-bleu-nuit:#02331a;
  --nb-rouge:#9b0010;   /* la bande rouge du drapeau : la rivière Rouge */
  /* Le rouge quand il sert d’ENCRE (un lien, un chiffre, un filet) et non de fond plein : les
     deux usages ne peuvent pas partager un jeton, puisqu’en thème sombre l’encre doit
     s’éclaircir et le fond rester profond. */
  --nb-rouge-encre:var(--nb-rouge);
  /* Deux jetons que dq.css appelle sans que personne ne les définisse — il tombait sur ses
     replis #5B6570 et #fff, les mêmes dans les deux thèmes. */
  --muted:var(--slate);
  --bg:var(--card);
  --nb-rouge-fonce:#74000c;
  --nb-jaune:#f7cd05;   /* la bande jaune du drapeau : le blé */
  --nb-surligne:#fdf0b0;   /* le surligneur et la sélection */
  --nb-filet:rgba(29,31,32,.16);
  --nb-titre:'Barlow Condensed', system-ui, sans-serif;
  /* MANITOBA (Martin, 4 déc. 2026). Deux symboles, un par langue, tous deux découpés dans un
     drapeau officiel — rien de dessiné à la main. Français : la plante en « F » du drapeau
     franco-manitobain. Anglais : l'écu du drapeau du Manitoba, la croix de saint Georges au-dessus
     du bison. --nb-plante sert de MASQUE (seule sa silhouette compte, la couleur vient du CSS) ;
     --nb-ecu s'affiche en couleur, tel quel. */
  --nb-plante:url("/commun/plante-franco-manitobaine.png");   /* drapeau franco-manitobain, Wikimedia Commons, domaine public */
  --nb-ecu:url("/commun/ecu-manitoba.png");                   /* drapeau du Manitoba, Wikimedia Commons, domaine public */
  /* Français : la plante partout — dans l'affiche, dans la boîte et devant le nom du site. */
  --nb-hero-symbole:var(--nb-plante);
  --nb-hero-couleur:#ffffff;
  --nb-boite-symbole:var(--nb-plante);
  --nb-boite-couleur:#ffffff;
  --nb-marque:var(--nb-plante);   /* la petite marque devant « DossierManitoba » */

  --ink:#1d1f20;
  --ink-2:#424244;
  --paper:#f2f2f3;
  --paper-2:#f8f8f9;
  --card:#ffffff;
  --line:#1d1f20;
  --line-soft:#e1e1e4;
  --slate:#5d5d60;
  --sur-clair:#1d1f20;   /* le texte sur le « jaune » (l'or du blé) : l'encre, pas du blanc */
  --sur-fonce:#ffffff;
  --gold:#06622f;
  --gold-soft:#e2efe7;
  --gold-bg:#06622f;
  --gold-hover:#044a24;
  --gold-pale:#a9cdb8;
  --gold-paler:#e2efe7;
  --ink-bg:#02331a;
  --yellow:#fdf0b0;
  /* « Devenu loi » et « N'a pas abouti » gardent leurs couleurs d'état. Le vert de l'état est
     plus clair que le vert du drapeau qui porte le site : les deux ne se confondent pas. */
  --green:#1b6c38;
  --green-soft:#d3ecdc;
  --red:#b3001b;
  --red-soft:#f9e3e6;
  --shadow:0 1px 2px rgba(43,43,45,.14);
  --shadow-sm:0 1px 2px rgba(43,43,45,.14);
  --shadow-lg:0 3px 10px rgba(43,43,45,.16);
}
/* Le sombre du cahier : un bleu nuit, pas un gris. */
html[data-theme="dark"]{
  --nb-rouge-encre:#ff9aa6;
  --nb-filet:rgba(255,255,255,.18);
  --ink:#f1f1f3;
  --ink-2:#c9cbd1;
  --paper:#05190d;
  --paper-2:#082313;
  --card:#0c3019;
  --line:#f1f1f3;
  --line-soft:#2a7246;
  --slate:#9ba79f;
  --gold:#7fd6a0;
  --gold-soft:#0d3a21;
  --gold-bg:#06622f;
  --gold-hover:#044a24;
  --gold-pale:#a9cdb8;
  --gold-paler:#e2efe7;
  --ink-bg:#02331a;
  --yellow:#fdf0b0;
  --green:#5fcb8a;
  --green-soft:#123a26;
  --red:#ff9aa6;
  --red-soft:#4a0a12;
  --shadow:0 1px 2px rgba(0,0,0,.5);
  --shadow-sm:0 1px 2px rgba(0,0,0,.5);
  --shadow-lg:0 3px 10px rgba(0,0,0,.6);
}
/* dq.css rétablit, dans ses bandes jaune et bleue en sombre, les couleurs CLAIRES de DQ en
   dur : on y remet celles du N.-B. */
html[data-theme="dark"] .band-yellow{
  --ink:#1d1f20; --ink-2:#424244; --line:#1d1f20; --line-soft:#e1e1e4;
  --slate:#5d5d60; --card:#ffffff; --paper:#f2f2f3; --paper-2:#f8f8f9;
  --gold:#06622f; --gold-soft:#e2efe7;
  --green:#1b6c38; --green-soft:#d3ecdc; --red:#b3001b; --red-soft:#f9e3e6;
  --nb-filet:rgba(29,31,32,.16);
}
html[data-theme="dark"] .band-blue{ --slate:#c3dbcd; --gold:#a9cdb8; }

/* ---------- 3. LES FILETS ---------- */
/* ==== FILETS : début (généré par scripts/nb-filets.js, ne pas modifier à la main) ==== */
.bill-share-btn{border-width:1px; border-color:var(--nb-filet);}
.ticker{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
#dq-topbar{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.font-size-ctrl button{border-width:1px; border-color:var(--nb-filet);}
.lang-toggle{border-width:1px; border-color:var(--nb-filet);}
.theme-toggle{border-width:1px; border-color:var(--nb-filet);}
.hamburger{border-width:1px; border-color:var(--nb-filet);}
.dq-remonter{border-width:1px; border-color:var(--nb-filet);}
.hero-manifesto{border-width:1px; border-color:var(--nb-filet);}
.hero-cta{border-width:1px; border-color:var(--nb-filet);}
.stat-band{border-block-width:1px; border-block-color:var(--nb-filet);}
.stat-cell{border-right-width:1px; border-right-color:var(--nb-filet);}
.band{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.band-yellow{border-top-width:1px; border-top-color:var(--nb-filet);}
.diss-cta{border-width:1px; border-color:var(--nb-filet);}
.prom-card{border-width:1px; border-color:var(--nb-filet);}
.prom-draft{border-width:1px; border-color:var(--nb-filet);}
.prom-col{border-width:1px; border-color:var(--nb-filet);}
.prom-theme-pill{border-width:1px; border-color:var(--nb-filet);}
.band-blue{border-top-width:1px; border-top-color:var(--nb-filet);}
.ch-more{border-width:1px; border-color:var(--nb-filet);}
.ch-card{border-width:1px; border-color:var(--nb-filet);}
.ch-stage{border-top-width:1px; border-top-color:var(--nb-filet);}
.ch-demand{border-width:1px; border-color:var(--nb-filet);}
.ch-share button{border-width:1px; border-color:var(--nb-filet);}
.bill{border-width:1px; border-color:var(--nb-filet);}
.calendar-box{border-width:1px; border-color:var(--nb-filet);}
.petition-card{border-width:1px; border-color:var(--nb-filet);}
.petition-progress{border-width:1px; border-color:var(--nb-filet);}
@media (max-width:640px){ .stat-cell{border-bottom-width:1px; border-bottom-color:var(--nb-filet);} }
.toolbar input{border-width:1px; border-color:var(--nb-filet);}
.status-chip, .step-chip{border-width:1px; border-color:var(--nb-filet);}
.sort-toggle, .filter-hamburger{border-width:1px; border-color:var(--nb-filet);}
.qf-btn{border-width:1px; border-color:var(--nb-filet);}
.prom-methode{border-width:1px; border-color:var(--nb-filet);}
.prom-methode-fin{border-top-width:1px; border-top-color:var(--nb-filet);}
.prom-ailleurs{border-width:1px; border-color:var(--nb-filet);}
.prom-ailleurs-liste a{border-width:1px; border-color:var(--nb-filet);}
.legend-strip{border-block-width:1px; border-block-color:var(--nb-filet);}
.bstep{border-width:1px; border-color:var(--nb-filet);}
.bill .num{border-width:1px; border-color:var(--nb-filet);}
.last-event-box{border-width:1px; border-color:var(--nb-filet);}
.status-pill{border-width:1px; border-color:var(--nb-filet);}
.status-mort{border-width:1px; border-color:var(--nb-filet);}
.follow-btn{border-width:1px; border-color:var(--nb-filet);}
.bill-more{border-width:1px; border-color:var(--nb-filet);}
.vote-card{border-width:1px; border-color:var(--nb-filet);}
.vc-detail{border-top-width:1px; border-top-color:var(--nb-filet);}
.vc-pbox{border-width:1px; border-color:var(--nb-filet);}
.vc-phead{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.vc-ncol{border-width:1px; border-color:var(--nb-filet);}
.vc-nhead{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.votes-more{border-width:1px; border-color:var(--nb-filet);}
.result-badge{border-width:1px; border-color:var(--nb-filet);}
.bar{border-width:1px; border-color:var(--nb-filet);}
.bar .seg.contre{border-left-width:1px; border-left-color:var(--nb-filet);}
.bar .seg.abst{border-left-width:1px; border-left-color:var(--nb-filet);}
.info-box{border-width:1px; border-color:var(--nb-filet);}
.brutal-search{border-width:1px; border-color:var(--nb-filet);}
.brutal-search .bs-icon{border-right-width:1px; border-right-color:var(--nb-filet);}
.compo-bar{border-width:1px; border-color:var(--nb-filet);}
.compo-swatch{border-width:1px; border-color:var(--nb-filet);}
.m-card{border-width:1px; border-color:var(--nb-filet);}
.m-card-top{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.depute-party{border-width:1px; border-color:var(--nb-filet);}
.dep-table{border-width:1px; border-color:var(--nb-filet);}
.dep-group-banner{border-top-width:1px; border-top-color:var(--nb-filet); border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.comparateur-toolbar select{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
#band-comparateur .compare-table-wrap{border-width:1px; border-color:var(--nb-filet);}
.cp-slot{border-width:1px; border-color:var(--nb-filet);}
.lexique-item{border-width:1px; border-color:var(--nb-filet);}
.lex-badge{border-width:1px; border-color:var(--nb-filet);}
.suggest-cta{border-width:1px; border-color:var(--nb-filet);}
.role-card{border-width:1px; border-color:var(--nb-filet);}
.role-badge{border-width:1px; border-color:var(--nb-filet);}
.account-box{border-width:1px; border-color:var(--nb-filet);}
.roadmap-item{border-width:1px; border-color:var(--nb-filet);}
.roadmap-status{border-width:1px; border-color:var(--nb-filet);}
.createur-photo{border-width:1px; border-color:var(--nb-filet);}
.maj-mois h2{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.hero-h1 .hero-sujet{border-width:1px; border-color:var(--nb-filet);}
.md-carte{border-width:1px; border-color:var(--nb-filet);}
.md-etiquette{border-width:1px; border-color:var(--nb-filet);}
.md-ligne input{border-width:1px; border-color:var(--nb-filet);}
.md-carte .account-btn{border-width:1px; border-color:var(--nb-filet);}
.md-bouton-doux{border-width:1px; border-color:var(--nb-filet);}
.md-mot{border-width:1px; border-color:var(--nb-filet);}
.md-villes.ab-page{border-top-width:1px; border-top-color:var(--nb-filet);}
.legende-presence{border-width:1px; border-color:var(--nb-filet);}
.lp-formule b{border-width:1px; border-color:var(--nb-filet);}
.lp-barre{border-width:1px; border-color:var(--nb-filet);}
.presence-pastille{border-width:1px; border-color:var(--nb-filet);}
.promo-villes{border-width:1px; border-color:var(--nb-filet);}
.promo-compte{border-width:1px; border-color:var(--nb-filet);}
.promo-compte-ligne input{border-width:1px; border-color:var(--nb-filet);}
.promo-compte .account-btn{border-width:1px; border-color:var(--nb-filet);}
.omnibus-avis{border-width:1px; border-color:var(--nb-filet);}
.prom-parti-titre{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.prom-parti-puce{border-width:1px; border-color:var(--nb-filet);}
.regle{border-width:1px; border-color:var(--nb-filet);}
.prom-parti-repli{border-width:1px; border-color:var(--nb-filet);}
.prom-parti-repli[open] > summary.prom-parti-titre{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.p404-carte{border-width:1px; border-color:var(--nb-filet);}
.p404-decompte li{border-width:1px; border-color:var(--nb-filet);}
.p404-etapes li{border-width:1px; border-color:var(--nb-filet);}
.p404-liens a{border-width:1px; border-color:var(--nb-filet);}
.fin-bloc{border-width:1px; border-color:var(--nb-filet);}
.fin-tag{border-width:1px; border-color:var(--nb-filet);}
.fin-table .fin-total td{border-top-width:1px; border-top-color:var(--nb-filet);}
.fin-btn{border-width:1px; border-color:var(--nb-filet);}
.fin-haut{border-width:1px; border-color:var(--nb-filet);}
.tri-vote{border-width:1px; border-color:var(--nb-filet);}
.tri-vote-btn{border-left-width:1px; border-left-color:var(--nb-filet);}
.fin-evol{border-top-width:1px; border-top-color:var(--nb-filet);}
.fin-table-evol th{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
@media (max-width:900px){ .fin-col-plus .fin-evol:first-child{border-top-width:1px; border-top-color:var(--nb-filet);} }
.fin-legende{border-width:1px; border-color:var(--nb-filet);}
.search-retour{border-width:1px; border-color:var(--nb-filet);}
.search-retour-nom{border-width:1px; border-color:var(--nb-filet);}
.bill-cafe-btn{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.ab-etat{border-width:1px; border-color:var(--nb-filet);}
.ab-forfaits li{border-width:1px; border-color:var(--nb-filet);}
.md-preoc-texte{border-width:1px; border-color:var(--nb-filet);}
.md-preoc-alerte{border-width:1px; border-color:var(--nb-filet);}
.ab-forfait-choisi{box-shadow:var(--shadow);}
.md-cadeau-puce{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.part-btn{border-width:1px; border-color:var(--nb-filet);}
.part-menu{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.parti-arcade{border-width:1px !important; border-color:var(--nb-filet) !important;}
.bs-effacer{border-left-width:1px; border-left-color:var(--nb-filet);}
.wiki-btn{border-width:1px; border-color:var(--nb-filet);}
.leg-bloc{border-width:1px; border-color:var(--nb-filet);}
.leg-fleche{border-width:1px; border-color:var(--nb-filet);}
.leg-bloc, .leg-bloc.leg-passe{border-left-width:1px; border-left-color:var(--nb-filet);}
.bill-cafe-btn .bulle{border-width:1px; border-color:var(--nb-filet);}
.min-photo img{border-width:1px; border-color:var(--nb-filet);}
.min-reseaux a{border-width:1px; border-color:var(--nb-filet);}
.md-exemple{border-width:1px; border-color:var(--nb-filet);}
.mdr-connexion{border-width:1px; border-color:var(--nb-filet);}
.mdr-connexion .md-ligne input{border-width:1px; border-color:var(--nb-filet);}
.mdr-btn-jaune{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.mdr-btn-jaune:hover{box-shadow:var(--shadow);}
.mdr-btn-jaune:active{box-shadow:var(--shadow);}
.mdr-compteur{border-width:1px; border-color:var(--nb-filet);}
.mdr-carte{border-width:1px; border-color:var(--nb-filet);}
.mdr-carte:hover{box-shadow:var(--shadow);}
.mdr-plus{border-top-width:1px; border-top-color:var(--nb-filet);}
.mdr-tuile{border-width:1px; border-color:var(--nb-filet);}
.mdr-bande{border-width:1px; border-color:var(--nb-filet);}
.mdc-section{border-top-width:1px; border-top-color:var(--nb-filet);}
.mdc-carte{border-width:1px; border-color:var(--nb-filet);}
.mdc-freq{border-width:1px; border-color:var(--nb-filet);}
.mdc-switch{border-width:1px; border-color:var(--nb-filet);}
.mdc .mdc-puce{border-width:1px; border-color:var(--nb-filet);}
.mdc-select::after{border-right-width:1px; border-right-color:var(--nb-filet); border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
.mdc .mdc-select select{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.mdc-langue span{border-width:1px; border-color:var(--nb-filet);}
.mdr-offrir .md-cadeau-discret.mdr-offrir-carte{border-width:1px; border-color:var(--nb-filet);}
.mdr-offrir .md-cadeau-qte{border-width:1px; border-color:var(--nb-filet);}
#mdEcrirePli .mdr-ecrire{border-width:1px; border-color:var(--nb-filet);}
#mdEcrirePli .ab-message select, #mdEcrirePli .ab-message textarea{border-width:1px; border-color:var(--nb-filet);}
#mdEcrirePli .ab-message .ab-bouton{border-width:1px; border-color:var(--nb-filet);}
#mdEcrirePli .ab-merci{border-width:1px; border-color:var(--nb-filet);}
#villes .vp-compte{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
#villes details.ab-suggestions > summary.vp-ajouter{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
#villes details.ab-suggestions > summary.vp-ajouter:hover{box-shadow:var(--shadow);}
#villes details.ab-suggestions > .ab-pliable-corps{border-width:1px; border-color:var(--nb-filet);}
#villes .vp-ville-titre{border-width:1px; border-color:var(--nb-filet);}
#villes details.ab-dossier{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
#villes details.ab-dossier[open] > summary{border-bottom-width:1px; border-bottom-color:var(--nb-filet);}
#villes .vp-voir{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
#villes details.ab-dossier > summary:hover .vp-voir{box-shadow:var(--shadow);}
#villes .vp-sugg{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
#villes .vp-sugg .ab-bouton{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.bill-abo{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.bill-abo-ligne input{border-width:1px; border-color:var(--nb-filet);}
.bill-abo-btn{border-width:1px; border-color:var(--nb-filet);}
.rtv-etape{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.rtv-etape b{border-width:1px; border-color:var(--nb-filet);}
.rtv-form{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
.rtv-form input:not([type=radio]), .rtv-form textarea{border-width:1px; border-color:var(--nb-filet);}
.rtv-prix{border-width:1px; border-color:var(--nb-filet); box-shadow:var(--shadow);}
/* ==== FILETS : fin ==== */

/* ---------- 4. LES PIÈCES ---------- */

body{background:var(--paper); color:var(--ink);}
::selection{background:var(--nb-surligne); color:var(--nb-bleu-nuit);}

/* Les titres : Barlow Condensed, 600, en capitales, interligne serré. */
h1, h2, h3, .hero-h1, .section-head h2, .view h2, .stat-cell b{
  font-family:var(--nb-titre); font-weight:600; letter-spacing:.01em;
}
.section-head h2, .view h2{line-height:1.05;}

/* Le bandeau défilant : bleu foncé, 30 px. */
.ticker{background:var(--nb-bleu-fonce); color:#fff; border-bottom:0;}
.ticker-text{font-family:var(--nb-titre); font-size:12px; letter-spacing:.06em; padding:8px 0;}

/* L'en-tête : un filet sous lui, la marque en Barlow Condensed avec le nom de la province
   en rouge. */
#dq-topbar{border-bottom:1px solid var(--nb-filet);}
.brand-text .brand-title{font-family:var(--nb-titre); font-weight:600; font-size:22px; letter-spacing:.02em; text-transform:none; white-space:nowrap;}
.brand-blue{color:var(--nb-rouge-encre);}
html[data-theme="dark"] .brand-blue{color:#8fa2ff;}
/* La plante du drapeau franco-manitobain devant le nom (Martin, 4 déc. 2026), à la place de la feuille d'érable de DQ (Martin,
   7 nov. 2026). Décor seulement. La feuille d'érable reste après le nom : c'est la passerelle
   vers DossierCanada (Martin, 8 nov. 2026). */
.brand-text .brand-title::before{content:''; display:inline-block; width:.85em; height:.85em; vertical-align:-.08em; background:var(--gold); margin-right:8px; -webkit-mask:var(--nb-marque) center / contain no-repeat; mask:var(--nb-marque) center / contain no-repeat;}

/* Les onglets : numérotés, le numéro en rouge ; l'onglet courant en bleu, sans pastille. */
nav.tabs a{font-family:var(--nb-titre); font-weight:600; font-size:14px; padding:6px 6px; border-color:transparent;}

/* « Villes » : un onglet de plus, après Mon dossier, qui ouvre la liste des volets. */
nav.tabs .villes-menu{margin-left:0;}
.nav-villes{
  display:inline-flex; align-items:center; gap:5px; padding:6px 6px; cursor:pointer; list-style:none;
  font-family:var(--nb-titre); font-weight:600; font-size:14px; letter-spacing:.04em;
  text-transform:uppercase; color:var(--ink); white-space:nowrap;
}
.nav-villes::-webkit-details-marker{display:none;}
.nav-villes::after{content:""; border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid currentColor; opacity:.85;}
.nav-villes:hover, .villes-menu[open] .nav-villes{color:var(--nb-rouge-encre);}
.villes-menu ul{border:1px solid var(--nb-filet); box-shadow:var(--shadow-lg);}
nav.tabs .villes-menu ul{left:auto; right:0;}
nav.tabs a .n{display:inline; color:var(--nb-rouge-encre); font-size:11px; margin-right:4px;}
nav.tabs a.active{background:transparent; color:var(--gold); border-color:transparent;}
nav.tabs a:hover:not(.active){background:transparent; color:var(--nb-rouge-encre); border-color:transparent;}
/* En sombre, DQ passe l'onglet survolé au texte foncé (fait pour son fond jaune) : illisible ici. */
html[data-theme="dark"] nav.tabs a:hover:not(.active){color:var(--nb-rouge-encre);}

/* Les petits contrôles : carrés à filet, fond transparent ; le survol passe au bleu. */
.font-size-ctrl button, .lang-toggle, .theme-toggle, .hamburger{
  border:1px solid var(--nb-filet); background:transparent; color:var(--ink);
}
.theme-toggle{--derriere:var(--paper);}
.font-size-ctrl button:hover, .lang-toggle:hover, .theme-toggle:hover{
  background:transparent; border-color:var(--gold); color:var(--gold); --icone:var(--gold); --derriere:var(--paper);
}
.lang-toggle{font-family:var(--nb-titre); font-weight:600;}

/* Tout l'en-tête sur une rangée (Martin, 7 nov. 2026) : comme sur la capture, le zoom est un
   seul bloc « A− 100 % A+ », la langue est un mot sans cadre, et les onglets se serrent. */
header.top{column-gap:12px;}
nav.tabs{gap:2px;}
nav.tabs a, .nav-villes{padding:6px 5px;}
.header-ctrls{gap:8px;}
.font-size-ctrl{gap:0; border:1px solid var(--nb-filet);}
.font-size-ctrl button{border:0; width:28px; height:28px;}
.font-size-ctrl #fontPct{padding:0 6px; line-height:28px; border-inline:1px solid var(--nb-filet); font-weight:400; color:var(--slate);}
.theme-toggle{width:30px; height:30px;}
.lang-toggle{border:0; padding:5px 4px; font-size:14px; letter-spacing:.04em;}

/* L'affiche de l'accueil : trois colonnes — bleu (titre et étoile), papier (chapô et
   bouton), rouge (les trois chiffres). Les blocs sont ceux de DQ ; seule leur disposition
   change. Sur ordinateur, l'affiche reste dans la largeur du contenu (Martin, 7 nov. 2026 : pas
   pleine largeur) ; sur téléphone, elle touche les bords. */
#view-apercu{padding-top:0; container-type:inline-size; --nb-gouttiere:calc((var(--vw,100vw) - 100cqw) / 2);}
@media (min-width:901px){
  #view-apercu{display:grid; grid-template-columns:2fr 1fr;}
  #view-apercu > *{grid-column:1 / -1; min-width:0;}
  #view-apercu > .hero-poster{grid-column:1; margin-inline:0;}
  #view-apercu > .stat-band{grid-column:2; margin-inline:0; padding-inline:44px;}
  /* Les 3 colonnes (bleu, blanc, rouge) forment un drapeau : 9 de large pour 5 de haut (Martin, 3 déc. 2026). */
  #view-apercu > .hero-poster.hero-poster{min-height:calc(100cqw * 5 / 9);}
}
#view-apercu .hero-poster{
  display:grid; grid-template-columns:1fr 1fr; grid-template-rows:auto 1fr; padding:0; min-height:460px;
}
/* Le surtitre (législature · session), en haut du bloc bleu. */
#view-apercu .hero-session{
  grid-column:1; grid-row:1; margin:0; padding:56px 44px 12px; background:var(--nb-bleu); color:#fff;
  font-family:var(--nb-titre); font-weight:600; font-size:12px; letter-spacing:.1em; text-transform:uppercase; opacity:1;
}
#view-apercu .hero-session sup{font-size:.75em; line-height:0;}
#view-apercu .calendar-box .hero-drapeau, #view-apercu .calendar-box > a{margin-left:auto; font-family:'Barlow',system-ui,sans-serif; font-size:14px; white-space:nowrap;}
#view-apercu .calendar-box .hero-drapeau a, #view-apercu .calendar-box > a{color:inherit; text-decoration:underline; text-underline-offset:3px;}
#view-apercu .calendar-box .hero-drapeau a:hover, #view-apercu .calendar-box > a:hover{text-decoration-thickness:2px;}
#view-apercu .hero-h1{
  grid-column:1; grid-row:2;
  position:relative; overflow:hidden; background:var(--nb-bleu); color:#fff;
  padding:0 44px 56px; font-size:clamp(38px, 5vw, 64px); line-height:.98; letter-spacing:.01em;
}
#view-apercu .hero-session[hidden] + .hero-h1{grid-row:1 / 3; padding-top:56px;}
/* Le symbole (la plante du drapeau en français, l'écu en anglais), en bas à droite de l'affiche : décor seulement. */
#view-apercu .hero-h1::after{
  content:''; position:absolute; right:-45px; bottom:-45px; width:240px; height:240px;
  background:var(--nb-hero-couleur); opacity:.95; pointer-events:none;
  -webkit-mask:var(--nb-hero-symbole) center / contain no-repeat; mask:var(--nb-hero-symbole) center / contain no-repeat;
}
#view-apercu .hero-h1 > span{position:relative; z-index:1;}
#view-apercu .hero-h1 .hero-sujet{
  width:auto; font-family:var(--nb-titre); font-weight:600; font-size:1em; line-height:.98; letter-spacing:.01em;
  color:#fff; background:transparent; border:0; padding:0; margin:0 0 20px;
}
#view-apercu .hero-h1 span:not(.hero-sujet){font-size:22px; line-height:1.25; letter-spacing:.03em; color:#fff;}
#view-apercu .hero-outline{-webkit-text-stroke:0; color:#fff;}
#view-apercu .hero-blue{color:#fff;}
#view-apercu .hero-row{
  grid-column:2; grid-row:1 / 3;
  margin:0; padding:56px 44px; display:flex; flex-direction:column; justify-content:flex-start;
  align-items:flex-start; gap:12px; background:var(--paper);
}
/* Les deux boutons, côte à côte en bas de la colonne (maquette). */
#view-apercu .hero-row{flex-direction:row; flex-wrap:wrap; align-content:space-between;}
#view-apercu .hero-row > .hero-manifesto{flex:1 0 100%;}
#view-apercu .hero-manifesto{margin-bottom:12px;}
#view-apercu .hero-manifesto{flex:none; min-width:0; border:0; background:transparent; padding:0; box-shadow:none;}
#view-apercu .hero-manifesto p{font-size:22px; line-height:1.45; font-weight:400;}
@media (max-width:900px){ #view-apercu .hero-manifesto p{font-size:19px;} }
/* Ce que le site cherche à faire, surligné au marqueur jaune (Martin, 8 nov. 2026). */
#view-apercu .hero-manifesto p b{font-weight:700; color:var(--nb-bleu-nuit); background:linear-gradient(transparent 12%, var(--nb-surligne) 12%, var(--nb-surligne) 92%, transparent 92%); padding:0 3px; -webkit-box-decoration-break:clone; box-decoration-break:clone;}
#view-apercu .hero-cta{
  background:var(--nb-rouge); color:#fff; border:0; box-shadow:none; padding:12px 22px;
  font-family:var(--nb-titre); font-weight:600; font-size:16px; letter-spacing:.04em;
}
#view-apercu .hero-cta:hover{background:var(--nb-rouge-fonce); color:#fff;}
html[data-theme="dark"] #view-apercu .hero-cta:hover{color:#fff;}
/* Le second bouton : en ligne bleue, plein au survol. */
#view-apercu .hero-cta-ligne{background:transparent; color:var(--gold); border:1px solid var(--gold); padding:11px 21px;}
#view-apercu .hero-cta-ligne:hover{background:var(--nb-bleu); border-color:var(--nb-bleu); color:#fff;}
#view-apercu .stat-band{
  background:var(--nb-rouge); color:#fff; border:0;
  display:grid; grid-template-columns:1fr; grid-template-rows:1fr 1fr 1fr; padding-block:56px;
}
#view-apercu .stat-cell{padding:14px 0 12px; border:0; justify-content:center;}
#view-apercu .stat-cell + .stat-cell{border-top:1px solid rgba(255,255,255,.35);}
#view-apercu .stat-cell b{font-size:72px; font-feature-settings:'tnum'; color:#fff;}
#view-apercu .stat-cell span{font-family:'Barlow', system-ui, sans-serif; font-weight:400; font-size:13px; letter-spacing:.08em; color:#fff;}
@media (max-width:900px){
  #view-apercu .hero-poster{grid-template-columns:1fr; min-height:0; margin-inline:calc(-1 * var(--nb-gouttiere));}
  #view-apercu .hero-session{grid-column:1; grid-row:1; padding:32px 20px 10px;}
  #view-apercu .hero-h1{grid-column:1; grid-row:2; padding:0 20px 32px;}
  #view-apercu .hero-session[hidden] + .hero-h1{grid-row:2; padding-top:32px;}
  #view-apercu .hero-row{grid-column:1; grid-row:3; padding:32px 20px;}
  #view-apercu .stat-band{grid-template-rows:none; grid-template-columns:repeat(3, 1fr); gap:16px; padding-block:32px;}
  #view-apercu .stat-cell + .stat-cell{border-top:0; border-left:1px solid rgba(255,255,255,.35); padding-left:16px;}
  #view-apercu .stat-cell b{font-size:44px;}
  #view-apercu .hero-h1::after{width:170px; height:170px; right:-40px; bottom:-40px;}
}

/* Les bandes : plus de trait noir entre elles. */
.band{border-bottom:0;}
.band-yellow, .band-blue{border-top:0;}

/* Les têtes de section : titre en capitales, filet bleu de 2 px dessous. */
.section-head{border-bottom:2px solid var(--nb-bleu); padding-bottom:8px;}
.band-blue .section-head{border-bottom-color:rgba(255,255,255,.5);}

/* Les cartes : fond blanc, ombre douce, filet bleu à gauche au survol et une fois ouvertes. */
.bill, .ch-card, .m-card, .prom-card, .hero-manifesto + .hero-cta{box-shadow:var(--shadow);}
.bill{border:0; border-left:6px solid transparent;}
.bill:hover, .ch-card:hover, .m-card:hover{box-shadow:var(--shadow-lg);}
.bill:hover{border-left-color:var(--gold);}
.bill.open, .bill[open]{border-left-color:var(--nb-bleu); box-shadow:var(--shadow-lg);}
.bill .num{font-family:var(--nb-titre); font-weight:600; font-size:24px; color:var(--gold); background:transparent; border:0; padding:0;}
.bill h3{font-family:'Barlow', system-ui, sans-serif; font-weight:500; text-transform:none; letter-spacing:0;}

/* Le pied (maquette) : collé à la mission, filet tricolore bleu / jaune / rouge EN HAUT, puis une
   ligne de petit texte et de liens soulignés. */
footer{
  background:var(--paper); color:var(--ink-3, var(--slate)); border-top:0; margin:0; padding:22px 0 16px;
  font-family:'Barlow', system-ui, sans-serif; font-size:12px; text-transform:none; letter-spacing:0; position:relative;
}
footer::before{
  content:''; position:absolute; left:0; right:0; top:0; height:6px;
  background:linear-gradient(90deg, var(--nb-bleu) 0 33.333%, var(--nb-jaune) 33.333% 66.666%, var(--nb-rouge) 66.666%);
}
.footer-nav{margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--nb-filet); gap:6px 20px;}
.footer-nav a, .footer-nav-villes > span:first-child{color:var(--ink-2); font-weight:400;}
.footer-nav a:hover{color:var(--nb-rouge-encre);}
.footer-inner{justify-content:flex-start; gap:8px 20px;}
.footer-right-group{gap:8px 20px;}
.footer-gh, .footer-etmoi{color:var(--ink); font-weight:400; text-decoration:underline; text-underline-offset:3px;}
.footer-gh:hover, .footer-etmoi:hover{color:var(--nb-rouge-encre);}

/* Le bouton « remonter » : jaune du drapeau, sans trait noir. */
.dq-remonter{border:0; box-shadow:var(--shadow-lg); background:var(--nb-jaune); color:var(--nb-bleu-nuit);}
.dq-remonter:hover{background:var(--nb-bleu); color:#fff;}

/* Le haut des pages de section : un surtitre rouge, le titre en capitales avec son filet
   bleu dessous, comme sur l'accueil du cahier. Plus d'étiquette jaune ni de lettres
   évidées. */
.hero-h1 .hero-sujet{
  color:var(--nb-rouge-encre); background:transparent; border:0; padding:0; margin:0 0 10px;
  font-family:var(--nb-titre); font-weight:600; font-size:13px; letter-spacing:.1em;
}
html[data-theme="dark"] .hero-h1 .hero-sujet{color:#8fa2ff;}
.hero-outline{-webkit-text-stroke:0; color:inherit;}
.hero-blue{color:var(--gold);}
.hero-h1-md{
  font-size:clamp(30px, 3.6vw, 44px); line-height:1.02;
  border-bottom:2px solid var(--nb-bleu); padding-bottom:10px;
}

/* Le sombre : le rouge du drapeau passe sous le seuil de lecture sur le bleu nuit, on prend
   sa version claire pour les petits textes (numéros d'onglet)  */
html[data-theme="dark"] nav.tabs a .n{color:var(--nb-rouge-encre);}
html[data-theme="dark"] .hero-h1-md, html[data-theme="dark"] .section-head{border-bottom-color:var(--gold);}

/* dq.css fait défiler la barre d'onglets à l'horizontale ; la liste des villes, qui s'ouvre
   SOUS la barre, y était coupée. La barre tient sur sa rangée (voir plus haut), on laisse
   donc déborder la liste. Le téléphone garde son panneau qui défile. */
@media (min-width:641px){ #dq-topbar nav.tabs{overflow:visible;} }
@media (max-width:640px){ nav.tabs .villes-menu ul{position:static; box-shadow:none; margin:4px 24px 0;} .nav-villes{padding:16px 24px; font-size:15px;} }

/* ==== ACCUEIL SOUS L'AFFICHE — d'après la maquette DossierNBrunswick.html (#2a), Martin, 7 nov. 2026 ====
   Valeurs relevées dans la maquette : bandeau d'état bleu pâle, projets signalés en cartes blanches à
   liseré rouge, projets récents (2/3) + boîtes pleines bleue et rouge (1/3), Quoi de neuf en bande
   bleue, mission sur trois colonnes. Les identifiants de DQ restent : commun/dq.js remplit tout. */

/* Titres de section de l'accueil : Barlow Condensed 28 px, majuscules, filet de couleur dessous. */
#view-apercu .nb-signales .section-head, #view-apercu .nb-recents .section-head{display:flex; align-items:flex-end; justify-content:space-between; padding:0 0 8px; margin:0 0 6px; border-bottom:2px solid var(--nb-rouge-encre);}
#view-apercu .nb-recents .section-head{border-bottom-color:var(--nb-bleu);}
#view-apercu .nb-signales .section-head h2, #view-apercu .nb-recents .section-head h2{font-family:var(--nb-titre); font-weight:600; font-size:28px; line-height:1.1; letter-spacing:.01em; text-transform:uppercase; color:var(--ink); margin:0;}
#view-apercu .nb-recents .section-head .sub{font-size:12px; color:var(--slate); margin:6px 0 0; font-weight:400;}
#view-apercu .ch-more{font-size:13px; font-weight:600; color:var(--nb-rouge-encre); text-decoration:none;}

/* 1. Le bandeau d'état, sous l'affiche. */
#view-apercu .calendar-box.nb-etat{display:flex; align-items:center; gap:16px; background:var(--gold-soft); color:var(--nb-bleu-fonce); border:0; border-radius:0; box-shadow:none; padding:14px 20px; margin:36px 0 0;}
#view-apercu .calendar-box.nb-etat::before{content:''; flex:none; width:10px; height:10px; background:var(--nb-rouge);}
#view-apercu .calendar-box.nb-etat .status{font-family:'Barlow',system-ui,sans-serif; font-size:14px; font-weight:400; line-height:1.55; color:var(--nb-bleu-fonce); margin:0;}
html[data-theme="dark"] #view-apercu .calendar-box.nb-etat{background:#13286a; color:#dbe4ff;}
html[data-theme="dark"] #view-apercu .calendar-box.nb-etat .status{color:#dbe4ff;}

/* 2. Les projets signalés par les citoyen·ne·s. */
#view-apercu .nb-signales{margin:40px 0 0;}
#view-apercu .nb-signales #challengedSub{display:none;}
#view-apercu .nb-avis-petition{display:flex; gap:10px; align-items:flex-start; margin:0 0 18px; font-size:13px; line-height:1.5; color:var(--ink-2);}
#view-apercu .nb-avis-petition::before{content:'!'; flex:none; width:14px; height:14px; margin-top:2px; border:1.5px solid var(--nb-rouge-encre); border-radius:50%; color:var(--nb-rouge-encre); font-size:10px; font-weight:700; line-height:12px; text-align:center;}
#view-apercu #challengedList.ch-grid{grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px;}
#view-apercu .ch-card{background:var(--card); border:0; border-top:4px solid var(--nb-rouge); border-radius:0; box-shadow:0 1px 2px rgba(43,43,45,.14); padding:18px 20px 18px;}
#view-apercu .ch-num{font-family:var(--nb-titre); font-weight:600; font-size:22px; color:var(--nb-bleu);}
#view-apercu .ch-badge{background:transparent; border:0; color:var(--nb-rouge-encre); font-family:var(--nb-titre); font-weight:700; font-size:22px; padding:0; box-shadow:none;}
#view-apercu .ch-title{font-size:15px; font-weight:500; line-height:1.35; color:var(--ink); margin:8px 0 12px;}
/* N.-B. (Martin, 3 déc. 2026) : l'étape, le bouton et le partage alignés d'une carte à l'autre, peu importe la longueur du titre. */
#view-apercu .ch-stage{display:inline-block; margin-top:auto; background:var(--gold-soft); color:var(--nb-rouge-fonce); border:0; font-size:11px; letter-spacing:.04em; text-transform:uppercase; padding:3px 10px;}
#view-apercu .ch-demand{background:transparent; border:0; color:var(--nb-bleu); font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; padding:0; margin-top:14px; box-shadow:none;}
#view-apercu .nb-agir{display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 0; font-size:13px; color:var(--slate);}
#view-apercu .nb-agir a{color:var(--nb-bleu-fonce); text-decoration:underline;}
html[data-theme="dark"] #view-apercu .nb-agir a{color:var(--gold);}
/* Thème sombre : le bleu et le rouge foncés du drapeau disparaissaient sur la carte sombre (Martin, 8 nov. 2026). */
html[data-theme="dark"] #view-apercu .ch-card{box-shadow:0 0 0 1px rgba(255,255,255,.14);}
html[data-theme="dark"] #view-apercu .ch-num,
html[data-theme="dark"] #view-apercu .ch-demand{color:var(--gold);}
html[data-theme="dark"] #view-apercu .ch-badge{color:#ff6b80;}
html[data-theme="dark"] #view-apercu .ch-stage{background:#141c63; color:#c8cbee;}

/* 3. Projets récents (2/3) et les deux boîtes (1/3). Les cartes n'ont pas de colonne de droite. */
.nb-recents{display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:48px; align-items:start; padding:48px 0 56px;}
.nb-recents-cote{display:grid; gap:16px;}
@media (max-width:900px){ .nb-recents{grid-template-columns:1fr; gap:32px;} }
#apercuBills .bill-open-side{display:none;}
#apercuBills .bill-open-grid{grid-template-columns:1fr;}
.nb-boite{position:relative; overflow:hidden; padding:24px; color:#fff; border:0; box-shadow:none;}
.nb-boite.promo-accueil{background:var(--nb-bleu);}
.nb-boite.nb-commandite{background:var(--nb-rouge);}
/* Le symbole en or, coupé par le coin de la boîte bleue. */
.nb-boite.promo-accueil::after{content:''; position:absolute; top:-30px; right:-30px; width:120px; height:120px; background:var(--nb-boite-couleur); -webkit-mask:var(--nb-boite-symbole) center / contain no-repeat; mask:var(--nb-boite-symbole) center / contain no-repeat;}
.nb-boite .promo-sur{position:relative; z-index:1; margin:0 0 6px; font-family:'Barlow',system-ui,sans-serif; font-weight:600; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--nb-jaune);}
.nb-boite h2{position:relative; z-index:1; margin:0 0 8px; max-width:none; font-family:var(--nb-titre); font-weight:600; font-size:24px; line-height:1; letter-spacing:-.015em; text-transform:uppercase; color:#fff;}
.nb-boite.promo-accueil h2{max-width:220px;}
.nb-boite .promo-texte{margin:0; font-size:13px; line-height:1.45; color:#fff;}
.nb-boite .promo-compte{background:transparent; color:#fff; border:0; box-shadow:none; padding:0; margin-top:14px;}
.nb-boite .promo-compte-ligne{display:flex; gap:8px;}
.nb-boite .promo-compte-ligne input{flex:1 1 auto; min-width:0; height:36px; padding:6px 10px; border:1px solid #fff; background:#fff; color:var(--nb-encre, #1d1f20); font-size:14px;}
.nb-boite .promo-compte .account-btn{height:36px; padding:0 14px; border:0; background:var(--nb-rouge); color:#fff; font-family:var(--nb-titre); font-weight:600; font-size:14px; letter-spacing:.04em; text-transform:uppercase;}
.nb-boite .promo-compte-note{color:rgba(255,255,255,.85);}
.nb-boite .promo-mes-dossiers{display:none;}   /* maquette : pas de lien sous le champ */
#view-apercu .nb-boite .hero-cta{display:inline-flex; align-self:flex-start; margin-top:14px; padding:9px 16px; border:0; background:var(--nb-jaune); color:var(--nb-bleu-fonce); font-family:var(--nb-titre); font-weight:600; font-size:14px; letter-spacing:.04em; text-transform:uppercase; text-decoration:none; box-shadow:none;}
#view-apercu .nb-boite .hero-cta:hover{background:#fff; color:var(--nb-bleu-fonce);}

/* 4. Quoi de neuf : bande bleue, le titre à gauche (1/3), le fil à droite (2/3). */
#band-actu{background:var(--nb-bleu); color:#fff; border:0;}
#band-actu .actu-grid{grid-template-columns:1fr; gap:0; padding:48px 0 56px;}
#band-actu .actu-grid > div{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:48px; align-items:start;}
@media (max-width:900px){ #band-actu .actu-grid > div{grid-template-columns:1fr; gap:20px;} }
#band-actu .section-head{border:0; padding:0; margin:0; display:block;}
#band-actu .section-head h2{margin:0 0 6px; font-family:'Barlow',system-ui,sans-serif; font-weight:600; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--nb-jaune); border:0;}
#band-actu .section-head .sub{margin:0; font-family:var(--nb-titre); font-weight:600; font-size:40px; line-height:1; letter-spacing:-.015em; text-transform:uppercase; color:#fff;}
#band-actu .nb-fil{margin:16px 0 0; font-size:14px; line-height:1.55; color:#fff; opacity:.85;}
#band-actu .news-item{display:grid; grid-template-columns:150px minmax(0,1fr); gap:20px; padding:12px 0; margin:0; border:0; border-bottom:1px solid rgba(255,255,255,.3);}
#band-actu .news-date{width:auto; padding:0; font-family:var(--nb-titre); font-weight:600; font-size:15px; letter-spacing:.04em; text-transform:uppercase; color:var(--nb-jaune);}
#band-actu .news-body p{margin:0; font-size:15px; line-height:1.55; color:#fff;}
#band-actu .news-body p + p{margin-top:6px;}
#band-actu .no-results, #band-actu .bill-more{color:rgba(255,255,255,.8); background:transparent;}
@media (max-width:640px){ #band-actu .news-item{grid-template-columns:1fr; gap:4px;} }

/* 5. La mission : trois colonnes sur le papier, séparées par des filets. */
#band-mission{background:transparent; color:var(--ink); border:0;}
#band-mission #introBlock{padding:48px 0;}
#band-mission .mission-box{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:0; background:transparent; border:0; box-shadow:none; padding:0; margin:0;}
#band-mission .mission-eyebrow{grid-column:1; margin:0 0 8px; font-family:'Barlow',system-ui,sans-serif; font-weight:600; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--nb-rouge-encre);}
#band-mission .mission-statement{grid-column:1; margin:0; padding-right:36px; font-family:var(--nb-titre); font-weight:600; font-size:30px; line-height:1.02; letter-spacing:-.015em; text-transform:uppercase; color:var(--ink);}
#band-mission .mission-statement .hl{background:none; color:inherit; padding:0;}
#band-mission .compare{grid-column:2; grid-row:1 / span 2; display:grid; grid-template-columns:1fr 1fr; gap:0; margin:0;}
#band-mission .compare-col, #band-mission .compare-col:last-child{background:transparent; border:0; border-left:1px solid var(--nb-filet); border-radius:0; padding:0 36px;}
#band-mission .compare-col:last-child{padding-right:0;}
#band-mission .compare-col .tag{display:block; margin:0 0 10px; font-family:var(--nb-titre); font-weight:600; font-size:18px; letter-spacing:.02em; text-transform:uppercase; color:var(--ink-2);}
#band-mission .compare-col:last-child .tag{color:var(--nb-bleu);}
#band-mission .compare-col ul, #band-mission .compare-col li{color:var(--ink-2); font-size:14px; line-height:1.7;}
html[data-theme="dark"] #band-mission .compare-col:last-child .tag{color:var(--gold);}
@media (max-width:900px){
  #band-mission .mission-box{grid-template-columns:1fr;}
  #band-mission .compare{grid-column:1; grid-row:auto; grid-template-columns:1fr; gap:20px; margin-top:24px;}
  #band-mission .compare-col, #band-mission .compare-col:last-child{border-left:0; border-top:1px solid var(--nb-filet); padding:16px 0 0;}
}
#view-apercu .calendar-box.nb-etat .status{text-transform:none; letter-spacing:0;}
#view-apercu .ch-more{border:0; background:none; padding:0; box-shadow:none; text-transform:none; letter-spacing:0;}

/* 6. Les projets récents de l'accueil (maquette) : rangées compactes qui se déplient, la
   première ouverte (ligneProjetAccueil dans commun/dq.js). */
#view-apercu .nb-recents .section-head{align-items:baseline;}
.nb-voir-tout{font-size:13px; font-weight:600; color:var(--nb-rouge-encre); text-decoration:none; white-space:nowrap;}
.nb-voir-tout:hover{text-decoration:underline;}
.nb-recents-sub{font-size:12px; color:var(--slate); margin:0 0 14px;}
.nb-recents-source{font-size:12px; color:var(--slate); margin:14px 0 0;}
.nb-recents-source a{color:inherit;}
#apercuBills{display:grid; gap:8px;}
.nb-ligne{background:var(--card, #fff); border-left:6px solid transparent; box-shadow:0 1px 3px rgba(0,0,0,.08);}
.nb-ligne:hover, .nb-ligne[open]{border-left-color:var(--nb-bleu); box-shadow:0 4px 14px rgba(0,0,0,.12);}
.nb-ligne > summary{display:grid; grid-template-columns:72px minmax(0,1fr) auto 28px; gap:18px; align-items:center; padding:16px 20px; cursor:pointer; list-style:none;}
.nb-ligne > summary::-webkit-details-marker{display:none;}
.nb-ligne-num{font-family:var(--nb-titre); font-weight:600; font-size:24px; color:var(--nb-bleu); white-space:nowrap;}
.nb-ligne-titre{font-size:16px; font-weight:500; line-height:1.45; color:var(--ink);}
.nb-ligne-etape{font-size:11px; padding:3px 10px; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; background:var(--gold-paler); color:var(--nb-bleu-nuit);}
.nb-ligne-etape sup{font-size:.75em; line-height:0; text-transform:none;}
.nb-ligne-sanctionne{background:#1d1f20; color:#fff;}
.nb-ligne-arret{background:#fbe6ee; color:#9c2049;}
.nb-ligne-fleche{color:var(--nb-bleu); transition:transform .15s;}
.nb-ligne[open] .nb-ligne-fleche{transform:rotate(90deg);}
.nb-ligne-corps{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:start; padding:0 20px 18px 110px;}
.nb-ligne-sur{font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--nb-rouge-encre); margin:0 0 6px;}
.nb-ligne-corps p{margin:0; font-size:14px; line-height:1.55; color:var(--ink-2);}
.nb-ligne-meta{font-size:12px; line-height:1.7; color:var(--slate); white-space:nowrap;}
.nb-ligne-meta b{color:var(--ink);}
.nb-ligne-meta a{display:block; font-weight:600; color:var(--nb-bleu); text-decoration:none;}
.nb-ligne-meta a:hover{text-decoration:underline;}
html[data-theme="dark"] .nb-ligne-num, html[data-theme="dark"] .nb-ligne-fleche, html[data-theme="dark"] .nb-ligne-meta a{color:var(--gold);}
.nb-commandite-villes{margin:12px 0 0; font-size:12px; line-height:1.5; opacity:.9; color:#fff;}
@media (max-width:640px){
  .nb-ligne > summary{grid-template-columns:auto minmax(0,1fr) 22px; gap:10px 12px; padding:14px 16px;}
  .nb-ligne-etape{grid-column:2; grid-row:2; justify-self:start;}
  .nb-ligne-fleche{grid-column:3; grid-row:1;}
  .nb-ligne-corps{grid-template-columns:1fr; gap:12px; padding:0 16px 16px;}
  .nb-ligne-meta{white-space:normal;}
}

/* Mon dossier, « Pour commencer » : deux cartes (pas de projet de ville au N.-B.). */
@media (min-width:761px){ .mdr-cartes{grid-template-columns:repeat(2, minmax(0,1fr));} }

/* La feuille d'érable collée au nom, à la même distance que l'étoile (Martin, 8 nov. 2026). */
#dq-topbar .brand .maple-flip{margin-left:-6px;}
/* Manitoba FR : la feuille d'érable prend le rouge du drapeau, le « jaune » de DQ étant ici l'or du blé. */
html:not([lang="en"]) .maple-flip:not(.is-red){color:var(--nb-rouge-encre);}
/* En anglais, le « jaune » du drapeau du Manitoba est du blanc : la feuille y disparaissait sur le
   fond clair de l'en-tête. Elle prend le rouge du champ du drapeau. */
html.entete-etroite #dq-topbar .brand .maple-flip,
html.etroit #dq-topbar .brand .maple-flip{margin-left:0;}


/* ---------- LES VILLES, EN PASTILLE (Martin, 9 novembre 2026) ----------
   Le menu est sorti de la barre d'onglets pour revenir à côté du nom du site, comme chez
   DossierQuébec. Deux raisons : il ne mène pas à une section du site mais à d'AUTRES sites, et
   dans la barre il vivait dans un conteneur qui défile (nav.tabs, overflow-x:auto) — or
   overflow-x:auto force overflow-y:auto, donc le panneau qui descend sous la barre était découpé.
   Il ne s'ouvrait pas : on ne voyait qu'une barre de défilement grise en travers des onglets.

   La pastille de dq.css prend var(--gold), qui vaut le bleu du drapeau ici : on la laisse bleue et
   on la fait virer au rouge au survol. Les règles de .nav-villes (texte encre, rouge au survol)
   restent pour la version en onglet, d'où la portée .brand qui les bat sans les effacer. */
.brand .city-flip{background:var(--nb-bleu); color:#fff;}
.brand .city-flip:hover,
.brand .villes-menu[open] .city-flip{background:var(--nb-rouge); color:#fff;}
.brand .villes-menu ul{left:0; right:auto;}


/* ---------- « REPRÉSENTEZ VOTRE VILLE » (9 novembre 2026) ----------
   Le tableau des quinze villes et les quatre états relevés le 8 novembre : permission écrite
   exigée, accès bloqué, rien de publié depuis 2023, procès-verbaux numérisés. Une ville sans
   marque se livre telle quelle — on ne décore pas ce qui va bien. */
.rtv-menu{border-top:1px solid var(--line-soft); padding:12px 0 4px;}
.rtv-menu-titre{cursor:pointer; font-weight:700; font-family:var(--nb-titre); font-size:17px; color:var(--ink);}
.rtv-villes{width:100%; border-collapse:collapse; font-size:13.5px; margin-top:10px;}
.rtv-villes th{
  text-align:left; padding:6px 8px; font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--slate);
  border-bottom:1px solid var(--line-soft);
}
.rtv-villes td{padding:7px 8px; border-bottom:1px solid var(--line-soft);}
.rtv-villes th:first-child, .rtv-villes td:first-child{width:34px; color:var(--slate);}
.rtv-villes th:last-child, .rtv-villes td:last-child{text-align:right; white-space:nowrap;}
.rtv-villes-titre{margin:16px 0 0; font-size:14px;}
.rtv-archaique-legende{display:block; margin-top:4px; font-weight:400; font-size:12px; color:var(--slate);}

/* Les étiquettes d'état. */
.rtv-etat{
  display:inline-block; padding:1px 6px; border:1px solid currentColor;
  font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  white-space:nowrap; text-decoration:none;
}
.rtv-permission .rtv-etat{background:var(--nb-jaune); color:var(--sur-clair); border-color:var(--sur-clair);}
.rtv-bloquee .rtv-etat{color:var(--nb-rouge-encre); border-color:var(--nb-rouge-encre);}
.rtv-bloquee td{color:var(--slate);}
.rtv-barree td{color:var(--slate); text-decoration:line-through;}
.rtv-barree .rtv-etat{color:var(--slate); border-color:var(--slate);}
.rtv-archaique td{background:var(--paper);}
.rtv-archaique-puce{display:inline-block; width:12px; height:12px; background:var(--paper); border:1px solid var(--line-soft); vertical-align:-2px;}
.rtv-legende{list-style:none; margin:14px 0 0; padding:0; display:grid; gap:7px; font-size:12.5px; color:var(--slate);}
.rtv-legende .rtv-etat{margin-right:7px;}
.rtv-legende li{text-decoration:none;}


/* ---------- LA BASCULE DE LANGUE EN DRAPEAUX (Martin, 9 nov. 2026) ----------
   Une case, celle de l'autre langue (posée par commun/dq.js) : FR = drapeau franco-manitobain,
   EN = drapeau du Manitoba (Martin, 4 déc. 2026). */
.lang-toggle.lang-drapeaux{display:inline-flex; align-items:stretch; gap:0; padding:0; border:1px solid var(--nb-filet); background:transparent;}
.lang-toggle.lang-drapeaux:hover{background:transparent;}
.lang-drapeaux .lg{display:inline-flex; align-items:center; gap:4px; padding:4px 8px; color:var(--ink);}
.lang-drapeaux .lg b{font-family:var(--nb-titre); font-weight:600; font-size:13px; letter-spacing:.04em; margin-left:2px;}
.lang-drapeaux .lg-drapeau{display:block; height:14px; width:auto; box-shadow:0 0 0 1px rgba(0,0,0,.15);}
.lang-drapeaux:hover{border-color:var(--gold);}
.lang-drapeaux:hover .lg{color:var(--gold);}


/* ---------- LE DESIGN ANGLAIS : L'ÉCU, ET RIEN D'AUTRE (Martin, 5 déc. 2026) ----------
   Martin : « on peut mettre les couleurs du français dans les 2 langues, mais on va garder l'icône
   du drapeau de chaque, respectivement. » L'anglais n'a donc PLUS de palette à lui : il hérite de
   :root et de html[data-theme="dark"], c'est-à-dire du drapeau franco-manitobain — vert de la
   plante, or du blé, rouge de la rivière Rouge.
   Le drapeau du Manitoba reste présent, mais en IMAGE : l'écu (croix de saint Georges au-dessus du
   bison) s'affiche en couleur dans l'affiche et dans la boîte. Les quatre jetons ci-dessous ne font
   que couper le masque, puisqu'un masque n'aurait gardé que la silhouette. La bascule de langue
   continue d'afficher le drapeau de l'autre langue, et le français garde sa plante en « F ». */
html[lang="en"]{
  --nb-hero-symbole:none;
  --nb-hero-couleur:transparent;
  --nb-boite-symbole:none;
  --nb-boite-couleur:transparent;
}

/* L'en-tête : pas de fleur de lys devant le nom. */
html[lang="en"] .brand-text .brand-title::before{content:none;}

/* L'affiche : chiffres sur l'or, chapô sans surligneur (la rose vient de --nb-symbole). */
html[lang="en"] #view-apercu .hero-h1::after{right:-6px; bottom:-2px; width:250px; height:125px;}
html[lang="en"] .nb-boite.promo-accueil::after{top:-6px; right:-10px; width:130px; height:65px;}





/* « Cities » à côté du nom, en anglais : la pastille rouge, plus grosse (Martin). */
html[lang="en"] .brand .city-flip{height:32px; padding:0 16px; border-radius:16px !important; font-size:13px; gap:7px;}
html[lang="en"] .brand .city-flip::after{border-left-width:5px; border-right-width:5px; border-top-width:6px;}
/* « Villes », en français : un peu plus d'air à gauche du mot (Martin). */
html:not([lang="en"]) .brand .city-flip{padding-left:16px;}

/* N.-B. : l'icône Reddit à gauche du A−, vers r/DossierCanada (Martin, 23 nov. 2026). */
.header-ctrls > :is(.lien-reddit,.lien-benevoles){display:inline-flex; align-items:center; justify-content:center; width:26px; flex:none; background:none; border:none;}
.header-ctrls > :is(.lien-reddit,.lien-benevoles):hover{opacity:.8;}
.header-ctrls > :is(.lien-reddit,.lien-benevoles):focus-visible{outline:2px solid var(--gold); outline-offset:2px;}
/* Sur téléphone, le pourcentage cède sa place à l'icône : la rangée ne doit pas élargir la page. */
@media (max-width:480px){
  .font-size-ctrl #fontPct{display:none;}
  .font-size-ctrl button{padding:6px 7px;}
}
/* Sur téléphone, les boutons de partage passent à la ligne et le menu des villes reste dans l'écran :
   les deux élargissaient la page d'accueil (Martin, 23 nov. 2026). */
@media (max-width:480px){
  .ch-share{flex-wrap:wrap;}
  #villesMenu > ul{left:auto; right:0;}
}
/* Les projets signalés : une colonne sur téléphone, au lieu de trois colonnes de 100 px. */
@media (max-width:640px){
  #band-challenged #challengedList.ch-grid{grid-template-columns:1fr;}
}

/* N.-B. : la page des bénévoles (23 nov. 2026). */
/* La main en V : pleine en thème clair, en contour blanc en thème sombre. */
.lien-benevoles img{display:block;}
.lien-benevoles .paix-sombre{display:none;}
html[data-theme="dark"] .lien-benevoles .paix-clair{display:none;}
html[data-theme="dark"] .lien-benevoles .paix-sombre{display:block;}
.regle p a{color:inherit; font-weight:800; text-decoration:underline; text-underline-offset:3px;}
.benevoles-action{margin:26px 0 0;}
.benevoles-action a{display:inline-block; padding:12px 20px; background:var(--nb-rouge); color:#fff; font-weight:800; text-decoration:none;}
.benevoles-action a:hover{background:var(--nb-rouge-fonce);}
.benevoles-titre{margin:44px 0 0; font-family:var(--nb-titre); font-size:30px; line-height:1.1; text-transform:uppercase; color:var(--ink);}

/* N.-B. (Martin, 3 déc. 2026) : la bande des projets les plus consultés. */
#view-apercu .nb-avis-petition[hidden]{display:none;}
#view-apercu .nb-avis-vues::before{content:'i'; font-style:italic;}
#view-apercu .ch-badge.ch-rang{color:var(--nb-bleu);}
html[data-theme="dark"] #view-apercu .ch-badge.ch-rang{color:var(--gold);}
#view-apercu .ch-badge.ch-recent{font-size:15px; text-transform:uppercase; letter-spacing:.04em; color:var(--slate);}

/* N.-B. (Martin, 3 déc. 2026) : « Quoi de neuf » montre les motions ; un clic ouvre la source.
   Le bloc vit sur la bande bleue (#band-actu) : texte blanc, repères en or, comme les autres lignes du fil. */
.news-body .nb-motion + .nb-motion{margin-top:10px;}
.nb-motion summary{cursor:pointer; font-size:13.5px; line-height:1.55; color:var(--ink); list-style:none; padding-left:20px; position:relative;}
#band-actu .nb-motion summary{font-size:15px; color:#fff;}
.nb-motion summary::-webkit-details-marker{display:none;}
.nb-motion summary::before{content:'+'; position:absolute; left:0; top:0; font-weight:700; color:var(--gold);}
.nb-motion[open] summary::before{content:'−';}
.nb-motion summary:hover{text-decoration:underline;}
.nb-motion summary:focus-visible{outline:2px solid var(--gold); outline-offset:2px;}
.nb-motion-corps{margin:10px 0 6px 20px; font-size:14px; line-height:1.55; color:var(--ink);}
#band-actu .nb-motion-corps{color:#fff;}
.nb-motion-corps p{margin:0 0 8px;}
#band-actu .nb-motion-corps p{font-size:14px; color:#fff;}
#band-actu .nb-motion-corps p.nb-motion-source{font-size:12.5px;}
.nb-motion-source a{color:inherit; text-decoration:underline;}
/* Sur la bande bleue, --gold vaut le bleu du N.-B. : le jaune des dates du fil. */
#band-actu .nb-motion summary::before{color:var(--nb-jaune);}
#band-actu .nb-motion summary:focus-visible{outline-color:var(--nb-jaune);}
/* Martin (3 déc. 2026) : la source surlignée en jaune, texte bleu foncé. */
#band-actu .nb-motion-corps p.nb-motion-source{display:inline-block; background:var(--nb-jaune); color:var(--nb-bleu); padding:2px 6px; font-size:13px;}
#band-actu .nb-motion-source a{color:var(--nb-bleu);}

/* Manitoba FR, thème sombre : le surligneur garde l'or du blé, mais le texte dessus reste
   l'encre foncée — du blanc sur ce jaune tomberait sous 2:1. */
html[data-theme="dark"]:not([lang="en"]){--nb-surligne:#f7cd05;}
html[data-theme="dark"]:not([lang="en"]) #view-apercu .hero-manifesto p b{color:#1d1f20;}

/* Manitoba FR (Martin, 4 déc. 2026) : la plante du drapeau franco-manitobain, blanche, dans
   l'affiche verte. Elle est posée en filigrane (opacité .4) : à pleine opacité, du blanc sur du
   blanc, elle avalait la fin de « qui vote quoi ».
   La bande des chiffres reste nette. Le drapeau franco-manitobain n'a qu'un symbole, pas deux
   comme celui de l'Alberta ; la rose qui remplissait ce coin passait par-dessus
   « SESSIONS COUVERTES ». */
html:not([lang="en"]) #view-apercu .hero-h1::after{background:#fff; opacity:.4; right:30px; bottom:30px; width:104px; height:144px;
  -webkit-mask:var(--nb-plante) center / contain no-repeat; mask:var(--nb-plante) center / contain no-repeat;}
@media (max-width:900px){ html:not([lang="en"]) #view-apercu .hero-h1::after{width:62px; height:86px; right:16px; bottom:16px;} }

/* Manitoba EN (Martin, 4 déc. 2026) : l'écu du drapeau du Manitoba — la croix de saint Georges
   au-dessus du bison — en couleur, en bas à droite de l'affiche rouge. Pas de masque : l'écu
   s'affiche tel qu'il est sur le drapeau. */
/* L'affiche anglaise se creuse par le bas : l'écu s'affiche en couleur, pas en filigrane, donc il
   ne peut pas passer derrière le texte comme la plante française. Sans cette réserve, il couvrait
   « who legislates, who votes what ». */
html[lang="en"] #view-apercu .hero-h1{padding-bottom:140px;}
html[lang="en"] #view-apercu .hero-h1::after{right:28px; bottom:16px; width:104px; height:124px;
  -webkit-mask:none; mask:none; opacity:1; background:var(--nb-ecu) center / contain no-repeat;}
html[lang="en"] .nb-boite.promo-accueil::after{top:-10px; right:-10px; width:92px; height:110px;
  -webkit-mask:none; mask:none; background:var(--nb-ecu) center / contain no-repeat;}
@media (max-width:900px){ html[lang="en"] #view-apercu .hero-h1{padding-bottom:96px;}
  html[lang="en"] #view-apercu .hero-h1::after{width:70px; height:84px; right:16px; bottom:10px;} }

/* ==========================================================================================
   4 DÉCEMBRE 2026 — CE QUI BOUGEAIT SELON LA LARGEUR (audit de Clara, demandé par Martin).
   Tout a été mesuré dans un vrai navigateur, de 300 à 1920 px, au pas de 1 px autour des
   seuils (340, 375, 420, 641, 780, 901 et le passage à une rangée), en français comme en
   anglais, en clair
   et en sombre, et au bouton A+ à 80, 100, 120 et 150 %.
   Rien ici ne change une couleur ni un texte.
   ========================================================================================== */

/* 1. LE TITRE DE L'AFFICHE SE FAISAIT TRANCHER AU ZOOM A+.
   Sa taille était clamp(38px, 5vw, 64px). L'unité vw mesure la FENÊTRE, qui ne rétrécit pas
   quand A+ rapetisse la mise en page : à 120 % et plus, entre 1000 et 1440 px de fenêtre,
   « L'ASSEMBLÉE » et « LÉGISLATIVE » étaient coupés net au bord de la colonne verte, que
   overflow:hidden découpe. #view-apercu est déjà déclaré conteneur (container-type:inline-size),
   alors cqw suit la largeur RÉELLEMENT disponible, zoom compris.
   Sous 901 px, l'affiche prend toute la largeur et le titre n'a jamais été coupé, même à
   150 % : on y laisse 5vw, pour que A+ continue d'y grossir le texte. Au-dessus de 901 px, la
   colonne du titre vaut le tiers du conteneur moins 88 px de marges. Le coefficient redonne la
   taille actuelle à 100 % : identique à partir de 1280 px, 3 % plus petit vers 1000 px, et plus
   petit de 8 % à 901 px, où l'ancienne taille frôlait déjà le bord. */
@media (min-width:901px){
  #view-apercu .hero-h1{font-size:clamp(30px, calc(7.15cqw - 18.9px), 64px);}
}

/* 2. LA BANDE D'ÉTAT ÉLARGISSAIT LA PAGE EN FRANÇAIS SOUS 340 px.
   « Le drapeau franco-manitobain ↗ » est en white-space:nowrap dans une rangée qui ne passe
   pas à la ligne : de 300 à 339 px, la page gagnait jusqu'à 41 px de défilement horizontal.
   L'anglais, plus court, passait au travers. La rangée passe à la ligne et le lien aussi. */
#view-apercu .calendar-box.nb-etat{flex-wrap:wrap; row-gap:6px;}
#view-apercu .calendar-box .hero-drapeau, #view-apercu .calendar-box > a{white-space:normal;}

/* 3. LA RANGÉE DES ONGLETS SORTAIT DE LA PAGE.
   Au-dessus de 640 px, les onglets ne défilent plus (voir plus haut : la liste des villes y
   était coupée) — mais rien ne les faisait passer à la ligne non plus. Quand ils ne tenaient
   pas sur leur rangée (fenêtre de 641 à 780 px au zoom 150 %), « Mon dossier » dépassait du
   bord droit et toute la page gagnait une barre de défilement horizontale. Ils reviennent à
   la ligne. Sur une rangée, commun/dq.js garantit déjà qu'ils tiennent : rien ne change. */
@media (min-width:641px){ #dq-topbar nav.tabs{flex-wrap:wrap; row-gap:2px;} }

/* 4. L'EN-TÊTE PASSAIT À TROIS RANGÉES ENTRE 641 ET 644 px.
   À 641 px le menu du téléphone s'efface et l'en-tête passe à deux rangées, mais le logo et
   les boutons réclamaient 589 px là où il n'en restait que 586 : les boutons tombaient sur
   une rangée à eux, l'en-tête grimpait de 104 à 140 px puis redescendait à 645 px. Dans cette
   plage l'en-tête est toujours sur deux rangées, et l'écart entre le logo et les boutons ne se
   voit pas : une marge automatique pousse déjà les boutons au bord droit. On le met donc à
   zéro — 12 px gagnés, il en manquait 3, et rien ne bouge à l'écran.
   ⚠️ Cette règle ne doit JAMAIS dépendre de .entete-deux-rangees : commun/dq.js lit cet écart
   pour décider du nombre de rangées, et la classe se serait mise à clignoter d'un pixel à
   l'autre — essayé, l'en-tête sautait de 61 à 104 px à chaque pixel autour de 1100. */
@media (min-width:641px) and (max-width:780px){ #dq-topbar header.top{column-gap:0;} }

/* 5. LES BOUTONS DE PARTAGE DES PROJETS SIGNALÉS élargissaient la page eux aussi. Ils passaient
   déjà à la ligne, mais seulement sous 480 px de FENÊTRE — pas au zoom A+, qui rétrécit la mise
   en page sans toucher à la fenêtre. Ils passent à la ligne dès qu'ils ne tiennent pas. */
.ch-share{flex-wrap:wrap;}

/* 6. LES BOUTONS DE L'EN-TÊTE SUR TÉLÉPHONE : 44 px.
   Même correctif que DossierQuébec le 4 décembre 2026. Les carrés du zoom faisaient 28 px, le
   thème 30, Reddit et la main 26 : trop petits pour un pouce. Ils montent à 44 px.
   Pourquoi à partir de 375 px et pas plus bas : à 44 px, les six contrôles plus leurs écarts
   réclament 336 px, et un écran de 360 px n'en offre que 324 une fois les marges enlevées — la
   rangée se cassait en deux et la barre collante passait de 115 à 181 px de haut. Sous 375 px,
   on garde donc les contrôles compacts d'avant. */
@media (min-width:375px) and (max-width:640px){
  :root{--h-ctrl:44px;}
  .header-ctrls{flex-wrap:wrap; justify-content:flex-end; gap:1px; max-width:100%;}
  .header-ctrls > :is(.lien-reddit,.lien-benevoles){width:44px; height:44px;}
  .font-size-ctrl{gap:0; padding:0;}
  .font-size-ctrl button{width:44px; min-width:44px; height:44px; min-height:44px; padding:0;}
  .font-size-ctrl #fontPct{line-height:44px;}
  .theme-toggle{width:44px; height:44px;}
  .lang-toggle{min-height:44px; height:44px; padding:0 4px;}
  .hamburger{width:44px; height:44px;}
  #dq-topbar .brand .maple-flip{min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center;}
}

/* 7. FILET DE SÛRETÉ POUR LE TITRE DE L'AFFICHE.
   Au-dessus de 901 px de fenêtre, la maquette passe à trois colonnes — mais c'est la FENÊTRE
   qui déclenche ce passage, pas la place réellement disponible. À 150 %, une fenêtre de 910 px
   n'offre plus que 105 px de colonne : aucune taille de titre ne peut y faire tenir
   « LÉGISLATIVE ». Plutôt que de laisser overflow:hidden trancher le mot, on autorise la
   coupure — elle ne se déclenche que lorsqu'un mot ne tient pas seul sur sa ligne, donc
   jamais aux tailles normales. */
#view-apercu .hero-h1{overflow-wrap:break-word;}

/* 8. LA LISTE DES VILLES SORTAIT DE LA PAGE À DROITE.
   Elle s'alignait sur le bord GAUCHE de la pastille et ne revenait à droite que sous 480 px
   de fenêtre : au zoom A+, la fenêtre reste large et la règle ne s'appliquait pas, si bien que
   le panneau dépassait le bord droit entre 550 et 640 px à 150 %. La pastille vit à gauche de
   l'en-tête : sur les fenêtres étroites, le panneau se cale sur son bord droit et reste dans la
   page. Au-dessus de 700 px il garde son alignement d'origine, à gauche de la pastille. */
@media (max-width:700px){ #dq-topbar .brand .villes-menu ul{left:auto; right:0;} }

/* 9. LES LIENS DE LA LISTE DES VILLES sur téléphone : 44 px eux aussi. */
@media (max-width:640px){
  #dq-topbar .villes-menu ul a{display:flex; align-items:center; min-height:44px;}
}

/* 10. TRÈS PETITE LARGEUR UTILE (téléphone au zoom A+ : un écran de 375 px à 150 % ne laisse
   que 250 px à la mise en page). Les trois chiffres côte à côte réclamaient 291 px pour 200 :
   le « 4 » des sessions sortait de l'écran et la page gagnait jusqu'à 137 px de défilement
   horizontal. On les empile. La classe .etroit est posée par commun/dq.js d'après la largeur
   RÉELLE, zoom compris : une media query, elle, ne verrait que la fenêtre. */
html.etroit #view-apercu .stat-band{grid-template-columns:1fr; gap:10px;}
html.etroit #view-apercu .stat-cell + .stat-cell{border-left:0; border-top:1px solid rgba(255,255,255,.35); padding-left:0; padding-top:12px;}

/* 11. ET LA LISTE DES VILLES, à ces largeurs-là, ne peut plus s'aligner sur la pastille du tout :
   elle est plus large que la place qui reste à sa gauche, et plus large que l'écran si elle part
   vers la droite. Sous 420 px de largeur utile, elle descend donc sous la barre et se cale sur le
   bord droit de la barre, pas sur la pastille. #dq-topbar est collant, donc il sert d'ancrage. */
html.entete-etroite #dq-topbar .brand .villes-menu{position:static;}
html.entete-etroite #dq-topbar .brand .villes-menu ul{top:calc(100% + 4px); left:auto; right:16px;}

/* 12. LA PASTILLE D'ÉTAPE DES PROJETS DE LOI est en une seule ligne, insécable. En dessous de
   360 px de largeur utile (un écran de 320 px au zoom A+, par exemple), « SANCTIONNÉ LE … » est
   plus large que l'écran et élargissait la page. Elle passe à la ligne à ces largeurs-là. */
html.etroit .nb-ligne-etape{white-space:normal;}

/* 13. LES TITRES DES PROJETS DE LOI dans la liste de l'accueil. Les noms anglais sont longs
   (« The Indigenous Heritage Month Act ») et, à très petite largeur utile, un seul mot
   dépassait sa colonne et élargissait toute la page. La coupure ne se déclenche que lorsqu'un
   mot ne tient pas seul sur sa ligne : rien ne change aux largeurs normales. */
.nb-ligne-titre{min-width:0; overflow-wrap:break-word;}

/* 14. SUR TÉLÉPHONE, LA RANGÉE DES BOUTONS tombait collée à gauche, sous le logo, avec un grand
   vide à sa droite — jusqu'à 270 px de vide sur une fenêtre de 638 px. Elle se cale à droite,
   comme elle le fait déjà sur l'en-tête à deux rangées des écrans plus larges. */
@media (max-width:640px){ #dq-topbar .header-ctrls{margin-left:auto;} }

/* ==========================================================================================
   LE MENU DU TÉLÉPHONE : DES RANGÉES PLEINE LARGEUR (Martin, 4 déc. 2026)
   Le panneau du hamburger prend tout l'écran, mais ses cinq liens gardaient la mise en page
   de la barre d'onglets : hauts de 32 px et cliquables seulement sur la largeur du texte —
   de 70 à 115 px dans un panneau de 375. À côté d'un lien, le doigt tombait dans le vide.
   Chaque rangée prend maintenant toute la largeur et 44 px de haut, le minimum pour un pouce,
   avec un filet entre elles pour qu'on voie où l'une finit. Portée au panneau OUVERT seulement
   (nav.tabs.open), donc la barre d'onglets des grandes largeurs ne bouge pas.
   ========================================================================================== */
@media (max-width:640px){
  /* dq.css centre les onglets de la barre avec justify-content:center. Le panneau du
     téléphone, lui, est une COLONNE : la même ligne y centrait tout verticalement, et le
     « Fermer » flottait au milieu de l'écran avec 310 px de vide au-dessus. */
  #dq-topbar nav.tabs.open{justify-content:flex-start; gap:0; padding:16px 0 40px;}
  nav.tabs.open a{
    display:flex; align-items:center; width:100%; box-sizing:border-box;
    min-height:44px; padding:11px 20px; font-size:16px;
    border-bottom:1px solid var(--line-soft);
  }
  nav.tabs.open a:first-of-type{border-top:1px solid var(--line-soft);}
  nav.tabs.open a.active{background:var(--gold-soft); color:var(--gold);}
  nav.tabs.open a .n{font-size:12px; margin-right:8px;}
  /* « Fermer », au-dessus de la liste : une cible de 44 px elle aussi. */
  nav.tabs.open .close-menu{width:100%; box-sizing:border-box; min-height:44px; align-items:center; justify-content:flex-end; padding:0 20px 8px;}
}

/* ===== 5 déc. 2026 : audit de Clara (repris de DQ et de l'Alberta) ===== */
/* Lien « Aller au contenu » : caché jusqu'à la première touche Tab. */
.saut-contenu{position:fixed; left:8px; top:-80px; z-index:2147483001; padding:10px 16px; background:#FFD24D; color:#131313; font-weight:700; border:2px solid #131313; text-decoration:none;}
.saut-contenu:focus{top:8px;}
#contenu:focus{outline:none;}

/* Téléphone : cibles d'au moins 44 px et texte courant à 16 px. */
@media (max-width:640px){
  :root{--h-ctrl:44px;}
  .header-ctrls > .lien-benevoles{width:44px; height:44px;}
  .font-size-ctrl{padding:0; gap:0;}
  .font-size-ctrl button{min-width:44px; min-height:44px; padding:0;}
  .hamburger{width:44px; height:44px;}
  .header-ctrls > .lang-toggle{padding:0 6px;}
  .maple-flip{min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center;}
  .footer-nav a, .footer-gh, .footer-etmoi{display:inline-flex; align-items:center; min-height:44px;}
  .footer-fb{min-width:44px; justify-content:center;}
  .promo-mes-dossiers, .sort-toggle, .bill-more, .account-btn{min-height:44px; display:inline-flex; align-items:center;}
  .app :is(p, li, .sub, .motion-meta, .db-vote-objet, .db-suite, .apercu-titre){font-size:16px;}
  .app :is(.apercu-note, .motion-etape, .db-votes-titre, .db-tag, .motion-res, .db-vote-res, .tag, small, .sort-toggle){font-size:13px;}
}

/* Téléphone : l'en-tête sur une rangée, les réglages au bas du menu ☰ (déplacés par dq.js). */
@media (max-width:640px){
  .header-ctrls{flex-wrap:nowrap; flex:0 0 auto; margin-left:auto; gap:1px;}
  header.top{flex-wrap:nowrap; column-gap:8px;}
  .brand{flex-wrap:nowrap; gap:4px; min-width:0;}
  .maple-flip{margin-left:0;}
  nav.tabs .menu-reglages{display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px;
    width:min(320px, calc(100% - 48px)); margin:18px auto 0; padding-top:18px; border-top:2px solid var(--ink);}
  nav.tabs .menu-reglages > *{display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
    min-width:44px; height:44px; padding:0 10px; margin:0; border:2px solid var(--ink); background:var(--card); color:var(--ink);}
  nav.tabs .menu-reglages a{text-align:center; font-size:inherit;}
  nav.tabs .menu-reglages .font-size-ctrl{padding:0 4px; gap:2px;}
  nav.tabs .menu-reglages .font-size-ctrl button{min-width:40px; min-height:40px; border:0; background:transparent;}
  nav.tabs .menu-reglages .lang-toggle{font-weight:700; font-size:13px;}
  html.entete-etroite #dq-topbar .brand{flex-wrap:nowrap; gap:4px;}
  html.entete-etroite:not(.etroit) .brand-text .brand-title{font-size:17px;}
  html.entete-etroite .maple-flip{min-width:30px; margin-left:0;}
  html.entete-etroite .villes-menu{margin-left:4px;}
}
/* Sous 360 px (.etroit), le logo, la feuille, Villes et ☰ restent sur une rangée. */
html.etroit #dq-topbar .brand{flex-wrap:nowrap; gap:4px;}
html.etroit .villes-menu{margin-left:2px;}
html.etroit .maple-flip{margin-left:0; min-width:28px;}
html.etroit .maple-flip svg{width:24px; height:24px;}
html.etroit #dq-topbar header.top{padding-left:10px; padding-right:10px; column-gap:6px;}
html.etroit .brand-text .brand-title{font-size:15px;}
html.etroit .city-flip{padding:0 6px;}

/* Page S'impliquer : la liste des autres façons. */
.benevoles-autres{margin:14px 0 0; padding-left:20px; max-width:68ch;}
.benevoles-autres li{margin:0 0 10px; line-height:1.5;}

/* Accueil, téléphone : les chiffres clés montent juste sous le grand titre. L'affiche se « dissout »
   (display:contents) pour que ses blocs et la bande de chiffres s'ordonnent ensemble. Ordinateur inchangé. */
@media (max-width:900px){
  #view-apercu{display:flex; flex-direction:column;}
  #view-apercu > *{order:10;}
  #view-apercu > .hero-poster{display:contents;}
  #view-apercu .hero-poster > *{margin-inline:calc(-1 * var(--nb-gouttiere));}
  #view-apercu .hero-session{order:1;}
  #view-apercu .hero-h1{order:2;}
  #view-apercu > .stat-band{order:3;}
  #view-apercu .hero-row{order:4;}
}

/* Fiche de projet de loi : le numéro et le titre ne glissent plus sous l'en-tête collant. */
.bill{scroll-margin-top:84px;}
@media (min-width:641px){ .bill{scroll-margin-top:var(--entete-h, 130px);} }
