/* CONSENTEMENT-04 : bandeau non modal, indépendant des onze palettes magasins. */
/* Garder le pied de page accessible au clavier derrière le bandeau fixe. */
html:has(.lgd-consent[open]) { scroll-padding-bottom:70dvh; }
body:has(.lgd-consent[open])::after { content:""; display:block; height:70dvh; }
.lgd-consent { box-sizing:border-box; position:fixed; inset:auto 0 0; z-index:1100; width:100%; max-width:none; max-height:70dvh; margin:0; padding:.875rem 1.25rem max(.75rem,env(safe-area-inset-bottom)); border:0; border-top:1px solid #b9c6ca; border-radius:0; background:#fff; color:#25343c; box-shadow:0 -4px 18px #172a341a; font:.9375rem/1.45 system-ui,sans-serif; overflow:auto; display:grid; grid-template-columns:minmax(0,1fr) minmax(25rem,.65fr); grid-template-areas:"title actions" "intro actions" "details close" "personal personal" "message message"; column-gap:1.5rem; row-gap:.4rem; }
.lgd-consent:not([open]), .lgd-consent [hidden] { display:none !important; }
.lgd-consent { overflow-wrap:anywhere; }
.lgd-consent *, .lgd-consent *::before, .lgd-consent *::after { box-sizing:border-box; }
.lgd-consent h2 { grid-area:title; margin:0; color:inherit; font:650 1.125rem/1.3 system-ui,sans-serif; }
.lgd-consent h2:focus { outline:none; }
.lgd-consent p { margin:0; }
#lgd-consent-intro { grid-area:intro; }
.lgd-consent > .lgd-consent__details { grid-area:details; }
.lgd-consent__actions { grid-area:actions; align-self:center; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,6rem),1fr)); gap:.5rem; margin:0; }
.lgd-consent button { min-height:44px; padding:.6rem .65rem; border:1px solid #315564; border-radius:6px; background:#fff; color:#315564; font:600 .9375rem/1.35 system-ui,sans-serif; cursor:pointer; }
.lgd-consent button:hover { background:#edf2f2; }
.lgd-consent :is(button,input,a):focus-visible, .lgd-consent [data-consent-accept]:focus, .lgd-consent-manage:focus-visible { outline:3px solid #0b57d0; outline-offset:3px; }
.lgd-consent__personal { grid-area:personal; min-width:0; margin:.5rem 0; padding:.75rem; border:1px solid #b9c6ca; border-radius:8px; }
.lgd-consent__personal legend { float:none; width:auto; padding:0 .4rem; margin:0; font:600 1rem/1.5 system-ui,sans-serif; }
.lgd-consent__service { margin-bottom:.75rem; }
.lgd-consent__service label { display:flex; align-items:center; gap:.75rem; min-height:44px; margin:0; cursor:pointer; font-weight:600; }
.lgd-consent__service input { flex:none; width:1.25rem; height:1.25rem; margin:0; accent-color:#315564; }
.lgd-consent__service p, .lgd-consent__details { font-size:.875rem; line-height:1.5; }
.lgd-consent a { color:#315564; text-decoration:underline; text-underline-offset:.18em; overflow-wrap:anywhere; }
.lgd-consent__service a { display:inline-flex; align-items:center; min-height:44px; }
.lgd-consent__message:empty, .lgd-consent-storage:empty { display:none; }
.lgd-consent__message { grid-area:message; font-size:.875rem; font-weight:600; }
.lgd-consent button.lgd-consent__close { grid-area:close; justify-self:end; align-self:end; display:block; margin:0; border-color:transparent; font-weight:400; text-decoration:underline; }
/* Même présentation que les liens .lgd-footer__list de custom.css. */
.lgd-consent-manage { display:inline-flex; align-items:center; min-height:32px; max-width:100%; padding:5px 0; border:0; background:transparent; color:inherit; font:inherit; font-size:.875rem; line-height:1.45; text-align:left; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; transition:all .2s ease-in-out; cursor:pointer; }
.lgd-consent-manage:hover { color:#304f60; }
.lgd-consent-storage { max-width:42rem; margin:.75rem 0; font-size:.875rem; }
@media (max-width:767.98px), (any-pointer:coarse) {
 .lgd-consent-manage { min-height:44px; }
}
@media(max-width:991px) {
 .lgd-consent { grid-template-columns:minmax(0,1fr); grid-template-areas:"title" "actions" "intro" "details" "personal" "message" "close"; padding:.75rem 1rem max(.5rem,env(safe-area-inset-bottom)); font-size:.875rem; row-gap:.5rem; }
 .lgd-consent__actions button { padding:.4rem .3rem; font-size:.875rem; }
}
@media(max-width:575px) {
 .lgd-consent { max-height:min(60dvh,24rem); }
 .lgd-consent__actions { grid-template-columns:1fr; }
}
