/* required styles */

.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;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.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 {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	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;
	/* Fallback for FF which doesn't support 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, 0.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;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.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;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	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;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.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 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,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;
	}


/* cursors */

.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;
	}

/* marker & overlays interactivity */
.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; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	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: black;
	}
.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;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	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;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	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: 0.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: rgba(255, 255, 255, 0.8);
	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,0.2);
	background-clip: padding-box;
	}


/* popup */

.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: 17px 0;
	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: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.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=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.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;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.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 rgba(0,0,0,0.4);
	}
.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: "";
	}

/* Directions */

.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;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

/* Carnet de poche : une colonne, gros texte, barre de 5 raccourcis en bas. Palette : sel, mer du Gois, mimosa de l'île, rouge des balises pour les alertes. */
:root{
  --bg:#EEF2EF; --surface:#FFFFFF; --sunk:#E2E9E5; --ink:#13302D; --muted:#55706B; --line:#CCD8D3;
  --sea:#1B5E62; --sea-ink:#FFFFFF; --mimosa:#C98E0C; --mimosa-soft:#F6E7BF; --balise:#B23A26; --ok:#2C7A4B;
  --c-heb:#1B5E62; --c-rest:#B5571F; --c-pat:#6B4C9A; --c-nat:#3D7A3A; --c-plage:#1F7FA8; --c-gois:#C98E0C; --c-prat:#5E6B70; --c-yeu:#9C3D6B; --c-shop:#8A6A1E;
  --display:"Young Serif", Georgia, "Times New Roman", serif;
  --body:"Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --base:18px; --r:14px; --nav-h:68px; --head-h:56px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0D1918; --surface:#152523; --sunk:#1C302D; --ink:#E3ECE9; --muted:#9BB3AE; --line:#2B403D;
  --sea:#71BDBF; --sea-ink:#0D1918; --mimosa:#EBB443; --mimosa-soft:#3A3014; --balise:#EF7F64; --ok:#6CC58F;
  --c-heb:#71BDBF; --c-rest:#EE9A62; --c-pat:#B79BE6; --c-nat:#86C783; --c-plage:#6CC1E6; --c-gois:#EBB443; --c-prat:#A7B4B9; --c-yeu:#E58BB5; --c-shop:#D9B865;
  color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#0D1918; --surface:#152523; --sunk:#1C302D; --ink:#E3ECE9; --muted:#9BB3AE; --line:#2B403D;
  --sea:#71BDBF; --sea-ink:#0D1918; --mimosa:#EBB443; --mimosa-soft:#3A3014; --balise:#EF7F64; --ok:#6CC58F;
  --c-heb:#71BDBF; --c-rest:#EE9A62; --c-pat:#B79BE6; --c-nat:#86C783; --c-plage:#6CC1E6; --c-gois:#EBB443; --c-prat:#A7B4B9; --c-yeu:#E58BB5; --c-shop:#D9B865;
  color-scheme:dark }
html{font-size:var(--base);-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:1rem;line-height:1.55;margin:0}
*{box-sizing:border-box}
[hidden]{display:none!important}
a{color:var(--sea)}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--mimosa);outline-offset:2px}
@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* En-tête */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:900;background:var(--bg);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;gap:8px;padding:8px 16px;max-width:720px;margin:0 auto;min-height:var(--head-h)}
.brand{font-family:var(--display);font-size:1.25rem;line-height:1.1;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand small{display:block;font-family:var(--body);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.tool{min-width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);display:inline-grid;place-items:center;font-weight:700;cursor:pointer;padding:0 8px}
.tool svg{width:22px;height:22px}

main{max-width:720px;margin:0 auto;padding-inline:16px;padding-block:14px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom,0px))}
.view[hidden]{display:none!important}

/* Barre du bas */
.nav{position:fixed;left:0;right:0;bottom:0;z-index:1000;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}
.nav-in{display:grid;grid-template-columns:repeat(5,1fr);max-width:720px;margin:0 auto}
.nav button{border:0;background:none;padding:8px 2px 10px;min-height:var(--nav-h);display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;color:var(--muted);font-size:.72rem;font-weight:700}
.nav button svg{width:26px;height:26px}
.nav button[aria-current="page"]{color:var(--sea)}
.nav button[aria-current="page"] .ico{background:var(--sunk)}
.nav .ico{display:grid;place-items:center;width:52px;height:30px;border-radius:15px}

/* Typo */
h1,h2,h3{font-family:var(--display);font-weight:400;text-wrap:balance;margin:0;line-height:1.15}
h1{font-size:1.75rem}
h2{font-size:1.35rem}
h3{font-size:1.12rem}
.eyebrow{font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:var(--muted)}
.muted{color:var(--muted)}
p{margin:0}
.stack{display:flex;flex-direction:column;gap:14px}
.sec{display:flex;flex-direction:column;gap:12px;margin-top:26px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.card.flat{background:transparent;border-style:dashed}

/* Jours */
.days{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;margin-inline:-2px;scrollbar-width:none}
.days::-webkit-scrollbar{display:none}
.day{flex:0 0 auto;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:6px 12px;min-width:62px;text-align:center;cursor:pointer;line-height:1.2}
.day b{display:block;font-family:var(--display);font-weight:400;font-size:1.3rem}
.day span{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}
.day[aria-pressed="true"]{background:var(--sea);border-color:var(--sea);color:var(--sea-ink)}
.day[aria-pressed="true"] span{color:inherit}
.day .now{display:block;font-size:.6rem;font-weight:700;letter-spacing:.06em}
.banner{background:var(--mimosa-soft);border-radius:var(--r);padding:12px 14px;font-size:.92rem}

/* Marée et Gois */
.tide{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.tide-row{display:flex;flex-wrap:wrap;gap:6px 18px;font-variant-numeric:tabular-nums}
.tide-row div{display:flex;flex-direction:column}
.tide-row b{font-size:1.2rem}
.tide-row small{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.gbar{position:relative;height:46px;border-radius:10px;background:var(--sunk);overflow:hidden}
.gbar .night{position:absolute;top:0;bottom:0;background:var(--line);opacity:.8}
.gbar .win{position:absolute;top:6px;bottom:6px;border-radius:8px;background:var(--mimosa);display:grid;place-items:center;color:#1E1600;font-weight:700;font-size:.8rem;white-space:nowrap;overflow:hidden}
.gbar .nowline{position:absolute;top:0;bottom:0;width:3px;background:var(--balise)}
.gticks{display:flex;justify-content:space-between;font-size:.7rem;color:var(--muted);font-variant-numeric:tabular-nums;margin-top:-4px}
.note-s{font-size:.82rem;color:var(--muted)}

/* Puces lieux */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:8px 14px;min-height:44px;cursor:pointer;font-size:.9rem;display:inline-flex;align-items:center;gap:8px;text-align:left}
.chip .dot{width:10px;height:10px;border-radius:50%;background:var(--pc,var(--muted));flex:0 0 auto}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}

/* Humeurs */
.moods{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.moods::-webkit-scrollbar{display:none}
.moods .chip{flex:0 0 auto}
.mood-items{display:flex;flex-direction:column;gap:12px}

/* Tables */
.tag{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:700;border-radius:999px;padding:3px 10px;background:var(--sunk);color:var(--ink)}
.tag.ok{color:var(--ok)}
.tag.no{color:var(--balise)}
.tag.res{background:var(--sea);color:var(--sea-ink)}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.val{border-left:4px solid var(--mimosa);padding-left:10px;font-size:.95rem}
.acts{display:flex;flex-wrap:wrap;gap:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);text-decoration:none;color:var(--ink);font-weight:700;cursor:pointer;font-size:.95rem}
.btn.primary{background:var(--sea);border-color:var(--sea);color:var(--sea-ink)}
.btn svg{width:20px;height:20px}
.btn.wide{flex:1 1 140px}
.phone{font-variant-numeric:tabular-nums;letter-spacing:.02em}

/* Audio */
.rec{display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:start}
.play{width:56px;height:56px;border-radius:50%;border:0;background:var(--sea);color:var(--sea-ink);display:grid;place-items:center;cursor:pointer}
.play svg{width:26px;height:26px}
.rec h3{font-size:1.05rem}
.rec .where{font-size:.85rem;color:var(--muted)}
.rec .txt{margin-top:8px;display:flex;flex-direction:column;gap:10px}
.lnk{background:none;border:0;padding:6px 0;color:var(--sea);font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:3px;min-height:40px}
.player{position:fixed;left:0;right:0;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom,0px));z-index:950;background:var(--ink);color:var(--bg)}
.player-in{max-width:720px;margin:0 auto;padding:10px 16px;display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center}
.player .play{width:48px;height:48px;background:var(--bg);color:var(--ink)}
.player .t{font-weight:700;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player input[type=range]{width:100%;accent-color:var(--mimosa)}
.player .sp{background:none;border:1px solid currentColor;border-radius:10px;min-width:52px;min-height:40px;cursor:pointer;color:inherit;font-weight:700}
.prog{height:8px;border-radius:4px;background:var(--sunk);overflow:hidden}
.prog i{display:block;height:100%;width:0;background:var(--sea)}

/* Carte */
.mapwrap{position:relative;margin-inline:-16px;margin-top:-14px}
#map{height:calc(100dvh - var(--head-h) - var(--nav-h) - 1px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:360px;background:var(--sunk)}
.mapbar{position:absolute;top:10px;left:10px;right:10px;z-index:800;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.mapbar::-webkit-scrollbar{display:none}
.mapbar .chip{background:var(--surface);flex:0 0 auto;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.mapbar .chip[aria-pressed="true"]{background:var(--ink)}
.sheet{position:absolute;left:10px;right:10px;bottom:10px;z-index:800;background:var(--surface);border-radius:var(--r);padding:14px;box-shadow:0 4px 18px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:8px}
.pin{display:block;width:22px;height:22px;border-radius:50%;background:var(--pc);border:3px solid var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.35)}
.pin.big{width:30px;height:30px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:13px;font-family:var(--body)}
.leaflet-container{font-family:var(--body);background:var(--sunk)}
.leaflet-control-zoom a{width:40px!important;height:40px!important;line-height:40px!important;font-size:20px!important}
.maplist .row{display:grid;grid-template-columns:12px 1fr;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer;background:none;border-left:0;border-right:0;border-top:0;text-align:left;width:100%}
.maplist .row .dot{width:12px;height:12px;border-radius:50%;margin-top:7px;background:var(--pc)}
.search{width:100%;min-height:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface);padding:10px 14px;font:inherit;color:var(--ink)}

/* Fiche plein écran */
.ov{position:fixed;inset:0;z-index:2000;background:var(--bg);overflow-y:auto;-webkit-overflow-scrolling:touch}
.ov-head{position:sticky;top:0;z-index:2;background:var(--bg);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top,0px)}
.ov-head .top-in{gap:10px}
.ov-body{max-width:720px;margin:0 auto;padding-inline:16px;padding-block:16px calc(110px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:16px}
.ov-body figure{margin:0 -16px}
.ov-body figure img{display:block;width:100%;max-height:46vh;object-fit:cover}
.ov-body figcaption{font-size:.72rem;color:var(--muted);padding:4px 16px 0}
.lead{font-family:var(--display);font-size:1.25rem;line-height:1.3}
.story{display:flex;flex-direction:column;gap:12px}
.box{border-radius:var(--r);padding:14px;background:var(--sunk);display:flex;flex-direction:column;gap:6px}
.box.anec{background:var(--mimosa-soft)}
.box .eyebrow{color:var(--ink)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:.95rem}
.kv dt{color:var(--muted);font-weight:700}
.kv dd{margin:0;min-width:0}

/* Infos */
.tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:.9rem}
th,td{padding:10px 10px;text-align:left;border-bottom:1px solid var(--line);white-space:nowrap}
th{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
tr.today td{background:var(--mimosa-soft);font-weight:700}
ol.steps{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:10px}
ul.rules{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:8px}
.warn{border-left:4px solid var(--balise);padding:10px 12px;background:var(--surface);border-radius:0 12px 12px 0}
details.card summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:32px}
details.card summary::-webkit-details-marker{display:none}
details.card summary::after{content:"+";font-size:1.4rem;color:var(--muted)}
details.card[open] summary::after{content:"−"}
.phones .ph{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 0;border-bottom:1px solid var(--line);align-items:center}
.phones .ph:last-child{border-bottom:0}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--nav-h) + 80px);z-index:3000;background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;font-weight:700;font-size:.9rem}
.offline{display:flex;flex-direction:column;gap:10px}

/* ===== Mes carnets de voyage : compléments de l'application ===== */
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;font-display:swap;src:url(polices/atkinson-400.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;font-display:swap;src:url(polices/atkinson-700.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:italic;font-weight:400;font-display:swap;src:url(polices/atkinson-400i.woff2) format("woff2")}
@font-face{font-family:"Young Serif";font-style:normal;font-weight:400;font-display:swap;src:url(polices/young-serif-400.woff2) format("woff2")}

html,body{overscroll-behavior-y:none}
body.biblio main{padding-bottom:calc(32px + env(safe-area-inset-bottom,0px))}
body.biblio .player{bottom:env(safe-area-inset-bottom,0px)}

/* Bibliothèque */
.hero{display:flex;flex-direction:column;gap:6px;margin:6px 0 4px}
.hero h1{font-size:1.9rem}
.carnets{display:flex;flex-direction:column;gap:16px;margin-top:18px}
.cv{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.cv-open{display:block;border:0;background:none;padding:0;text-align:left;cursor:pointer;color:inherit;width:100%}
.cv-cover{position:relative;height:170px;background:var(--sunk) center/cover no-repeat}
.cv-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,20,19,.78) 0%,rgba(5,20,19,.15) 55%,rgba(5,20,19,0) 100%)}
.cv-cover .cv-t{position:absolute;left:16px;right:16px;bottom:12px;z-index:1;color:#fff}
.cv-cover h2{font-size:1.7rem;color:#fff}
.cv-cover p{font-size:.9rem;opacity:.92}
.cv-state{position:absolute;top:12px;left:12px;z-index:1;border-radius:999px;padding:5px 12px;font-size:.78rem;font-weight:700;background:var(--surface);color:var(--ink)}
.cv-state.now{background:var(--mimosa);color:#1E1600}
.cv-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px}
.cv-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.92rem;color:var(--muted)}
.off{display:flex;align-items:center;gap:8px;font-size:.9rem;font-weight:700}
.off.ok{color:var(--ok)}
.off svg{width:20px;height:20px;flex:0 0 auto}
.reglages .row2{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.reglages .row2:last-child{border-bottom:0}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.seg button{border:0;background:var(--surface);min-height:44px;min-width:56px;padding:0 10px;cursor:pointer;font-weight:700}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.update{position:fixed;left:12px;right:12px;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom,0px));z-index:3000;max-width:696px;margin:0 auto;background:var(--ink);color:var(--bg);border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:12px;font-weight:700}
body.biblio .update{bottom:calc(12px + env(safe-area-inset-bottom,0px))}
.update button{margin-left:auto;background:var(--mimosa);color:#1E1600;border:0;border-radius:10px;min-height:44px;padding:0 14px;font-weight:700;cursor:pointer}
.empty{padding:28px 16px;text-align:center}
.pin{background:var(--pc)}
.cv-body .btn.wide,.offline .btn.wide{flex:none;width:100%}
.gbar .win{padding:0 4px;font-size:.74rem}
.gwin{font-variant-numeric:tabular-nums}
.gwin b{color:var(--ink)}

/* v1.1 : versions longues, accueil du carnet, sommaire, index A-Z */
.long{display:flex;flex-direction:column;gap:12px}
.long h2{margin-top:10px}
.long h3{margin-top:6px;font-size:1.05rem}
.long ul{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:6px}
.long td,.long th{white-space:normal;min-width:7em}
hr.sep{border:0;border-top:1px solid var(--line);width:100%;margin:0}
.pager{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.pager .btn{font-size:.85rem;text-align:left;justify-content:flex-start}
.pager .btn.nx{text-align:right;justify-content:flex-end}
.btn.long-btn{background:var(--sunk);border-color:var(--sunk)}
.tool[aria-current="page"]{background:var(--sea);border-color:var(--sea);color:var(--sea-ink)}
.cover{position:relative;margin-inline:-16px;margin-top:-14px;overflow:hidden;background:var(--sunk)}
.cover img{display:block;width:100%;max-width:100%;height:min(46vh,360px);object-fit:cover}
.cover .veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,22,21,0) 30%,rgba(8,22,21,.82) 100%)}
.cover .cap{position:absolute;left:16px;right:16px;bottom:16px;color:var(--on-photo,#fff);display:flex;flex-direction:column;gap:6px}
.cover .cap .eyebrow{color:inherit;opacity:.9}
.cover h1{font-size:clamp(2.6rem,12vw,3.6rem);line-height:1;color:inherit}
.cover .sub{font-family:var(--display);font-size:1.2rem;line-height:1.25}
.credit{font-size:.7rem;color:var(--muted);padding:4px 0 0}
.who{display:flex;flex-wrap:wrap;gap:6px}
.intro{display:flex;flex-direction:column;gap:12px;font-size:1.02rem}
.intro p:first-child{font-family:var(--display);font-size:1.22rem;line-height:1.35}
.rep h2{font-size:1.5rem}
.big-acts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.big-acts .primary{grid-column:1 / -1}
.big-acts .btn{min-height:56px;font-size:1rem}
.toc button{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:12px 0;min-height:48px;cursor:pointer;color:var(--ink);font:inherit;line-height:1.35}
.toc button:last-child{border-bottom:0}
.toc .note-s{display:inline-block;margin-top:3px}
.toc button.trow{display:grid;grid-template-columns:4.2em 1fr;gap:10px;align-items:baseline}
.toc .k{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:700;font-size:.85rem}
.letters{position:sticky;top:calc(var(--head-h) + env(safe-area-inset-top,0px));z-index:5;background:var(--bg);display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding:8px 16px;border-bottom:1px solid var(--line)}
.letters::-webkit-scrollbar{display:none}
.letters button{flex:0 0 auto;min-width:40px;min-height:40px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font-weight:700;cursor:pointer;color:var(--ink);font-family:var(--display);font-size:1.05rem}
.ix-group{display:flex;flex-direction:column;margin-top:18px;scroll-margin-top:calc(var(--head-h) + 70px)}
.ix-letter{font-family:var(--display);font-size:1.9rem;color:var(--sea);line-height:1;padding-bottom:4px;border-bottom:2px solid var(--sea)}
.ix-letter.small{font-size:1.3rem}
.ix-row{display:grid;grid-template-columns:12px 1fr;gap:12px;align-items:start;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;width:100%;cursor:pointer;color:var(--ink);font:inherit}
.ix-row .dot{width:12px;height:12px;border-radius:50%;margin-top:7px;background:var(--pc,var(--muted))}
.ix-row .dot.th{border-radius:3px;background:var(--mimosa)}
.ix-row .dot.hs{border-radius:3px;background:var(--cat-patrimoine,var(--sea))}
.ix-row .dot.au{background:var(--sea)}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.8rem;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
.legend .lg-l{background:var(--cat-patrimoine,var(--muted))}
.legend .lg-t{background:var(--mimosa);border-radius:2px}
.legend .lg-h{background:var(--cat-patrimoine,var(--sea));border-radius:2px}
.legend .lg-a{background:var(--sea)}
.rep .gwin{font-size:.9rem}
body:not(.biblio) .top .top-in{gap:6px}
body:not(.biblio) .top .tool{min-width:40px;height:40px;padding:0 6px}
body:not(.biblio) .top .brand{font-size:1.15rem}

/* v1.2.0 : bouton « Où suis-je ? » sur la carte */
.gpsbtn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 14px;border-radius:24px;border:0;background:var(--surface);color:var(--ink);font:inherit;font-weight:700;font-size:.9rem;box-shadow:0 2px 8px rgba(0,0,0,.28);cursor:pointer;margin-bottom:10px!important}
.gpsbtn svg{width:22px;height:22px;flex:0 0 auto}
.gpsbtn[aria-pressed="true"]{background:#2F7FD8;color:#fff}
.gpsbtn.wait svg{animation:gpsspin 1.2s linear infinite}
@keyframes gpsspin{to{transform:rotate(360deg)}}
.me{display:block;width:22px;height:22px;border-radius:50%;background:#2F7FD8;border:3px solid #fff;box-shadow:0 0 0 0 rgba(47,127,216,.55),0 1px 4px rgba(0,0,0,.4);animation:mepulse 2s ease-out infinite}
@keyframes mepulse{0%{box-shadow:0 0 0 0 rgba(47,127,216,.55),0 1px 4px rgba(0,0,0,.4)}70%{box-shadow:0 0 0 16px rgba(47,127,216,0),0 1px 4px rgba(0,0,0,.4)}100%{box-shadow:0 0 0 0 rgba(47,127,216,0),0 1px 4px rgba(0,0,0,.4)}}
@media (prefers-reduced-motion: reduce){.me,.gpsbtn.wait svg{animation:none}}
.sheet .near{display:flex;flex-direction:column}
.sheet .near .row{display:grid;grid-template-columns:12px 1fr auto;gap:10px;align-items:center;padding:10px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;width:100%;cursor:pointer;color:var(--ink);font:inherit;min-height:44px}
.sheet .near .row:last-child{border-bottom:0}
.sheet .near .dot{width:12px;height:12px;border-radius:50%;background:var(--pc)}
.sheet .near .nm{font-weight:700;min-width:0}
.sheet .near .dd{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:700}
.mapwrap.sheet-open .leaflet-bottom.leaflet-right{display:none}

/* v1.3.0 : carnet de documents */
body.docs-mode main{padding-bottom:calc(32px + env(safe-area-inset-bottom,0px))}
.card.doc h2{font-size:1.3rem}
.card.doc .acts{display:flex;flex-wrap:wrap;gap:10px}
.cover h1.docs-h1{font-size:clamp(2rem,9vw,3rem)}
#v-lire{position:fixed;left:0;right:0;bottom:0;top:64px;z-index:800;background:var(--bg)}
.lire-frame{display:block;width:100%;height:100%;border:0;background:#fff}
body.lire-mode{overflow:hidden}
