/* ── Page d'activation facturation électronique ──────── */

#contentEInvoicingActivation {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	margin-top: 30px;
	padding: 0 16px 40px;
}

#eInvoicingActivationCard {
	width: 100%;
	max-width: 620px;
	background: white;
	border: 1px solid #c8d6ea;
	border-radius: 10px;
	padding: 22px 26px;
}

/* ── SIREN ───────────────────────────────────────────── */

.eInvoicingActivationSirenRow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid #c8d6ea;
}

.eInvoicingActivationSirenLabel {
	font-size: 0.85em;
	color: #5a7392;
}

.eInvoicingActivationSirenValue {
	font-size: 1em;
	font-weight: bold;
	color: #003366;
	letter-spacing: 0.04em;
}

/* ── Séparateur ──────────────────────────────────────── */

.eInvoicingActivationDivider {
	height: 1px;
	background: #c8d6ea;
	margin: 16px 0;
}

/* ── Bandeau avertissement obligatoire ───────────────── */

.eInvoicingActivationWarningBanner {
	display: flex;
	align-items: center;
	gap: 7px;
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 0.82em;
	color: #7a4f00;
	margin-bottom: 12px;
}

/* ── Bloc de features ────────────────────────────────── */

.eInvoicingActivationFeatures {
	width: 100%;
	max-width: 620px;
	background: white;
	border: 1px solid #c8d6ea;
	border-radius: 10px;
	padding: 16px 26px;
	margin-bottom: 16px;
}

.eInvoicingActivationFeaturesTitle {
	font-size: 0.88em;
	font-weight: bold;
	color: #003366;
	margin-bottom: 8px;
}

.eInvoicingActivationFeaturesList {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.eInvoicingActivationFeaturesList li {
	font-size: 0.85em;
	color: #003366;
	padding-left: 18px;
	position: relative;
}

.eInvoicingActivationFeaturesList li::before {
	content: '✓';
	color: #2d5a0e;
	position: absolute;
	left: 0;
	font-weight: bold;
}

/* ── Badge de statut ─────────────────────────────────── */

.eInvoicingActivationStatusBadge {
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 6px;
	padding: 9px 14px;
	font-size: 0.88em;
	font-weight: bold;
	margin-bottom: 6px;
}
#eInvoicingActivationCard .eInvoicingActivationStatusBadge { margin-top: 30px; }

.eInvoicingActivationStatusDot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.eInvoicingActivationStatusBadge--ok    { background: #eaf3de; color: #2d5a0e; }
.eInvoicingActivationStatusBadge--warn  { background: #faeeda; color: #7a4f00; }
.eInvoicingActivationStatusBadge--error { background: #fcebeb; color: #791f1f; }

.eInvoicingActivationStatusDot--ok    { background: #639922; }
.eInvoicingActivationStatusDot--warn  { background: #ba7517; }
.eInvoicingActivationStatusDot--error { background: #e24b4a; }

/* ── Texte d'explication ─────────────────────────────── */

.eInvoicingActivationInfoText {
	font-size: 0.85em;
	color: #003366;
	line-height: 1.6;
	margin-top: 4px;
	margin-bottom: 0;
}

.eInvoicingActivationInfoText a {
	color: #1a6fd4;
	text-decoration: underline;
	cursor: pointer;
}

/* ── Accroche "Soyez conforme…" ──────────────────────── */

.eInvoicingActivationComplyHeadline {
	font-size: 0.92em;
	font-weight: bold;
	color: #5a7392;
	margin-top: 30px;
	margin-bottom: 10px;
}

/* ── Étapes ──────────────────────────────────────────── */

.eInvoicingActivationSteps {
	display: flex;
	flex-direction: column;
	border: 1px solid #c8d6ea;
	border-radius: 6px;
	/* NB: pas de overflow:hidden — les tooltips doivent pouvoir déborder */
	margin-bottom: 18px;
}

.eInvoicingActivationStep {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #c8d6ea;
	font-size: 0.88em;
	color: #003366;
}

.eInvoicingActivationStep:last-child {
	border-bottom: none;
}

.eInvoicingActivationStepNum {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid #a0b4cc;
	background: #f0f4f9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75em;
	font-weight: bold;
	color: #5a7392;
	flex-shrink: 0;
}

.eInvoicingActivationStepLabel {
	flex: 1;
}

/* ── Badge 0€ dans les étapes ────────────────────────── */

.eInvoicingActivationStepBadge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	padding: 2px 8px;
	border-radius: 20px;
	background: #eaf3de;
	border: 1px solid #7db64a;
	color: #2d5a0e;
	font-size: 0.82em;
	font-weight: bold;
	flex-shrink: 0;
}

/* ── Bouton principal connexion OAuth ────────────────── */

.eInvoicingActivationBtnConnect {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 20px auto 10px auto;
	width: fit-content;
	padding: 9px 20px;
	background-color: #003366;
	color: white;
	border: none;
	border-radius: 0.4rem;
	font-family: Calibri, sans-serif;
	font-size: 0.9em;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s;
}

.eInvoicingActivationBtnConnect:hover {
	background-color: #004488;
}

.eInvoicingActivationBtnConnect svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.eInvoicingActivationBtnConnect--warn {
	background-color: #ba7517;
}

.eInvoicingActivationBtnConnect--warn:hover {
	background-color: #854f0b;
}

/* ── Reset natif quand le bouton est un <button> (formulaire) plutôt qu'un <a> ── */
button.eInvoicingActivationBtnConnect {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
}


/* ── Hint sous une étape ─────────────────────────────── */

.eInvoicingActivationStepHint {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 4px;
	font-size: 0.9em;
	color: #3d5a78;
	font-style: italic;
}

/* ── Responsive ──────────────────────────────────────── */

@media screen and (max-width: 700px) {
	#eInvoicingActivationCard { padding: 16px 14px; }
	.eInvoicingActivationBtnConnect { font-size: 0.85em; padding: 8px 14px; }
	.tooltipText { width: 200px; }
}

/* ── Option "autre plateforme pour la réception d'achats" ── */

.eInvoicingActivationAltOption {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed #c8d6ea;
	text-align: center;
}

.eInvoicingActivationAltLink {
	font-size: 0.85em;
	color: #5a7392;
	text-decoration: underline;
	cursor: pointer;
}

.eInvoicingActivationAltLink:hover {
	color: #003366;
}

.eInvoicingActivationAltConfirm {
	display: none;
	margin-top: 12px;
	background: #f0f4f9;
	border-radius: 6px;
	padding: 14px 16px;
	text-align: left;
}

.eInvoicingActivationAltConfirm.open {
	display: block;
}

.eInvoicingActivationAltConfirm label {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 0.85em;
	line-height: 1.5;
	color: #003366;
	cursor: pointer;
}

.eInvoicingActivationAltConfirm input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.eInvoicingActivationAltConfirmRow {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 12px;
}

.eInvoicingActivationAltConfirmRow button {
	padding: 6px 14px;
	border-radius: 0.4rem;
	border: none;
	font-family: Calibri, sans-serif;
	font-size: 0.85em;
	cursor: pointer;
}

.eInvoicingActivationAltCancel {
	background: transparent;
	color: #5a7392;
}

.eInvoicingActivationAltCancel:hover {
	color: #003366;
}

.eInvoicingActivationAltValidate {
	background: #003366;
	color: white;
}

.eInvoicingActivationAltValidate:hover {
	background: #004488;
}


/* ── Bannière pièce d'identité ───────────────────────── */

.eInvoicingActivationIdBanner {
	display: flex;
	align-items: center;
	gap: 9px;
	background: #e6f1fb;
	border: 1px solid #b5d4f4;
	border-radius: 6px;
	padding: 9px 14px;
	font-size: 0.85em;
	color: #0c447c;
	margin-bottom: 14px;
}
