/* Bandeau et préférences cookies Émeraude */
.emx-cookie[hidden], .emx-cookie-modal[hidden] { display: none; }
.emx-cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 900; display: flex; justify-content: center; pointer-events: none; }
.emx-cookie__card {
	pointer-events: auto; position: relative; display: flex; align-items: center; gap: 20px; width: min(1040px, 100%);
	padding: 18px 22px; border-radius: 12px; color: #fff;
	background: linear-gradient(rgba(4,22,17,.92), rgba(4,22,17,.92)), url('../img/marbre.jpg') center / cover;
	border: 1px solid rgba(197,163,107,.55); box-shadow: 0 24px 60px rgba(0,0,0,.35);
	opacity: 0; transform: translateY(30px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.emx-cookie.is-in .emx-cookie__card { opacity: 1; transform: none; }
.emx-cookie__mono { height: 40px; width: auto; flex: none; }
.emx-cookie__body { flex: 1; min-width: 0; }
.emx-cookie__title { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin: 0 0 4px; }
.emx-cookie__title em { font-style: italic; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emx-cookie__text { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.85); }
.emx-cookie__text a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }
.emx-cookie__actions { display: flex; gap: 10px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.emx-cookie__btn { border-radius: 3px; padding: 11px 18px; font: 600 11.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, filter .2s; white-space: nowrap; }
.emx-cookie__btn--gold { background: var(--gold-grad); color: var(--ink); }
.emx-cookie__btn--gold:hover { filter: brightness(1.06); }
.emx-cookie__btn--ghost { background: transparent; color: #fff; border-color: rgba(197,163,107,.6); }
.emx-cookie__btn--ghost:hover { background: rgba(197,163,107,.15); }
.emx-cookie__btn--ghost-dark { background: transparent; color: var(--ink); border-color: #b99c70; }
.emx-cookie__btn--ghost-dark:hover { background: #efe4d4; }
.emx-cookie__btn--green { background: var(--emerald-dark); color: #fff; }
.emx-cookie__btn--green:hover { background: var(--emerald); }

.emx-cookie-modal { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; padding: 20px; }
.emx-cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(4,16,12,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.emx-cookie-modal__dialog { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--ivory); border-radius: 12px; padding: 34px 34px 26px; border: 1px solid #d9c6a6; box-shadow: 0 30px 80px rgba(0,0,0,.35); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .35s, transform .4s cubic-bezier(.2,.8,.2,1); }
.emx-cookie-modal.is-open .emx-cookie-modal__backdrop { opacity: 1; }
.emx-cookie-modal.is-open .emx-cookie-modal__dialog { opacity: 1; transform: none; }
.emx-cookie-modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #d3bf9e; background: transparent; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.emx-cookie-modal__title { font-family: var(--serif); font-size: 34px; line-height: 1.05; color: var(--ink); margin: 0 0 10px; }
.emx-cookie-modal__title em { font-style: italic; color: var(--gold-dark); }
.emx-cookie-modal__intro { font-size: 14px; margin-bottom: 18px; }
.emx-cookie-cat { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid #e3d5c0; cursor: pointer; }
.emx-cookie-cat strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); }
.emx-cookie-cat span { display: block; font-size: 13px; line-height: 1.45; color: #4b4438; }
.emx-cookie-cat__always { flex: none; font-size: 11px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald) !important; }
.emx-cookie-modal__none { font-size: 13.5px; font-style: italic; border-top: 1px solid #e3d5c0; padding-top: 14px; }
.emx-cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3d5c0; }
.emx-switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 13px; background: #cdbfa8; position: relative; cursor: pointer; transition: background .25s; }
.emx-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s; }
.emx-switch:checked { background: var(--emerald); }
.emx-switch:checked::after { transform: translateX(20px); }
.emx-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.emx-footer__cookies { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.emx-footer__cookies:hover { color: var(--gold-light); }

@media (max-width: 860px) {
	.emx-cookie { left: 10px; right: 10px; bottom: 10px; }
	.emx-cookie__card { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; padding: 18px; }
	.emx-cookie__mono { display: none; }
	.emx-cookie__actions { justify-content: center; }
	.emx-cookie__btn { flex: 1 1 auto; }
	.emx-cookie-modal__dialog { padding: 28px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .emx-cookie__card, .emx-cookie-modal__dialog { transition: none; } }
