/* Bruno · espace pro — charte « Flyer pop » (V2), même identité que l'appli. Couleurs de base dans charte.css (--b-*). */
:root {
  --fond: var(--b-fond); --cote: var(--b-bloc); --surface: var(--b-fond); --encre: var(--b-texte); --doux: var(--b-texte-doux); --pale: var(--b-texte-doux);
  --violette: var(--b-texte); --violette-2: var(--b-bloc); --brique: #D4136F; --trait: var(--b-trait); --ombre: 0 10px 30px -12px rgba(14, 14, 14, .22);
  --barre: var(--b-texte);
  --titre: var(--b-display);
  --texte: var(--b-corps);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brique: #FF4FA3; --ombre: 0 10px 30px -10px rgba(0, 0, 0, .7); color-scheme: dark; } }
:root[data-theme="dark"] { --brique: #FF4FA3; --ombre: 0 10px 30px -10px rgba(0, 0, 0, .7); color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.5 var(--texte); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { font-family: var(--titre); letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(26px, 4vw, 34px); margin: 0; }
h2 { font-size: 20px; margin: 30px 0 12px; }

.pro-haut { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px max(16px, calc((100vw - 1040px) / 2)); background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.pro-marque { display: flex; align-items: center; gap: 8px; color: var(--violette); text-decoration: none; font-family: var(--titre); font-weight: 800; font-size: 20px; }
.pro-marque svg { width: 28px; height: 28px; }
.pro-marque em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--violette); color: var(--surface); vertical-align: 3px; }
.pro-lieu { font-weight: 700; color: var(--doux); }
.pro-onglets { margin-left: auto; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--cote); border: 1px solid var(--trait); }
.pro-onglets button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: none; font-weight: 700; color: var(--doux); cursor: pointer; white-space: nowrap; }
.pro-onglets button[aria-selected="true"] { background: var(--surface); color: var(--encre); box-shadow: 0 1px 4px rgba(14, 14, 14, .14); }
.pro-page { max-width: 1040px; margin: 0 auto; padding: 26px 16px 60px; }
.pro-tete { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pro-doux { color: var(--doux); margin: 0 0 16px; } .petit { font-size: 13.5px; } .centre { text-align: center; }
.pro-rangee { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 12px; border: 0; background: var(--violette); color: var(--surface); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.clair { background: var(--surface); color: var(--encre); border: 1px solid var(--trait); }
.btn.petit { min-height: 36px; padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.btn.danger { color: var(--brique); }
.btn:disabled { opacity: .55; cursor: default; }
.lien { background: none; border: 0; padding: 0; color: var(--violette); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--encre); color: var(--fond); padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 50; max-width: calc(100vw - 28px); }

.pro-porte { max-width: 560px; margin: 8vh auto; text-align: center; padding: 34px 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre); }
.pro-porte p { color: var(--doux); margin: 12px 0 22px; }
.pro-porte .pro-rangee { justify-content: center; }

.periode { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--cote); border: 1px solid var(--trait); }
.periode button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 14px; color: var(--doux); cursor: pointer; }
.periode button[aria-pressed="true"] { background: var(--surface); color: var(--encre); box-shadow: 0 1px 4px rgba(14, 14, 14, .14); }
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tuile { display: grid; gap: 2px; align-content: start; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--trait); }
.tuile b { font-family: var(--titre); font-size: 38px; line-height: 1; letter-spacing: -0.03em; }
.tuile span { font-weight: 700; }
.tuile small { color: var(--doux); font-size: 13px; line-height: 1.35; }
.pro-vide { margin: 16px 0; padding: 22px; border-radius: 20px; border: 2px dashed var(--trait); text-align: center; display: grid; justify-items: center; gap: 6px; }
.pro-vide p { color: var(--doux); margin: 0 0 8px; max-width: 460px; }

.graph { position: relative; margin: 16px 0 0; padding: 16px 18px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--trait); }
.graph figcaption { margin-bottom: 6px; }
.graph svg { width: 100%; height: auto; display: block; overflow: visible; }
.graph .grille { stroke: var(--trait); stroke-width: 1; }
.graph .axe { fill: var(--pale); font-size: 11px; font-family: var(--texte); }
.graph .barre { fill: var(--barre); }
.graph .cible { fill: transparent; cursor: pointer; }
.graph .cible:hover { fill: color-mix(in srgb, var(--violette) 8%, transparent); }
.tip { position: absolute; top: 12px; transform: translateX(-50%); display: grid; padding: 6px 10px; border-radius: 10px; background: var(--encre); color: var(--fond); font-size: 13px; pointer-events: none; white-space: nowrap; box-shadow: var(--ombre); }

.pro-table-zone { overflow-x: auto; border-radius: 20px; border: 1px solid var(--trait); background: var(--surface); }
.pro-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pro-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); padding: 12px 14px; border-bottom: 1px solid var(--trait); }
.pro-table td { padding: 10px 14px; border-bottom: 1px solid var(--trait); }
.pro-table tr:last-child td { border-bottom: 0; }
.pro-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.pro-ev { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.pro-ev .vig { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--cote); font-size: 22px; }
.pro-ev .vig img { width: 100%; height: 100%; object-fit: cover; }
.pro-ev span:last-child { display: grid; } .pro-ev small { color: var(--doux); }
.pro-page > p.centre { margin-top: 28px; }
.pro-note { margin-top: 18px; color: var(--doux); font-size: 14px; }
.pro-note summary { cursor: pointer; font-weight: 700; }

.soirees { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.soiree { display: flex; gap: 14px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--trait); }
.soiree-aff { flex: none; width: 96px; height: 120px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-size: 40px; }
.soiree-aff img { width: 100%; height: 100%; object-fit: cover; }
.soiree-txt { display: grid; gap: 4px; align-content: start; min-width: 0; }
.soiree-txt small { color: var(--violette); font-weight: 700; }
.soiree-txt b { font-family: var(--titre); font-size: 18px; line-height: 1.15; }
.soiree-txt p { margin: 0; color: var(--doux); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.soiree-txt .pro-rangee { margin-top: 6px; }
.passees .soiree { opacity: .65; }

.pro-dlg { border: 1px solid var(--trait); border-radius: 22px; background: var(--surface); color: var(--encre); padding: 22px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--ombre); }
.pro-dlg::backdrop { background: rgba(14, 14, 14, .45); }
.pro-dlg h2 { margin-top: 0; }
.champ { display: grid; gap: 5px; margin-bottom: 12px; font-weight: 700; font-size: 14.5px; }
.champ input, .champ select, .champ textarea { font-weight: 400; min-height: 46px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--fond); width: 100%; }
.champ small { color: var(--doux); font-weight: 400; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boutons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.erreur { color: var(--brique); font-weight: 700; margin: 4px 0; }
.choix-image { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.choix-image .apercu { flex: none; width: 96px; height: 120px; border-radius: 14px; overflow: hidden; background: var(--cote); display: grid; place-items: center; color: var(--pale); font-size: 12px; text-align: center; border: 1px dashed var(--trait); }
.choix-image.large .apercu { width: 180px; height: 110px; }
.choix-image .apercu img { width: 100%; height: 100%; object-fit: cover; }

.fiche-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.fiche-form { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--trait); }
.apercu-appli { position: sticky; top: 90px; display: grid; gap: 8px; }
.apercu-appli > small { color: var(--doux); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.carte-app { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--trait); box-shadow: var(--ombre); }
.carte-app .cov { position: relative; height: 140px; overflow: hidden; display: grid; place-items: end; }
.carte-app .cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-app .deco { font-size: 96px; line-height: 1; margin: 0 14px -18px 0; transform: rotate(-8deg); }
.carte-app .date { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; min-width: 52px; padding: 6px 9px; border-radius: 14px; background: var(--surface); line-height: 1; }
.carte-app .date small { font-size: 10.5px; font-weight: 700; color: var(--doux); } .carte-app .date b { font-family: var(--titre); font-size: 22px; margin: 2px 0; }
.carte-app .badge { position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(14, 14, 14, .45); color: #fff; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(6px); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-app .corps { padding: 12px 14px 14px; display: grid; gap: 4px; }
.carte-app .corps b { font-family: var(--titre); font-size: 18px; } .carte-app .corps small { color: var(--doux); }
.faux-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px; border-radius: 10px; background: var(--violette); color: var(--surface); font-weight: 700; font-size: 14px; margin-top: 6px; }
.faux-btn.clair { background: var(--surface); color: var(--encre); border: 1px solid var(--trait); }

@media (max-width: 860px) {
  .tuiles { grid-template-columns: 1fr 1fr; }
  .fiche-grille { grid-template-columns: 1fr; }
  .apercu-appli { position: static; }
}
@media (max-width: 600px) {
  .pro-haut { gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .pro-onglets { margin-left: 0; width: 100%; }
  .pro-onglets button { flex: 1; padding: 0 6px; font-size: 14px; }
  .pro-page { padding-top: 18px; }
  .tuile { padding: 14px; } .tuile b { font-size: 30px; }
  .deux { grid-template-columns: 1fr; gap: 0; }
  .soiree-aff { width: 80px; height: 100px; }
  .pro-table thead { display: none; }
  .pro-table, .pro-table tbody { display: block; }
  .pro-table tr { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 12px 10px; border-bottom: 1px solid var(--trait); }
  .pro-table tr:last-child { border-bottom: 0; }
  .pro-table td { border: 0; padding: 0; }
  .pro-table .pro-ev { grid-column: 1 / -1; margin-bottom: 10px; min-width: 0; }
  .pro-table .num { text-align: left; display: grid; font-size: 17px; }
  .pro-table .num::after { content: attr(data-l); font-size: 11.5px; font-weight: 400; color: var(--doux); }
}

/* ---------------------------------------------------------------- V2 : charte « Flyer pop » */
body { -webkit-font-smoothing: antialiased; }
h1, h2 { font-weight: 600; letter-spacing: -0.03em; }
h1 { font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: .98; }
::selection { background: var(--b-acide); color: var(--b-encre); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.pro-marque { color: var(--encre); font-size: 24px; gap: 8px; }
.pro-marque .logo-ecrit { width: 4.65em; height: 1em; }
.pro-marque em { background: var(--b-acide); color: var(--b-encre); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding: 3px 9px; font-family: var(--texte); }
.pro-onglets, .periode { border-radius: var(--b-arrondi-pilule); background: var(--violette-2); border: 0; }
.pro-onglets button, .periode button { border-radius: var(--b-arrondi-pilule); }
.pro-onglets button[aria-selected="true"], .periode button[aria-pressed="true"] { background: var(--encre); color: var(--fond); box-shadow: none; }
.btn { min-height: 48px; padding: 0 22px; border-radius: var(--b-arrondi-pilule); background: var(--encre); color: var(--fond); border: 2px solid transparent; }
.btn.clair { background: transparent; color: var(--encre); border: 2px solid var(--encre); }
.btn.petit { min-height: 38px; padding: 0 14px; border-radius: var(--b-arrondi-pilule); }
.btn.acide { background: var(--b-acide); color: var(--b-encre); border-color: var(--b-acide); }
.btn.danger { background: transparent; border-color: var(--brique); }
.lien { color: var(--encre); }
.toast { border-radius: var(--b-arrondi-pilule); padding: 12px 20px; }
.pro-porte { border-radius: var(--b-arrondi-grand); box-shadow: none; border: 1.5px solid var(--trait); }
.tuile, .graph, .pro-table-zone, .soiree, .fiche-form, .carte-app { border-radius: var(--b-arrondi-grand); border: 1.5px solid var(--trait); box-shadow: none; }
.tuile b { font-weight: 800; letter-spacing: -0.04em; }
.tuiles .tuile:first-child { background: var(--b-acide); color: var(--b-encre); border-color: var(--b-acide); }
.tuiles .tuile:first-child small { color: var(--b-encre); }
.graph .cible:hover { fill: color-mix(in srgb, var(--encre) 8%, transparent); }
.tip { border-radius: var(--b-arrondi-petit); }
.pro-vide { border-radius: var(--b-arrondi-grand); }
.pro-ev .vig, .soiree-aff { color: var(--b-encre); }
.pro-ev .vig svg { width: 22px; height: 22px; } .soiree-aff svg, .carte-app .deco svg { width: 44px; height: 44px; }
.vig svg, .soiree-aff svg, .carte-app .deco svg, .faux-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soiree-aff { border-radius: var(--b-arrondi-moyen); }
.soiree-aff.c-rose, .cov.c-rose { background: var(--b-rose); } .soiree-aff.c-bleu, .cov.c-bleu { background: var(--b-bleu); } .soiree-aff.c-orange, .cov.c-orange { background: var(--b-orange); }
.soiree-txt small { color: var(--encre); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.soiree-txt b, .carte-app .corps b { font-weight: 600; letter-spacing: -0.03em; }
.pro-dlg { border-radius: var(--b-arrondi-grand); border: 1.5px solid var(--trait); }
.champ input, .champ select, .champ textarea { border-radius: var(--b-arrondi-petit); border: 1.5px solid var(--trait); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--encre); outline: none; }
.choix-image .apercu { border-radius: var(--b-arrondi-moyen); }
.carte-app .deco { font-size: 0; margin: 0 16px 16px 0; color: var(--b-encre); }
.carte-app .date { background: var(--b-encre); color: var(--b-papier); border-radius: var(--b-arrondi-moyen); padding: 8px 10px; }
.carte-app .date small { color: var(--b-papier); opacity: .8; } .carte-app .date small:last-child { color: var(--b-rose); opacity: 1; }
.carte-app .date b { font-weight: 800; }
.carte-app .badge { background: var(--b-acide); color: var(--b-encre); backdrop-filter: none; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.faux-btn { border-radius: var(--b-arrondi-pilule); background: var(--b-acide); color: var(--b-encre); gap: 6px; min-height: 38px; padding: 4px 16px; }
.faux-btn.clair { background: transparent; color: var(--encre); border: 2px solid var(--encre); }
.faux-btn svg { width: 16px; height: 16px; }
