/* ==========================================================================
	Module: correctifs historiques intégrés à GA-One
	Description: règles de compatibilité conservées lors de l'autonomisation du thème
	Author: NordWood Themes & Gérald Aubard
	Author URI: http://w3sh.com/
	Version: 1.0
	License: GNU General Public License v2 or later
	License URI: http://www.gnu.org/licenses/gpl-2.0.html
	Tags: one-column, two-columns, left-sidebar, right-sidebar, flexible-header, custom-colors, custom-header, custom-background, full-width-template,custom-menu, editor-style, featured-images, featured-image-header, post-formats, sticky-post, theme-options, translation-ready
	Text Domain: ga-one
========================================================================== */

/* Custom styles
========================================================================== */

/* Le logo est transparent : le haut de page doit reprendre le fond du site. */
#site-header,
.top-bar.desktop,
.top-bar.mobile {
	background-color: #f4f4f4;
}

/* Conserve un fond blanc sur certaines archives et mises en page masonry. */
.search.masonry.full-width #site-header,
.archive.masonry.full-width #site-header,
.blog.masonry.full-width #site-header,
.home.masonry.full-width #site-header {
	background-color: #f4f4f4;
}

/* ==========================================================
   Logo contextuel w3sh
   Identité contextuelle héritée, désormais intégrée à GA-One.
   ========================================================== */

/* Le lien conserve une largeur stable pour empêcher le menu de bouger. */
.w3sh-contextual-logo {
	display: block;
	width: min(100%, 1024px);
	margin-inline: auto;
	line-height: 0;
}

/* Le logo s'affiche immédiatement lors d'un changement de rubrique. */
.w3sh-contextual-logo .custom-logo {
	display: block;
	width: 100%;
	height: auto;
	opacity: 1;
	transform: none;
	animation: none;
}

/* Dimension plus compacte dans la barre mobile. */
.w3sh-contextual-logo--mobile {
	width: min(72vw, 360px);
	margin-inline: 0;
}

/* Petit retour visuel au survol, sans déformer le logo. */
.w3sh-contextual-logo:hover .custom-logo {
	filter: brightness(1.03);
}
