/* Pages services enfants (template page-service-enfant.php).
   Identité Hermits : turquoise #3cdbc0, noir chaud #2d2a26, titres uppercase
   fluides, boutons pill — alignée sur les variables globales Divi (gcid-*). */

/* Variables globales custom de Divi : hors pipeline (footer global rendu par
   do_blocks dans le template PHP), Divi n'émet que les variables de base —
   on redéclare ici les customs du site pour que le CSS du layout les résolve.
   Valeurs relevées le 2026-07-12 ; à synchroniser si elles changent dans Divi. */
:root {
	--gcid-eb2faeca-7e3f-4fb4-9cc4-a5d3a0e908b8: #2d2a26;
	--gcid-93f99723-8946-484f-a4c1-71702cda1af8: #3cdbc0;
	--gcid-74fb2bca-9fe8-4504-8ce8-e53ec355d63d: #ffffff;
}

.hsvc {
	--hsvc-primary: var(--gcid-primary-color, #3cdbc0);
	--hsvc-dark: var(--gcid-secondary-color, #2d2a26);
	background: #fff;
	color: var(--hsvc-dark);
	font-family: var(--et_global_body_font, inherit);
	line-height: 1.7;
}

.hsvc-container {
	width: 80%;
	max-width: 1080px;
	margin: 0 auto;
}

.hsvc-narrow { max-width: 860px; }

.hsvc-section { padding: clamp(40px, 4vw, 72px) 0; }

/* Typographie */
.hsvc h1,
.hsvc h2,
.hsvc h3 {
	font-family: var(--et_global_heading_font, inherit);
	color: var(--hsvc-dark);
	text-transform: uppercase;
	line-height: 1.2;
	margin: 0 0 0.6em;
}

.hsvc h1 { font-size: clamp(33px, 3.6vw, 58px); }
.hsvc h2 { font-size: clamp(28px, 2.8vw, 45px); }
.hsvc h3 { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.3; }

.hsvc p, .hsvc ul, .hsvc ol { margin: 0 0 1em; }
.hsvc a { color: inherit; }
.hsvc .hsvc-intro { font-size: 18px; margin-bottom: 28px; }

/* Bouton pill (même dessin que le preset Divi du site) */
.hsvc-btn {
	display: inline-block;
	padding: 10px 28px;
	border: 2px solid var(--hsvc-dark);
	border-radius: 100px;
	font-family: var(--et_global_heading_font, inherit);
	font-size: 18px;
	font-weight: 600;
	color: var(--hsvc-dark);
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.hsvc-btn:hover {
	background: var(--hsvc-dark);
	color: #fff;
}

/* Fil d'Ariane + date de mise à jour */
.hsvc-breadcrumb {
	font-size: 14px;
	color: rgba(45, 42, 38, 0.65);
	margin-bottom: 18px;
}

.hsvc-updated {
	font-size: 13px;
	color: rgba(45, 42, 38, 0.6);
	margin-top: 24px;
}

/* Colonnes hero / problème */
.hsvc-cols {
	display: flex;
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
}

.hsvc-col-main { flex: 3; min-width: 0; }
.hsvc-col-side { flex: 2; min-width: 0; }

.hsvc-rounded, .hsvc-col-side img {
	border-radius: 10px;
	max-width: 100%;
	height: auto;
	display: block;
}

/* Livrables : fond turquoise, liste citable */
.hsvc-livrables { background: var(--hsvc-primary); }

.hsvc-livrables ul {
	columns: 2;
	column-gap: 48px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.hsvc-livrables li {
	break-inside: avoid;
	padding: 10px 0 10px 34px;
	position: relative;
	font-weight: 500;
}

.hsvc-livrables li::before {
	content: "¬";
	position: absolute;
	left: 0;
	font-family: var(--et_global_heading_font, inherit);
	font-weight: 700;
}

/* Méthode : timeline verticale numérotée */
.hsvc-etapes {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hsvc-etapes li {
	display: flex;
	gap: clamp(18px, 3vw, 40px);
	padding: 22px 0;
	border-bottom: 1px solid rgba(45, 42, 38, 0.12);
}

.hsvc-etapes li:last-child { border-bottom: none; }

.hsvc-etape-num {
	font-family: var(--et_global_heading_font, inherit);
	font-weight: 700;
	font-size: clamp(32px, 3vw, 48px);
	line-height: 1;
	color: var(--hsvc-primary);
	flex: 0 0 clamp(56px, 6vw, 90px);
}

.hsvc-etapes p { margin: 0; }

/* Grilles cartes (réalisations, pages sœurs) */
.hsvc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(20px, 2.5vw, 40px);
}

.hsvc-card-img { display: block; margin-bottom: 16px; }

.hsvc-card-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.hsvc-card h3 a { text-decoration: none; }
.hsvc-card h3 a:hover { color: var(--hsvc-primary); }
.hsvc-more { font-weight: 600; }

/* Budget : encart bordé citable (même dessin que l'encart CTA de la home) */
.hsvc-budget {
	border: 3px solid var(--hsvc-primary);
	border-radius: 10px;
	box-shadow: 6px 6px 0 var(--hsvc-dark);
	padding: clamp(24px, 4vw, 56px);
}

.hsvc-budget h2 { font-size: clamp(26px, 2.2vw, 36px); }
.hsvc-budget :last-child { margin-bottom: 0; }

/* FAQ */
.hsvc-faq-item { margin-bottom: 22px; }
.hsvc-faq-item h3 { text-transform: none; }
.hsvc-faq-item p { margin: 0; }

/* CTA final : fond turquoise */
.hsvc-cta {
	background: var(--hsvc-primary);
	text-align: center;
}

.hsvc-cta p {
	font-size: 18px;
	max-width: 640px;
	margin: 0 auto 24px;
}

/* Responsive */
@media (max-width: 980px) {
	.hsvc-container { width: 90%; }
	.hsvc-cols { flex-direction: column; }
	.hsvc-col-side { width: 100%; }
	.hsvc-livrables ul { columns: 1; }
}
