/* Communauté — maquette design/accueil.dc.html l. 363-393. ADR-020.
 * Rembourrages de la section, marges, polices, tailles et couleurs des titres et étiquettes, fond rayé et centrage de l'emplacement vidéo,
 * écart de 12 px de la colonne de droite : portés par les blocs.
 * Ici : largeur du titre, grilles, lignes de liens (et survol), cadre vidéo et façade YouTube, vignettes de la galerie. */

.sdl-community .sdl-community__title {
	max-width: 20ch;
	text-wrap: balance;
}

.sdl-community .sdl-community__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: var(--wp--preset--spacing--24);
	align-items: start;
}

.sdl-community .sdl-community__grid > * {
	min-width: 0;
}

/* ---------- Réseaux sociaux ---------- */

.sdl-community .sdl-community__link {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
	min-height: 72px;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--4);
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--text);
}

.sdl-community .sdl-community__link:hover,
.sdl-community .sdl-community__link:focus-visible {
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--white);
}

.sdl-community .sdl-community__name {
	min-width: 9.5em;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
}

.sdl-community .sdl-community__use {
	flex: 1;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--15);
}

.sdl-community .sdl-community__arrow {
	color: var(--wp--preset--color--accent-text);
	font-family: var(--wp--preset--font-family--mono);
}

/* ---------- Vidéo YouTube : emplacement rayé, façade chargée au clic ---------- */

.sdl-community .sdl-community__video {
	position: relative;
	aspect-ratio: 16 / 9;
	padding: 0; /* Annule le padding WP des groupes à fond. */
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line-card);
	border-radius: var(--wp--preset--border-radius--14);
}

.sdl-community .sdl-community__video-label {
	padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--10);
	border-radius: var(--wp--preset--border-radius--6);
}

.sdl-community .sdl-community__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	line-height: var(--wp--custom--line-height--body);
	cursor: pointer;
}

/* Cadre à overflow:hidden : contour de focus tracé à l'intérieur. */
.sdl-community .sdl-community__play:focus-visible {
	outline-offset: -4px;
}

.sdl-community .sdl-community__play:hover .sdl-community__video-label,
.sdl-community .sdl-community__play:focus-visible .sdl-community__video-label {
	color: var(--wp--preset--color--text);
}

.sdl-community .sdl-community__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Galerie « Sous notre ciel » ---------- */

.sdl-community .sdl-community__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--8);
}

.sdl-community .sdl-community-photo {
	position: relative;
	aspect-ratio: 1 / 1;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--10);
	background: var(--wp--preset--color--base-deep);
}

.sdl-community .sdl-community-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sdl-community .sdl-community-photo figcaption {
	position: absolute;
	bottom: 6px;
	left: 6px;
	margin: 0;
	padding: 3px 6px;
	border-radius: var(--wp--preset--border-radius--4);
	background: color-mix(in srgb, var(--wp--preset--color--base-deep) 72%, transparent);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--10-5);
	line-height: var(--wp--custom--line-height--body);
	text-align: left;
}
