/* ==========================================================
   En-tête : harmonisation visuelle du top header et du menu principal
   (aucun changement de position : mêmes éléments, mêmes colonnes)
   Le top header et le menu de bureau ne s'affichent qu'à partir de 992px.
   ========================================================== */

@media (min-width: 992px) {

	/* ---------------- TOP HEADER ---------------- */

	/* Hauteur fixe = position du menu principal (#main-nav { top: 53px }) : plus de chevauchement */
	.top-header {
		height: 53px;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		display: flex;
		align-items: center;
		border-bottom: 1px solid rgba(0, 0, 0, .08);
		font-family: 'Cinzel', serif;
		font-size: 13px;
		letter-spacing: .03em;
		color: #000;
	}

	.top-header > .row {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		align-items: center;
	}

	/* Colonne gauche : adresse · téléphone · réseaux, tous centrés sur la même ligne */
	.top-header .col-md-5 {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		white-space: nowrap;
	}

	.top-header .info {
		display: inline-flex;
		align-items: center;
		padding: 0 !important;
		color: #000;
		line-height: 1;
	}

	.top-header .col-md-5 > .info + .info {
		margin-left: 14px;
		padding-left: 14px !important;
		border-left: 1px solid rgba(0, 0, 0, .2);
	}

	/* Icônes réseaux : même échelle que le texte, sans séparateur entre elles */
	.top-header .col-md-5 > a.info:has(img.social) {
		border-left: 0;
		padding-left: 0 !important;
		margin-left: 10px;
	}

	.top-header .col-md-5 > a.info:not(:has(img.social)) + a.info:has(img.social) {
		margin-left: 14px;
		padding-left: 14px !important;
		border-left: 1px solid rgba(0, 0, 0, .2);
	}

	.top-header .info .social {
		width: auto;
		height: 16px;
		max-width: none;
		transition: opacity .2s ease;
	}

	.top-header a.info:hover {
		color: #000;
	}

	.top-header a.info:hover .social {
		opacity: .6;
	}

	/* Colonne droite : À propos · Contact · bouton, alignés verticalement */
	.top-header .col-md-7 > .row {
		justify-content: flex-end !important;
		margin: 0;
	}

	.top-header .col-md-7 nav {
		width: auto;
		padding: 0;
	}

	.top-header ul.menu {
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
		gap: 4px;
		overflow: visible;
	}

	.top-header ul.menu li {
		float: none;
		display: block;
	}

	.top-header ul.menu li a {
		position: relative;
		padding: 6px 14px;
		font-size: 13px;
		line-height: 1.2;
		letter-spacing: .03em;
		color: #000;
		background: linear-gradient(currentColor, currentColor) no-repeat 50% calc(100% - 2px) / 0 1px;
		transition: background-size .25s ease, color .2s ease;
	}

	.top-header ul.menu li:not(.distributor) a:hover,
	.top-header ul.menu li.current-menu-item:not(.distributor) a {
		background-size: calc(100% - 28px) 1px;
	}

	/* Bouton « Réserver une chambre » : bordure plus fine, proportionnée au texte */
	.top-header #menu-item-611,
	.top-header #menu-item-507,
	.top-header li.distributor {
		margin-left: 14px;
		background: #fff;
		border: 2px solid #000;
		transition: background-color .2s ease;
	}

	.top-header #menu-item-611 a,
	.top-header #menu-item-507 a,
	.top-header li.distributor a {
		padding: 8px 20px;
		font-weight: 600;
		background: none;
	}

	.top-header #menu-item-611:hover,
	.top-header #menu-item-507:hover,
	.top-header li.distributor:hover {
		background: #000;
	}

	.top-header #menu-item-611:hover a,
	.top-header #menu-item-507:hover a,
	.top-header li.distributor:hover a {
		color: #fff;
	}

	/* ---------------- MENU PRINCIPAL ---------------- */

	#main-nav {
		border-bottom: 1px solid rgba(0, 0, 0, .06);
	}

	/* Les deux menus sur une seule ligne, à la même distance du logo */
	#navigation-principale ul.menu {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: clamp(14px, 1.6vw, 30px);
		margin: 0;
		padding: 0;
	}

	/* Même marge des deux côtés du logo */
	#header > .row > div:first-child #navigation-principale ul.menu {
		justify-content: flex-end;
		padding-right: clamp(16px, 2.5vw, 40px);
	}

	#header > .row > div:last-child #navigation-principale ul.menu {
		justify-content: flex-start;
		padding-left: clamp(16px, 2.5vw, 40px);
	}

	#navigation-principale ul.menu > li {
		display: block;
		padding: 0 !important;
		white-space: nowrap;
	}

	#navigation-principale ul.menu > li > a {
		display: inline-block;
		padding: 8px 0;
		font-size: clamp(13px, 1.02vw, 16px);
		font-weight: 600;
		letter-spacing: .02em;
		line-height: 1.2;
		color: #000;
		text-shadow: 0 0 8px rgba(255, 255, 255, .9);
		/* Soulignement animé */
		background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
		transition: background-size .3s ease;
	}

	#navigation-principale ul.menu > li > a:hover,
	#navigation-principale ul.menu > li > a:focus-visible,
	#navigation-principale ul.menu > li.current-menu-item > a,
	#navigation-principale ul.menu > li.current-menu-ancestor > a,
	#navigation-principale ul.menu > li.current-menu-parent > a {
		background-size: 100% 1px;
	}

	/* Le soulignement ne passe pas sous la flèche des sous-menus */
	#navigation-principale ul.menu > li.menu-item-has-children > a {
		background-size: 0 1px;
		background-position: 0 100%;
	}

	#navigation-principale ul.menu > li.menu-item-has-children > a:hover,
	#navigation-principale ul.menu > li.menu-item-has-children > a:focus-visible,
	#navigation-principale ul.menu > li.menu-item-has-children.current-menu-ancestor > a,
	#navigation-principale ul.menu > li.menu-item-has-children.current-menu-parent > a {
		background-size: calc(100% - 13px) 1px;
	}
}

/* Écrans moyens : on resserre pour que le menu de gauche reste sur une ligne */
@media (min-width: 992px) and (max-width: 1199px) {
	.top-header,
	.top-header ul.menu li a { font-size: 12px; }
	.top-header ul.menu li a { padding: 6px 10px; }
	.top-header .col-md-5 > .info + .info { margin-left: 10px; padding-left: 10px !important; }

	#navigation-principale ul.menu { gap: 16px; padding: 0; }
	#header > .row > div:first-child #navigation-principale ul.menu { padding-right: 16px; }
	#header > .row > div:last-child #navigation-principale ul.menu { padding-left: 16px; }
	#navigation-principale ul.menu > li > a { font-size: 13px; letter-spacing: 0; }
}
