/* ============================================================
   KONNECT - DESIGN SYSTEM v4.2 - PUBLIC (SSR / Propshaft)
   Couche présentation des pages publiques : barre util, nav + méga-menu,
   hero slider, statband, sections, communautés, événements à la une,
   3 principes, org band, newsletter, footer, reveal.
   Requiert konnect/tokens.css (variables --ink, --sienna, --c-*, …) et
   konnect/primitives.css (.btn, .pill, .evt, .cal-mark).
   On NE redéfinit PAS :root ni les primitives.
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  font-size: 15.5px;
  line-height: 1.55;
  overflow-x: hidden;
  font-feature-settings: 'ss01' on;
}
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input { font-family: inherit; }
svg { width: 1em; height: 1em; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 30px; }
.kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sienna-d); }

/* ===== util bar ===== */
.util { background: var(--ink-d); color: rgba(255, 255, 255, .66); padding: 9px 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.util .live { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.util .live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--sienna); box-shadow: 0 0 0 4px rgba(197, 83, 29, .2); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.util .r { display: flex; gap: 18px; }
.util .r a:hover { color: #fff; }
@media (max-width: 680px) { .util .hide-m { display: none; } }

/* ============================================================
   NAV + MÉGA-MENU
   ============================================================ */
nav.main { background: rgba(250, 250, 250, .88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 80; }
nav.main > .wrap { display: flex; align-items: center; height: 72px; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .name { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }

.nav-links { display: flex; gap: 4px; align-items: center; flex: 1; margin-left: 14px; height: 100%; }
.navitem { position: relative; height: 100%; display: flex; align-items: center; }
.navitem > a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 13px; border-radius: var(--r-sm); transition: color .18s, background .18s; cursor: pointer; }
.navitem > a .caret { font-size: 8px; color: var(--ink-4); transition: transform .22s; }
.navitem > a:hover { color: var(--ink); background: var(--soft); }
.navitem.has-mega:hover > a, .navitem.open > a { color: var(--ink); }
.navitem.has-mega:hover > a .caret, .navitem.open > a .caret { transform: rotate(180deg); color: var(--sienna); }
.navitem.cur > a { color: var(--ink); }
.navitem.cur > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 14px; height: 2px; background: var(--sienna); }

/* méga panneau */
.mega {
  position: absolute; top: calc(100% - 6px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(940px, 92vw); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), transform .24s var(--ease); z-index: 90;
}
.navitem.has-mega:hover .mega, .navitem.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.navitem.has-mega::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; } /* pont anti-fermeture */
.mega.wide { width: min(1040px, 94vw); }
.mega-grid { display: grid; gap: 22px; }
.mega-grid.c4 { grid-template-columns: 1fr 1fr 1fr 1.15fr; }
.mega-col h5 { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 13px; }
.mega-link { display: flex; align-items: center; gap: 11px; padding: 8px 9px; margin: 0 -9px; border-radius: var(--r-sm); transition: background .15s; }
.mega-link:hover { background: var(--soft); }
.mega-link .dot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; }
.mega-link .ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: var(--r-sm); background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.mega-link .ic svg { width: 16px; height: 16px; }
.mega-link .t { flex: 1; min-width: 0; }
.mega-link .t b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; }
.mega-link .t span { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.35; margin-top: 1px; }
.mega-link .n { font-size: 11px; font-weight: 700; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.mega-link:hover .n { color: var(--sienna-d); }
.dot.salon { background: var(--c-salon); }
.dot.road { background: var(--c-road); }
.dot.conf { background: var(--c-conf); }
.dot.web { background: var(--c-web); }
.dot.dej { background: var(--c-dej); }

/* carte vedette du méga */
.mega-feat { background: var(--ink); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; position: relative; color: #fff; min-height: 200px; }
.mega-feat .ph { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.mega-feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 19, 32, .2), rgba(15, 19, 32, .92)); }
.mega-feat .ct { position: relative; z-index: 2; margin-top: auto; padding: 18px; }
.mega-feat .lab { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sienna-l); margin-bottom: 8px; }
.mega-feat h4 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; margin-bottom: 6px; }
.mega-feat .m { font-size: 12px; color: rgba(255, 255, 255, .72); margin-bottom: 14px; }
.mega-feat .go { font-size: 12.5px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.mega-feat .go .arr { transition: transform .2s; }
.mega-feat:hover .go .arr { transform: translateX(3px); }
.mega-foot { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mega-foot .note { font-size: 12px; color: var(--ink-3); }
.mega-foot .note b { color: var(--ink); font-weight: 700; }

/* Sur mobile, le bouton passe dans le tiroir : à côté du burger, il
   faisait déborder la barre de navigation hors de l'écran. */
@media (max-width: 520px) { .nav-cta-agenda { display: none; } }
.nav-mobile-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: .18s; }
.nav-mobile-toggle:hover { border-color: var(--ink); }
.nav-mobile-toggle svg { width: 20px; height: 20px; }

/* Drawer mobile : fermé par défaut, hors flux desktop. */
.nav-drawer { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }

  .nav-drawer {
    display: block;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 18px 18px 32px;
    z-index: 70;
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-drawer-links { display: flex; flex-direction: column; }
  .nav-drawer-link {
    display: block;
    padding: 16px 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-drawer-link:hover { color: var(--sienna); }
  .nav-drawer-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
  .nav-drawer-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer { transition: none; }
}

/* ============================================================
   FLASH - toast public (notice = succès, alert = erreur)
   ============================================================ */
.flash {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(640px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(20, 18, 16, .16);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 1;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.flash.flash-leaving { opacity: 0; transform: translateX(-50%) translateY(-8px); }
/* Succes et erreur se distinguent d'abord par le pictogramme : deux filets
   lateraux de teintes voisines se confondent au premier coup d'oeil. */
.flash-notice { color: var(--ink); }
.flash-alert { color: var(--ink); }
.flash-ico { flex: none; display: flex; width: 18px; height: 18px; }
.flash-ico svg { width: 100%; height: 100%; }
.flash-notice .flash-ico { color: var(--green-d); }
.flash-alert .flash-ico { color: var(--red); }
.flash-msg { flex: 1; }
.flash-close {
  flex: none;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink-3);
  border-radius: var(--r-sm);
}
.flash-close:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .flash { transition: none; }
}

.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: .18s; }
.nav-search:hover { border-color: var(--ink); color: var(--ink); }
.nav-search svg { width: 17px; height: 17px; }

/* ============================================================
   HERO - slider immersif (5 prochains rendez-vous)
   ============================================================ */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; min-height: 660px; display: flex; flex-direction: column; }
@media (max-width: 980px) { .hero { min-height: 0; } }

/* fonds qui se fondent */
.slides-bg { position: absolute; inset: 0; z-index: 0; }
.s-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 7s linear; }
.s-bg.active { opacity: 1; transform: scale(1); }
.slides-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 19, 32, .94) 0%, rgba(15, 19, 32, .82) 34%, rgba(15, 19, 32, .42) 64%, rgba(15, 19, 32, .62) 100%),
    linear-gradient(180deg, rgba(15, 19, 32, .5) 0%, transparent 26%, transparent 52%, rgba(15, 19, 32, .86) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 100% at 82% 0%, #000, transparent 72%);
}
.hero > .wrap { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; padding-top: 34px; padding-bottom: 26px; }

/* bandeau haut */
/* Masthead canon (doc 01 §2.1) : H1 slogan + sous-titre + CTAs, au-dessus du slider. */
.hero-mast { padding: 6px 0 22px; max-width: 780px; }
.hero-mast .mast-title { font-family: var(--font-display, inherit); font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.14; color: #fff; margin: 0 0 12px; text-wrap: balance; }
.hero-mast .mast-sub { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .82); margin: 0 0 18px; max-width: 62ch; }
.hero-mast .mast-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
/* Variante hors-hero (fallback sans événements) : encre sur papier. */
.ag-head .hero-mast .mast-title { color: var(--ink); }
.ag-head .hero-mast .mast-sub { color: var(--ink-3); }

.hero-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-eyebrow .kicker { color: #fff; display: inline-flex; align-items: center; gap: 11px; }
.hero-eyebrow .kicker::before { content: ""; width: 30px; height: 2px; background: var(--sienna); }
.hero-eyebrow .live { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hero-eyebrow .live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--sienna); box-shadow: 0 0 0 4px rgba(197, 83, 29, .22); animation: pulse 1.5s infinite; }

/* corps : cartes qui se fondent */
.hero-body { position: relative; flex: 1; display: flex; align-items: center; min-height: 380px; margin: 8px 0; }
@media (max-width: 980px) { .hero-body { min-height: 0; padding: 40px 0 8px; } }
.s-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; max-width: 60ch; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.s-card.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.s-toprow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }

/* pill - variante hero (fond blanc, posée sur fond sombre). La base vient de primitives.css */
.s-toprow .pill { background: rgba(255, 255, 255, .95); color: var(--ink); border-color: transparent; }
.s-toprow .pill.salon { color: var(--c-salon); }
.s-toprow .pill.salon .d { background: var(--c-salon); }
.s-toprow .pill.road { color: var(--c-road); }
.s-toprow .pill.road .d { background: var(--c-road); }
.s-toprow .pill.conf { color: var(--c-conf); }
.s-toprow .pill.conf .d { background: var(--c-conf); }
.s-toprow .pill.web { color: var(--c-web); }
.s-toprow .pill.web .d { background: var(--c-web); }
.s-toprow .pill.dej { color: var(--c-dej); }
.s-toprow .pill.dej .d { background: var(--c-dej); }

.s-date { display: inline-flex; align-items: baseline; gap: 9px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.s-date .d { font-size: 21px; }
.s-date .y { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }

h1.s-title { font-size: clamp(34px, 5vw, 62px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 900; margin-bottom: 20px; max-width: 18ch; }
.s-meta { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 24px; }
.s-meta .mi { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.s-meta .mi b { color: #fff; font-weight: 700; }
.s-meta .mi svg { width: 16px; height: 16px; color: var(--sienna-l); flex: 0 0 16px; }
.s-orgs { display: inline-flex; align-items: center; gap: 9px; }
.s-mono { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-sm); font-size: 11px; font-weight: 800; letter-spacing: -0.02em; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); color: #fff; }
.s-org-name { font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.s-org-name b { color: #fff; font-weight: 700; }
.s-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* file d'attente : les 5 prochains */
.hero-queue { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 980px) { .hero-queue { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hero-queue { grid-template-columns: 1fr 1fr; } }
.q-item { text-align: left; padding: 13px 14px 0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-md); transition: background .2s, border-color .2s; overflow: hidden; position: relative; }
.q-item:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.q-item.active { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.q-top { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 7px; }
.q-top .qd { width: 7px; height: 7px; border-radius: 2px; }
.q-top .qdate { margin-left: auto; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.q-item.active .q-top { color: #fff; }
.q-name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: rgba(255, 255, 255, .78); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.q-item.active .q-name { color: #fff; }
.q-place { font-size: 11px; color: rgba(255, 255, 255, .5); margin-top: 5px; margin-bottom: 13px; }
.q-bar { height: 3px; margin: 0 -14px; background: rgba(255, 255, 255, .1); }
.q-bar > i { display: block; height: 100%; width: 0; background: var(--sienna); }
.q-item.active .q-bar { background: rgba(255, 255, 255, .16); }
@keyframes qfill { from { width: 0; } to { width: 100%; } }

/* flèches */
.h-arrow { position: absolute; top: 46%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(8px); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: .18s; }
.h-arrow:hover { background: rgba(255, 255, 255, .22); }
.h-arrow.prev { left: max(16px, calc((100vw - 1280px) / 2 - 8px)); }
.h-arrow.next { right: max(16px, calc((100vw - 1280px) / 2 - 8px)); }
@media (max-width: 1180px) { .h-arrow { display: none; } }

/* ===== stat (en-tête organisateur) ===== */
.stat { padding: 28px 30px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
@media (max-width: 760px) { .stat { border-right: 0; padding: 22px 0; } .stat:nth-child(2) { border-right: 0; } }
.stat .n { font-size: 34px; font-weight: 900; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .n em { font-style: normal; color: var(--sienna); }
.stat .l { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.4; }
.stat .l b { color: var(--ink); font-weight: 700; }

/* ===== section frame ===== */
.sec { padding: 88px 0; position: relative; }
.sec-grid-bg { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 58px 58px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent); opacity: .5; pointer-events: none; }
.sec > .wrap { position: relative; z-index: 1; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 38px; }
.sec-head .l { max-width: 56ch; }
.sec-head .kicker { display: block; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; }
.sec-head h2 .s { color: var(--sienna); }
.sec-head .l p { margin-top: 14px; font-size: 16px; color: var(--ink-3); line-height: 1.55; }
.sec-head .r { font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; font-weight: 600; }
.sec-head .r b { color: var(--ink); font-weight: 800; }

/* ===== featured events ===== */
/* La carte .evt est autonome (primitives.css) ; la home n'apporte que le
   fond de section et le pied. La grille est .ev-grid (partagée, plus bas). */
.feat { background: var(--paper); }
.feat-foot { display: flex; justify-content: center; margin-top: 38px; }

/* ===== org band ===== */
.orgband { background: var(--soft); }
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 980px) { .org-grid { grid-template-columns: 1fr; gap: 38px; } }
.org-grid .l h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 18px; }
.org-grid .l h2 .s { color: var(--sienna); }
.org-grid .l .lede { font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 46ch; margin-bottom: 28px; }
.org-grid .l .lede b { color: var(--ink); font-weight: 700; }
.org-bul { display: flex; flex-direction: column; gap: 12px; }
.obul { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 17px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); align-items: flex-start; transition: .18s; cursor: pointer; }
.obul:hover { border-color: var(--sienna); transform: translateX(4px); }
.obul .n { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--ink); color: var(--sienna-l); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: 0 0 34px; }
.obul h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -0.018em; margin-bottom: 3px; }
.obul p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ===== newsletter ===== */
.nl { background: linear-gradient(135deg, var(--sienna-d), var(--sienna) 50%, #B8480F); color: #fff; position: relative; overflow: hidden; }
.nl::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 75%); }
.nl .wrap { position: relative; z-index: 1; }
.nl-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .nl-grid { grid-template-columns: 1fr; gap: 30px; } }
.nl .kicker { color: #fff; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.nl .kicker::before { content: ""; width: 30px; height: 2px; background: #fff; }
.nl h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 14px; max-width: 17ch; }
.nl p { font-size: 17px; color: rgba(255, 255, 255, .9); line-height: 1.5; max-width: 44ch; }
.nl p b { color: #fff; font-weight: 700; }
.nl-form { background: var(--surface); border-radius: var(--r-lg); padding: 24px; color: var(--ink); box-shadow: var(--sh-lg); }
.nl-form .lab { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sienna-d); margin-bottom: 8px; }
.nl-form h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.nl-form .row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 13px; }
.nl-form input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 14.5px; outline: none; transition: .18s; }
.nl-form input:focus { border-color: var(--sienna); }
.nl-form button { background: var(--ink); color: #fff; padding: 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; transition: .18s; }
.nl-form button:hover { background: var(--sienna-d); }
/* Profil à l'inscription : un choix obligatoire, en pastilles cliquables. */
.nl-profile { border: 0; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nl-profile legend { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; padding: 0; }
.nl-profile label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; transition: border-color .18s; }
.nl-profile label:hover, .nl-profile label:has(input:checked) { border-color: var(--sienna); }
.nl-profile label:has(input:checked) { font-weight: 700; }
.nl-profile input { width: auto; padding: 0; margin: 0; border: 0; accent-color: var(--sienna); }
.nl-form .checks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.nl-form .checks span { font-size: 11px; color: var(--ink-2); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.nl-form .checks span::before { content: "\2713"; color: var(--green-d); font-weight: 800; }

/* ===== footer ===== */
footer { background: linear-gradient(180deg, var(--ink-d), #06070F); color: rgba(255, 255, 255, .55); padding: 60px 0 28px; position: relative; overflow: hidden; }
footer::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 58px 58px; mask-image: radial-gradient(ellipse at 10% 0%, #000, transparent 70%); }
footer .wrap { position: relative; z-index: 1; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand .name { color: #fff; }
.foot-brand p { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); margin-top: 14px; max-width: 32ch; }
.foot-col .fh { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 15px; }
.foot-col a { display: block; margin-bottom: 10px; font-size: 14px; color: rgba(255, 255, 255, .6); transition: .15s; }
.foot-col a:hover { color: #fff; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .4); }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--ri, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   AGENDA PUBLIC (charte v4.2) - page /agenda SSR
   Réutilise .evt (primitives) ; ajoute le hero agenda, la barre
   de filtres serveur, la grille de résultats et la pagination.
   ============================================================ */

/* ----- hero agenda ----- */
.ag-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.ag-head .wrap { padding: 34px 28px 28px; }
.ag-head .crumbs { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 18px; }
.ag-head .crumbs a:hover { color: var(--ink); }
.ag-head .crumbs .sep { color: var(--ink-5); }
.ag-head .crumbs .cur { color: var(--ink); }
.ag-head .htop { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ag-head .htop > div:first-child { flex: 1 1 460px; min-width: 280px; }
.ag-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 12px; }
.ag-head h1 em { font-style: normal; color: var(--sienna); }
.ag-head .lede { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; max-width: 56ch; }
.ag-head .lede b { color: var(--ink); font-weight: 700; }
.ag-head .hstats { display: flex; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; flex: 0 0 auto; }
.ag-head .hstat { padding: 14px 22px; border-right: 1px solid var(--line); text-align: center; }
.ag-head .hstat:last-child { border-right: 0; }
.ag-head .hstat .n { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.ag-head .hstat .l { font-size: 10.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; margin-top: 5px; }

/* ----- barre de filtres (serveur, query params) ----- */
.fbar { background: rgba(250, 250, 250, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 55; }
.fbar .wrap { padding: 14px 28px; }
.fbar-top { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; }
.fsearch { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 14px; transition: .18s; max-width: 460px; }
.fsearch:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26, 30, 43, .06); }
.fsearch svg { width: 16px; height: 16px; color: var(--ink-4); flex: 0 0 16px; }
.fsearch input { flex: 1; border: 0; outline: none; background: transparent; padding: 11px 0; font-size: 14px; color: var(--ink); }
.fsearch input::placeholder { color: var(--ink-3); }
.fbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fgroup { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fdiv { width: 1px; height: 26px; background: var(--line); flex: 0 0 1px; margin: 0 4px; }
@media (max-width: 760px) { .fdiv { display: none; } }

.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); transition: .15s; white-space: nowrap; }
.fchip .d { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 7px; }
.fchip .n { font-size: 10.5px; color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.fchip:hover { border-color: var(--ink-4); color: var(--ink); }
.fchip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip.on .n { color: rgba(255, 255, 255, .6); }
.fchip.allchip.on { background: var(--sienna); border-color: var(--sienna); }

.fdrop .dbtn,
.fdrop select.dbtn { padding: 9px 13px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.fdrop select.dbtn:hover { border-color: var(--ink-4); color: var(--ink); }

.factive { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line-soft); }
.factive .albl { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }
.achip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--ink-4); border-radius: var(--r-sm); }
.achip .x { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-3); font-size: 13px; }
.achip .x:hover { background: var(--ink); color: #fff; }
.factive .clrall { font-size: 12.5px; font-weight: 700; color: var(--sienna-d); margin-left: 4px; }
.factive .clrall:hover { color: var(--sienna); }

/* ----- corps + résultats ----- */
.ag-body { padding: 30px 0 80px; background: var(--paper); }
.resbar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.resbar .rcount { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.resbar .rcount b { color: var(--ink); font-size: 17px; font-weight: 900; letter-spacing: -0.02em; }
.resbar .rtoggle .tglink { font-size: 13.5px; font-weight: 700; color: var(--sienna-d); text-decoration: none; }
.resbar .rtoggle .tglink:hover { text-decoration: underline; }

/* Bannière de consentement (Consent Mode v2). Refus aussi visible que
   l'acceptation. */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 5px; box-shadow: 0 8px 30px rgba(26, 30, 43, .35); }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; font-size: 13px; line-height: 1.5; max-width: 68ch; }
.consent-banner p a { color: #fff; text-decoration: underline; }
.consent-banner .cb-actions { display: flex; gap: 10px; }
/* Refuser doit être aussi visible qu'accepter (CNIL). Sans fond transparent,
   .btn-outline gardait son fond blanc : texte blanc sur blanc. */
.consent-banner .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.consent-banner .btn-outline:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 640px) { .consent-banner { flex-direction: column; align-items: stretch; } .consent-banner .cb-actions { justify-content: flex-end; } }

/* Maillage fiche → facettes (règle 6). */
.facet-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 6px; }
.facet-links .fl-label { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.facet-links .fl-link { font-size: 13.5px; font-weight: 600; color: var(--sienna-d); text-decoration: none; border-bottom: 1px solid transparent; }
.facet-links .fl-link:hover { border-bottom-color: var(--sienna); }

/* Repli passé des facettes (volet « total » de la règle 1). */
.facet-past-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; color: var(--ink); }

/* Facettes sœurs (maillage interne, règle 6 de la taxonomie). */
.sister-facets { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.sister-facets .sf-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.sister-facets .sf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sister-facets .sf-link { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.sister-facets .sf-link:hover { border-color: var(--sienna); color: var(--sienna); }
.sister-facets .sf-n { font-size: 11.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ----- grille de cartes .evt (la carte elle-même vit dans primitives.css) ----- */
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .ev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .ev-grid { grid-template-columns: 1fr; } }

/* ----- état vide ----- */
.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface); }
.empty .et { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 6px; }
.empty .es { font-size: 14px; color: var(--ink-3); max-width: 42ch; margin: 0 auto 18px; line-height: 1.5; }

/* ----- pagination (Kaminari) ----- */
nav.pagination { display: flex; justify-content: center; margin-top: 38px; }
nav.pagination .pagination { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav.pagination .page, nav.pagination .first, nav.pagination .last, nav.pagination .prev, nav.pagination .next, nav.pagination .gap {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); transition: .15s;
}
nav.pagination a:hover { border-color: var(--ink-4); color: var(--ink); }
nav.pagination .page.current { background: var(--ink); color: #fff; border-color: var(--ink); }
nav.pagination .gap { border: 0; background: transparent; }

/* ============================================================
   FICHE ÉVÉNEMENT (charte v4.2) - hero, colonne contenu, aside
   ============================================================ */

/* ----- organizers (parité, monogrammes) ----- */
.org-tile { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -0.02em; border-radius: var(--r-sm); flex: 0 0 auto; border: 1px solid var(--line); }
.org-tile.lg { width: 52px; height: 52px; font-size: 17px; }
.org-tile.c-blue { background: var(--c-web); color: #fff; border-color: var(--c-web); }
.org-tile.c-forest { background: var(--c-salon); color: #fff; border-color: var(--c-salon); }
.org-tile.c-plum { background: var(--c-conf); color: #fff; border-color: var(--c-conf); }
.org-tile.c-amber { background: var(--c-road); color: #fff; border-color: var(--c-road); }
.org-tile.c-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.org-tile.c-sienna { background: var(--sienna); color: #fff; border-color: var(--sienna); }
.org-tile-logo { background: #fff; object-fit: contain; padding: 6px; }
.organizers { display: flex; flex-direction: column; gap: 12px; }
.organizers .logos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.organizers .names { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.organizers .names .sep { color: var(--ink-4); margin: 0 4px; }

/* ----- hero ----- */
.evt-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.evt-hero .wrap { padding-top: 30px; padding-bottom: 34px; }
.evt-hero .crumbs { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 22px; }
.evt-hero .crumbs a:hover { color: var(--ink); }
.evt-hero .crumbs .sep { color: var(--ink-5); }
.evt-hero .crumbs .cur { color: var(--ink); }
.evt-hero .tagrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.evt-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; max-width: 20ch; margin-bottom: 14px; }
.evt-hero-sub { font-size: 17px; color: var(--ink-2); max-width: 56ch; margin-bottom: 22px; line-height: 1.5; }
.factline { display: flex; align-items: flex-start; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.fact { display: flex; gap: 11px; align-items: flex-start; }
.fact .ic { width: 22px; height: 22px; flex: 0 0 22px; color: var(--sienna); margin-top: 1px; }
.fact .ic svg { width: 22px; height: 22px; }
.fact .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; margin-bottom: 2px; }
.fact .v { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.fact .v small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.hero-orgs { padding-top: 24px; border-top: 1px solid var(--line); }
.hero-orgs .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; margin-bottom: 12px; }

/* hero immersif (bannière en fond) */
.evt-hero.has-img { background-color: var(--ink-d); background-size: cover; background-position: center; border-bottom: 0; position: relative; }
.evt-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,19,32,.95) 0%, rgba(15,19,32,.62) 46%, rgba(15,19,32,.30) 100%); }
.evt-hero.has-img .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; }
.evt-hero.has-img .tagrow { margin-top: auto; }
.evt-hero.has-img h1 { color: #fff; max-width: 24ch; text-shadow: 0 1px 30px rgba(0,0,0,.25); }
.evt-hero.has-img .evt-hero-sub { color: rgba(255,255,255,.85); }
.evt-hero.has-img .crumbs { color: rgba(255,255,255,.72); }
.evt-hero.has-img .crumbs a:hover { color: #fff; }
.evt-hero.has-img .crumbs .sep { color: rgba(255,255,255,.4); }
.evt-hero.has-img .crumbs .cur { color: #fff; }
.evt-hero.has-img .fact .ic { color: var(--sienna-l); }
.evt-hero.has-img .fact .k { color: rgba(255,255,255,.62); }
.evt-hero.has-img .fact .v { color: #fff; }
.evt-hero.has-img .fact .v small { color: rgba(255,255,255,.72); }
.evt-hero.has-img .hero-orgs { border-top-color: rgba(255,255,255,.18); }
.evt-hero.has-img .hero-orgs .lbl { color: rgba(255,255,255,.6); }
.evt-hero.has-img .organizers .names { color: rgba(255,255,255,.8); }
.evt-hero.has-img .org-tile { box-shadow: 0 2px 10px rgba(0,0,0,.3); }

/* ----- body layout ----- */
.evt-body { padding: 42px 0 80px; }
.evt-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .evt-detail-grid { grid-template-columns: 1fr; gap: 36px; } }

.block { margin-bottom: 42px; }
.block > h2 { font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--ink); }
.prose p { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-bottom: 15px; max-width: 66ch; }
.prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 15px 22px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }

/* ----- status banners ----- */
.evt-status-banner { padding: 16px 20px; border-radius: var(--r-md); margin-bottom: 32px; border: 1px solid; }
.evt-status-banner .t { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 3px; }
.evt-status-banner .s { font-size: 13.5px; line-height: 1.45; }
.evt-status-banner.cancelled { background: var(--red-soft); border-color: #E9B6B0; color: var(--red); }
.evt-status-banner.cancelled .s { color: var(--red-d); }
.evt-status-banner.past { background: var(--soft); border-color: var(--line); color: var(--ink-2); }
.evt-status-banner.past .s { color: var(--ink-3); }

/* ----- speakers ----- */
.speakers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 620px) { .speakers { grid-template-columns: 1fr; } }
.spk { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: .18s; }
.spk:hover { border-color: var(--ink-4); box-shadow: var(--sh-sm); }
.spk .av { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: var(--ink-2); border: 1px solid var(--line); }
.spk .nm { font-size: 15px; font-weight: 700; line-height: 1.2; }
.spk .ro { font-size: 13px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.speakers.dense { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.speakers.dense .spk { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: 11px 16px; }
.speakers.dense .spk:last-child { border-bottom: 0; }
.speakers.dense .av { width: 38px; height: 38px; flex: 0 0 38px; font-size: 13px; }

/* ----- programme timeline ----- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-4); }
.tl-item.key::before { border-color: var(--sienna); background: var(--sienna); }
.tl-item .tm { font-size: 12.5px; font-weight: 700; color: var(--sienna-d); font-variant-numeric: tabular-nums; letter-spacing: .02em; margin-bottom: 3px; }
.tl-item .tt { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.tl-item .ds { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; max-width: 60ch; }

/* ----- map ----- */
.evt-map { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.evt-map iframe { display: block; width: 100%; height: 300px; border: 0; filter: saturate(.85); }
.evt-map .cap { padding: 11px 16px; background: var(--surface); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.evt-map .cap b { color: var(--ink); font-weight: 700; }

/* ----- sticky aside (inscription) ----- */
.aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.reg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.reg-card .top { padding: 20px 22px 18px; border-bottom: 1px solid var(--line-soft); }
.reg-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.reg-status .d { width: 8px; height: 8px; border-radius: 50%; }
.reg-status.open { color: var(--green-d); } .reg-status.open .d { background: var(--green); }
.reg-status.closed { color: var(--ink-3); } .reg-status.closed .d { background: var(--ink-4); }
.reg-price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 3px; }
.reg-sub { font-size: 13px; color: var(--ink-3); }
.reg-card .actions { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.reg-form { display: flex; flex-direction: column; gap: 10px; }
.reg-input { width: 100%; padding: 11px 13px; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); transition: .15s; }
.reg-input:focus { outline: 0; border-color: var(--sienna); box-shadow: 0 0 0 3px var(--sienna-tint); }
.reg-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; cursor: pointer; }
.reg-consent input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--sienna); }
.ext-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.reg-card .recap { padding: 16px 22px; background: var(--soft); border-top: 1px solid var(--line-soft); }
.recap-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 4px 0; }
.recap-row .rk { color: var(--ink-2); font-weight: 600; }
.recap-row .rv { color: var(--ink); font-weight: 600; text-align: right; }
.past-msg { padding: 22px; text-align: center; }

/* ============================================================
   PAGE ORGANISATEUR (charte v4.2) - en-tête vitrine + événements
   ============================================================ */
.org-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.org-head > .wrap:first-child { padding-top: 22px; }
.org-head .crumbs { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 18px; }
.org-head .crumbs a:hover { color: var(--ink); }
.org-head .crumbs .sep { color: var(--ink-5); }
.org-head .crumbs .cur { color: var(--ink); }

/* Profil grid (override du .org-grid de la home) : identité + carte stats */
.org-profile-grid { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; padding: 30px 0; }
@media (max-width: 900px) { .org-profile-grid { grid-template-columns: 1fr; gap: 28px; } }
.org-id { display: flex; gap: 22px; align-items: flex-start; }
.org-id .biglogo { width: 88px; height: 88px; flex: 0 0 88px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: #fff; border: 1px solid transparent; overflow: hidden; }
.org-id .biglogo.c-blue { background: var(--c-web); }
.org-id .biglogo.c-forest { background: var(--c-salon); }
.org-id .biglogo.c-plum { background: var(--c-conf); }
.org-id .biglogo.c-amber { background: var(--c-road); }
.org-id .biglogo.c-ink { background: var(--ink); }
.org-id .biglogo.c-sienna { background: var(--sienna); }
.org-id .biglogo.biglogo-img { background: var(--surface); border-color: var(--line); }
.org-id .biglogo img { width: 100%; height: 100%; object-fit: contain; }
.org-id .tagrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.org-id h1 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 14px; }
.org-desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; max-width: 60ch; margin-bottom: 18px; }
.org-coords { display: flex; gap: 10px; flex-wrap: wrap; }
.org-coords .coord { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: .18s; }
.org-coords .coord:hover { border-color: var(--ink-3); color: var(--ink); }
.org-coords .coord svg { width: 15px; height: 15px; }

.org-head .org-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.org-head .org-aside .stats { display: flex; }
.org-head .org-aside .stat { flex: 1; padding: 18px 16px; text-align: center; border-right: 1px solid var(--line-soft); }
.org-head .org-aside .stat:last-child { border-right: 0; }
.org-head .org-aside .stat .n { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.org-head .org-aside .stat .l { font-size: 10.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em; margin-top: 2px; text-transform: uppercase; }

/* corps : sections d'événements */
.org-body { padding: 40px 0 80px; }
.org-empty { padding: 40px 22px; text-align: center; color: var(--ink-3); font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.org-body .ev-section { margin-bottom: 48px; }
.org-body .ev-section:last-child { margin-bottom: 0; }
.org-body .ev-section .sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 13px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.org-body .ev-section .sec-h h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.org-body .ev-section .sec-h .ct { font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.org-body .subhead { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 24px 0 14px; }
.org-body .ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .org-body .ev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .org-body .ev-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGES CONTENU SSR (v4.2) - Légal, Contact, Bientôt
   ============================================================ */

/* ---------- Pages légales (M1-M3) ---------- */
.legal-body { padding: 42px 0 70px; }
.legalwrap { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .legalwrap { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 92px; }
@media (max-width: 880px) { .toc { position: static; } }
.toc-in { border-left: 2px solid var(--line); }
.toc-t { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--ink-3); padding: 0 0 12px 16px; }
.toc-link { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); padding: 8px 16px; margin-left: -2px; border-left: 2px solid transparent; }
.toc-link:hover { color: var(--ink); border-color: var(--ink-4); }
.legalbody { max-width: 720px; }
.legal-head { margin-bottom: 24px; }
.legal-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sienna-d); margin-bottom: 14px; }
.legal-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.legal-upd { font-size: 13px; color: var(--ink-3); margin-top: 12px; font-weight: 500; }
.legal-banner { display: flex; gap: 13px; align-items: flex-start; padding: 15px 18px; background: var(--amber-soft); border: 1px solid var(--amber); border-radius: var(--r-md); margin-bottom: 28px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.legal-banner b { color: var(--ink); }
.legal-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 28px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.promise { border: 1.5px solid var(--green-soft); background: var(--green-soft); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 30px; }
.promise .pr-h { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; color: var(--green-d); margin-bottom: 16px; }
.promise .pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; }
@media (max-width: 600px) { .promise .pr-grid { grid-template-columns: 1fr; } }
.promise .pr-i { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; align-items: flex-start; }
.promise .pr-i span:first-child { color: var(--green); font-weight: 700; flex: 0 0 auto; }
.promise .pr-i b { color: var(--ink); }
.lsec { padding: 24px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.lsec:first-of-type { border-top: 0; }
.lsec h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.lsec p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 12px; }
.lsec p:last-child { margin-bottom: 0; }
.lsec p b { color: var(--ink); font-weight: 700; }
.lsec p a, .legal-note a { color: var(--sienna-d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Contact (M4) ---------- */
.contactwrap { max-width: 1000px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 42px; align-items: start; }
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.cfield { margin-bottom: 18px; }
.cfield label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 9px; }
.cinput { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-family: inherit; font-size: 14.5px; background: var(--surface); }
.cinput:focus { outline: none; border-color: var(--sienna); }
textarea.cinput { resize: vertical; min-height: 120px; }
.crow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .crow { grid-template-columns: 1fr; } }
.cgu-consent label { font-weight: 500; font-size: 13px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; margin-bottom: 10px; }
.cgu-consent label a { color: var(--sienna-d); text-decoration: underline; }
.btn-block { width: 100%; }
.cgu-mini { font-size: 12px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }
.cgu-mini a { color: var(--sienna-d); font-weight: 600; text-decoration: underline; }
.contact-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }
.cs-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--surface); }
.cs-card.subtle { background: var(--soft); border-color: var(--line-soft); }
.cs-card .cs-k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); margin-bottom: 10px; }
.cs-card .cs-line { display: block; font-size: 14px; font-weight: 600; color: var(--sienna-d); }
.cs-card.subtle p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.cs-card.subtle a { color: var(--sienna-d); font-weight: 600; text-decoration: underline; }

/* ---------- Bientôt disponible ---------- */
.soon-wrap { padding: 80px 0 100px; display: flex; }
.soon-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 48px 40px; box-shadow: var(--sh-md); }
.soon-mark { width: 60px; margin: 0 auto 22px; }
.soon-mark .cal-mark { width: 60px; height: 60px; }
.soon-eyebrow { display: inline-flex; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sienna-d); background: var(--sienna-tint); border: 1px solid var(--sienna-soft); padding: 6px 14px; border-radius: var(--r-full); margin-bottom: 18px; }
.soon-card h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.soon-sub { font-size: 16px; color: var(--ink-3); line-height: 1.55; margin: 16px auto 0; max-width: 44ch; }
.soon-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.soon-news { font-size: 13px; color: var(--ink-3); margin-top: 22px; }
.soon-news a { color: var(--sienna-d); font-weight: 600; text-decoration: underline; }
