/* Pages de service (/service/<slug>/) */

.sv-page { padding: 70px 0 100px; background: #fff; }
.sv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.sv-main { min-width: 0; }

/* Puces de services (téléphone et tablette uniquement) */
.sv-chips { display: none; gap: 8px; overflow-x: auto; margin: 0 -15px 30px; padding: 2px 15px 10px; scrollbar-width: none; }
.sv-chips::-webkit-scrollbar { display: none; }
.sv-chips a {
	flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ag-line, #e5e7eb);
	font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap; background: #fff;
}
.sv-chips a.active { background: var(--ag-navy, #131E3C); border-color: var(--ag-navy, #131E3C); color: #fff; }

/* Introduction */
.sv-intro { margin-bottom: 34px; }
.sv-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 20px;
	border-radius: 16px; background: var(--ag-red, #ee312f); color: #fff; font-size: 24px;
}
.sv-tagline { font-family: 'Montserrat', sans-serif; font-size: 24px !important; line-height: 1.45 !important; font-weight: 700; color: var(--ag-navy, #131E3C) !important; margin-bottom: 18px !important; }
.sv-intro p { font-size: 16px; line-height: 1.85; color: #4b5563; margin-bottom: 14px; }
.sv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.sv-link { font-weight: 700; color: var(--ag-red, #ee312f); }
.sv-link:hover { color: var(--ag-navy, #131E3C); }

.sv-image { margin: 0 0 20px; border-radius: 18px; overflow: hidden; background: #f6f7fb; }
.sv-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Blocs */
.sv-block { margin-top: 56px; scroll-margin-top: 110px; }
.sv-title {
	position: relative; font-size: 26px; font-weight: 800; color: var(--ag-navy, #131E3C);
	margin-bottom: 26px; padding-left: 16px; border-left: 4px solid var(--ag-red, #ee312f); line-height: 1.3;
}

/* Offres */
.sv-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sv-offer {
	padding: 26px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--ag-line, #e5e7eb);
	scroll-margin-top: 110px; transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.sv-offer:hover, .sv-offer:target { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(19, 30, 60, .1); border-color: rgba(238, 49, 47, .4); }
.sv-offer-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 14px;
	border-radius: 12px; background: rgba(238, 49, 47, .1); color: var(--ag-red, #ee312f); font-size: 20px;
}
.sv-offer h4 { font-size: 19px; font-weight: 700; color: #1f2937; margin-bottom: 8px; line-height: 1.35; }
.sv-offer p { font-size: 15px; line-height: 1.65; color: #6b7280; margin-bottom: 14px; }
.sv-offer ul { margin: 0; padding: 0; list-style: none; }
.sv-offer li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.55; color: #374151; }
.sv-offer li::before {
	content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 1px; font-size: 13px; color: var(--ag-red, #ee312f);
}

/* Méthode */
.sv-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sv-steps li { display: flex; gap: 16px; padding: 22px 20px; border-radius: 16px; background: #f6f7fb; }
.sv-steps b {
	flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--ag-navy, #131E3C); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.sv-steps h4 { font-size: 17px; font-weight: 700; color: #1f2937; margin: 6px 0 6px; }
.sv-steps p { font-size: 14.5px; line-height: 1.6; color: #6b7280; margin: 0; }

/* Technologies */
.sv-stack { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sv-stack li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--ag-line, #e5e7eb); font-size: 14px; font-weight: 600; color: #374151; }

/* Réalisations */
.sv-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sv-project {
	display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--ag-line, #e5e7eb);
	color: #1f2937; transition: transform .3s ease, box-shadow .3s ease;
}
.sv-project:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(19, 30, 60, .14); color: #1f2937; }
.sv-project-image { display: block; aspect-ratio: 16 / 10; background: var(--ag-navy, #131E3C); overflow: hidden; }
.sv-project-image img { width: 100%; height: 100%; object-fit: cover; }
.sv-project-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; flex: 1; }
.sv-project-body small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ag-red, #ee312f); }
.sv-project-body strong { font-size: 15.5px; line-height: 1.4; }
.sv-project-body em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ag-navy, #131E3C); }

/* FAQ */
.sv-faq details { border: 1px solid var(--ag-line, #e5e7eb); border-radius: 14px; margin-bottom: 12px; background: #fff; }
.sv-faq summary {
	position: relative; cursor: pointer; list-style: none; padding: 18px 52px 18px 20px;
	font-size: 16px; font-weight: 700; color: #1f2937; line-height: 1.45;
}
.sv-faq summary::-webkit-details-marker { display: none; }
.sv-faq summary::after {
	content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
	background: #f6f7fb; color: var(--ag-red, #ee312f); font-size: 18px; line-height: 26px; text-align: center;
}
.sv-faq details[open] summary::after { content: "−"; }
.sv-faq details p { padding: 0 20px 18px; margin: 0; font-size: 15px; line-height: 1.75; color: #4b5563; }

/* Appel à l'action */
.sv-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
	margin-top: 60px; padding: 34px 36px; border-radius: 20px; color: #fff;
	background: linear-gradient(135deg, var(--ag-navy, #131E3C) 0%, #1c2a52 100%);
}
.sv-cta h3 { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.sv-cta p { color: rgba(255, 255, 255, .78); margin: 0; font-size: 15px; line-height: 1.6; max-width: 460px; }
.sv-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sv-whatsapp { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 4px; border: 2px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 700; }
.sv-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* Barre latérale */
.sv-side-inner { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.sv-side-card { padding: 24px; border-radius: 18px; background: #f6f7fb; }
.sv-side-card h4 { font-size: 17px; font-weight: 800; color: var(--ag-navy, #131E3C); margin-bottom: 14px; }
.sv-side-list { margin: 0; padding: 0; list-style: none; }
.sv-side-list li a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
	font-size: 14.5px; font-weight: 600; color: #374151; transition: background .2s ease, color .2s ease;
}
.sv-side-list li a i { width: 18px; text-align: center; color: var(--ag-red, #ee312f); }
.sv-side-list li a:hover { background: #fff; color: var(--ag-navy, #131E3C); }
.sv-side-list li.active a { background: var(--ag-navy, #131E3C); color: #fff; }
.sv-side-list li.active a i { color: #fff; }
.sv-side-contact { background: linear-gradient(135deg, var(--ag-red, #ee312f), #c81e1c); color: #fff; }
.sv-side-contact h4 { color: #fff; }
.sv-side-contact p { color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.sv-side-contact a { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 14.5px; margin-top: 8px; word-break: break-word; }

/* ------------------------------------------------------ Responsive */
@media (max-width: 1199px) {
	.sv-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
	.sv-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.sv-page { padding: 40px 0 70px; }
	.sv-chips { display: flex; }
	.sv-layout { grid-template-columns: 1fr; }
	.sv-side .sv-side-card:first-child { display: none; }   /* remplacée par les puces */
	.sv-side-inner { position: static; }
}
@media (max-width: 767px) {
	.sv-tagline { font-size: 20px !important; }
	.sv-title { font-size: 22px; }
	.sv-block { margin-top: 44px; }
	.sv-offers, .sv-steps { grid-template-columns: 1fr; }
	.sv-projects { grid-template-columns: 1fr; }
	.sv-cta { padding: 28px 22px; }
	.sv-cta h3 { font-size: 21px; }
}
