/*
 * Les chantiers (template-parts/chantiers.php), chargés sur l'accueil, À propos et Prestations.
 *
 * Section : le texte à gauche et le bouton « Demander un devis », à droite les trois temps du
 * devis sur un fil d'eau, puis les réalisations en mosaïque quand il y a des photos.
 * Bande : une ligne sous l'aperçu des familles de Prestations, le dessin, une phrase, le bouton.
 * Le bouton n'est jamais rouge : un devis n'est pas une réservation.
 */

/* ---------------------------------------------------------------- Section */

.chapitre-chantiers {
	padding-block: clamp(64px, 10vw, 128px);
	border-top: 1px solid var(--line);
	background: #08111c;
	scroll-margin-top: var(--entete);
}

.chantiers__grille {
	display: grid;
	gap: clamp(40px, 6vw, 72px);
}

@media (min-width: 960px) {
	.chantiers__grille {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		column-gap: clamp(40px, 6vw, 88px);
		align-items: center;
	}
}

.chantiers__titre {
	max-width: 16ch;
	margin-top: 22px;
	font-size: clamp(30px, 4vw, 46px);
}

.chantiers__intro {
	max-width: 46ch;
	margin-top: 20px;
	font-size: clamp(15px, 1.35vw, 16.5px);
	line-height: 1.7;
	color: var(--text-2);
}

.chantiers__actions { margin-top: clamp(24px, 3vw, 32px); }

@media (max-width: 480px) {
	.chantiers__actions .bouton { flex: 1 1 100%; }
}

/* Trois temps sur un fil d'eau vertical, comme la ligne de temps de Comment ça marche. */
.chantier-pas {
	margin: 0;
	padding: 0;
	list-style: none;
}

.chantier-pas li {
	position: relative;
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	column-gap: 20px;
	padding-bottom: 30px;
}

.chantier-pas li:last-child { padding-bottom: 0; }

.chantier-pas li:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 29.5px;
	top: 60px;
	bottom: 0;
	width: 1px;
	background: linear-gradient(180deg, rgba(111, 168, 220, 0.7), rgba(111, 168, 220, 0.15));
}

.chantier-pas__rond,
.chantier-bande__rond {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 30%, #11243b, var(--ink) 74%);
	color: var(--text-2);
}

.chantier-pas__rond { grid-row: span 2; }

.chantier-pas__rond .picto,
.chantier-bande__rond .picto { width: 52%; height: 52%; }

.chantier-pas b {
	padding-top: 8px;
	font-family: var(--display);
	font-size: clamp(17px, 1.6vw, 19px);
	font-weight: 400;
	line-height: 1.3;
}

.chantier-pas li > span:last-child {
	max-width: 40ch;
	margin-top: 6px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text-2);
}

/* Les réalisations : les photos posées dans le texte de la page, en mosaïque. */
.realisations {
	margin-top: clamp(56px, 8vw, 96px);
	padding-top: clamp(32px, 4vw, 44px);
	border-top: 1px solid var(--line);
}

.realisations__titre {
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 300;
}

.realisations__grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.realisations__grille img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-md);
}

/* ---------------------------------------------------------------- Bande */

/* Une ligne posée sur un filet d'eau : seul le bouton se clique, le reste ne bouge pas. */
.chantier-bande {
	position: relative;
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	gap: 16px 20px;
	align-items: center;
	margin-block: clamp(20px, 3vw, 32px);
	padding: clamp(20px, 2.6vw, 28px) clamp(18px, 2.6vw, 32px);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: linear-gradient(100deg, rgba(14, 28, 46, 0.85), rgba(8, 17, 28, 0.45));
	overflow: hidden;
}

.chantier-bande::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, var(--water-2), var(--water));
}

.chantier-bande__titre {
	font-family: var(--display);
	font-size: clamp(18px, 1.8vw, 21px);
	font-weight: 400;
	line-height: 1.3;
	color: var(--text);
}

.chantier-bande__phrase {
	max-width: 62ch;
	margin-top: 4px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text-2);
}

.chantier-bande__action { grid-column: 1 / -1; justify-self: start; }

@media (min-width: 760px) {
	.chantier-bande { grid-template-columns: 60px minmax(0, 1fr) auto; }
	.chantier-bande__action { grid-column: auto; }
}

@media (max-width: 480px) {
	.chantier-bande__action { justify-self: stretch; }
}
