/**
 * Prépa TPTS – Elementor Widgets
 * Shared styles for all custom widgets in this plugin.
 *
 * Scoped with a `.tpts-` prefix on every selector so nothing here can leak
 * into (or be overridden by) Newspaper theme styles or WPBakery shortcodes.
 * Colors/spacing/fonts below are only fallback defaults: every value that
 * matters is also exposed as an Elementor control on each widget, and any
 * control the editor changes is written inline, which naturally wins over
 * these rules.
 */

:root {
	--tpts-bleu: #1E2A5A;
	--tpts-rouge: #C0392B;
	--tpts-texte: #2E3440;
	--tpts-gris: #6B7280;
	--tpts-fond: #F4F6F9;
	--tpts-blanc: #FFFFFF;
	--tpts-font: 'Source Sans 3', Arial, sans-serif;
}

/* ---------- Full page wrapper (headings & paragraphs) ---------- */
.tpts-page {
	font-family: var(--tpts-font);
	color: var(--tpts-texte);
}
@media (max-width: 767px) {
	.tpts-page {
		padding-left: 20px;
		padding-right: 20px;
		box-sizing: border-box;
	}
}
.tpts-page > * {
	margin-top: 0;
	margin-bottom: 20px;
}
.tpts-page__h1 {
	color: var(--tpts-bleu);
	font-weight: 700;
	font-size: 2.1rem;
	line-height: 1.25;
	margin-bottom: 10px;
}
.tpts-page__h2 {
	color: var(--tpts-bleu);
	font-weight: 700;
	font-size: 1.42rem;
	line-height: 1.3;
	border-left: 4px solid var(--tpts-rouge);
	padding-left: 12px;
	margin-top: 34px;
}
.tpts-page__h3 {
	color: var(--tpts-bleu);
	font-weight: 700;
	font-size: 1.12rem;
	line-height: 1.35;
	margin-top: 26px;
}
.tpts-page__text {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--tpts-texte);
}
.tpts-page__text a { color: var(--tpts-bleu); }
.tpts-page__text a:hover { color: var(--tpts-rouge); }

/* ---------- Author box ---------- */
.tpts-author-box {
	background: var(--tpts-fond);
	border-radius: 6px;
	padding: 20px 24px;
	margin: 18px 0 26px;
	display: flex;
	gap: 18px;
	align-items: center;
	font-family: var(--tpts-font);
}
.tpts-author-box__photo {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	flex: none;
	overflow: hidden;
	background: repeating-linear-gradient(45deg, #E0E6EF 0 10px, #EAEFF5 10px 20px);
}
.tpts-author-box__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}
.tpts-author-box__text {
	margin: 0;
	font-size: .95rem;
	color: var(--tpts-texte);
	line-height: 1.7;
}
.tpts-author-box__text strong { color: var(--tpts-bleu); }
@media (max-width: 700px) {
	.tpts-author-box { flex-direction: column; text-align: center; }
}

/* ---------- Bullet list (› marker) ---------- */
.tpts-bullet-list {
	margin: 0 0 16px 4px;
	list-style: none;
	font-family: var(--tpts-font);
}
.tpts-bullet-list li {
	margin-bottom: 8px;
	padding-left: 24px;
	position: relative;
	color: var(--tpts-texte);
}
.tpts-bullet-list li::before {
	content: "\203A";
	position: absolute;
	left: 6px;
	color: var(--tpts-rouge);
	font-weight: 700;
}

/* ---------- FAQ accordion ---------- */
.tpts-faq details {
	border: 1px solid #E5E9F0;
	border-radius: 6px;
	margin-bottom: 10px;
	overflow: hidden;
	background: var(--tpts-blanc);
	font-family: var(--tpts-font);
}
.tpts-faq summary {
	cursor: pointer;
	padding: 15px 20px;
	font-weight: 700;
	color: var(--tpts-bleu);
	font-size: .98rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}
.tpts-faq summary::-webkit-details-marker { display: none; }
.tpts-faq summary::after {
	content: "+";
	color: var(--tpts-rouge);
	font-size: 1.3rem;
	font-weight: 700;
	flex: none;
}
.tpts-faq details[open] summary::after { content: "\2013"; }
.tpts-faq .tpts-faq__answer {
	padding: 0 20px 16px;
	font-size: .94rem;
	color: var(--tpts-texte);
}

/* ---------- CTA / pricing box ---------- */
.tpts-cta {
	background: var(--tpts-bleu);
	color: var(--tpts-blanc);
	border-radius: 8px;
	padding: 30px;
	margin: 36px 0;
	text-align: center;
	font-family: var(--tpts-font);
}
.tpts-cta__title {
	color: var(--tpts-blanc);
	font-weight: 700;
	font-size: 1.4rem;
	margin: 0 0 12px;
}
.tpts-cta__desc {
	color: #D4DAEB;
	max-width: 40em;
	margin: 0 auto 18px;
	font-size: .98rem;
}
.tpts-btn {
	display: inline-block;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	padding: 14px 30px;
	border-radius: 4px;
	background: var(--tpts-rouge);
	color: var(--tpts-blanc);
	transition: background .2s;
	border: none;
	cursor: pointer;
	font-family: var(--tpts-font);
}
.tpts-btn:hover, .tpts-btn:focus { background: #A22F23; color: var(--tpts-blanc); }

/* ---------- Callback / contact form ---------- */
.tpts-contact-box {
	background: var(--tpts-fond);
	border: 1px solid #E5E9F0;
	border-radius: 8px;
	padding: 26px;
	margin: 34px 0;
	font-family: var(--tpts-font);
}
.tpts-contact-box__intro { font-size: .98rem; color: var(--tpts-texte); margin: 0 0 14px; }
.tpts-champ { margin-bottom: 14px; }
.tpts-champ label {
	display: block;
	font-weight: 600;
	font-size: .88rem;
	margin-bottom: 5px;
	color: var(--tpts-texte);
}
.tpts-champ input,
.tpts-champ select {
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid #D5DBE6;
	border-radius: 5px;
	font-family: var(--tpts-font);
	font-size: .95rem;
	background: var(--tpts-blanc);
	color: var(--tpts-texte);
}
.tpts-champ input:focus,
.tpts-champ select:focus { outline: none; border-color: var(--tpts-bleu); }
.tpts-rgpd { font-size: .75rem; color: var(--tpts-gris); margin-top: 16px; line-height: 1.5; }
.tpts-form-feedback { font-size: .9rem; margin-top: 12px; display: none; }
.tpts-form-feedback.is-success { color: #1E7B34; display: block; }
.tpts-form-feedback.is-error { color: var(--tpts-rouge); display: block; }

/* ---------- Qualiopi badge ---------- */
.tpts-qualiopi {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--tpts-blanc);
	border: 1px solid #E5E9F0;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 26px 0;
	font-size: .92rem;
	font-family: var(--tpts-font);
	color: var(--tpts-texte);
}
.tpts-qualiopi__logo {
	width: 82px;
	height: 54px;
	flex: none;
	border-radius: 4px;
	overflow: hidden;
	background: repeating-linear-gradient(45deg, #E0E6EF 0 8px, #EAEFF5 8px 16px);
}
.tpts-qualiopi__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Chiffres clés ---------- */
.tpts-stats {
	font-family: var(--tpts-font);
	text-align: center;
	padding: 8px 0;
}
.tpts-stats__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	color: var(--tpts-rouge);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 30px;
}
.tpts-stats__title::before,
.tpts-stats__title::after {
	content: "";
	display: block;
	height: 1px;
	width: 60px;
	background-color: var(--tpts-rouge);
}
.tpts-stats__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}
.tpts-stats__item {
	width: 190px;
	height: 190px;
	border-radius: 50%;
	border: 1.5px solid var(--tpts-bleu);
	background-color: var(--tpts-fond);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.tpts-stats__number {
	color: var(--tpts-bleu);
	font-weight: 800;
	font-size: 2.1rem;
	line-height: 1;
}
.tpts-stats__unit {
	font-size: 1.1rem;
	font-weight: 700;
	vertical-align: super;
	margin-left: 2px;
}
.tpts-stats__desc {
	margin-top: 8px;
	font-size: 0.92rem;
	color: var(--tpts-texte);
	line-height: 1.5;
}
.tpts-stats__desc .tpts-stats__muted,
.tpts-stats__desc span {
	display: block;
	color: var(--tpts-gris);
	font-size: 0.78rem;
	margin-top: 2px;
}
@media (max-width: 700px) {
	.tpts-stats__item { width: 150px; height: 150px; }
}

/* ---------- Related articles ---------- */
.tpts-related {
	background: var(--tpts-fond);
	border-radius: 8px;
	padding: 22px 26px;
	margin: 30px 0;
	font-family: var(--tpts-font);
}
.tpts-related__title {
	border: none;
	padding: 0;
	margin: 0 0 12px;
	font-size: 1.15rem;
	color: var(--tpts-bleu);
	font-weight: 700;
}
.tpts-related ul { margin: 0; list-style: none; padding: 0; }
.tpts-related li { margin-bottom: 8px; padding-left: 24px; position: relative; }
.tpts-related li::before { content: "\203A"; position: absolute; left: 6px; color: var(--tpts-rouge); font-weight: 700; }
.tpts-related a { color: var(--tpts-bleu); text-decoration: none; }
.tpts-related a:hover { color: var(--tpts-rouge); }
