/* Castel CT – Optimisation SEO & GEO
 * Charte : marine #1a1a6e, bleu #2B2BAA, texte #2a2a2a, fond #f5f4f0, Oswald / Source Sans 3. */

.ccsg-resume,
.ccsg-bloc,
.ccsg-chiffres,
.ccsg-expert {
	--ccsg-marine: #1a1a6e;
	--ccsg-bleu: #2b2baa;
	--ccsg-texte: #2a2a2a;
	--ccsg-filet: rgba(26, 26, 110, .14);
	--ccsg-fond: #fff;
	--ccsg-fond-alt: #f9f8f5;
}

/* En bref */
.ccsg-resume {
	margin: 1.75rem 0 2rem;
	padding: 1.25rem 1.5rem 1.1rem;
	background: var(--ccsg-fond);
	border-left: 4px solid var(--ccsg-bleu);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.ccsg-resume__titre {
	margin: 0 0 .5rem !important;
	font-family: "Oswald", sans-serif;
	font-size: .82rem !important;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ccsg-bleu);
}
.ccsg-resume__texte { margin: 0 0 .75rem !important; }
.ccsg-resume__points {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .4rem 1.5rem;
	font-size: .95em;
}
.ccsg-resume__points li {
	position: relative;
	margin: 0 !important;
	padding-left: 1.25rem;
}
.ccsg-resume__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: .55rem;
	height: 2px;
	background: var(--ccsg-bleu);
}

/* Chiffres clés */
.ccsg-chiffres {
	margin: 0 0 2.25rem !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--ccsg-filet);
	border: 1px solid var(--ccsg-filet);
}
.ccsg-chiffres li {
	margin: 0 !important;
	padding: 1rem 1.1rem;
	background: var(--ccsg-fond);
	display: flex;
	flex-direction: column;
	gap: .15rem;
}
.ccsg-chiffres__valeur {
	font-family: "Oswald", sans-serif;
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--ccsg-marine);
}
.ccsg-chiffres__libelle { font-size: .9rem; color: #5a5a5a; }

/* Sections */
.ccsg-bloc { margin: 2.5rem 0; }
.ccsg-bloc > h2 { scroll-margin-top: 100px; }
.ccsg-note {
	margin-top: .75rem !important;
	font-size: .92em;
	color: #555;
}

/* Tableaux */
.ccsg-table-defil {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1rem 0 0;
	border: 1px solid var(--ccsg-filet);
	background: var(--ccsg-fond);
}
.ccsg-table-defil:focus { outline: 2px solid var(--ccsg-bleu); outline-offset: 2px; }
.ccsg-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	margin: 0 !important;
	font-size: .95em;
	line-height: 1.5;
}
.ccsg-table th,
.ccsg-table td {
	padding: .75rem 1rem;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--ccsg-filet);
}
.ccsg-table thead th {
	background: var(--ccsg-marine);
	color: #fff;
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: .9em;
	letter-spacing: .03em;
	border-bottom: 0;
}
.ccsg-table tbody th {
	min-width: 8.5rem;
	font-weight: 600;
	color: var(--ccsg-marine);
}
.ccsg-table tbody tr:nth-child(even) { background: var(--ccsg-fond-alt); }
.ccsg-table tbody tr:last-child th,
.ccsg-table tbody tr:last-child td { border-bottom: 0; }
.ccsg-table a,
.ccsg-resume a,
.ccsg-liste a,
.ccsg-bloc p a {
	color: var(--ccsg-bleu);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ccsg-table--cle { min-width: 0; }
.ccsg-table--cle tbody th { width: 32%; }

/* Étapes */
.ccsg-etapes {
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	counter-reset: ccsg-etape;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 2rem;
}
.ccsg-etapes li {
	counter-increment: ccsg-etape;
	position: relative;
	margin: 0 !important;
	padding: .1rem 0 0 3rem;
	min-height: 2.25rem;
}
.ccsg-etapes li::before {
	content: counter(ccsg-etape);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.1rem;
	height: 2.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ccsg-marine);
	color: #fff;
	font-family: "Oswald", sans-serif;
	font-weight: 600;
}
.ccsg-etapes__titre {
	display: block;
	font-family: "Oswald", sans-serif;
	font-weight: 600;
	color: var(--ccsg-marine);
	margin-bottom: .15rem;
}

/* Listes */
.ccsg-liste {
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.ccsg-liste li {
	position: relative;
	margin: 0 0 .55rem !important;
	padding-left: 1.5rem;
}
.ccsg-liste li::before {
	content: "";
	position: absolute;
	left: .1rem;
	top: .55em;
	width: .5rem;
	height: .5rem;
	border: 2px solid var(--ccsg-bleu);
	border-radius: 50%;
}

/* Pastilles (zones d'intervention) */
.ccsg-pastilles {
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.ccsg-pastilles li { margin: 0 !important; }
.ccsg-pastilles a {
	display: inline-block;
	padding: .45rem .9rem;
	border: 1px solid var(--ccsg-filet);
	border-radius: 999px;
	background: var(--ccsg-fond);
	color: var(--ccsg-marine);
	font-size: .92rem;
	line-height: 1.3;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease;
}
.ccsg-pastilles a:hover,
.ccsg-pastilles a:focus { border-color: var(--ccsg-bleu); background: #eeeef8; }

/* À propos de cette page */
.ccsg-expert {
	margin: 2.5rem 0;
	padding: 1.1rem 1.4rem;
	border: 1px solid var(--ccsg-filet);
	background: var(--ccsg-fond);
	font-size: .95em;
}
.ccsg-expert p { margin: 0 0 .4rem !important; }
.ccsg-expert p:last-child { margin-bottom: 0 !important; }
.ccsg-expert__titre {
	font-family: "Oswald", sans-serif;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ccsg-bleu);
}
.ccsg-expert__date { color: #666; font-size: .92em; }

/* FAQ ajoutées : mêmes règles que les FAQ existantes du site (castelct-faq),
 * reprises ici pour un rendu identique même si leur feuille n'est pas chargée. */
.ccsg-faq.castelct-faq { margin: 2.5rem 0 0; }
.ccsg-faq .castelct-faq__titre { font-size: 1.35rem; margin: 0 0 1rem; }
.ccsg-faq .castelct-faq__item { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.ccsg-faq .castelct-faq__q {
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	padding: .95rem 2rem .95rem 0;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	color: inherit;
	list-style: none;
}
.ccsg-faq .castelct-faq__q::-webkit-details-marker { display: none; }
.ccsg-faq .castelct-faq__q::after {
	content: "+";
	position: absolute;
	right: .25rem;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 400;
	font-size: 1.35rem;
	line-height: 1;
}
.ccsg-faq .castelct-faq__item[open] .castelct-faq__q::after { content: "\2212"; }
.ccsg-faq .castelct-faq__a { padding: 0 0 1.1rem; margin: 0; opacity: .9; }
.ccsg-faq .castelct-faq__a a { color: #2b2baa; text-decoration: underline; }

@media (max-width: 760px) {
	.ccsg-resume { padding: 1rem 1.1rem; }
	.ccsg-resume__points,
	.ccsg-etapes { grid-template-columns: 1fr; }
	.ccsg-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ccsg-chiffres__valeur { font-size: 1.55rem; }
	.ccsg-table th,
	.ccsg-table td { padding: .6rem .75rem; }
	.ccsg-table--cle tbody th { width: 38%; min-width: 0; }

	/* Tableaux à plusieurs colonnes : une fiche par ligne. */
	.ccsg-table-defil { overflow: visible; }
	.ccsg-table:not(.ccsg-table--cle) { min-width: 0; }
	.ccsg-table:not(.ccsg-table--cle) thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.ccsg-table:not(.ccsg-table--cle) tr {
		display: block;
		padding: .85rem 1rem;
		border-bottom: 1px solid var(--ccsg-filet);
	}
	.ccsg-table:not(.ccsg-table--cle) tbody tr:last-child { border-bottom: 0; }
	.ccsg-table:not(.ccsg-table--cle) tbody th,
	.ccsg-table:not(.ccsg-table--cle) td {
		display: block;
		min-width: 0;
		padding: 0;
		border: 0;
	}
	.ccsg-table:not(.ccsg-table--cle) tbody th { font-size: 1.02em; }
	.ccsg-table:not(.ccsg-table--cle) td { margin-top: .45rem; }
	.ccsg-table:not(.ccsg-table--cle) td::before {
		content: attr(data-label);
		display: block;
		font-size: .74em;
		font-weight: 600;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: #6b6b8f;
	}
}

@media print {
	.ccsg-table-defil { overflow: visible; border: 0; }
	.ccsg-table { min-width: 0; }
}
