/* Module Mouillages — styles (reprend les variables de couleur d'infosVent : --accent, --encre, --ligne…) */

.mou-page { --c0: #2E9E6A; --c1: #8DBF3F; --c2: #E2B21F; --c3: #E2701F; --c4: #D3392F; --cx: #8A97A3;
	display: flex; min-height: calc(100vh - 120px); background: var(--fond, #fff); color: var(--encre, #0B1622); }
.mou-page-text { display: block; max-width: 980px; margin: 0 auto; padding: 16px 16px 90px; }

/* panneau gauche + carte */
.mou-panel { width: 400px; flex: 0 0 400px; padding: 18px 18px 90px; overflow-y: auto; max-height: calc(100vh - 120px); border-right: 1px solid var(--ligne, #E2EAF0); box-sizing: border-box; }
.mou-mapwrap { flex: 1 1 auto; position: relative; min-height: 420px; }
#mouMap { position: absolute; inset: 0; }
.mou-title { font-size: 1.6em; margin: 0 0 6px; line-height: 1.2; }
.mou-intro, .mou-period { color: var(--gris, #5D7386); margin: 0 0 12px; }
.mou-period { font-weight: 600; color: var(--encre, #0B1622); }

.mou-controls { display: grid; gap: 10px; margin: 12px 0; padding: 12px; background: var(--panneau, #F7FAFC); border: 1px solid var(--ligne, #E2EAF0); border-radius: var(--radius, 10px); }
.mou-field { display: grid; gap: 4px; font-weight: 600; }
.mou-field select { padding: 6px 8px; border: 1px solid var(--ligne-forte, #CBD8E2); border-radius: 6px; font: inherit; font-weight: 400; background: #fff; }
.mou-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mou-tabs button { background: #fff; color: #333; font-weight: 600; padding: 5px 10px; border-radius: 3px; border: solid 1px rgba(0,0,0,.5); cursor: pointer; font: inherit; font-weight: 600; }
.mou-tabs button.selected { background: var(--accent, #3AC0E7); color: var(--sur-accent, #04252F); }
.mou-check { font-size: .95em; display: flex; gap: 6px; align-items: center; cursor: pointer; }

.mou-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85em; color: var(--gris, #5D7386); margin-bottom: 10px; }
.mou-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.c0 i, i.c0 { background: var(--c0); } i.c1 { background: var(--c1); } i.c2 { background: var(--c2); } i.c3 { background: var(--c3); } i.c4 { background: var(--c4); }
i.cx { background: #fff; border: 2px solid var(--cx); width: 6px; height: 6px; }
.mou-warning { background: #FFF6E5; border: 1px solid #F0D49A; border-radius: 6px; padding: 8px 10px; font-size: .9em; }

/* liste */
.mou-list { list-style: none; margin: 0; padding: 0; }
.mou-list li { margin: 0; }
.mou-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid var(--ligne, #E2EAF0); color: inherit; text-decoration: none; }
.mou-item:hover, .mou-item.hover { background: var(--accent-fond, #E8F7FC); }
.mou-dot { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2; }
.mou-item-name { font-weight: 600; }
.mou-item-badge { font-size: .85em; font-weight: 600; white-space: nowrap; }
.mou-item-detail { grid-column: 2 / 4; font-size: .85em; color: var(--gris, #5D7386); }
.mou-item.forbidden { opacity: .6; }
.mou-item.forbidden .mou-item-badge { color: var(--v-alerte, #D3392F); }
.mou-loading { padding: 12px 0; color: var(--gris, #5D7386); }

.mou-disclaimer, .mou-credits, .mou-note { font-size: .82em; color: var(--gris, #5D7386); margin-top: 14px; }

/* fiche */
.mou-back { margin: 0 0 6px; }
.mou-card { background: #fff; border: 1px solid var(--ligne, #E2EAF0); border-radius: var(--radius, 10px); padding: 14px 16px; margin: 14px 0; box-shadow: var(--ombre); }
.mou-card h2 { font-size: 1.15em; margin: 0 0 8px; }
.mou-hero { border-left: 6px solid var(--cx); }
.mou-hero.c0 { border-left-color: var(--c0); } .mou-hero.c1 { border-left-color: var(--c1); } .mou-hero.c2 { border-left-color: var(--c2); }
.mou-hero.c3 { border-left-color: var(--c3); } .mou-hero.c4 { border-left-color: var(--c4); }
.mou-hero-label { margin: 0; color: var(--gris, #5D7386); }
.mou-hero-value { font-size: 1.6em; font-weight: 700; margin: 2px 0 4px; }
.mou-hero-detail { margin: 0; }
.mou-reg { border-left: 6px solid var(--v-alerte, #D3392F); }
.mou-reg ul { margin: 0; padding-left: 18px; }
.mou-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mou-cols .mou-card { margin: 0; }

.mou-timeline { display: flex; align-items: flex-end; gap: 2px; height: 120px; overflow-x: auto; padding-bottom: 34px; position: relative; }
.mou-hour { flex: 1 0 12px; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.mou-hour-bar { width: 100%; border-radius: 2px 2px 0 0; background: var(--cx); }
.mou-hour.c0 .mou-hour-bar { background: var(--c0); } .mou-hour.c1 .mou-hour-bar { background: var(--c1); } .mou-hour.c2 .mou-hour-bar { background: var(--c2); }
.mou-hour.c3 .mou-hour-bar { background: var(--c3); } .mou-hour.c4 .mou-hour-bar { background: var(--c4); }
.mou-hour-wind { position: absolute; bottom: -16px; font-size: 11px; line-height: 1; color: var(--encre, #0B1622); }
.mou-hour-kn { position: absolute; bottom: -28px; font-size: 9px; color: var(--gris, #5D7386); }
.mou-hour-t { position: absolute; top: -2px; left: 0; font-size: 10px; color: var(--gris, #5D7386); white-space: nowrap; border-left: 1px solid var(--ligne-forte, #CBD8E2); padding-left: 2px; height: 100%; }
.mou-hour { cursor: pointer; }
.mou-hour.sel { background: var(--accent-fond, #E8F7FC); border-radius: 3px; }
.mou-tl-detail { margin: 6px 0 0; padding: 8px 10px; background: var(--panneau, #F7FAFC); border-radius: 6px; font-weight: 600; font-size: .95em; }
/* téléphone : 49 colonnes dans ~330 px donnaient ~6 px par heure et des chiffres de 9 px (retour du 15/10) —
   colonnes de 22 px qu'on fait défiler, graphique plus haut, flèches et chiffres de vent plus gros */
@media (max-width: 600px) {
	.mou-timeline { height: 150px; gap: 3px; padding-bottom: 46px; -webkit-overflow-scrolling: touch; }
	.mou-hour { flex: 0 0 22px; }
	.mou-hour-wind { font-size: 16px; bottom: -21px; }
	.mou-hour-kn { font-size: 12px; font-weight: 600; bottom: -40px; color: var(--encre, #0B1622); }
	.mou-hour-t { font-size: 12px; }
}

.mou-rose { width: 100%; max-width: 260px; display: block; margin: 0 auto 8px; }
.mou-rose-ring { fill: none; stroke: var(--ligne, #E2EAF0); }
.mou-rose-open { fill: var(--accent-fond, #E8F7FC); stroke: none; }
.mou-rose-shape { fill: rgba(11, 22, 34, .08); stroke: var(--accent-texte, #0E88AC); stroke-width: 1.5; }
.mou-rose-n { font-size: 11px; text-anchor: middle; fill: var(--gris, #5D7386); font-weight: 600; }
.mou-minimap { height: 320px; border-radius: 6px; }

/* marqueurs sur la carte */
.mou-tip { font-weight: 600; }

@media (max-width: 890px) {
	.mou-page { flex-direction: column-reverse; min-height: 0; }
	.mou-panel { width: auto; flex: none; max-height: none; border-right: 0; padding-bottom: 90px; }
	.mou-mapwrap { height: 55vh; min-height: 300px; flex: none; }
	.mou-cols { grid-template-columns: 1fr; }
}

/* retours du 14/10 : bouton retour, pavés séparés, vent mesuré, mouillages voisins */
.mou-backbtn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #333; font-weight: 600; font-size: .95em;
	padding: 5px 12px 5px 9px; border-radius: 20px; border: 1px solid var(--ligne-forte, #CBD8E2); box-shadow: var(--ombre); text-decoration: none; margin-bottom: 8px; }
.mou-backbtn span { font-size: 1.4em; line-height: 1; margin-top: -2px; color: var(--accent-texte, #0E88AC); }
.mou-backbtn:hover { background: var(--accent-fond, #E8F7FC); border-color: var(--accent, #3AC0E7); box-shadow: var(--ombre-hover); }
.mou-big { font-size: 1.8em; font-weight: 700; margin: 0 0 6px; line-height: 1.1; }
.mou-big span { display: block; font-size: .45em; font-weight: 400; color: var(--gris, #5D7386); }

.mou-anemos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mou-anemo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--ligne, #E2EAF0); border-radius: 8px; }
.mou-anemo-arrow { width: 40px; height: 40px; flex: none; }
.mou-anemo-val { flex: none; color: #fff; font-weight: 700; border-radius: 6px; padding: 4px 8px; font-size: 1.1em; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.mou-anemo-val small { font-size: .7em; font-weight: 600; }
.mou-anemo-lock { flex: none; width: 40px; text-align: center; font-size: 1.4em; opacity: .55; }
.mou-anemo-txt { font-size: .9em; line-height: 1.35; color: var(--gris, #5D7386); }
.mou-anemo-txt a { font-weight: 600; color: var(--encre, #0B1622); }
.mou-anemo-km { white-space: nowrap; }
.mou-cta { margin: 12px 0 0; }
.mou-btn { display: inline-block; background: var(--accent, #3AC0E7); color: var(--sur-accent, #04252F); font-weight: 700; padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.mou-btn:hover { filter: brightness(1.05); box-shadow: var(--ombre-hover); }

.mou-nearby { margin-bottom: 12px; }
.cdot0 { background: var(--c0); } .cdot1 { background: var(--c1); } .cdot2 { background: var(--c2); } .cdot3 { background: var(--c3); } .cdot4 { background: var(--c4); } .cdotn { background: var(--cx); }
.ctxt0 { color: var(--c0); } .ctxt1 { color: #6E9A2E; } .ctxt2 { color: #B88A0E; } .ctxt3 { color: var(--c3); } .ctxt4 { color: var(--c4); } .ctxtn { color: var(--cx); }

/* case « masquer les interdits » : neutralise la règle globale du site « input { width:100%; display:block } » */
.mou-check { display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; font-weight: 400; text-align: left; hyphens: none; -webkit-hyphens: none; }
.mou-check input[type="checkbox"] { display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; padding: 0; background: none; border: 0; accent-color: var(--accent-texte, #0E88AC); }

/* interrupteur (remplace la case à cocher native, que la règle globale « input { width:100% } » déformait) */
.mou-switch { display: flex; align-items: center; justify-content: flex-start; gap: 10px; cursor: pointer; text-align: left; hyphens: none; -webkit-hyphens: none; user-select: none; }
.mou-switch input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; pointer-events: none; }
.mou-switch-track { position: relative; flex: 0 0 38px; width: 38px; height: 22px; border-radius: 11px; background: var(--ligne-forte, #CBD8E2); transition: background .15s; }
.mou-switch-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.mou-switch input:checked + .mou-switch-track { background: var(--accent, #3AC0E7); }
.mou-switch input:checked + .mou-switch-track .mou-switch-knob { transform: translateX(16px); }
.mou-switch input:focus-visible + .mou-switch-track { outline: 2px solid var(--accent-texte, #0E88AC); outline-offset: 2px; }
.mou-switch-txt { font-weight: 600; font-size: .95em; line-height: 1.3; }

/* évolution sur la nuit */
.mou-hero-story { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--ligne, #E2EAF0); }
.mou-item-story { color: var(--encre, #0B1622); }

/* abri selon le vent */
.mou-shelter { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: .92em; }
.mou-shelter caption { text-align: left; font-size: .85em; color: var(--gris, #5D7386); padding-bottom: 4px; }
.mou-shelter th { text-align: left; font-weight: 600; padding: 4px 6px 4px 0; border-bottom: 1px solid var(--ligne, #E2EAF0); }
.mou-shelter td { text-align: right; font-weight: 600; padding: 4px 0; border-bottom: 1px solid var(--ligne, #E2EAF0); }
.mou-shelter .sh-ok { color: #2E9E6A; } .mou-shelter .sh-mid { color: #B88A0E; } .mou-shelter .sh-ko { color: #D3392F; }

/* réglementation : couleur selon l'effet */
.mou-reg li { margin-bottom: 8px; }
.mou-reg-label, .mou-reg-src { display: block; font-size: .88em; color: var(--gris, #5D7386); }
.mou-reg-ok strong { color: #2E9E6A; } .mou-reg-big strong { color: #C2761A; } .mou-reg-all strong { color: #D3392F; }

/* accès (D-22) : invitation à s'inscrire / s'abonner, bandeau d'essai */
.mou-teaser { border-left: 6px solid var(--accent, #3AC0E7); background: var(--accent-fond, #E8F7FC); }
.mou-teaser-title { font-weight: 700; font-size: 1.15em; margin: 0 0 6px; }
.mou-teaser p { margin: 0 0 8px; }
.mou-teaser-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.mou-btn-ghost { background: #fff; color: var(--encre, #0B1622); border: 1px solid var(--ligne-forte, #CBD8E2); }
.mou-trial { font-size: .9em; background: #FFF6E5; border: 1px solid #F0D49A; border-radius: 6px; padding: 6px 10px; margin: 8px 0 0; }
.mou-access { margin: 0 0 12px; }

/* réglementation : information « À savoir », anse en partie interdite */
.mou-reg-info strong { color: var(--accent-texte, #0E88AC); }
.mou-item-part { color: #C2761A; }
.mou-item-info { color: var(--accent-texte, #0E88AC); }

/* carte des fonds */
.mou-bathymap { height: 360px; border-radius: 6px; }
.mou-bathy-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .82em; color: var(--gris, #5D7386); margin-top: 8px; }
.mou-bathy-legend span { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-left: 6px; border: 1px solid rgba(0,0,0,.1); }
.mou-depth-label { background: none; border: 0; }
.mou-depth-label span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font-size: 11px; font-weight: 700; color: #fff;
	text-shadow: 0 0 2px #0B1622, 0 0 2px #0B1622, 0 0 3px #0B1622; pointer-events: none; }

/* ports à proximité */
/* ports à proximité : pavé .prox-col du site (comme sur les fiches port), espacé comme les autres pavés */
.mou-prox { margin: 14px 0; }

/* boutons de carte (Anémomètres / Plages / Ports / Mouillages) au même endroit que sur /map (#partLayerTop) :
   bord gauche de l'écran, en bas de la zone carte — par-dessus le bas du panneau (qui garde 90 px de marge basse) */
.mou-page { position: relative; }
.mou-maptabs { position: absolute; left: 10px; bottom: 25px; z-index: 1000; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 890px) {
	/* sur mobile la carte est en haut de page (55 vh, 300 px mini) : la barre s'ancre sur son bas, même si elle passe sur 2 lignes */
	.mou-maptabs { bottom: auto; top: calc(max(55vh, 300px) - 10px); transform: translateY(-100%); }
}

/* liste complète des mouillages (rendue côté serveur, sous la carte) */
.mou-all { max-width: 1200px; padding-top: 24px; }
.mou-all h2 { font-size: 1.3em; margin: 0 0 14px; }
.mou-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.mou-all-group h3 { font-size: 1em; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--ligne, #E2EAF0); }
.mou-all-group h3 span { font-weight: 400; color: var(--gris, #5D7386); font-size: .9em; }
.mou-all-group ul { list-style: none; margin: 0; padding: 0; }
.mou-all-group li { padding: 2px 0; font-size: .92em; }
.mou-all-group a { color: var(--accent-texte, #0E88AC); }
