/* Page bagages cabine : layout élargi, tableau scrollable mobile (ligne 1 + colonne 1 figées),
   date de vérification et changelog du shortcode Tableau_Bagages_Cabine. @see #110 #113 */

.cabin-bag-updated {
	font-style: italic;
	font-size: 14px;
	color: #777;
	margin-bottom: 1em;
}

/* Breakout : seul le tableau déborde du layout narrow (800px), à sa largeur naturelle,
   centré sur le viewport — le reste de la page garde sa largeur de lecture. */
.cabin-bag-table-wrap {
	width: max-content;
	max-width: 96vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	overflow-x: auto;
	margin-bottom: 2em;
}

/* Tableau : border-spacing 0 en remplacement de l'attribut cellspacing (border-collapse
   volontairement séparé — collapse casse les bordures des cellules sticky) */
.cabin-bag-table-wrap table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.cabin-bag-table-wrap caption {
	caption-side: top;
	text-align: left;
	font-size: 13px;
	font-style: italic;
	color: #777;
	padding-bottom: 0.5em;
}

.cabin-bag-table-wrap th {
	padding: 10px 6px;
}

/* En-têtes avec explication : tooltip CSS (survol desktop, tap mobile via tabindex+focus).
   Le th est déjà positionné en sticky sur mobile — position: relative uniquement sur desktop,
   pour ne pas écraser le sticky (les deux servent de conteneur au ::after). */
.cabin-bag-table-wrap th[data-tooltip] {
	cursor: help;
	text-decoration: underline dotted;
	text-underline-offset: 3px;
}

@media (min-width: 800px) {
	.cabin-bag-table-wrap th[data-tooltip] {
		position: relative;
	}
}

.cabin-bag-table-wrap th[data-tooltip]::after {
	content: attr(data-tooltip);
	visibility: hidden;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	width: max-content;
	max-width: 220px;
	background: #222;
	color: #FFF;
	font-size: 12px;
	font-weight: normal;
	line-height: 1.4em;
	text-align: left;
	text-transform: none;
	white-space: normal;
	padding: 8px 10px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cabin-bag-table-wrap th[data-tooltip]:focus {
	outline: none;
}

.cabin-bag-table-wrap th[data-tooltip]:focus::after {
	visibility: visible;
}

@media (hover: hover) {
	.cabin-bag-table-wrap th[data-tooltip]:hover::after {
		visibility: visible;
	}
}

/* Fond opaque par défaut des cellules (requis pour les cellules sticky, neutre sinon) */
.cabin-bag-table-wrap td {
	background: #FFF;
}

.content .cabin-bag-table-wrap tr.odd td {
	background: #EEE;
}

/* Mobile : panneau scrollable dans les deux axes, ligne d'en-têtes et colonne compagnie figées */
@media (max-width: 799px) {
	.cabin-bag-table-wrap {
		max-height: 80vh;
		overflow: auto;
		margin-bottom: 2em;
	}

	.cabin-bag-table-wrap thead th {
		position: sticky;
		top: 0;
		z-index: 2;
	}

	.cabin-bag-table-wrap th:first-child,
	.cabin-bag-table-wrap td:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
	}

	.cabin-bag-table-wrap thead th:first-child {
		z-index: 3;
	}
}

.cabin-bag-changelog {
	margin-top: 2em;
	font-size: 14px;
	line-height: 1.5em;
}

.cabin-bag-changelog h2 {
	font-size: 18px;
	margin-bottom: 0.75em;
}

.cabin-bag-changelog > ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cabin-bag-changelog > ul > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cabin-bag-changelog > ul > li > strong {
	display: block;
	margin-bottom: 0.5em;
}

.cabin-bag-changelog > ul > li > ul {
	list-style: disc;
	padding-left: 1.25em;
	margin: 0;
}

.cabin-bag-changelog > ul > li > ul > li {
	font-size: 13px;
	line-height: 1.5em;
	margin-bottom: 0.25em;
	list-style: disc;
}
