/* Équanimité RGPD – couleurs du site */
:root {
	--eq-primary: #D24091;
	--eq-primary-dark: #b0306f;
	--eq-accent: #0E688B;
	--eq-accent-light: #e8f4f8;
	--eq-text: #24424f;
	--eq-bg: #ffffff;
	--eq-radius: 14px;
	--eq-font: "Tenor Sans", "Kavivanar", Georgia, serif;
}

.eq-banner, .eq-modal, .eq-blocked { font-family: var(--eq-font); color: var(--eq-text); line-height: 1.5; box-sizing: border-box; }
.eq-banner *, .eq-modal *, .eq-blocked * { box-sizing: border-box; }

/* Bandeau */
.eq-banner {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999999;
	max-width: 1080px; margin: 0 auto;
	background: var(--eq-bg); border-radius: var(--eq-radius);
	box-shadow: 0 10px 40px rgba(14, 104, 139, .22);
	border-top: 4px solid var(--eq-primary);
	opacity: 0; transform: translateY(20px); transition: opacity .3s ease, transform .3s ease;
}
.eq-banner.is-visible { opacity: 1; transform: none; }
.eq-banner[hidden] { display: none; }
.eq-banner__inner { display: flex; gap: 24px; align-items: center; padding: 20px 24px; }
.eq-banner__text { flex: 1 1 auto; font-size: 14px; }
.eq-banner__text p { margin: 0; }
.eq-banner__title { font-size: 17px; color: var(--eq-accent); margin-bottom: 4px !important; font-weight: 600; }
.eq-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }

/* Boutons (Accepter et Refuser de même poids visuel) */
.eq-btn {
	font-family: var(--eq-font); font-size: 14px; line-height: 1.2; cursor: pointer;
	padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
	transition: background .2s, color .2s, border-color .2s; white-space: nowrap; margin: 0;
	text-transform: none; letter-spacing: 0; box-shadow: none;
}
.eq-btn--primary { background: var(--eq-primary); color: #fff; border-color: var(--eq-primary); }
.eq-btn--primary:hover, .eq-btn--primary:focus-visible { background: var(--eq-primary-dark); border-color: var(--eq-primary-dark); color: #fff; }
.eq-btn--secondary { background: var(--eq-accent); color: #fff; border-color: var(--eq-accent); }
.eq-btn--secondary:hover, .eq-btn--secondary:focus-visible { background: #0b5370; border-color: #0b5370; color: #fff; }
.eq-btn--ghost { background: transparent; color: var(--eq-accent); border-color: var(--eq-accent); }
.eq-btn--ghost:hover, .eq-btn--ghost:focus-visible { background: var(--eq-accent-light); color: var(--eq-accent); }
.eq-btn:focus-visible, .eq-modal__close:focus-visible, .eq-switch input:focus-visible + .eq-switch__ui { outline: 3px solid #00CDD9; outline-offset: 2px; }
.eq-link { color: var(--eq-primary); text-decoration: underline; }

/* Modale */
.eq-modal { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.eq-modal[hidden] { display: none; }
.eq-modal__overlay { position: absolute; inset: 0; background: rgba(14, 104, 139, .45); }
.eq-modal__box {
	position: relative; background: var(--eq-bg); border-radius: var(--eq-radius);
	width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto;
	padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); border-top: 4px solid var(--eq-primary);
}
.eq-modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--eq-accent); cursor: pointer; padding: 4px 8px; }
.eq-modal__title { font-size: 22px; color: var(--eq-accent); margin: 0 0 8px; font-family: var(--eq-font); }
.eq-modal__intro { font-size: 14px; margin: 0 0 16px; }
.eq-cat { border: 1px solid #d9e8ee; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.eq-cat__head { display: flex; align-items: center; gap: 12px; }
.eq-cat__label { font-weight: 600; color: var(--eq-accent); flex: 1; cursor: pointer; margin: 0; }
.eq-cat__always { font-size: 12px; color: var(--eq-primary); }
.eq-cat__desc { font-size: 13px; margin: 6px 0 0; }
.eq-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; }
html.eq-modal-open { overflow: hidden; }

/* Interrupteur */
.eq-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.eq-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.eq-switch__ui { position: absolute; inset: 0; background: #c5d3d9; border-radius: 999px; transition: background .2s; }
.eq-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.eq-switch input:checked + .eq-switch__ui { background: var(--eq-primary); }
.eq-switch input:checked + .eq-switch__ui::after { transform: translateX(20px); }
.eq-switch input:disabled + .eq-switch__ui { opacity: .6; }

/* Contenus bloqués */
.eq-blocked { background: var(--eq-accent-light); border: 1px dashed var(--eq-accent); border-radius: 10px; padding: 20px; text-align: center; margin-bottom: 10px; }
.eq-blocked p { margin: 0 0 10px; font-size: 14px; }

/* Politique cookies */
.eq-cookie-table-wrap { overflow-x: auto; }
.eq-cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 16px; }
.eq-cookie-table th, .eq-cookie-table td { border: 1px solid #d9e8ee; padding: 8px 10px; text-align: left; vertical-align: top; }
.eq-cookie-table th { background: var(--eq-accent-light); color: var(--eq-accent); }

@media (max-width: 782px) {
	.eq-banner { left: 10px; right: 10px; bottom: 10px; }
	.eq-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
	.eq-banner__actions { justify-content: stretch; }
	.eq-banner__actions .eq-btn { flex: 1 1 100%; }
	.eq-modal__box { padding: 22px 18px; }
	.eq-modal__actions .eq-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .eq-banner { transition: none; } }
