/* G6M_MAP_LEONIDA_V5 (22/09/2026)
   Carte interactive de Leonida : panneau lateral (recherche, filtres, sous-categories,
   decouvertes communautaires, legende) + carte pleine largeur restante. Responsive :
   < 1024 px le panneau devient une superposition ouverte par un bouton flottant.
   Feuille autonome, scope .g6m-map-* / .g6m-mapui* / .g6m-tm*, aucun style inline. */

.g6m-map-page { padding: 2.5rem 1rem 4rem; }
.g6m-map-page__inner { width: min(1560px, 100%); margin-inline: auto; }
.g6m-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.g6m-map-disclaimer {
    background: rgba(255, 216, 74, 0.08); border: 1px solid rgba(255, 216, 74, 0.35); border-radius: 12px;
    padding: 0.9rem 1.1rem; font-size: 0.86rem; line-height: 1.55; color: #f0e6c8; margin-bottom: 1.5rem;
}
.g6m-map-disclaimer strong { color: #ffd84a; }
.g6m-map-disclaimer a { color: #00d9ff; }

/* ---------- bandeau region (au-dessus) ---------- */
.g6m-map-info { background: #111116; border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; min-height: 96px; }
.g6m-map-info__hint { margin: 0; color: rgba(255,255,255,0.45); font-size: 0.92rem; text-align: center; padding: 1.2rem 1rem; }
.g6m-map-info-card { display: none; }
.g6m-map-info-card:not([hidden]) { display: flex; gap: 1.5rem; align-items: stretch; animation: g6mMapFade 0.25s ease; }
@keyframes g6mMapFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.g6m-map-info-card__img { width: 300px; max-width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; display: block; flex: 0 0 auto; }
.g6m-map-info-card__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.g6m-map-info-card__kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin: 0 0 0.3rem; }
.g6m-map-info-card--pink .g6m-map-info-card__kicker { color: #ff2daa; }
.g6m-map-info-card--cyan .g6m-map-info-card__kicker { color: #00d9ff; }
.g6m-map-info-card--violet .g6m-map-info-card__kicker { color: #a970ff; }
.g6m-map-info-card--yellow .g6m-map-info-card__kicker { color: #ffd84a; }
.g6m-map-info-card__title { margin: 0 0 0.5rem; font-size: 1.4rem; color: #fff; }
.g6m-map-info-card__text { margin: 0 0 0.8rem; color: rgba(255,255,255,0.75); line-height: 1.55; font-size: 0.93rem; }
.g6m-map-info-card__link { color: #00d9ff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.g6m-map-info-card__link:hover { text-decoration: underline; }

.g6m-map-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.g6m-map-chip { font: inherit; font-size: 0.84rem; font-weight: 600; padding: 0.45rem 0.95rem; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #eee; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.g6m-map-chip:hover { background: rgba(255,255,255,0.1); }
.g6m-map-chip.is-active { border-color: currentColor; }
.g6m-map-chip--pink.is-active { color: #ff2daa; }
.g6m-map-chip--cyan.is-active { color: #00d9ff; }
.g6m-map-chip--violet.is-active { color: #a970ff; }
.g6m-map-chip--yellow.is-active { color: #ffd84a; }

/* ---------- grille panneau + carte ---------- */
.g6m-mapui { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0.9rem; align-items: stretch; position: relative; height: 820px; transition: grid-template-columns 0.25s ease; }
.g6m-mapui.is-side-hidden { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }
.g6m-mapui.is-side-hidden .g6m-mapui__side { opacity: 0; pointer-events: none; }
.g6m-mapui:fullscreen, .g6m-mapui:-webkit-full-screen { height: 100vh; background: #050308; padding: 0.6rem; box-sizing: border-box; }
@media (max-width: 1100px) { .g6m-mapui { height: 680px; } }
@media (max-width: 1023px) {
    .g6m-mapui { grid-template-columns: minmax(0, 1fr); }
    .g6m-mapui__side { position: absolute; inset: 0; z-index: 20; transform: translateX(-102%); transition: transform 0.25s ease; max-width: 420px; box-shadow: 0 0 60px rgba(0,0,0,0.6); }
    .g6m-mapui.is-side-open .g6m-mapui__side { transform: none; }
}
@media (max-width: 640px) { .g6m-mapui { height: 560px; } .g6m-mapui__side { max-width: none; } }

/* ---------- panneau lateral ---------- */
.g6m-mapui__side {
    background: #111116; border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 0.9rem;
    overflow-y: auto; overflow-x: hidden; min-height: 0; color: #e8e8ee; font-size: 0.88rem; transition: opacity 0.2s;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.g6m-mapui__side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.g6m-mapui__side-head strong { font-size: 0.95rem; color: #fff; }
.g6m-mapui__close { border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.g6m-mapui__h { margin: 1rem 0 0.35rem; font-size: 0.95rem; color: #fff; display: flex; align-items: center; gap: 0.4rem; }
.g6m-mapui__help { margin: 0 0 0.6rem; font-size: 0.78rem; line-height: 1.45; color: rgba(255,255,255,0.55); }
.g6m-mapui__help a { color: #00d9ff; }

.g6m-mapui__search { position: relative; }
.g6m-mapui__search input {
    width: 100%; box-sizing: border-box; font: inherit; font-size: 0.9rem; padding: 0.6rem 0.8rem; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.35); color: #fff;
}
.g6m-mapui__search input:focus { outline: 2px solid #00d9ff; outline-offset: 1px; }
.g6m-mapui__results { list-style: none; margin: 0.35rem 0 0; padding: 0; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; background: #0c0c12; max-height: 260px; overflow: auto; }
.g6m-mapui__results li + li { border-top: 1px solid rgba(255,255,255,0.06); }
.g6m-mapui__results li.is-empty { padding: 0.6rem 0.75rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.g6m-mapui__results button { width: 100%; text-align: left; font: inherit; color: #eee; background: none; border: 0; padding: 0.5rem 0.7rem; display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto auto; column-gap: 0.55rem; cursor: pointer; }
.g6m-mapui__results button:hover, .g6m-mapui__results button:focus-visible { background: rgba(255,255,255,0.06); outline: none; }
.g6m-mapui__results button .g6m-mapui__swatch, .g6m-mapui__results button .g6m-cm-swatch { grid-row: 1 / span 2; align-self: center; }
.g6m-mapui__results strong { font-size: 0.86rem; font-weight: 600; }
.g6m-mapui__results small { font-size: 0.72rem; color: rgba(255,255,255,0.5); }

.g6m-mapui__counter { margin: 0.7rem 0 0.5rem; font-size: 0.8rem; color: #ffd84a; line-height: 1.4; }

.g6m-mapui__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 0.6rem; }
.g6m-mapui__actions button, .g6m-mapui__import span {
    font: inherit; font-size: 0.76rem; font-weight: 600; padding: 0.35rem 0.6rem; border-radius: 8px; cursor: pointer;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #eee;
}
.g6m-mapui__actions button:hover { background: rgba(255,255,255,0.1); }

.g6m-mapui__opt { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8rem; margin: 0.3rem 0; line-height: 1.35; cursor: pointer; }
.g6m-mapui__opt em { font-style: normal; color: rgba(255,255,255,0.45); }
.g6m-mapui__opt input { margin-top: 0.15rem; accent-color: #ff2daa; }

.g6m-mapui__cats { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.g6m-mapui__cat { border-top: 1px solid rgba(255,255,255,0.06); padding: 0.25rem 0; }
.g6m-mapui__cat.is-smart-hidden .g6m-mapui__cat-name { color: rgba(255,255,255,0.4); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.25); }
.g6m-mapui__cat.is-smart-hidden .g6m-mapui__cat-name::after { content: ' (masqué à ce zoom)'; text-decoration: none; font-size: 0.7rem; }
.g6m-mapui__cat-line { display: flex; align-items: center; gap: 0.3rem; }
.g6m-mapui__cat-label { flex: 1; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.25rem 0; min-height: 34px; }
.g6m-mapui__cat-label input { accent-color: #ff2daa; }
.g6m-mapui__cat-name { flex: 1; }
.g6m-mapui__count { font-size: 0.72rem; color: rgba(255,255,255,0.45); font-variant-numeric: tabular-nums; }
.g6m-mapui__expand { width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #ccc; cursor: pointer; font-size: 0.8rem; }
.g6m-mapui__subs { list-style: none; margin: 0 0 0.3rem 1.9rem; padding: 0; }
.g6m-mapui__subs label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; padding: 0.2rem 0; cursor: pointer; color: rgba(255,255,255,0.8); }
.g6m-mapui__subs label input { accent-color: #ff2daa; }
.g6m-mapui__subs label span:nth-child(2) { flex: 1; }

/* pastilles categories (icone sur fond colore) */
.g6m-mapui__swatch, .g6m-tm__card-swatch, .g6m-cm-swatch, .g6m-mapui__pin-swatch {
    display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.7rem; line-height: 1; color: #0b0b10; font-weight: 800; flex: 0 0 auto; border: 1.5px solid rgba(0,0,0,0.5);
}
.g6m-mapui__swatch--embleme, .g6m-tm__card-swatch--embleme { background: #ff4d5e; }
.g6m-mapui__swatch--public, .g6m-tm__card-swatch--public { background: #ffd84a; }
.g6m-mapui__swatch--hotel, .g6m-tm__card-swatch--hotel { background: #ff2daa; }
.g6m-mapui__swatch--loisirs, .g6m-tm__card-swatch--loisirs { background: #b06bff; }
.g6m-mapui__swatch--transport, .g6m-tm__card-swatch--transport { background: #8fe388; }
.g6m-mapui__swatch--commerce, .g6m-tm__card-swatch--commerce { background: #ff8a3d; }
.g6m-mapui__swatch--nature, .g6m-tm__card-swatch--nature { background: #4ec97a; }
.g6m-mapui__swatch--industriel, .g6m-tm__card-swatch--industriel { background: #c9c9c9; }
.g6m-mapui__swatch--residentiel, .g6m-tm__card-swatch--residentiel { background: #7fd4ff; }
.g6m-mapui__swatch--autre, .g6m-tm__card-swatch--autre { background: #8a8a99; }
.g6m-mapui__pin-swatch--pink { background: #ff2daa; }
.g6m-mapui__pin-swatch--cyan { background: #00d9ff; }
.g6m-mapui__pin-swatch--violet { background: #a970ff; }
.g6m-mapui__pin-swatch--yellow { background: #ffd84a; }
.g6m-cm-swatch { color: #fff; font-size: 0.75rem; }
.g6m-cm-swatch--easter { background: #ff2daa; }
.g6m-cm-swatch--glitch { background: #ffb020; }
.g6m-cm-swatch--secret { background: #00d9ff; }
.g6m-cm-swatch--reference { background: #a970ff; }

/* decouvertes communautaires (panneau) */
.g6m-mapui__community { margin-top: 1rem; padding-top: 0.6rem; border-top: 1px solid rgba(255,45,170,0.35); }
.g6m-mapui__cats--cm .g6m-mapui__cat { border-top-color: rgba(255,255,255,0.04); }
.g6m-mapui__propose {
    width: 100%; margin-top: 0.5rem; font: inherit; font-size: 0.85rem; font-weight: 700; padding: 0.6rem 0.8rem; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(255,45,170,0.6); background: linear-gradient(135deg, rgba(255,45,170,0.22), rgba(141,56,255,0.22)); color: #fff; text-align: left; line-height: 1.3;
}
.g6m-mapui__propose em { display: block; font-style: normal; font-weight: 400; font-size: 0.74rem; color: rgba(255,255,255,0.6); }
.g6m-mapui__propose.is-on { border-color: #ffd84a; background: rgba(255,216,74,0.15); }
.g6m-mapui__mine { margin-top: 0.6rem; }
.g6m-mapui__mine summary, .g6m-mapui__legend summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: #fff; padding: 0.4rem 0; list-style: none; display: flex; align-items: center; gap: 0.4rem; }
.g6m-mapui__mine summary::before, .g6m-mapui__legend summary::before { content: '▸'; font-size: 0.8rem; color: #00d9ff; }
.g6m-mapui__mine[open] summary::before, .g6m-mapui__legend[open] summary::before { content: '▾'; }
.g6m-mapui__mine-list { list-style: none; margin: 0; padding: 0; }
.g6m-mapui__mine-list button { width: 100%; text-align: left; font: inherit; color: #eee; background: none; border: 0; border-top: 1px solid rgba(255,255,255,0.06); padding: 0.45rem 0.2rem; display: grid; grid-template-columns: 20px 1fr; column-gap: 0.5rem; cursor: pointer; }
.g6m-mapui__mine-list button .g6m-cm-swatch { grid-row: 1 / span 2; align-self: center; }
.g6m-mapui__mine-list strong { font-size: 0.84rem; font-weight: 600; }
.g6m-mapui__mine-list small { font-size: 0.72rem; color: rgba(255,255,255,0.55); }
.g6m-status { display: inline-block; padding: 0 0.4rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.g6m-status--pending { background: rgba(255,216,74,0.15); color: #ffd84a; }
.g6m-status--approved { background: rgba(78,201,122,0.15); color: #4ec97a; }
.g6m-status--rejected { background: rgba(255,77,94,0.15); color: #ff4d5e; }

/* legende compacte */
.g6m-mapui__legend { margin-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.3rem; }
.g6m-mapui__legend-h { margin: 0.6rem 0 0.25rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); }
.g6m-mapui__legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; }
.g6m-mapui__legend-list li { display: flex; align-items: flex-start; gap: 0.45rem; line-height: 1.35; }
.g6m-mapui__legend-list em { font-style: normal; color: rgba(255,255,255,0.5); }
.g6m-mapui__legend-list--plain li { color: rgba(255,255,255,0.7); }

/* ---------- badges de fiabilite ---------- */
.g6m-badge { display: inline-block; font-size: 0.9rem; line-height: 1; }
.g6m-badge--a { color: #7fd4ff; }
.g6m-badge--n { color: #ffb020; }
.g6m-badge--d { color: #8a8a99; }
.g6m-badge--cm { color: #ff2daa; }

/* ---------- carte ---------- */
.g6m-tm {
    position: relative; width: 100%; height: 100%; min-height: 320px; overflow: hidden; border-radius: 18px; background: #2b68a7; /* ocean des tuiles GTADB : bords hors miroir et zone decoupee (fiche credits) restent bleus */
    border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
    cursor: grab; touch-action: none; user-select: none;
}
.g6m-tm.is-dragging { cursor: grabbing; }
.g6m-tm.is-placing { cursor: crosshair; outline: 2px dashed #ffd84a; outline-offset: -2px; }
.g6m-tm__view, .g6m-tm__pins, .g6m-tm__dots, .g6m-tm__cm { position: absolute; inset: 0; will-change: transform; }
.g6m-tm__pins, .g6m-tm__dots, .g6m-tm__cm { pointer-events: none; }
.g6m-tm-tile { position: absolute; width: 256px; height: 256px; display: block; pointer-events: none; }

.g6m-tm-dot {
    position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #8a8a99;
    border: 1.5px solid rgba(10,8,4,0.8); box-shadow: 0 0 5px rgba(0,0,0,0.6); cursor: pointer; pointer-events: auto; padding: 0; transition: transform 0.12s;
}
.g6m-tm-dot--embleme { background: #ff4d5e; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
.g6m-tm-dot--public { background: #ffd84a; }
.g6m-tm-dot--hotel { background: #ff2daa; }
.g6m-tm-dot--loisirs { background: #b06bff; }
.g6m-tm-dot--transport { background: #8fe388; }
.g6m-tm-dot--commerce { background: #ff8a3d; }
.g6m-tm-dot--nature { background: #4ec97a; }
.g6m-tm-dot--industriel { background: #c9c9c9; }
.g6m-tm-dot--residentiel { background: #7fd4ff; }
.g6m-tm-dot--autre { background: #8a8a99; opacity: 0.85; }
.g6m-tm-dot.is-unconfirmed { border-style: dashed; border-color: #ffb020; }
.g6m-tm-dot.is-gone { opacity: 0.45; }
.g6m-tm-dot.is-fav { box-shadow: 0 0 0 2px #ffd84a, 0 0 10px rgba(255,216,74,0.8); }
.g6m-tm-dot:hover, .g6m-tm-dot:focus-visible { transform: scale(1.8); box-shadow: 0 0 10px rgba(255,255,255,0.9); outline: none; z-index: 2; }
.g6m-tm-dot.is-selected { transform: scale(2); box-shadow: 0 0 0 3px #fff, 0 0 14px #fff; z-index: 3; }

.g6m-tm-cm {
    position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; cursor: pointer; pointer-events: auto; padding: 0;
    border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.7); color: #fff; transition: transform 0.12s; z-index: 2;
}
.g6m-tm-cm > * { transform: rotate(45deg); }
.g6m-tm-cm { text-indent: 0; }
.g6m-tm-cm--easter { background: #ff2daa; }
.g6m-tm-cm--glitch { background: #ffb020; }
.g6m-tm-cm--secret { background: #00d9ff; }
.g6m-tm-cm--reference { background: #a970ff; }
.g6m-tm-cm--ghost { background: rgba(255,216,74,0.35); border-style: dashed; border-color: #ffd84a; pointer-events: none; }
.g6m-tm-cm:hover, .g6m-tm-cm:focus-visible { transform: rotate(-45deg) scale(1.2); outline: none; z-index: 4; }
.g6m-tm-cm.is-selected { transform: rotate(-45deg) scale(1.3); box-shadow: 0 0 0 3px #fff, 0 0 16px #fff; z-index: 5; }
.g6m-tm-cm span, .g6m-tm-cm::first-line { }

.g6m-tm-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; pointer-events: auto; z-index: 3; }
.g6m-tm-pin span { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.5), 0 0 14px currentColor; display: block; background: currentColor; }
.g6m-tm-pin em { font-style: normal; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; color: #fff; background: rgba(6,8,14,0.85); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.g6m-tm-pin--pink { color: #ff2daa; } .g6m-tm-pin--cyan { color: #00d9ff; } .g6m-tm-pin--violet { color: #a970ff; } .g6m-tm-pin--yellow { color: #ffd84a; }
.g6m-tm-pin:hover span { transform: scale(1.15); }

.g6m-tm__tooltip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: #12101a; border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; max-width: 260px; z-index: 6; pointer-events: none; box-shadow: 0 8px 20px -6px rgba(0,0,0,0.6); }

.g6m-tm__side-toggle {
    position: absolute; left: 12px; top: 12px; z-index: 7; font: inherit; font-size: 0.8rem; font-weight: 700; padding: 0.5rem 0.75rem; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.18); background: rgba(10,10,16,0.88); color: #fff; backdrop-filter: blur(6px); min-height: 40px;
}
.g6m-tm__zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 7; }
.g6m-tm__zoom button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(10,10,16,0.88); color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.g6m-tm__zoom button:hover { background: rgba(255,255,255,0.12); }
.g6m-tm__zoom button.is-on { border-color: #ffd84a; color: #ffd84a; }
.g6m-tm__zoomlvl { position: absolute; right: 60px; bottom: 12px; margin: 0; font-size: 0.72rem; color: rgba(255,255,255,0.6); background: rgba(10,10,16,0.7); padding: 4px 8px; border-radius: 999px; pointer-events: none; z-index: 6; }
.g6m-tm.is-clean .g6m-tm__dots, .g6m-tm.is-clean .g6m-tm__cm { display: none; }

/* ---------- fiches (lieu, decouverte, formulaire) ---------- */
.g6m-tm__card {
    position: absolute; left: 12px; bottom: 12px; z-index: 8; width: min(380px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto;
    background: rgba(14,12,20,0.96); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 0.9rem 1rem 0.8rem; color: #eee; font-size: 0.85rem;
    box-shadow: 0 18px 50px -14px rgba(0,0,0,0.8); backdrop-filter: blur(8px); cursor: auto; user-select: text; animation: g6mMapFade 0.2s ease;
}
.g6m-tm__card-close { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #fff; cursor: pointer; }
.g6m-tm__card-cat { margin: 0 2rem 0.2rem 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 0.4rem; }
.g6m-tm__card-title { margin: 0 2rem 0.4rem 0; font-size: 1.08rem; color: #fff; line-height: 1.25; }
.g6m-tm__card-status { margin: 0 0 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.8); }
.g6m-tm__card-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; margin: 0.3rem 0 0.5rem; font-size: 0.78rem; }
.g6m-tm__card-dl dt { color: rgba(255,255,255,0.45); }
.g6m-tm__card-dl dd { margin: 0; color: #eee; overflow-wrap: anywhere; }
.g6m-tm__card-dl a { color: #00d9ff; }
.g6m-tm__card-note { margin: 0.3rem 0; font-size: 0.75rem; line-height: 1.4; color: rgba(255,255,255,0.6); }
.g6m-tm__card-note--empty { color: rgba(255,216,74,0.8); }
.g6m-tm__card-desc { margin: 0.4rem 0 0.5rem; line-height: 1.5; white-space: pre-line; color: rgba(255,255,255,0.88); }
.g6m-tm__card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.g6m-tm__card-actions button { font: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.45rem 0.7rem; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff; min-height: 36px; }
.g6m-tm__card-actions button:hover { background: rgba(255,255,255,0.12); }
.g6m-tm__card-actions button[aria-pressed="true"] { border-color: #ffd84a; color: #ffd84a; }
.g6m-tm__card-actions button[type="submit"] { background: linear-gradient(135deg, #ff2daa, #8d38ff); border-color: transparent; }
.g6m-tm__card-actions button:disabled { opacity: 0.6; cursor: wait; }

.g6m-tm__media { margin: 0.4rem 0 0.5rem; border-radius: 10px; overflow: hidden; background: #000; }
.g6m-tm__media img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; background: #000; }
.g6m-tm__media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.g6m-tm__yt { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.g6m-tm__yt img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; opacity: 0.85; }
.g6m-tm__yt span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.75); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.5rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); white-space: nowrap; }

.g6m-tm__cm-form { width: min(440px, calc(100% - 24px)); }
.g6m-tm__field { display: flex; flex-direction: column; gap: 0.25rem; margin: 0.45rem 0; font-size: 0.78rem; color: rgba(255,255,255,0.8); }
.g6m-tm__field em { font-style: normal; color: rgba(255,255,255,0.45); }
.g6m-tm__field input, .g6m-tm__field select, .g6m-tm__field textarea {
    font: inherit; font-size: 0.86rem; color: #fff; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.16); border-radius: 8px; padding: 0.5rem 0.6rem; width: 100%; box-sizing: border-box;
}
.g6m-tm__field input[type="file"] { padding: 0.35rem; font-size: 0.78rem; }
.g6m-tm__field input:focus, .g6m-tm__field select:focus, .g6m-tm__field textarea:focus { outline: 2px solid #00d9ff; outline-offset: 1px; }
.g6m-tm__field-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; align-items: end; }
.g6m-tm__or { font-size: 0.72rem; text-transform: uppercase; color: rgba(255,255,255,0.45); padding-bottom: 0.75rem; }
@media (max-width: 480px) { .g6m-tm__field-row { grid-template-columns: 1fr; } .g6m-tm__or { padding: 0; text-align: center; } }
.g6m-tm__form-msg { margin: 0.4rem 0 0; font-size: 0.8rem; padding: 0.45rem 0.6rem; border-radius: 8px; }
.g6m-tm__form-msg.is-info { background: rgba(0,217,255,0.1); color: #7fe6ff; }
.g6m-tm__form-msg.is-success { background: rgba(78,201,122,0.15); color: #7fe0a0; }
.g6m-tm__form-msg.is-error { background: rgba(255,77,94,0.15); color: #ff8b98; }

@media (max-width: 640px) {
    .g6m-tm__card { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 70%; }
    .g6m-tm__zoom button { width: 44px; height: 44px; }
    .g6m-tm__zoomlvl { display: none; }
    .g6m-map-info-card:not([hidden]) { flex-direction: column; }
    .g6m-map-info-card__img { width: 100%; }
}

/* ---------- methodologie, sources ---------- */
.g6m-map-methodo { margin-top: 1.75rem; background: #111116; border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 1.5rem 1.75rem; }
.g6m-map-methodo h2 { margin: 0 0 0.8rem; font-size: 1.25rem; color: #fff; }
.g6m-map-methodo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
@media (max-width: 780px) { .g6m-map-methodo__grid { grid-template-columns: 1fr; } }
.g6m-map-methodo h3 { margin: 0 0 0.3rem; font-size: 0.95rem; color: #00d9ff; }
.g6m-map-methodo p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: rgba(255,255,255,0.75); }
.g6m-map-methodo code { font-size: 0.8em; background: rgba(255,255,255,0.08); padding: 0.05em 0.35em; border-radius: 4px; }
.g6m-map-sources { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 1.25rem; }
.g6m-map-sources a { color: #00d9ff; }
.g6m-map-credit { font-size: 0.76rem; line-height: 1.6; color: rgba(255,255,255,0.4); margin-top: 0.4rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.g6m-map-credit a { color: rgba(0,217,255,0.8); }

@media (prefers-reduced-motion: reduce) {
    .g6m-mapui, .g6m-mapui__side, .g6m-tm-dot, .g6m-tm-cm, .g6m-tm__card, .g6m-map-info-card:not([hidden]) { transition: none; animation: none; }
}

/* ---------- journal en direct (terminal) ---------- */
.g6m-term {
    margin-top: 1rem; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,255,156,0.25);
    background: #050807; box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 20px 50px -24px rgba(0,255,156,0.35), inset 0 0 80px rgba(0,255,156,0.04);
    font-family: "IBM Plex Mono", "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace; color: #b8ffd9;
}
.g6m-term__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.8rem; background: #0b100d; border-bottom: 1px solid rgba(0,255,156,0.2); font-size: 0.74rem; }
.g6m-term__dots { display: inline-flex; gap: 5px; }
.g6m-term__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; display: block; }
.g6m-term__dots i:nth-child(2) { background: #febc2e; } .g6m-term__dots i:nth-child(3) { background: #28c840; }
.g6m-term__title { flex: 1; color: rgba(184,255,217,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g6m-term__status { color: #00ff9c; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; }
.g6m-term__status::before { content: '●'; margin-right: 0.35rem; animation: g6mTermBlink 1.2s steps(2, start) infinite; }
.g6m-term__status.is-off { color: #ff8a3d; }
.g6m-term__actions { display: inline-flex; gap: 0.3rem; }
.g6m-term__actions button { font: inherit; font-size: 0.7rem; color: #b8ffd9; background: rgba(0,255,156,0.06); border: 1px solid rgba(0,255,156,0.25); border-radius: 6px; padding: 0.2rem 0.5rem; cursor: pointer; }
.g6m-term__actions button:hover { background: rgba(0,255,156,0.14); }
.g6m-term__body {
    list-style: none; margin: 0; padding: 0.6rem 0.9rem; height: 260px; overflow-y: auto; font-size: 0.78rem; line-height: 1.55;
    background: repeating-linear-gradient(0deg, rgba(0,255,156,0.025) 0 1px, transparent 1px 3px); scrollbar-width: thin; scrollbar-color: rgba(0,255,156,0.3) transparent;
}
.g6m-term__body::after { content: '▮'; display: block; color: #00ff9c; animation: g6mTermBlink 1s steps(2, start) infinite; }
.g6m-term__line { display: flex; flex-wrap: wrap; gap: 0 0.55rem; padding: 0.08rem 0; overflow-wrap: anywhere; }
.g6m-term__line time { color: rgba(184,255,217,0.5); flex: 0 0 auto; }
.g6m-term__line b, .g6m-term__k { font-weight: 700; letter-spacing: 0.06em; flex: 0 0 auto; }
.g6m-term__line span { color: #d9ffe9; }
.g6m-term__line.is-local time, .g6m-term__line.is-local span { color: rgba(184,255,217,0.55); }
.g6m-term__line.is-local b, .g6m-term__k--local { color: #7fd4ff; }
.g6m-term__line--proposed b, .g6m-term__k--proposed { color: #ffd84a; }
.g6m-term__line--approved b, .g6m-term__k--approved { color: #00ff9c; }
.g6m-term__line--updated b, .g6m-term__k--updated { color: #00d9ff; }
.g6m-term__line--rejected b, .g6m-term__k--rejected { color: #ff8a3d; }
.g6m-term__line--deleted b, .g6m-term__k--deleted { color: #ff4d5e; }
.g6m-term__line--sync b, .g6m-term__line--system b { color: #a970ff; }
.g6m-term__line.is-fresh { animation: g6mTermType 0.6s steps(24, end) both; }
.g6m-term__line.is-fresh span { text-shadow: 0 0 8px rgba(0,255,156,0.6); }
.g6m-term__go { font: inherit; font-size: 0.72rem; color: #00ff9c; background: none; border: 1px solid rgba(0,255,156,0.35); border-radius: 4px; padding: 0 0.4rem; cursor: pointer; }
.g6m-term__go:hover { background: rgba(0,255,156,0.12); }
.g6m-term__legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0; padding: 0.5rem 0.9rem 0.6rem; border-top: 1px solid rgba(0,255,156,0.15); font-size: 0.68rem; color: rgba(184,255,217,0.6); }
.g6m-term__legend .g6m-term__k { margin-right: 0.3rem; }
.g6m-term__clock { margin-left: auto; color: rgba(184,255,217,0.45); }
@keyframes g6mTermBlink { 50% { opacity: 0; } }
@keyframes g6mTermType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 640px) {
    .g6m-term__title { display: none; }
    .g6m-term__body { height: 200px; font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) { .g6m-term__status::before, .g6m-term__body::after, .g6m-term__line.is-fresh { animation: none; } }
