/* Sortir à Issy — maquette « C retenue » (canevas Claude Design).
   Bleu nuit Ville #031E38, bleu Issy.com #0071BD, jaune soleil #FDC915. */

@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #031e38;
  --blue: #0071bd;
  --slate: #354b60;
  --sun: #fdc915;
  --diese: #0077bd;
  --soft: #f2f4f5;
  --line: #e3e7eb;
  --contribute: #1f2a44;
  --link-export: #1f6fb2;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
  --text: Inter, system-ui, sans-serif;
  --gutter: 32px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--navy); font: 16px/1.5 var(--text); }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--navy); }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
main:focus { outline: none; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- boutons et pastilles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--blue); color: #fff; }
.btn--contribute { background: var(--contribute); color: #fff; }
.btn--contribute:hover { background: var(--navy); color: #fff; }
.btn--light:hover { background: var(--sun); color: var(--navy); }
.btn--sun { background: var(--sun); color: var(--navy); font-weight: 800; }
.btn--sun:hover { color: var(--navy); background: #fff; }
/* Bleu du « # » du sigle #QuefaireàISSY. */
.btn--diese { background: var(--diese); color: #fff; font-weight: 800; }
.btn--diese:hover { color: var(--navy); background: #fff; }
.btn--light { background: #fff; color: var(--navy); }

.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill--outline { border: 2px solid var(--navy); background: #fff; color: var(--navy); }
.pill--outline[aria-current="true"] { background: var(--navy); color: #fff; }
.pill--dark { background: var(--navy); color: #fff; }
.pill--dark:hover { background: var(--blue); color: #fff; }
.pill--light { border: 2px solid #fff; color: #fff; }
.pill--light[aria-current="true"], .pill--light:hover { background: #fff; color: var(--navy); }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--chip, var(--soft)); color: var(--chip-ink, var(--navy)); font-size: 13px; font-weight: 700; line-height: 1.3; }

/* ---------- en-tête : bandeau photo de la Ville (maquettes C2) ---------- */
.banner > .wrap { padding-top: 16px; }
.banner__panel { position: relative; overflow: hidden; border-radius: 28px; background: var(--navy); color: #fff; }
.banner--home .banner__panel { border-radius: 32px; }
.banner__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 66%; display: block; }
.banner--home .banner__photo { object-position: center 62%; }
/* Voile bleu nuit : contraste du texte blanc sur la photo, quelle que soit la zone. */
.banner__panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,30,56,.62) 0%, rgba(3,30,56,.38) 30%, rgba(3,30,56,.5) 60%, rgba(3,30,56,.82) 100%); }
.banner__inner { position: relative; z-index: 1; padding: 16px 24px; }
.banner--home .banner__inner { padding: 22px 28px 60px; }
.banner :focus-visible { outline-color: #fff; }
.banner__top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.banner--home .banner__top { display: flex; flex-wrap: wrap; justify-content: space-between; }
.banner__city, .banner__brand { display: flex; }
.banner__city { justify-self: start; }
.banner__city img { height: 50px; width: auto; }
.banner--home .banner__city img { height: 54px; }
.banner__brand img { height: 96px; width: auto; }
.banner__actions { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.banner--home .banner__actions { gap: 12px; }
.banner__contribute-mobile { display: none; }
.social { display: flex; gap: 4px; }
.social a { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
/* Pictogrammes tels que fournis : disque noir à 50 %, glyphe blanc. */
.banner .social { gap: 0; --glyph: #fff; --disc: #000; --disc-opacity: .5; }
.banner .social svg { width: 32px; height: 32px; }
.banner--home .social { gap: 2px; }
.banner--home .social svg { width: 34px; height: 34px; }
.banner .social a:hover { --disc-opacity: .8; }

/* ---------- accueil : contenu du bandeau ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero h1 { margin: 28px 0 4px; line-height: 0; }
.hero h1 img { width: 480px; max-width: 86%; height: auto; display: inline-block; }
.hero__lead { font-size: 20px; font-weight: 500; text-shadow: 0 1px 10px rgba(3,30,56,.7); }
.search { width: 100%; max-width: 760px; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 8px 8px 24px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.search :focus-visible { outline-color: var(--navy); }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: 18px; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--navy); }
.search input::placeholder { color: #595959; }
.search .btn { height: 52px; font-size: 17px; }
.hero__filters { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.pills__label { font: 800 22px/1 var(--display); margin-right: 6px; }
.hero__filters--selects { display: none; }

/* ---------- catégories ---------- */
.categories { margin-top: 56px; }
.categories ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 84px; height: 100%; padding: 16px 18px; border-radius: 20px; background: var(--tile); color: var(--tile-ink, var(--navy)); text-decoration: none; font: 800 20px/1.1 var(--display); transition: transform .2s ease, box-shadow .2s ease; }
.tile::before { content: ''; position: absolute; right: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; border: 10px solid rgba(255,255,255,.4); }
.tile > * { position: relative; }
.tile svg { flex: none; }
.tile:hover { color: var(--tile-ink, var(--navy)); transform: translateY(-4px); box-shadow: 0 12px 24px rgba(3,30,56,.16); }
.tile[aria-current="true"] { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--navy); }

/* ---------- blocs et cartes ---------- */
.block { margin-top: 80px; display: flex; flex-direction: column; gap: 22px; }
#evenements { scroll-margin-top: 16px; }
.block__title { font-size: clamp(34px, 4vw, 52px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.grid--feature { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius); }
.card__media { position: relative; }
.card__media img, .card__placeholder { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--soft); }
.card__media .chip { position: absolute; top: 10px; left: 10px; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 0 6px 8px; }
.card__when { order: -1; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); }
.card__title { font-size: 20px; line-height: 1.15; letter-spacing: -.01em; }
.card__title a { text-decoration: none; }
/* Toute la carte est cliquable, le lien reste celui du titre. */
.card__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 3px solid var(--navy); outline-offset: 4px; }
.card:hover .card__title a { color: var(--blue); text-decoration: underline; }
.card__where { font-size: 15px; color: var(--slate); }

/* ---------- liste : barre d'outils, filtres actifs, compteur ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); color: #fff; }
.menu__list { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; min-width: 280px; max-height: 60vh; overflow: auto; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(3,30,56,.2); }
.menu__list a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.menu__list a:hover { background: var(--soft); }
.menu__list a[aria-current="true"] { background: var(--navy); color: #fff; }
.menu__list a { display: flex; justify-content: space-between; gap: 12px; }
.menu__count { font-weight: 500; color: var(--slate); }
.menu__list a[aria-current="true"] .menu__count { color: #fff; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.counter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--soft); border-radius: 16px; padding: 6px 20px; }
.counter a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--link-export); font-weight: 700; text-decoration: none; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 0; font-size: 18px; }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination__page, .pagination__step { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }
.pagination__page[aria-current="page"] { background: var(--sun); font-weight: 800; }
.pagination__step { background: var(--soft); color: var(--slate); }
.pagination__step--next { background: var(--navy); color: #fff; }
.pagination__gap { padding: 0 4px; }

/* ---------- pied de page ---------- */
.site-footer { margin-top: 96px; color: #fff; }
.site-footer__curve { display: block; width: 100%; height: 48px; fill: var(--navy); }
.site-footer__inner { background: var(--navy); }
.site-footer a:not(.btn) { color: #fff; }
.site-footer__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 32px; padding-bottom: 24px; }
.site-footer__main img { height: 60px; width: auto; }
.site-footer address { font-size: 15px; }
.site-footer .social { --glyph: #fff; --disc: #fff; --disc-opacity: .5; }
.site-footer .social a:hover { --disc-opacity: .8; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 16px; padding-bottom: 28px; font-size: 14px; border-top: 1px solid rgba(255,255,255,.18); }

.prose { max-width: 760px; gap: 16px; }
.prose h1 { font-size: 44px; }

/* ---------- boutons complémentaires ---------- */
.btn--small { min-height: 44px; padding: 0 18px; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--navy); color: #fff; }
.btn--ghost { flex: 1 1 140px; min-height: 44px; border: 2px solid rgba(255,255,255,.6); background: transparent; color: #fff; font-size: 15px; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--block { width: 100%; min-height: 56px; font-size: 18px; }
.chip--big { padding: 6px 14px; font-size: 14px; background: var(--chip, #fff); }

/* ---------- fiche : bandeau ---------- */
.event-hero { padding-top: 8px; }
.hero__shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shapes path { fill: var(--blue); }
.event-hero__panel { position: relative; overflow: hidden; border-radius: 32px; background: var(--navy); color: #fff; }
.event-hero__inner { position: relative; padding: 32px 40px 44px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.event-hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.event-hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.event-hero :focus-visible { outline-color: #fff; }
.event-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.event-hero h1 { font-size: clamp(38px, 5.4vw, 76px); line-height: .98; letter-spacing: -.03em; overflow-wrap: anywhere; }
.event-hero__lead { font: 600 24px/1.25 var(--display); }
.event-hero__figure { flex: 1 1 440px; min-width: 0; margin: 0; position: relative; }
.event-hero__figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.28); background: var(--soft); }
.event-hero__figure figcaption { position: absolute; right: 14px; bottom: 12px; max-width: calc(100% - 28px); background: rgba(3,30,56,.82); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.event-nav { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.event-nav__step { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); color: #fff; }
.event-nav__step:hover { background: #fff; color: var(--navy); }

/* ---------- fiche : l'essentiel ---------- */
.essentials { margin-top: 24px; margin-bottom: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.essential { background: var(--tile); border-radius: 22px; padding: 20px 22px; }
.essential dt { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.essential dd { margin: 4px 0 0; display: flex; flex-direction: column; gap: 4px; }
.essential__main { font: 800 26px/1.1 var(--display); }
.essential__sub { font-size: 15px; font-weight: 600; }

/* ---------- fiche : corps ---------- */
.event-body { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.event-article { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; }
.event-article h2, .venue h2 { font-size: 36px; line-height: 1.1; letter-spacing: -.01em; }
.prose { display: flex; flex-direction: column; gap: 16px; overflow-wrap: anywhere; }
.prose h3 { font-size: 24px; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; list-style: revert; }
.prose img { height: auto; border-radius: 16px; }
.prose a { color: var(--blue); }
.a11y-list { display: flex; flex-wrap: wrap; gap: 8px; }
.a11y-list li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 600; }
.temps-fort { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 22px; background: var(--sun); text-decoration: none; }
.temps-fort:hover { color: var(--navy); box-shadow: 0 12px 24px rgba(3,30,56,.16); }
.temps-fort__text { display: flex; flex-direction: column; line-height: 1.3; }
.temps-fort__text span:first-child { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.temps-fort__text span:last-child { font: 800 22px var(--display); }
.venue { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.venue__card { border-radius: 24px; overflow: hidden; background: var(--soft); }
.venue__text { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 16px; line-height: 1.5; }
.venue__text strong { font: 800 22px var(--display); }
.venue__access { color: var(--slate); font-size: 15px; }

/* ---------- fiche : réservation ---------- */
.event-aside { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.booking { background: var(--navy); color: #fff; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.booking :focus-visible { outline-color: #fff; }
.booking__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.booking__head h2 { font-size: 24px; }
.booking__head span { font-size: 14px; color: #cfd7df; }
.date-list { display: flex; flex-direction: column; gap: 8px; }
.date-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.08); }
.date-row__badge { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--sun); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-row__badge span:first-child { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.date-row__badge span:last-child { font: 800 22px var(--display); }
.date-row__text strong { font-size: 17px; }
.date-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.date-more[open] summary { margin-bottom: 8px; }
.booking__alt, .booking__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.booking__conditions { font-size: 14px; color: #e5e8eb; display: flex; flex-direction: column; gap: 4px; }
.organizer { border: 2px solid #e1e6ea; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 15px; }
.organizer > span { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.organizer strong { font: 800 19px var(--display); }
.organizer a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--blue); }
.block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.block__head a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--blue); }

/* ---------- liste : bascule liste / carte, écran partagé ---------- */
.block__intro { display: flex; flex-direction: column; gap: 22px; }
.results { display: flex; flex-direction: column; gap: 22px; }
.view-toggle { align-self: center; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.view-toggle a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.view-toggle a[aria-current="true"] { background: var(--navy); color: #fff; }
/* Vue carte : seule la zone de résultats passe en pleine largeur ; la bascule,
   le titre et les filtres restent à leur place. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-left: var(--gutter); }
.split__list { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.split__map { position: sticky; top: 16px; }
.map-panel { position: relative; height: min(940px, calc(100vh - 32px)); border-radius: 28px 0 0 28px; overflow: hidden; background: #e9edf0; }
.map-panel__canvas { position: absolute; inset: 0; }
.map-panel__back, .map-panel__follow, .map-panel__legend { position: absolute; z-index: 2; background: #fff; box-shadow: 0 6px 16px rgba(3,30,56,.18); }
.map-panel__back { left: 16px; top: 16px; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.map-panel__follow { left: 72px; top: 16px; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.map-panel__follow input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.map-panel__legend { left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.map-panel__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d1d9; }
.map-panel__noscript { position: absolute; inset: auto 16px 64px 16px; z-index: 2; background: #fff; padding: 12px 16px; border-radius: 16px; }
.map-panel .maplibregl-ctrl-group { border-radius: 14px; box-shadow: 0 6px 16px rgba(3,30,56,.18); }
.map-panel .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.maplibregl-ctrl-attrib { font-size: 12px; }
.venue-popup .maplibregl-popup-content { width: 330px; max-width: calc(100vw - 48px); padding: 16px; border-radius: 22px; box-shadow: 0 14px 40px rgba(3,30,56,.25); color: var(--navy); font: 15px/1.4 var(--text); }
.venue-popup .maplibregl-popup-close-button { width: 36px; height: 36px; right: 8px; top: 8px; border-radius: 50%; font-size: 22px; }
.venue-popup__body { display: flex; flex-direction: column; gap: 10px; }
.venue-popup__body h3 { margin-right: 36px; font-size: 21px; }
.venue-popup__count { color: var(--slate); font-size: 14px; }
.venue-popup__body ul { display: flex; flex-direction: column; gap: 6px; }
.venue-popup__body li a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 14px; background: var(--soft); text-decoration: none; }
.venue-popup__body li a:hover { background: #e3edf6; }
.venue-popup__body li img { flex: none; width: 60px; height: 45px; object-fit: cover; border-radius: 9px; }
.venue-popup__body li span { display: flex; flex-direction: column; min-width: 0; }
.venue-popup__when { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--blue); }
.venue-popup__title { font-weight: 700; line-height: 1.2; }
.venue-popup__all { min-height: 44px; font-size: 15px; }
.venue__card { display: flex; flex-wrap: wrap; }
.venue__text { flex: 1 1 280px; }
.venue__map { flex: 1 1 320px; min-height: 260px; position: relative; }

/* ---------- ajustements après comparaison avec les planches ---------- */
/* Les .wrap enfants d'un bloc flex en colonne doivent s'étirer : marges auto + flex = largeur du contenu. */
.block > .wrap { width: 100%; }
.hero .pill { min-height: 46px; padding: 0 22px; }
.pills--who { margin-top: 10px; }
.grid { gap: 32px 24px; }
.grid--related { gap: 16px; }
.toolbar .pill, .toolbar summary.pill { min-height: 46px; }
.toolbar .active-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar__past { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; }
.toolbar__past[aria-current="true"] { color: var(--navy); }
.pagination__step--off { background: var(--soft); color: #b5bec7; }
.site-footer__stroke { fill: none; stroke: var(--sun); stroke-width: 6; vector-effect: non-scaling-stroke; }
.site-footer .social { gap: 8px; }
.site-footer .social svg { width: 40px; height: 40px; }
.site-footer__editor { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 10px; }
/* Logo blanc fourni par la ville (03/12/2026), posé directement sur le bleu nuit. */
.site-footer__editor-logo { display: inline-flex; }
.site-footer__editor-logo img { height: 30px; width: auto; display: block; }
.card--tinted { background: var(--card-tint); padding: 12px 12px 20px; border-radius: 28px; gap: 14px; }
.card--tinted .card__body { padding: 0 8px; }
.card--tinted .card__when { color: var(--navy); }
.card--tinted .card__title { font-size: 22px; }
.card--tinted .card__where { color: var(--navy); font-weight: 600; }
.card--tinted .card__title a::after { border-radius: 28px; }
.block__head { align-items: flex-end; }
.block__head .pill { min-height: 48px; padding: 0 22px; color: var(--navy); }
.block__title--sub { font-size: clamp(32px, 3.4vw, 44px); }
.temps-fort { justify-content: flex-start; margin-top: 8px; }
.temps-fort > svg { margin-left: auto; flex: none; }
.temps-fort__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.btn--ghost { white-space: nowrap; }
.date-more summary { list-style: none; gap: 8px; }
.date-more summary::-webkit-details-marker { display: none; }
.date-more summary::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px); }
.date-more[open] summary::after { transform: rotate(-135deg); }
.booking-slot--mobile { display: none; }
.venue-pin { display: block; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pin); border: 4px solid var(--navy); box-sizing: border-box; }
.map-panel__legend { top: 72px; bottom: auto; gap: 14px; padding: 8px 16px; }
.map-panel__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.map-panel__dot { width: 14px; height: 14px; border: 0; box-shadow: none; }
.map-panel__count { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.map-panel__limit { position: absolute; z-index: 2; left: 16px; bottom: 16px; max-width: calc(100% - 140px); background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 13px; box-shadow: 0 6px 16px rgba(3,30,56,.18); }
.venue-popup__body li a { padding: 5px; }
.venue-popup__when { font-size: 12px; }
.venue-popup__title { font: 800 15px/1.15 var(--display); }
.venue-popup .maplibregl-popup-close-button { background: var(--soft); color: var(--navy); }

/* ---------- carte « À la Une » ---------- */
.grid--feature { gap: 28px; }
.card--feature { background: var(--card-tint); padding: 12px 12px 22px; border-radius: 28px; gap: 14px; }
.card--feature .card__title a::after { border-radius: 28px; }
.card--feature .card__body { padding: 18px 10px 0; gap: 6px; }
.card--feature .card__title { font-size: 24px; line-height: 1.12; }
.card__detail { font-size: 15px; font-weight: 600; }
.card__publics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card__publics li { background: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.date-badge { position: absolute; left: 14px; bottom: -18px; background: #fff; border-radius: 16px; padding: 6px 14px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 6px 16px rgba(3,30,56,.14); line-height: 1.1; }
.date-badge span:nth-child(1), .date-badge span:nth-child(3) { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.date-badge span:nth-child(2) { font: 800 30px/1 var(--display); }

/* ---------- mobile (maquette « Accueil mobile ») ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .banner > .wrap { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 12px; }
  .banner__panel { border-radius: 24px; }
  .banner--home .banner__panel { border-radius: 28px; }
  .banner__photo, .banner--home .banner__photo { object-position: 42% 66%; }
  .banner--home .banner__photo { object-position: 42% 62%; }
  .banner__inner { padding: 14px 12px 10px; }
  .banner--home .banner__inner { padding: 16px 14px 24px; }
  /* Fiche : logo et sigle sur une ligne, réseaux centrés dessous. */
  .banner__top { grid-template-columns: auto auto; justify-content: space-between; gap: 8px 12px; }
  .banner__actions { grid-column: 1 / -1; justify-self: center; }
  .banner__city img { height: 40px; }
  .banner__brand img { height: 66px; }
  /* Accueil : logo puis réseaux, centrés. */
  .banner--home .banner__top { flex-direction: column; align-items: center; gap: 14px; }
  .banner--home .banner__city img { height: 46px; }
  .banner .social, .banner--home .social { gap: 0; }
  .banner .social svg, .banner--home .social svg { width: 32px; height: 32px; }
  .banner__contribute { display: none; }
  .banner__contribute-mobile { display: flex; min-height: 50px; }
  .hero { gap: 14px; margin-top: 14px; }
  .hero h1 { margin: 14px 0 2px; }
  .hero h1 img { width: 270px; max-width: 100%; }
  .hero__lead { font-size: 16px; }
  .search { padding: 6px 6px 6px 16px; }
  .search > svg { display: none; }
  .search input { font-size: 16px; height: 44px; }
  .search .btn { width: 46px; height: 46px; padding: 0; font-size: 0; }
  .search .btn::before { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>') center / contain no-repeat; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>') center / contain no-repeat; }
  .hero__filters--pills { display: none; }
  .hero__filters--selects { display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; gap: 8px; }
  .select { position: relative; flex: 1; min-width: 0; }
  .select select { appearance: none; -webkit-appearance: none; width: 100%; height: 48px; padding: 0 38px 0 16px; border: 2px solid #fff; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 15px; text-overflow: ellipsis; }
  .select select option { color: var(--navy); }
  .select:has(option:checked:not([value=""])) select { background: #fff; color: var(--navy); }
  .select svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: #fff; }
  .select:has(option:checked:not([value=""])) svg { color: var(--navy); }
  .hero__filters--selects .btn { width: 100%; }
  /* Une seule ligne qui défile, bord à bord : le défilement reste interne à la liste. */
  .categories { margin-top: 24px; padding: 0; }
  .categories ul { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
  .tile { flex: none; min-height: 44px; padding: 0 16px; align-items: center; border-radius: 999px; font-size: 16px; white-space: nowrap; }
  .tile::before, .tile svg { display: none; }
  .block { margin-top: 36px; }
  .block__title { font-size: 34px; }
  .grid, .grid--feature { grid-template-columns: 1fr; gap: 24px; }
  .event-hero .wrap { padding: 0 12px; }
  .event-hero__inner { padding: 20px 16px 24px; gap: 20px; }
  .event-hero__panel { border-radius: 28px; }
  .event-hero__lead { font-size: 18px; }
  .essentials { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .essential { padding: 14px 16px; border-radius: 18px; }
  .essential__main { font-size: 19px; }
  .essential__sub { font-size: 13px; }
  .event-body { margin-top: 32px; gap: 32px; }
  .event-article { font-size: 17px; }
  .event-article h2, .venue h2 { font-size: 28px; }
  .split { grid-template-columns: 1fr; padding: 0; gap: 24px; }
  .split__map { position: static; order: -1; }
  .map-panel { height: 62vh; border-radius: 0; }
  .map-panel__follow { left: 68px; right: 64px; font-size: 13px; }
  .split__list { padding: 0 var(--gutter); }
  /* Maquette mobile : trois cartes « À la Une ». */
  .grid--feature > :nth-child(n+4) { display: none; }
  .counter__page { display: none; }
  .counter { flex-wrap: nowrap; }
  .toolbar__past { margin-left: 0; }
  .site-footer__curve { height: 32px; }
  .site-footer__stroke { display: none; }
  .site-footer__main .social { order: 3; }
  .site-footer__main .btn { order: 4; }
  .site-footer__legal { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
  .site-footer__editor { flex-basis: 100%; justify-content: center; margin: 12px 0 0; }
  .booking-slot--mobile { display: block; margin-top: 12px; padding: 0 12px; }
  .event-aside .booking--bureau { display: none; }
  .booking { padding: 18px; border-radius: 24px; }
  /* Bandeau de fiche : retour, image, puis puces, titre et chapô (maquette mobile). */
  .event-hero__text { display: contents; }
  .event-hero__inner { display: flex; flex-direction: column; align-items: stretch; }
  .event-hero__top { order: 1; align-self: flex-start; }
  .event-hero__figure { order: 2; flex: none; }
  .event-hero__figure img { border-radius: 20px; }
  .event-hero__figure figcaption { font-size: 12px; }
  .event-hero__chips { order: 3; }
  .event-hero h1 { order: 4; font-size: 42px; }
  .event-hero__lead { order: 5; font-size: 19px; }
  .block__title--sub { font-size: 30px; }
  .map-panel__follow { font-size: 13px; line-height: 1.25; }
  /* La légende s'arrête avant la colonne des contrôles de zoom (64 px). */
  .map-panel__legend { top: auto; bottom: 36px; right: 64px; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
  .site-footer { margin-top: 48px; }
  .site-footer__main { flex-direction: column; text-align: center; justify-content: center; }
  .site-footer .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
#titre-liste:focus { outline: none; }
.card[id] { scroll-margin-top: 24px; }
/* Retour depuis la fiche : la carte de l'événement est repérée. */
.card:target { outline: 4px solid var(--sun); outline-offset: 6px; border-radius: 24px; }
