/* Taraogo — styles publics. Tout est limité au conteneur .taraogo pour ne pas toucher au thème. */

.taraogo {
	--tg-green: #2F7D5B;
	--tg-green-dark: #1F5E43;
	--tg-green-soft: #E4EFE8;
	--tg-ink: #1F2A24;
	--tg-text: #3D4640;
	--tg-muted: #5A635D;
	--tg-cream: #F7F3EA;
	--tg-paper: #FFFDF8;
	--tg-line: #E3DCCB;
	--tg-line-strong: #CFC5AE;
	--tg-clay: #B5541B;
	--tg-clay-soft: #F3D9B8;
	--tg-error: #A3361A;
	--tg-radius: 16px;

	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--tg-text);
	line-height: 1.5;
	font-size: 16px;
	box-sizing: border-box;
}
.taraogo *, .taraogo *::before, .taraogo *::after { box-sizing: inherit; }
.taraogo [hidden] { display: none !important; }

.taraogo h1, .taraogo h2, .taraogo h3 { color: var(--tg-ink); margin: 0; line-height: 1.2; }
.taraogo p { margin: 0; }

/* ---------- Page ---------- */
.taraogo-page { background: var(--tg-cream); border-radius: 24px; overflow: hidden; }

.tg-hero {
	background: var(--tg-ink);
	color: #E9E3D5;
	padding: 56px 24px 48px;
	text-align: center;
}
.taraogo .tg-hero-title {
	font-family: 'Domine', Georgia, serif;
	font-size: clamp(44px, 9vw, 76px);
	font-weight: 700;
	color: var(--tg-cream);
	margin: 8px 0 16px;
}
.tg-hero-lead { font-size: clamp(18px, 2.6vw, 22px); max-width: 620px; margin: 0 auto !important; color: #E9E3D5; }
.tg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.taraogo .tg-hero .tg-btn-ghost { color: var(--tg-cream); border-color: #7D8A80; }
.taraogo .tg-hero .tg-btn-ghost:hover { background: #2A3830; color: var(--tg-cream); }
.tg-notice {
	display: inline-block;
	margin-top: 24px !important;
	font-size: 14px;
	background: #2A3830;
	color: var(--tg-clay-soft);
	padding: 8px 14px;
	border-radius: 999px;
}

.tg-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--tg-clay);
}
.tg-hero .tg-eyebrow { color: #E8924A; }

.tg-section { padding: 48px 24px; max-width: 960px; margin: 0 auto; }
.tg-section-alt { max-width: none; background: #F1EBDD; }
.tg-section-alt > * { max-width: 912px; margin-left: auto; margin-right: auto; }
.taraogo .tg-h2 { font-family: 'Domine', Georgia, serif; font-weight: 700; font-size: clamp(26px, 4vw, 36px); margin: 8px 0 12px; }
.tg-lead { color: var(--tg-muted); margin-bottom: 24px !important; max-width: 640px; }

.tg-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tg-step { background: var(--tg-paper); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 22px; margin: 0; }
.tg-step-n {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--tg-green); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.taraogo .tg-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.tg-step p { font-size: 15px; color: var(--tg-muted); }
.tg-example { margin-top: 24px !important; background: var(--tg-green-soft); color: var(--tg-green-dark); padding: 14px 18px; border-radius: 12px; }

/* ---------- Boutons ---------- */
.taraogo .tg-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 24px;
	border-radius: 14px; border: 2px solid transparent;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.taraogo .tg-btn-primary { background: var(--tg-green); color: #fff; }
.taraogo .tg-btn-primary:hover, .taraogo .tg-btn-primary:focus-visible { background: var(--tg-green-dark); color: #fff; }
.taraogo .tg-btn-primary:disabled { background: #8FAF9F; cursor: not-allowed; }
.taraogo .tg-btn-ghost { background: transparent; color: var(--tg-green-dark); border-color: var(--tg-line-strong); }
.taraogo .tg-btn-ghost:hover { background: var(--tg-green-soft); }
.taraogo .tg-btn-block { width: 100%; }
.taraogo .tg-btn:focus-visible, .taraogo .tg-chip:focus-visible, .taraogo .tg-input:focus-visible, .taraogo .tg-demo-tab:focus-visible {
	outline: 3px solid #E8924A; outline-offset: 2px;
}

/* ---------- Cartes / formulaire ---------- */
.tg-card { background: var(--tg-paper); border: 1px solid var(--tg-line); border-radius: 20px; padding: 24px; }

.tg-form { display: flex; flex-direction: column; gap: 18px; }
.tg-field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.tg-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.taraogo .tg-label { font-weight: 600; font-size: 15px; color: var(--tg-ink); padding: 0; }
.tg-optional { font-weight: 400; color: var(--tg-muted); }
.taraogo .tg-input {
	width: 100%; min-height: 50px; padding: 10px 14px;
	border: 1px solid var(--tg-line-strong); border-radius: 12px;
	background: #fff; color: var(--tg-ink);
	font: inherit; font-size: 16px; margin: 0;
	box-shadow: none;
}
.taraogo .tg-input:focus { border-color: var(--tg-green); outline: none; box-shadow: 0 0 0 3px rgba(47,125,91,.2); }
.taraogo .tg-input[aria-invalid="true"] { border-color: var(--tg-error); }
.tg-input-suffix { position: relative; }
.tg-input-suffix .tg-input { padding-right: 64px; }
.tg-input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--tg-muted); font-weight: 600; pointer-events: none; }
.tg-hint, .tg-small { font-size: 14px; color: var(--tg-muted); }
.tg-small { text-align: center; }
.tg-error { font-size: 14px; color: var(--tg-error); font-weight: 600; }
.tg-alert { background: #FBE6DE; color: #7A2410; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.tg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.taraogo .tg-chip {
	min-height: 44px; padding: 0 16px;
	border: 1px solid var(--tg-line-strong); border-radius: 999px;
	background: #fff; color: var(--tg-ink);
	font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.taraogo .tg-chip:hover { border-color: var(--tg-green); }
.taraogo .tg-chip.is-active { background: var(--tg-green); border-color: var(--tg-green); color: #fff; }

.tg-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tg-radio {
	display: flex; align-items: center; gap: 10px;
	min-height: 54px; padding: 0 14px;
	border: 1px solid var(--tg-line-strong); border-radius: 12px; background: #fff;
	cursor: pointer; font-weight: 600; color: var(--tg-ink);
}
.tg-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--tg-green); }
.tg-radio:has(input:checked) { border: 2px solid var(--tg-green); background: var(--tg-green-soft); }

.tg-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.tg-check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--tg-green); }

.tg-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; color: var(--tg-ink); font-size: 18px; }
.tg-success svg { color: var(--tg-green); background: var(--tg-green-soft); border-radius: 50%; padding: 14px; width: 72px; height: 72px; }
.tg-success:focus { outline: none; }

/* ---------- Simulateur ---------- */
.tg-sim { display: flex; flex-direction: column; gap: 14px; }
.tg-sim-value { font-family: 'Domine', Georgia, serif; font-size: 40px; font-weight: 700; color: var(--tg-ink); line-height: 1.1; }
.taraogo .tg-range { width: 100%; accent-color: var(--tg-green); height: 32px; margin: 0; }
.tg-sim-result { margin: 8px 0 0; display: flex; flex-direction: column; gap: 0; }
.tg-sim-result > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--tg-line); }
.tg-sim-result dt { color: var(--tg-text); }
.tg-sim-result dd { margin: 0; font-weight: 700; color: var(--tg-ink); white-space: nowrap; }
.tg-sim-net dt { font-weight: 700; color: var(--tg-ink); }
.tg-sim-net dd { color: var(--tg-green); font-size: 22px; }

/* ---------- Démo téléphone ---------- */
.tg-demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tg-demo-tabs { display: inline-flex; background: #ECE5D6; border-radius: 999px; padding: 4px; gap: 4px; }
.taraogo .tg-demo-tab {
	min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
	background: transparent; color: var(--tg-text); font: inherit; font-weight: 600; cursor: pointer;
}
.taraogo .tg-demo-tab.is-active { background: var(--tg-paper); color: var(--tg-ink); box-shadow: 0 1px 3px rgba(31,42,36,.15); }

.tg-phone {
	position: relative;
	width: 100%; max-width: 360px; min-height: 640px;
	background: var(--tg-cream);
	border: 10px solid var(--tg-ink); border-radius: 40px;
	padding: 28px 18px 22px;
	box-shadow: 0 20px 40px rgba(31,42,36,.18);
}
.tg-demo-badge {
	position: absolute; top: 8px; right: 18px;
	background: var(--tg-clay-soft); color: #7A3A12;
	font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	padding: 3px 8px; border-radius: 999px;
}
.tg-screen { display: flex; flex-direction: column; gap: 14px; }
.tg-app-head { display: flex; flex-direction: column; }
.tg-app-logo { font-family: 'Domine', Georgia, serif; font-weight: 700; font-size: 22px; color: var(--tg-green); }
.tg-app-hello { font-size: 14px; color: var(--tg-muted); }
.tg-app-h { font-family: 'Domine', Georgia, serif; font-size: 20px; font-weight: 700; color: var(--tg-ink); }
.tg-app-title { font-weight: 700; color: var(--tg-ink); font-size: 15px; }
.tg-app-note { font-size: 13px; color: var(--tg-muted); }
.tg-app-ok { background: var(--tg-green-soft); color: var(--tg-green-dark); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 12px; }

.tg-balance { background: var(--tg-ink); color: #E9E3D5; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tg-balance-sm { gap: 4px; }
.tg-balance-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #BDB5A4; }
.tg-balance-amount { font-family: 'Domine', Georgia, serif; font-size: 32px; font-weight: 700; color: var(--tg-cream); line-height: 1.1; }
.tg-progress { height: 8px; border-radius: 4px; background: #3A4840; overflow: hidden; }
.tg-progress span { display: block; height: 100%; background: #E8924A; }
.tg-balance-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #D9D2C3; }
.tg-balance-date { background: #2A3830; color: var(--tg-clay-soft); font-size: 13px; padding: 8px 10px; border-radius: 10px; }

.tg-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.tg-day { height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.tg-day.is-paid, .tg-legend i.is-paid { background: var(--tg-green); color: var(--tg-cream); }
.tg-day.is-missed, .tg-legend i.is-missed { background: var(--tg-clay-soft); color: #7A3A12; }
.tg-day.is-future, .tg-legend i.is-future { background: #ECE5D6; color: var(--tg-muted); }
.tg-day.is-today { background: var(--tg-paper); color: var(--tg-ink); border: 2px solid var(--tg-green); }
.tg-legend { display: flex; gap: 14px; font-size: 12px; color: var(--tg-muted); }
.tg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tg-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.tg-op {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px; margin-bottom: 8px;
	border: 1px solid var(--tg-line-strong); border-radius: 14px; background: var(--tg-paper);
	cursor: pointer; font-weight: 700; color: var(--tg-ink); font-size: 15px; line-height: 1.3;
}
.tg-op small { font-weight: 400; color: var(--tg-muted); font-size: 12px; }
.tg-op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg-op:has(input:checked) { border: 2px solid var(--tg-green); background: var(--tg-green-soft); }
.tg-op:has(input:focus-visible) { outline: 3px solid #E8924A; outline-offset: 2px; }
.tg-op-logo { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.tg-op-orange { background: #C2560F; }
.tg-op-moov { background: #1E5AA8; }

.tg-demo-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 24px; }
.tg-demo-done svg { color: var(--tg-green); background: var(--tg-green-soft); border-radius: 50%; padding: 18px; width: 84px; height: 84px; }

.tg-receipt { background: var(--tg-paper); border: 1px solid var(--tg-line); border-radius: 16px; padding: 4px 16px; margin: 0; }
.tg-receipt > div { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid var(--tg-line); font-size: 14px; }
.tg-receipt > div:first-child { border-top: 0; }
.tg-receipt dd { margin: 0; font-weight: 700; white-space: nowrap; }
.tg-receipt-minus { color: #8A3D10; }
.tg-receipt-total dt { font-weight: 700; color: var(--tg-ink); }
.tg-receipt-total dd { font-family: 'Domine', Georgia, serif; font-size: 22px; color: var(--tg-green); }

@media (max-width: 480px) {
	.tg-section { padding: 36px 16px; }
	.tg-hero { padding: 44px 16px 36px; }
	.tg-card { padding: 18px; }
	.tg-phone { border-width: 8px; border-radius: 32px; padding: 26px 14px 18px; min-height: 0; }
}
