/* Éléments communs à toutes les pages : bandeau compact, retour en haut, fenêtre modale, bas de page */
:root { --compact-h: 3.25rem; }
[hidden] { display: none !important; }

/* ---------- Bandeau compact épinglé (pages intérieures) ---------- */
.barre-compacte {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--compact-h);
  background: #C5140D; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transform: translateY(-100%); transition: transform .22s ease; visibility: hidden;
}
.barre-compacte.visible { transform: none; visibility: visible; }
.barre-compacte .int { width: min(100% - 2.5rem, 72rem); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 1rem; }
.barre-compacte .retour-c { color: #fff; text-decoration: none; font-size: 1.3rem; line-height: 1; opacity: .85; }
.barre-compacte .titre-c {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin: 0;
}
.barre-compacte .lien-pdf { flex-shrink: 0; }

/* ---------- Bandeau épinglé de l'accueil ---------- */
.bandeau-accueil { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transform: translateY(-105%); transition: transform .25s ease; visibility: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.bandeau-accueil.visible { transform: none; visibility: visible; }
.bandeau-accueil .l1 { background: #EFEEEE; }
.bandeau-accueil .int { width: min(100% - 2rem, 72rem); margin-inline: auto; display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; padding: .35rem 0; }
.bandeau-accueil .logo-mini img { height: 2.9rem; width: auto; display: block; }
.bandeau-accueil .dates { font-family: "Oswald", Arial, sans-serif; font-weight: 700; text-transform: uppercase; color: #C5140D; font-size: 1.05rem; line-height: 1.1; white-space: nowrap; }
.bandeau-accueil .compteurs { display: flex; gap: 1.1rem; font-family: "Oswald", Arial, sans-serif; text-transform: uppercase; font-size: .9rem; line-height: 1.1; }
.bandeau-accueil .compteurs a { color: inherit; text-decoration: none; }
.bandeau-accueil .compteurs b { color: #C5140D; font-size: 1.35rem; margin-right: .25rem; }
.bandeau-accueil .boutons { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ba-btn { font-family: "Oswald", Arial, sans-serif; font-weight: 500; text-transform: uppercase; font-size: .85rem; letter-spacing: .02em; text-decoration: none; padding: .4rem .75rem; white-space: nowrap; border: 1px solid #C5140D; color: #C5140D; background: #fff; }
.ba-btn:hover { background: #C5140D; color: #fff; }
.ba-btn.fort { background: #000; color: #fff; border-color: #000; font-weight: 700; transform: rotate(-2deg);
  clip-path: polygon(1% 8%, 22% 0, 58% 5%, 100% 0, 98% 52%, 100% 100%, 64% 94%, 30% 100%, 0 95%, 2% 48%); padding: .45rem .9rem; }
.ba-btn.fort:hover { background: #C5140D; }
.bandeau-accueil .une { background: #C5140D; color: #fff; overflow: hidden; white-space: nowrap; font-size: .95rem; height: 2rem; display: flex; align-items: center; }
.bandeau-accueil .une .etiq { flex-shrink: 0; background: #000; font-family: "Oswald", Arial, sans-serif; text-transform: uppercase; font-size: .85rem; padding: 0 .7rem; height: 100%; display: flex; align-items: center; position: relative; z-index: 1; }
.bandeau-accueil .une .piste { display: inline-flex; gap: 2.5rem; padding-left: 2rem; animation: defile var(--duree, 40s) linear infinite; }
.bandeau-accueil .une:hover .piste, .bandeau-accueil .une:focus-within .piste { animation-play-state: paused; }
.bandeau-accueil .une a { color: #fff; text-decoration: none; }
.bandeau-accueil .une a:hover { text-decoration: underline; }
.bandeau-accueil .une .libre { font-weight: 700; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Retour en haut ---------- */
.retour-haut {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 45; width: 2.9rem; height: 2.9rem; border: 0; cursor: pointer;
  background: #000; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity .2s, transform .2s, background-color .15s;
}
.retour-haut.visible { opacity: 1; transform: none; pointer-events: auto; }
.retour-haut:hover { background: #C5140D; }
.retour-haut svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Fenêtre modale ---------- */
.modale-fond { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem 2rem; overflow-y: auto; }
.modale {
  position: relative; background: #fff; color: #1A1A1A; border-top: 6px solid #C5140D; width: min(100%, 44rem);
  padding: 1.6rem 1.75rem 1.75rem; box-shadow: 0 10px 40px rgba(0,0,0,.35); font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; line-height: 1.6;
  animation: entree .18s ease;
}
@keyframes entree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modale .fermer { position: absolute; top: .5rem; right: .6rem; width: 2.4rem; height: 2.4rem; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: #555; }
.modale .fermer:hover { color: #C5140D; }
.modale h2 { font-family: "Oswald", "Arial Narrow", Arial, sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; margin: 0 2rem .3rem 0; }
.modale .meta { color: #5A5A5A; font-size: .98rem; margin: 0 0 1rem; }
.modale .contenu h3 { font-family: "Oswald", Arial, sans-serif; text-transform: uppercase; font-size: 1.25rem; margin: 1.2rem 0 .4rem; }
.modale .contenu h4 { font-size: 1.08rem; margin: 1rem 0 .3rem; }
.modale .contenu p { margin: 0 0 .7rem; }
.modale .contenu img { max-width: 100%; height: auto; display: block; margin: .8rem 0; }
.modale .contenu blockquote { border-left: 4px solid #C5140D; margin: .8rem 0; padding: .2rem 1rem; color: #444; }
.modale .contenu a { color: #C5140D; font-weight: 600; }
.modale .contenu a.video { display: inline-block; background: #000; color: #fff; text-decoration: none; padding: .45rem .9rem; font-family: "Oswald", Arial, sans-serif; font-weight: 500; text-transform: uppercase; }
.modale .contenu a.video:hover { background: #C5140D; }
.modale .contenu hr { border: 0; border-top: 2px solid #EFEEEE; margin: 1.2rem 0; }
body.modale-ouverte { overflow: hidden; }

/* ---------- Bas de page ---------- */
.pied-site { background: #fff; border-top: 4px solid #C5140D; color: #444; font-size: .95rem; font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; }
.pied-site .int { width: min(100% - 2.5rem, 72rem); margin-inline: auto; padding: 1.1rem 0 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: center; }
.pied-site a { color: #C5140D; font-weight: 600; }
.pied-site .audience { font-size: .85rem; color: #777; }

@media (max-width: 720px) {
  .barre-compacte .titre-c { font-size: 1rem; }
  .bandeau-accueil .int { gap: .6rem; }
  .bandeau-accueil .logo-mini img { height: 2.3rem; }
  .bandeau-accueil .dates { font-size: .85rem; }
  .bandeau-accueil .compteurs { font-size: .72rem; gap: .6rem; }
  .bandeau-accueil .compteurs b { font-size: 1.05rem; }
  .bandeau-accueil .boutons .secondaire { display: none; }
  .ba-btn { font-size: .78rem; padding: .35rem .55rem; }
  .modale { padding: 1.3rem 1.1rem 1.4rem; }
  .modale h2 { font-size: 1.3rem; }
}
@media (max-width: 460px) {
  .bandeau-accueil .compteurs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bandeau-accueil .une .piste { animation: none; }
  .bandeau-accueil .une { overflow-x: auto; }
}

.theme-noir .barre-compacte { background: #000; border-bottom: 3px solid #C5140D; }

/* Compteur de la pétition : jauge (bloc STOP de l'accueil) */
.jauge-petition { margin: 1.25rem 0 0; max-width: 34rem; }
.jauge-petition .titre-j { font-family: "Oswald", Arial, sans-serif; text-transform: uppercase; font-size: .9rem; letter-spacing: .03em; opacity: .9; }
.jauge-petition .nb { font-family: "Oswald", Arial, sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; }
.jauge-petition .nb small { font-size: 1rem; font-weight: 500; margin-left: .35rem; text-transform: uppercase; }
.jauge-petition .barre { height: .8rem; background: rgba(255,255,255,.3); margin: .6rem 0 .35rem; }
.jauge-petition .barre i { display: block; height: 100%; background: #fff; width: 0; transition: width 1.2s ease; }
.jauge-petition .info { font-size: .95rem; opacity: .92; }
.nb-sign { font-weight: inherit; }
/* Bouton « Rejoindre la mobilisation » */
.lien-rejoindre { display: inline-flex; align-items: center; gap: .4rem; font-family: "Oswald", Arial, sans-serif; font-weight: 700; text-transform: uppercase; font-size: .9rem;
  letter-spacing: .02em; text-decoration: none; color: #C5140D; background: #fff; padding: .45rem .85rem; border: 2px solid #fff; }
.lien-rejoindre:hover { background: transparent; color: #fff; }
.pied .lien-rejoindre, .lien-rejoindre.sur-clair { border-color: #C5140D; }
.pied .lien-rejoindre:hover, .lien-rejoindre.sur-clair:hover { background: #C5140D; color: #fff; }

.pied-site .pages-pied { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; flex-basis: 100%; font-size: .92rem; }
.pied-site .pages-pied a { color: #1A1A1A; font-weight: 600; text-decoration: none; border-bottom: 2px solid #C5140D; }

/* Bouton « Rejoindre » de l’accueil : 4 styles (réglés dans le back office) */
.rej-a { display: inline-flex; align-items: center; align-self: stretch; background: #fff; padding: .35rem .7rem; margin-left: -1rem; font-size: .75rem; font-weight: 600;
  color: #C5140D; text-decoration: none; white-space: nowrap; }
.rej-a:hover { text-decoration: underline; }
.rej-b { font-family: "Oswald", Arial, sans-serif; font-weight: 700; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; line-height: 1.1;
  display: inline-block; background: #000; color: #fff; font-size: .9rem; padding: .4em .8em .45em; transform: rotate(-3deg); box-shadow: 4px 4px 0 #C5140D;
  transition: transform .15s, box-shadow .15s; position: relative; top: -4.5px; white-space: nowrap; }
.rej-b:hover { transform: rotate(-3deg) translate(-2px, -2px); box-shadow: 6px 6px 0 #C5140D; }
.rej-d { font-family: "Oswald", Arial, sans-serif; font-weight: 700; text-transform: uppercase; text-decoration: none; display: inline-block; border: 3px solid #C5140D; color: #C5140D;
  background: #fff; padding: .3em .75em; transform: rotate(-4deg); font-size: .9rem; white-space: nowrap; transition: background-color .15s, color .15s; }
.rej-d:hover { background: #C5140D; color: #fff; }
.cta-rejoindre { background: #000; color: #fff; padding: 0 !important; }
.cta-rejoindre .int { width: min(100% - 2.5rem, 68rem); margin-inline: auto; padding: 1.6rem 0; display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.cta-rejoindre .t { font-family: "Oswald", Arial, sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.1; }
.cta-rejoindre .s { display: block; font-family: "Source Sans 3", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 1rem; opacity: .85; margin-top: .3rem; }
.cta-rejoindre a { margin-left: auto; font-family: "Oswald", Arial, sans-serif; font-weight: 700; text-transform: uppercase; text-decoration: none; background: #C5140D; color: #fff;
  padding: .55em 1.1em .6em; transform: rotate(-2deg); font-size: 1.05rem;
  clip-path: polygon(1% 8%, 22% 0, 58% 5%, 100% 0, 98% 52%, 100% 100%, 64% 94%, 30% 100%, 0 95%, 2% 48%); }
.cta-rejoindre a:hover { background: #fff; color: #C5140D; }
@media (max-width: 999px) { .rej-a { margin-left: 0; } .rej-b { top: 0; } }

/* Jauge de la pétition : présentations A à E (l’actuelle garde les règles .jauge-petition ci-dessus) */
.jauge-A .carte-j { background: #fff; color: #1A1A1A; padding: 1rem 1.2rem 1.1rem; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.jauge-A .titre-j { color: #C5140D; opacity: 1; }
.jauge-A .nb { color: #C5140D; } .jauge-A .nb small { color: #1A1A1A; }
.jauge-A .barre { background: #EFEEEE; } .jauge-A .barre i { background: #C5140D; }
.jauge-A .info { color: #555; opacity: 1; }
.jauge-B { max-width: none; }
.jauge-B .bande-j { background: #000; color: #fff; display: flex; align-items: center; gap: 1rem 1.6rem; padding: 1rem 1.2rem; flex-wrap: wrap; }
.jauge-B .droite-j { flex: 1 1 14rem; }
.jauge-B .barre { margin-top: 0; }
.jauge-C .cadre-j { display: flex; align-items: center; gap: 1.1rem; border: 2px solid rgba(255,255,255,.6); padding: .9rem 1.1rem; }
.jauge-C .anneau { width: 6rem; height: 6rem; flex: none; }
.jauge-C .anneau .fond-a { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 3.5; }
.jauge-C .anneau .plein-a { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: butt; transition: stroke-dasharray 1.2s ease; }
.jauge-C .anneau text { fill: #fff; font-family: "Oswald", Arial, sans-serif; font-weight: 700; font-size: 8px; }
.jauge-D .filets-j { border-top: 2px solid #fff; border-bottom: 2px solid #fff; padding: .8rem 0 .7rem; }
.jauge-D .ligne-j { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.jauge-D .obj-j { font-family: "Oswald", Arial, sans-serif; text-transform: uppercase; font-size: .9rem; }
.jauge-D .barre { background: rgba(0,0,0,.25); height: .9rem; }
.jauge-D .grad-j { display: flex; justify-content: space-between; font-size: .78rem; opacity: .85; }
.jauge-E .paliers-j { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: .6rem 0 .35rem; }
.jauge-E .paliers-j i { height: .85rem; background: linear-gradient(90deg, #fff var(--r), rgba(255,255,255,.25) var(--r)); }
