/*!
 * IDD Entreprise — frontend
 * Styles des shortcodes utilisés dans les pages légales (identity, host, dpo, mediation, contact, socials, legal-links).
 */

.idd-entreprise-identity,
.idd-entreprise-host,
.idd-entreprise-dpo,
.idd-entreprise-mediator,
.idd-entreprise-contact ul,
.idd-entreprise-legal-links {
	list-style: none;
	padding: 0;
	margin: 1em 0;
	background: var(--idd-color-bg-alt, #f8fafc);
	border: 1px solid var(--idd-color-border, #e2e8f0);
	border-left: 4px solid var(--idd-color-primary, #ef4444);
	border-radius: 10px;
	overflow: hidden;
}

.idd-entreprise-identity > li,
.idd-entreprise-host > li,
.idd-entreprise-dpo > li,
.idd-entreprise-mediator > li,
.idd-entreprise-contact ul > li,
.idd-entreprise-legal-links > li {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 12px 18px;
	margin: 0;
	border-bottom: 1px solid var(--idd-color-border, #e5e7eb);
	font-size: 15px;
	line-height: 1.5;
	color: var(--idd-color-bg-dark-alt, #1e293b);
}

.idd-entreprise-identity > li:last-child,
.idd-entreprise-host > li:last-child,
.idd-entreprise-dpo > li:last-child,
.idd-entreprise-mediator > li:last-child,
.idd-entreprise-contact ul > li:last-child,
.idd-entreprise-legal-links > li:last-child {
	border-bottom: 0;
}

.idd-entreprise-identity strong,
.idd-entreprise-host strong,
.idd-entreprise-dpo strong,
.idd-entreprise-mediator strong {
	color: var(--idd-color-text-muted, #475569);
	font-weight: 600;
	min-width: 180px;
	flex-shrink: 0;
}

.idd-entreprise-host { border-left-color: var(--idd-color-info, #0ea5e9); }
.idd-entreprise-dpo { border-left-color: var(--idd-color-success, #16a34a); }
.idd-entreprise-mediator { border-left-color: var(--idd-color-warning, #f59e0b); }
.idd-entreprise-contact ul { border-left-color: var(--idd-color-info, #6366f1); }
.idd-entreprise-legal-links { border-left-color: var(--idd-color-accent, #8b5cf6); }

.idd-entreprise-identity a,
.idd-entreprise-host a,
.idd-entreprise-dpo a,
.idd-entreprise-mediator a,
.idd-entreprise-contact a,
.idd-entreprise-legal-links a {
	color: var(--idd-color-primary, #ef4444);
	text-decoration: none;
	font-weight: 600;
}
.idd-entreprise-identity a:hover,
.idd-entreprise-host a:hover,
.idd-entreprise-dpo a:hover,
.idd-entreprise-mediator a:hover,
.idd-entreprise-contact a:hover,
.idd-entreprise-legal-links a:hover {
	text-decoration: underline;
}

.idd-entreprise-missing {
	color: #b91c1c;
	background: #fee2e2;
	padding: 1px 8px;
	border-radius: 4px;
	font-size: 90%;
	font-style: normal;
}

/* Réseaux sociaux : ligne de pills */
.idd-entreprise-socials {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 1em 0;
}
.idd-entreprise-socials li {
	margin: 0;
}
.idd-entreprise-socials a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--idd-color-bg-dark, #0f172a);
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: transform .15s ease, background .15s ease;
}
.idd-entreprise-socials a:hover {
	transform: translateY(-2px);
	background: var(--idd-color-primary, #ef4444);
}

.idd-entreprise-socials__facebook a:hover  { background: #1877f2; }
.idd-entreprise-socials__instagram a:hover { background: #e1306c; }
.idd-entreprise-socials__twitter a:hover   { background: #000; }
.idd-entreprise-socials__linkedin a:hover  { background: #0a66c2; }
.idd-entreprise-socials__youtube a:hover   { background: #ff0000; }
.idd-entreprise-socials__tiktok a:hover    { background: #000; }
.idd-entreprise-socials__discord a:hover   { background: #5865f2; }
.idd-entreprise-socials__twitch a:hover    { background: #9146ff; }
.idd-entreprise-socials__threads a:hover   { background: #000; }

/* Responsive : empile labels en colonne sous mobile */
@media (max-width: 640px) {
	.idd-entreprise-identity > li,
	.idd-entreprise-host > li,
	.idd-entreprise-dpo > li,
	.idd-entreprise-mediator > li,
	.idd-entreprise-contact ul > li {
		flex-direction: column;
		gap: 4px;
	}
	.idd-entreprise-identity strong,
	.idd-entreprise-host strong,
	.idd-entreprise-dpo strong,
	.idd-entreprise-mediator strong {
		min-width: 0;
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: .04em;
	}
}
