/* Secure Expand v1.1 */

/* ── Wrapper ── */
.secure-expand-wrapper {
	margin-bottom: 1em;
}

/* ── Bouton déclencheur — stylisé comme un lien <a> ── */
.secure-expand-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	background: none;
	border: none;
	padding: 0;
	margin: 0.5em 0;
	cursor: pointer;
	font: inherit;
	color: #0073aa;           /* Couleur lien WP par défaut */
	text-decoration: underline;
	text-underline-offset: 2px;
}

.secure-expand-toggle:hover {
	color: #005177;
}

.secure-expand-toggle:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 3px;
	border-radius: 2px;
}

/* ── Icône flèche CSS ── */
.secure-expand-icon {
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);   /* ▼ fermé */
	transition: transform 0.2s ease;
	position: relative;
	top: -0.1em;
	flex-shrink: 0;
}

.secure-expand-toggle--open .secure-expand-icon {
	transform: rotate(-135deg); /* ▲ ouvert */
}

/* ── Contenu — le masquage réel est géré via style="display:none" inline ── */
/* Ces règles ajoutent uniquement l'animation */
.secure-expand-content {
	overflow: hidden;
	transition: opacity 0.25s ease;
}

.secure-expand-content[style*="display:none"] {
	opacity: 0;
}

.secure-expand-content[style*="display:block"] {
	opacity: 1;
}

/* Fallback no-JS */
.no-js .secure-expand-content {
	display: block !important;
}
.no-js .secure-expand-toggle {
	display: none;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	.secure-expand-content,
	.secure-expand-icon {
		transition: none;
	}
}
