/* Vitrine du hub (drooft.com). Même enveloppe @media que les feuilles de
 * game_hosting et drooft_commons : à garder synchronisée avec la balise
 * <link media=...> de templates/base.html (seuil 1100/1101 px). */
@media screen and (max-width: 1100px) {
	/* --- Vitrine : haut de page, rayons de tuiles, bloc compte --- */
	.hub-hero,
	.hub-shelves,
	.hub-account {
		max-width: 1100px;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}
	.hub-hero {
		display: grid;
		align-items: center;
		background: radial-gradient(ellipse at 78% 70%, rgba(230, 103, 0, 0.2), transparent 60%), #29343f;
		border-radius: 18px;
		color: #eaddc0;
	}
	.hub-hero h1 {
		font-weight: 800;
		line-height: 1.1;
		text-wrap: balance;
		margin: 0;
	}
	.hub-tagline {
		line-height: 1.5;
		opacity: 0.85;
		margin: 14px 0 22px;
	}
	.hub-hero-ctas {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}
	.hub-btn {
		display: inline-block;
		font-weight: 700;
		padding: 10px 18px;
		border-radius: 9px;
		background: var(--color--marron);
		color: #1d1206;
		text-decoration: none;
		white-space: nowrap;
	}
	.hub-btn:hover,
	.hub-btn:focus-visible {
		background: #ff7a12;
		color: #1d1206;
		text-decoration: none;
	}
	.hub-crew {
		display: flex;
		justify-content: center;
		align-items: flex-end;
	}
	/* Les ratons pairs, plus hauts, sont au second plan : derrière leurs voisins. */
	.hub-crew img {
		position: relative;
		z-index: 2;
		width: auto;
		filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
	}
	.hub-crew img:nth-child(even) {
		z-index: 1;
		transform: translateY(-10px);
	}

	.hub-shelves {
		display: grid;
	}
	.hub-shelf {
		display: grid;
		gap: 14px;
	}
	.hub-shelf-title {
		font-weight: 800;
		color: #eaddc0;
		margin: 0;
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 4px 12px;
	}
	.hub-tiles {
		display: grid;
		gap: 16px;
	}
	/* La mascotte déborde en bas à droite : le texte garde une marge à droite
	   pour ne jamais passer dessous. */
	.hub-tile {
		position: relative;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		gap: 10px;
		border-radius: 16px;
		color: #fff7e8;
		text-decoration: none;
		background: linear-gradient(150deg, var(--app-color), color-mix(in srgb, var(--app-color) 42%, #000));
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
		transition: transform 0.15s ease, box-shadow 0.15s ease;
	}
	.hub-tile:hover,
	.hub-tile:focus-visible {
		color: #fff7e8;
		text-decoration: none;
		transform: translateY(-3px);
		box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
	}
	.hub-tile:focus-visible {
		outline: 3px solid #eaddc0;
		outline-offset: 3px;
	}
	.hub-tile-name,
	.hub-tile-text,
	.hub-tile-tags,
	.hub-tile-action {
		position: relative;
		z-index: 1;
	}
	.hub-tile-name {
		font-weight: 800;
		margin: 0;
		color: #fff7e8;
	}
	.hub-tile-text {
		line-height: 1.45;
		margin: 0;
		opacity: 0.95;
	}
	.hub-tile-tags {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}
	.hub-chip {
		font-size: 0.75rem;
		font-weight: 700;
		padding: 3px 10px;
		border-radius: 999px;
		background: rgba(0, 0, 0, 0.25);
		white-space: nowrap;
	}
	.hub-tile-action {
		margin-top: auto;
		font-weight: 700;
	}
	.hub-tile-action .bi {
		display: inline-block;
		transition: transform 0.15s ease;
	}
	.hub-tile:hover .hub-tile-action .bi {
		transform: translateX(4px);
	}
	.hub-tile-mascot {
		position: absolute;
		right: -8px;
		bottom: -10px;
		width: auto;
		filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
		transition: transform 0.2s ease;
	}
	.hub-tile:hover .hub-tile-mascot {
		transform: translateY(-6px) rotate(-3deg);
	}
	.hub-tile-icon {
		position: absolute;
		right: 18px;
		bottom: 12px;
		font-size: 4rem;
		opacity: 0.35;
	}

	.hub-account {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 16px 24px;
		border-radius: 16px;
		background: #29343f;
		border: 1px solid rgba(230, 103, 0, 0.55);
		color: #eaddc0;
	}
	.hub-account-title {
		font-size: 1.25rem;
		font-weight: 800;
		margin: 0 0 8px;
	}
	.hub-account-list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-wrap: wrap;
		gap: 6px 22px;
		opacity: 0.85;
	}
	.hub-account-list li::before {
		content: "\2713\00a0";
		color: var(--color--marron);
		font-weight: 700;
	}
	.hub-apps-empty {
		text-align: center;
	}
	@media (prefers-reduced-motion: reduce) {
		.hub-tile,
		.hub-tile-mascot,
		.hub-tile-action .bi {
			transition: none;
		}
	}

	.hub-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 24px 20px 20px;
		margin-top: 16px;
		text-align: center;
	}
	.hub-hero h1 {
		font-size: 1.9rem;
	}
	.hub-tagline {
		font-size: 1.02rem;
	}
	.hub-hero-ctas {
		justify-content: center;
	}
	/* Trois ratons au plus : cinq se chevauchent trop sur un téléphone. */
	.hub-crew img:nth-child(n+4) {
		display: none;
	}
	.hub-crew img {
		height: 110px;
		margin: 0 -10px;
	}
	.hub-shelves {
		gap: 30px;
		margin-top: 30px;
		margin-bottom: 30px;
	}
	.hub-shelf-title {
		font-size: 1.35rem;
	}
	.hub-tiles {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
	.hub-tile {
		min-height: 190px;
		padding: 18px 18px 16px;
	}
	.hub-tile-name {
		font-size: 1.4rem;
	}
	.hub-tile-text {
		font-size: 0.95rem;
		padding-right: 96px;
	}
	.hub-tile-mascot {
		height: 120px;
	}
	.hub-account {
		margin-top: 0;
		margin-bottom: 36px;
		padding: 18px 20px;
	}
	.hub-account .hub-btn {
		width: 100%;
		text-align: center;
	}

	/* --- Pages légales (repris de game_hosting, qui les servait avant) --- */
	.legal-v2-wrap {
		max-width: 900px;
		margin: 0 auto 40px;
		text-align: left;
	}

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

	.legal-v2-scope {
		text-align: center;
		font-size: 0.88rem;
		color: rgba(234, 221, 192, 0.6);
	}

	.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-header {
		font-weight: 700;
		color: #eaddc0;
		display: flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 12px;
	}

	.legal-v2-card {
		margin: 20px auto 0;
		color: #eaddc0;
	}

	.legal-v2-card p {
		margin-bottom: 12px;
		line-height: 1.55;
	}

	.legal-v2-card ul {
		margin: 0 0 12px;
	}

	.legal-v2-subheading {
		font-weight: 700;
		color: #eaddc0;
		margin-top: 20px !important;
		margin-bottom: 6px !important;
	}

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

	.privacy-v2-card .legal-v2-subheading,
	.mentions-v2-card .legal-v2-subheading {
		margin-top: 32px !important;
	}

	.legal-v2-link {
		color: #eaddc0;
		font-weight: 600;
		text-decoration: underline;
	}

	.legal-v2-link:hover {
		color: var(--color--marron);
		text-decoration: underline;
	}

	/* --- Formulaire de contact --- */
	.contact-wrap {
		max-width: 720px;
	}

	.contact-form {
		display: flex;
		flex-direction: column;
		padding: 22px;
		margin-top: 20px;
	}

	.contact-form label {
		margin: 14px 0 6px;
		font-size: 0.85rem;
		font-weight: 600;
		color: rgba(234, 221, 192, 0.75);
	}

	.contact-form label:first-of-type {
		margin-top: 0;
	}

	.contact-form input[type="email"],
	.contact-form input[type="text"],
	.contact-form textarea {
		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;
		font-family: inherit;
		transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	}

	.contact-form textarea {
		resize: vertical;
		min-height: 160px;
	}

	.contact-form input::placeholder,
	.contact-form textarea::placeholder {
		color: rgba(234, 221, 192, 0.35);
	}

	.contact-form input:focus,
	.contact-form textarea:focus {
		outline: none;
		border-color: var(--color--marron);
		box-shadow: 0 0 0 3px rgba(230, 103, 0, 0.2);
	}

	.contact-form input:-webkit-autofill,
	.contact-form input:-webkit-autofill:hover,
	.contact-form 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;
	}

	.contact-error {
		margin: 0 0 6px;
		font-size: 0.82rem;
		color: #ff8a7a;
	}

	.contact-actions {
		display: flex;
		justify-content: flex-end;
		margin-top: 18px;
	}

	.contact-btn {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 10px 22px;
		border: none;
		border-radius: 10px;
		font-size: 0.9rem;
		font-weight: 600;
		cursor: pointer;
		background: var(--color--anthracite);
		color: var(--color--beige);
		transition: background-color 0.15s ease-in-out;
	}

	.contact-btn:hover {
		background: var(--color--anthracite-v2);
	}

	/* Le padding-right global des <i> décalerait l'icône. */
	.contact-btn i {
		padding: 0;
	}

	/* --- Liste des cookies (page gestion des cookies) --- */
	.cookie-v2-list {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin: 14px 0 18px;
	}

	.cookie-v2-row {
		display: flex;
		align-items: baseline;
		gap: 14px;
		padding: 10px 14px;
		border-radius: 10px;
		background: #1f272f;
		border: 1px solid rgba(234, 221, 192, 0.1);
	}

	.cookie-v2-name {
		flex-shrink: 0;
		min-width: 190px;
		font-family: monospace;
		font-size: 0.85rem;
		font-weight: 700;
		color: #eaddc0;
	}

	.cookie-v2-desc {
		font-size: 0.85rem;
		color: rgba(234, 221, 192, 0.7);
	}


	.cookie-v2-row {
		flex-direction: column;
		gap: 4px;
	}

	.cookie-v2-name {
		min-width: 0;
	}
	.hub-flag {
		width: 22px;
		height: 15px;
		object-fit: cover;
		border-radius: 3px;
		box-shadow: 0 0 0 1px rgba(234, 221, 192, 0.2);
		flex-shrink: 0;
	}

	/* Page staff des messages de contact (même rendu que admin-contacts.html
	   de game_hosting). */
	.contacts-v2-stat-row {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		max-width: 420px;
		margin: 20px auto 0;
	}

	.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--anthracite);
		color: var(--color--beige);
		display: flex;
		align-items: center;
		justify-content: center;
	}

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

	.dashboard-v2-stat-icon-alert {
		background: var(--color--marron);
	}

	.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);
	}

	.dashboard-v2-section-label {
		font-size: 0.8rem;
		font-weight: 700;
		color: var(--color--beige-dark);
		text-transform: uppercase;
		letter-spacing: 0.03em;
		margin: 28px 0 10px;
	}

	.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;
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.profil-v2-card-header-row form {
		flex-shrink: 0;
	}

	.profil-v2-action-btn {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		color: var(--color--beige);
		background: var(--color--anthracite);
		border: none;
		border-radius: 20px;
		padding: 8px 16px;
		font-size: 0.85rem;
		font-weight: 600;
		cursor: pointer;
		transition: opacity 0.2s ease-in-out;
	}

	.profil-v2-action-btn:hover {
		opacity: 0.85;
	}

	.profil-v2-action-btn i {
		padding: 0;
	}

	.hostv2-kv-grid {
		display: grid;
		grid-template-columns: repeat(1, minmax(0, 1fr));
		gap: 12px 16px;
	}

	.hostv2-kv-item {
		display: flex;
		flex-direction: column;
		gap: 2px;
		min-width: 0;
	}

	.hostv2-kv-label {
		font-size: 0.72rem;
		color: rgba(234, 221, 192, 0.6);
		text-transform: uppercase;
		letter-spacing: 0.03em;
	}

	.hostv2-kv-value {
		font-size: 0.9rem;
		font-weight: 600;
		color: #eaddc0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.contacts-v2-message {
		background: var(--color--beige-dark);
		color: var(--color--anthracite);
		border-left: 4px solid var(--color--marron);
		border-radius: 8px;
		padding: 12px 14px;
		margin: 12px 0 0;
		font-size: 0.9rem;
		overflow-wrap: break-word;
	}

	.contacts-v2-message p:last-child {
		margin-bottom: 0;
	}

	.signalements-v2-empty {
		text-align: center;
		color: #8a8a8a;
		padding: 30px 18px;
	}

	.signalements-v2-empty i {
		font-size: 1.6rem;
		color: var(--color--marron);
	}

	.signalements-v2-empty p {
		margin: 10px 0 0;
	}

	.contacts-v2-history-item-wrap {
		background: var(--color--beige-dark);
		border-radius: 10px;
		margin-bottom: 8px;
		overflow: hidden;
	}

	.contacts-v2-history-item {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 12px;
		cursor: pointer;
	}

	.contacts-v2-history-icon {
		flex-shrink: 0;
		width: 34px;
		height: 34px;
		border-radius: 50%;
		background: var(--color--anthracite);
		color: var(--color--beige);
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.contacts-v2-history-icon i {
		padding: 0;
	}

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

	.contacts-v2-history-subject {
		font-weight: 600;
		color: var(--color--anthracite);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.contacts-v2-history-meta {
		font-size: 0.75rem;
		color: #8a8a8a;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.contacts-v2-history-chevron {
		flex-shrink: 0;
		transition: transform 0.2s ease-in-out;
		color: #8a8a8a;
	}

	.contacts-v2-history-item:not(.collapsed) .contacts-v2-history-chevron {
		transform: rotate(180deg);
	}

	.contacts-v2-history-answer {
		padding: 0 12px 12px 12px;
		color: #4a4a4a;
		font-size: 0.85rem;
		line-height: 1.5;
		overflow-wrap: break-word;
	}
}
