.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* taille par défaut des petits drapeaux (les cas particuliers la remplacent) */
:where(img.flag) { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: inline-block; }
.wrec .kv > span:last-child { text-align: right; }
:root {
  --ink: #264653;
  --ink-2: #4d6470;
  --muted: #8b9a9c;
  --bg: #f7f4ee;
  --card: #ffffff;
  --line: #e6e0d4;
  --ocean: #d6e6e8;
  --land: #fbf8f2;
  --border: #d9d0bf;
  --visited: #e76f51;
  --visited-soft: #fbe4dc;
  --wish: #e9c46a;
  --wish-soft: #fbf1d6;
  --accent: #264653;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #e3ebea; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }

#app {
  position: relative; height: 100%; max-width: 520px; margin: 0 auto;
  background: var(--bg); display: flex; flex-direction: column; overflow: hidden; overflow: clip;
  box-shadow: 0 0 40px rgba(38, 70, 83, .15);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--ink); color: #fff; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: .2px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.summary {
  background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: 6px 12px;
  color: #fff; font-size: 14px; font-weight: 600;
}

main { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; display: none; overflow-y: auto; }
.view.active { display: block; }
#view-map.active { overflow: hidden; }
.pad { padding: 16px 16px 32px; }

#map { position: absolute; inset: 0; background: var(--ocean); }
.leaflet-container { background: var(--ocean); font: inherit; }
.leaflet-control-attribution { display: none; }
.leaflet-control-zoom a { color: var(--ink) !important; }

.legend {
  position: absolute; left: 12px; bottom: 14px; z-index: 500; display: flex; gap: 12px;
  background: rgba(255,255,255,.9); padding: 6px 12px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot.visited { background: var(--visited); }
.dot.wish { background: #efd28a; }
.dot.pin { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.ramp i { display: inline-block; width: 7px; height: 10px; vertical-align: -1px; }
.ramp i:first-child { border-radius: 3px 0 0 3px; }
.ramp i:nth-child(4) { border-radius: 0 3px 3px 0; margin-right: 5px; }

.fab {
  position: absolute; right: 16px; bottom: 16px; z-index: 500; width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--visited); color: #fff; font-size: 34px; line-height: 1;
  box-shadow: 0 6px 18px rgba(231, 111, 81, .45);
}

.tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b); z-index: 5;
}
.tabbar button {
  border: 0; background: none; padding: 8px 0 9px; font-size: 12px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar button.on { color: var(--ink); font-weight: 600; }

/* Listes */
.segmented { display: flex; margin: 14px 16px 0; background: #ebe5d8; border-radius: 12px; padding: 3px; }
.segmented button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.segmented button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.search {
  display: block; width: calc(100% - 32px); margin: 12px 16px; padding: 11px 14px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); outline: none;
}
.search:focus { border-color: var(--ink-2); }
.list-body { padding: 0 16px 24px; }
.group-title { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .6px; margin: 18px 4px 8px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card);
  border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px;
}
.rows { border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.rows .row:last-child { border-bottom: 0; }
.row .flag { width: 28px; height: 21px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.row .badge { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--visited-soft); color: var(--visited); flex: none; }
.row .badge.wish { background: var(--wish-soft); color: #8a6a12; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; line-height: 1.5; }

/* Stats */
.hero {
  background: var(--ink); color: #fff; border-radius: 20px; padding: 20px; display: grid;
  grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center;
}
.hero b { display: block; font-size: 30px; line-height: 1.1; }
.hero span { font-size: 12px; opacity: .8; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-top: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card h3 { margin: 0 0 12px; font-size: 16px; }
.progress { height: 10px; background: #efe9dd; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--visited); border-radius: 999px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 54px; align-items: center; gap: 10px; margin: 9px 0; font-size: 14px; }
.bar-row .n { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--ink-2); }
.kv span:last-child { font-weight: 600; text-align: right; }
.big-pct { font-size: 42px; font-weight: 800; color: var(--visited); line-height: 1; }

/* Réglages */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0;
  border-radius: 12px; padding: 13px 16px; font-weight: 600; font-size: 15px; background: var(--ink); color: #fff; margin-top: 10px;
}
.btn.secondary { background: #ebe5d8; color: var(--ink); }
.btn.danger { background: #fbe4dc; color: #b5462c; }
.btn.visited { background: var(--visited); }
.btn.wish { background: var(--wish); color: #4a3b10; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.help { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.help ol { padding-left: 20px; margin: 8px 0; }
.help li { margin: 4px 0; }
details.help summary { cursor: pointer; font-weight: 600; color: var(--ink); margin-top: 10px; }

/* Feuille du bas */
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 40, 48, .35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1000; }
.sheet-backdrop.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1001; background: var(--bg);
  border-radius: 22px 22px 0 0; max-height: 86%; overflow-y: auto; transform: translateY(105%);
  transition: transform .25s ease; padding: 6px 18px calc(22px + var(--safe-b));
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
}
.sheet.on { transform: translateY(0); }
.grip { width: 40px; height: 5px; border-radius: 3px; background: #d4ccbc; margin: 4px auto 12px; }
.sheet h2 { margin: 4px 0 4px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.sheet h2 img { width: 36px; height: 27px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.sheet .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.choice { display: flex; gap: 8px; margin: 14px 0 6px; }
.choice button { flex: 1; border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 6px; font-weight: 600; font-size: 14px; }
.choice button.on[data-v="visited"] { border-color: var(--visited); background: var(--visited-soft); color: #b5462c; }
.choice button.on[data-v="wish"] { border-color: var(--wish); background: var(--wish-soft); color: #8a6a12; }
.choice button.on[data-v="none"] { border-color: var(--ink-2); background: #ebe5d8; }
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 12px 0 4px; }
.input { width: 100%; padding: 11px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-family: inherit; }
textarea.input { min-height: 70px; resize: vertical; }
.results { margin-top: 8px; }
.results .row { border-radius: 0; }

.toast {
  position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px;
  transition: all .25s; z-index: 2000; pointer-events: none; max-width: 90%; text-align: center;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.pin-marker { background: none; border: 0; }
.spinner { width: 34px; height: 34px; border: 4px solid #e6e0d4; border-top-color: var(--visited); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.welcome-hero { text-align: center; padding: 6px 0 4px; }
.welcome-hero img { width: 72px; height: 72px; border-radius: 18px; }
.welcome-hero h2 { justify-content: center; }

.meta .flag, .help .flag { width: 22px; height: 16px; border-radius: 2px; vertical-align: -2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* Statistiques Timeline */
.tl-head { margin: 26px 2px 6px; }
.tl-head h2 { margin: 0 0 6px; font-size: 22px; }
.tl-head b { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tile { background: var(--card); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.tile b { display: block; font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile span { font-size: 11.5px; color: var(--muted); }
.bar-row.yr { grid-template-columns: 44px minmax(0, 1fr) 58px; margin: 6px 0; }
.bar-row.yr > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .bar-row.yr span:first-child:not(:empty) { font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #efe9dd; }
.stack i { display: block; height: 100%; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.legend-inline i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.help.small { font-size: 12.5px; margin-top: 4px; }
.newc { font-size: 12px; color: var(--ink-2); margin: -2px 0 8px 54px; line-height: 1.35; }
.mgrid { display: grid; grid-template-columns: 26px repeat(12, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.mgrid .h, .wgrid .h { font-size: 11px; color: var(--muted); text-align: center; align-self: center; }
.mgrid .c { aspect-ratio: 1.6; border-radius: 4px; background: #f1ece2; font-size: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.wgrid { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
.wgrid .h { text-align: left; }
.wgrid .c { aspect-ratio: 0.8; border-radius: 2px; background: #f1ece2; }
.calcv { width: 100%; display: block; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 4px 4px 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; white-space: nowrap; }
.tbl .flag { width: 20px; height: 15px; border-radius: 2px; vertical-align: -2px; margin-right: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.kv small { font-weight: 400; color: var(--muted); }
.bar-row.yr.wide { grid-template-columns: 110px minmax(0, 1fr) 62px; }
.sync { font-size: 13.5px; border-radius: 10px; padding: 9px 12px; margin: 4px 0 10px; background: #eef3f2; color: var(--ink-2); }
.sync.synced { background: #e3f1ee; color: #1f6f65; font-weight: 600; }
.sync.error { background: var(--visited-soft); color: #b5462c; }

/* Drapeaux sur la carte */
.flag-pin { background: none; border: 0; }
.flag-pin img { display: block; margin: 0 auto; border-radius: 3px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(20,40,48,.35); object-fit: cover; background: #fff; }
.flag-pin::after { content: ''; display: block; width: 2px; height: 8px; margin: 0 auto; background: #264653; border-radius: 1px; }
.flag-pin.pop img { animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: translateY(-14px) scale(.2); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* Boutons de la carte */
.map-tools { position: absolute; top: 12px; right: 12px; z-index: 600; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.chip { border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.92); color: var(--ink-2); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.chip.on { background: var(--ink); color: #fff; }
.chip.play { background: var(--visited); color: #fff; }
/* Rejouer */
.replay { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 590; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: all .3s; max-width: calc(100% - 140px); }
.replay.on { opacity: 1; transform: none; }
.replay .ry { font-size: 54px; font-weight: 800; color: var(--ink); line-height: 1; text-shadow: 0 2px 0 #fff, 0 0 12px rgba(255,255,255,.9); }
.replay .rc { font-size: 16px; color: var(--ink-2); margin-top: 2px; text-shadow: 0 0 8px #fff; }
.replay .rc b { color: var(--visited); font-size: 20px; }
.replay .rn { margin-top: 8px; background: rgba(255,255,255,.92); border-radius: 12px; padding: 8px 10px; font-size: 13.5px; line-height: 1.6; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.replay .rn .flag { width: 18px; height: 13px; border-radius: 2px; vertical-align: -2px; }
.muted { color: var(--muted); font-weight: 400; }
/* Fiche pays */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.facts div { background: var(--card); border-radius: 12px; padding: 10px 6px; text-align: center; }
.facts b { display: block; font-size: 20px; color: var(--visited); }
.facts span { font-size: 11.5px; color: var(--muted); }
/* Ce jour-là */
.otd { background: linear-gradient(135deg, #fff 0%, #fdf1ea 100%); }
.otd-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14.5px; }
.otd-row .flag { width: 30px; height: 22px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
/* Badges */
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.badge-c { border-radius: 12px; padding: 10px; background: #f3efe6; display: grid; grid-template-columns: 34px minmax(0,1fr); column-gap: 8px; align-items: center; }
.badge-c:not(.ok) i { filter: grayscale(1); opacity: .45; }
.badge-c:not(.ok) b { color: var(--ink-2); }
.badge-c.ok { background: #fbe4dc; filter: none; opacity: 1; }
.badge-c i { grid-row: span 4; font-style: normal; font-size: 26px; text-align: center; }
.badge-c b { font-size: 13.5px; }
.badge-c span { font-size: 11.5px; color: var(--ink-2); line-height: 1.3; }
.hero b em { font-style: normal; font-size: inherit; }
.badge-group { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); margin: 14px 2px 8px; }
.badge-c .bp { display: block; height: 4px; background: #e3dccd; border-radius: 9px; overflow: hidden; margin-top: 5px; }
.badge-c .bp u { display: block; height: 100%; background: var(--visited); opacity: .7; }
.badge-c small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.host-badge .tabbar { padding-bottom: calc(var(--safe-b) + 64px); }
.brand span { letter-spacing: .1px; font-weight: 600; }
.brand span b { font-weight: 800; color: #f4a261; }
.welcome-hero .tagline { color: var(--muted); font-size: 14px; margin-top: -2px; }

/* Groupes repliables dans les listes */
details.grp { margin-bottom: 4px; }
details.grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 4px; margin: 6px 0 2px; user-select: none; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); transition: transform .2s; margin: 0 4px 0 2px; flex: none; }
details.grp[open] > summary::before { transform: rotate(45deg); }
details.grp > summary > span:first-child { flex: 1; display: flex; align-items: center; gap: 8px; }
details.grp > summary .flag { width: 22px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
details.grp > summary .cnt { font-size: 12px; font-weight: 700; color: var(--ink-2); background: #ebe5d8; border-radius: 999px; padding: 2px 9px; letter-spacing: 0; }
.grp-tools { display: flex; justify-content: flex-end; gap: 8px; margin: 2px 0 4px; }
.grp-tools button { border: 0; background: #ebe5d8; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.otd-row > span { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.otd-y { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; min-width: 38px; }
.otd-row small { color: var(--muted); font-size: 12px; margin-left: auto; }

/* Badges cliquables et fiche */
button.badge-c { border: 0; text-align: left; font: inherit; color: inherit; width: 100%; cursor: pointer; }
button.badge-c:active { transform: scale(.97); }
.badge-hero { text-align: center; padding: 4px 0 6px; }
.badge-hero i { display: inline-flex; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 50%; font-style: normal; font-size: 46px; background: #f1ece2; filter: grayscale(1); opacity: .6; }
.badge-hero.ok i { background: radial-gradient(circle at 35% 30%, #fff3ec, #fbe4dc 60%, #f6c7b3); filter: none; opacity: 1; box-shadow: 0 6px 18px rgba(231,111,81,.3); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.badge-hero h2 { justify-content: center; margin-top: 10px; }
.badge-state { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.badge-hero.ok .badge-state { color: #1f6f65; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip-c { display: inline-flex; align-items: center; gap: 6px; background: #f3efe6; border-radius: 999px; padding: 5px 10px; font-size: 13px; }
.chip-c .flag { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.chip-c small { color: var(--muted); }
.chip-c.todo { background: transparent; border: 1px dashed #d4ccbc; color: var(--muted); }
.chip-c.more { background: var(--ink); color: #fff; }
.kvs .flag { width: 20px; height: 15px; border-radius: 2px; vertical-align: -2px; margin-right: 4px; }

/* Guide d'export */
.g-step { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; align-items: start; background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font-size: 14.5px; line-height: 1.45; }
.g-n { width: 26px; height: 26px; border-radius: 50%; background: var(--visited); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.g-tip { background: #e3f1ee; color: #1f5f57; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; margin-top: 8px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.langs button { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.langs button .flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.langs button.on { border-color: var(--visited); background: var(--visited-soft); font-weight: 600; }
.langs.small { justify-content: center; margin: 4px 0 14px; }
.langs.small button { padding: 5px 10px; font-size: 13px; }
.cinfo .kv span:last-child { text-align: right; max-width: 62%; }
.fact { background: linear-gradient(135deg, #fbf1d6, #fbe4dc); }
.fact b { display: block; margin-bottom: 4px; color: var(--ink); }
.fact p { margin: 0; line-height: 1.45; color: var(--ink-2); }
.trips { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.trip { background: var(--card); border-radius: 12px; padding: 10px 12px; }
.trip-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.trip-h span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.trip-c { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.trip-n { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.trip-n .chip-c small { color: var(--muted); }
/* ---------- Jeu ---------- */
.lvl-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #264653, #2a9d8f); color: #fff; border-radius: var(--radius); padding: 14px; margin-top: 4px; cursor: pointer; box-shadow: 0 6px 18px rgba(38,70,83,.25); }
.lvl-ic { font-size: 34px; width: 54px; height: 54px; display: grid; place-items: center; background: rgba(255,255,255,.15); border-radius: 16px; }
.lvl-main { flex: 1; min-width: 0; }
.lvl-main small { opacity: .8; font-size: 12px; } .lvl-main b { display: block; font-size: 19px; margin: 1px 0 6px; }
.lvl-main span { font-size: 11.5px; opacity: .85; }
.xpbar { height: 8px; background: rgba(255,255,255,.22); border-radius: 99px; overflow: hidden; margin-bottom: 3px; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #e9c46a, #f4a261); border-radius: 99px; transition: width .8s; }
.lvl-streak { display: flex; flex-direction: column; align-items: center; font-size: 22px; filter: grayscale(1); opacity: .6; }
.lvl-streak.on { filter: none; opacity: 1; animation: pulse 1.6s infinite; } .lvl-streak b { font-size: 15px; }
@keyframes pulse { 50% { transform: scale(1.12); } }
#game-tabs { margin: 12px 0 4px; }
.quiz-cta { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; background: linear-gradient(135deg, #e76f51, #f4a261); color: #fff; border-radius: var(--radius); padding: 16px; margin-top: 12px; font: inherit; cursor: pointer; box-shadow: 0 6px 16px rgba(231,111,81,.35); animation: wiggle 3s 1s infinite; }
.quiz-cta.done { background: linear-gradient(135deg, #2a9d8f, #43aa8b); box-shadow: none; animation: none; }
.quiz-cta.gold { background: linear-gradient(135deg, #c9a227, #f3dc8a 50%, #c9a227); color: #4a3b10; box-shadow: 0 6px 16px rgba(201,162,39,.35); }
.quiz-cta b { display: block; font-size: 17px; } .quiz-cta small { opacity: .9; font-size: 12.5px; }
.qc-ic { font-size: 30px; } .qc-go { margin-left: auto; font-size: 28px; opacity: .8; }
@keyframes wiggle { 0%, 90%, 100% { transform: none; } 93% { transform: rotate(-1.5deg); } 96% { transform: rotate(1.5deg); } }
.quest { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; text-align: left; color: inherit; }
.quest:last-of-type { border-bottom: 0; }
.quest > i { font-size: 22px; font-style: normal; width: 36px; height: 36px; display: grid; place-items: center; background: #f3efe6; border-radius: 10px; flex: none; }
.quest > div { flex: 1; min-width: 0; } .quest b { font-size: 14px; display: block; } .quest small { font-size: 11.5px; color: var(--muted); }
.quest .bp { height: 6px; background: #eee6d8; border-radius: 99px; overflow: hidden; margin: 5px 0 2px; } .quest .bp u { display: block; height: 100%; background: var(--visited); border-radius: 99px; }
.quest.ready > i { background: #fbe4dc; animation: pulse 1.2s infinite; } .quest.claimed { opacity: .55; }
.qs-ok { color: #2a9d8f; font-weight: 800; font-size: 18px; } .qs-xp { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.btn.mini { width: auto; margin: 0; padding: 8px 10px; font-size: 13px; white-space: nowrap; animation: pulse 1.2s infinite; }
.chest { width: 100%; margin-top: 10px; border: 2px dashed #d9d0bf; background: #faf7f0; border-radius: 12px; padding: 12px; font: inherit; font-weight: 600; color: var(--muted); }
.chest.ready { border: 0; background: linear-gradient(135deg, #e9c46a, #f4a261); color: #4a3b10; animation: wiggle 1.6s infinite; cursor: pointer; }
.chest.opened { border-style: solid; color: #2a9d8f; }
.goal-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.goal-pick button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.goal-pick button.on { background: var(--visited); border-color: var(--visited); color: #fff; }
.wr-flags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 12px 0; } .wr-flags .flag { width: 30px; height: 21px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.wr-flags.small { justify-content: flex-start; } .wr-flags.small .flag { width: 22px; height: 16px; }
.kv.dim { opacity: .45; }
.xpfloat { position: fixed; left: 50%; top: 42%; transform: translateX(-50%); background: #264653; color: #e9c46a; font-weight: 800; padding: 8px 16px; border-radius: 99px; z-index: 3000; pointer-events: none; animation: xpup 1.8s forwards; box-shadow: 0 6px 20px rgba(0,0,0,.25); white-space: nowrap; }
@keyframes xpup { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60px); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2999; }
.lvlup { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(11,29,42,.6); z-index: 2998; animation: fadein .3s; }
.lvlup > div { background: linear-gradient(135deg, #264653, #2a9d8f); color: #fff; border-radius: 24px; padding: 28px 40px; text-align: center; display: flex; flex-direction: column; gap: 4px; animation: pop .5s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.lvlup i { font-size: 64px; font-style: normal; } .lvlup small { color: #e9c46a; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; } .lvlup b { font-size: 30px; } .lvlup span { font-size: 17px; opacity: .9; }
.lvlup.out { opacity: 0; transition: opacity .5s; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } } @keyframes fadein { from { opacity: 0; } }
/* quiz */
.qhead { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.qdots { display: flex; gap: 5px; } .qdots i { width: 22px; height: 6px; border-radius: 99px; background: #e6e0d4; } .qdots i.cur { background: var(--ink); } .qdots i.ok { background: #2a9d8f; } .qdots i.ko { background: #e76f51; }
.qcard { background: var(--card); border-radius: var(--radius); padding: 18px; margin: 12px 0; text-align: center; animation: pop .35s; }
.qic { font-size: 34px; } .qq { font-size: 18px; font-weight: 700; line-height: 1.35; margin-top: 6px; } .qq .flag { width: 22px; height: 16px; vertical-align: -2px; margin-right: 4px; }
.qflag { width: 170px; max-width: 70%; border-radius: 8px; margin-top: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.qfact { margin-top: 10px; font-style: italic; color: var(--ink-2); line-height: 1.45; }
.qchoices { display: flex; flex-direction: column; gap: 8px; }
.qchoices button { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 12px; font: inherit; font-size: 15px; text-align: left; color: var(--ink); cursor: pointer; transition: transform .15s; }
.qchoices button:active { transform: scale(.98); }
.qchoices .ql { width: 26px; height: 26px; border-radius: 8px; background: #f3efe6; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.qchoices .flag { width: 22px; height: 16px; border-radius: 2px; margin-right: 6px; vertical-align: -3px; }
.qchoices button.right { border-color: #2a9d8f; background: #e3f4f1; animation: pop .3s; } .qchoices button.right .ql { background: #2a9d8f; color: #fff; }
.qchoices button.wrong { border-color: #e76f51; background: #fbe4dc; animation: shake .4s; } .qchoices button.wrong .ql { background: #e76f51; color: #fff; }
.qchoices button.dim { opacity: .45; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.qexp { display: none; background: #f3efe6; border-radius: 12px; padding: 12px; margin-top: 10px; font-size: 14px; line-height: 1.45; } .qexp.on { display: block; animation: pop .3s; } .qexp p { margin: 4px 0 0; color: var(--ink-2); }
.qend { text-align: center; } .qstars { font-size: 34px; color: #e9c46a; letter-spacing: 4px; animation: pop .5s; } .qscore { color: var(--ink-2); margin-bottom: 6px; }
/* carte à gratter */
.scratch { position: relative; height: 260px; border-radius: 20px; overflow: hidden; margin: 12px 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.scr-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.scr-flag { width: 140px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.2); } .scr-under b { font-size: 24px; } .scr-under span { color: #e76f51; font-weight: 800; }
/* passeport */
.passport { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.pp-cover { background: linear-gradient(135deg, #7a1f2b, #4a1018); color: #e9c46a; border-radius: 16px; padding: 26px; text-align: center; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 20px rgba(74,16,24,.35); }
.pp-cover div { font-size: 44px; } .pp-cover b { letter-spacing: 4px; font-size: 20px; } .pp-cover span { opacity: .85; text-transform: uppercase; font-size: 12px; letter-spacing: 2px; } .pp-cover small { margin-top: 6px; color: #fff; opacity: .8; }
.pp-page { position: relative; background: #fbf6ea repeating-linear-gradient(0deg, transparent 0 26px, rgba(38,70,83,.05) 26px 27px); border: 1px solid #eadfca; border-radius: 12px; padding: 14px 10px 24px; box-shadow: inset 0 0 30px rgba(180,150,90,.12); }
.pp-num { position: absolute; bottom: 6px; right: 12px; font-size: 11px; color: var(--muted); }
.pp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.stamp { position: relative; border: 0; background: none; padding: 2px; transform: rotate(var(--rot)); animation: stampin .4s var(--d) both cubic-bezier(.2,1.6,.4,1); cursor: pointer; mix-blend-mode: multiply; }
.stamp svg { width: 100%; display: block; } .stamp.blank svg { opacity: .12; filter: grayscale(1); }
.stamp-q { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 26px; } .stamp-q small { font-size: 10px; font-weight: 700; color: #a8841c; text-transform: uppercase; }
@keyframes stampin { from { transform: rotate(var(--rot)) scale(1.8); opacity: 0; } }
/* bilan */
.wrapped { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; transition: background .5s; user-select: none; }
.wr-bars { display: flex; gap: 4px; padding: calc(10px + var(--safe-t)) 12px 0; } .wr-bars i { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 9px; overflow: hidden; }
.wr-bars i u { display: block; height: 100%; width: 0; background: #fff; } .wr-bars i.done u { width: 100%; } .wr-bars i.cur u { animation: bar 5.2s linear forwards; }
@keyframes bar { to { width: 100%; } }
.wr-x { position: absolute; top: calc(16px + var(--safe-t)); right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; font-size: 24px; z-index: 2; }
.wr-slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 6px; }
.wr-slide.in > * { animation: rise .6s both; } .wr-slide.in > *:nth-child(2) { animation-delay: .1s; } .wr-slide.in > *:nth-child(3) { animation-delay: .25s; } .wr-slide.in > *:nth-child(4) { animation-delay: .4s; } .wr-slide.in > *:nth-child(n+5) { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.wr-emoji { font-size: 64px; } .wr-slide small { font-size: 16px; opacity: .85; text-transform: uppercase; letter-spacing: 1.5px; }
.wr-slide h1 { font-size: 72px; margin: 4px 0; line-height: 1; } .wr-slide h1.wr-txt { font-size: 44px; } .wr-slide p { font-size: 18px; margin: 4px 0; opacity: .92; }
.wr-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; margin: 18px 0; } .wr-sum b { display: block; font-size: 36px; } .wr-sum span { opacity: .8; font-size: 13px; }
.wr-slide .btn { width: auto; padding: 12px 22px; margin-top: 16px; }
/* globe */
.globe-ov { position: fixed; inset: 0; z-index: 3000; background: radial-gradient(circle at 50% 40%, #1c3b52, #06121b); }
.globe-ov canvas { display: block; }
.globe-ui { position: absolute; left: 0; right: 0; bottom: calc(24px + var(--safe-b)); display: flex; justify-content: center; gap: 8px; }
.globe-ui .chip { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); } .globe-ui .chip.on { background: #e76f51; border-color: #e76f51; }
.globe-hint { position: absolute; top: calc(70px + var(--safe-t)); left: 0; right: 0; text-align: center; color: #fff; opacity: .8; font-size: 13px; transition: opacity 1s; } .globe-hint.out { opacity: 0; }
/* thèmes */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.themes button { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 8px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.themes button.on { border-color: var(--visited); } .themes b { display: block; margin-top: 6px; font-size: 14px; } .themes small { color: var(--muted); font-size: 11.5px; }
.th-prev { display: flex; gap: 4px; padding: 10px; border-radius: 10px; } .th-prev i { flex: 1; height: 22px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
html[data-theme="night"] .legend, html[data-theme="night"] .map-tools .chip:not(.on):not(.play) { background: rgba(11,29,42,.85); color: #fff; border-color: #24496a; }
/* ---------- vague 2 ---------- */
.thx { display: inline-flex; flex-direction: column; align-items: flex-end; margin-left: 10px; } .thx small { font-weight: 400; color: var(--muted); } .thx .thl { font-size: 10.5px; }
.countdown { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; font: inherit; margin-top: 12px; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(135deg, #1d3557, #457b9d); color: #fff; box-shadow: 0 6px 16px rgba(29,53,87,.3); cursor: pointer; }
.countdown .flag { width: 44px; height: 32px; border-radius: 5px; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.countdown div:not(.cd-num) { flex: 1; min-width: 0; } .countdown small { opacity: .8; font-size: 12px; } .countdown b { display: block; font-size: 18px; } .countdown span { font-size: 12.5px; opacity: .85; }
.cd-num { font-size: 26px; font-weight: 900; background: rgba(255,255,255,.15); padding: 8px 12px; border-radius: 14px; }
.quiz-cta.plan { background: linear-gradient(135deg, #1d3557, #457b9d); box-shadow: none; animation: none; }
.quiz-cta.wheel { background: linear-gradient(135deg, #6a4c93, #9c2a6b); box-shadow: 0 6px 16px rgba(106,76,147,.3); animation: none; }
.sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sugg button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.sugg .flag { width: 30px; height: 21px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); } .sugg b { font-size: 14px; } .sugg small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.wheel { position: relative; width: min(320px, 86vw); margin: 14px auto; } .wheel canvas { width: 100%; display: block; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.wh-ptr { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 30px; color: #264653; text-shadow: 0 2px 4px rgba(0,0,0,.2); }
.wh-res { text-align: center; } .wh-res:not(:empty) { margin-bottom: 8px; animation: pop .4s; } .wh-res .flag { width: 70px; height: 50px; border-radius: 6px; display: block; margin: 0 auto 6px; } .wh-res b { font-size: 22px; display: block; margin-bottom: 8px; }
.trip { position: relative; } .trip-pc { position: absolute; top: 8px; right: 70px; border: 0; background: none; font-size: 18px; cursor: pointer; opacity: .75; }
.pc-img { width: 100%; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); margin: 10px 0; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0 10px; }
.ph { aspect-ratio: 1; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #eee; cursor: pointer; } .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.add { display: grid; place-items: center; font-size: 26px; color: var(--muted); border: 2px dashed var(--line); background: #faf7f0; }
.busy { opacity: .5; pointer-events: none; }
.ph-view { position: fixed; inset: 0; z-index: 3001; background: rgba(0,0,0,.92); display: grid; place-items: center; } .ph-view img { max-width: 96vw; max-height: 82vh; border-radius: 8px; }
.ph-del { position: absolute; bottom: calc(24px + var(--safe-b)); left: 50%; transform: translateX(-50%); border: 0; border-radius: 99px; padding: 10px 18px; background: rgba(255,255,255,.15); color: #fff; font: inherit; }
.ph-prev, .ph-next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 34px; width: 48px; height: 48px; border-radius: 50%; } .ph-prev { left: 10px; } .ph-next { right: 10px; }
.board { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.brow { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.brow.me { border-color: var(--visited); background: var(--visited-soft); } .brank { width: 26px; text-align: center; font-weight: 800; } .brow b { flex: 1; } .brow small { color: var(--muted); } .bval { font-weight: 800; }
.linkbtn { border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.map-banner { position: absolute; top: 12px; left: 12px; z-index: 600; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mb-chip { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13.5px; font-weight: 700; background: #1d3557; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mb-chip .flag { width: 20px; height: 14px; border-radius: 2px; } .mb-chip.fo { background: #2a9d8f; }
.globe-out { position: absolute; top: calc(70px + var(--safe-t)); left: 0; right: 0; display: flex; justify-content: center; }
#game-tabs button { font-size: 13px; padding-left: 4px; padding-right: 4px; }
.row.voy .voy-fl { display: flex; flex-direction: column; gap: 2px; } .row.voy .voy-fl .flag { width: 26px; height: 18px; }
.row .sub.small { font-size: 11.5px; opacity: .8; }
.voy-top { margin-bottom: 8px; } .voy-hidden { display: block; margin: 12px auto; }
.voy-head { display: flex; gap: 6px; } .voy-head .flag { width: 34px; height: 24px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.voy-title { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; } .voy-title span { opacity: .5; }
.input.voy-name { font-size: 22px; font-weight: 800; border-color: transparent; background: transparent; padding: 4px 0; } .input.voy-name:focus { border-color: var(--line); background: #fff; padding: 4px 8px; }
button.chip-c { border: 0; font: inherit; font-size: 13px; color: inherit; cursor: pointer; }
#list-tabs button { font-size: 13px; padding-left: 2px; padding-right: 2px; }
/* ---------- Où étais-tu ? ---------- */
.quiz-cta.day { background: linear-gradient(135deg, #264653, #2a9d8f); box-shadow: none; animation: none; margin: 0 0 12px; }
.day-nav { display: flex; align-items: center; gap: 8px; } .day-nav .input { flex: 1; margin: 0; } .day-nav .linkbtn { font-size: 30px; padding: 0 10px; color: var(--ink); } .day-nav .linkbtn:disabled { opacity: .25; }
.day-title { margin: 10px 0 2px; font-size: 20px; }
.dy-quick { margin: 8px 0 4px; } .dy-quick button { font-size: 12.5px; padding: 5px 10px; }
.day-map { width: 100%; border-radius: 14px; display: block; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.day-list { display: flex; flex-direction: column; background: var(--card); border-radius: 14px; padding: 6px 12px; }
.dy-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); } .dy-row:last-child { border-bottom: 0; }
.dy-t { width: 44px; font-weight: 700; font-size: 13px; display: flex; flex-direction: column; } .dy-t small { font-weight: 400; color: var(--muted); font-size: 11px; }
.dy-ic { font-size: 20px; width: 26px; text-align: center; } .dy-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .dy-main small { color: var(--muted); font-size: 12px; }
.dy-m { padding-left: 0; } .dy-m .dy-main span { font-size: 13.5px; color: var(--ink-2); } .dy-m .dy-ic { border-left: 3px solid var(--c); padding-left: 6px; }
.dy-go { text-decoration: none; font-weight: 800; color: var(--visited); padding: 6px 8px; border-radius: 8px; background: var(--visited-soft); }
.day-pin { background: #e76f51; color: #fff; border: 2px solid #fff; border-radius: 50%; font: 700 11px/18px system-ui; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); } .day-pin.home { background: #2a9d8f; }
.mb-chip.day { background: #264653; }
button.otd-row { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; } .otd-go { margin-left: auto; color: var(--muted); font-size: 20px; }
/* noms sur la carte */
.map-label { display: flex; align-items: center; justify-content: center; pointer-events: none; }
.map-label span { white-space: nowrap; font-weight: 600; color: #3d5560; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.map-label.big span { font-weight: 700; color: #264653; }
.map-label.mine span { font-weight: 800; color: #b5462c; }
.map-label.country span { letter-spacing: 1.5px; color: rgba(38,70,83,.55); font-weight: 700; }
.map-label.country.vis span { color: rgba(80,25,10,.65); }
html[data-theme="night"] .map-label span { color: #cfe3ea; text-shadow: 0 0 3px #0b1d2a, 0 0 3px #0b1d2a; }
html[data-theme="night"] .map-label.country span { color: rgba(207,227,234,.5); }
html[data-theme="night"] .map-label.mine span { color: #f6d58e; }
/* ================= Refonte visuelle « Mondo » ================= */
.topbar {
  background: rgba(247,244,238,.92); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: calc(10px + var(--safe-t)) 16px 10px; box-shadow: 0 1px 0 rgba(38,70,83,.07);
}
.brand { gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 2px 6px rgba(231,111,81,.25); }
.wordmark {
  font-size: 25px; font-weight: 850; letter-spacing: -.8px;
  background: linear-gradient(100deg, #e76f51 0%, #f4a261 45%, #2a9d8f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.summary { background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 7px 13px; box-shadow: 0 1px 4px rgba(38,70,83,.1), inset 0 0 0 1px rgba(38,70,83,.06); }

/* barre d'outils de la carte : rail vertical « verre » avec icônes */
.map-tools { top: 14px; right: 12px; gap: 2px; padding: 6px; border-radius: 24px; align-items: stretch;
  background: rgba(255,255,255,.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 8px 24px rgba(38,70,83,.14), inset 0 0 0 1px rgba(255,255,255,.6); }
.tool { width: 54px; border: 0; background: none; border-radius: 18px; padding: 7px 2px 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #4d6470; transition: background .2s, color .2s, transform .15s; }
.tool svg { width: 22px; height: 22px; fill: currentColor; }
.tool span { font-size: 9.5px; font-weight: 700; letter-spacing: .1px; line-height: 1.1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52px; }
.tool:active { transform: scale(.92); }
.tool.on { background: #264653; color: #fff; }
#t-replay { color: #e76f51; } #t-replay.on { background: #e76f51; color: #fff; }
html[data-theme="night"] .map-tools { background: rgba(11,29,42,.72); box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
html[data-theme="night"] .tool { color: #cfe3ea; } html[data-theme="night"] .tool.on { background: #f4c152; color: #0b1d2a; }

/* légende, bouton +, bandeaux */
.legend { background: rgba(255,255,255,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 18px rgba(38,70,83,.12); padding: 7px 14px; font-weight: 600; color: var(--ink-2); }
html[data-theme="night"] .legend { background: rgba(11,29,42,.75); color: #cfe3ea; }
.fab { background: linear-gradient(135deg, #f4a261, #e76f51); box-shadow: 0 10px 24px rgba(231,111,81,.4); font-weight: 300; }
.mb-chip { background: rgba(38,70,83,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 16px rgba(38,70,83,.2); }

/* barre d'onglets : verre + pastille active */
.tabbar { background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 0; box-shadow: 0 -1px 0 rgba(38,70,83,.07); padding: 4px 6px var(--safe-b); }
.tabbar button { padding: 6px 0 8px; border-radius: 14px; transition: color .2s; }
.tabbar button svg { padding: 3px 14px; width: 52px; height: 30px; border-radius: 99px; box-sizing: border-box; transition: background .2s; }
.tabbar button.on { color: #e76f51; font-weight: 700; }
.tabbar button.on svg { background: #fbe4dc; }
.wordmark { font-size: 23px; }
.wordmark b { font-weight: inherit; }
/* ===== Barres flottantes, compactes et transparentes (la carte passe dessous) ===== */
:root { --hh: 50px; --tb: 54px; }
main { position: absolute; inset: 0; }
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 700; padding: calc(6px + var(--safe-t)) 12px 6px;
  background: rgba(247,244,238,.42); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: none; }
.brand { gap: 7px; } .brand img { width: 24px; height: 24px; border-radius: 7px; }
.wordmark { font-size: 19px; letter-spacing: -.5px; }
.summary { font-size: 11.5px; padding: 4px 10px; background: rgba(255,255,255,.6); }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 700; padding: 2px 6px var(--safe-b);
  background: rgba(255,255,255,.42); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: none; }
.tabbar button { padding: 3px 0 4px; font-size: 10px; gap: 0; }
.tabbar button svg { width: 40px; height: 24px; padding: 2px 10px; }
.view { padding-top: var(--hh); padding-bottom: var(--tb); }
#view-map { padding: 0; }
/* outils de la carte : petites pastilles rondes, icône seule */
.map-tools { top: calc(var(--hh) + 8px); right: 8px; padding: 3px; gap: 1px; border-radius: 18px; background: rgba(255,255,255,.5); }
.tool { width: 34px; height: 34px; padding: 0; border-radius: 50%; justify-content: center; }
.tool svg { width: 17px; height: 17px; }
.tool span { display: none; }
html[data-theme="night"] .map-tools { background: rgba(11,29,42,.5); }
.map-banner { top: calc(var(--hh) + 8px); left: 8px; }
.replay { top: calc(var(--hh) + 8px); }
.legend { bottom: calc(var(--tb) + 8px); left: 8px; padding: 4px 10px; font-size: 11.5px; gap: 9px; background: rgba(255,255,255,.55); }
.fab { bottom: calc(var(--tb) + 10px); right: 10px; width: 48px; height: 48px; font-size: 28px; }
.sheet { z-index: 1001; } .sheet-backdrop { z-index: 1000; }
.bs-list { display: flex; flex-direction: column; margin-top: 8px; }
.bs-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); } .bs-row:last-child { border-bottom: 0; }
.bs-main { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 9px 0; text-align: left; font: inherit; color: inherit; min-width: 0; }
.bs-main .flag { width: 28px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.bs-main span { display: flex; flex-direction: column; min-width: 0; } .bs-main small { color: var(--muted); font-size: 12px; }
.bs-wish { border: 1.5px solid var(--line); background: #fff; color: #c9962a; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; flex: none; }
.bs-wish.on { background: #f3d98c; border-color: #c9962a; color: #6b4e0e; }
/* fonds détaillés (plan / satellite) */
html[data-tiles="1"] .leaflet-control-attribution { display: block; background: rgba(255,255,255,.7); font-size: 9px; padding: 1px 6px; border-radius: 6px 0 0 0; }
html[data-tiles="1"] .leaflet-bottom { bottom: var(--tb); }
html[data-tiles="1"] .legend { bottom: calc(var(--tb) + 24px); }
.th-prev.tile { height: 42px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #e8eef0 25%, #f6efe2 25% 50%, #dde8d4 50% 75%, #f2e6cf 75%); background-size: 16px 16px; }
.th-prev.tile.satellite { background: radial-gradient(circle at 30% 40%, #4c6b45, #22382d 60%, #0e2a3d); }
.th-prev.tile em { font-style: normal; }

/* ---------- vague 3 ---------- */
.ltime { margin: 6px 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; font-size: 13.5px; }
.ltime small { color: var(--muted); }
.pi-pick { display: block; text-align: center; }
.bud-tot { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; } .bud-tot b { font-size: 22px; } .bud-tot small { color: var(--muted); }
.bud-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bud-list .kv { font-size: 13px; }
.bud-add { display: flex; gap: 6px; margin: 8px 0 6px; } .bud-add .input { margin: 0; } .bud-add select { max-width: 96px; }
.goal-pick button[data-cat] { font-size: 18px; padding: 4px 8px; }
.ck { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ck input { width: 20px; height: 20px; accent-color: var(--visited); } .ck span { flex: 1; } .ck input:checked + span { color: var(--muted); text-decoration: line-through; }
.mini2 { width: auto; padding: 8px 14px; margin: 0; }
textarea.story { min-height: 110px; font-family: Georgia, serif; line-height: 1.5; }
.quiz-cta.poster { margin-top: 12px; }
.tmachine { position: absolute; left: 12px; right: 58px; bottom: calc(var(--tb) + 14px); z-index: 650; display: none;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 10px 14px 8px; box-shadow: 0 6px 24px rgba(38,70,83,.18); }
.tmachine.on { display: block; }
.tm-top { display: flex; align-items: baseline; gap: 10px; } .tm-top b { font-size: 26px; color: var(--visited); } .tm-top span { flex: 1; color: var(--ink-2); font-size: 13px; }
.tm-top button { border: 0; background: none; font-size: 16px; color: var(--muted); }
.tmachine input[type=range] { width: 100%; accent-color: var(--visited); margin: 4px 0 0; }
.tm-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* ---------- mode sombre ---------- */
html.dark { --ink: #e8eef0; --ink-2: #b7c5ca; --muted: #8297a0; --bg: #121a1f; --card: #1b262d; --line: #2b3a43; --land: #22303a; --ocean: #0e2a3d;
  --visited-soft: #4a2b23; --wish-soft: #4a3f22; --accent: #8fd3c8; color-scheme: dark; }
html.dark, html.dark body { background: #0b1115; }
html.dark #app { box-shadow: none; }
html.dark .topbar { background: rgba(18,26,31,.5); } html.dark .tabbar { background: rgba(18,26,31,.55); }
html.dark .summary { background: rgba(27,38,45,.7); color: var(--ink); }
html.dark .sheet, html.dark .card, html.dark .input, html.dark .btn.secondary, html.dark .chip-c, html.dark .tool, html.dark .langs button, html.dark .goal-pick button,
html.dark .choice button, html.dark .seg button, html.dark .list-item, html.dark .quiz-cta, html.dark .countdown, html.dark .tmachine, html.dark .replay { background-color: var(--card); color: var(--ink); border-color: var(--line); }
html.dark .tool svg { fill: var(--ink); }
html.dark .input::placeholder { color: var(--muted); }
html.dark .leaflet-container { background: #0e2a3d; }
html.dark .map-label span, html.dark .map-label.big span { color: #eef3f5; text-shadow: 0 1px 1.5px rgba(5,12,16,.95); -webkit-font-smoothing: antialiased; }
html.dark .map-label.country span { color: #b9cbd3; text-shadow: 0 1px 1.5px rgba(5,12,16,.95); }
html.dark .map-label.country.vis span { color: #ffe4d8; }
html.dark .map-label.mine span { color: #ffb59c; }
html.dark .help, html.dark .meta { color: var(--muted); }
html.dark .rows, html.dark .row, html.dark .segmented, html.dark .badge-c, html.dark .stamp, html.dark .seg, html.dark .tabs-g button, html.dark .list-tabs, html.dark .list-tabs button,
html.dark .search, html.dark .quest, html.dark .chest, html.dark .row.voy { background-color: var(--card); color: var(--ink); border-color: var(--line); }
html.dark .row .sub, html.dark .muted, html.dark small { color: var(--muted); }
html.dark .langs button.on, html.dark .goal-pick button.on, html.dark .choice button.on, html.dark .segmented button.on, html.dark .tabs-g button.on { background: var(--visited); color: #fff; }
html.dark .tool.on { background: var(--visited); } html.dark .tool.on svg { fill: #fff; }
html.dark .progress { background: #2b3a43; }
html.dark .hero, html.dark .btn:not(.secondary):not(.danger):not(.visited):not(.wish), html.dark .toast, html.dark .chip.on, html.dark .chip-c.more { background: #2a6f73; color: #fff; }
html.dark .sugg button, html.dark .kv, html.dark .row.voy { background-color: var(--card); color: var(--ink); }
html.dark .btn.danger { background: #4a2b23; color: #ffb199; }

/* ---------- photos des lieux ---------- */
.phero { position: relative; margin: -4px -4px 12px; height: 200px; border-radius: 18px; overflow: hidden; background: var(--land, #e9e4da); cursor: pointer; user-select: none; -webkit-user-select: none; box-shadow: 0 6px 18px rgba(38,70,83,.16); }
.phero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease, transform 6s ease; transform: scale(1.06); }
.phero img.on { opacity: 1; transform: scale(1); }
.phero .ph-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,20,25,.55), transparent 45%); pointer-events: none; }
.phero .ph-dots { position: absolute; left: 0; right: 0; top: 8px; display: flex; gap: 4px; justify-content: center; pointer-events: none; }
.phero .ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); } .phero .ph-dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.phero .ph-shuf { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.phero.spin .ph-shuf { animation: phspin .5s ease; } @keyframes phspin { to { transform: rotate(360deg); } }
.phero .ph-cred { position: absolute; left: 10px; bottom: 9px; right: 56px; font-size: 10px; color: rgba(255,255,255,.85); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phero.loading .ph-shim { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); background-size: 200% 100%; animation: phshim 1.2s linear infinite; }
@keyframes phshim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.qphoto { display: block; width: 100%; max-height: 230px; object-fit: cover; border-radius: 14px; margin-top: 10px; }
.qcred { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }

/* ---------- carte du monde en tête des stats ---------- */
.wmap { position: relative; margin: 0 0 14px; border-radius: 20px; overflow: hidden; background: var(--ocean); box-shadow: 0 8px 24px rgba(38,70,83,.16); min-height: 180px; }
.wmap canvas { display: block; width: 100%; opacity: 0; transition: opacity .5s; } .wmap.ready canvas { opacity: 1; }
.wm-tag { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ink); }
.wm-tag b { color: var(--vc, var(--visited)); }
.wm-leg { position: absolute; right: 10px; top: 10px; display: flex; gap: 8px; font-size: 10.5px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink-2); }
.wm-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: var(--vc, var(--visited)); } .wm-leg i.w { background: var(--wc, var(--wish)); }
html.dark .wm-tag, html.dark .wm-leg, html.dark .phero .ph-shuf { background: rgba(27,38,45,.82); color: var(--ink); }

/* ---------- merveilles ---------- */
.wonders .wd-h { display: flex; justify-content: space-between; margin: 12px 0 4px; font-size: 14px; } .wonders .wd-h span { color: var(--muted); font-weight: 700; }
.wd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.wd { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; filter: grayscale(.85); opacity: .7; }
.wd .wd-ic { font-size: 24px; } .wd b { font-size: 13px; line-height: 1.2; } .wd small { font-size: 11px; color: var(--muted); }
.wd.ok { filter: none; opacity: 1; border-color: var(--visited); background: linear-gradient(135deg, var(--visited-soft), var(--card)); box-shadow: 0 2px 10px rgba(231,111,81,.15); }
.wd-desc { font-size: 15px; line-height: 1.5; } .wd-got { font-weight: 600; }

/* ---------- carnet de route ---------- */
.jr-cta { margin: 10px 0; }
.jr-cover { margin: -4px -4px 0; height: 210px; border-radius: 20px; background: linear-gradient(135deg, #2a9d8f, #264653) center/cover; display: flex; align-items: flex-end; overflow: hidden; }
.jr-cv-in { width: 100%; padding: 18px 16px 14px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.jr-cv-in h2 { margin: 6px 0 2px; font-size: 26px; color: #fff; } .jr-flags .flag { width: 26px; height: 19px; margin-right: 4px; }
.jr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; text-align: center; }
.jr-stats div { background: var(--card); border-radius: 12px; padding: 8px 2px; box-shadow: 0 0 0 1px var(--line) inset; } .jr-stats b { display: block; font-size: 19px; color: var(--visited); } .jr-stats span { font-size: 11px; color: var(--muted); }
.jr-map { width: 100%; border-radius: 16px; display: block; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(38,70,83,.12); }
.jr-tl { position: relative; padding-left: 4px; } .jr-tl::before { content: ''; position: absolute; left: 19px; top: 14px; bottom: 50px; border-left: 3px dotted var(--visited); opacity: .5; }
.jr-step { display: flex; gap: 12px; margin-bottom: 18px; position: relative; }
.jr-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--visited); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg, #f7f4ee); z-index: 1; }
.jr-step:first-child .jr-dot { background: #2a9d8f; }
.jr-body { flex: 1; min-width: 0; background: var(--card); border-radius: 16px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 0 0 1px var(--line) inset; }
.jr-when { font-size: 12px; color: var(--muted); } .jr-body h3 { margin: 2px 0 6px; font-size: 18px; }
.jr-text { white-space: pre-wrap; font-family: Georgia, serif; font-size: 15px; line-height: 1.55; margin: 6px 0 10px; }
.jr-write { border: 1.5px dashed var(--line); background: none; border-radius: 12px; padding: 10px; width: 100%; color: var(--muted); font-size: 14px; text-align: left; margin-bottom: 8px; }
.jr-ph { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 8px; }
.jr-ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.jr-ph.n1 { height: 210px; } .jr-ph.n2 { grid-template-columns: 1fr 1fr; height: 150px; } .jr-ph.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 200px; } .jr-ph.n3 img:first-child { grid-row: span 2; }
.jr-ph.n4, .jr-ph.n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 200px; } .jr-ph.n4 img:first-child, .jr-ph.n5 img:first-child { grid-row: span 2; } .jr-ph.n4 img:nth-child(4) { grid-column: span 2; }
.jr-more { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 13px; }
.jr-acts { display: flex; gap: 8px; } .jr-acts button, .jr-acts label { flex: 1; text-align: center; border: 0; background: var(--bg, #f3efe7); border-radius: 10px; padding: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.jr-add { margin-left: 44px; width: calc(100% - 44px); border: 2px dashed var(--visited); background: none; color: var(--visited); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 15px; }
.jr-bulk { display: block; text-align: center; margin-top: 14px; }
.jr-ta { min-height: 180px; }
.js-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; } .js-ph div { position: relative; aspect-ratio: 1; } .js-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.js-ph div.main img { outline: 3px solid var(--visited); outline-offset: -3px; } .js-ph button { position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.jr-view { position: fixed; inset: 0; z-index: 3000; background: #000; display: grid; place-items: center; }
.jr-view img { max-width: 100%; max-height: 100%; object-fit: contain; } .jr-vn { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); color: #fff; font-size: 13px; opacity: .8; }
.jr-vx { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; }
html.dark .jr-acts button, html.dark .jr-acts label { background: #22303a; color: var(--ink); } html.dark .jr-dot { box-shadow: 0 0 0 4px var(--card); }
.wd small .flag, .jr-body .flag, .jr-when .flag { width: 18px !important; height: 13px !important; border-radius: 2px; vertical-align: -1px; display: inline-block; object-fit: cover; }
.jr-body h3 .flag { width: 22px !important; height: 16px !important; vertical-align: -2px; }
.jr-flags .flag { width: 26px !important; height: 19px !important; border-radius: 3px; display: inline-block; object-fit: cover; }

/* ---------- vague 4 ---------- */
.ctabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--line); margin: 10px 0 12px; }
.ctabs button { flex: 1; min-width: 0; border: 0; border-radius: 10px; padding: 8px 1px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; background: none; color: var(--ink-2); }
.ctabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.prat .pr-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .prat .pr-row:last-child { border: 0; }
.pr-ic { font-size: 22px; width: 28px; text-align: center; flex: none; } .pr-row small { color: var(--muted); font-size: 12px; } .pr-row > div > div { font-size: 14.5px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--line); }
.pill.ok { background: #d6f2e9; color: #1d7a63; } .pill.mid { background: #fdf0cf; color: #8a6500; } .pill.ko { background: #fde0d8; color: #b3412a; }
.plug { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; margin-right: 2px; }
.sos { display: flex; gap: 12px; flex-wrap: wrap; } .tel { font-weight: 800; color: var(--visited); text-decoration: none; font-size: 16px; }
.fx { display: grid; gap: 6px; } .fx-row { display: flex; gap: 8px; align-items: center; } .fx-row .input { margin: 0; font-size: 20px; font-weight: 700; } .fx-row b { width: 48px; } .fx-eq { text-align: center; color: var(--muted); }
.phr .ph-row { display: grid; grid-template-columns: 1fr auto; text-align: left; width: 100%; border: 0; background: none; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.phr .ph-row:last-child { border: 0; } .ph-row small { grid-column: 1; color: var(--muted); font-size: 11.5px; } .ph-row b { grid-column: 1; font-size: 17px; color: var(--ink); } .ph-row i { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.ph-row .ph-sp { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 20px; opacity: .6; } .ph-row.spk .ph-sp { opacity: 1; animation: phspin .5s; }
.wx-t { margin-bottom: 6px; } .wx-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.wx-days div { display: flex; flex-direction: column; gap: 1px; font-size: 12px; } .wx-days span { font-size: 20px; } .wx-days b { font-size: 14px; } .wx-days i { color: var(--muted); font-style: normal; } .wx-days em { font-style: normal; font-size: 10px; color: #2a7fb8; }
.wx-days small { text-transform: capitalize; color: var(--muted); }
.cl-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; align-items: end; height: 150px; }
.cl-bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; border-radius: 8px; padding: 2px 0; }
.cl-bars div.best { background: #fdf0cf; } .cl-bars b { font-size: 10px; } .cl-bars small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.cl-bars .t { width: 70%; border-radius: 4px 4px 0 0; background: linear-gradient(to top, #f4a261, #e76f51); } .cl-bars .r { width: 70%; border-radius: 0 0 4px 4px; background: #8ecae6; }
.cl-leg { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 6px; } .cl-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; } .cl-leg i.t { background: #e76f51; } .cl-leg i.r { background: #8ecae6; }
.cl-best { margin-top: 8px; font-size: 14px; }
.bk2 .bk-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); } .bk-ic { font-size: 22px; } .bk-row > div { flex: 1; display: flex; flex-direction: column; gap: 1px; } .bk-row small { color: var(--ink-2); font-size: 12.5px; }
.bk-row .ref { font-family: ui-monospace, monospace; font-weight: 700; background: var(--line); padding: 0 5px; border-radius: 4px; }
.bk-new { margin-top: 8px; } .bk-new summary { cursor: pointer; font-weight: 700; color: var(--visited); padding: 6px 0; list-style: none; } .bk-new .input { margin: 4px 0; }
.sp-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .sp-bal .pos { color: #1d7a63; font-weight: 700; } .sp-bal .neg { color: #b3412a; font-weight: 700; } .sp-set { margin-top: 6px; font-size: 14px; display: grid; gap: 4px; }
.rg-row, .un-row { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.rg-row .flag { width: 26px; height: 19px; border-radius: 3px; object-fit: cover; flex: none; } .rg-row span { flex: 1; } .rg-row em { font-style: normal; font-weight: 700; color: var(--ink-2); font-size: 13px; }
.rg-row .bp, .potd .bp { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; } .rg-row .bp u { display: block; height: 100%; background: var(--visited); }
.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .rg { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; opacity: .55; } .rg b { font-size: 13px; display: block; } .rg small { font-size: 11px; color: var(--muted); }
.rg.ok { opacity: 1; border-color: var(--visited); background: linear-gradient(135deg, var(--visited-soft), var(--card)); }
.un-row span:first-child { font-size: 20px; } .un-row b { flex: 1; font-size: 13.5px; font-weight: 600; line-height: 1.25; } .un-row small .flag { width: 18px; height: 13px; border-radius: 2px; margin-left: 2px; object-fit: cover; } .un-row.ok b { color: var(--visited); }
.fl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0 10px; text-align: center; } .fl-tiles div { background: var(--bg, #f3efe7); border-radius: 12px; padding: 8px 2px; }
.fl-tiles b { display: block; font-size: 17px; color: var(--visited); } .fl-tiles span { font-size: 11px; color: var(--muted); }
.ap-list { display: grid; gap: 4px; } .ap { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); } .ap b { font-family: ui-monospace, monospace; background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 13px; }
.ap span { flex: 1; font-size: 13.5px; display: flex; flex-direction: column; } .ap span .flag { width: 16px; height: 12px; display: inline-block; } .ap em { font-style: normal; color: var(--muted); font-weight: 700; }
.potd { overflow: hidden; } .potd-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .potd-h span { font-weight: 800; } .potd-h small { color: var(--muted); }
.potd h3 { margin: 4px 0 0; font-size: 22px; } .potd h3 .flag { width: 30px; height: 22px; border-radius: 4px; vertical-align: -3px; object-fit: cover; } .potd-f { font-size: 14.5px; line-height: 1.5; }
.potd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .potd-chips span { background: var(--bg, #f3efe7); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.potd .phero { height: 170px; }
.mq-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; } .mq-zones button { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--ink); }
.mq-zones span { font-size: 26px; } .mq-zones small { color: var(--visited); font-weight: 700; }
.mq { position: fixed; inset: 0; z-index: 2500; background: var(--ocean, #d6e6e8); display: flex; flex-direction: column; }
.mq-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: var(--card); box-shadow: 0 2px 10px rgba(0,0,0,.08); z-index: 2; }
.mq-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--line); font-size: 16px; color: var(--ink); } .mq-q { flex: 1; } .mq-q small { color: var(--muted); display: block; } .mq-q b { font-size: 21px; color: var(--ink); }
.mq-s { text-align: center; } .mq-s b { display: block; font-size: 20px; color: var(--visited); } .mq-s small { color: var(--muted); }
.mq-map { flex: 1; background: var(--ocean, #d6e6e8); } .mq-fb { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--card); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.18); z-index: 1000; white-space: nowrap; }
.mq-fb.ok { background: #2a9d8f; color: #fff; } .mq-fb.ko { background: #e76f51; color: #fff; } .mq-fb.end { border-radius: 20px; white-space: normal; width: min(320px, 86vw); }
.mq-end { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; } .mq-end b { font-size: 30px; color: var(--visited); } .mq-end .btn { margin-top: 6px; }
.qchoices button.ok { background: #d6f2e9 !important; border-color: #2a9d8f !important; } .qchoices button.ko { background: #fde0d8 !important; border-color: #e76f51 !important; } .qchoices button.dim { opacity: .5; }
html.dark .pill.ok { background: #16463d; color: #8fe0c6; } html.dark .pill.mid { background: #4a3f22; color: #f3d98c; } html.dark .pill.ko { background: #4a2b23; color: #ffb199; } html.dark .cl-bars div.best { background: #3a3420; }
html.dark .potd-chips span, html.dark .fl-tiles div { background: #22303a; }

/* ---------- rubriques personnalisables ---------- */
.sec { display: contents; } .sec.off { display: none; }
.ly-edit { display: block; margin: 18px auto 8px; border: 1.5px dashed var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; }
.ly-list { margin: 10px 0 14px; display: grid; gap: 6px; }
.ly-row { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 8px 10px; box-shadow: 0 0 0 1px var(--line) inset; }
.ly-row.off { opacity: .45; } .ly-ic { font-size: 20px; width: 26px; text-align: center; } .ly-row b { flex: 1; font-size: 14px; }
.ly-row button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--bg, #f3efe7); font-size: 16px; font-weight: 800; color: var(--ink); } .ly-row button:disabled { opacity: .3; }
.ly-sw { position: relative; width: 44px; height: 26px; flex: none; } .ly-sw input { opacity: 0; width: 0; height: 0; }
.ly-sw i { position: absolute; inset: 0; border-radius: 999px; background: #cfd6d8; transition: .2s; } .ly-sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ly-sw input:checked + i { background: var(--visited); } .ly-sw input:checked + i::after { transform: translateX(18px); }
html.dark .ly-row button { background: #22303a; }
.mq-map { position: relative; overflow: hidden; } .mq-map canvas { display: block; touch-action: none; cursor: grab; }
.mq-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.mq-zoom button { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--card); color: var(--ink); font-size: 22px; font-weight: 700; box-shadow: 0 3px 12px rgba(0,0,0,.16); }
.wx-days small.wx-d { text-transform: none; font-size: 10.5px; margin-top: -2px; }
.sy-code { display: flex; align-items: center; gap: 10px; margin: 8px 0; } .sy-code code { font: 700 17px ui-monospace, monospace; letter-spacing: 1px; background: var(--bg, #f3efe7); padding: 8px 12px; border-radius: 10px; color: var(--ink); }
.sy-code.big { justify-content: center; margin: 16px 0; } .sy-code.big code { font-size: 22px; padding: 14px 16px; }
.sy-in { font: 700 18px ui-monospace, monospace; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
html.dark .sy-code code { background: #22303a; }
.ccp { position: relative; margin: 4px 0 8px; } .ccp-box { position: relative; } .ccp-flag { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.ccp-flag .flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; display: block; } .ccp-in { padding-left: 44px !important; margin: 0 !important; }
.ccp-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 260px; overflow-y: auto; background: var(--card); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 1px var(--line); }
.ccp-list button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px 12px; text-align: left; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); }
.ccp-list button .flag { width: 24px; height: 17px; border-radius: 2px; object-fit: cover; } .ccp-list .help { padding: 10px; }
.wm-styles { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 14px; padding: 2px 2px 4px; scrollbar-width: none; } .wm-styles::-webkit-scrollbar { display: none; }
.wm-styles button { flex: none; display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.wm-styles button.on { background: var(--ink); color: #fff; border-color: var(--ink); } html.dark .wm-styles button.on { background: #2a6f73; border-color: #2a6f73; }
.wm-leg .ramp { display: flex; align-items: center; gap: 0; } .wm-leg .ramp i { width: 12px; border-radius: 2px; }
/* ---------- widgets régions et drapeaux ---------- */
.rgw-h { display: flex; justify-content: space-between; align-items: flex-start; } .rgw-sel { border: 0; background: none; font-size: 19px; font-weight: 800; font-family: inherit; color: var(--ink); padding: 0 18px 0 0; max-width: 240px; appearance: auto; }
.rgw-h small { display: block; color: var(--visited); font-weight: 600; margin-top: 2px; } .rgw-share { border: 0; background: var(--bg, #f3efe7); width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.rgw-body { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .rgw-body canvas { flex: 1; min-width: 0; display: block; cursor: pointer; }
.rgw-side { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; } .rgw-side span { font-size: 22px; display: block; } .rgw-side b { font-size: 17px; } .rgw-side i { width: 48px; height: 2px; background: var(--line); }
.rgw-name { min-height: 20px; font-size: 13.5px; color: var(--ink-2); margin: 6px 0; }
.allf h3 { text-align: center; } .allf-st { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 4px 0 14px; text-align: center; } .allf-st small { display: block; color: var(--muted); } .allf-st b { font-size: 26px; } .allf-st i { width: 1px; height: 40px; background: var(--line); }
.allf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 5px; }
.allf-grid button { border: 0; padding: 0; background: none; aspect-ratio: 1; border-radius: 50%; overflow: hidden; opacity: .22; filter: grayscale(1); transition: .2s; }
.allf-grid button.on { opacity: 1; filter: none; box-shadow: 0 1px 4px rgba(0,0,0,.25); } .allf-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.dark .rgw-share { background: #22303a; }
.wmap .wm-leg { top: auto; bottom: 10px; }
.card.passed { font-size: 14px; background: var(--bg, #f3efe7); }

/* ---------- vague 5 ---------- */
.ex-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ex-row:last-of-type { border: 0; } .ex-ic { font-size: 22px; width: 30px; text-align: center; } .ex-row span:last-child { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ex-row small { width: 100%; color: var(--muted); font-size: 12px; } .ex-row em { width: 100%; font-style: normal; font-size: 12.5px; color: var(--visited); font-weight: 700; } .ex-row .flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.dwx { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 15px; margin: 4px 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; } .dwx small { color: var(--muted); }
.km-total { font-size: 15px; } .km-total b { font-size: 28px; color: var(--visited); } .km-total small { color: var(--muted); }
.km-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin: 10px 0; }
.km-modes div { text-align: center; background: var(--bg, #f3efe7); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.km-modes span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; } .km-modes b { font-size: 14px; } .km-modes small { font-size: 10.5px; color: var(--muted); }
.km-y { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin: 3px 0; } .km-y span { width: 36px; color: var(--muted); } .km-y b { width: 62px; text-align: right; }
.km-bar { flex: 1; display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); } .km-bar i { display: block; height: 100%; }
.col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.col-t { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--ink); }
.col-t span { font-size: 26px; } .col-t b { font-size: 24px; color: var(--visited); } .col-t b small { font-size: 13px; color: var(--muted); } .col-t > small { color: var(--ink-2); font-size: 12.5px; }
.stars { display: flex; gap: 4px; margin: 8px 0 4px; } .stars button { border: 0; background: none; font-size: 30px; color: #d8cfbd; padding: 0 2px; line-height: 1; } .stars button.on { color: #f4b400; }
.fv-pod { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 6px 0 12px; } .fv-pod div { flex: 1; text-align: center; background: var(--bg, #f3efe7); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fv-pod .p0 { order: 2; padding-top: 18px; } .fv-pod .p1 { order: 1; } .fv-pod .p2 { order: 3; } .fv-pod span { font-size: 26px; } .fv-pod .flag { width: 28px; height: 20px; border-radius: 3px; object-fit: cover; } .fv-pod b { font-size: 13px; } .fv-pod small { color: #f4b400; }
.fv-s { color: #f4b400; font-size: 13px; white-space: nowrap; }
.wh-m button { min-width: 44px; text-transform: capitalize; } .wh-r .sub { font-size: 12.5px; }
.br .br-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .br .br-h b { text-transform: capitalize; font-size: 15px; }
.tv-list { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px; } .tv-p { flex: none; width: 82px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); }
.tv-av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--bg, #f3efe7); box-shadow: 0 0 0 2px var(--visited) inset; } .tv-p.add .tv-av { box-shadow: 0 0 0 2px var(--line) inset; color: var(--muted); }
.tv-p b { font-size: 13px; } .tv-p small { font-size: 11px; color: var(--muted); } .tv-map { width: 100%; display: block; border-radius: 14px; margin: 10px 0; }
.story-v { width: 100%; max-height: 60vh; border-radius: 16px; background: #000; display: block; margin: 8px 0; }
.travel-chip { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--hh, 70px) + 10px); z-index: 640; border: 0; border-radius: 999px; padding: 9px 16px; background: #264653; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; } .tm-grid button { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink); } .tm-grid span { font-size: 26px; }
html.dark .km-modes div, html.dark .fv-pod div, html.dark .tv-av { background: #22303a; }
.col-r .col-ic { width: 28px; text-align: center; font-size: 20px; flex: none; } .col-r .col-ic .flag { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; }
.col-r .sub small { color: var(--visited); font-weight: 600; margin-left: 2px; } .col-r .title b { font-weight: 700; }
.col-prog { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin: 6px 0 4px; } .col-prog i { display: block; height: 100%; background: var(--visited); border-radius: 5px; }
/* ajout rapide : continent → pays → villes */
#a-browse details summary { list-style: none; cursor: pointer; } #a-browse details summary::-webkit-details-marker { display: none; }
.ab-k > summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; margin: 6px 0; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; font-weight: 700; }
.ab-k > summary::after { content: '›'; margin-left: 8px; color: var(--muted); transition: transform .2s; } .ab-k[open] > summary::after { transform: rotate(90deg); } .ab-k > summary small { margin-left: auto; color: var(--muted); font-weight: 500; }
.ab-list { padding-left: 8px; }
.ab-c > summary { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); } .ab-c > summary .flag { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; }
.ab-c > summary span { flex: 1; font-weight: 600; } .ab-c > summary small { color: var(--visited); font-weight: 800; }
.ab-cities { padding-left: 10px; } .ab-row { display: flex; align-items: center; gap: 8px; } .ab-row .main { flex: 1; min-width: 0; }
.ab-add { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--visited); color: #fff; font-size: 22px; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.ab-add.on { background: #2a9d8f; font-size: 18px; } .ab-add.wish { background: #e9c46a; font-size: 18px; } .ab-more { margin: 6px 0 10px; }
/* ---------- vague 6 ---------- */
.mu-r { display: flex; align-items: center; gap: 8px; } .mu-ck { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: none; color: #fff; font-weight: 800; }
.mu-ck.on { background: #2a9d8f; border-color: #2a9d8f; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .fd-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; }
.fd-chip.on { background: #fff3d6; border-color: #e9c46a; font-weight: 700; } html.dark .fd-chip.on { background: #4a3d1c; }
.fd-add { display: flex; gap: 6px; align-items: center; margin-top: 6px; } .fd-add .input { flex: 1; margin: 0; } .fd-add .btn { width: auto; margin: 0; padding: 10px 16px; }
.fd-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .fd-flags button { border: 0; background: var(--bg, #f3efe7); border-radius: 10px; padding: 6px 8px; display: flex; align-items: center; gap: 4px; }
.fd-flags .flag { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; } .fd-flags .dim { opacity: .55; } .fd-flags small { font-weight: 800; color: var(--visited); }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; } .lc-chips span { background: var(--bg, #f3efe7); border-radius: 10px; padding: 5px 9px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.lc-chips span.on { background: #e7f4ef; box-shadow: 0 0 0 1px #2a9d8f inset; } .lc-chips .flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.go-r { margin: 8px 0 10px; } .go-h { display: flex; justify-content: space-between; font-size: 14px; }
.go-ed { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); } .go-ed span { display: flex; flex-direction: column; font-weight: 600; } .go-ed small { color: var(--muted); font-weight: 400; }
.stepper { display: flex; align-items: center; gap: 10px; } .stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg, #f3efe7); font-size: 20px; color: var(--ink); } .stepper b { min-width: 24px; text-align: center; font-size: 18px; }
.fq-pass { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 0 20px; text-align: center; } .fq-pass b { font-size: 24px; } .fq-pass small { color: var(--muted); }
.fq-q { text-align: center; margin: 10px 0 16px; } .fq-q b { font-size: 19px; display: block; } .fq-flag { width: 160px; max-width: 60%; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15); margin-bottom: 14px; }
.fq-opts { display: grid; gap: 8px; } .fq-opts button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 600; }
.fq-opts button.good { background: #2a9d8f; color: #fff; border-color: #2a9d8f; } .fq-opts button.bad { background: #e63946; color: #fff; border-color: #e63946; }
.co-parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; font-size: 13px; } .co-parts span { background: var(--bg, #f3efe7); padding: 4px 9px; border-radius: 999px; }
.cs-est { display: flex; gap: 6px; align-items: center; } .cs-est select { flex: 2; margin: 0; } .cs-est input { flex: 0 0 70px; margin: 0; } .cs-res { margin: 8px 0 2px; font-size: 15px; }
html.dark .stepper button, html.dark .co-parts span, html.dark .lc-chips span, html.dark .fd-flags button { background: #22303a; }
/* ---------- Guide Michelin ---------- */
.mi-r { display: flex; align-items: center; gap: 8px; } .mi-r .main { flex: 1; min-width: 0; } .mi-r .flag { width: 16px; height: 11px; border-radius: 2px; object-fit: cover; vertical-align: -1px; }
.mi-r.done .title { color: #b8222e; }
.mi-aw { color: #c41e3a; font-weight: 800; font-size: 13px; letter-spacing: 1px; white-space: nowrap; } .mi-aw.bib { letter-spacing: 0; font-size: 12px; }
.mi-act { display: flex; gap: 14px; margin-top: 3px; font-size: 12.5px; } .mi-act a { color: #c41e3a; text-decoration: none; font-weight: 600; } .mi-act .linkbtn { font-size: 12.5px; padding: 0; }
.mi-ck { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: none; font-size: 17px; } .mi-ck.on { border-color: #c41e3a; background: #fdecee; }
.mi-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; } .mi-tiles span { background: var(--bg, #f3efe7); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; } .mi-tiles b { font-size: 18px; }
html.dark .mi-tiles span { background: #22303a; } html.dark .mi-ck.on { background: #4a1f25; }
.mi-auto { flex: none; font-size: 10.5px; color: #c41e3a; background: #fdecee; border-radius: 6px; padding: 2px 5px; font-weight: 700; } html.dark .mi-auto { background: #4a1f25; }
/* ---------- vague 7 ---------- */
.apt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; } .apt-tag { background: #264653; color: #fff; border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.apt-tag b { font-size: 18px; letter-spacing: 1px; font-family: ui-monospace, monospace; } .apt-tag small { font-size: 10.5px; opacity: .8; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; } .apt-tag em { font-style: normal; font-size: 11px; color: #f4a261; font-weight: 700; }
.apt-code { flex: none; width: 52px; text-align: center; font: 700 15px ui-monospace, monospace; background: #264653; color: #fff; border-radius: 8px; padding: 6px 0; }
.cal-y { flex-wrap: nowrap; overflow-x: auto; } .cal-grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin: 10px 0 6px; }
.cal-grid i { aspect-ratio: 1; border-radius: 2px; background: var(--line); display: block; } .cal-grid i.e { background: none; }
.cal-leg { display: flex; flex-wrap: wrap; gap: 6px; } .cal-leg span { display: inline-flex; align-items: center; gap: 3px; } .cal-leg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.tz-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; } .tz-strip span { font-size: 11.5px; background: var(--bg, #f3efe7); border-radius: 6px; padding: 3px 6px; font-variant-numeric: tabular-nums; }
.chal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; } .chal-c { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 14px; padding: 10px; text-align: left; display: flex; flex-direction: column; gap: 1px; }
.chal-c span { font-size: 20px; } .chal-c b { font-size: 13px; } .chal-c small { color: var(--muted); } .chal-c i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--visited); } .chal-c.done { border-color: #2a9d8f; } .chal-c.done i { background: #2a9d8f; }
.pub-link { font-size: 12.5px; word-break: break-all; background: var(--bg, #f3efe7); padding: 8px 10px; border-radius: 10px; margin: 8px 0; color: var(--ink-2); }
.sv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; } .sv-c { aspect-ratio: 1; border: 1px dashed var(--line); background: var(--bg, #f3efe7); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; overflow: hidden; padding: 0; }
.sv-c small { color: var(--muted); font-weight: 700; } .sv-c.has { border: 0; } .sv-c.has img { width: 100%; height: 100%; object-fit: cover; } .sv-c.has span { position: absolute; left: 4px; bottom: 3px; }
.sv-big { width: 100%; border-radius: 16px; margin: 6px 0 10px; display: block; }
html.dark .tz-strip span, html.dark .sv-c, html.dark .pub-link { background: #22303a; }
.nb-c { text-align: left; } .nb-c span { display: flex; flex-direction: column; color: var(--ink); } .nb-c b { font-size: 13.5px; } .nb-c small { font-size: 11px; color: var(--muted) !important; font-weight: 500 !important; }
/* ---------- carnet de matchs ---------- */
.mt-tiles span { flex-direction: column; } .mt-tiles small { font-size: 11px; color: var(--muted); } .mt-tiles { grid-template-columns: repeat(4, 1fr) !important; }
.mt-r .title { font-size: 14.5px; } .mt-sc { display: inline-block; background: #264653; color: #fff; border-radius: 6px; padding: 1px 7px; margin: 0 4px; font-variant-numeric: tabular-nums; }
.mt-teams { display: grid; grid-template-columns: 1fr 52px 12px 52px 1fr; gap: 6px; align-items: center; margin: 10px 0 4px; } .mt-teams .input { margin: 0; } .mt-g { text-align: center; padding-left: 4px; padding-right: 4px; } .mt-teams span { text-align: center; font-weight: 800; }
.mi-map { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; } .mi-map select { max-width: 55%; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.fact b { display: flex; justify-content: space-between; align-items: center; } .fact-next { border: 0; background: var(--bg, #f3efe7); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--ink); } .fact-next small { color: var(--muted); }
