/*
 * Club des Élèves — styles front.
 * Palette reprise du thème Atelier 34 : bleu #2d4768, sable #f1d67b, texte #333.
 * Tout est préfixé .a34-club pour ne rien déborder sur le reste du site.
 */

.a34-club {
	--a34-bleu: #2d4768;
	--a34-bleu-fonce: #263d5a;
	--a34-sable: #f1d67b;
	--a34-texte: #333;
	--a34-trait: #dfe3e8;
	--a34-fond: #f7f8fa;

	box-sizing: border-box;
	color: var(--a34-texte);
	margin: 0 auto 3rem;
	max-width: 900px;
	padding: 0 1.25rem;
}

.a34-club a {
	color: var(--a34-bleu);
}

/* --- Boutons --------------------------------------------------------- */

.a34-club .a34-club-btn {
	background: var(--a34-bleu);
	border: 1px solid var(--a34-bleu);
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 1rem;
	line-height: 1.2;
	padding: 0.7rem 1.4rem;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.a34-club-btn:hover,
.a34-club-btn:focus {
	background: var(--a34-bleu-fonce);
	color: #fff;
	text-decoration: none;
}

.a34-club-btn--ghost {
	background: transparent;
	color: var(--a34-bleu);
}

.a34-club-btn--ghost:hover,
.a34-club-btn--ghost:focus {
	background: var(--a34-bleu);
	color: #fff;
}

.a34-club-btn--link {
	background: transparent;
	border: 0;
	color: var(--a34-bleu);
	font-size: 0.9rem;
	padding: 0;
	text-decoration: underline;
}

.a34-club-reset {
	font-size: 0.9rem;
	margin-left: 1rem;
}

.a34-club-intro {
	margin-bottom: 1.5rem;
}

/* --- Messages -------------------------------------------------------- */

.a34-club-alert {
	border-left: 4px solid var(--a34-bleu);
	border-radius: 2px;
	margin-bottom: 1.5rem;
	padding: 0.9rem 1.1rem;
}

.a34-club-alert--error {
	background: #fdecea;
	border-left-color: #b32d2e;
}

.a34-club-alert--success {
	background: #edf7ee;
	border-left-color: #3c8c4a;
}

/* --- Écran mot de passe ---------------------------------------------- */

.a34-club-gate__panel {
	background: var(--a34-fond);
	border: 1px solid var(--a34-trait);
	border-radius: 4px;
	margin: 2rem auto;
	max-width: 520px;
	padding: 2rem;
}

.a34-club-gate__title {
	margin-top: 0;
}

.a34-club-gate__intro {
	margin-bottom: 1.5rem;
}

.a34-club-gate__help {
	font-size: 0.9rem;
	margin-bottom: 0;
	margin-top: 1.5rem;
}

/* --- Champs de formulaire -------------------------------------------- */

.a34-club-field {
	margin-bottom: 1.3rem;
}

.a34-club-field > label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.a34-club-field input[type="text"],
.a34-club-field input[type="email"],
.a34-club-field input[type="tel"],
.a34-club-field input[type="search"],
.a34-club-field input[type="password"],
.a34-club-field select,
.a34-club-field textarea {
	border: 1px solid #c3c9d1;
	border-radius: 3px;
	font-size: 1rem;
	max-width: 100%;
	padding: 0.6rem 0.7rem;
	width: 100%;
}

.a34-club-field input:focus,
.a34-club-field select:focus,
.a34-club-field textarea:focus {
	border-color: var(--a34-bleu);
	outline: 2px solid rgba(45, 71, 104, 0.25);
	outline-offset: 1px;
}

.a34-club-field--invalid input,
.a34-club-field--invalid select,
.a34-club-field--invalid textarea {
	border-color: #b32d2e;
}

.a34-club-field--case > label {
	font-weight: 400;
}

.a34-club-field--case input[type="checkbox"] {
	margin-right: 0.4rem;
}

.a34-club-field__aide {
	color: #6b7280;
	display: block;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

.a34-club-field__error {
	color: #b32d2e;
	display: block;
	font-size: 0.9rem;
	margin-top: 0.3rem;
}

.a34-club-req {
	color: #b32d2e;
}

.a34-club-fieldset {
	border: 1px solid var(--a34-trait);
	border-radius: 4px;
	margin-bottom: 1.5rem;
	padding: 1.2rem 1.4rem 0.4rem;
}

.a34-club-fieldset legend {
	font-size: 1rem;
	font-weight: 700;
	padding: 0 0.5rem;
	width: auto;
}

/* Piège à robots : invisible sans être `display:none`, que certains robots détectent. */
.a34-club-honeypot {
	height: 0;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 0;
}

/* --- Barre d'outils ---------------------------------------------------- */

.a34-club-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1.8rem;
}

.a34-club-compteur {
	color: #6b7280;
	font-size: 0.9rem;
}

/* --- Liste des annonces ---------------------------------------------- */

.a34-club-annonces {
	list-style: none;
	margin: 0;
	padding: 0;
}

.a34-club-annonce {
	border: 1px solid var(--a34-trait);
	border-radius: 4px;
	margin-bottom: 1.2rem;
	padding: 1.3rem 1.5rem;
}

.a34-club-annonce__titre {
	margin: 0 0 0.4rem;
}

.a34-club-annonce__photo {
	margin-bottom: 1rem;
}

.a34-club-annonce__photo-btn {
	background: var(--a34-fond);
	border: 0;
	border-radius: 3px;
	cursor: zoom-in;
	display: block;
	max-height: 260px;
	overflow: hidden;
	padding: 0;
}

.a34-club-annonce__photo-btn img {
	display: block;
	height: 260px;
	margin: 0 auto;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.a34-club-annonce__meta {
	align-items: center;
	color: #6b7280;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.88rem;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.a34-club-annonce__texte p:last-child {
	margin-bottom: 0;
}

.a34-club-annonce__contact {
	border-top: 1px solid var(--a34-trait);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1rem;
	padding-top: 0.9rem;
}

.a34-club-annonce__auteur {
	font-weight: 700;
}

.a34-club-vide {
	background: var(--a34-fond);
	border-radius: 4px;
	padding: 2rem;
	text-align: center;
}

/* --- Pagination ------------------------------------------------------ */

.a34-club-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.a34-club-pagination .page-numbers {
	border: 1px solid var(--a34-trait);
	border-radius: 3px;
	display: inline-block;
	padding: 0.4rem 0.8rem;
	text-decoration: none;
}

.a34-club-pagination .page-numbers.current {
	background: var(--a34-bleu);
	border-color: var(--a34-bleu);
	color: #fff;
}

.a34-club-logout {
	margin-top: 2.5rem;
	text-align: right;
}

@media (max-width: 575px) {
	.a34-club-annonce {
		padding: 1rem;
	}
}

/* --- Pop-up photo (loupe) --------------------------------------------- */

.a34-club-lightbox {
	align-items: center;
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 1.5rem;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}

.a34-club-lightbox[hidden] {
	display: none;
}

.a34-club-lightbox__backdrop {
	background: rgba(0, 0, 0, 0.85);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.a34-club-lightbox__dialog {
	max-height: 90vh;
	max-width: 90vw;
	position: relative;
}

.a34-club-lightbox__image {
	border-radius: 3px;
	display: block;
	max-height: 90vh;
	max-width: 90vw;
}

.a34-club-lightbox__close {
	background: #fff;
	border: 0;
	border-radius: 50%;
	color: var(--a34-texte);
	cursor: pointer;
	font-size: 1.5rem;
	height: 2.4rem;
	line-height: 1;
	position: absolute;
	right: -1rem;
	top: -1rem;
	width: 2.4rem;
}
