/**
 * Switch Grant Signature / Grant Properties (premium/inc/switch.php)
 * Maquette Figma « Grant Signature » : 208:2128 (header Properties), 168:86157 (header Signature, variantes White / Black)
 * Chargé sur tout le site : header Elementor de Properties + header PHP de Signature.
 */

.gp-switch {
	--gp-switch-gap: 1.25rem;         /* 20 : espace entre les deux logotypes */
	--gp-switch-height: .5rem;        /* 8 : hauteur commune des deux logotypes → capitales de même hauteur (≈ 7,8 px) */
	--gp-switch-duration: .3s;

	display: flex;
	flex-wrap: nowrap;
	gap: var(--gp-switch-gap);
	align-items: center;
	min-width: 0;
}

.gp-switch__link {
	display: block;
	flex-shrink: 0;
	line-height: 0;
	text-decoration: none;
	transition: color var(--gp-switch-duration) ease;
}

.gp-switch__link:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: .375rem;
}

.gp-switch__logo {
	display: block;
	width: auto; /* déduite du ratio : GRANT SIGNATURE ≈ 99 px, GRANT PROPERTIES ≈ 106 px */
	height: var(--gp-switch-height);
	overflow: visible; /* lettres au ras du cadre : pas de rognage à l'arrondi du pixel */
}

.gp-switch__logo--signature {
	aspect-ratio: 770 / 62;
}

.gp-switch__logo--properties {
	aspect-ratio: 731 / 55;
}

/* Nom lisible par les lecteurs d'écran (les logotypes sont décoratifs) */
.gp-switch__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}


/* ── Site Properties (barre du haut Elementor) : Signature gris, Properties rose ── */

.gp-switch--properties {
	min-height: 1.25rem; /* hauteur des liens de la barre (20 px) */
}

.gp-switch--properties .gp-switch__link--signature {
	color: #999;
}

.gp-switch--properties .gp-switch__link--signature:hover,
.gp-switch--properties .gp-switch__link--signature:focus-visible {
	color: #333;
}

.gp-switch--properties .gp-switch__link--properties {
	color: #e1005f;
}


/* ── Site Signature (header premium) : la marque active suit la couleur du header ──
   - sur la photo : blanc / blanc 50 %
   - fond clair (défilement, page À propos, menu mobile ouvert) : noir / sable */

.gp-switch--signature .gp-switch__link--signature {
	color: inherit;
}

.gp-switch--signature .gp-switch__link--properties {
	color: rgb(255 255 255 / .5);
}

.gp-header.is-scrolled .gp-switch__link--properties,
.gp-header.is-menu-open .gp-switch__link--properties,
.gp-premium--about .gp-switch__link--properties {
	color: rgb(0 0 0 / .5);
}

/* Survol : fuchsia Grant Properties, quel que soit le fond */
.gp-switch--signature .gp-switch__link--properties:hover,
.gp-switch--signature .gp-switch__link--properties:focus-visible {
	color: #e1005f;
}
