/* G6M_BUNDLE_27 — 3 feuilles, ordre du document preserve */
/* ==== g6m-inline-p2-46-v701.css ==== */
/* Externalise (passe 2) — bloc inline #46 — position inchangee */

/* G6M_MENU_SHIFT_FIX_V444
   Stops header dropdowns sliding left→right on open.

   Root causes (from recording Enregistrement 2026-07-29 022236.mp4):
   1) Closed menus parked at left:-9999px — on .is-active they jump to trigger
   2) V297 forced position:fixed + left:auto !important (beat XF inline left)
   3) max-width: 100vw could widen past scrollbar and nudge layout

   Visual design unchanged — positioning left to XenForo Menu/Tooltip JS.
*/

/* Never animate left/top/right/width (prevents L→R slide) */
html#XF body .menu,
html#XF body .menu.is-active,
html body .menu,
html body .menu.is-active,
html body .p-nav .menu,
html body .p-navgroup .menu,
html body .menu.menu--structural,
html body .menu.menu--medium,
html body .menu.menu--account {
	/* V483: never transition the positioned shell (causes jump). Fade lives on .menu-content. */
	transition: none !important;
}

/* Closed: hide only — override any leftover left:-9999 / width:0 parks */
html#XF body .menu:not(.is-active),
html#XF body .menu.menu--structural:not(.is-active),
html#XF body .menu.menu--medium:not(.is-active),
html#XF body .menu.menu--account:not(.is-active),
html#XF body .menu[aria-hidden="true"]:not(.is-active),
html body .p-nav .menu:not(.is-active),
html body .p-navgroup .menu:not(.is-active),
html body .p-header .menu:not(.is-active),
html body .uix_searchBar .menu:not(.is-active),
html body .menu.g6m-dd-anchored:not(.is-active) {--js-display: block;

	/* V488: display WITHOUT !important — XF.updateMenuDimensions() must beat this */
	display: none;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: none;
	/* Do not revert position/width — that forced static + 0 measure */
}

/* Open: visual width only — NEVER set left/top/position (XF inline must win) */
html#XF body .p-nav .menu.menu--structural.is-active,
html#XF body .p-navgroup .menu.menu--structural.is-active,
html#XF body .p-nav .menu.menu--medium.is-active,
html#XF body .p-navgroup .menu.menu--medium.is-active,
html#XF body .p-nav .menu.menu--account.is-active,
html#XF body .p-navgroup .menu.menu--account.is-active,
html#XF body .menu.g6m-dd-anchored.is-active,
html body .p-nav .menu.menu--structural.is-active,
html body .p-navgroup .menu.menu--structural.is-active,
html body .p-nav .menu.menu--medium.is-active,
html body .p-navgroup .menu.menu--medium.is-active,
html body .p-nav .menu.menu--account.is-active,
html body .p-navgroup .menu.menu--account.is-active,
html body .menu.g6m-dd-anchored.is-active {
	max-width: min(400px, calc(100% - 16px)) !important;
}

@media (prefers-reduced-motion: reduce) {
	html#XF body .menu,
	html body .menu {
		transition: none !important;
	}
}

/* END G6M_MENU_SHIFT_FIX_V444 */

/* ==== g6m-register-tos-check-v446.css ==== */
/* G6M_REGISTER_TOS_CHECK_V446
   Fix: TOS checkbox ("J'accepte les conditions…") shows no checkmark when clicked.
   Cause: empty-box rule used background shorthand (!important) + SVG data-URI mark;
   FA ::after also suppressed by font-size:0. Replace with CSS-only tick.
   Visual: same pink→violet filled square + white check as login remember.
*/

html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic {
	display: inline-grid !important;
	grid-template-columns: 20px minmax(0, 1fr) !important;
	align-items: start !important;
	column-gap: 12px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer !important;
	position: relative !important;
}

html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > input[type="checkbox"],
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > input[type="checkbox"] {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	/* keep in tab order; label click toggles */
	pointer-events: auto !important;
}

html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > i,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > i {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	grid-column: 1 !important;
	position: relative !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	overflow: visible !important;
	flex: 0 0 20px !important;
}

/* Empty box — longhands only (never background shorthand) */
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > i::before,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > i::before {
	content: "" !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 20px !important;
	height: 20px !important;
	border-radius: 6px !important;
	border-style: solid !important;
	border-width: 1.5px !important;
	border-color: rgba(255, 255, 255, 0.55) !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
	background-image: none !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
	box-sizing: border-box !important;
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease !important;
}

/* Hide XF FontAwesome glyph (invisible at font-size:0 anyway) */
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > i::after,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > i::after {
	content: none !important;
	display: none !important;
}

html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic:hover > i::before,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic:hover > i::before {
	border-color: rgba(255, 47, 174, 0.7) !important;
}

/* Checked fill */
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > input:checked + i::before,
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic:has(> input:checked) > i::before,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > input:checked + i::before,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic:has(> input:checked) > i::before {
	border-color: transparent !important;
	background-color: transparent !important;
	background-image: linear-gradient(135deg, #ff2fae, #7a3cff) !important;
	box-shadow: 0 0 0 2px rgba(255, 47, 174, 0.16) !important;
}

/* CSS-only white checkmark (no data: SVG) */
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > input:checked + i::after,
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic:has(> input:checked) > i::after,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > input:checked + i::after,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic:has(> input:checked) > i::after {
	content: "" !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: absolute !important;
	left: 7px !important;
	top: 3px !important;
	width: 5px !important;
	height: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-style: solid !important;
	border-color: #ffffff !important;
	border-width: 0 2.5px 2.5px 0 !important;
	background: transparent !important;
	background-image: none !important;
	transform: rotate(45deg) !important;
	box-sizing: border-box !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

/* END G6M_REGISTER_TOS_CHECK_V446 */

/* ==== g6m-inline-p2-47-v701.css ==== */
/* Externalise (passe 2) — bloc inline #47 — position inchangee */

/* G6M_REGISTER_TOS_CHECK_V446
   Fix: TOS checkbox ("J'accepte les conditions…") shows no checkmark when clicked.
   Cause: empty-box rule used background shorthand (!important) + SVG data-URI mark;
   FA ::after also suppressed by font-size:0. Replace with CSS-only tick.
   Visual: same pink→violet filled square + white check as login remember.
*/

html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic {
	display: inline-grid !important;
	grid-template-columns: 20px minmax(0, 1fr) !important;
	align-items: start !important;
	column-gap: 12px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer !important;
	position: relative !important;
}

html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > input[type="checkbox"],
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > input[type="checkbox"] {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	/* keep in tab order; label click toggles */
	pointer-events: auto !important;
}

html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > i,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > i {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	grid-column: 1 !important;
	position: relative !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	overflow: visible !important;
	flex: 0 0 20px !important;
}

/* Empty box — longhands only (never background shorthand) */
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > i::before,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > i::before {
	content: "" !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 20px !important;
	height: 20px !important;
	border-radius: 6px !important;
	border-style: solid !important;
	border-width: 1.5px !important;
	border-color: rgba(255, 255, 255, 0.55) !important;
	background-color: rgba(255, 255, 255, 0.08) !important;
	background-image: none !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
	box-sizing: border-box !important;
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease !important;
}

/* Hide XF FontAwesome glyph (invisible at font-size:0 anyway) */
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > i::after,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > i::after {
	content: none !important;
	display: none !important;
}

html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic:hover > i::before,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic:hover > i::before {
	border-color: rgba(255, 47, 174, 0.7) !important;
}

/* Checked fill */
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > input:checked + i::before,
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic:has(> input:checked) > i::before,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > input:checked + i::before,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic:has(> input:checked) > i::before {
	border-color: transparent !important;
	background-color: transparent !important;
	background-image: linear-gradient(135deg, #ff2fae, #7a3cff) !important;
	box-shadow: 0 0 0 2px rgba(255, 47, 174, 0.16) !important;
}

/* CSS-only white checkmark (no data: SVG) */
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic > input:checked + i::after,
html#XF[data-template="register_form"] form.g6m-register-form .g6m-register-tos label.iconic:has(> input:checked) > i::after,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic > input:checked + i::after,
html#XF.template-register_form form.g6m-register-form .g6m-register-tos label.iconic:has(> input:checked) > i::after {
	content: "" !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: absolute !important;
	left: 7px !important;
	top: 3px !important;
	width: 5px !important;
	height: 10px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-style: solid !important;
	border-color: #ffffff !important;
	border-width: 0 2.5px 2.5px 0 !important;
	background: transparent !important;
	background-image: none !important;
	transform: rotate(45deg) !important;
	box-sizing: border-box !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

/* END G6M_REGISTER_TOS_CHECK_V446 */
