/* Cookie consent card (site-consent.js): small, non-modal, bottom left; a compact strip above the mobile tab bar. Theme tokens only. */
.site-consent,.site-consent *,.site-consent *::before,.site-consent *::after{box-sizing:border-box}
.site-consent{position:fixed;left:1rem;bottom:calc(1rem + var(--site-tabbar-space,0px));z-index:1040;width:min(23rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem - var(--site-tabbar-space,0px));overflow:auto;
 padding:1rem 1rem .85rem;background:var(--mt-surface);color:var(--mt-text);border:1px solid var(--mt-border);border-radius:.85rem;box-shadow:var(--mt-elev-3,0 .75rem 2rem rgb(var(--mt-shadow-channels) / .45));font-size:.85rem;line-height:1.45}
.site-consent::before{content:"";position:absolute;inset:0 0 auto;height:2px;border-radius:.85rem .85rem 0 0;background:var(--mt-gradient)}
.site-consent h2{margin:0 1.5rem .35rem 0;font-size:.95rem;font-weight:700;color:var(--mt-text)}
.site-consent h2:focus{outline:none}
.site-consent h2:focus-visible{outline:2px solid var(--mt-primary);outline-offset:2px;border-radius:2px}
.site-consent-text{margin:0 0 .75rem;color:var(--mt-text-secondary)}
.site-consent-details{display:grid;gap:.6rem;margin:0 0 .8rem}
.site-consent-details[hidden]{display:none}
.site-consent-option{padding:.55rem .65rem;background:var(--mt-surface-raised);border:1px solid var(--mt-border);border-radius:.6rem}
.site-consent-option-head{display:flex;align-items:center;gap:.5rem}
.site-consent-option label{flex:1 1 auto;font-weight:600;color:var(--mt-text);cursor:pointer}
.site-consent-option p{margin:.25rem 0 0;font-size:.78rem;color:var(--mt-text-secondary)}
.site-consent-state{font-size:.72rem;color:var(--mt-text-secondary);white-space:nowrap}
.site-consent-switch{flex:0 0 auto;appearance:none;-webkit-appearance:none;position:relative;width:2.3rem;height:1.3rem;margin:0;border:1px solid var(--mt-text-secondary);border-radius:999px;background:var(--mt-surface);cursor:pointer}
.site-consent-switch::after{content:"";position:absolute;top:.15rem;left:.15rem;width:.9rem;height:.9rem;border-radius:50%;background:var(--mt-text-secondary)}
.site-consent-switch:checked{background:var(--mt-primary);border-color:var(--mt-primary)}
.site-consent-switch:checked::after{left:auto;right:.15rem;background:var(--mt-on-accent,var(--mt-bg))}
.site-consent-switch:disabled{cursor:not-allowed;opacity:.65}
.site-consent-switch:focus-visible{outline:2px solid var(--mt-primary);outline-offset:2px}
/* Refusing and accepting share the very same style, size and level (CNIL): two equal columns on one row,
   the secondary action (Personnaliser / Enregistrer mes choix) on its own row below them. */
.site-consent-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.site-consent-actions [data-consent-action="customize"],.site-consent-actions [data-consent-action="save"]{grid-column:1/-1}
.site-consent-button{min-height:2.2rem;padding:.4rem .75rem;font:inherit;font-size:.82rem;font-weight:600;line-height:1.25;color:var(--mt-text);background:var(--mt-surface-raised);border:1px solid var(--mt-border);border-radius:.5rem;cursor:pointer;overflow-wrap:anywhere}
.site-consent-button:hover{background:var(--mt-surface-hover,var(--mt-surface-raised));border-color:rgb(var(--mt-edge-tint-channels) / .32)}
.site-consent-button:focus-visible,.site-consent-close:focus-visible,.site-consent-link-more:focus-visible{outline:2px solid var(--mt-primary);outline-offset:2px}
.site-consent-button-quiet{background:transparent;color:var(--mt-text-secondary)}
.site-consent-button[hidden]{display:none}
.site-consent-link-more{display:inline-block;margin-top:.6rem;font-size:.78rem;color:var(--mt-primary);text-decoration:underline}
.site-consent-link-more:hover{color:var(--mt-primary-hover,var(--mt-primary))}
.site-consent-close{position:absolute;top:.4rem;right:.5rem;width:1.8rem;height:1.8rem;padding:0;font:inherit;font-size:1.2rem;line-height:1;color:var(--mt-text-secondary);background:none;border:0;border-radius:.4rem;cursor:pointer}
.site-consent-close:hover{color:var(--mt-text);background:var(--mt-surface-hover,var(--mt-surface-raised))}
.site-consent-toast{position:fixed;left:1rem;bottom:calc(1rem + var(--site-tabbar-space,0px));z-index:1090;max-width:min(22rem,calc(100% - 2rem));padding:.65rem .9rem;background:var(--mt-surface);color:var(--mt-text);border:1px solid var(--mt-success);border-radius:.6rem;box-shadow:var(--mt-elev-2,0 .5rem 1.5rem rgb(var(--mt-shadow-channels) / .4));font-size:.85rem}
.site-consent-toast:empty{display:none}
/* Footer and mobile legal line: the « Cookies » button looks like its neighbouring links. */
.site-consent-link{font:inherit;line-height:1.5;padding:0;border:0;background:none;color:inherit;cursor:pointer}
.site-consent-link:hover{color:var(--mt-primary-hover,var(--mt-primary));text-decoration:underline}
.site-consent-link:focus-visible{outline:2px solid var(--mt-primary);outline-offset:3px;border-radius:3px}
.site-consent-link[hidden],[data-consent-reveal][hidden]{display:none}
.mt-footer .site-consent-link:hover{color:var(--mt-primary-hover);text-decoration:none}
.mt-footer .site-consent-link:focus-visible{outline-offset:5px}
.site-mobile-legal .site-consent-link{color:var(--mt-text)}
.site-mobile-legal .site-consent-link:hover{color:var(--mt-primary);text-decoration:underline}
@media (max-width:991.98px){
 .site-consent{left:.75rem;right:.75rem;bottom:calc(var(--site-tabbar-space,0px) + .75rem);width:auto;padding:.8rem .85rem .7rem;font-size:.8rem}
 .site-consent-more{display:none}
 .site-consent-text{margin-bottom:.6rem}
 .site-consent-toast{left:.75rem;bottom:calc(var(--site-tabbar-space,0px) + .75rem)}
}
@media (prefers-reduced-motion:no-preference){
 .site-consent{animation:site-consent-in .28s ease-out both}
 @keyframes site-consent-in{from{opacity:0;transform:translateY(.75rem)}to{opacity:1;transform:none}}
}
