/*
 * 1.4.0 (marche 5): the public pages of the Community Gallery and the page
 * "Report illegal content". Colours of the theme (currentColor), fonts of
 * the theme, nothing loaded from another site. Buttons of 44 pixels.
 */

.ms-gal {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.ms-gal *,
.ms-gal *::before,
.ms-gal *::after {
	box-sizing: border-box;
}

.ms-gal .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.ms-gal__band {
	background: #fcf9e8;
	border-left: 4px solid #dba617;
	border-radius: 4px;
	color: #1d2327;
	margin: 0 0 16px;
	padding: 10px 14px;
}

.ms-gal__closed {
	font-size: 1.1em;
	padding: 24px 0;
	text-align: center;
}

.ms-gal__intro {
	font-size: 1.05em;
	margin: 0 0 16px;
}

.ms-gal .description {
	display: block;
	font-size: 0.9em;
	opacity: 0.8;
}

/* Lists, filters, choice of the view */

.ms-gal__lists,
.ms-gal__seg {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 12px 10px 0;
	vertical-align: middle;
}

.ms-gal__lists a,
.ms-gal__seg button,
.ms-gal__go,
.ms-gal select,
.ms-gal input[type="search"],
.ms-gal input[type="text"],
.ms-gal input[type="email"] {
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 8px;
	color: inherit;
	font: inherit;
	min-height: 44px;
	padding: 8px 14px;
}

.ms-gal__lists a,
.ms-gal__seg button,
.ms-gal__go {
	align-items: center;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	text-decoration: none;
}

.ms-gal select,
.ms-gal input[type="search"],
.ms-gal input[type="text"],
.ms-gal input[type="email"],
.ms-gal textarea {
	background: transparent;
	max-width: 100%;
}

.ms-gal__lists a[aria-current="page"],
.ms-gal__seg button[aria-pressed="true"],
.ms-gal__go {
	background: #3d2a8c;
	border-color: #3d2a8c;
	color: #fff;
}

.ms-gal__lists a:focus-visible,
.ms-gal__seg button:focus-visible,
.ms-gal__go:focus-visible,
.ms-gal a:focus-visible {
	outline: 2px solid #3d2a8c;
	outline-offset: 2px;
}

.ms-gal__filters {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.ms-gal__filters input[type="search"] {
	min-width: 12em;
}

.ms-gal__view {
	margin: 4px 0 8px;
}

.ms-gal__total {
	margin: 0 0 12px;
	opacity: 0.8;
}

/* Cards */

.ms-gal__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.ms-gal__card {
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 12px;
	margin: 0;
	overflow: hidden;
	padding: 0 0 12px;
}

.ms-gal__pic-link {
	display: block;
}

.ms-gal__pic {
	background: #fff;
	height: 420px;
	overflow: hidden;
	position: relative;
}

.ms-gal__pic iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

/* With the script, the view is drawn 1 100 pixels wide and made smaller. */
.ms-gal.is-js .ms-gal__pic iframe {
	height: 900px;
	transform-origin: 0 0;
	width: 1100px;
}

.ms-gal__card .ms-gal__pic iframe {
	pointer-events: none;
}

.ms-gal__pic.is-cut::after {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	bottom: 0;
	content: "";
	height: 48px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
}

.ms-gal__name {
	font-size: 1.1em;
	margin: 12px 14px 4px;
}

.ms-gal__name a {
	color: inherit;
}

.ms-gal__card .ms-gal__tags,
.ms-gal__card .ms-gal__figures {
	font-size: 0.9em;
	margin: 0 14px 2px;
	opacity: 0.8;
}

.ms-gal__empty {
	padding: 24px 0;
	text-align: center;
}

.ms-gal__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
}

.ms-gal__pages a,
.ms-gal__pages span {
	align-items: center;
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 8px;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 10px;
}

.ms-gal__pages span {
	background: #3d2a8c;
	border-color: #3d2a8c;
	color: #fff;
}

.ms-gal__foot {
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	font-size: 0.95em;
	margin: 24px 0 0;
	padding-top: 12px;
}

/* One card */

.ms-gal__back {
	margin: 0 0 12px;
}

.ms-gal__title {
	margin: 0 0 6px;
}

.ms-gal__head p {
	margin: 0 0 4px;
}

.ms-gal__note {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	color: #1d2327;
	padding: 8px 12px;
}

.ms-gal__sector {
	margin: 0 0 12px;
}

.ms-gal__big {
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 12px;
	margin: 0 0 20px;
	overflow: hidden;
}

.ms-gal__pic--big {
	height: 640px;
}

.ms-gal__big[data-ms-device="phone"] {
	background: #50575e;
	padding: 16px 0;
}

.ms-gal.is-js .ms-gal__big[data-ms-device="phone"] .ms-gal__pic {
	margin: 0 auto;
	max-width: 100%;
	width: 390px;
}

.ms-gal.is-js .ms-gal__big[data-ms-device="phone"] .ms-gal__pic iframe {
	max-width: 100%;
	transform: none !important;
}

.ms-gal__use ol {
	padding-left: 1.4em;
}

.ms-gal__gone {
	padding: 16px 0;
}

/* The page "Report illegal content" */

.ms-notice__form {
	max-width: 46em;
}

.ms-notice__form label {
	display: block;
	font-weight: 600;
	margin: 0 0 4px;
}

.ms-notice__form .ms-notice__faith label {
	font-weight: normal;
}

.ms-notice__form input[type="text"],
.ms-notice__form input[type="email"],
.ms-notice__form textarea {
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 8px;
	color: inherit;
	font: inherit;
	padding: 8px 12px;
	width: 100%;
}

.ms-notice__form input[type="checkbox"] {
	height: 20px;
	margin-right: 6px;
	vertical-align: -4px;
	width: 20px;
}

.ms-notice__said.is-error {
	color: #b32d2e;
	font-weight: 600;
}

.ms-notice__done {
	background: #edfaef;
	border-left: 4px solid #00a32a;
	border-radius: 4px;
	color: #1d2327;
	padding: 10px 14px;
}

/* 1.5.0 (marche 6): the contact form. The field for robots stays out of sight. */
.ms-contact__trap {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

/*
 * 1.9.0: the two marks of a card, always in the same corner and always in
 * the same order, the one that says what you need in order to install
 * furthest out (it has the last word).
 *
 * They are not the same kind of object on purpose: the access mark is
 * READ (the word PRO), the quality mark is LOOKED AT (a ribbon). A star
 * alone would be read as a rating in a product whose reviews are rated in
 * stars, and a single letter would have to change with the language.
 */
.ms-marks {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
	pointer-events: none;
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 2;
}

.ms-gal__card,
.ms-gal__head {
	position: relative;
}

.ms-mark {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 5px;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 5px 10px;
	white-space: nowrap;
}

/* The quality mark: a garnet ribbon. Garnet and not a bright red, which in
   this product already means an alert. */
.ms-mark--team {
	background: #8c1c2b;
	border-radius: 3px 3px 3px 0;
	color: #fff;
}

/* The access mark: the gold and violet of the logo, and the word. */
.ms-mark--pro {
	background: linear-gradient(100deg, #e8a33d 0%, #8b5cf6 100%);
	color: #fff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

/* The magnetised star of the logo: gold on the left, violet on the right. */
.ms-mark__star {
	background: #fff;
	display: inline-block;
	height: 11px;
	width: 11px;
	-webkit-clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* What is kept, and what is not, on the card of a reserved creation. */
.ms-gal__kept {
	background: rgba(139, 92, 246, 0.08);
	border-left: 3px solid #8b5cf6;
	border-radius: 0 4px 4px 0;
	margin: 12px 0;
	padding: 10px 14px;
}

@media (prefers-color-scheme: dark) {
	.ms-gal__kept {
		background: rgba(139, 92, 246, 0.16);
	}
}

/* 1.15.0 (Vincent, 09/11/2026): a creation reacts under the mouse, so that
   one sees it opens full size. Keyboard: the same when its name has the
   focus. No movement for visitors who ask for less. */
.ms-gal__card {
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ms-gal__pic-link {
	cursor: zoom-in;
	position: relative;
}

.ms-gal__zoom {
	background: rgba(23, 17, 43, 0.86);
	border-radius: 999px;
	bottom: 14px;
	color: #fff;
	font-size: 0.9em;
	font-weight: 600;
	left: 50%;
	opacity: 0;
	padding: 8px 16px;
	pointer-events: none;
	position: absolute;
	transform: translate(-50%, 6px);
	transition: opacity .18s ease, transform .18s ease;
	white-space: nowrap;
	z-index: 1;
}

.ms-gal__card:hover,
.ms-gal__card:focus-within {
	border-color: color-mix(in srgb, currentColor 45%, transparent);
	box-shadow: 0 12px 30px rgba(23, 17, 43, 0.16);
	transform: translateY(-4px);
}

.ms-gal__card:hover .ms-gal__zoom,
.ms-gal__card:focus-within .ms-gal__zoom {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ms-gal__card:hover .ms-gal__name a {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.ms-gal__card,
	.ms-gal__zoom {
		transition: none;
	}

	.ms-gal__card:hover,
	.ms-gal__card:focus-within {
		transform: none;
	}
}
