/* =====================================================================
   saai-header.css – navigation du site (fichier autonome)
   ---------------------------------------------------------------------
   1. Réglages communs (couleurs, hauteur du header, ancres)
   2. Ligne du haut (ordinateur)
   3. Header principal (fixé en haut de l'écran)
   4. Sélecteur de langue
   5. Bouton Menu et panneau (téléphone, tablette)
   6. Sous-menus : Transit Temporaire, espace client
   7. Fil d'Ariane clair (remplace l'ancien bandeau bleu)
   Aucune dépendance à Bootstrap ni à Porto. Pas de « gap » dans les
   flex (anciens iPad) : les espacements sont faits avec des marges.
   ===================================================================== */

/* ---------- 1. Réglages communs ---------- */

:root {
	--saai-header-h: 64px;
}

@media (min-width: 1024px) {
	:root {
		--saai-header-h: 84px;
	}
}

/* Les ancres (#faq-…, #prog-…) s'arrêtent sous le header, sans JavaScript */
html {
	scroll-padding-top: calc(var(--saai-header-h) + 16px);
}

/* L'ancien réglage fixe de la FAQ (98 px) n'est plus utile */
.faqPage-item {
	scroll-margin-top: 0;
}

.saai-topbar,
.saai-header,
.saai-subnav {
	font-family: "Open Sans", Arial, sans-serif;
	color: #14212B;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

.saai-topbar *,
.saai-header *,
.saai-subnav * {
	box-sizing: border-box;
}

.saai-topbar ul,
.saai-header ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.saai-topbar li,
.saai-header li {
	margin: 0;
	padding: 0;
	line-height: inherit;
}

.saai-topbar a,
.saai-header a,
.saai-subnav a {
	text-decoration: none;
}

.saai-topbar button,
.saai-header button {
	margin: 0;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* Contour visible au clavier (le thème le supprime pour tous les liens) */
.saai-topbar a:focus-visible,
.saai-topbar button:focus-visible,
.saai-header a:focus-visible,
.saai-header button:focus-visible,
.saai-subnav a:focus-visible {
	outline: 3px solid #0078CC !important;
	outline-offset: 2px;
}

.saai-ico {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.saai-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.saai-wrap {
	width: 100%;
	max-width: 1200px; /* contenu aligné sur celui des pages (1140 px) */
	margin: 0 auto;
	padding: 0 15px;
}

@media (min-width: 1024px) {
	.saai-wrap {
		padding: 0 30px;
	}
}

/* Pastille « client connecté » */
.saai-compte {
	position: relative;
	display: inline-flex;
}

.saai-compte__point {
	position: absolute;
	right: -3px;
	bottom: -2px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #1E8E3E;
	box-shadow: 0 0 0 2px #FFFFFF;
}

/* ---------- 2. Ligne du haut (ordinateur) ---------- */

.saai-topbar {
	display: none;
	position: relative;
	z-index: 1031; /* sa liste des langues passe au-dessus de la ligne principale */
	background: #FFFFFF;
	border-bottom: 1px solid #EEF1F4;
}

@media (min-width: 1024px) {
	.saai-topbar {
		display: block;
	}
}

.saai-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 44px;
}

.saai-topbar__nav {
	display: flex;
	align-items: center;
	margin-right: -10px;
}

.saai-topbar__nav > * + * {
	margin-left: 6px;
}

.saai-topbar__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 10px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 400;
	color: #3E4B57;
}

.saai-topbar__link .saai-ico {
	width: 17px;
	height: 17px;
	margin-right: 8px;
}

.saai-topbar__link .saai-compte {
	margin-right: 8px;
}

.saai-topbar__link .saai-compte .saai-ico {
	margin-right: 0;
}

.saai-topbar__link:hover,
.saai-topbar__link:focus {
	background: #F2F5F8;
	color: #14212B;
}

.saai-topbar__link--tel {
	font-weight: 600;
}

.saai-topbar__link--tel .saai-ico {
	color: #0078CC;
}

.saai-topbar__link.is-current {
	font-weight: 600;
	color: #005A99;
}

/* ---------- 3. Header principal ---------- */

.saai-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1030; /* sous les fenêtres Bootstrap (1040 et plus) */
	background: #FFFFFF;
	border-bottom: 1px solid #E4E9EE;
}

.saai-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--saai-header-h);
}

/* Logo : dessin SVG intégré à la page (aucune police à charger) */
.saai-header__logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 10px 0; /* zone cliquable d'au moins 44 px de haut */
}

.saai-logo {
	display: block;
	width: auto;
	height: 25px; /* téléphone : même taille qu'avant */
}

@media (min-width: 1024px) {
	.saai-logo {
		height: 40px;
	}
}

/* Menu principal (ordinateur) */
.saai-header__nav {
	display: none;
}

@media (min-width: 1024px) {
	.saai-header__nav {
		display: flex;
		align-items: center;
	}
}

.saai-header__list {
	display: flex;
	align-items: center;
}

.saai-header__link {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 18px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #14212B;
	white-space: nowrap;
}

.saai-header .saai-header__link:hover,
.saai-header .saai-header__link:focus {
	background: #F2F5F8;
	color: #14212B;
}

.saai-header .saai-header__link.is-current {
	background: #EAF3FB;
	color: #005A99;
}

/* Bouton « Tarifs & Réservation » : la seule tache de bleu plein */
.saai-btn-tarifs {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	margin-left: 18px;
	padding: 0 22px;
	border-radius: 6px;
	background: #0078CC;
	font-size: 16px;
	font-weight: 600;
	color: #FFFFFF;
	white-space: nowrap;
}

.saai-header .saai-btn-tarifs,
.saai-header .saai-btn-tarifs:visited {
	color: #FFFFFF;
}

.saai-header .saai-btn-tarifs:hover,
.saai-header .saai-btn-tarifs:focus {
	background: #005A99;
	color: #FFFFFF;
}

/* Pendant la réservation : le bouton prend la pastille douce des rubriques
   en cours (« vous êtes ici ») et laisse la vedette aux boutons de la page */
.saai-header .saai-btn-tarifs.is-current {
	background: #EAF3FB;
	color: #005A99;
}

.saai-header .saai-btn-tarifs.is-current:hover,
.saai-header .saai-btn-tarifs.is-current:focus {
	background: #DCEBF8;
	color: #005A99;
}

/* Actions téléphone (langue + Menu) */
.saai-header__mobile {
	display: flex;
	align-items: center;
	margin-right: -4px;
}

@media (min-width: 1024px) {
	.saai-header__mobile {
		display: none;
	}
}

/* ---------- 4. Sélecteur de langue ---------- */

.saai-lang {
	position: relative;
}

.saai-lang__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	color: #3E4B57;
}

.saai-lang__btn .saai-ico {
	width: 18px;
	height: 18px;
}

.saai-lang__btn .saai-ico--chevron {
	width: 14px;
	height: 14px;
	stroke-width: 2;
	-webkit-transition: -webkit-transform 0.2s ease;
	transition: transform 0.2s ease;
}

.saai-lang__code {
	margin: 0 4px 0 6px;
}

.saai-lang__btn:hover {
	background: #F2F5F8;
	color: #14212B;
}

.saai-lang__btn[aria-expanded="true"] {
	background: #EEF3F8;
	color: #005A99;
}

.saai-lang__btn[aria-expanded="true"] .saai-ico--chevron {
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}

.saai-lang__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 20;
	min-width: 230px;
	padding: 6px;
	background: #FFFFFF;
	border: 1px solid #E4E9EE;
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(20, 33, 43, 0.14);
}

.saai-lang__list[hidden] {
	display: none !important;
}

.saai-lang__list li + li {
	margin-top: 2px;
}

.saai-lang__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	color: #14212B;
}

.saai-topbar .saai-lang__link:hover,
.saai-header .saai-lang__link:hover {
	background: #F2F5F8;
	color: #14212B;
}

.saai-topbar .saai-lang__link.is-current,
.saai-header .saai-lang__link.is-current {
	background: #F3F7FB;
	font-weight: 700;
	color: #005A99;
}

.saai-ico--coche {
	width: 18px;
	height: 18px;
	margin-left: 12px;
	stroke-width: 2.2;
}

/* Sur téléphone : plus grand, sans flèche, calé à droite sous la barre,
   et un voile sur la page */
.saai-header__mobile .saai-ico--chevron {
	display: none;
}

.saai-header__mobile .saai-lang {
	position: static;
}

.saai-header__mobile .saai-lang__list {
	top: calc(100% + 8px);
	right: 12px;
	min-width: 250px;
}

.saai-header__mobile .saai-lang__link {
	min-height: 56px;
	padding: 0 16px;
	font-size: 18px;
}

.saai-header__mobile .saai-lang.is-open::after {
	content: "";
	position: fixed;
	top: var(--saai-header-h);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	background: rgba(20, 33, 43, 0.38);
}

/* ---------- 5. Bouton Menu et panneau ---------- */

.saai-menu-btn {
	display: inline-flex;
	align-items: center;
	height: 44px;
	margin-left: 6px;
	padding: 0 14px;
	border: 1px solid #D5DCE3;
	border-radius: 8px;
	background: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	color: #14212B;
}

.saai-menu-btn .saai-ico {
	stroke-width: 2;
}

.saai-menu-btn .saai-ico--fermer {
	display: none;
}

.saai-menu-btn__libelle {
	margin-left: 8px;
}

/* L'icône et le libellé suivent l'état du bouton : ils ne peuvent pas se contredire */
.saai-menu-btn[aria-expanded="true"] {
	border-color: #0078CC;
	background: #EEF3F8;
	color: #005A99;
}

.saai-menu-btn[aria-expanded="true"] .saai-ico--menu {
	display: none;
}

.saai-menu-btn[aria-expanded="true"] .saai-ico--fermer {
	display: inline-block;
}

.saai-panneau {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	height: calc(100vh - var(--saai-header-h));
	height: calc(100dvh - var(--saai-header-h));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background: #FFFFFF;
	border-top: 1px solid #E4E9EE;
}

.saai-panneau[hidden] {
	display: none !important;
}

@media (min-width: 1024px) {
	.saai-panneau {
		display: none !important;
	}
}

/* Page figée derrière le panneau ouvert.
   Sur <html> SEULEMENT : bloquer aussi <body> en ferait une zone de
   défilement à part (le thème met déjà overflow-x sur <html>) ; le header
   ne restait plus collé en haut et la page remontait d'un coup. */
html.saai-menu-ouvert {
	overflow: hidden;
}

.saai-panneau__inner {
	max-width: 560px;
	margin: 0 auto;
	padding: 20px 20px 32px;
}

.saai-btn-tarifs--large {
	display: flex;
	width: 100%;
	height: 54px;
	margin: 0;
	border-radius: 8px;
	font-size: 17px;
}

.saai-panneau__list {
	margin-top: 12px !important;
}

.saai-panneau__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
	border-bottom: 1px solid #EEF1F4;
	font-size: 18px;
	font-weight: 600;
	color: #14212B;
}

.saai-panneau__link .saai-ico--droite {
	width: 18px;
	height: 18px;
	margin-left: 12px;
	stroke: #9AA5B1;
	stroke-width: 2;
}

.saai-header .saai-panneau__link:hover,
.saai-header .saai-panneau__link:focus {
	color: #005A99;
}

.saai-header .saai-panneau__link.is-current {
	font-weight: 700;
	color: #005A99;
}

.saai-panneau__link.is-current .saai-ico--droite {
	stroke: #0078CC;
}

.saai-panneau__list--second {
	margin-top: 18px !important;
}

.saai-panneau__link2 {
	display: flex;
	align-items: center;
	min-height: 52px;
	font-size: 17px;
	font-weight: 600;
	color: #3E4B57;
}

.saai-panneau__link2 > .saai-ico,
.saai-panneau__link2 > .saai-compte {
	margin-right: 12px;
}

.saai-header .saai-panneau__link2:hover,
.saai-header .saai-panneau__link2:focus,
.saai-header .saai-panneau__link2.is-current {
	color: #005A99;
}

.saai-btn-appel {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin-top: 16px;
	border: 1px solid #0078CC;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 600;
	color: #005A99;
}

.saai-header .saai-btn-appel,
.saai-header .saai-btn-appel:hover,
.saai-header .saai-btn-appel:focus {
	color: #005A99;
}

.saai-header .saai-btn-appel:hover {
	background: #EEF3F8;
}

.saai-btn-appel .saai-ico {
	margin-right: 10px;
}

/* ---------- 6. Sous-menus (Transit Temporaire, espace client) ---------- */

.saai-subnav {
	background: #F5F8FB;
	border-bottom: 1px solid #E4E9EE;
}

.saai-subnav__inner {
	display: flex;
	align-items: flex-end;
	max-width: 1200px;
	height: 56px;
	margin: 0 auto;
	padding: 0 30px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.saai-subnav__link {
	display: flex;
	align-items: center;
	height: 56px;
	padding-top: 3px;
	border-bottom: 3px solid transparent;
	font-size: 16px;
	font-weight: 600;
	color: #4A5763;
	white-space: nowrap;
}

.saai-subnav__link + .saai-subnav__link {
	margin-left: 40px;
}

.saai-subnav .saai-subnav__link:hover,
.saai-subnav .saai-subnav__link:focus {
	border-bottom-color: #C9D6E2;
	color: #14212B;
}

.saai-subnav .saai-subnav__link.is-current {
	border-bottom-color: #0078CC;
	font-weight: 700;
	color: #14212B;
}

.saai-subnav__court {
	display: none;
}

@media (max-width: 1023px) {
	.saai-subnav__inner {
		padding: 0 15px;
	}

	.saai-subnav__link {
		font-size: 15px;
	}

	.saai-subnav__link + .saai-subnav__link {
		margin-left: 28px;
	}
}

@media (max-width: 767px) {
	.saai-subnav__inner {
		height: 50px;
		padding: 0 8px;
	}

	.saai-subnav__link {
		flex: 1 1 auto;
		justify-content: center;
		height: 50px;
		font-size: 15px;
	}

	.saai-subnav__link + .saai-subnav__link {
		margin-left: 4px;
	}

	.saai-subnav__long {
		display: none;
	}

	.saai-subnav__court {
		display: inline;
	}
}

/* ---------- 7. Fil d'Ariane clair ---------- */

html .bandeau-ariane {
	background: #F5F8FB;
	border-bottom: 1px solid #E4E9EE;
}

html .bandeau-ariane-inner {
	max-width: 1200px;
	min-height: 44px;
	padding: 8px 30px;
	font-size: 15px;
	line-height: 1.5;
	color: #5A6672;
}

html .bandeau-ariane a,
html .bandeau-ariane a:visited {
	color: #005A99;
	text-decoration: underline;
}

html .bandeau-ariane a:hover,
html .bandeau-ariane a:focus {
	color: #14212B;
}

html .bandeau-ariane a:focus-visible {
	outline: 3px solid #0078CC !important;
	outline-offset: 2px;
}

html .bandeau-ariane li + li:before {
	color: #9AA5B1;
	opacity: 1;
}

html .bandeau-ariane li[aria-current="page"] {
	font-weight: 600;
	color: #14212B;
}

@media (max-width: 1023px) {
	html .bandeau-ariane-inner {
		padding: 8px 15px;
	}
}
