/* Map in Glow: everything theme.json cannot express (layout of the sections, cards, glow, gold text) */

:root {
	--mg-line: rgba(236, 211, 159, .12);
	--mg-line2: rgba(236, 211, 159, .26);
	--mg-gold: linear-gradient(120deg, #aa875a, #ecd39f 47%, #d0ab6f);
	--mg-radius: 22px;
}

body { -webkit-font-smoothing: antialiased; }
::selection { background: #ecd39f; color: #1b150c; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }   /* header, main and footer touch: sections set their own spacing */

/* ---- header ---- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }   /* the wrapper sticks: it is as tall as the header, so the header alone could not */
@media (min-width: 601px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0px); } }
.mg-header {
	position: relative; isolation: isolate;
	padding: .9rem clamp(1rem, 4vw, 2.5rem) !important;
	border-bottom: 1px solid var(--mg-line);
}
.mg-header::before {   /* the blur sits on its own layer: on the header itself it would trap the full-screen phone menu inside the header */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(9, 9, 9, .82);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.mg-brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none !important; }
.mg-brand img { width: 36px; height: 36px; display: block; }
.mg-brand span {
	font-size: .82rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
	background: var(--mg-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mg-header .wp-block-navigation a { color: var(--wp--preset--color--ivoire); }
.mg-header .wp-block-navigation a:hover { color: var(--wp--preset--color--or-clair); text-decoration: none; }
.mg-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--or-clair); }
/* phone menu: full screen, large serif links one under the other */
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 2rem !important; }
.is-menu-open .wp-block-navigation__responsive-container-close { top: 1.4rem; right: clamp(1rem, 4vw, 2.5rem); color: var(--wp--preset--color--or-clair); }
.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem !important; align-items: stretch !important; }
.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container { align-items: stretch !important; gap: 0 !important; width: 100%; }
.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--mg-line); }
.is-menu-open .wp-block-navigation-item__content {
	display: block; width: 100%; padding: 1rem 0 !important;
	font-family: var(--wp--preset--font-family--serif); font-size: 1.9rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--or-clair); }

/* ---- sections ---- */
.mg-section { padding-block: var(--wp--preset--spacing--60) !important; position: relative; }
.mg-section.mg-tight { padding-top: 0 !important; }
.mg-band { background: var(--wp--preset--color--nuit); border-block: 1px solid var(--mg-line); }
.mg-hero { overflow: hidden; }
.mg-hero::before {   /* the glow of a lit relief behind the hero */
	content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
	background: radial-gradient(closest-side, rgba(236, 211, 159, .16), rgba(236, 211, 159, 0)); pointer-events: none;
}
.mg-hero > * { position: relative; }
.mg-hero-short { padding-bottom: var(--wp--preset--spacing--50) !important; }
.mg-hero h1 em, .mg-hero h2 em {
	font-style: italic;
	background: var(--mg-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mg-center { text-align: center; padding-block: var(--wp--preset--spacing--60) !important; }
.mg-center .wp-block-buttons { justify-content: center; }
.mg-page { padding-block: var(--wp--preset--spacing--60) !important; }

.mg-kicker {
	font-size: .72rem !important; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
	color: var(--wp--preset--color--or); margin-bottom: .6rem;
}
.mg-kicker + h1, .mg-kicker + h2 { margin-top: 0; }
.mg-lead { font-size: var(--wp--preset--font-size--large); color: #d9d2c5; line-height: 1.6; max-width: 36em; }
.has-text-align-center.mg-lead { margin-inline: auto; }
.mg-muted, .mg-copy { color: var(--wp--preset--color--sable); font-size: var(--wp--preset--font-size--small); }
.mg-split { gap: clamp(2rem, 5vw, 5rem) !important; }

/* ---- buttons ---- */
.wp-element-button { transition: transform .15s, box-shadow .2s, filter .2s; }
.wp-block-button:not(.is-style-outline) .wp-element-button:hover { box-shadow: 0 0 28px rgba(214, 179, 122, .35); filter: brightness(1.05); text-decoration: none; }
.wp-block-button.is-style-outline .wp-element-button {
	background: transparent !important; color: var(--wp--preset--color--or-clair) !important;
	border: 1px solid var(--mg-line2) !important;
}
.wp-block-button.is-style-outline .wp-element-button:hover { border-color: var(--wp--preset--color--or) !important; text-decoration: none; }
.wp-element-button:active { transform: scale(.98); }

/* ---- photos ---- */
.mg-photo img { border-radius: var(--mg-radius); border: 1px solid var(--mg-line); width: 100%; height: auto; display: block; }
.mg-loop video { width: 100%; max-width: 480px; display: block; margin-inline: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; background: #000;   /* the original portrait video, framed on the relief */
	border-radius: var(--mg-radius); border: 1px solid var(--mg-line); box-shadow: 0 30px 90px -20px rgba(236, 120, 90, .45); }
.mg-glow img { box-shadow: 0 30px 80px -20px rgba(236, 160, 90, .35), 0 0 0 1px var(--mg-line); }
.mg-photo figcaption { text-align: center; margin-top: .8rem; }
.mg-photo figcaption strong { color: var(--wp--preset--color--ivoire); font-family: var(--wp--preset--font-family--serif); font-size: 1.3rem; font-weight: 500; }

/* ---- grids ---- */
.mg-grid { display: grid !important; gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: var(--wp--preset--spacing--50); }
.mg-grid > * { margin: 0 !important; }
.mg-grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.mg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.mg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mg-gallery img { aspect-ratio: 1; object-fit: cover; }
.mg-gallery .wp-block-image:last-child img { object-fit: contain; background: #0d0c0b; }   /* two frames side by side */
@media (max-width: 900px) {
	.mg-grid-3, .mg-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.mg-grid-3 { grid-template-columns: 1fr; }
}

/* ---- cards ---- */
.mg-cards { gap: clamp(1rem, 2.5vw, 1.75rem) !important; margin-top: var(--wp--preset--spacing--50); }
.mg-card {
	background: var(--wp--preset--color--nuit); border: 1px solid var(--mg-line); border-radius: var(--mg-radius);
	padding: clamp(1.4rem, 3vw, 2.2rem) !important;
}
.mg-band .mg-card { background: var(--wp--preset--color--ardoise); }
.mg-card > :first-child { margin-top: 0; }
.mg-card h3 { margin: .2rem 0 .6rem; }
.mg-card p { color: #cfc8bb; margin: 0; }
.mg-num { font-family: var(--wp--preset--font-family--serif); font-size: 2.6rem !important; line-height: 1; margin-bottom: .8rem !important;
	background: var(--mg-gold); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.mg-offer.is-featured { border-color: var(--mg-line2); box-shadow: 0 0 60px -20px rgba(236, 211, 159, .25); }
.mg-price { font-family: var(--wp--preset--font-family--serif); font-size: 3rem !important; line-height: 1.1; margin: .4rem 0 1rem !important;
	background: var(--mg-gold); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.mg-price small { display: block; font-family: var(--wp--preset--font-family--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--sable); -webkit-text-fill-color: var(--wp--preset--color--sable); }
.mg-check { list-style: none; padding: 0; margin: 0; }
.mg-check li { position: relative; padding-left: 1.6rem; margin: .55rem 0; color: #cfc8bb; }
.mg-check li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--wp--preset--color--or); }

.mg-prices { margin: 0 0 1rem; }
.mg-prices table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.mg-prices.wp-block-table thead { border-bottom: 0; }   /* WordPress draws a thick 3 px bar under table headers */
.mg-prices td, .mg-prices th { border: 0; border-bottom: 1px solid var(--mg-line); padding: .6rem 0; color: #cfc8bb; text-align: left; vertical-align: top; }
.mg-prices td:not(:first-child), .mg-prices th:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 1rem; color: var(--wp--preset--color--or-clair); }
.mg-prices th { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--sable) !important; }
.mg-prices table.has-fixed-layout td:last-child { width: 5.5rem; }
.mg-frame-offer { margin-top: clamp(1rem, 2.5vw, 1.75rem) !important; text-align: center; }
.mg-card-cta { border-style: dashed; border-color: var(--mg-line2); }
.mg-catalogue p strong { color: var(--wp--preset--color--ivoire); font-weight: 600; }

.mg-options h3 { font-size: 1.35rem; margin: 1.6rem 0 .3rem; color: var(--wp--preset--color--or-clair); }
.mg-options h3:first-child { margin-top: .5rem; }
.mg-options p { margin: 0; color: #cfc8bb; }

/* ---- application ---- */
.mg-video video { width: 100%; max-width: 340px; display: block; margin-inline: auto; border-radius: 34px; border: 1px solid var(--mg-line2);
	box-shadow: 0 30px 90px -30px rgba(236, 160, 90, .4); background: #000; aspect-ratio: 9 / 16; object-fit: cover; }
.mg-demo { width: min(390px, 100%); height: min(800px, 86vh); margin-inline: auto; border-radius: 42px; border: 8px solid #1d1b18; outline: 1px solid var(--mg-line2);
	overflow: hidden; background: #090909; box-shadow: 0 40px 100px -30px rgba(236, 211, 159, .3); }
.mg-demo iframe { display: block; width: 100%; height: 100%; border: 0; }
#essayer { scroll-margin-top: 80px; }
.mg-phone img { border-radius: 28px; border: 6px solid #1d1b18; outline: 1px solid var(--mg-line2); width: 100%; height: auto; display: block; }
.mg-phone figcaption { text-align: center; margin-top: .8rem; }

/* ---- order ---- */
.mg-steps-list { padding-left: 0; list-style: none; counter-reset: mg; display: grid; gap: .9rem; }
.mg-steps-list li { counter-increment: mg; position: relative; padding: 1.1rem 1.3rem 1.1rem 4rem; background: var(--wp--preset--color--ardoise);
	border: 1px solid var(--mg-line); border-radius: 16px; color: #cfc8bb; }
.mg-steps-list li::before { content: counter(mg, decimal-leading-zero); position: absolute; left: 1.2rem; top: .85rem;
	font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; color: var(--wp--preset--color--or); }
.mg-steps-list strong { color: var(--wp--preset--color--ivoire); font-weight: 600; }
.mg-faq { border-bottom: 1px solid var(--mg-line); padding: 1.1rem 0; }
.mg-faq summary { cursor: pointer; font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.mg-faq summary::-webkit-details-marker { display: none; }
.mg-faq summary::after { content: "+"; color: var(--wp--preset--color--or); font-family: var(--wp--preset--font-family--sans); font-weight: 300; transition: transform .2s; }
.mg-faq[open] summary::after { transform: rotate(45deg); }
.mg-faq p { color: #cfc8bb; margin: .7rem 0 0; }

/* ---- call to action ---- */
.mg-cta { text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(236, 211, 159, .12), rgba(236, 211, 159, 0)), var(--wp--preset--color--noir); border-top: 1px solid var(--mg-line); }
.mg-cta-logo img { filter: drop-shadow(0 0 18px rgba(236, 211, 159, .35)); }

/* ---- legal ---- */
.mg-legal h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.mg-legal p { color: #cfc8bb; }
mark.mg-todo { background: rgba(214, 90, 70, .22); color: #ffb4a6; padding: 0 .3em; border-radius: 4px; }

/* ---- footer ---- */
.mg-footer { padding-block: var(--wp--preset--spacing--50) 1.5rem !important; border-top: 1px solid var(--mg-line); background: var(--wp--preset--color--nuit); }
.mg-footer .mg-kicker { margin-top: .4rem; }
.mg-links { list-style: none; padding: 0; margin: 0; }
.mg-links li { margin: .35rem 0; }
.mg-links a { color: #cfc8bb; }
.mg-links a:hover { color: var(--wp--preset--color--or-clair); }
.mg-copy { border-top: 1px solid var(--mg-line); padding-top: 1.2rem; margin-top: 2rem !important; }

@media (prefers-reduced-motion: reduce) {
	.wp-element-button, .mg-faq summary::after { transition: none; }
}
