/* Estérel Cookie Consent — barre en bas, version compacte */
:root {
	--ecc-primary: #1a73e8;
}

#cc-main {
	--cc-btn-primary-bg: var(--ecc-primary);
	--cc-btn-primary-border-color: var(--ecc-primary);
	--cc-btn-primary-hover-bg: var(--ecc-primary);
	--cc-btn-primary-hover-border-color: var(--ecc-primary);
	--cc-toggle-on-bg: var(--ecc-primary);
	--cc-modal-border-radius: 8px;
}

/* Titre masqué visuellement (reste lu par les lecteurs d'écran) */
#cc-main .cm--bar .cm__title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Barre compacte */
#cc-main .cm--bar .cm__body {
	align-items: center;
}
#cc-main .cm--bar .cm__texts {
	padding: .6em 1em;
}
#cc-main .cm--bar .cm__desc {
	font-size: .85rem;
	line-height: 1.4;
	padding: 0;
}
#cc-main .cm--bar .cm__btn {
	padding: .55em 1.4em;
	font-size: .85rem;
	min-width: 0;
}

/* Mobile : la bibliothèque empile les boutons avec !important, on la contourne
   pour les mettre sur une seule ligne (retour à la ligne automatique si écran très étroit) */
@media screen and (max-width: 640px) {
	#cc-main .cm--bar .cm__desc {
		padding-top: .6em !important;
	}
	#cc-main .cm--bar .cm__btns {
		flex-direction: row !important;
		flex-wrap: wrap;
		gap: .4em;
		padding: .4em 1.1rem .7em !important;
		border-top: none !important;
		width: 100%;
		box-sizing: border-box;
	}
	#cc-main .cm--bar .cm__btn-group {
		flex-direction: row !important;
		flex: 2 1 0;
		gap: .4em;
		margin: 0 !important;
	}
	#cc-main .cm--bar .cm__btn-group + .cm__btn-group {
		flex: 1 1 0;
	}
	#cc-main .cm--bar .cm__btn {
		flex: 1 1 0 !important;
		margin: 0 !important;
		padding: .5em .4em;
		font-size: .8rem;
	}
}

/* Ordinateur : les 3 boutons sur une seule ligne, à droite du texte,
   alignés et espacés uniformément (on neutralise les marges de la bibliothèque) */
@media screen and (min-width: 641px) {
	#cc-main .cm--bar.cm--inline .cm__btns {
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
		gap: .375rem;
		max-width: none;
		flex-shrink: 0;
		padding: .6em 1em;
	}
	#cc-main .cm--bar.cm--inline .cm__btn-group {
		gap: .375rem;
		align-items: center;
		margin: 0;
	}
	#cc-main .cm--bar.cm--inline .cm__btn,
	#cc-main .cm--bar.cm--inline .cm__btn + .cm__btn,
	#cc-main .cm--bar.cm--inline .cm__btn-group + .cm__btn-group {
		margin: 0;
	}
}


/* Contenus tiers bloqués (iframes) : l'iframe reste cachée, un encart la remplace */
iframe[data-ecc-src] {
	display: none !important;
}

.ecc-placeholder {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 180px;
	padding: 1.25rem;
	background: #f3f4f6;
	border: 1px solid #d9dce1;
	border-radius: 8px;
	text-align: center;
	font-family: inherit;
	color: #2b2f36;
}

.ecc-placeholder__inner {
	max-width: 36rem;
}

.ecc-placeholder p {
	margin: 0 0 .75rem;
	font-size: .9rem;
	line-height: 1.45;
}

.ecc-placeholder__btn {
	display: inline-block;
	padding: .55rem 1rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--ecc-primary);
	border: 1px solid var(--ecc-primary);
	border-radius: 6px;
	cursor: pointer;
}

.ecc-placeholder__link {
	margin-left: .75rem;
	font-size: .9rem;
	color: inherit;
	text-decoration: underline;
}
