/* ═══════════════════════════════════════════════════════════════════════════
   Style E « Dashboard bannière » (adopté le 2 décembre 2026, DESIGN-PAGES.md, E).
   Couche chargée après style.css et sobriete.css : elle garde le style B
   (verre, sobriété, mode sombre) et change le haut et le bas de la page :
   barre noire à onglets en pastilles, grande bannière de couleur pleine
   largeur (titre géant en Poppins, deux roues de vélo qui tournent) que le
   premier bloc chevauche, bas de page noir. Pas d'icône au-dessus du titre.
   Toutes les règles commencent par html.style-banniere (classe posée sur
   <html>) pour passer devant celles du style B et de son mode sombre.
   ═══════════════════════════════════════════════════════════════════════════ */

html.style-banniere body { overflow-x: clip; padding-bottom: 0; }
html.style-banniere body::before { display: none; }   /* dégradé vert de sobriete.css : la bannière le remplace */

/* ── Barre du haut : noire, onglet actif dans une pastille translucide ── */
html.style-banniere #topbar {
  background: #0d130f; border-bottom: none;
  --text: #f3faf6; --text-2: rgba(243,250,246,0.72);
  --gf-info-trait: #f3faf6; color: #f3faf6;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.style-banniere #topbar .brand { color: #f3faf6; }
html.style-banniere #topbar-nav { align-self: center; gap: 2px; }
html.style-banniere #topbar .nav-link,
html.style-banniere #topbar button.nav-link {
  height: 34px; padding: 0 14px; border-radius: 999px; border-bottom: none;
  color: rgba(243,250,246,0.72);
  transition: background-color .2s ease, color .2s ease;
}
html.style-banniere #topbar .nav-link:hover { color: #f3faf6; background: rgba(255,255,255,.07); }
html.style-banniere #topbar .nav-link.active,
html.style-banniere #topbar button.nav-link.active {
  background: rgba(255,255,255,.14); color: #fff; border-bottom: none;
}
html.style-banniere #nav-more-menu { background: #0d130f; border-color: rgba(255,255,255,.12); }
@media (max-width: 767px) {
  html.style-banniere #topbar .nav-link,
  html.style-banniere #topbar button.nav-link { height: 32px; padding: 0 11px; }
}

/* ── Bannière : pleine largeur, contenu sur 1 200 px, chevauchée par le bloc suivant ── */
html.style-banniere .site-header {
  /* Couleurs de la bannière : fond, texte, roues (--forme-a grande, --forme-b petite) */
  --fond: #0b5d3b; --texte: #fff; --forme-a: #1DB860; --forme-b: #c6f432;
  --roue: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2244%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%228%22/%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2237%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22/%3E%3Cg%20stroke%3D%22%23000%22%20stroke-width%3D%221.6%22%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2287.0%22%20y2%3D%2250.0%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2284.2%22%20y2%3D%2264.2%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2276.2%22%20y2%3D%2276.2%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2264.2%22%20y2%3D%2284.2%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2250.0%22%20y2%3D%2287.0%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2235.8%22%20y2%3D%2284.2%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2223.8%22%20y2%3D%2276.2%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2215.8%22%20y2%3D%2264.2%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2213.0%22%20y2%3D%2250.0%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2215.8%22%20y2%3D%2235.8%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2223.8%22%20y2%3D%2223.8%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2235.8%22%20y2%3D%2215.8%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2250.0%22%20y2%3D%2213.0%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2264.2%22%20y2%3D%2215.8%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2276.2%22%20y2%3D%2223.8%22/%3E%3Cline%20x1%3D%2250%22%20y1%3D%2250%22%20x2%3D%2284.2%22%20y2%3D%2235.8%22/%3E%3C/g%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%226%22%20fill%3D%22%23000%22/%3E%3C/svg%3E");
  position: relative; isolation: isolate; overflow: hidden;
  max-width: none; width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 52px 20px 100px;
  background: var(--fond); color: var(--texte);
  text-align: left; animation: none;
}
html.style-banniere .site-header > * {
  position: relative; z-index: 1;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
html.style-banniere .logo-accueil { display: none; }

/* Deux roues de vélo qui tournent (le dessin sert de masque, la couleur vient de --forme-a/-b) */
html.style-banniere .site-header::before,
html.style-banniere .site-header::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  -webkit-mask: var(--roue) center / contain no-repeat;
          mask: var(--roue) center / contain no-repeat;
  animation: roue-tourne 14s linear infinite;
}
html.style-banniere .site-header::before {
  width: 40vmin; height: 40vmin; right: -10vmin; top: -12vmin; background: var(--forme-a);
}
html.style-banniere .site-header::after {
  width: 20vmin; height: 20vmin; right: 26%; bottom: -6vmin; background: var(--forme-b);
  animation-duration: 8s;
}
@keyframes roue-tourne { to { transform: rotate(360deg); } }

html.style-banniere .site-header h1,
html.style-banniere #hiver-page .site-header h1,
html.style-banniere #bixi-page .site-header h1 {
  margin: 0 auto 10px;
  font-family: 'Poppins', 'IBM Plex Sans', sans-serif;
  font-size: clamp(40px, 7.4vw, 88px); font-weight: 700;
  line-height: .95; letter-spacing: -0.045em;
  background: none; color: var(--texte);
  text-wrap: balance;
}
html.style-banniere .site-header .subtitle {
  color: var(--texte); opacity: .9;
  font-size: clamp(16px, 2.2vw, 20px); font-weight: 500;
}
html.style-banniere .site-header .freshness {
  justify-content: flex-start; width: fit-content; max-width: 100%;
  margin: 18px 0 0; padding: 7px 14px; border-radius: 999px;
  background: #0f1f17; color: #f3faf6; font-size: 13px; font-weight: 500;
}
html.style-banniere .site-header .freshness::before { background: #c6f432; box-shadow: 0 0 0 3px rgba(198,244,50,.25); }
@media (min-width: 768px) {
  html.style-banniere .site-header .freshness { margin-left: max(0px, calc((100% - 1200px) / 2)); }
}

/* Couleurs propres à deux vues : Vélo d'hiver en bleu froid, BIXI en rouge et blanc */
html.style-banniere #hiver-header { --fond: #0b4a73; --forme-a: #38bdf8; --forme-b: #e3f4ff; }
html.style-banniere #bixi-header  { --fond: #c8102e; --forme-a: #fff;    --forme-b: #ff9aa5; }

/* Premier bloc de chaque vue : chevauche le bas de la bannière, fond opaque
   (le verre laisserait voir la bannière à travers) */
html.style-banniere .container,
html.style-banniere #global-cards,
html.style-banniere #hiver-cards,
html.style-banniere #arr-cards { position: relative; z-index: 2; margin-top: -52px; }
html.style-banniere .container { background: #f8fbf9; }
html.style-banniere .global-card,
html.style-banniere .global-card:hover { background: #fff; }

/* Accueil : tuiles de chiffres teintées de vert, pour se détacher du fond du bloc */
html.style-banniere .stat-card,
html.style-banniere .stat-card:hover { background: #e6f4eb; border: 1px solid rgba(29,184,96,.22); }

@media (prefers-color-scheme: dark) {
  html.style-banniere:not([data-theme="light"]) .container { background: #16201b; }
  html.style-banniere:not([data-theme="light"]) .global-card,
  html.style-banniere:not([data-theme="light"]) .global-card:hover { background: #1b2621; }
  html.style-banniere:not([data-theme="light"]) .stat-card,
  html.style-banniere:not([data-theme="light"]) .stat-card:hover { background: #1f3128; border-color: rgba(61,220,132,.18); }
}

/* Boutons et menus secondaires non choisis (Dans le temps, Par jour, Partager,
   Combiner avec, Semaine complète / Lundi au vendredi…) : fond gris et bordure,
   sinon ils disparaissent sur le fond clair du bloc (demande de Gabriel) */
html.style-banniere .dir-btn:not(.active),
html.style-banniere .hist-btn:not(.active),
html.style-banniere .bixi-btn:not(.active),
html.style-banniere .toggle-select,
html.style-banniere .combine-select {
  background: #e8edea; border: 1px solid rgba(15,40,28,.14); color: var(--text-2);
}
html.style-banniere .dir-btn:not(.active):hover,
html.style-banniere .hist-btn:not(.active):hover,
html.style-banniere .bixi-btn:not(.active):hover { background: #dce4df; color: var(--text); }
@media (prefers-color-scheme: dark) {
  html.style-banniere:not([data-theme="light"]) .dir-btn:not(.active),
  html.style-banniere:not([data-theme="light"]) .hist-btn:not(.active),
  html.style-banniere:not([data-theme="light"]) .bixi-btn:not(.active),
  html.style-banniere:not([data-theme="light"]) .toggle-select,
  html.style-banniere:not([data-theme="light"]) .combine-select {
    background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14);
  }
  html.style-banniere:not([data-theme="light"]) .dir-btn:not(.active):hover,
  html.style-banniere:not([data-theme="light"]) .hist-btn:not(.active):hover,
  html.style-banniere:not([data-theme="light"]) .bixi-btn:not(.active):hover { background: rgba(255,255,255,.12); }
}

/* ── Accueil : pastille de mise à jour et bouton du récap sur la même ligne (ordinateur) ── */
html.style-banniere .lien-recap {
  display: flex; align-items: center; gap: 8px;
  width: fit-content; margin: 14px 0 0 auto;
  padding: 10px 18px; border-radius: 999px;
  background: #c6f432; color: #0f1f17;
  font-family: 'Poppins', 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(15,31,23,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
html.style-banniere .lien-recap:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(15,31,23,.25); }
html.style-banniere .lien-recap:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (min-width: 768px) {
  html.style-banniere #main-header {
    display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px;
    padding-left: max(20px, calc((100vw - 1200px) / 2));      /* 100vw : la bannière fait toute la largeur de l'écran */
    padding-right: max(20px, calc((100vw - 1200px) / 2));
  }
  html.style-banniere #main-header > * { max-width: none; margin-left: 0; margin-right: 0; }
  html.style-banniere #main-header h1 { grid-column: 1 / -1; }
  html.style-banniere #main-header .freshness { grid-column: 1; margin: 18px 0 0; }
  html.style-banniere #main-header .lien-recap { grid-column: 2; margin: 18px 0 0; }
}

/* ── Arrondissements : menu dans la bannière, aligné à gauche sous la pastille de date,
   en pastille blanche (même famille que le bouton du récap) ── */
html.style-banniere #arr-page .site-header { padding-bottom: 150px; }
html.style-banniere #arr-picker {
  position: relative; z-index: 2;
  width: min(420px, 100%); margin: -126px 0 24px -4px;   /* -4 px : bord gauche du contenu de la bannière ; 24 px : les tuiles chevauchent la bannière de 52 px */
}
html.style-banniere #arr-picker select {
  padding: 12px 48px 12px 20px; border: none; border-radius: 999px;
  background: #fff; color: #0f1f17;
  font-size: 17px; font-weight: 600;
  box-shadow: 0 4px 0 rgba(0,0,0,.22);
}
html.style-banniere #arr-picker select:hover { background: #f3faf6; }
html.style-banniere #arr-picker select:focus-visible { outline: 3px solid #c6f432; outline-offset: 3px; }
html.style-banniere #arr-picker::after { right: 22px; border-color: #0f1f17; }
@media (min-width: 768px) {
  html.style-banniere #arr-picker { margin-left: -20px; }
}
/* Les tuiles qui suivent : pas de marge négative, le menu les place déjà sur le bas de la bannière */
html.style-banniere #arr-picker + #arr-cards { margin-top: 0; }

/* ── BIXI : sélecteur de périmètre posé dans la bannière, en rouge et blanc ── */
html.style-banniere #bixi-scope {
  position: relative; z-index: 2;
  width: fit-content; margin: -78px auto 0;
  padding: 4px; gap: 4px; border-radius: 999px;
  background: #8c0b20;
}
html.style-banniere #bixi-scope .hist-btn {
  border: none; border-radius: 999px; padding: 8px 16px;
  background: transparent; color: rgba(255,255,255,.85);
  font-weight: 600; font-size: 14px; box-shadow: none;
}
html.style-banniere #bixi-scope .hist-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
html.style-banniere #bixi-scope .hist-btn.active { background: #fff; color: #c8102e; border: none; box-shadow: none; }
html.style-banniere #bixi-page > .bixi-note { margin: 44px auto 18px !important; max-width: 760px; }

/* BIXI : gros appel vers le récap BIXI 2026 */
html.style-banniere .appel-recap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 26px 30px; border-radius: 22px;
  background: #c6f432; color: #0f1f17; text-decoration: none;
  box-shadow: 0 5px 0 rgba(15,31,23,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
html.style-banniere .appel-recap:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(15,31,23,.18); }
html.style-banniere .appel-recap:focus-visible { outline: 3px solid #0b5d3b; outline-offset: 3px; }
html.style-banniere .appel-recap-texte { display: flex; flex-direction: column; gap: 4px; }
html.style-banniere .appel-recap-surtitre { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
html.style-banniere .appel-recap-titre {
  font-family: 'Poppins', 'IBM Plex Sans', sans-serif; font-weight: 700;
  font-size: clamp(26px, 4vw, 40px); line-height: 1; letter-spacing: -0.035em;
}
html.style-banniere .appel-recap-sous { font-size: 16px; }
html.style-banniere .appel-recap-bouton {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: #0f1f17; color: #fff;
  font-family: 'Poppins', 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 17px;
  white-space: nowrap;
}

/* Liens vers le récap cachés tant que recap.compteurvelo.com n'est pas public :
   retirer l'attribut hidden dans index.html pour les afficher */
html.style-banniere .lien-recap[hidden],
html.style-banniere .appel-recap[hidden] { display: none; }

/* ── Bas de page : bande noire pleine largeur ── */
html.style-banniere .watermark {
  width: 100vw; margin: 40px calc(50% - 50vw) 0; padding: 32px 20px 40px;
  background: #0d130f; border-top: none;
}
html.style-banniere .watermark p { color: rgba(243,250,246,.8); }
html.style-banniere .watermark a { color: #3ddc84; }
html.style-banniere .watermark a:hover { color: #f3faf6; }

/* Mouvement réduit : roues immobiles, boutons sans soulèvement */
@media (prefers-reduced-motion: reduce) {
  html.style-banniere .site-header::before,
  html.style-banniere .site-header::after { animation: none; }
  html.style-banniere .lien-recap:hover,
  html.style-banniere .appel-recap:hover { transform: none; }
}
