/* ============================================================
   UU CONNEXION — écrans pleine page (connexion + inscription)
   Fond #FAFAFA · bordeaux #6A0031 · email teinté #FFF0F0
   lien bleu #1A73E8 · titres Playfair Display · corps Inter
   ============================================================ */

:root {
	--uu-bg:        #FAFAFA;
	--uu-card:      #FFFFFF;
	--uu-ink:       #6A0031;
	--uu-ink-dark:  #560027;
	--uu-email-bg:  #FFF0F0;
	--uu-link:      #1A73E8;
	--uu-border:    #DADCE0;
	--uu-border-h:  #6A0031;
	--uu-text:      #202124;
	--uu-muted:     #7a6b73;
	--uu-placeholder:#b6a3ac;
	--uu-danger-bg: #FAD2CF;
	--uu-danger-fg: #8B1A10;
	--uu-ok-bg:     #CEEAD6;
	--uu-ok-fg:     #137333;
	--uu-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--uu-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* , *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body.uu-auth-body {
	margin: 0;
	font-family: var(--uu-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--uu-text);
	background: var(--uu-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.uu-auth { min-height: 100vh; min-height: 100svh; }


/* ============================================================
   CONNEXION — split form + image
   ============================================================ */
.uu-auth--split { display: flex; align-items: stretch; }

.uu-auth__panel {
	flex: 1 1 54%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
}

.uu-auth__inner { width: 100%; max-width: 360px; }

.uu-auth__brand { margin-bottom: 18px; }
.uu-auth__brand--center { display: flex; justify-content: center; }
.uu-auth__brand--center img { height: 72px; }
.uu-auth__brand img { height: 64px; width: auto; display: block; }
.uu-auth__title {
	margin: 0 0 22px;
	font-family: var(--uu-sans);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--uu-ink);
}
.uu-auth__subtitle { margin: 8px 0 26px; font-size: 15px; color: var(--uu-muted); }

/* Panneau image */
.uu-auth__media {
	flex: 1 1 46%;
	position: relative;
	background-image: var(--uu-bg-img);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.uu-auth__media-veil {
	position: absolute; inset: 0;
	background: linear-gradient( 160deg, rgba(106,0,49,0.12) 0%, rgba(106,0,49,0.42) 100% );
}
.uu-auth__media-tag {
	position: absolute;
	left: 40px; bottom: 40px; right: 40px;
	margin: 0;
	font-family: var(--uu-serif);
	font-style: italic;
	font-weight: 500;
	font-size: 26px;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 1px 18px rgba(60,20,35,0.35);
}


/* ============================================================
   INSCRIPTION — assistant centré
   ============================================================ */
.uu-auth--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px 20px 64px;
}

.uu-wizard { width: 100%; max-width: 560px; }

.uu-wizard__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-bottom: 40px;
}
.uu-wizard__brand img { height: 52px; width: auto; display: block; }
.uu-wizard__progress {
	width: 100%;
	height: 4px;
	background: var(--uu-border);
	border-radius: 999px;
	overflow: hidden;
}
.uu-wizard__bar {
	display: block; height: 100%;
	background: var(--uu-ink);
	border-radius: 999px;
	transition: width 280ms cubic-bezier(0.2,0,0,1);
}

.uu-step__title {
	margin: 0;
	text-align: center;
	font-family: var(--uu-sans);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--uu-text);
}
.uu-step__sub {
	margin: 10px auto 30px;
	max-width: 420px;
	text-align: center;
	font-size: 15px;
	color: var(--uu-muted);
}


/* ============================================================
   CHAMPS — partagés
   ============================================================ */
.uu-auth__form, .uu-step { display: flex; flex-direction: column; gap: 12px; }

.uu-field { display: flex; flex-direction: column; gap: 6px; }
.uu-field__label { font-size: 13px; font-weight: 600; color: var(--uu-text); }
.uu-field__label em { font-style: normal; font-weight: 500; color: var(--uu-muted); }

.uu-input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 14px;
	color: var(--uu-text);
	background: var(--uu-card);
	border: 1px solid var(--uu-border);
	border-radius: 12px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
	-webkit-appearance: none; appearance: none;
}
.uu-input::placeholder { color: var(--uu-placeholder); }
.uu-input:focus {
	outline: none;
	border-color: var(--uu-border-h);
	box-shadow: 0 0 0 3px rgba(106,0,49,0.12);
}
.uu-input.is-invalid { border-color: var(--uu-danger-fg); box-shadow: 0 0 0 3px rgba(217,48,37,0.12); }


.uu-textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }

.uu-field__err { font-size: 12.5px; color: var(--uu-danger-fg); min-height: 1px; }

/* Select : chevron custom */
.uu-select { position: relative; display: block; }
.uu-select select { padding-right: 40px; cursor: pointer; }
.uu-select::after {
	content: "";
	position: absolute; right: 16px; top: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid var(--uu-muted);
	border-bottom: 2px solid var(--uu-muted);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

/* Mot de passe + toggle */
.uu-pwd { position: relative; display: block; }
.uu-pwd .uu-input { padding-right: 48px; }
.uu-pwd__toggle {
	position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0;
	background: transparent; border: 0; border-radius: 8px;
	color: var(--uu-muted); cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
}
.uu-pwd__toggle:hover { background: var(--uu-email-bg); color: var(--uu-ink); }
.uu-pwd__toggle.is-on { color: var(--uu-ink); }
.uu-pwd__toggle svg { width: 20px; height: 20px; }


/* ============================================================
   LIGNES / LIENS / ALERTES
   ============================================================ */
	.uu-auth__row--end { justify-content: flex-end; }
.uu-auth__row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-top: -2px; font-size: 13px;
}
.uu-check { display: inline-flex; align-items: center; gap: 8px; color: var(--uu-muted); cursor: pointer; }
.uu-check input { accent-color: var(--uu-ink); width: 16px; height: 16px; }
.uu-link { color: var(--uu-text); text-decoration: none; }
.uu-link:hover { text-decoration: underline; }

.uu-auth__alert, .uu-wizard__alert {
	margin-bottom: 18px;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 500;
}
.uu-auth__alert--error, .uu-wizard__alert { background: var(--uu-danger-bg); color: var(--uu-danger-fg); }
.uu-auth__alert--ok { background: var(--uu-ok-bg); color: var(--uu-ok-fg); }
.uu-wizard__alert { margin-top: 4px; }


/* ============================================================
   BOUTONS
   ============================================================ */
.uu-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; height: 44px; padding: 0 16px;
	font-family: inherit; font-size: 14px; font-weight: 600;
	border-radius: 8px; border: 1px solid transparent;
	cursor: pointer; text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 60ms ease, opacity 160ms ease;
}
.uu-btn:active { transform: translateY(1px); }
.uu-btn:disabled { opacity: 0.6; cursor: default; }

.uu-btn--primary { margin-top: 4px; background: var(--uu-ink); color: #fff; }
.uu-btn--primary:hover { background: var(--uu-ink-dark); }

.uu-btn--soft { margin-top: 4px; background: #FFF0F0; color: var(--uu-ink); border-color: rgba(106,0,49,0.16); }
.uu-btn--soft:hover { background: #FBE0E0; border-color: rgba(106,0,49,0.30); }

.uu-btn--create { margin-top: 14px; width: 100%; background: #fff; color: #1A73E8; border-color: var(--uu-border); }
.uu-btn--create:hover { background: #F6F9FE; border-color: #C9D6EA; }

.uu-btn--google { background: #fff; color: #3c4043; border-color: var(--uu-border); }
.uu-btn--google:hover { background: #fcf6f8; border-color: #d9c4cc; box-shadow: 0 1px 3px rgba(106,0,49,0.08); }
.uu-btn__icon { display: inline-flex; }
.uu-btn__icon svg { width: 18px; height: 18px; }

.uu-btn--ghost {
	background: transparent; color: var(--uu-ink);
	border-color: rgba(106,0,49,0.35);
}
.uu-btn--ghost:hover { background: rgba(106,0,49,0.05); border-color: var(--uu-ink); }


/* ============================================================
   DIVIDER + SWITCH (connexion)
   ============================================================ */
.uu-divider {
	display: flex; align-items: center; gap: 12px;
	margin: 22px 0; color: var(--uu-muted); font-size: 12.5px;
}
.uu-divider::before, .uu-divider::after { content: ""; flex: 1; height: 1px; background: var(--uu-border); }
	.uu-authbox { background: #fff; border: 1px solid var(--uu-border); border-radius: 12px; padding: 16px 16px 18px; }
.uu-divider--bare { justify-content: center; font-size: 14px; margin: 14px 0; }
.uu-divider--bare::before, .uu-divider--bare::after { display: none; }

.uu-auth__create { margin-top: 22px; }


/* ============================================================
   CHIPS (besoins)
   ============================================================ */
.uu-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.uu-chip { position: relative; }
.uu-chip input { position: absolute; opacity: 0; pointer-events: none; }
.uu-chip span {
	display: inline-flex; align-items: center;
	padding: 10px 16px;
	background: var(--uu-card);
	border: 1px solid var(--uu-border);
	border-radius: 999px;
	font-size: 14px; font-weight: 500; color: var(--uu-text);
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.uu-chip span:hover { border-color: #d9c4cc; background: var(--uu-email-bg); }
.uu-chip input:checked + span {
	background: var(--uu-ink); border-color: var(--uu-ink); color: #fff;
}
.uu-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(106,0,49,0.18); }


/* ============================================================
   BLOC CONFIANCE + CONSENTEMENT
   ============================================================ */
.uu-trust {
	margin: 6px 0 2px;
	padding: 16px 18px;
	background: var(--uu-card);
	border: 1px solid var(--uu-border);
	border-radius: 14px;
	display: flex; flex-direction: column; gap: 8px;
}
.uu-trust__item { margin: 0; font-size: 13.5px; color: var(--uu-muted); }
.uu-trust__item strong { color: var(--uu-text); font-weight: 600; }

.uu-consent {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 14px; color: var(--uu-text); cursor: pointer;
}
.uu-consent input { margin-top: 3px; accent-color: var(--uu-ink); width: 17px; height: 17px; flex-shrink: 0; }


/* ============================================================
   PIED ASSISTANT
   ============================================================ */
.uu-wizard__foot {
	display: flex; gap: 12px; margin-top: 26px;
}
.uu-wizard__foot .uu-btn--ghost { flex: 0 0 auto; width: auto; padding: 0 22px; }
.uu-wizard__foot .uu-btn--primary { flex: 1 1 auto; margin-top: 0; }

.uu-wizard__switch { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--uu-muted); }


/* Honeypot caché. */
.uu-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
	.uu-auth__media { display: none; }
	.uu-auth--split {
		background-image: var(--uu-bg-img);
		background-size: cover;
		background-position: center;
	}
	.uu-auth__panel {
		flex-basis: 100%;
		position: relative;
		padding: 28px 18px calc(28px + env(safe-area-inset-bottom, 0));
	}
	.uu-auth__panel::before {
		content: ""; position: absolute; inset: 0;
		background: rgba(20,8,14,0.25);
	}
	.uu-auth__inner { position: relative; z-index: 1; }
}

@media (max-width: 560px) {
	.uu-auth__title { font-size: 20px; }
	.uu-step__title { font-size: 27px; }
	.uu-auth--center { padding: 22px 18px 56px; }
	.uu-wizard__head { margin-bottom: 30px; }
	.uu-wizard__foot { flex-wrap: wrap; }
	.uu-wizard__foot .uu-btn--ghost { width: 100%; }
}


/* Badge connexion sécurisée */
.uu-secure {
	display: flex; align-items: center; gap: 7px;
	margin-top: 14px;
	font-size: 12.5px; color: var(--uu-ok-fg);
}
.uu-secure svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Bandeau cartes bancaires */
.uu-cards { margin-top: 22px; }
.uu-cards__head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 12.5px; color: var(--uu-ok-fg); }
.uu-cards__head svg { width: 16px; height: 16px; }
.uu-cards__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.uu-card {
	display: inline-flex; align-items: center; gap: 6px;
	height: 26px; padding: 0 9px;
	background: #fff; border: 1px solid var(--uu-border);
	border-radius: 6px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
	color: var(--uu-muted);
}
.uu-card--visa { color: #1A1F71; font-style: italic; }
.uu-card--mc   { color: #4d4d4d; font-weight: 600; }
.uu-card--cb   { color: #14387f; }
.uu-card--amex { color: #2671b9; }
.uu-card--lock { color: var(--uu-ok-fg); font-weight: 600; }
.uu-card--lock svg { width: 13px; height: 13px; }
.uu-mc { position: relative; display: inline-block; width: 26px; height: 16px; }
.uu-mc i { position: absolute; top: 0; width: 16px; height: 16px; border-radius: 50%; }
.uu-mc i:first-child { left: 0; background: #EB001B; }
.uu-mc i:last-child  { left: 10px; background: #F79E1B; mix-blend-mode: multiply; }

/* Sélecteur taille entreprise (range segmenté) */
.uu-segment { display: flex; flex-wrap: wrap; gap: 8px; }
.uu-seg input { position: absolute; opacity: 0; pointer-events: none; }
.uu-seg span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 58px; padding: 9px 14px;
	background: var(--uu-card); border: 1px solid var(--uu-border);
	border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--uu-text);
	cursor: pointer; transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.uu-seg span:hover { border-color: #d9c4cc; background: var(--uu-email-bg); }
.uu-seg input:checked + span { background: var(--uu-ink); border-color: var(--uu-ink); color: #fff; }
.uu-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(106,0,49,.18); }

/* Écran de remerciement */
.uu-done { text-align: center; padding: 8px 0 4px; }
.uu-done__icon {
	width: 60px; height: 60px; margin: 0 auto 18px;
	display: flex; align-items: center; justify-content: center;
	background: var(--uu-ok-bg); color: var(--uu-ok-fg);
	border-radius: 50%;
}
.uu-done__icon svg { width: 30px; height: 30px; }
.uu-done .uu-btn--ghost { width: auto; display: inline-flex; margin-top: 24px; padding: 0 24px; }


/* Stat de prestige */
.uu-prestige { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--uu-muted); }
.uu-prestige__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--uu-ink); flex-shrink: 0; }
.uu-prestige__num { font-size: 13px; font-weight: 700; color: var(--uu-text); }
.uu-prestige__unit { font-weight: 600; margin-left: 1px; }
.uu-prestige__label { color: var(--uu-muted); }


/* Texte confidentialité */
.uu-policy { margin: 14px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--uu-muted); }

/* Carte statistique (prestige) */
.uu-statcard {
	display: flex; align-items: center; gap: 12px;
	margin-top: 14px; padding: 11px 13px; gap: 10px;
	background: #fff; border: 1px solid var(--uu-border); border-radius: 12px;
}
.uu-statcard__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #1E8E3E; flex-shrink: 0; animation: uu-blink 1.8s ease-in-out infinite; }
.uu-statcard__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: #1E8E3E; opacity: .35; animation: uu-pulse 1.8s ease-out infinite; }
@keyframes uu-pulse { 0% { transform: scale(.5); opacity: .5; } 70% { transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } }
@keyframes uu-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.uu-statcard__body { min-width: 0; }
.uu-statcard__num { font-size: 14px; font-weight: 700; color: var(--uu-text); line-height: 1.1; }
.uu-statcard__unit { font-size: 12px; font-weight: 600; margin-left: 2px; }
.uu-statcard__label { font-size: 12px; color: var(--uu-muted); margin-top: 2px; }


/* ===== Écran connexion simplifié (carte centrée + bannière) ===== */
.uu-auth--login { justify-content: center; min-height: 100vh; min-height: 100svh; padding: 32px 18px; }

.uu-authcard { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--uu-border); border-radius: 14px; overflow: hidden; }
.uu-authcard__banner { height: 152px; background-size: cover; background-position: center; }
.uu-authcard__body { padding: 28px 28px 12px; display: flex; flex-direction: column; gap: 12px; }
.uu-authcard__logo { display: flex; justify-content: center; margin-bottom: 4px; }
.uu-authcard__logo img { height: 46px; width: auto; }
.uu-authcard__foot { padding: 16px 28px 20px; border-top: 1px solid var(--uu-border); }
.uu-authcard__foot .uu-cards { margin-top: 0; }

.uu-btn--apple { background: #000; color: #fff; border-color: #000; }
.uu-btn--apple:hover { background: #1a1a1a; }
.uu-btn--apple .uu-btn__icon svg { width: 17px; height: 17px; }
.uu-btn--eura { background: #FFF0F0; color: var(--uu-ink); border-color: rgba(106,0,49,0.16); }
.uu-btn--eura:hover { background: #FBE0E0; }

.uu-eura-form[hidden] { display: none; }
.uu-eura-form { display: flex; flex-direction: column; gap: 11px; margin-top: 2px; }

@media (max-width: 480px) {
	.uu-auth--login { padding: 20px 14px; }
	.uu-authcard__banner { height: 110px; }
	.uu-authcard__body { padding: 18px 18px 6px; }
}

.uu-btn__icon img { width: 20px; height: 20px; object-fit: cover; display: block; border-radius: 50%; }
