/* 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;
	}

	/* Amis et notifications (page Mon compte, page Notifications). */
	.compte-friend-section { font-weight: 700; margin: 16px 0 6px; opacity: 0.9; }
	.compte-friend-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid rgba(234, 221, 192, 0.12); }
	.compte-friend-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
	.compte-friend-name { flex: 1; font-weight: 600; }
	.compte-friend-ops { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
	.compte-friend-ops .profil-modal-v3-btn { padding: 4px 12px; font-size: 0.85rem; }
	.compte-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
	.compte-notif-actions { text-align: right; margin: 10px 0; }
	/* Bouton sur le fond sombre de la page (les profil-modal-v3-btn sont faits pour les modales claires). */
	.compte-notif-actions .profil-modal-v3-btn { width: auto; max-width: none; color: #eaddc0; border-color: rgba(234, 221, 192, 0.45); background: transparent; padding: 6px 14px; white-space: nowrap; }
	.compte-notif-actions .profil-modal-v3-btn:hover { background: rgba(234, 221, 192, 0.08); }
	.compte-notif-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px; color: #eaddc0; text-decoration: none; border-top: 1px solid rgba(234, 221, 192, 0.12); }
	.compte-notif-row:first-child { border-top: none; }
	.compte-notif-row.unread .compte-notif-message { font-weight: 700; }
	.compte-notif-row.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e66700; align-self: center; flex: none; }
	.compte-notif-message { flex: 1; }
	.compte-notif-date { opacity: 0.7; font-size: 0.85rem; white-space: nowrap; }

	/* --- Page Mon compte (accounts/profil.html) : lignes « réglage » qui se
	   déplient (<details>), sans JS donc compatible CSP. --- */
	.acct-wrap {
		max-width: 720px;
		margin: 0 auto 48px;
		text-align: left;
		color: #eaddc0;
	}

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

	.acct-visually-hidden {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.acct-hero {
		display: flex;
		align-items: center;
		gap: 22px;
		margin-top: 24px;
		padding: 24px;
		border-radius: 16px;
		background: linear-gradient(135deg, #2f3c48 0%, #242d36 100%);
		border: 1px solid rgba(234, 221, 192, 0.08);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	}

	.acct-avatar-form {
		margin: 0;
		flex-shrink: 0;
	}

	.acct-avatar {
		position: relative;
		display: block;
		width: 92px;
		height: 92px;
		margin: 0;
		cursor: pointer;
		border-radius: 50%;
	}

	.acct-avatar img {
		width: 100%;
		height: 100%;
		border-radius: 50%;
		object-fit: cover;
		border: 3px solid var(--color--marron);
		transition: filter 0.15s ease-in-out;
	}

	.acct-avatar:hover img {
		filter: brightness(0.75);
	}

	.acct-avatar:focus-within {
		outline: 2px solid var(--color--marron);
		outline-offset: 3px;
	}

	.acct-avatar-edit {
		position: absolute;
		right: -2px;
		bottom: -2px;
		width: 32px;
		height: 32px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		background: var(--color--marron);
		color: #fff;
		font-size: 0.9rem;
		border: 3px solid #29343f;
	}

	.acct-hero-text {
		min-width: 0;
	}

	.acct-hero-name {
		font-size: 1.5rem;
		font-weight: 700;
		line-height: 1.2;
		margin-bottom: 6px;
		overflow-wrap: anywhere;
	}

	.acct-hero-meta {
		font-size: 0.88rem;
		color: rgba(234, 221, 192, 0.6);
		overflow-wrap: anywhere;
	}

	.acct-intro {
		text-align: center;
		font-size: 0.85rem;
		color: rgba(234, 221, 192, 0.55);
		margin: 14px 0 0;
	}

	.acct-card {
		margin-top: 20px;
		padding: 20px 22px;
		border-radius: 16px;
		background: #29343f;
		border: 1px solid rgba(234, 221, 192, 0.08);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
	}

	.acct-card-title {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0 0 6px;
		font-size: 1.05rem;
		font-weight: 700;
		color: #eaddc0;
	}

	.acct-card-title i {
		color: var(--color--marron);
	}

	.acct-card-desc {
		font-size: 0.85rem;
		color: rgba(234, 221, 192, 0.55);
		margin: 0 0 14px;
	}

	/* Ligne de réglage : libellé | valeur | action. */
	.acct-row {
		border-top: 1px solid rgba(234, 221, 192, 0.1);
	}

	.acct-card-title + .acct-row {
		margin-top: 10px;
	}

	.acct-row > summary,
	.acct-row-static {
		display: grid;
		grid-template-columns: 150px 1fr auto;
		align-items: center;
		gap: 12px;
		padding: 14px 4px;
	}

	/* Seul le bouton « Modifier » déplie la ligne : la ligne entière ignore
	   les clics, le bouton les reçoit (et le <summary> reste activé). */
	.acct-row > summary {
		list-style: none;
		border-radius: 10px;
		pointer-events: none;
	}

	.acct-row > summary::-webkit-details-marker {
		display: none;
	}

	.acct-row-label {
		font-size: 0.85rem;
		font-weight: 600;
		color: rgba(234, 221, 192, 0.6);
	}

	.acct-row-value {
		font-weight: 600;
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.acct-row-dots {
		letter-spacing: 2px;
	}

	.acct-row-note {
		display: block;
		font-size: 0.8rem;
		font-weight: 400;
		color: var(--color--marron);
		margin-top: 2px;
	}

	.acct-row-action {
		pointer-events: auto;
		cursor: pointer;
		padding: 6px 14px;
		border-radius: 8px;
		font-size: 0.82rem;
		font-weight: 600;
		background: var(--color--anthracite);
		color: var(--color--beige);
		transition: background-color 0.15s ease-in-out;
	}

	.acct-row-action:hover {
		background: var(--color--anthracite-v2);
	}

	.acct-when-open,
	.acct-row[open] .acct-when-closed {
		display: none;
	}

	.acct-row[open] .acct-when-open {
		display: inline;
	}

	.acct-badge {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 4px 10px;
		border-radius: 999px;
		font-size: 0.78rem;
		font-weight: 600;
		background: rgba(234, 221, 192, 0.1);
	}

	.acct-row-form {
		padding: 4px 4px 18px 166px;
	}

	.acct-row-form label {
		display: block;
		font-size: 0.82rem;
		font-weight: 600;
		color: rgba(234, 221, 192, 0.75);
		margin: 0 0 6px;
	}

	.acct-row-form-stack input + label {
		margin-top: 12px;
	}

	.acct-wrap input[type="text"],
	.acct-wrap input[type="email"],
	.acct-wrap input[type="password"] {
		width: 100%;
		box-sizing: border-box;
		padding: 10px 14px;
		border-radius: 10px;
		border: 1px solid rgba(234, 221, 192, 0.18);
		background: #1f272f;
		color: #eaddc0;
		font-size: 0.95rem;
		transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	}

	.acct-wrap input::placeholder {
		color: rgba(234, 221, 192, 0.35);
	}

	.acct-wrap input[type="text"]:focus,
	.acct-wrap input[type="email"]:focus,
	.acct-wrap input[type="password"]:focus {
		outline: none;
		border-color: var(--color--marron);
		box-shadow: 0 0 0 3px rgba(230, 103, 0, 0.2);
	}

	.acct-wrap input:-webkit-autofill,
	.acct-wrap input:-webkit-autofill:hover,
	.acct-wrap input:-webkit-autofill:focus {
		-webkit-text-fill-color: #eaddc0;
		-webkit-box-shadow: 0 0 0 1000px #1f272f inset;
		transition: background-color 9999s ease-in-out 0s;
	}

	.acct-input-row {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}

	.acct-input-row > input,
	.acct-input-row > .acct-input-icon {
		flex: 1 1 220px;
		min-width: 0;
	}

	.acct-input-icon {
		position: relative;
	}

	.acct-input-icon i {
		position: absolute;
		left: 14px;
		top: 50%;
		transform: translateY(-50%);
		color: rgba(234, 221, 192, 0.4);
		pointer-events: none;
	}

	.acct-wrap .acct-input-icon input {
		padding-left: 40px;
	}

	.acct-form-actions {
		display: flex;
		justify-content: flex-end;
		margin-top: 14px;
	}

	.acct-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 10px 20px;
		border-radius: 10px;
		border: none;
		font-weight: 600;
		font-size: 0.9rem;
		white-space: nowrap;
		cursor: pointer;
		transition: background-color 0.15s ease-in-out;
	}

	.acct-btn-primary {
		background: var(--color--anthracite);
		color: var(--color--beige);
	}

	.acct-btn-primary:hover {
		background: var(--color--anthracite-v2);
		color: var(--color--beige);
	}

	.acct-error,
	.acct-wrap .profil-modal-v3-error {
		color: #ff8a7a;
		font-size: 0.82rem;
		margin: 0 0 6px;
	}

	.acct-error-block {
		text-align: center;
		margin-top: 10px;
	}

	.acct-subtitle {
		display: flex;
		align-items: center;
		gap: 8px;
		margin: 20px 0 6px;
		font-size: 0.8rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: rgba(234, 221, 192, 0.6);
	}

	.acct-count {
		padding: 1px 8px;
		border-radius: 999px;
		background: rgba(230, 103, 0, 0.2);
		color: var(--color--marron);
		font-size: 0.75rem;
	}

	.acct-empty {
		margin: 6px 0 0;
		padding: 16px;
		border-radius: 10px;
		border: 1px dashed rgba(234, 221, 192, 0.15);
		text-align: center;
		font-size: 0.88rem;
		color: rgba(234, 221, 192, 0.55);
	}

	/* Lignes d'amis (accounts/friend_row.html), aussi utilisées hors profil. */
	.acct-wrap .compte-friend-row {
		padding: 10px 4px;
		border-top: 1px solid rgba(234, 221, 192, 0.08);
	}

	.acct-wrap .compte-friend-avatar {
		width: 36px;
		height: 36px;
	}

	.acct-wrap .compte-friend-ops .profil-modal-v3-btn {
		flex: 0 0 auto;
		max-width: none;
		width: auto;
		border-radius: 8px;
		padding: 5px 12px;
		font-size: 0.82rem;
	}

	.acct-wrap .compte-friend-ops .profil-modal-v3-btn-solid {
		background: var(--color--anthracite);
		color: var(--color--beige);
	}

	.acct-wrap .compte-friend-ops .profil-modal-v3-btn-solid:hover {
		background: var(--color--anthracite-v2);
	}

	.acct-wrap .compte-friend-ops .profil-modal-v3-btn-ghost {
		background: transparent;
		border: 1px solid rgba(234, 221, 192, 0.25);
		color: #eaddc0;
	}

	.acct-wrap .compte-friend-ops .profil-modal-v3-btn-ghost:hover {
		background: rgba(234, 221, 192, 0.08);
	}

	.acct-switch-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin: 12px 0 0;
		padding: 14px 4px;
		border-top: 1px solid rgba(234, 221, 192, 0.1);
	}

	.acct-switch-row label {
		margin: 0;
		cursor: pointer;
	}

	.acct-switch {
		appearance: none;
		-webkit-appearance: none;
		flex-shrink: 0;
		position: relative;
		width: 44px;
		height: 24px;
		margin: 0;
		border-radius: 999px;
		background: rgba(234, 221, 192, 0.2);
		cursor: pointer;
		transition: background-color 0.15s ease-in-out;
	}

	.acct-switch::after {
		content: "";
		position: absolute;
		top: 3px;
		left: 3px;
		width: 18px;
		height: 18px;
		border-radius: 50%;
		background: #fff;
		transition: transform 0.15s ease-in-out;
	}

	.acct-switch:checked {
		background: var(--color--marron);
	}

	.acct-switch:checked::after {
		transform: translateX(20px);
	}

	.acct-switch:focus-visible {
		outline: 2px solid var(--color--marron);
		outline-offset: 2px;
	}

	.acct-link {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		margin-top: 4px;
		font-size: 0.88rem;
		font-weight: 600;
		color: #eaddc0;
		text-decoration: none;
	}

	.acct-link:hover {
		color: var(--color--beige);
		text-decoration: underline;
	}

	/* Mobile : libellé au-dessus de la valeur, formulaires sans retrait. */
	.acct-wrap {
		padding: 0 12px;
	}

	.acct-hero {
		flex-direction: column;
		text-align: center;
		padding: 22px 16px;
	}

	.acct-card {
		padding: 18px 16px;
	}

	.acct-row > summary,
	.acct-row-static {
		grid-template-columns: 1fr auto;
		row-gap: 2px;
	}

	.acct-row-label {
		grid-column: 1 / -1;
	}

	.acct-row-form {
		padding: 4px 4px 18px;
	}

	.acct-input-row > .acct-btn {
		flex: 1 1 100%;
	}

	/* Suppression du compte. */
	.acct-card-danger {
		border-color: rgba(255, 138, 122, 0.35);
	}

	.acct-card-danger .acct-card-title i,
	.acct-link-danger,
	.acct-link-danger:hover {
		color: #ff8a7a;
	}

	.acct-delete-list {
		margin: 0 0 14px;
		padding-left: 20px;
		font-size: 0.88rem;
		line-height: 1.5;
	}

	.acct-delete-list li + li {
		margin-top: 6px;
	}

	/* Formulaire pleine largeur (acct-row-form est décalé pour les lignes du profil). */
	.acct-delete-form {
		padding: 4px 0 0;
	}

	.acct-delete-form .acct-form-actions,
	.acct-delete-actions {
		gap: 10px;
		flex-wrap: wrap;
	}

	.acct-btn-danger {
		background: #c0392b;
		color: #fff;
	}

	.acct-btn-danger:hover {
		background: #a5301f;
		color: #fff;
	}

	.acct-btn-ghost {
		background: transparent;
		color: var(--color--beige);
		border: 1px solid rgba(234, 221, 192, 0.25);
		text-decoration: none;
	}

	.acct-btn-ghost:hover {
		color: var(--color--beige);
		border-color: rgba(234, 221, 192, 0.5);
		text-decoration: none;
	}
}
