/*
 * BGFI Immobilier — styles issus des anciens attributs style="" (v2.10.0)
 * ---------------------------------------------------------------------------
 * Pourquoi ce fichier ?
 *   Une CSP stricte (sans 'unsafe-inline') bloque les attributs style="" :
 *   ils ne peuvent porter ni nonce ni hash. Les 191 attributs statiques des
 *   gabarits ont été convertis, À L'IDENTIQUE, en classes csp-s-xxxxxx
 *   (nom = empreinte des déclarations d'origine : même style => même classe).
 *
 * Fidélité du rendu — pourquoi « :is(#csp-s#csp-s#csp-s#csp-s, .classe) » ?
 *   Un attribut style="" l'emporte sur toute règle normale d'une feuille de
 *   style, perd face à une règle !important, et peut être remplacé par un
 *   script (el.style.display = 'none'). Une simple classe ne reproduit pas
 *   cela. Le sélecteur :is() prend la spécificité de son argument le plus fort
 *   (ici 4 identifiants fictifs, qui ne correspondent à aucun élément) : la
 *   règle bat donc les sélecteurs du thème, reste battue par les !important et
 *   par les styles posés en JS — exactement comme l'attribut d'origine.
 *
 * Ne pas renommer les classes : elles sont référencées dans les gabarits PHP.
 * Pour modifier un style, éditer la règle ici. Chargé en dernier. Front only.
 */

/* inc/dynamic-helpers.php, page-about.php, page-achievement-detail.php, page-achievements.php … */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-f3701f) {
	font-size: .65rem;
	opacity: .6;
}

/* archive-commitment.php, archive-project.php, archive-service.php, category.php … */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-13076d) {
	text-align: center;
}

/* page-acquisition-journey.php, page-control-offices.php, page-csr-commitment.php, page-projects-catalog.php … */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-687580) {
	text-align: center;
	max-width: 820px;
	margin: 0 auto;
}

/* page-certified-quality.php, page-csr-commitment.php, page-financing.php, page-invest-business.php … */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-d3a180) {
	margin-top: 36px;
}

/* inc/dynamic-helpers.php, page-achievement-detail.php, page-activity-detail.php, page-news-detail.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-010904) {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	margin: 48px 0 8px;
	padding: 20px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

/* page-control-offices.php, page-news.php, page-residences.php, page-villas.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-fcf402) {
	margin-top: 40px;
}

/* archive-project.php, page-achievements.php, page-documentation.php, taxonomy-project_cat.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-9ecbb4) {
	margin-top: 60px;
}

/* archive.php, index.php, page.php, search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-871b05) {
	padding: 160px 0 80px;
}

/* archive.php, page.php, search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-a13885) {
	color: var(--navy);
}

/* archive.php, index.php, search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-1ac0fd) {
	color: var(--navy);
	text-decoration: none;
}

/* archive.php, index.php, search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-cd3492) {
	color: var(--text-2);
}

/* archive.php, index.php, search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-0f873e) {
	margin-top: 48px;
}

/* single-commitment.php, single-project.php, single-service.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-f1d01a) {
	text-align: center;
	margin-top: 32px;
}

/* archive.php, index.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-6862c5) {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 32px;
	box-shadow: var(--shadow-sm);
}

/* front-page.php, page-accueil.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-958874) {
	color: var(--sage-light);
}

/* archive.php, index.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-348eb0) {
	color: var(--text-3);
	font-size: .9rem;
	margin-bottom: 16px;
}

/* archive-commitment.php, page-about.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-740210) {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* archive.php, index.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-817a22) {
	display: grid;
	gap: 32px;
}

/* archive-commitment.php, page-about.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-da5cd6) {
	flex: 1;
}

/* front-page.php, page-accueil.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-e634e6) {
	font-weight: 600;
}

/* page-certified-quality.php, page-csr-commitment.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-d22fc0) {
	grid-template-columns: 1fr 1fr;
	align-items: center;
}

/* archive.php, index.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-fa3e1c) {
	margin-bottom: 12px;
}

/* archive.php, search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-83aaf8) {
	margin-bottom: 40px;
}

/* front-page.php, page-accueil.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-4b015f) {
	margin-top: 32px;
}

/* page-online-form.php, page-request-form.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-9e9ac0) {
	max-width: 860px;
	margin: 38px auto 0;
}

/* front-page.php, page-accueil.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-f6b9bc) {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* front-page.php, page-accueil.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-b422ec) {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: #fff;
	border: 1px solid var(--border);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* front-page.php, page-accueil.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-ec1656) {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: #fff;
	border: 1px solid var(--border);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* front-page.php, page-accueil.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-c451fd) {
	position: relative;
}

/* page-residences.php, page-villas.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-904a2a) {
	text-align: center;
	color: var(--muted);
	font-size: .85rem;
	margin-top: 26px;
	font-style: italic;
}

/* front-page.php, page-accueil.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-1f2103) {
	text-align: center;
	margin-top: 48px;
}

/* page-online-form.php, page-request-form.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-1d0b9d) {
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

/* search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-0aaa22) {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 24px;
	box-shadow: var(--shadow-sm);
}

/* page-terms.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-aa70cb) {
	color: var(--navy);
	font-weight: 600;
}

/* page.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-f9d3cf) {
	color: var(--text-2);
	line-height: 1.8;
}

/* archive.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-268e94) {
	color: var(--text-3);
	margin-top: 8px;
}

/* page-contact.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-116006) {
	display: flex;
	gap: 14px;
	margin-top: 6px;
}

/* search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-bfbb22) {
	display: grid;
	gap: 24px;
}

/* page-about.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-a3c01a) {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 28px;
	align-items: stretch;
}

/* template-parts/lang-switcher.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-8cba01) {
	font-size: .65rem;
}

/* page-terms.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-7318b2) {
	font-style: italic;
	color: var(--text-3);
	margin-bottom: 30px;
}

/* footer.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-0a1525) {
	font-weight: bold;
}

/* page-about.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-e5204d) {
	grid-template-columns: .9fr 1.1fr;
}

/* page.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-4d06b8) {
	margin-bottom: 32px;
}

/* search.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-d51702) {
	margin-bottom: 8px;
}

/* page-about.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-deaec0) {
	margin-top: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* page-team.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-13f788) {
	margin-top: 40px;
	text-align: center;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

/* page-projects-catalog.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-e1d8a6) {
	margin-top: 44px;
}

/* inc/news.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-cb63e9) {
	margin-top: 56px;
}

/* page-projects-catalog.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-da2fcd) {
	margin: 0;
	color: var(--navy,#083868);
	font-weight: 600;
}

/* page-projects-catalog.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-fcd499) {
	margin: 8px 0 0;
	color: var(--muted,#5a6b7d);
	font-size: .92rem;
}

/* page-about.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-4dc610) {
	object-position: center top;
	height: 520px;
	width: 100%;
	object-fit: cover;
	display: block;
	border-radius: 14px;
}

/* page-control-offices.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-698d59) {
	text-align: center;
	color: var(--muted);
	font-size: .85rem;
	margin-top: 24px;
	font-style: italic;
}

/* page-projects-catalog.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-04e611) {
	text-align: center;
	margin-top: 40px;
	padding: 48px 24px;
	background: var(--cream,#f7f4ef);
	border-radius: 16px;
}

/* page-acquisition-journey.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-7ba92d) {
	text-align: center;
	margin-top: 44px;
}

/* page-services.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-8789cb) {
	text-align: center;
	margin: 26px 0 8px;
}

/* page-team.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-05b206) {
	width: 100%;
	max-width: 1200px;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 10px;
}

/* page-contact.php */
:is(#csp-s#csp-s#csp-s#csp-s, .csp-s-df8f87) {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--navy);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------------------------------------------------------------------------
 * Indicateur « Traduction en cours » (assets/js/translate.js).
 * Anciennement injecté via une balise <style> créée en JS et un innerHTML
 * portant style="" — deux formes bloquées par une CSP stricte.
 * ------------------------------------------------------------------------- */
@keyframes cs-spin {
	to { transform: rotate(360deg); }
}
.cs-translate-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
	animation: cs-spin .7s linear infinite;
}
