/* ═══════════════════════════════════════════════════════════════════════
   SUIVI DES LOIS — Québec et Canada (ajout du 9 octobre 2026)
   Feuille autonome, aux couleurs du site ; mode sombre compris.
   ═══════════════════════════════════════════════════════════════════════ */
.lo {
  --lo-royal: #0033a0; --lo-deep: #001f6b; --lo-soft: #e7edf8; --lo-encre: #0b1730; --lo-gris: #4a5870;
  --lo-trait: #d5dcea; --lo-papier: #fff; --lo-fond: #f4f6fb; --lo-vert: #1e7a4c; --lo-acc: #0033a0;
  background: var(--lo-fond); color: var(--lo-encre);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.55;
  padding-bottom: 3.5rem; overflow-wrap: anywhere;
}
html.sombre .lo { --lo-soft: #1a2c55; --lo-encre: #e8edf6; --lo-gris: #a9b5ca; --lo-trait: #27364f; --lo-papier: #131d31; --lo-fond: #0b1220; --lo-acc: #8fb1f6; }
.lo *, .lo *::before, .lo *::after { box-sizing: border-box; }
.lo [hidden] { display: none !important; }
.lo-wrap { max-width: 74rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .lo-wrap { padding: 0 1.5rem; } }

/* En-tête : les parlements au trait */
.lo-hero { position: relative; overflow: hidden; color: #fff; padding: 2.8rem 0 0;
  background: radial-gradient(120% 100% at 50% 0%, #0b44bd 0%, #002680 45%, #00143f 100%); }
html.sombre .lo-hero { background: radial-gradient(120% 100% at 50% 0%, #0a2f86 0%, #061d5a 45%, #030b22 100%); }
.lo-etoiles { position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 85% 45%, rgba(255,255,255,.35), transparent), radial-gradient(1px 1px at 40% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 8% 60%, rgba(255,255,255,.3), transparent), radial-gradient(1px 1px at 55% 8%, rgba(255,255,255,.35), transparent); }
.lo-txt { position: relative; z-index: 2; text-align: center; max-width: 46rem; margin: 0 auto; }
.lo-kick { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.lo-h1 { margin: .5rem 0 .6rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.04; }
.lo-txt p { margin: 0 auto; max-width: 38rem; color: rgba(255,255,255,.86); }
.lo-txt .lo-maj { margin-top: .7rem; font-size: .8rem; color: rgba(255,255,255,.62); }
.lo-scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: end; margin-top: 1.4rem; color: #fff; }
.lo-scene figure { margin: 0; text-align: center; }
.lo-scene svg { width: 100%; height: auto; display: block; }
.lo-scene figcaption { margin: .4rem 0 2.6rem; font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.lo-sol { height: 6px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
@media (max-width: 700px) { .lo-scene { gap: .8rem; } .lo-scene figcaption { font-size: .55rem; letter-spacing: .1em; } }

/* Dessins : tracés qui se dessinent, détails qui suivent, drapeau qui flotte */
.lo svg path.tg, .lo svg path.tf, .lo svg path.tt { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lo-dessine 2.6s ease forwards; }
.lo svg path.tf { opacity: .8; animation-delay: .5s; }
.lo svg path.tt { opacity: .5; animation-delay: 1s; animation-duration: 2s; }
.lo svg .drapeau { transform-box: fill-box; transform-origin: 0 50%; opacity: 0; animation: lo-apparait .5s 2.2s forwards, lo-flotte 3s 2.2s ease-in-out infinite; }
@keyframes lo-dessine { to { stroke-dashoffset: 0; } }
@keyframes lo-apparait { to { opacity: 1; } }
@keyframes lo-flotte { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(5deg) scaleX(.9); } }

/* Chiffres */
.lo-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: -1.8rem 0 1.2rem; position: relative; z-index: 3; }
.lo-ch { background: var(--lo-papier); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 0 0 1px var(--lo-trait), 0 10px 26px rgba(11,23,48,.08); }
.lo-ch b { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.3rem; line-height: 1; color: var(--lo-acc); }
.lo-ch span { font-size: .8rem; font-weight: 700; color: var(--lo-gris); }
@media (max-width: 760px) { .lo-chiffres { grid-template-columns: 1fr 1fr; gap: .6rem; } }

/* Fil « En direct » */
.lo-fil { display: flex; gap: .8rem; align-items: center; background: var(--lo-papier); border-radius: 14px; box-shadow: 0 0 0 1px var(--lo-trait);
  padding: .65rem 1rem; margin-bottom: 1.3rem; font-size: .86rem; }
.lo-eti { flex: none; display: flex; gap: .4rem; align-items: center; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--lo-royal); padding: .25rem .6rem; border-radius: 99px; }
.lo-eti i { width: 7px; height: 7px; border-radius: 50%; background: #7dffb0; animation: lo-clignote 1.6s infinite; }
@keyframes lo-clignote { 50% { opacity: .3; } }
.lo-fil-in { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.lo-defile { display: flex; gap: 2.6rem; white-space: nowrap; width: max-content; animation: lo-defile 60s linear infinite; }
.lo-fil:hover .lo-defile { animation-play-state: paused; }
@keyframes lo-defile { to { transform: translateX(-50%); } }

/* Onglets, filtres, recherche */
.lo-barre-outils { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.3rem; }
.lo-tabs { display: inline-flex; background: var(--lo-papier); border-radius: 99px; padding: .3rem; box-shadow: 0 0 0 1px var(--lo-trait); }
.lo-tabs button { border: 0; background: none; font: inherit; font-weight: 800; font-size: .9rem; color: var(--lo-gris); padding: .55rem 1.1rem;
  border-radius: 99px; display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; transition: background .25s, color .25s; min-height: 40px; }
.lo-tabs button.on { background: var(--lo-royal); color: #fff; }
.lo-filtres { display: flex; flex-wrap: wrap; gap: .4rem; }
.lo-f { border: 1px solid var(--lo-trait); background: var(--lo-papier); color: var(--lo-gris); font: inherit; font-size: .82rem; font-weight: 700;
  padding: .4rem .85rem; border-radius: 99px; cursor: pointer; min-height: 36px; }
.lo-f[aria-pressed="true"] { background: var(--lo-soft); color: var(--lo-acc); border-color: transparent; }
.lo-q { margin-left: auto; min-width: 14rem; padding: .55rem .9rem; border-radius: 99px; border: 1px solid var(--lo-trait);
  background: var(--lo-papier); color: var(--lo-encre); font: inherit; font-size: 16px; }
@media (max-width: 760px) { .lo-q { margin-left: 0; width: 100%; } .lo-tabs { width: 100%; } .lo-tabs button { flex: 1; justify-content: center; padding: .5rem .4rem; } }

/* Colonnes */
.lo-col { display: grid; gap: 2rem; }
@media (min-width: 1040px) { .lo-col { grid-template-columns: 1fr 1fr; align-items: start; } .lo-col.une { grid-template-columns: 1fr; } }
.lo-colt { display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; }
.lo-colt > svg { width: 44px; height: 44px; color: var(--lo-acc); flex: none; }
.lo-colt h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.95rem; font-weight: 600; margin: 0; line-height: 1; }
.lo-colt small { display: block; margin-top: .2rem; font-family: "Manrope", sans-serif; font-size: .78rem; color: var(--lo-gris); font-weight: 700; }
.lo-avis { background: #fdf8ec; border: 1px solid #e8d9b0; color: #7a5600; border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1rem; font-size: .9rem; }
html.sombre .lo-avis { background: #2a2210; border-color: #4d3f1c; color: #f1d79a; }
.lo-legende { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; background: var(--lo-papier); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--lo-trait); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .8rem; font-weight: 700; color: var(--lo-gris); }
.lo-legende span { display: inline-flex; align-items: center; gap: .35rem; }
.lo-legende svg { width: 22px; height: 22px; color: var(--lo-acc); }
.lo-fl { color: var(--lo-gris); opacity: .7; }

/* Les trois paliers fédéraux, illustrés */
.lo-paliers { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .5rem; align-items: center; background: var(--lo-papier);
  border-radius: 16px; box-shadow: 0 0 0 1px var(--lo-trait); padding: 1rem; margin-bottom: 1rem; }
.lo-palier { text-align: center; color: var(--lo-acc); }
.lo-palier svg { width: 100%; max-width: 11rem; height: auto; display: block; margin: 0 auto .3rem; }
.lo-palier b { display: block; color: var(--lo-encre); font-size: .86rem; }
.lo-palier span { display: block; font-size: .72rem; color: var(--lo-gris); font-weight: 600; }
@media (max-width: 520px) { .lo-paliers { padding: .7rem .4rem; gap: .2rem; } .lo-palier b { font-size: .72rem; } .lo-palier span { font-size: .62rem; } }

/* Cartes des projets */
.lo-loi { background: var(--lo-papier); border-radius: 18px; box-shadow: 0 0 0 1px var(--lo-trait), 0 4px 14px rgba(11,23,48,.04);
  padding: 1.25rem 1.35rem; margin-bottom: 1rem; transition: box-shadow .2s, transform .2s; }
.lo-loi:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #9fb3dc, 0 14px 30px -14px rgba(0,31,107,.35); }
.lo-js .lo-loi { opacity: 0; transform: translateY(14px); }
.lo-js .lo-loi.vu { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease, box-shadow .2s; }
.lo-tete { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.lo-num { font-weight: 800; font-size: .8rem; padding: .2rem .6rem; border-radius: 6px; background: var(--lo-deep); color: #fff; }
html.sombre .lo-num { background: #2a4a9a; }
.lo-typ { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lo-gris); }
.lo-st { margin-left: auto; font-size: .74rem; font-weight: 800; padding: .25rem .65rem; border-radius: 99px; }
.lo-st.cours { background: #fdf3dc; color: #8a6100; } .lo-st.ok { background: #e3f5eb; color: var(--lo-vert); } .lo-st.mort { background: #eef0f4; color: #5d6b84; }
html.sombre .lo-st.cours { background: #3a2a0d; color: #f1cf8c; } html.sombre .lo-st.ok { background: #0f3324; color: #8fe0b8; } html.sombre .lo-st.mort { background: #1e2738; color: #9aa6bd; }
.lo-h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; line-height: 1.2; margin: .55rem 0 .3rem; font-weight: 600; }
.lo-res { color: var(--lo-gris); margin: .2rem 0 1.1rem; font-size: .93rem; }
.lo-res b { color: var(--lo-encre); }
.lo-res-vide { font-style: italic; }

/* Barre d'étapes animée : elle se remplit quand la carte arrive à l'écran */
.lo-prog { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.lo-rail, .lo-rail-plein { position: absolute; top: 1.42rem; height: 4px; border-radius: 4px; left: calc(50% / var(--n)); }
.lo-rail { right: calc(50% / var(--n)); background: var(--lo-trait); }
.lo-rail-plein { width: calc((100% - 100% / var(--n)) * var(--fait)); background: linear-gradient(90deg, #0033a0, #4f7fe0); transform-origin: 0 50%; }
.lo-js .lo-rail-plein { transform: scaleX(0); }
.lo-js .vu .lo-rail-plein { transform: scaleX(1); transition: transform 1.3s .2s cubic-bezier(.6,0,.2,1); }
.lo-et { position: relative; text-align: center; font-size: .76rem; font-weight: 700; color: var(--lo-gris); padding-top: 3.35rem; }
.lo-ic { position: absolute; top: 0; left: 50%; margin-left: -1.5rem; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--lo-papier); box-shadow: 0 0 0 2px var(--lo-trait); color: var(--lo-gris); transition: background .35s, color .35s, box-shadow .35s; }
.lo-ic svg { width: 1.6rem; height: 1.6rem; }
.lo-et.fait .lo-ic { background: var(--lo-royal); color: #fff; box-shadow: 0 0 0 2px var(--lo-royal); }
.lo-js .lo-loi:not(.vu) .lo-et.fait .lo-ic { background: var(--lo-papier); color: var(--lo-gris); box-shadow: 0 0 0 2px var(--lo-trait); }
.lo-js .vu .lo-et:nth-child(3) .lo-ic { transition-delay: .25s; } .lo-js .vu .lo-et:nth-child(4) .lo-ic { transition-delay: .55s; }
.lo-js .vu .lo-et:nth-child(5) .lo-ic { transition-delay: .85s; } .lo-js .vu .lo-et:nth-child(6) .lo-ic { transition-delay: 1.15s; }
.lo-js .vu .lo-et:nth-child(7) .lo-ic { transition-delay: 1.45s; }
.lo-et.ici .lo-ic { color: var(--lo-acc); box-shadow: 0 0 0 3px var(--lo-royal); }
.lo-loi.vu .lo-et.ici .lo-ic, .lo:not(.lo-js) .lo-et.ici .lo-ic { animation: lo-pouls 2s 1.4s infinite; }
@keyframes lo-pouls { 0% { box-shadow: 0 0 0 3px var(--lo-royal), 0 0 0 0 rgba(0,51,160,.4); } 70% { box-shadow: 0 0 0 3px var(--lo-royal), 0 0 0 14px rgba(0,51,160,0); } 100% { box-shadow: 0 0 0 3px var(--lo-royal), 0 0 0 0 rgba(0,51,160,0); } }
.lo-et.arret .lo-ic { box-shadow: 0 0 0 2px #9aa6bd; color: #9aa6bd; background: var(--lo-papier); }
.lo-et.fait, .lo-et.ici { color: var(--lo-encre); }
.lo-lib { display: block; }
.lo-et small { display: block; font-weight: 600; color: var(--lo-gris); font-size: .68rem; line-height: 1.3; margin-top: .1rem; }
.lo-pied { display: flex; gap: .4rem 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--lo-trait); font-size: .8rem; color: var(--lo-gris); }
.lo-pied a { color: var(--lo-acc); font-weight: 700; text-decoration: none; margin-left: auto; }
@media (max-width: 600px) {
  .lo-loi { padding: 1.05rem 1rem; } .lo-st { margin-left: 0; }
  .lo-et { font-size: .62rem; padding-top: 2.9rem; } .lo-et small { font-size: .58rem; }
  .lo-ic { width: 2.4rem; height: 2.4rem; margin-left: -1.2rem; } .lo-ic svg { width: 1.25rem; height: 1.25rem; }
  .lo-rail, .lo-rail-plein { top: 1.12rem; }
}
.lo-vide, .lo-aucun { text-align: center; color: var(--lo-gris); padding: 1.5rem 0; }
.lo-note { margin-top: 2rem; font-size: .84rem; color: var(--lo-gris); max-width: 52rem; }

@media (prefers-reduced-motion: reduce) {
  .lo *, .lo *::before { animation: none !important; transition: none !important; }
  .lo svg path.tg, .lo svg path.tf, .lo svg path.tt { stroke-dashoffset: 0; }
  .lo svg .drapeau { opacity: 1; }
  .lo-js .lo-loi { opacity: 1; transform: none; } .lo-js .lo-rail-plein { transform: none; }
}
@media print { .lo-hero, .lo-fil, .lo-barre-outils { display: none; } .lo-loi { break-inside: avoid; box-shadow: none; border: 1px solid #999; } }

/* Recherche : compteur et surlignage (9 octobre au soir) */
.lo-n { font-size: .8rem; color: var(--lo-muted, #5b6478); white-space: nowrap; align-self: center; }
.lo-h3 mark { background: #fff2a8; color: inherit; border-radius: 3px; padding: 0 2px; }
html.sombre .lo-h3 mark { background: #8a6d00; color: #fff; }

/* F8 · « Me prévenir » */
.lo-alerte { display: flex; gap: .4rem; align-items: center; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--lo-trait, #dfe5f1); }
.lo-alerte input[type="email"] { flex: 1; min-width: 0; border: 1px solid var(--lo-trait, #dfe5f1); border-radius: 999px; padding: .4rem .8rem; font: inherit; font-size: .8rem; background: var(--lo-fond, #fff); color: inherit; }
.lo-alerte button { border: 0; border-radius: 999px; padding: .42rem .8rem; background: var(--lo-bleu, #0033a0); color: #fff; font: 700 .78rem/1 "Manrope", system-ui, sans-serif; cursor: pointer; }
.lo-alerte button:disabled { opacity: .6; }
.lo-alerte .lo-al-ico { font-size: .9rem; }
.lo-alerte.ok .lo-al-msg { color: #1a7f3c; font-size: .82rem; font-weight: 600; }
.lo-alerte.err .lo-al-msg { color: #b42318; font-size: .82rem; }
html.sombre .lo-alerte input[type="email"] { background: #121c33; border-color: #26324d; }
