/* Poster — pages de compte (connexion, inscription, mot de passe oublié, mon compte).
   Pensé pour le fond bleu nuit du thème « poster » : texte clair, champs blancs, boutons blancs. */

.poster-ui {
	--poster-text: #F2F5FA;
	--poster-muted: rgba(242, 245, 250, .72);
	--poster-line: rgba(255, 255, 255, .14);
	--poster-card: rgba(1, 12, 34, .55);
	--poster-ink: #0B1F40;
	--poster-sky: #8DC0FB;
	--poster-ice: #CFE4FF;
	--poster-danger: #FF8F8F;
	--poster-title: var(--wp--preset--font-family--barlow, "Barlow Condensed", Impact, "Arial Narrow", sans-serif);
	color: var(--poster-text);
	font-size: 16px;
	line-height: 1.5;
	max-width: 760px;
	margin-inline: auto;
	box-sizing: border-box;
}
.poster-ui *, .poster-ui *::before, .poster-ui *::after { box-sizing: border-box; }
.poster-ui + .poster-ui { margin-top: 0; }
.poster-ui p { margin: 0 0 12px; }
.poster-ui a { color: var(--poster-ice); }
.poster-ui a:hover { color: #fff; }

/* ---------- Cartes ---------- */
.poster-card {
	background: var(--poster-card);
	border: 1px solid var(--poster-line);
	border-radius: 18px;
	padding: 24px;
	margin: 0 0 18px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.poster-ui > .poster-card:only-child { max-width: 560px; }
.poster-card--danger { border-color: rgba(255, 143, 143, .45); }
.poster-lead { color: var(--poster-muted); margin-bottom: 16px !important; }

/* ---------- Titres ---------- */
.poster-h2, .poster-h3, .poster-team__name, .poster-hello {
	font-family: var(--poster-title);
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
	color: #fff;
	letter-spacing: .01em;
}
.poster-h2 { font-size: 30px; margin: 6px 0 16px; }
.poster-h3 { font-size: 22px; margin: 0 0 14px; }

/* ---------- Formulaires ---------- */
.poster-form { margin: 0; }
.poster-field { margin: 0 0 16px; min-width: 0; }
.poster-field label {
	display: block;
	font-weight: 600;
	font-size: 15px;
	margin: 0 0 6px;
	color: var(--poster-text);
}
.poster-ui input[type="text"],
.poster-ui input[type="email"],
.poster-ui input[type="password"],
.poster-ui input[type="number"],
.poster-ui select {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	font: 500 16px/1.3 var(--wp--preset--font-family--montserrat, system-ui, sans-serif);
	color: var(--poster-ink);
	background: #fff;
	border: 2px solid #fff;
	border-radius: 6px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}
.poster-ui select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B1F40' stroke-width='2.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.poster-ui [hidden] { display: none !important; }
.poster-ui input::placeholder { color: #6B7A90; opacity: 1; }
.poster-ui input:focus, .poster-ui select:focus { outline: 3px solid var(--poster-sky); outline-offset: 2px; border-color: var(--poster-sky); }
.poster-help { font-size: 14px; color: var(--poster-muted); margin: 6px 0 0 !important; }

.poster-check { margin: 4px 0 18px; }
.poster-check label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.poster-check input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--poster-sky); cursor: pointer; }

/* Champ piège anti-robot : hors de l'écran, sans display:none (certains robots l'ignorent). */
.poster-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.poster-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* Formulaire en ligne : nom + sport + bouton */
.poster-inline { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.poster-inline .poster-field { flex: 0 1 180px; }
.poster-inline .poster-grow { flex: 1 1 240px; }
.poster-inline .poster-field--btn { flex: 0 0 auto; }

/* ---------- Boutons ---------- */
.poster-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	font-family: var(--poster-title);
	font-style: italic;
	font-weight: 800;
	font-size: 19px;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--poster-ink) !important;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 4px;
	cursor: pointer;
	transition: transform .15s, background .15s, color .15s, border-color .15s;
	white-space: nowrap;
}
.poster-btn:hover { background: var(--poster-ice); border-color: var(--poster-ice); transform: translateY(-1px); }
.poster-btn:focus-visible { outline: 3px solid var(--poster-sky); outline-offset: 3px; }
.poster-btn--small { min-height: 48px; padding: 10px 18px; font-size: 17px; }
.poster-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .85); }
.poster-btn--ghost:hover { background: #fff; color: var(--poster-ink) !important; border-color: #fff; }
.poster-btn--danger { background: transparent; color: #FFC2C2 !important; border-color: var(--poster-danger); }
.poster-btn--danger:hover { background: var(--poster-danger); border-color: var(--poster-danger); color: #2A0606 !important; }

.poster-linkbtn {
	background: none;
	border: 0;
	padding: 6px 0;
	color: #FFC2C2;
	font: 600 14px/1.2 inherit;
	font-family: inherit;
	text-decoration: underline;
	text-underline-offset: .18em;
	cursor: pointer;
}
.poster-linkbtn:hover { color: #fff; }

.poster-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.poster-actions .poster-btn { flex: 0 0 auto; }
.poster-links { margin: 18px 0 0 !important; font-size: 15px; color: var(--poster-muted); }

/* ---------- Messages ---------- */
.poster-notice {
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 18px;
	font-size: 15px;
	color: #fff;
	border-left: 4px solid;
}
.poster-notice p { margin: 0 !important; }
.poster-notice ul { margin: 0; padding-left: 1.1em; }
.poster-notice--error { background: rgba(229, 72, 77, .22); border-color: #FF6B6B; }
.poster-notice--success { background: rgba(48, 164, 108, .22); border-color: #4ADE80; }
.poster-notice a { color: #fff; font-weight: 700; }

.poster-empty { color: var(--poster-muted); margin: 0 !important; }

/* ---------- Mon compte : en-tête et onglets ---------- */
.poster-account__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}
.poster-hello { font-size: 26px; margin: 0 !important; }
.poster-actions--head { margin: 0; }

.poster-tabs { margin: 0 0 22px; border-bottom: 1px solid var(--poster-line); }
.poster-tabs ul {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0 0 10px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.poster-tabs ul::-webkit-scrollbar { display: none; }
.poster-tabs li { flex: 0 0 auto; margin: 0; }
.poster-tabs a {
	display: block;
	padding: 9px 14px;
	border-radius: 4px;
	font-family: var(--poster-title);
	font-style: italic;
	font-weight: 800;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--poster-ice);
	text-decoration: none;
	border: 2px solid transparent;
	white-space: nowrap;
}
.poster-tabs a:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.poster-tabs a.is-active { background: #fff; color: var(--poster-ink); }

/* ---------- Équipes ---------- */
.poster-teams { list-style: none; margin: 0 0 8px; padding: 0; }
.poster-team__head { margin-bottom: 14px; }
.poster-team__name { font-size: 26px; margin: 0 0 6px; overflow-wrap: anywhere; }
.poster-team__meta { color: var(--poster-muted); font-size: 15px; margin: 0 !important; }
.poster-team .poster-inline { padding-top: 14px; border-top: 1px solid var(--poster-line); }
.poster-team__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.poster-team__foot form { margin: 0; }
.poster-card--add { border-style: dashed; }

/* ---------- Logos ---------- */
.poster-logos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.poster-logo { padding: 14px; margin: 0; display: flex; flex-direction: column; }
.poster-logo__img {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 12px;
	background-color: #fff;
	background-image:
		linear-gradient(45deg, #D9DEE6 25%, transparent 25%),
		linear-gradient(-45deg, #D9DEE6 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #D9DEE6 75%),
		linear-gradient(-45deg, transparent 75%, #D9DEE6 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.poster-logo__img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.poster-badge {
	position: absolute;
	left: 8px;
	top: 8px;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--poster-ink);
	color: #fff;
	font-family: var(--poster-title);
	font-style: italic;
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.poster-logo__form .poster-field { margin-bottom: 10px; }
.poster-logo__form .poster-btn { width: 100%; }
.poster-logo form + form { margin-top: 6px; text-align: center; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.poster-card { padding: 18px; border-radius: 14px; }
	.poster-h2 { font-size: 26px; }
	.poster-row { grid-template-columns: 1fr; }
	.poster-inline .poster-field { flex: 1 1 0; }
	.poster-inline .poster-grow { flex: 1 1 100%; }
	.poster-inline .poster-field--btn { flex: 0 0 auto; }
	.poster-form > .poster-actions .poster-btn { width: 100%; }
	.poster-account__head { flex-direction: column; align-items: stretch; }
	.poster-actions--head .poster-btn { flex: 1 1 0; }
	.poster-team__foot > .poster-btn { flex: 1 1 auto; }
	.poster-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.poster-logo { padding: 10px; }
	.poster-logo__form .poster-btn { padding-inline: 8px; font-size: 16px; }
	.poster-tabs { margin-inline: -16px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.poster-btn { transition: none; }
	.poster-btn:hover { transform: none; }
}
