/* Formulaires et cartes des pages de compte : règles reprises à l'identique
 * de game_hosting/static/css/style-mobile.css (classes hostv2-wrap, profil-v2-*,
 * profil-modal-v3*, login-v2-*), pour garder le même aspect que game-hosting.
 * Même enveloppe @media que la feuille d'origine. */
@media screen and (max-width: 1100px) {


	/* --- Profil (design "feed", cohérent avec Notifications) --- */
	.profil-v2-wrap {
		max-width: 100%;
		margin: 0 auto 40px;
		text-align: left;
	}

	.profil-v2-wrap h1 {
		text-align: center;
	}

	.profil-v2-hero {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 18px;
		background: #29343f;
		border-radius: 12px;
		padding: 18px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		margin-top: 20px;
	}

	.profil-v2-avatar {
		width: 72px;
		height: 72px;
		border-radius: 50%;
		object-fit: cover;
		object-position: center right;
		border: 2px solid var(--color--marron);
		flex-shrink: 0;
	}

	.profil-v2-hero-name {
		font-size: 1.3rem;
		font-weight: 700;
		color: #eaddc0;
	}

	.profil-v2-edit-icon {
		cursor: pointer;
		margin-left: 8px;
		font-size: 0.9rem;
		color: rgba(234, 221, 192, 0.6);
	}

	.profil-v2-hero-date {
		font-size: 0.85rem;
		color: rgba(234, 221, 192, 0.6);
		margin-top: 4px;
	}

	.profil-v2-stats {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		margin-top: 16px;
	}

	.profil-v2-stat {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		background: #29343f;
		border-radius: 12px;
		padding: 14px 8px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		text-align: center;
	}

	.profil-v2-stat-icon {
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background: var(--color--marron);
		color: var(--color--beige);
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.profil-v2-stat-icon i {
		line-height: 1;
		position: relative;
		left: 2px;
	}

	.profil-v2-stat-icon i.bi-star-fill {
		left: 2.5px;
	}

	.profil-v2-stat-value {
		font-size: 1.2rem;
		font-weight: 700;
		color: #eaddc0;
	}

	.profil-v2-stat-label {
		font-size: 0.72rem;
		color: rgba(234, 221, 192, 0.6);
	}

	.profil-v2-actions {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-top: 18px;
	}

	.profil-v2-action-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		color: var(--color--beige);
		background: var(--color--anthracite);
		border-radius: 20px;
		padding: 8px 16px;
		font-size: 0.85rem;
		font-weight: 600;
		text-decoration: none;
	}

	.profil-v2-card {
		background: #29343f;
		color: #eaddc0;
		border-radius: 12px;
		padding: 16px 18px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		margin-top: 18px;
	}

	.profil-v2-card .profil-modal-v3-field label {
		color: #eaddc0;
	}

	.profil-v2-card-header {
		font-weight: 700;
		color: #eaddc0;
		display: flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 12px;
	}

	.profil-v2-info {
		font-size: 0.85rem;
		color: rgba(234, 221, 192, 0.6);
		cursor: help;
	}

	.profil-v2-section-label {
		font-size: 0.8rem;
		font-weight: 700;
		color: rgba(234, 221, 192, 0.6);
		text-transform: uppercase;
		letter-spacing: 0.03em;
		margin: 14px 0 8px;
	}

	.profil-v2-section-label:first-of-type {
		margin-top: 0;
	}

	.profil-v2-friend-item {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 12px;
		background: #33465a;
		border-radius: 10px;
		padding: 10px 12px;
		border-left: 4px solid transparent;
		margin-bottom: 8px;
	}

	.profil-v2-friend-pending {
		border-left-color: var(--color--marron);
	}

	.profil-v2-friend-blocked {
		opacity: 0.7;
	}

	.profil-v2-friend-avatar {
		flex-shrink: 0;
		width: 34px;
		height: 34px;
		border-radius: 50%;
		object-fit: cover;
		object-position: center right;
	}

	.profil-v2-friend-body {
		display: flex;
		flex-direction: column;
		gap: 2px;
		min-width: 0;
		flex-grow: 1;
	}

	.profil-v2-friend-name {
		font-weight: 600;
		color: #eaddc0;
	}

	.profil-v2-friend-date {
		font-size: 0.75rem;
		color: rgba(234, 221, 192, 0.6);
	}

	.profil-v2-friend-actions {
		display: flex;
		gap: 10px;
		flex-shrink: 0;
		margin-left: auto;
	}

	.profil-v2-friend-actions a {
		color: #eaddc0;
		font-size: 1.1rem;
	}

	.profil-v2-empty-friends {
		text-align: center;
		color: rgba(234, 221, 192, 0.6);
		padding: 10px 0;
	}

	.profil-v2-add-friend {
		text-align: center;
		margin-top: 14px;
	}


	/* --- Profil : modals redesignées (structure "confirm dialog") --- */
	.profil-modal-v3 {
		border: none;
		border-radius: 20px;
		box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
		padding: 28px 18px 20px;
		text-align: center;
		position: relative;
	}

	.profil-modal-v3-close {
		position: absolute;
		top: 16px;
		right: 16px;
	}

	.profil-modal-v3-icon {
		width: 56px;
		height: 56px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto 16px;
		font-size: 1.5rem;
		color: #fff;
	}

	.profil-modal-v3-icon i {
		line-height: 1;
		position: relative;
		left: 2px;
	}

	.profil-modal-v3-icon-neutral {
		background: var(--color--anthracite);
	}

	.profil-modal-v3-icon-danger {
		background: #c0392b;
	}

	.profil-modal-v3-icon-success {
		background: #2e8b57;
	}

	.profil-modal-v3-icon-warning {
		background: var(--color--marron);
	}

	.profil-modal-v3-title {
		font-size: 1.15rem;
		font-weight: 700;
		color: var(--color--anthracite);
		margin-bottom: 8px;
	}

	.profil-modal-v3-text {
		color: #6a6a6a;
		font-size: 0.95rem;
		margin-bottom: 22px;
	}

	/* .legal-v2-tip est prévue pour les pages en thème sombre (texte hérité
	   de body, --color--beige-dark) — mais ce modal a un fond clair
	   (--color--white), d'où le texte pâle illisible une fois réutilisée ici
	   sans cet override. */
	.profil-modal-v3-form .legal-v2-tip p {
		color: #6a6a6a;
	}

	.profil-modal-v3-form {
		text-align: left;
	}

	.profil-modal-v3-field {
		margin-bottom: 16px;
	}

	.profil-modal-v3-field-center {
		text-align: center;
	}

	/* Hérite sinon du beige du thème sombre (body), illisible sur le fond
	   clair des modales. */
	.profil-modal-v3 .notif-toggle-label {
		color: var(--color--anthracite);
	}

	/* Interrupteurs en modale alignés à gauche : centrés, les longueurs de
	   libellés différentes décalaient chaque interrupteur. */
	.profil-modal-v3 .notif-toggle-row {
		justify-content: flex-start;
	}

	.profil-modal-v3-field label {
		display: block;
		font-weight: 600;
		color: var(--color--anthracite);
		margin-bottom: 6px;
		font-size: 0.9rem;
	}

	.profil-modal-v3-field input[type="text"],
	.profil-modal-v3-field input[type="password"],
	.profil-modal-v3-field input[type="email"],
	.profil-modal-v3-field input[type="number"],
	.profil-modal-v3-field input[type="time"],
	.profil-modal-v3-field select,
	.profil-modal-v3-field textarea {
		width: 100%;
		border-radius: 10px;
		border: 1px solid #ddd;
		background-clip: padding-box;
		padding: 10px 12px;
		box-sizing: border-box;
		font-size: 0.95rem;
		background-color: #fff;
		color: var(--color--anthracite);
	}

	.profil-modal-v3-field textarea {
		resize: vertical;
		min-height: 120px;
		font-family: inherit;
	}

	.profil-modal-v3-field select {
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		padding-right: 34px;
		background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23303030'%3E%3Cpath d='M4 6l4 4 4-4H4z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 12px center;
		background-size: 14px;
	}

	.profil-modal-v3-field select option {
		background: #fff;
		color: var(--color--anthracite);
	}

	.profil-modal-v3-field select option:hover {
		background: var(--color--anthracite);
		color: var(--color--beige);
	}

	.profil-modal-v3-field input:focus,
	.profil-modal-v3-field select:focus,
	.profil-modal-v3-field textarea:focus {
		outline: none;
		border-color: var(--color--anthracite);
	}

	.profil-modal-v3-field input:-webkit-autofill,
	.profil-modal-v3-field input:-webkit-autofill:hover,
	.profil-modal-v3-field input:-webkit-autofill:focus {
		-webkit-box-shadow: 0 0 0 1000px #fff inset;
		-webkit-text-fill-color: var(--color--anthracite);
		transition: background-color 9999s ease-in-out 0s;
	}

	.profil-modal-v3-field input[type="file"] {
		color: var(--color--anthracite);
	}

	.profil-modal-v3-error {
		color: #c0392b;
		font-size: 0.82rem;
		margin-top: 4px;
		margin-bottom: 6px;
	}

	.profil-modal-v3-error-center {
		text-align: center;
	}

	.profil-modal-v3-avatar-preview {
		width: 96px;
		height: 96px;
		border-radius: 50%;
		object-fit: cover;
		object-position: center right;
		display: block;
		margin: 0 auto 18px;
		border: 3px solid var(--color--anthracite);
	}

	.profil-modal-v3-actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-top: 8px;
	}

	.profil-modal-v3-btn {
		flex: 1;
		max-width: none;
		border-radius: 20px;
		padding: 10px 0;
		font-weight: 600;
		font-size: 0.9rem;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
		border: none;
	}

	.profil-modal-v3-btn-ghost {
		background: transparent;
		border: 1px solid #ccc;
		color: #6a6a6a;
	}

	.profil-modal-v3-btn-ghost:hover {
		background: #d8d8d8;
		border-color: #b5b5b5;
		color: #3a3a3a;
	}

	.profil-modal-v3-btn-solid {
		background: var(--color--anthracite);
		color: var(--color--beige);
	}

	.profil-modal-v3-btn-solid:hover {
		background: var(--color--anthracite-v2);
		color: var(--color--beige);
		text-decoration: none;
	}

	.profil-modal-v3-btn-danger {
		background: #c0392b;
		color: #fff;
	}

	.profil-modal-v3-btn-danger:hover {
		background: #a5301f;
		color: #fff;
		text-decoration: none;
	}

	.profil-modal-v3-btn-success {
		background: #2e8b57;
		color: #fff;
	}

	.profil-modal-v3-btn-success:hover {
		background: #256f45;
		color: #fff;
		text-decoration: none;
	}

	.profil-modal-v3 .jeu-v2-action-icon {
		color: var(--color--anthracite);
	}

	.profil-modal-v3 .jeu-v2-action-icon:hover {
		color: var(--color--marron);
	}

	.jeu-v2-empty-text {
		text-align: center;
		color: #8a8a8a;
		font-size: 0.9rem;
		padding: 10px 0;
		margin: 0;
	}


	/* --- Info host (design "feed", cohérent avec Notifications / Profil / Forum / Mes jeux) --- */
	.hostv2-wrap {
		max-width: 100%;
		margin: 0 auto 40px;
		text-align: left;
	}

	.hostv2-wrap h1 {
		text-align: center;
	}

	.hostv2-back {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		color: var(--color--beige-dark);
		font-size: 0.85rem;
		font-weight: 600;
		text-decoration: none;
		margin-top: 4px;
		margin-bottom: 0;
	}

	.profil-v2-card-header-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		margin-bottom: 12px;
	}

	.profil-v2-card-header-row .profil-v2-card-header {
		margin-bottom: 0;
	}

	.hostv2-card-subsection .profil-v2-card-header {
		font-size: 0.95em;
	}

	.hostv2-wrap .hostv2-section-heading:first-child,
	.jeu-v2-wrap .hostv2-section-heading:first-child {
		margin-top: 0;
	}


	/* Réglage modifié depuis le dernier démarrage, pris en compte au prochain
	   (cf. Eco_Game_on_selfhosted_host.pending_settings). */
	.hostv2-kv-value.hostv2-kv-value-pending,
	.profil-v2-card-header.hostv2-kv-value-pending,
	.jeu-v2-action-icon.hostv2-kv-value-pending {
		color: var(--color--marron);
	}

	a.profil-v2-stat {
		position: relative;
		text-decoration: none;
		color: inherit;
	}

	.dashboard-v2-row .profil-v2-card {
		margin-top: 0;
	}

	.dashboard-v2-chart-grid .profil-v2-card {
		margin-top: 0;
	}

	.hostv2-security-card .profil-v2-card-header i {
		color: #d64545;
	}

	.hostv2-caution-card .profil-v2-card-header i {
		color: var(--color--marron);
	}

	.addserver-v2-card .profil-modal-v3-field label {
		color: #eaddc0;
	}

	.addserver-v2-card .profil-modal-v3-field input,
	.addserver-v2-card .profil-modal-v3-field select {
		border-radius: 14px;
	}

	.addserver-v2-submit {
		max-width: none;
		width: 100%;
	}


	/* --- Connexion --- */
	.login-v2-card {
		margin-top: 20px;
		border-radius: 20px;
		padding: 22px 20px;
	}

	.login-v2-card .profil-modal-v3-field label {
		color: #eaddc0;
	}

	.login-v2-card .profil-modal-v3-field input {
		border-radius: 14px;
	}

	.login-v2-links {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 6px;
		margin-top: 20px;
		padding-top: 18px;
		border-top: 1px solid rgba(234, 221, 192, 0.2);
		font-size: 0.82rem;
		color: rgba(234, 221, 192, 0.6);
		text-align: center;
	}

	.login-v2-links a {
		color: #eaddc0;
		font-weight: 600;
		text-decoration: underline;
	}

	.login-v2-divider {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 20px 0;
		color: rgba(234, 221, 192, 0.5);
		font-size: 0.75rem;
		text-transform: uppercase;
		letter-spacing: 0.03em;
	}

	.login-v2-divider::before,
	.login-v2-divider::after {
		content: "";
		flex: 1;
		height: 1px;
		background: rgba(234, 221, 192, 0.15);
	}

	.login-v2-google-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		background: #fff;
		color: #3c4043;
		border: 1px solid rgba(0, 0, 0, 0.15);
		border-radius: 14px;
		padding: 12px 16px;
		font-weight: 600;
		font-size: 0.9rem;
		text-decoration: none;
	}

	.login-v2-google-btn i {
		color: #4285F4;
		font-size: 1.1rem;
	}

	.login-v2-google-pending {
		text-align: center;
		color: rgba(234, 221, 192, 0.7);
		margin: 0 0 18px;
	}

	.login-v2-google-pending strong {
		color: #eaddc0;
	}

	.legal-v2-card .profil-v2-card-header ~ .legal-v2-subheading:first-of-type {
		margin-top: 4px !important;
	}

	.privacy-v2-card .profil-v2-card-header,
	.mentions-v2-card .profil-v2-card-header {
		color: #eaddc0;
	}

	.legal-v2-card .profil-modal-v3-actions > form {
		flex: 1;
	}

	.legal-v2-card .profil-modal-v3-actions > form .profil-modal-v3-btn {
		width: 100%;
		max-width: none;
	}
}
