/**
 * Bandeau de consentement (voir includes/cookies.php).
 * Discret : une carte en bas à gauche, dans les codes du site (Poppins, boutons en pilule, filets fins).
 * Il ne bloque pas la navigation. Sur téléphone, il occupe la largeur en bas de l'écran.
 * « Tout refuser » et « Tout accepter » ont volontairement le même aspect (exigence de la CNIL).
 */
.pm-consent { position: fixed; bottom: clamp(12px, 1.4vw, 24px); left: clamp(12px, 1.4vw, 24px); z-index: 9990; box-sizing: border-box; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 20px 22px; border: 1px solid #d9d2c8; border-radius: 4px; background: #fff; color: #312a27; font-family: Poppins, Arial, sans-serif; font-size: 13px; font-weight: 300; line-height: 1.55; box-shadow: 0 12px 40px rgb(0 0 0 / 12%); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.pm-consent[hidden] { display: none; }
.pm-consent.is-visible { opacity: 1; transform: none; }
.pm-consent__title { margin: 0 0 6px; font-size: 15px; font-weight: 400; line-height: 1.3; }
.pm-consent__text { margin: 0; }
.pm-consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.pm-consent__choices { margin-top: 14px; border-top: 1px solid #d9d2c8; }
.pm-consent__choices[hidden] { display: none; }
.pm-consent__choice { display: block; margin: 0; padding: 12px 0; border-bottom: 1px solid #d9d2c8; cursor: default; }
label.pm-consent__choice { cursor: pointer; }
.pm-consent__choice-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-consent__choice-head strong { font-size: 13px; font-weight: 400; }
.pm-consent__choice-head em { color: #7a716c; font-size: 12px; font-style: normal; }
.pm-consent__choice-text { display: block; margin-top: 4px; padding-right: 52px; color: #7a716c; font-size: 12px; }
.pm-consent__choice input { position: absolute; right: 0; width: 40px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.pm-consent__switch { position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px; background: #d9d2c8; transition: background .2s ease; }
.pm-consent__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.pm-consent__choice input:checked + .pm-consent__switch { background: #312a27; }
.pm-consent__choice input:checked + .pm-consent__switch::after { transform: translateX(18px); }
.pm-consent__choice input:focus-visible + .pm-consent__switch { outline: 2px solid #272727; outline-offset: 2px; }

/* Sélecteurs « button.… » : le thème parent (Hello Elementor) colore tous les <button> en rose ; on reprend la main.
   Refuser et accepter partagent la même ligne, à largeur égale ; « Personnaliser » / « Enregistrer » est au-dessus. */
.pm-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.pm-consent__actions [data-pm-consent-action="customize"],
.pm-consent__actions [data-pm-consent-action="save"] { grid-column: 1 / -1; }
button.pm-consent__button,
button.pm-consent__button:is(:hover, :focus, :active) { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 1px solid #272727; border-radius: 999px; background: #fff; color: #272727; font: 400 13px/1.2 Poppins, Arial, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .18s ease, color .18s ease; }
button.pm-consent__button[hidden] { display: none; }
button.pm-consent__button:is(:hover, :focus-visible) { background: #272727; color: #fff; }
button.pm-consent__button:focus-visible { outline: 2px solid #272727; outline-offset: 2px; }
button.pm-consent__button--ghost,
button.pm-consent__button--ghost:is(:hover, :focus, :active) { justify-content: flex-start; min-height: 0; padding: 2px 0 6px; border: 0; border-radius: 0; background: transparent; color: #7a716c; text-decoration: underline; text-underline-offset: 3px; }
button.pm-consent__button--ghost:is(:hover, :focus-visible) { background: transparent; color: #272727; }
button.pm-consent__button--inline,
button.pm-consent__button--inline:is(:hover, :focus, :active) { min-height: 46px; padding: 0 28px; font-size: 14px; }
button.pm-consent__button--inline:is(:hover, :focus-visible) { background: #272727; color: #fff; }

/* Carte Google Maps en attente d'accord */
.pm-consent-embed { position: relative; height: 100%; }
.pm-consent-embed iframe:not([src]) { display: none; }
.pm-consent-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; height: 100%; min-height: 320px; padding: 32px 24px; background: #f3f1ed; color: #312a27; font-family: Poppins, Arial, sans-serif; font-size: 14px; font-weight: 300; line-height: 1.55; text-align: center; }
.pm-consent-embed.is-allowed .pm-consent-placeholder { display: none; }
.pm-consent-placeholder p { max-width: 380px; margin: 0 0 8px; }
.pm-consent-placeholder strong { font-size: 16px; font-weight: 400; }
.pm-consent-placeholder__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 10px !important; }
.pm-consent-placeholder button.pm-consent__button { background: transparent; }
.pm-consent-placeholder button.pm-consent__button:is(:hover, :focus-visible) { background: #272727; color: #fff; }
.pm-consent-placeholder a { color: #312a27; font-size: 13px; text-underline-offset: 3px; }

@media (max-width: 600px) {
	.pm-consent { right: 0; bottom: 0; left: 0; width: 100%; max-height: 85vh; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -8px 30px rgb(0 0 0 / 10%); }
	button.pm-consent__button:not(.pm-consent__button--ghost) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-consent { transition: none; }
}
@media print {
	.pm-consent { display: none !important; }
}
