/* Kanto — maquette fonctionnelle. Feuille unique, sans dépendance. */
:root {
  --laterite: #B23A16;
  --laterite-dark: #8E2E11;
  --lagon: #0B5E5B;
  --lagon-dark: #073F3D;
  --vanille: #F0C97A;
  --nuit: #14201E;
  --sable: #F5F2EC;
  --mer: #DCEAE7;
  --ink: #1A1714;
  --ink-2: #3A342E;
  --muted: #5E574E;
  --faint: #8A8278;
  --line: #E2DCD2;
  --line-2: #D6CEC2;
  --white: #FFFFFF;
  --radius: 16px;
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --text: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --tabbar: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sable); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.5; padding-bottom: var(--tabbar); }
a { color: var(--lagon); }
a:hover { color: var(--lagon-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--vanille); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loading { padding: 80px 24px; color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; text-decoration: none; background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn:hover { color: inherit; border-color: var(--faint); }
.btn--accent { background: var(--laterite); color: var(--white); border-color: var(--laterite); }
.btn--accent:hover { background: var(--laterite-dark); color: var(--white); }
.btn--ink { background: var(--nuit); color: var(--white); border-color: var(--nuit); }
.btn--ink:hover { color: var(--white); background: #000; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.link-btn { border: 0; background: none; color: var(--lagon); font-weight: 600; text-decoration: underline; padding: 8px 0; }

/* Bandeau d'installation */
.install { background: var(--vanille); font-size: 14px; }
.install__in { display: flex; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.install__in span { flex: 1 1 260px; }
.install .icon-btn { background: transparent; border: 0; }

/* En-tête */
.top { background: var(--nuit); color: var(--white); position: sticky; top: 0; z-index: 20; }
.top__in { display: flex; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.logo:hover { color: var(--white); }
.logo b { color: var(--vanille); }
.nav { display: flex; gap: 4px 22px; flex: 1 1 auto; flex-wrap: wrap; }
.nav a { color: #C9D3D1; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; font-size: 15px; }
.nav a[aria-current="page"] { color: var(--white); font-weight: 600; border-color: var(--vanille); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--vanille); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }
.offline { font-size: 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 10px; color: var(--vanille); }

/* Pied de page */
.foot { background: var(--nuit); color: #C9D3D1; margin-top: 48px; }
.foot__in { display: flex; gap: 12px 32px; align-items: center; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; font-size: 14px; }
.foot p { flex: 1 1 300px; }
.logo--foot { font-size: 22px; }

/* Barre d'onglets mobile */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar: 72px; }
  .nav, .top .btn--accent { display: none; }
  .top__in { padding-top: 10px; padding-bottom: 10px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--line); z-index: 30; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--muted); text-decoration: none; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--laterite); font-weight: 600; }
  .foot { margin-top: 24px; }
  .wrap { padding: 0 16px; }
}

/* Accueil */
.home { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; }
.home__side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.home__map { flex: 1.25 1 480px; min-width: 0; }
.kicker { color: var(--laterite); font-weight: 600; font-size: 15px; }
.h-hero { font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
.lead { color: var(--muted); font-size: 18px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.panel__band { height: 14px; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 14px, transparent 14px 26px, rgba(0,0,0,.08) 26px 29px, transparent 29px 44px); }
.panel__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.panel__name { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -0.02em; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; background: var(--sable); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.prov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prov { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-height: 44px; text-align: left; }
.prov[aria-pressed="true"] { border-color: var(--ink); }
.prov i { flex: none; width: 16px; height: 16px; border-radius: 5px; }
.prov small { display: block; color: var(--muted); font-size: 12px; }
details.box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
details.box summary { cursor: pointer; font-weight: 600; }
.region-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin-top: 10px; font-size: 14px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; min-height: 52px; }
.search input { border: 0; outline: none; background: transparent; width: 100%; font-size: 16px; }

/* Carte */
.mapcard { position: relative; background: var(--mer); border-radius: 28px; padding: 20px 16px 16px; overflow: hidden; }
.mapcard svg.map { width: 100%; max-width: 500px; height: auto; margin: 0 auto; }
.map .rg path { stroke: var(--sable); stroke-width: 1.6; stroke-linejoin: round; transition: fill .5s ease, opacity .2s ease; }
.map .rg:focus { outline: none; }
.map .rg:focus-visible path, .map .rg.is-active path { stroke: var(--nuit); stroke-width: 3; }
.map.is-dim .rg:not(.is-active) path { opacity: .45; }
.map .lbl { font-family: var(--text); font-size: 15px; font-weight: 600; fill: var(--ink); stroke: #FFFFFF; stroke-opacity: .85; stroke-width: 3.5px; paint-order: stroke; stroke-linejoin: round; text-anchor: middle; pointer-events: none; }
.legend { position: absolute; top: 14px; left: 14px; width: 216px; z-index: 2; background: rgba(255,255,255,.93); border-radius: 16px; padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 6px; }
.legend__title { font-family: var(--display); font-weight: 800; font-size: 19px; }
.legend__hint { font-size: 13px; color: #2C4A46; }
.legend__bar { height: 10px; border-radius: 5px; }
.legend__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.legend__empty { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.hatch { width: 22px; height: 10px; border-radius: 5px; background: repeating-linear-gradient(45deg, #EFEAE2 0 3px, #D6CEC2 3px 4.5px); }
.switch { display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 6px 0 0; min-height: 44px; font-weight: 600; font-size: 14px; text-align: left; }
.switch__track { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--faint); transition: background .2s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: left .2s; }
.switch[aria-checked="true"] .switch__track { background: var(--laterite); }
.switch[aria-checked="true"] .switch__track::after { left: 21px; }
.sheet { display: none; }
@media (max-width: 760px) {
  .home { padding-top: 20px; gap: 20px; }
  .home__map { order: -1; flex-basis: 100%; }
  .panel--preview { display: none; }
  .legend { width: 178px; padding: 10px 12px 4px; }
  .legend__title, .legend__hint, .legend__empty { display: none; }
  .switch { font-size: 13px; white-space: nowrap; }
  .sheet { display: flex; position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar) + 8px); z-index: 25; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px 16px; flex-direction: column; gap: 10px; box-shadow: 0 6px 30px rgba(20,32,30,.18); }
  .sheet[hidden] { display: none; }
  .sheet__row { display: flex; align-items: center; gap: 12px; }
  .sheet__sw { flex: none; width: 44px; height: 44px; border-radius: 12px; }
  .sheet__actions { display: flex; gap: 8px; }
  .sheet__actions .btn { flex: 1; border-radius: 14px; }
}

/* Sections */
.section { padding-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; }
.h2 { font-size: 32px; font-weight: 800; }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.disc { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); }
.disc:hover { color: var(--ink); border-color: var(--faint); }
.disc__band { height: 52px; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 14px, transparent 14px 26px, rgba(0,0,0,.1) 26px 29px, transparent 29px 44px); }
.disc__body { padding: 12px 14px 14px; }
.disc__body small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Région */
.rbanner { color: var(--ink); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 22px, transparent 22px 40px, rgba(0,0,0,.05) 40px 44px, transparent 44px 66px); }
.rbanner__in { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; padding-top: 32px; padding-bottom: 36px; }
.rbanner__txt { flex: 1 1 460px; display: flex; flex-direction: column; gap: 14px; }
.crumb { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumb a { color: inherit; }
.h-region { font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: .95; letter-spacing: -.035em; }
.pill { background: var(--white); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--ink); }
.pill--ink { background: var(--nuit); color: var(--white); }
.pill--line { background: transparent; border: 1px solid rgba(26,23,20,.4); text-decoration: none; color: inherit; }
.pill--line:hover { color: inherit; background: rgba(255,255,255,.4); }
.minimap { flex: 0 0 auto; background: var(--sable); border-radius: 22px; padding: 14px 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.minimap:hover { color: var(--ink); }
.minimap svg { width: 140px; height: auto; }
.minimap path { stroke: var(--sable); stroke-width: 3; }
.light-text { color: var(--white); }
.light-text .pill--line { border-color: rgba(255,255,255,.55); }

/* Filtres */
.filters { background: var(--white); border-bottom: 1px solid var(--line); }
.filters__in { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 14px; }
.fchip i { width: 10px; height: 10px; border-radius: 3px; }
.fchip small { font-size: 12px; opacity: .7; }
.fchip[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--white); }
.field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.field select, .field input[type="search"] { border: 1px solid var(--line-2); background: var(--white); border-radius: 10px; padding: 9px 10px; font-size: 14px; color: var(--ink); min-height: 40px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 40px; }
.check input { width: 18px; height: 18px; accent-color: var(--lagon); }
.spacer { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--white); width: 44px; height: 40px; display: flex; align-items: center; justify-content: center; }
.seg button[aria-pressed="true"] { background: var(--nuit); color: var(--white); }

/* Résultats */
.results { padding-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 6px 16px; }
.results__head h2 { font-size: 28px; font-weight: 800; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card__img { position: relative; height: 160px; }
.stripes { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 14px, transparent 14px 26px, rgba(0,0,0,.08) 26px 29px, transparent 29px 44px); }
.card__tag { position: absolute; top: 12px; left: 12px; background: var(--white); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.card__ini { position: absolute; left: 16px; bottom: 6px; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: rgba(255,255,255,.92); }
.card__fav { position: absolute; top: 6px; right: 6px; border: 0; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { display: flex; align-items: center; gap: 6px; }
.card__name h3 { font-size: 19px; }
.card__name a { color: var(--ink); text-decoration: none; }
.card__name a:hover { text-decoration: underline; }
.card__sub { color: var(--muted); font-size: 14px; }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #EFEAE2; font-size: 13px; }
.avail { font-weight: 600; color: var(--lagon); }
.avail--no { color: var(--faint); font-weight: 500; }
.demo-tag { font-size: 11px; font-weight: 700; background: var(--vanille); border-radius: 6px; padding: 1px 6px; }
.list { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.list__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; border-bottom: 1px solid #EFEAE2; }
.list__row:last-child { border-bottom: 0; }
.list__ava { width: 52px; height: 52px; border-radius: 12px; color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 19px; flex: none; }
.list__main { flex: 1 1 220px; }
.list__main a { font-weight: 600; color: var(--ink); text-decoration: none; }
.empty { background: var(--white); border: 1px dashed var(--line-2); border-radius: 16px; padding: 36px 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty strong { font-family: var(--display); font-size: 22px; }

/* Fiche artiste */
.cover { height: 220px; position: relative; }
.profile { display: flex; flex-wrap: wrap; gap: 32px; margin-top: -56px; position: relative; }
.profile__main { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.profile__aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; padding-top: 72px; }
.ava { width: 104px; height: 104px; border-radius: 26px; border: 5px solid var(--sable); color: var(--vanille); background: var(--nuit); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 38px; }
.h-artist { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.facts { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #EFEAE2; font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.note { background: #FBF3E1; border: 1px solid #EAD9AF; border-radius: 14px; padding: 12px 14px; font-size: 14px; }

/* Formulaires */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form select, .form textarea { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-weight: 400; font-size: 16px; background: var(--white); min-height: 44px; }
.form textarea { min-height: 110px; resize: vertical; }
.form small { font-weight: 400; color: var(--muted); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; padding: 18px; } }

/* Modale */
dialog { border: 0; border-radius: 22px; padding: 0; max-width: 520px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(20,32,30,.5); }
.dlg { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 20px); background: var(--nuit); color: var(--white); padding: 12px 18px; border-radius: 12px; z-index: 60; font-size: 15px; max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
