/* Carte des sites : carte à gauche, liste à droite ; empilées sous 760 px. */
.wcs {
	--wcs-encre: #1d2a2a;
	--wcs-gris: #5d6b68;
	--wcs-ligne: #d9dfdb;
	--wcs-survol: #eef2f0;
	--wcs-alerte-fond: #fdecd9;
	--wcs-alerte: #8a4210;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	height: var(--wcs-hauteur, 620px);
	border: 1px solid var(--wcs-ligne);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	color: var(--wcs-encre);
	margin: 0 0 1.5em;
	line-height: 1.4;
}
/* Descente sur la carte (#ou-voler, carte.js) : sous l'en-tête fixe du thème et la barre d'administration. */
.wcs { scroll-margin-top: 110px; }
.wcs-carte { height: 100%; min-height: 320px; background: #e9eee9; z-index: 0; }

/* Fond IGN atténué pour que les épingles ressortent. */
.wcs .wcs-fond-plan { filter: saturate(0.45) brightness(1.05) contrast(0.9); }

.wcs-panneau { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; border-left: 1px solid var(--wcs-ligne); }
.wcs-filtres { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 4px; }
.wcs-filtres:empty { display: none; }
.wcs-filtres button {
	font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2;
	text-transform: none; letter-spacing: normal; box-shadow: none;
	border: 1px solid var(--wcs-ligne); border-radius: 999px; padding: 5px 11px;
	background: #fff; color: var(--wcs-encre); cursor: pointer;
}
.wcs-filtres button[aria-pressed="true"] { background: var(--wcs-encre); border-color: var(--wcs-encre); color: #fff; }
/* « Où voler » : un bouton par jour au-dessus des filtres ; notes, potentiel de cross. */
.wcs-jours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 12px 4px; }
.wcs-jours:empty { display: none; }
.wcs-jours-titre { flex-basis: 100%; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wcs-gris); margin-right: 2px; }
.wcs-jours button {
	font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.2;
	text-transform: none; letter-spacing: normal; box-shadow: none;
	border: 1px solid #c35327; border-radius: 999px; padding: 5px 11px;
	background: #fff; color: #a3431d; cursor: pointer;
}
.wcs-jours button[aria-pressed="true"] { background: #c35327; color: #fff; }
/* « ✕ Carte simple » : seulement quand un jour est choisi. */
.wcs-jours .wcs-jours-quitter { display: none; border-color: #c3cbc9; color: var(--wcs-gris); }
.wcs-jours .wcs-jours-quitter:hover, .wcs-jours .wcs-jours-quitter:focus-visible { border-color: var(--wcs-gris); color: #1f2a28; }
.wcs-mode-meteo .wcs-jours .wcs-jours-quitter { display: inline-block; }
.wcs-mode-meteo .wcs-filtres { padding-top: 6px; }
/* Points de la carte Google (hors fiches) estompés : leurs couleurs de type se confondraient avec les notes. */
.wcs-mode-meteo .wcs-pastille:not(.wcs-pastille-notee) { opacity: 0.35; }
.wcs-meteo-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 6px 4px; font-size: 12px; color: var(--wcs-gris); }
.wcs-meteo-legende > span { display: inline-flex; align-items: center; gap: 5px; }
.wcs-pastille-note { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.wcs-meteo-etat { font-size: 12px; color: var(--wcs-gris); padding: 6px; margin: 0; }
.wcs-cross { align-self: flex-start; margin-top: 3px; font-size: 11px; font-weight: 700; color: #6b3fa0; background: #f1eafb; border-radius: 999px; padding: 1px 8px; }
/* Tuiles canvas du calque Paraglidable (2.137.2) : BuddyX (global.min.css) impose canvas{width:100%!important;
   height:auto!important}, qui les réduisait à rien dans le conteneur des tuiles. */
/* 257 px (2.137.4) : chaque tuile déborde d'1 px sur sa voisine et couvre le raccord clair que la carte graphique
   laissait entre deux tuiles (zoom non entier, mise à l'échelle de Windows). Tuiles opaques (voir CalqueParaglidable) :
   le débordement ne se voit pas. */
.wcs .wcs-paraglidable canvas.leaflet-tile { width: 257px !important; height: 257px !important; max-width: none !important; }
.wcs .wcs-reglage-pg { background: #fff; font-size: 11px; color: #333; }
.wcs .wcs-reglage-pg-bouton { display: flex; align-items: center; justify-content: center; }
.wcs-reglage-pg-bouton span { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#00a000, #a07000, #a00000, #a07000, #00a000); opacity: 0.85; }
.wcs .wcs-reglage-pg-corps { display: none; flex-direction: column; gap: 3px; width: 132px; padding: 6px 8px; }
.wcs .wcs-reglage-pg.is-ouvert .wcs-reglage-pg-bouton { display: none; }
.wcs .wcs-reglage-pg.is-ouvert .wcs-reglage-pg-corps { display: flex; }
.wcs-reglage-pg-titre { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.wcs .wcs-reglage-pg .wcs-reglage-pg-fermer { width: auto; height: auto; line-height: 1; border: 0; padding: 0 2px; font-size: 16px; font-weight: 400; color: #666; background: none; }
.wcs-reglage-pg-echelle { height: 8px; border-radius: 4px; background: linear-gradient(to right, #a00000, #a07000, #00a000); }
.wcs-reglage-pg-bornes { display: flex; justify-content: space-between; color: #666; }
.wcs-reglage-pg label { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 0; font-weight: 400; }
.wcs-reglage-pg input[type="range"] { width: 100%; margin: 0; }
.wcs-pg { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; color: var(--wcs-gris); }
.wcs-pg .wcs-pastille-note { width: 8px; height: 8px; }
.wcs-popup .wcs-popup-meteo { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; padding: 8px; border-radius: 6px; background: var(--wcs-survol); font-size: 12px; }
.wcs-popup-meteo strong { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.wcs-popup-meteo a { font-weight: 600; }
.wcs-liste { padding: 4px 8px 12px; }
.wcs-groupe {
	font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--wcs-gris); padding: 12px 6px 4px;
}
.wcs .wcs-item {
	display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center;
	width: 100%; padding: 7px 6px; margin: 0; border: 0; border-radius: 6px;
	background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
	text-transform: none; letter-spacing: normal; box-shadow: none; white-space: normal;
}
.wcs .wcs-item:hover, .wcs .wcs-item:focus-visible { background: var(--wcs-survol); color: inherit; }
.wcs .wcs-item.is-actif { background: var(--wcs-survol); box-shadow: inset 3px 0 0 var(--wcs-encre); }
.wcs-item-texte { min-width: 0; display: flex; flex-direction: column; }
.wcs-item-nom { font-weight: 600; font-size: 14px; }
.wcs-item-infos { font-size: 12px; color: var(--wcs-gris); }
.wcs-item-alt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wcs button:focus-visible { outline: 2px solid #2a6fdb; outline-offset: 1px; }

/* Épingles */
.wcs-epingle { background: none; border: 0; }
.wcs-epingle svg { display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); transform-origin: 50% 100%; transition: transform 0.15s; }
.wcs-epingle:hover svg, .wcs-epingle.is-actif svg { transform: scale(1.2); }
/* Orientations favorables des décollages et vols montagne en éventail dans la tête (dans la pastille pour une fiche
   en calque), à partir du zoom 11 (ZOOM_ORIENTATIONS), à la place du glyphe. */
.wcs-epingle .wcs-ori, .wcs-pastille .wcs-ori,
.wcs-carte.wcs-orientations .wcs-epingle .wcs-glyphe, .wcs-carte.wcs-orientations .wcs-pastille .wcs-glyphe { display: none; }
.wcs-carte.wcs-orientations .wcs-epingle .wcs-ori, .wcs-carte.wcs-orientations .wcs-pastille .wcs-ori { display: inline; }

.wcs .wcs-etiquette {
	display: none;
	background: rgba(255, 255, 255, 0.95); border: 0; border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	color: var(--wcs-encre); font-size: 12px; font-weight: 700; padding: 2px 6px;
}
.wcs .wcs-etiquette::before { display: none; }
.wcs-carte.wcs-proche .wcs-etiquette { display: block; }

/* Points de la carte collaborative (My Maps) : pastilles, noms à partir du zoom 14. */
.wcs-pastille { background: none; border: 0; }
.wcs-pastille svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45)); }
.wcs .wcs-etiquette-point { font-weight: 600; font-size: 11px; }
.wcs-carte.wcs-proche .wcs-etiquette-point { display: none; }
.wcs-carte.wcs-tres-proche .wcs-etiquette-point { display: block; }

.wcs-calques { border-top: 1px solid var(--wcs-ligne); padding: 4px 8px 10px; }
.wcs-calques:empty { display: none; }
.wcs-calque {
	display: grid; grid-template-columns: auto 50px minmax(0, 1fr) auto; gap: 8px; align-items: center;
	padding: 5px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; margin: 0;
}
.wcs-calque:hover { background: var(--wcs-survol); }
.wcs-calque.is-vide { opacity: 0.45; }
.wcs-calque input { margin: 0; accent-color: var(--wcs-encre); }
.wcs-calque-icones { display: inline-flex; gap: 2px; }
.wcs-calque-icones svg { display: block; }
.wcs-calque-nb { color: var(--wcs-gris); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Bulle d'un site, toujours au-dessus des étiquettes de noms. */
.wcs .leaflet-popup-pane { z-index: 750; }
.wcs .leaflet-tooltip-pane { z-index: 640; }
.wcs .leaflet-popup-content-wrapper { border-radius: 8px; padding: 0; overflow: hidden; }
.wcs .leaflet-popup-content { margin: 0; width: 260px !important; font-size: 13px; line-height: 1.45; }
.wcs-popup img { display: block; width: 100%; height: 130px; object-fit: cover; }
/* Mobile : bulle limitée aux deux tiers de la carte (carte.js, popupopen), le reste défile ; photo plus basse, et
   bouton « Prévision détaillée » et liens remontés sous le titre, pour rester visibles sans faire défiler la bulle. */
@media (max-width: 760px) {
	.wcs-popup img { height: 90px; }
	.wcs-popup-corps > * { order: 1; }
	.wcs-popup-corps > .wcs-popup-titre, .wcs-popup-corps > .wcs-popup-infos,
	.wcs-popup-corps > .wcs-site-meteo, .wcs-popup-corps > .wcs-popup-liens { order: 0; }
}
/* Photo cliquable : ouvre la visionneuse. */
.wcs .wcs-popup-photo { display: block; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; cursor: zoom-in; }
.wcs .wcs-popup-photo:focus-visible { outline: 3px solid var(--wcs-encre); outline-offset: -3px; }

/* Visionneuse des photos des bulles, sur la page ou dans le bloc en plein écran. */
.wcs-visionneuse {
	position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
	padding: 56px 16px 16px; background: rgba(0, 0, 0, .95); cursor: zoom-out;
}
.wcs-visionneuse { overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.wcs-visionneuse figure { margin: 0; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* Image étirée à toute la place (une webcam de 640 px s'agrandit), proportions gardées ; zoom par transform (carte.js). */
.wcs-visionneuse .wcs-visionneuse-cadre { width: 100%; height: calc(100vh - 118px); height: calc(100dvh - 118px); }
.wcs-visionneuse img {
	display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in;
	transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none;
}
.wcs-visionneuse.wcs-visionneuse-zoomee img { cursor: grab; }
.wcs-visionneuse.wcs-visionneuse-zoomee img:active { cursor: grabbing; }
.wcs-visionneuse figcaption { position: relative; z-index: 1; }
.wcs-visionneuse .wcs-visionneuse-zoom { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 6px; }
.wcs-visionneuse .wcs-visionneuse-zoom button {
	min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 20px;
	background: rgba(255, 255, 255, .15); color: #fff; font: inherit; font-size: 20px; line-height: 40px; cursor: pointer;
}
.wcs-visionneuse .wcs-visionneuse-zoom button[data-zoom="un"] { min-width: 64px; font-size: 15px; font-variant-numeric: tabular-nums; }
.wcs-visionneuse .wcs-visionneuse-zoom button:hover, .wcs-visionneuse .wcs-visionneuse-zoom button:focus-visible { background: rgba(255, 255, 255, .3); }
.wcs-visionneuse .wcs-visionneuse-fermer { z-index: 2; }
.wcs-visionneuse figcaption { color: #fff; font-size: 15px; text-align: center; }
.wcs-visionneuse .wcs-visionneuse-fermer {
	position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 40px; cursor: pointer;
}
.wcs-visionneuse .wcs-visionneuse-fermer:hover, .wcs-visionneuse .wcs-visionneuse-fermer:focus-visible { background: rgba(255, 255, 255, .3); }
.wcs-popup-corps { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.wcs-popup-titre { font-size: 16px; line-height: 1.2; }
.wcs-popup-infos { color: var(--wcs-gris); font-size: 12px; }
.wcs-popup p { margin: 0; }
.wcs-popup .wcs-popup-dangers { background: var(--wcs-alerte-fond); color: var(--wcs-alerte); border-radius: 5px; padding: 6px 8px; }
.wcs .wcs-popup-lien { font-weight: 700; }
.wcs-popup .wcs-popup-note { border-left: 3px solid currentColor; padding-left: 8px; font-style: italic; }
.wcs-popup-liens { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.wcs .wcs-popup-itineraire { font-size: 12px; }
.wcs-popup-source { color: var(--wcs-gris); font-size: 11px; }

/* Plein écran : natif (:fullscreen) ou de repli (.wcs-plein-ecran, iPhone). */
.wcs-bouton-plein-ecran a { display: flex; align-items: center; justify-content: center; color: var(--wcs-encre); }
.wcs:fullscreen { height: 100%; width: 100%; border: 0; border-radius: 0; margin: 0; }
.wcs:-webkit-full-screen { height: 100%; width: 100%; border: 0; border-radius: 0; margin: 0; }
.wcs.wcs-plein-ecran {
	position: fixed; inset: 0; z-index: 100000;
	height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0;
	padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
html.wcs-sans-defilement, html.wcs-sans-defilement body { overflow: hidden; }

/* Légende, en bas à gauche de la carte. */
.wcs .wcs-legende {
	background: rgba(255, 255, 255, 0.94); color: var(--wcs-encre);
	border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	padding: 6px 10px; font-size: 12px; line-height: 1.3; max-width: calc(100vw - 90px);
}
.wcs .wcs-legende summary { cursor: pointer; font-weight: 700; list-style-position: inside; }
.wcs .wcs-legende[open] summary { margin-bottom: 4px; }
.wcs-legende-ligne { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 0; }
.wcs-legende-ligne + .wcs-legende-ligne { border-top: 1px solid var(--wcs-ligne); padding-top: 4px; margin-top: 2px; }
.wcs-legende-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.wcs-legende-item svg { display: block; flex: none; }
/* « ⬚ tolérée » dans l'entrée d'une zone : un peu d'air avant le second carré. */
.wcs-legende-sous { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; }

/* Message « Ctrl + molette » affiché brièvement sur la carte. */
.wcs-aide-molette {
	position: absolute; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, 0.45); color: #fff;
	font-size: 18px; font-weight: 600; text-align: center; padding: 16px;
	pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
.wcs-aide-molette.is-visible { opacity: 1; }

/* Lien vers la carte Google, en bas du panneau. */
.wcs .wcs-lien-mymaps {
	display: block; margin-top: auto; padding: 10px 14px 12px;
	border-top: 1px solid var(--wcs-ligne);
	font-size: 13px; font-weight: 600; color: var(--wcs-encre);
}
.wcs .wcs-lien-mymaps:hover { background: var(--wcs-survol); color: var(--wcs-encre); }

.wcs-admin { font-size: 13px; color: #8a4210; }

/* Panneau de la liste fermé (bouton en haut à droite de la carte) : la carte prend toute la largeur. */
.wcs.wcs-sans-panneau { grid-template-columns: minmax(0, 1fr); }
.wcs.wcs-sans-panneau .wcs-panneau { display: none; }
.wcs .wcs-bouton-panneau a { display: flex; align-items: center; justify-content: center; color: #333; }
.wcs .wcs-bouton-panneau svg { display: block; }

@media (max-width: 760px) {
	/* Hauteur de la carte : --wcs-carte-tiroir, réglée par la poignée (carte.js, pointMeteo), 120 px au moins. */
	.wcs { grid-template-columns: 1fr; grid-template-rows: var(--wcs-carte-tiroir, 60vh) auto; height: auto; }
	.wcs .wcs-carte { min-height: 0; }
	/* Rangée et colonne explicites : la poignée occupe aussi la rangée 2 sur toute la largeur, et la liste placée toute
	   seule passerait dans une colonne de plus, la carte réduite à une bande étroite. */
	.wcs-panneau { grid-row: 2; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--wcs-ligne); }
	.wcs-liste { max-height: none; }
	.wcs:fullscreen, .wcs.wcs-plein-ecran { grid-template-rows: minmax(0, var(--wcs-carte-tiroir, 65%)) minmax(0, 1fr); }
	.wcs:-webkit-full-screen { grid-template-rows: minmax(0, var(--wcs-carte-tiroir, 65%)) minmax(0, 1fr); }
	.wcs:not(.wcs-sans-panneau) .wcs-point-poignee, .wcs.wcs-avec-point .wcs-point-poignee { display: flex; }
	.wcs.wcs-sans-panneau { grid-template-rows: 60vh; }
	/* La liste est sous la carte : la flèche pour la masquer pointe vers le bas. */
	.wcs .wcs-bouton-panneau .wcs-chevron { transform: rotate(90deg); transform-origin: 12px 12px; }
	.wcs.wcs-sans-panneau:fullscreen, .wcs.wcs-sans-panneau.wcs-plein-ecran { grid-template-rows: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.wcs-epingle svg { transition: none; }
}

/* Vue 3D (carte.js, vue3d) : MapLibre par-dessus la carte 2D, dans la même case de la grille. */
.wcs .wcs-bouton-3d a { display: flex; align-items: center; justify-content: center; color: var(--wcs-encre); font: 700 13px/1 system-ui, sans-serif; text-decoration: none; }
.wcs .wcs-bouton-3d a.is-chargement { cursor: progress; opacity: 0.55; }
/* Carte 2D placée elle aussi dans sa case : sinon la grille la déplaçait pour laisser la case à la vue 3D. */
.wcs > .wcs-carte, .wcs-3d { grid-row: 1; grid-column: 1; }
.wcs-3d { position: relative; z-index: 1; min-height: 320px; background: #e9eee9; }
.wcs-3d[hidden] { display: none; }
.wcs .wcs-3d-retour {
	position: absolute; top: 10px; left: 10px; z-index: 2; width: 44px; height: 34px; padding: 0; border: 0; border-radius: 6px;
	background: #fff; color: var(--wcs-encre); font: 700 14px/1 system-ui, sans-serif; cursor: pointer;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12); text-transform: none; letter-spacing: normal;
}
.wcs .wcs-3d-retour:hover, .wcs .wcs-3d-retour:focus { background: var(--wcs-survol); color: var(--wcs-encre); }
.wcs-3d .wcs-epingle-3d { cursor: pointer; }
.wcs-3d .wcs-epingle-3d svg { display: block; }
.wcs-3d .maplibregl-popup-content { padding: 0; border-radius: 8px; overflow: hidden; color: var(--wcs-encre); font-size: 13px; }
/* Boutons de MapLibre à l'abri du style des boutons du thème (kit Elementor de Volarem : fond coloré, marges). */
.wcs-3d .maplibregl-ctrl-group button, .wcs-3d button.maplibregl-popup-close-button {
	min-width: 0; min-height: 0; margin: 0; padding: 0; border-radius: 0; box-shadow: none;
	text-transform: none; letter-spacing: normal; line-height: 1;
}
.wcs-3d .maplibregl-ctrl-group button, .wcs-3d .maplibregl-ctrl-group button:focus { background-color: transparent; }
.wcs-3d .maplibregl-ctrl-group button:hover { background-color: rgba(0, 0, 0, 0.05); }
.wcs-3d button.maplibregl-popup-close-button { width: 26px; height: 26px; font-size: 18px; color: var(--wcs-encre); background: none; }
.wcs-3d button.maplibregl-popup-close-button:hover, .wcs-3d button.maplibregl-popup-close-button:focus { background: var(--wcs-survol); color: var(--wcs-encre); }

/* Prévision au point cliqué (carte.js, pointMeteo) : repère, bulle, puis tiroir sous la carte et la liste. */
.wcs .wcs-repere-point { background: none; border: 0; }
.wcs .wcs-repere-point svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.wcs .wcs-point-bouton {
	margin-top: 4px; padding: 7px 12px; border: 0; border-radius: 6px;
	background: var(--wcs-encre); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
	text-transform: none; letter-spacing: normal;
}
/* Survol et focus fixés : sinon le kit Elementor de Volarem (button:hover, button:focus) change le fond sous le texte blanc. */
.wcs .wcs-point-bouton:hover, .wcs .wcs-point-bouton:focus { background: #34504b; color: #fff; }
.wcs .wcs-point-bouton:disabled { opacity: 0.6; cursor: progress; background: var(--wcs-encre); color: #fff; }
.wcs.wcs-avec-point { height: auto; grid-template-rows: var(--wcs-hauteur, 620px) auto; }
/* Rangée explicite : la poignée occupe aussi la rangée 2, et le tiroir placé tout seul passerait en rangée 3. */
.wcs.wcs-avec-point .wcs-point { grid-row: 2; }
/* Poignée sous la carte (carte.js, pointMeteo) : en plein écran avec le tiroir, et sur mobile au-dessus de la liste ou
   du tiroir (voir plus bas) ; hauteur de la carte dans --wcs-carte-tiroir, en px. Sur ordinateur hors plein écran, le
   tiroir prend déjà toute la hauteur de son contenu. */
.wcs-point-poignee {
	display: none;
	grid-column: 1 / -1; grid-row: 2; align-self: start; position: relative; z-index: 2;
	align-items: center; justify-content: center; height: 18px; margin-top: -9px;
	cursor: row-resize; touch-action: none; outline: none;
}
.wcs.wcs-avec-point:fullscreen .wcs-point-poignee, .wcs.wcs-avec-point.wcs-plein-ecran .wcs-point-poignee { display: flex; }
.wcs.wcs-avec-point:-webkit-full-screen .wcs-point-poignee { display: flex; }
/* Sans le minimum de 320 px, la carte suit la poignée (120 px au moins, carte.js) au lieu de couvrir le tiroir. */
.wcs.wcs-avec-point:fullscreen .wcs-carte, .wcs.wcs-avec-point.wcs-plein-ecran .wcs-carte { min-height: 0; }
.wcs.wcs-avec-point:-webkit-full-screen .wcs-carte { min-height: 0; }
.wcs-point-poignee[hidden] { display: none !important; }
.wcs-point-poignee span {
	width: 48px; height: 6px; border-radius: 3px; background: #fff; border: 1px solid var(--wcs-gris);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.wcs-point-poignee:hover span, .wcs-point-poignee:focus-visible span, .wcs-point-poignee.wcs-glisse span { background: var(--wcs-encre); border-color: var(--wcs-encre); }
.wcs-point { grid-column: 1 / -1; min-width: 0; padding: 14px 16px 18px; border-top: 1px solid var(--wcs-ligne); scroll-margin-top: 110px; }
.wcs-point[hidden] { display: none; }
.wcs-point-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wcs-point-tete > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wcs-point-titre { font-size: 17px; line-height: 1.25; }
.wcs-point-infos { color: var(--wcs-gris); font-size: 13px; }
.wcs-point-infos a { font-weight: 700; }
.wcs .wcs-point-fermer {
	flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--wcs-ligne); border-radius: 50%;
	background: #fff; color: var(--wcs-encre); font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
}
.wcs .wcs-point-fermer:hover, .wcs .wcs-point-fermer:focus { background: var(--wcs-survol); color: var(--wcs-encre); border-color: var(--wcs-gris); }
/* Plein écran : la carte garde un peu moins de la moitié de la hauteur, le tiroir défile. */
.wcs.wcs-avec-point:fullscreen, .wcs.wcs-avec-point.wcs-plein-ecran { height: 100%; grid-template-rows: minmax(0, var(--wcs-carte-tiroir, 45%)) minmax(0, 1fr); }
.wcs.wcs-avec-point:-webkit-full-screen { height: 100%; grid-template-rows: minmax(0, var(--wcs-carte-tiroir, 45%)) minmax(0, 1fr); }
.wcs.wcs-avec-point.wcs-plein-ecran { height: 100vh; height: 100dvh; }
.wcs.wcs-avec-point:fullscreen .wcs-point, .wcs.wcs-avec-point.wcs-plein-ecran .wcs-point { overflow-y: auto; overscroll-behavior: contain; }
.wcs.wcs-avec-point:-webkit-full-screen .wcs-point { overflow-y: auto; }
/* Plein écran sur grand écran : grille et coupe limitées à la largeur d'une fiche, centrées (marges plutôt que
   max-width : la barre de défilement du tiroir reste au bord de l'écran). */
.wcs.wcs-avec-point:fullscreen .wcs-point, .wcs.wcs-avec-point.wcs-plein-ecran .wcs-point { padding-inline: max(16px, calc((100% - 1080px) / 2)); }
.wcs.wcs-avec-point:-webkit-full-screen .wcs-point { padding-inline: max(16px, calc((100% - 1080px) / 2)); }
/*
 * Colonne des sites dans le tiroir (carte.js, colonneSites), quand la carte fait au moins 1 200 px de large
 * (wcs-tiroir-large) : 250 px à gauche, la prévision à droite (1 080 px au plus en plein écran).
 */
.wcs-tiroir-sites { display: none; }
.wcs-tiroir-sites .wcs-groupe:first-child { padding-top: 2px; }
.wcs.wcs-tiroir-large .wcs-point.wcs-avec-sites:not([hidden]) { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 28px; align-items: start; }
.wcs.wcs-tiroir-large .wcs-point.wcs-avec-sites > .wcs-tiroir-sites {
	display: block; position: sticky; top: 12px; max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain;
	padding-right: 10px; border-right: 1px solid var(--wcs-ligne);
}
.wcs-tiroir-corps { min-width: 0; }
/*
 * Sous 1 200 px, à la place de la colonne (carte.js, navSites) : site précédent, menu des sites, site suivant.
 * Collée en haut du tiroir quand il défile tout seul (plein écran).
 */
.wcs-tiroir-nav { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 4px 0 8px; border-bottom: 1px solid var(--wcs-ligne); background: #fff; }
.wcs.wcs-tiroir-large .wcs-avec-sites .wcs-tiroir-nav { display: none; }
.wcs .wcs-tiroir-choisir {
	flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
	min-height: 44px; margin: 0; padding: 4px 10px 4px 12px; border: 1px solid var(--wcs-ligne); border-radius: 8px;
	background: #fff; color: var(--wcs-encre); font: inherit; text-align: left; cursor: pointer;
	text-transform: none; letter-spacing: normal; box-shadow: none; white-space: normal;
}
.wcs .wcs-tiroir-choisir:hover, .wcs .wcs-tiroir-choisir:focus { background: var(--wcs-survol); color: var(--wcs-encre); border-color: var(--wcs-gris); }
.wcs-tiroir-choisir-nom { grid-column: 1; font-size: 14px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcs-tiroir-choisir-infos { grid-column: 1; font-size: 12px; color: var(--wcs-gris); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcs-tiroir-choisir svg { grid-column: 2; grid-row: 1 / span 2; }
/* Panneau de choix d'un site (carte.js, choixSites) : la liste de la colonne, par-dessus la carte, en bas sur mobile. */
.wcs-tiroir-choix {
	position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center;
	background: rgba(29, 42, 42, 0.45);
}
.wcs-tiroir-choix-boite {
	display: flex; flex-direction: column; width: min(480px, 100%); max-height: min(78vh, 720px); max-height: min(78dvh, 720px);
	border-radius: 14px 14px 0 0; background: #fff; color: var(--wcs-encre); box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}
@media (min-width: 761px) {
	.wcs-tiroir-choix { align-items: center; }
	.wcs-tiroir-choix-boite { border-radius: 14px; }
}
.wcs-tiroir-choix-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 10px 18px; border-bottom: 1px solid var(--wcs-ligne); font-size: 16px; }
.wcs .wcs-tiroir-choix .wcs-tiroir-sites { display: block; position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 14px; }
.wcs-tiroir-choix .wcs-item { padding: 10px 8px; }
.wcs-tiroir-choix .wcs-item + .wcs-item { border-top: 1px solid var(--wcs-survol); }
.wcs .wcs-tiroir-fleche {
	flex: none; width: 40px; height: 40px; margin: 0; padding: 0 0 3px; border: 1px solid var(--wcs-ligne); border-radius: 50%;
	background: #fff; color: var(--wcs-encre); font: inherit; font-size: 26px; font-weight: 400; line-height: 1; cursor: pointer;
	text-transform: none; letter-spacing: normal; box-shadow: none;
}
.wcs .wcs-tiroir-fleche:hover, .wcs .wcs-tiroir-fleche:focus { background: var(--wcs-survol); color: var(--wcs-encre); border-color: var(--wcs-gris); }
.wcs .wcs-tiroir-fleche:disabled { opacity: 0.35; cursor: default; background: #fff; border-color: var(--wcs-ligne); }
/* Fond prolongé dans les marges du tiroir, où débordent les grilles qui défilent dessous. */
.wcs.wcs-avec-point:fullscreen .wcs-tiroir-nav, .wcs.wcs-avec-point.wcs-plein-ecran .wcs-tiroir-nav {
	position: sticky; top: -14px; z-index: 6; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax);
}
.wcs.wcs-avec-point:-webkit-full-screen .wcs-tiroir-nav { position: sticky; top: -14px; z-index: 6; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
/* Plein écran : colonne et prévision défilent chacune de leur côté, le tiroir ne défile plus. */
.wcs.wcs-tiroir-large.wcs-avec-point:fullscreen .wcs-point.wcs-avec-sites, .wcs.wcs-tiroir-large.wcs-avec-point.wcs-plein-ecran .wcs-point.wcs-avec-sites {
	padding-inline: max(16px, calc((100% - 1358px) / 2)); padding-bottom: 0; overflow: hidden; grid-template-rows: minmax(0, 1fr); align-items: stretch;
}
.wcs.wcs-tiroir-large.wcs-avec-point:-webkit-full-screen .wcs-point.wcs-avec-sites {
	padding-inline: max(16px, calc((100% - 1358px) / 2)); padding-bottom: 0; overflow: hidden; grid-template-rows: minmax(0, 1fr); align-items: stretch;
}
.wcs.wcs-tiroir-large.wcs-avec-point:fullscreen .wcs-avec-sites > *, .wcs.wcs-tiroir-large.wcs-avec-point.wcs-plein-ecran .wcs-avec-sites > * {
	position: static; max-height: none; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 18px;
}
.wcs.wcs-tiroir-large.wcs-avec-point:-webkit-full-screen .wcs-avec-sites > * { position: static; max-height: none; min-height: 0; overflow-y: auto; padding-bottom: 18px; }
@media (max-width: 760px) {
	/* Tiroir ouvert : sous la carte, la prévision, ou la liste à sa place (bouton de la liste, wcs-liste-devant,
	   carte.js panneau()) ; jamais les deux, la liste n'est plus reléguée sous la prévision. */
	.wcs.wcs-avec-point, .wcs.wcs-sans-panneau.wcs-avec-point { grid-template-rows: var(--wcs-carte-tiroir, 60vh) auto; }
	.wcs.wcs-avec-point .wcs-point { grid-row: 2; padding: 12px 12px 16px; }
	.wcs.wcs-avec-point .wcs-panneau { display: none; }
	.wcs.wcs-avec-point.wcs-liste-devant .wcs-point { display: none; }
	.wcs.wcs-avec-point.wcs-liste-devant .wcs-panneau { display: flex; grid-row: 2; }
	.wcs.wcs-avec-point:fullscreen, .wcs.wcs-avec-point.wcs-plein-ecran { grid-template-rows: minmax(0, var(--wcs-carte-tiroir, 40%)) minmax(0, 1fr); }
	.wcs.wcs-avec-point:-webkit-full-screen { grid-template-rows: minmax(0, var(--wcs-carte-tiroir, 40%)) minmax(0, 1fr); }
}

/* Balises (vent en direct) et webcams des fiches. */
.wcs-balise, .wcs-webcam { background: none; border: 0; }
.wcs-balise svg, .wcs-webcam svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.wcs-popup .wcs-popup-vent { font-weight: 700; font-size: 14px; margin: 6px 0; }
/* Hauteur fixe : la bulle a sa taille dès l'ouverture, avant l'image, et se cadre bien dans la carte. */
.wcs-popup-webcam img { height: 170px; background: #e9eee9; }
.wcs-popup .wcs-popup-fiches { flex-direction: column; align-items: flex-start; gap: 2px; }

/* Carnet de vol (includes/carnet.php, carnet.js) : liste des vols, détail d'un vol. Couleurs du thème (texte courant). */
.wcs-carnet { display: grid; gap: 10px; }
/* Couleurs des boutons wcs-r (fiche.css) : définies sur .wcs-r, absentes du carnet sans ces deux variables. */
.wcs-carnet { --wcs-fiche-accent: #c35327; --wcs-r-bord: color-mix(in srgb, currentColor 14%, transparent); }
.wcs-carnet-ia-bouton { min-height: 40px; cursor: pointer; font: inherit; font-weight: 600; }
.wcs-carnet-ia-bouton:disabled { opacity: 0.6; cursor: wait; }
.wcs-carnet-intro, .wcs-carnet-vide { margin: 0; opacity: 0.85; }
.wcs-carnet-liste { display: grid; gap: 6px; }
.wcs-carnet-vol { border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 10px; overflow: hidden; }
.wcs-carnet .wcs-carnet-ouvrir {
	display: grid; height: auto; min-height: 0; line-height: 1.4; grid-template-columns: 4.5em minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%;
	padding: 10px 12px; margin: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit;
	text-align: left; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.wcs-carnet .wcs-carnet-ouvrir:hover, .wcs-carnet .wcs-carnet-ouvrir[aria-expanded="true"] { background: color-mix(in srgb, currentColor 7%, transparent); color: inherit; }
.wcs-carnet-date { font-weight: 700; white-space: nowrap; }
.wcs-carnet-site { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcs-carnet-chiffres { font-size: 0.88em; opacity: 0.8; white-space: nowrap; }
.wcs-carnet-public { font-size: 0.78em; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, #2f9e44 25%, transparent); }
.wcs-carnet-detail { padding: 4px 12px 14px; display: grid; gap: 10px; }
.wcs-carnet-detail[hidden] { display: none; }
.wcs-carnet-attente { margin: 8px 0; opacity: 0.8; }
.wcs-carnet-reglages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.92em; }
.wcs-carnet .wcs-carnet-supprimer { font: inherit; font-size: 0.9em; padding: 4px 10px; border-radius: 8px; border: 1px solid #c92a2a; background: none; color: #c92a2a; cursor: pointer; text-transform: none; box-shadow: none; }
.wcs-carnet-entete { margin: 0; font-weight: 600; }
.wcs-carnet-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.wcs-carnet-tuiles > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); }
.wcs-carnet-tuiles span { font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }
.wcs-carnet-tuiles strong { font-size: 1.25em; }
.wcs-carnet-tuiles small { font-size: 0.78em; opacity: 0.75; }
.wcs-carnet-carte { height: 340px; border-radius: 10px; overflow: hidden; z-index: 0; }
.wcs-carnet-carte { position: relative; }
/* Écran tactile : rappel « deux doigts » quand un doigt glisse sur la carte du vol (carnet.js, gestes()). */
.wcs-carnet-aide {
	position: absolute; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(0, 0, 0, 0.45); color: #fff; font-weight: 600; text-align: center; pointer-events: none;
	opacity: 0; transition: opacity 0.25s ease;
}
.wcs-carnet-aide-visible { opacity: 1; }
.wcs-carnet .wcs-carnet-agrandir {
	position: absolute; top: 10px; right: 10px; z-index: 1000; margin: 0; padding: 5px 10px; border-radius: 6px;
	border: 2px solid rgba(0, 0, 0, 0.2); background: #fff; color: #222; font: inherit; font-size: 0.82em; font-weight: 600;
	cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.3;
}
.wcs-carnet .wcs-carnet-agrandir:hover { background: #f1f3f5; color: #222; }
.wcs-carnet-visu { display: grid; gap: 8px; }
/* Plein écran : carte en grand, profil toujours visible dessous et relié à la carte. */
.wcs-carnet-visu.wcs-carnet-plein {
	position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px;
}
.wcs-carnet-plein .wcs-carnet-carte { flex: 1 1 auto; height: auto; min-height: 0; }
.wcs-carnet-plein .wcs-carnet-legende, .wcs-carnet-plein .wcs-carnet-baro-boite { flex: none; }
html.wcs-carnet-plein-ouvert, html.wcs-carnet-plein-ouvert body { overflow: hidden; }
.wcs-carnet-baro { touch-action: pan-y; cursor: crosshair; }
.wcs-carnet-curseur line { stroke: currentColor; stroke-opacity: 0.6; stroke-width: 1; }
.wcs-carnet-curseur circle { fill: #111; stroke: #fff; stroke-width: 2; }
.wcs-carnet-curseur-fond { fill: rgba(17, 17, 17, 0.85); }
.wcs-carnet-curseur text { font-size: 11px; font-weight: 600; fill: #fff; }
.wcs-carnet-legende .wcs-carnet-legende-parcours { height: 0; border-top: 2px solid #d6336c; }
.wcs-carnet-legende .wcs-carnet-legende-pic { width: 10px; height: 10px; border-radius: 50%; background: #7048e8; }
.wcs-carnet-tuiles > .wcs-carnet-tuile-forte { background: color-mix(in srgb, var(--e-global-color-accent) 10%, transparent); }
.wcs-carnet-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 0.8em; opacity: 0.85; }
.wcs-carnet-legende span { display: inline-flex; align-items: center; gap: 5px; }
.wcs-carnet-legende i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.wcs-carnet-legende .wcs-carnet-legende-therm { width: 10px; height: 10px; border-radius: 50%; background: #c92a2a; }
.wcs-carnet-legende .wcs-carnet-legende-porte { width: 10px; height: 10px; border-radius: 50%; border: 3px solid #e0a800; background: none; box-sizing: border-box; }
.wcs-carnet-legende .wcs-carnet-legende-prevu { height: 0; border-top: 2px dashed #e8890c; }
.wcs-carnet-legende .wcs-carnet-legende-deco { height: 0; border-top: 1px solid currentColor; opacity: 0.6; }
.wcs-carnet-baro { display: block; width: 100%; height: auto; }
.wcs-carnet-grille { stroke: currentColor; stroke-opacity: 0.12; }
.wcs-carnet-axe { fill: currentColor; fill-opacity: 0.7; font-size: 11px; }
.wcs-carnet-prevu { stroke: #e8890c; stroke-width: 2; stroke-dasharray: 6 4; }
.wcs-carnet-prevu-long { fill: none; stroke-linejoin: round; }
.wcs-carnet-prevu-point { stroke: #d9480f; stroke-width: 3; stroke-linecap: round; }
.wcs-carnet-sol { fill: color-mix(in srgb, currentColor 22%, transparent); stroke: color-mix(in srgb, currentColor 35%, transparent); stroke-width: 1; }
.wcs-carnet-legende .wcs-carnet-legende-sol { height: 8px; background: color-mix(in srgb, currentColor 22%, transparent); }
.wcs-carnet-legende .wcs-carnet-legende-prevu-point { height: 3px; background: #d9480f; }
.wcs-carnet-deco { stroke: currentColor; stroke-opacity: 0.5; stroke-width: 1; }
/* Titres à la couleur du texte du carnet : le thème (BuddyX, --bx-color-h4) les met presque noirs, illisibles sur fond sombre. */
.wcs-carnet h4 { color: inherit; }
.wcs-carnet-debrief h4 { margin: 12px 0 4px; font-size: 1em; }
.wcs-carnet-debrief p, .wcs-carnet-debrief li { margin: 2px 0; line-height: 1.5; }
.wcs-carnet-debrief ul { margin: 2px 0; padding-left: 20px; }
.wcs-carnet-avertissement { margin-top: 10px !important; font-size: 0.82em; opacity: 0.75; }
/* Débrief : tableau prévu / vous, et la source de la prévision à côté du titre. */
.wcs-carnet-note { font-weight: 400; font-size: 0.8em; opacity: 0.7; }
/* Le thème (Youzify, Elementor) colore les tableaux (fond blanc, en-têtes en couleur, texte blanc) : le débrief garde
   les couleurs du bloc qui l'entoure, clair ou sombre. */
.wcs-carnet-tableau { width: 100%; border-collapse: collapse; margin: 4px 0 6px; font-size: 0.95em; background: transparent !important; border: 0 !important; }
.wcs-carnet-tableau th, .wcs-carnet-tableau td { padding: 5px 8px !important; background: transparent !important; color: inherit !important; border: 0 !important; border-bottom: 1px solid rgba(127, 127, 127, 0.3) !important; text-align: left; vertical-align: top; }
.wcs-carnet-tableau thead th { font-size: 0.78em !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.wcs-carnet-tableau tbody th { font-weight: 600; width: 38%; }
.wcs-carnet-tableau td:last-child { font-weight: 600; }
.wcs-carnet-tableau td small { display: block; font-size: 0.8em; font-weight: 400; opacity: 0.7; line-height: 1.35; }
.wcs-carnet-debrief ul { list-style: disc; }
.wcs-carnet-debrief li { margin-bottom: 4px !important; }
/* Heures du débrief, cliquables : elles amènent le profil et la carte à cet instant. */
.wcs-carnet-heure { display: inline; padding: 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px dotted currentColor !important; border-radius: 0 !important; background: none !important; color: inherit !important; font: inherit !important; cursor: pointer; }
.wcs-carnet-heure:hover, .wcs-carnet-heure:focus-visible { border-bottom-style: solid !important; }
/* « En bref » : le verdict du débrief, mis en avant. */
.wcs-carnet-bref { margin: 8px 0 4px !important; padding: 8px 12px; border-left: 3px solid currentColor; background: rgba(127, 127, 127, 0.1); border-radius: 0 6px 6px 0; }
.wcs-carnet-avis { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 0.92em; }
.wcs-carnet-avis button { padding: 3px 14px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.wcs-carnet-avis button[aria-pressed="true"] { outline: 2px solid currentColor; background: rgba(127, 127, 127, 0.25); font-weight: 700; }
/* « Pourquoi ? » sous un débrief jugé pas utile : caché tant que « Non » n'est pas choisi (display: grid l'emporterait sur hidden). */
.wcs-carnet-pourquoi { margin-top: 8px; }
.wcs-carnet-pourquoi[hidden] { display: none; }
.wcs-carnet-ressenti { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, currentColor 5%, transparent); }
.wcs-carnet-ressenti h4 { margin: 0; font-size: 1.05em; }
.wcs-carnet-prive { margin: 0; font-size: 0.85em; opacity: 0.8; }
.wcs-carnet-ressenti fieldset { border: 0; margin: 0; padding: 0; }
.wcs-carnet-ressenti legend { font-weight: 600; font-size: 0.92em; margin-bottom: 3px; }
.wcs-carnet-ressenti fieldset div { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wcs-carnet-ressenti label { display: inline-flex; align-items: center; gap: 5px; }
.wcs-carnet-ressenti > label { display: grid; gap: 4px; font-weight: 600; font-size: 0.92em; }
.wcs-carnet-ressenti textarea { width: 100%; font: inherit; }
.wcs-carnet-actions { display: flex; align-items: center; gap: 10px; }
.wcs-carnet-etat { font-size: 0.88em; opacity: 0.85; }
.wcs-carnet-reglages-etat { flex: 1 1 14em; color: #2f9e44; opacity: 1; }
.wcs-carnet-reglages-etat.wcs-carnet-etat-erreur { color: #c92a2a; }
@media (max-width: 600px) {
	.wcs-carnet .wcs-carnet-ouvrir { grid-template-columns: 1fr auto; }
	.wcs-carnet-site { grid-column: 1 / -1; grid-row: 2; }
	.wcs-carnet-chiffres { grid-column: 1 / -1; grid-row: 3; white-space: normal; }
	.wcs-carnet-carte { height: 280px; }
}
/* Carnet : onglets (mes vols, vols publics du club), années repliables, filtre par site. */
.wcs-carnet-onglets { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.wcs-carnet .wcs-carnet-onglets button {
	margin: 0 0 -1px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px 8px 0 0; background: none; color: inherit;
	font: inherit; font-weight: 600; cursor: pointer; opacity: 0.7; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.wcs-carnet .wcs-carnet-onglets button[aria-selected="true"] {
	opacity: 1; border-color: color-mix(in srgb, currentColor 18%, transparent); border-bottom-color: transparent;
	background: color-mix(in srgb, currentColor 5%, transparent);
}
.wcs-carnet-panneau { display: grid; gap: 10px; }
.wcs-carnet-panneau[hidden], .wcs-carnet-annee[hidden], .wcs-carnet-vol[hidden] { display: none; }
.wcs-carnet-filtre { display: flex; align-items: center; gap: 8px; font-size: 0.92em; font-weight: 600; }
.wcs-carnet .wcs-carnet-filtre select { display: inline-block !important; font: inherit; font-weight: 400; padding: 5px 8px; border-radius: 8px; max-width: 100%; }
/* Le profil (Youzify) fixe la largeur des menus : « Tous les sites (35) » était coupé après la parenthèse (2.139.5). */
.wcs-carnet .wcs-carnet-filtre select { width: auto !important; min-width: 15em !important; max-width: 100% !important; height: auto !important; padding-right: 2em !important; flex: 0 1 auto; }
.wcs-carnet-annee { display: grid; gap: 6px; }
.wcs-carnet-annee > summary {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; cursor: pointer; list-style: none;
	padding: 8px 4px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.wcs-carnet-annee > summary::-webkit-details-marker { display: none; }
.wcs-carnet-annee > summary::before { content: "▸"; opacity: 0.6; }
.wcs-carnet-annee[open] > summary::before { content: "▾"; }
.wcs-carnet-annee > summary strong { font-size: 1.15em; }
.wcs-carnet-annee > summary span { font-size: 0.88em; opacity: 0.8; }
.wcs-carnet-annee > .wcs-carnet-liste { margin-top: 6px; }
.wcs-carnet-site em { font-style: normal; opacity: 0.75; }
/* Vols publics sur la fiche d'un site (partie « retour »). */
.wcs-carnet-site-fiche { margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.wcs-carnet-titre { margin: 0; font-size: 1.1em; }

/* Thermiques du club : choix du vent sous le sélecteur de calques ; bulle d'une zone (titre dégagé de la croix). */
.wcs .wcs-thermiques-vent select { border: 0; padding: 4px 6px; font: inherit; font-size: 12px; background: #fff; color: #222; border-radius: 4px; }
.wcs-popup-thermiques strong { padding-right: 18px; }
/* Infobulle d'un thermique : texte sur deux lignes au plus large, renvoyé à la ligne au besoin (carte.js). */
.wcs .wcs-infobulle-thermique { white-space: normal; width: max-content; max-width: min(240px, 44vw); line-height: 1.35; }
.wcs-popup-thermiques small { color: #666; font-size: 11px; line-height: 1.35; }
.wcs .wcs-coin-centre { left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 140px); }
.wcs .wcs-coin-centre .leaflet-control { margin-top: 10px; }
.wcs .wcs-thermiques-vent { display: flex; flex-wrap: wrap; align-items: center; background: #fff; }
.wcs .wcs-thermiques-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 3px 8px; color: #444; font-size: 11px; line-height: 1.3; border-left: 1px solid #ddd; }
.wcs .wcs-thermiques-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
