/* Portail espace client — style tableau de bord (clair, indigo), plein écran viewport */
.emotta-cp-app {
	--emotta-app-bg: #f9fafb;
	--emotta-app-surface: #ffffff;
	--emotta-app-border: #e5e7eb;
	--emotta-app-text: #1f2937;
	--emotta-app-muted: #6b7280;
	--emotta-app-indigo: #4f46e5;
	--emotta-app-indigo-hover: #4338ca;
	--emotta-app-indigo-soft: #eef2ff;
	--emotta-app-radius: 0.75rem;
	--emotta-app-admin-offset: 0px;
	box-sizing: border-box;
	position: fixed;
	z-index: 99950;
	left: 0;
	right: 0;
	top: var(--emotta-app-admin-offset);
	bottom: 0;
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: calc(100vh - var(--emotta-app-admin-offset));
	min-height: calc(100dvh - var(--emotta-app-admin-offset));
	display: flex;
	background: var(--emotta-app-bg);
	color: var(--emotta-app-text);
	color-scheme: light;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}
html.admin-bar .emotta-cp-app {
	--emotta-app-admin-offset: 32px;
}
@media screen and (max-width: 782px) {
	html.admin-bar .emotta-cp-app {
		--emotta-app-admin-offset: 46px;
	}
}
html.emotta-cp-portal-fs,
body.emotta-cp-portal-fs {
	height: 100%;
	overflow: hidden;
}
.emotta-cp-app *,
.emotta-cp-app *::before,
.emotta-cp-app *::after {
	box-sizing: border-box;
}
/* Liens dans le contenu uniquement (évite d’écraser texte des boutons <a> et nav) */
.emotta-cp-app__body a:not(.emotta-cp-app__btn):not(.emotta-cp-app__navbtn) {
	color: var(--emotta-app-indigo);
}
.emotta-cp-app__sidebar {
	width: 16rem;
	flex-shrink: 0;
	background: var(--emotta-app-surface);
	border-right: 1px solid var(--emotta-app-border);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	transition: width 0.25s ease;
}
.emotta-cp-app--sidebar-collapsed .emotta-cp-app__sidebar {
	width: 4.5rem;
	padding-left: 0.375rem;
	padding-right: 0.375rem;
}
.emotta-cp-app--sidebar-collapsed .emotta-cp-app__brand-logo,
.emotta-cp-app--sidebar-collapsed .emotta-cp-app__navbtn span {
	display: none;
}
/* Barre étroite : centrer logo et icônes (évite le décalage vers la droite) */
.emotta-cp-app--sidebar-collapsed .emotta-cp-app__brand {
	justify-content: center;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
	margin-bottom: 1.25rem;
}
.emotta-cp-app--sidebar-collapsed .emotta-cp-app__navbtn,
.emotta-cp-app--sidebar-collapsed .emotta-cp-app__navfoot .emotta-cp-app__navbtn {
	justify-content: center;
	align-items: center;
	padding: 0.5rem 0.25rem;
	gap: 0;
}
.emotta-cp-app__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 2rem;
	padding: 0 0.25rem;
}
.emotta-cp-app__brand-mark {
	background: var(--emotta-app-indigo);
	color: #fff;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.emotta-cp-app__brand-logo {
	display: block;
	height: auto;
	/* ~5× l’ancienne hauteur (~2rem → 10rem), contenu dans la colonne latérale */
	max-height: 10rem;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
/* Logo SVG = picto + mot ; on masque la pastille doublon quand la barre est dépliée */
.emotta-cp-app:not(.emotta-cp-app--sidebar-collapsed) .emotta-cp-app__brand-mark {
	display: none;
}
.emotta-cp-app__nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.emotta-cp-app__navbtn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	width: 100%;
	padding: 0.65rem 1rem;
	border: 0;
	border-radius: 0.5rem;
	background: transparent;
	color: var(--emotta-app-muted);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.emotta-cp-app__navbtn:hover {
	background: #f3f4f6;
	color: var(--emotta-app-text);
}
.emotta-cp-app__navbtn--active {
	background: var(--emotta-app-indigo);
	color: #fff;
}
.emotta-cp-app__navbtn--active:hover {
	background: var(--emotta-app-indigo-hover);
	color: #fff;
}
.emotta-cp-app__navbtn--danger {
	color: #b91c1c;
}
.emotta-cp-app__navbtn--danger:hover {
	background: #fef2f2;
}
.emotta-cp-app__navbtn svg {
	flex-shrink: 0;
	opacity: 0.9;
	display: block;
	margin: 0;
	vertical-align: middle;
}
.emotta-cp-app__navfoot {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--emotta-app-border);
}
.emotta-cp-app__main {
	flex: 1;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.emotta-cp-app__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	background: var(--emotta-app-surface);
	border-bottom: 1px solid var(--emotta-app-border);
	flex-shrink: 0;
	z-index: 5;
}
.emotta-cp-app__header-user {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.emotta-cp-app__header-meta {
	text-align: right;
}
.emotta-cp-app__header-meta strong {
	display: block;
	font-size: 0.9rem;
	color: var(--emotta-app-text);
}
.emotta-cp-app__header-meta small {
	font-size: 0.75rem;
	color: var(--emotta-app-muted);
}
.emotta-cp-app__avatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: var(--emotta-app-indigo-soft);
	color: var(--emotta-app-indigo);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #c7d2fe;
}
.emotta-cp-app__iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	border: 0;
	background: transparent;
	padding: 0.5rem;
	border-radius: 0.375rem;
	cursor: pointer;
	color: var(--emotta-app-muted) !important;
}
.emotta-cp-app__iconbtn svg {
	display: block;
	margin: 0;
}
.emotta-cp-app__iconbtn:hover {
	background: #f3f4f6;
	color: var(--emotta-app-text) !important;
}
.emotta-cp-app__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
	max-width: none;
	margin: 0;
	width: 100%;
}
.emotta-cp-app__alerts > * {
	margin-bottom: 1rem;
}
.emotta-cp-app .emotta-cp-stripe-err {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: var(--emotta-app-radius);
	padding: 0.75rem 1rem;
	color: #991b1b;
}
.emotta-cp-app .emotta-cp-stripe-err__detail {
	color: #7f1d1d;
}
.emotta-cp-app-msg {
	padding: 0.75rem 1rem;
	border-radius: var(--emotta-app-radius);
	margin-bottom: 1rem;
}
.emotta-cp-app-msg--ok {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}
.emotta-cp-app-msg--err {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}
.emotta-cp-app__panel[hidden] {
	display: none !important;
}
.emotta-cp-app__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.25rem 0;
	color: var(--emotta-app-text);
}
.emotta-cp-app__subtitle {
	color: var(--emotta-app-muted);
	margin: 0 0 1.5rem 0;
}
.emotta-cp-app__rowhead {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.emotta-cp-app__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	font: inherit;
	transition: background 0.15s, border-color 0.15s;
}
.emotta-cp-app__btn--primary {
	background: var(--emotta-app-indigo);
	color: #fff;
}
.emotta-cp-app__btn--primary:hover {
	background: var(--emotta-app-indigo-hover);
	color: #fff;
}
.emotta-cp-app__btn--outline {
	background: #fff;
	border-color: var(--emotta-app-border);
	color: var(--emotta-app-text);
}
.emotta-cp-app__btn--outline:hover {
	background: #f9fafb;
	color: var(--emotta-app-text);
}
/* Priorité sur le thème / liens : libellés toujours lisibles */
.emotta-cp-app button.emotta-cp-app__btn.emotta-cp-app__btn--primary,
.emotta-cp-app a.emotta-cp-app__btn.emotta-cp-app__btn--primary {
	background-color: var(--emotta-app-indigo) !important;
	color: #ffffff !important;
	border-color: transparent !important;
}
.emotta-cp-app button.emotta-cp-app__btn.emotta-cp-app__btn--primary:hover,
.emotta-cp-app a.emotta-cp-app__btn.emotta-cp-app__btn--primary:hover {
	background-color: var(--emotta-app-indigo-hover) !important;
	color: #ffffff !important;
}
.emotta-cp-app button.emotta-cp-app__btn.emotta-cp-app__btn--outline,
.emotta-cp-app a.emotta-cp-app__btn.emotta-cp-app__btn--outline {
	background-color: #ffffff !important;
	color: #1f2937 !important;
	border-color: var(--emotta-app-border) !important;
}
.emotta-cp-app button.emotta-cp-app__btn.emotta-cp-app__btn--outline:hover,
.emotta-cp-app a.emotta-cp-app__btn.emotta-cp-app__btn--outline:hover {
	background-color: #f3f4f6 !important;
	color: #111827 !important;
}
.emotta-cp-app__grid3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}
.emotta-cp-app__card {
	background: var(--emotta-app-surface);
	border: 1px solid var(--emotta-app-border);
	border-radius: var(--emotta-app-radius);
	padding: 1.25rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
button.emotta-cp-app__dash-tile {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	margin: 0;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
button.emotta-cp-app__dash-tile:hover {
	border-color: var(--emotta-app-indigo);
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.14);
}
button.emotta-cp-app__dash-tile:focus-visible {
	outline: 2px solid var(--emotta-app-indigo);
	outline-offset: 2px;
}
.emotta-cp-app__dash-stat-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
}
.emotta-cp-app__dash-stat-num {
	font-size: 1.5rem;
	font-weight: 700;
	min-width: 1ch;
	line-height: 1.2;
}
.emotta-cp-app__dash-stat-label {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
}
.emotta-cp-app__card-k {
	font-size: 0.8rem;
	color: var(--emotta-app-muted);
	font-weight: 500;
	margin: 0 0 0.35rem 0;
}
.emotta-cp-app__card-v {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
}
.emotta-cp-app__card-tag {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.emotta-cp-app__card-tag--green {
	color: #059669;
}
.emotta-cp-app__card-tag--indigo {
	color: var(--emotta-app-indigo);
}
.emotta-cp-app__card-tag--amber {
	color: #d97706;
}
.emotta-cp-app__grid2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 1.25rem;
}
.emotta-cp-app__panelcard {
	background: var(--emotta-app-surface);
	border: 1px solid var(--emotta-app-border);
	border-radius: var(--emotta-app-radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.emotta-cp-app__panelcard-h {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--emotta-app-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.emotta-cp-app__panelcard-h h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--emotta-app-text);
}
.emotta-cp-preview-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
}
.emotta-cp-preview-head h3 {
	margin: 0 0 0.2rem 0;
}
.emotta-cp-preview-head-hint {
	margin: 0;
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--emotta-app-muted);
	line-height: 1.35;
	max-width: 26rem;
}
.emotta-cp-maint-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.22rem 0.65rem;
	border-radius: 999px;
	line-height: 1.25;
	max-width: 100%;
}
.emotta-cp-maint-badge--on {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
}
.emotta-cp-maint-badge--off {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.emotta-cp-app__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.emotta-cp-app__table th {
	text-align: left;
	padding: 0.65rem 1.25rem;
	background: #f9fafb;
	color: var(--emotta-app-muted);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}
.emotta-cp-app__table td {
	padding: 0.85rem 1.25rem;
	border-top: 1px solid var(--emotta-app-border);
}
.emotta-cp-app__table tr:hover td {
	background: #fafafa;
}
.emotta-cp-app__badge {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 600;
}
.emotta-cp-app__badge--green {
	background: #d1fae5;
	color: #065f46;
}
.emotta-cp-app__badge--blue {
	background: #dbeafe;
	color: #1d4ed8;
}
.emotta-cp-app__badge--amber {
	background: #fef3c7;
	color: #b45309;
}
.emotta-cp-app__badge--gray {
	background: #f3f4f6;
	color: #4b5563;
}
.emotta-cp-app__link {
	color: var(--emotta-app-accent, #4f46e5);
	text-decoration: underline;
	font-weight: 500;
	font-size: 0.8rem;
}
.emotta-cp-app__link:hover {
	text-decoration: none;
}
.emotta-cp-app__listrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem;
	border: 1px solid var(--emotta-app-border);
	border-radius: 0.5rem;
	margin-bottom: 0.5rem;
}
.emotta-cp-app__listrow:last-child {
	margin-bottom: 0;
}
.emotta-cp-app__listrow:hover {
	background: #fafafa;
}
.emotta-cp-app__plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.emotta-cp-app__plan {
	background: var(--emotta-app-surface);
	border: 2px solid var(--emotta-app-border);
	border-radius: 1rem;
	padding: 1.75rem;
	position: relative;
	display: flex;
	flex-direction: column;
}
.emotta-cp-app__plan--current {
	border-color: var(--emotta-app-indigo);
	box-shadow: 0 10px 40px rgba(79, 70, 229, 0.12);
}
.emotta-cp-app__plan-pop {
	position: absolute;
	top: -0.65rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--emotta-app-indigo);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	padding: 0.2rem 0.75rem;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.emotta-cp-app__plan h4 {
	margin: 0 0 0.5rem 0;
	font-size: 1.1rem;
}
.emotta-cp-app__plan-price {
	font-size: 2rem;
	font-weight: 800;
	margin: 0.5rem 0 0 0;
}
.emotta-cp-app__plan ul {
	margin: 1rem 0 0 0;
	padding: 0;
	list-style: none;
	flex: 1;
}
.emotta-cp-app__plan li {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.875rem;
	color: var(--emotta-app-muted);
	margin-bottom: 0.5rem;
}
.emotta-cp-app__plan-foot {
	margin-top: 1.25rem;
}
.emotta-cp-app__plan-foot .emotta-cp-app__btn {
	width: 100%;
	justify-content: center;
}
.emotta-cp-app__cta-band {
	margin-top: 2rem;
	padding: 1.5rem;
	background: var(--emotta-app-indigo-soft);
	border-radius: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.emotta-cp-app__cta-band h4 {
	margin: 0 0 0.25rem 0;
	color: #312e81;
}
.emotta-cp-app__cta-band p {
	margin: 0;
	color: #4338ca;
	font-size: 0.9rem;
}
.emotta-cp-app__empty {
	text-align: center;
	padding: 2.5rem 1rem;
	color: var(--emotta-app-muted);
}
.emotta-cp-app__form label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--emotta-app-text);
	margin-bottom: 0.35rem;
}
.emotta-cp-app__form input,
.emotta-cp-app__form textarea,
.emotta-cp-app__form select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--emotta-app-border);
	border-radius: 0.5rem;
	font: inherit;
}
.emotta-cp-app__form textarea {
	min-height: 6rem;
	resize: vertical;
}
.emotta-cp-app__form-actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}
.emotta-cp-app__form-actions .emotta-cp-app__btn {
	flex: 1;
	justify-content: center;
}
#emotta-cp-req-modal,
#emotta-cp-req-detail-modal {
	--emotta-app-indigo: #4f46e5;
	--emotta-app-indigo-hover: #4338ca;
	z-index: 100000;
	max-width: 32rem;
	width: calc(100% - 2rem);
	border: 0;
	border-radius: 1rem;
	padding: 0;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	background: #ffffff;
	color: #1f2937;
	color-scheme: only light;
}
#emotta-cp-req-detail-modal {
	max-width: 40rem;
}
#emotta-cp-req-modal::backdrop,
#emotta-cp-req-detail-modal::backdrop {
	background: rgba(0, 0, 0, 0.45);
}
.emotta-cp-app__req-row {
	cursor: pointer;
	transition: background 0.15s ease;
}
.emotta-cp-app__req-row:hover {
	background: #f9fafb;
}
.emotta-cp-app__req-detail-html {
	margin-top: 0.75rem;
	padding: 1rem;
	background: #f9fafb;
	border-radius: 0.5rem;
	border: 1px solid var(--emotta-app-border);
	line-height: 1.55;
	font-size: 0.9rem;
}
.emotta-cp-app__req-detail-html p:first-child {
	margin-top: 0;
}
.emotta-cp-app__msg-wrap {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--emotta-app-border);
}
.emotta-cp-app__msg-head {
	margin-bottom: 0.6rem;
}
.emotta-cp-app__msg-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	max-height: 16rem;
	overflow: auto;
	margin-bottom: 0.75rem;
}
.emotta-cp-app__msg-item {
	padding: 0.65rem 0.75rem;
	border-radius: 0.55rem;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
}
.emotta-cp-app__msg-item--admin {
	background: #eef2ff;
	border-color: #c7d2fe;
}
.emotta-cp-app__msg-meta {
	margin: 0 0 0.25rem 0;
	font-size: 0.72rem;
	color: #6b7280;
}
.emotta-cp-app__msg-body {
	font-size: 0.88rem;
	line-height: 1.45;
}
.emotta-cp-app__msg-body p {
	margin: 0 0 0.35rem 0;
}
.emotta-cp-app__msg-body p:last-child {
	margin-bottom: 0;
}
.emotta-cp-app__msg-form textarea {
	width: 100%;
	min-height: 4rem;
	resize: vertical;
	border: 1px solid var(--emotta-app-border);
	border-radius: 0.5rem;
	padding: 0.55rem 0.7rem;
	font: inherit;
}
.emotta-cp-app__msg-actions {
	margin-top: 0.55rem;
	display: flex;
	gap: 0.6rem;
	align-items: center;
	justify-content: space-between;
}
.emotta-cp-app__modal-h {
	padding: 1.25rem;
	border-bottom: 1px solid var(--emotta-app-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
}
.emotta-cp-app__modal-h h3 {
	margin: 0;
	font-size: 1.1rem;
	color: #111827;
	font-weight: 700;
}
.emotta-cp-app__modal-b {
	padding: 1.25rem;
	background: #ffffff;
}
/* Formulaire hérité (.emotta-cp-*) = styles sombres dans public.css → thème clair ici */
#emotta-cp-req-modal .emotta-cp-form-req {
	margin: 0;
}
#emotta-cp-req-modal .emotta-cp-label {
	color: #374151 !important;
}
#emotta-cp-req-modal .emotta-cp-textarea,
#emotta-cp-req-modal .emotta-cp-input {
	background: #ffffff !important;
	color: #1f2937 !important;
	border: 1px solid #e5e7eb !important;
	box-shadow: none;
}
#emotta-cp-req-modal .emotta-cp-textarea::placeholder,
#emotta-cp-req-modal .emotta-cp-input::placeholder {
	color: #9ca3af;
}
#emotta-cp-req-modal .emotta-cp-button,
#emotta-cp-req-modal .emotta-cp-button.emotta-cp-button--primary {
	background: var(--emotta-app-indigo) !important;
	background-image: none !important;
	color: #ffffff !important;
	border: 1px solid transparent !important;
}
#emotta-cp-req-modal .emotta-cp-button:hover {
	background: var(--emotta-app-indigo-hover) !important;
	color: #ffffff !important;
}
#emotta-cp-req-modal .emotta-cp-warn,
#emotta-cp-req-modal .emotta-cp-warn--small {
	color: #b45309 !important;
	background: transparent;
}
#emotta-cp-req-modal .emotta-cp-app__iconbtn {
	color: #6b7280;
}
#emotta-cp-req-modal .emotta-cp-app__iconbtn:hover {
	color: #111827;
	background: #f3f4f6;
}
#emotta-cp-req-modal .emotta-cp-app__btn.emotta-cp-app__btn--outline {
	background-color: #ffffff !important;
	color: #1f2937 !important;
	border-color: #e5e7eb !important;
}
/* Éditeur « Mon site » (galerie + packs + iframe) */
.emotta-cp-app__editor-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 1.35fr);
	gap: 1.25rem;
	align-items: start;
}
@media (max-width: 960px) {
	.emotta-cp-app__editor-shell {
		grid-template-columns: 1fr;
	}
}
.emotta-cp-app__editor-forms {
	padding: 1rem 1.25rem 1.25rem;
	max-height: min(70vh, 42rem);
	overflow-y: auto;
}
.emotta-cp-app__editor-preview {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.emotta-cp-app__editor-iframe-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	flex: 0 0 auto;
	background: #0f172a;
	overflow: hidden;
}
.emotta-cp-app__editor-iframe-viewport {
	position: absolute;
	left: 0;
	top: 0;
	width: 1440px;
	height: 810px;
	transform-origin: 0 0;
	will-change: transform;
}
.emotta-cp-site-preview-frame {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.emotta-cp-se-list {
	list-style: none;
	margin: 0 0 1rem 0;
	padding: 0;
}
.emotta-cp-se-li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--emotta-app-border);
}
.emotta-cp-se-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 0.35rem;
}
.emotta-cp-se-meta {
	flex: 1;
	font-size: 0.75rem;
	color: var(--emotta-app-muted);
	word-break: break-all;
}
.emotta-cp-se-actions {
	display: flex;
	gap: 0.25rem;
	flex-shrink: 0;
}
.emotta-cp-se-icon {
	padding: 0.25rem 0.45rem !important;
	min-width: 0;
	font-size: 0.85rem;
}
.emotta-cp-se-add {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.5rem;
}
.emotta-cp-se-input {
	flex: 1 1 8rem;
	min-width: 0;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--emotta-app-border);
	border-radius: 0.5rem;
	font: inherit;
}
.emotta-cp-se-textarea {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--emotta-app-border);
	border-radius: 0.5rem;
	font: inherit;
	min-height: 5rem;
	resize: vertical;
}
.emotta-cp-se-hr {
	border: 0;
	border-top: 1px solid var(--emotta-app-border);
	margin: 1.25rem 0;
}
.emotta-cp-se-pack {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px dashed var(--emotta-app-border);
}
.emotta-cp-se-pack:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}
.emotta-cp-se-pack label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin: 0.5rem 0 0.25rem 0;
	color: var(--emotta-app-text);
}
.emotta-cp-se-pack-title {
	margin: 0 0 0.5rem 0;
	font-size: 0.95rem;
}
.emotta-cp-se-opt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.emotta-cp-se-opt-head .emotta-cp-se-pack-title {
	margin-bottom: 0;
	flex: 1 1 auto;
}
.emotta-cp-se-copy-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin: 0.35rem 0 0.2rem 0;
	color: var(--emotta-app-text);
}
.emotta-cp-se-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.35rem 0 0.65rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}
.emotta-cp-se-toggle-text {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--emotta-app-text);
	cursor: pointer;
	flex: 1 1 auto;
	line-height: 1.35;
	margin: 0;
}
.emotta-cp-se-switch {
	position: relative;
	display: inline-block;
	width: 2.75rem;
	height: 1.5rem;
	flex-shrink: 0;
	cursor: pointer;
}
.emotta-cp-se-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.emotta-cp-se-switch-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #cbd5e1;
	border-radius: 999px;
	transition: background 0.2s ease;
}
.emotta-cp-se-switch-slider::before {
	content: "";
	position: absolute;
	height: 1.15rem;
	width: 1.15rem;
	left: 0.2rem;
	bottom: 0.175rem;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.emotta-cp-se-switch input:checked + .emotta-cp-se-switch-slider {
	background: var(--emotta-app-indigo);
}
.emotta-cp-se-switch input:checked + .emotta-cp-se-switch-slider::before {
	transform: translateX(1.15rem);
}
.emotta-cp-se-switch input:focus-visible + .emotta-cp-se-switch-slider {
	outline: 2px solid var(--emotta-app-indigo);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.emotta-cp-se-switch-slider,
	.emotta-cp-se-switch-slider::before {
		transition: none;
	}
}
.emotta-cp-se-copy-select {
	max-width: 100%;
	font-size: 0.88rem;
}
.emotta-cp-se-schema-img {
	margin-bottom: 0.35rem;
}
.emotta-cp-se-schema-img-hint {
	margin: 0.45rem 0 0.35rem !important;
	line-height: 1.4 !important;
	font-size: 0.82rem !important;
	color: var(--emotta-app-muted) !important;
}
.emotta-cp-se-schema-img .emotta-cp-se-schema-img-file {
	max-width: 100%;
	padding: 0.35rem 0;
	font-size: 0.85rem;
	cursor: pointer;
}
.emotta-cp-se-avail-root {
	margin-top: 0.25rem;
}
.emotta-cp-se-avail-band,
.emotta-cp-se-maint-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1.25rem;
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	background: #f8fafc;
	border-radius: 0.5rem;
	border: 1px solid var(--emotta-app-border);
}
.emotta-cp-se-maint-band {
	margin-bottom: 0;
}
.emotta-cp-se-avail-visible {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	margin: 0;
	user-select: none;
}
.emotta-cp-se-avail-subtitle {
	margin-top: 1rem !important;
	margin-bottom: 0.35rem !important;
	font-size: 1.02rem !important;
}
.emotta-cp-se-avail-hint {
	margin: 0 0 0.9rem 0 !important;
	line-height: 1.45;
}
.emotta-cp-se-avail-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
}
.emotta-cp-se-avail-col-card {
	background: var(--emotta-app-surface, #fff);
	border: 1px solid var(--emotta-app-border);
	border-radius: 0.65rem;
	padding: 1rem 1.1rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.emotta-cp-se-avail-range {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.55rem;
	margin: 0.55rem 0 0.85rem;
}
.emotta-cp-se-avail-range-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--emotta-app-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.emotta-cp-se-avail-range .emotta-cp-se-input {
	flex: 1 1 min(6.5rem, 100%);
	min-width: 0;
	font-size: 0.82rem;
}
.emotta-cp-se-avail-month-line {
	display: grid;
	grid-template-columns: minmax(4.25rem, 5.5rem) minmax(0, 1fr);
	gap: 0.45rem 0.55rem;
	align-items: center;
	margin-bottom: 0.38rem;
}
.emotta-cp-se-avail-month-name {
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: var(--emotta-app-text);
	text-transform: uppercase;
}
.emotta-cp-se-avail-month-line .emotta-cp-se-avail-status {
	width: 100%;
	min-width: 0;
	font-size: 0.76rem;
	padding: 0.35rem 0.45rem;
}
@media (max-width: 720px) {
	.emotta-cp-se-avail-cols {
		grid-template-columns: 1fr;
	}
}

/* Mobile : contenu en haut, menu type barre d’onglets en bas (hors zone notch / home indicator) */
@media (max-width: 782px) {
	.emotta-cp-app {
		flex-direction: column;
		margin: 0;
	}
	.emotta-cp-app__main {
		order: 1;
		flex: 1 1 auto;
		min-height: 0;
	}
	.emotta-cp-app__sidebar {
		order: 2;
		flex-shrink: 0;
		width: 100%;
		max-width: 100%;
		border-right: 0;
		border-bottom: 0;
		border-top: 1px solid var(--emotta-app-border);
		box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.06);
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		padding: 0.25rem 0.35rem calc(0.25rem + env(safe-area-inset-bottom, 0px));
		gap: 0;
		background: var(--emotta-app-surface);
	}
	.emotta-cp-app__brand {
		display: none;
	}
	.emotta-cp-app__nav {
		flex: 1 1 auto;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-evenly;
		align-items: stretch;
		gap: 0.125rem;
		min-width: 0;
	}
	.emotta-cp-app__navfoot {
		flex: 0 0 auto;
		margin-top: 0;
		padding-top: 0;
		padding-left: 0.25rem;
		margin-left: 0.25rem;
		border-top: 0;
		border-left: 1px solid var(--emotta-app-border);
		display: flex;
		align-items: stretch;
		width: auto;
	}
	.emotta-cp-app__navfoot .emotta-cp-app__navbtn {
		min-width: 3.1rem;
		max-width: 4.25rem;
		padding-left: 0.35rem;
		padding-right: 0.35rem;
	}
	.emotta-cp-app__navfoot .emotta-cp-app__navbtn span {
		white-space: normal;
		line-height: 1.1;
		hyphens: auto;
	}
	.emotta-cp-app__navbtn {
		flex: 1 1 0;
		min-width: 0;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 0.2rem;
		padding: 0.35rem 0.15rem;
		font-size: 0.62rem;
		line-height: 1.15;
		text-align: center;
		border-radius: 0.45rem;
	}
	.emotta-cp-app__navbtn svg {
		width: 22px;
		height: 22px;
	}
	/* Réafficher les libellés sous les icônes (le mode « collapsed » les masque sur desktop) */
	.emotta-cp-app .emotta-cp-app__sidebar .emotta-cp-app__navbtn span {
		display: block !important;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.emotta-cp-app__header .emotta-cp-app__iconbtn[data-emotta-sidebar-toggle] {
		display: none;
	}
	.emotta-cp-app__body {
		padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
	}
	.emotta-cp-app--sidebar-collapsed .emotta-cp-app__sidebar {
		width: 100%;
	}
}

/* Demandes de contact (formulaire vitrine) */
.emotta-cp-contact-leads-root {
	padding: 1.25rem;
}
.emotta-cp-lead-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.emotta-cp-lead-card {
	padding: 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}
.emotta-cp-lead-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.emotta-cp-lead-card__name {
	font-size: 1rem;
}
.emotta-cp-lead-card__email {
	margin: 0.2rem 0 0 0;
	font-size: 0.875rem;
}
.emotta-cp-lead-card__email a {
	color: var(--emotta-app-indigo);
	text-decoration: none;
}
.emotta-cp-lead-card__email a:hover {
	text-decoration: underline;
}
.emotta-cp-lead-card__meta,
.emotta-cp-lead-card__date {
	margin: 0;
	font-size: 0.8rem;
	color: var(--emotta-app-muted);
}
.emotta-cp-lead-card__msg {
	margin: 0;
	padding: 0.65rem 0.75rem;
	background: var(--emotta-app-indigo-soft);
	border-radius: 0.5rem;
	border: 1px solid var(--emotta-app-border);
	font-size: 0.9rem;
	line-height: 1.45;
}
.emotta-cp-lead-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: 0.35rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--emotta-app-border);
}
.emotta-cp-lead-card__lab {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--emotta-app-text);
	margin: 0;
}
.emotta-cp-lead-card__select {
	flex: 0 1 14rem;
	max-width: 100%;
}
.emotta-cp-lead-card__hint {
	font-size: 0.78rem;
	flex: 1 1 8rem;
	min-width: 0;
}
