/*
 * Habillage du logiciel hors de l'administration de WordPress.
 *
 * Les vues sont écrites pour l'administration : elles utilisent quelques
 * classes de WordPress (button, notice, wrap). Cette feuille leur redonne
 * une apparence hors de ce contexte, et pose la barre ZIEU autour.
 */

:root {
	--zieu-ground:  #eef2f4;
	--zieu-surface: #ffffff;
	--zieu-ink:     #10171b;
	--zieu-ink-2:   #3d4c54;
	--zieu-muted:   #6b7c85;
	--zieu-line:    #dae2e6;
	--zieu-accent:  #12606b;
	--zieu-od:      #b4432c;
	--zieu-os:      #1c6a86;
}

* { box-sizing: border-box; }

body.zieu-front {
	margin: 0;
	background: var(--zieu-ground);
	color: var(--zieu-ink);
	font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.zieu-front a { color: var(--zieu-accent); }

/* -- Barre du logiciel -------------------------------------------------- */

.zieu-appbar {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 10px 22px;
	background: var(--zieu-surface);
	border-bottom: 1px solid var(--zieu-line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.zieu-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.zieu-brand__name { font-size: 19px; font-weight: 700; letter-spacing: .11em; line-height: 1; }

.zieu-appnav { display: flex; gap: 2px; flex-wrap: wrap; }

.zieu-appnav__item {
	padding: 7px 13px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--zieu-ink-2);
	font-size: 14.5px;
	white-space: nowrap;
}

.zieu-appnav__item:hover { background: var(--zieu-ground); color: var(--zieu-ink); }

.zieu-appnav__item.is-current {
	background: var(--zieu-accent);
	color: #fff;
	font-weight: 500;
}

.zieu-appbar__user { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.zieu-appbar__who { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.zieu-appbar__who strong { font-size: 14px; }
.zieu-appbar__who span { font-size: 11.5px; color: var(--zieu-muted); }

.zieu-appbar__switch {
	font-size: 13px;
	padding: 6px 12px;
	border: 1px solid var(--zieu-line);
	border-radius: 6px;
	text-decoration: none;
	color: var(--zieu-ink-2);
	white-space: nowrap;
}

.zieu-appbar__switch:hover { border-color: var(--zieu-accent); color: var(--zieu-accent); }

.zieu-appdemo {
	margin: 0;
	padding: 7px 22px;
	background: #fdf3e3;
	border-bottom: 1px solid #f0e2c6;
	color: #7a4708;
	font-size: 13px;
}

.zieu-appmain { padding: 0 22px 60px; }

/* -- Vues d'administration hors administration -------------------------- */

body.zieu-front .wrap { max-width: 1600px; margin: 0 auto; padding-top: 4px; }

body.zieu-front .button,
body.zieu-front .page-title-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: inherit;
	font-size: 13.5px;
	padding: 6px 13px;
	border-radius: 6px;
	border: 1px solid var(--zieu-line);
	background: var(--zieu-surface);
	color: var(--zieu-ink-2);
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
}

body.zieu-front .button:hover,
body.zieu-front .page-title-action:hover { border-color: var(--zieu-accent); color: var(--zieu-ink); }

body.zieu-front .button-primary {
	background: var(--zieu-accent);
	border-color: var(--zieu-accent);
	color: #fff;
}

body.zieu-front .button-primary:hover { background: #0e4f58; color: #fff; }
body.zieu-front .button-small { padding: 3px 9px; font-size: 12.5px; }
body.zieu-front .button-hero { padding: 10px 20px; font-size: 15px; }
body.zieu-front .button-link-delete { border-color: transparent; color: var(--zieu-od); background: none; }
body.zieu-front .button:disabled { opacity: .5; cursor: default; }

body.zieu-front input[type="text"],
body.zieu-front input[type="search"],
body.zieu-front input[type="tel"],
body.zieu-front input[type="email"],
body.zieu-front input[type="date"],
body.zieu-front input[type="time"],
body.zieu-front input[type="number"],
body.zieu-front input[type="password"],
body.zieu-front input[type="datetime-local"],
body.zieu-front select,
body.zieu-front textarea {
	font: inherit;
	font-size: 14px;
	padding: 5px 9px;
	border: 1px solid var(--zieu-line);
	border-radius: 5px;
	background: var(--zieu-surface);
	color: var(--zieu-ink);
	max-width: 100%;
}

body.zieu-front input:focus,
body.zieu-front select:focus,
body.zieu-front textarea:focus {
	outline: 2px solid rgba(18, 96, 107, .35);
	outline-offset: 1px;
	border-color: var(--zieu-accent);
}

body.zieu-front .notice {
	background: var(--zieu-surface);
	border: 1px solid var(--zieu-line);
	border-left: 4px solid var(--zieu-muted);
	border-radius: 0 6px 6px 0;
	padding: 10px 14px;
	margin: 12px 0;
	font-size: 14px;
}

body.zieu-front .notice-success { border-left-color: #2b6a50; }
body.zieu-front .notice-warning { border-left-color: #9c5a09; }
body.zieu-front .notice-error   { border-left-color: var(--zieu-od); }
body.zieu-front .notice-info    { border-left-color: var(--zieu-accent); }
body.zieu-front .notice p:first-child { margin-top: 0; }
body.zieu-front .notice p:last-child { margin-bottom: 0; }

body.zieu-front .widefat { background: var(--zieu-surface); }
body.zieu-front .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
body.zieu-front code { background: #eef2f4; padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }

.zieu-locked { border-left: 4px solid var(--zieu-od); }

/* -- Page d'entrée ------------------------------------------------------ */

.zieu-gate {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

.zieu-gate__box {
	background: var(--zieu-surface);
	border: 1px solid var(--zieu-line);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 23, 27, .06), 0 14px 40px rgba(16, 23, 27, .09);
	padding: 30px 32px 26px;
	width: min(620px, 100%);
}

.zieu-gate__box h1 {
	font-size: 27px;
	letter-spacing: -.02em;
	margin: 18px 0 8px;
	text-wrap: balance;
}

.zieu-gate__lede { color: var(--zieu-ink-2); margin: 0 0 22px; }

.zieu-gate__roles { display: flex; flex-direction: column; gap: 8px; }

.zieu-gate__role {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 14px;
	padding: 12px 15px;
	border: 1px solid var(--zieu-line);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color .13s, transform .13s;
}

.zieu-gate__role:hover { border-color: var(--zieu-accent); transform: translateY(-1px); }
.zieu-gate__who { font-weight: 600; font-size: 15.5px; }
.zieu-gate__job { grid-column: 2; grid-row: 1; font-size: 12.5px; color: var(--zieu-accent); align-self: center; white-space: nowrap; }
.zieu-gate__what { grid-column: 1 / -1; font-size: 13px; color: var(--zieu-muted); }

.zieu-gate__note {
	margin: 22px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--zieu-line);
	font-size: 13px;
	color: var(--zieu-muted);
}

.zieu-gate__back { margin: 10px 0 0; font-size: 13px; }

@media (max-width: 760px) {
	.zieu-appbar { gap: 10px; padding: 10px 14px; }
	.zieu-appbar__user { width: 100%; margin-left: 0; justify-content: space-between; }
	.zieu-appmain { padding: 0 14px 50px; }
}
