/* Page détail d'un projet du portfolio */

.pd-section { padding: 60px 0 90px; background: #fff; }

/* En-tête */
.pd-header { max-width: 900px; margin-bottom: 30px; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pd-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: #f3f4f6; color: #374151;
}
.pd-badge.project-status { border-radius: 999px; }
.pd-badge-red { background: rgba(238, 49, 47, .1); color: var(--ag-red, #ee312f); }
.pd-title { font-size: 40px; line-height: 1.2; font-weight: 800; color: var(--ag-navy, #131E3C); margin: 0 0 12px; }
.pd-client { font-size: 16px; color: #6b7280; margin: 0; }
.pd-client i { color: var(--ag-red, #ee312f); margin: 0 4px 0 2px; }
.pd-actions { margin-top: 22px; }
.pd-actions .txt i { margin-right: 8px; }

/* Image principale */
.pd-cover { margin: 0 0 50px; border-radius: 20px; overflow: hidden; background: var(--ag-navy, #131E3C); box-shadow: 0 20px 50px rgba(19, 30, 60, .15); }
.pd-cover img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.pd-cover .no-image { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 280px; color: rgba(255, 255, 255, .6); font-size: 16px; }
.pd-cover .no-image i { font-size: 40px; }

/* Description + infos */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; }
.pd-description { min-width: 0; }
.pd-description > p:first-child { font-size: 18px; line-height: 1.8; color: #1f2937; }
.pd-description h4 {
	font-size: 21px; margin: 34px 0 14px; padding-left: 14px; border-left: 4px solid var(--ag-red, #ee312f); color: var(--ag-navy, #131E3C);
}
.pd-description li > p { margin: 0; }
.pd-description [style] { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }

.pd-info { position: sticky; top: 110px; padding: 26px; border-radius: 18px; background: #f6f7fb; }
.pd-info h4 { font-size: 18px; font-weight: 800; color: var(--ag-navy, #131E3C); margin-bottom: 14px; }
.pd-info dl { margin: 0; }
.pd-info dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #e5e7eb; }
.pd-info dl > div:last-child { border-bottom: 0; }
.pd-info dt { font-size: 13.5px; font-weight: 600; color: #6b7280; white-space: nowrap; }
.pd-info dt i { width: 16px; color: var(--ag-red, #ee312f); margin-right: 6px; text-align: center; }
.pd-info dd { margin: 0; font-size: 14px; font-weight: 700; color: #1f2937; text-align: right; word-break: break-word; }
.pd-info dd a { color: var(--ag-red, #ee312f); }
.pd-info h5 { font-size: 14px; font-weight: 800; color: var(--ag-navy, #131E3C); margin: 20px 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.pd-tech { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pd-tech li { padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid #e5e7eb; font-size: 12.5px; font-weight: 600; color: #374151; }
.pd-contact {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding: 14px 16px;
	border-radius: 12px; background: var(--ag-navy, #131E3C); color: #fff; font-weight: 700; font-size: 14.5px;
}
.pd-contact:hover { background: var(--ag-red, #ee312f); color: #fff; }

/* Galerie */
.pd-gallery { margin-top: 60px; }
.pd-gallery h3 { font-size: 26px; font-weight: 800; color: var(--ag-navy, #131E3C); margin-bottom: 22px; padding-left: 16px; border-left: 4px solid var(--ag-red, #ee312f); }
.pd-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pd-gallery-item { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #f6f7fb; aspect-ratio: 4 / 5; }
.pd-gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.pd-gallery-item:hover img { transform: scale(1.04); }
.pd-zoom {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(19, 30, 60, .45); color: #fff; font-size: 26px; opacity: 0; transition: opacity .3s ease;
}
.pd-gallery-item:hover .pd-zoom { opacity: 1; }

/* Responsive */
@media (max-width: 1199px) {
	.pd-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
}
@media (max-width: 991px) {
	.pd-section { padding: 40px 0 60px; }
	.pd-title { font-size: 32px; }
	.pd-layout { grid-template-columns: 1fr; }
	.pd-info { position: static; }
	.pd-cover { margin-bottom: 36px; }
}
@media (max-width: 575px) {
	.pd-title { font-size: 26px; }
	.pd-cover { border-radius: 14px; }
	.pd-description > p:first-child { font-size: 16.5px; }
	.pd-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.pd-info { padding: 20px; }
}
