/**
 * Bloc « Section — galerie réalisations » — grille photos 4 colonnes, CTA contour.
 * Dépend de .dgs-btn-outline (block-section-articles.css) ; redéclaré ici par sécurité.
 */

.dgs-real-section {
	position: relative;
	box-sizing: border-box;
	background: #ffffff;
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.dgs-real-section,
.dgs-real-section * {
	box-sizing: border-box;
}

.dgs-real-section__title {
	margin: 0 auto 1rem;
	max-width: 46rem;
	text-align: center;
	font-family: var(--dgs-font-titres, "futura-pt", sans-serif);
	font-size: var(--dgs-fs-section, clamp(1.5rem, 2.4vw, 2.1rem));
	font-weight: 600;
	line-height: 1.25;
	color: var(--dgs-c-titre, #1b2876);
}

.dgs-real-section__intro {
	margin: 0 auto clamp(2rem, 4vw, 3rem);
	max-width: 44rem;
	text-align: center;
	font-family: var(--dgs-font-texte, sans-serif);
	font-size: var(--dgs-fs-texte-sm, 15px);
	font-weight: 300;
	line-height: 1.6;
	color: var(--dgs-c-texte, #696969);
}

.dgs-real-section__intro p {
	margin: 0 0 0.4em;
	color: inherit;
}

.dgs-real-section__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

.dgs-real-section__item {
	margin: 0;
	aspect-ratio: 1 / 1; /* maquette : carrés collés */
	overflow: hidden;
	display: block;
}

a.dgs-real-section__item {
	cursor: pointer;
}

.dgs-real-section__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.dgs-real-section__item:hover .dgs-real-section__img {
	transform: scale(1.05);
}

.dgs-real-section__cta {
	margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
	text-align: center;
}

/* Bouton contour marine (partagé) */
.dgs-real-section .dgs-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: var(--ppe-navy, #1b2876);
	background: transparent;
	border: 1.5px solid var(--ppe-navy, #1b2876);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dgs-real-section .dgs-btn-outline::after {
	content: "›";
	margin-left: 12px;
	font-size: 1.2em;
	line-height: 1;
	transform: translateY(-1px);
}

.dgs-real-section .dgs-btn-outline:hover,
.dgs-real-section .dgs-btn-outline:focus {
	background: var(--ppe-navy, #1b2876);
	color: #ffffff;
}

@media print, screen and (max-width: 63.99875em) {
	.dgs-real-section__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media print, screen and (max-width: 39.99875em) {
	.dgs-real-section__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.dgs-real-section.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
