/* Bandeau de consentement cookies - RGPD / Google Consent Mode v2 */
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:1000;background:var(--white,#fff);border-top:1px solid var(--line,#dde3e9);box-shadow:0 -4px 24px rgba(0,0,0,0.12);font-family:'Raleway',system-ui,sans-serif;}
.cookie-banner[hidden]{display:none;}
.cookie-banner-inner{max-width:1248px;margin:0 auto;padding:20px 24px;display:flex;flex-wrap:wrap;align-items:center;gap:20px;justify-content:space-between;}
.cookie-banner-text{flex:1 1 320px;font-family:'Roboto',sans-serif;font-size:13.5px;line-height:1.5;color:var(--ink-soft,#4a5865);margin:0;}
.cookie-banner-text a{color:var(--blue,#00578e);text-decoration:underline;}
.cookie-banner-actions{display:flex;gap:10px;flex-wrap:wrap;}
.cookie-banner-actions .btn{height:42px;padding:0 18px;font-size:13.5px;}

.cookie-panel{max-width:1248px;margin:0 auto;padding:4px 24px 20px;border-top:1px solid var(--line,#dde3e9);}
.cookie-panel[hidden]{display:none;}
.cookie-panel-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line,#dde3e9);}
.cookie-panel-row:last-of-type{border-bottom:none;}
.cookie-panel-row strong{font-size:14px;color:var(--ink,#17212b);}
.cookie-panel-row p{font-family:'Roboto',sans-serif;font-size:12.5px;color:var(--ink-faint,#6b7785);margin:2px 0 0;max-width:520px;}
.cookie-panel-actions{padding-top:10px;display:flex;justify-content:flex-end;}

.cookie-switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0;}
.cookie-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;}
.cookie-switch span{position:absolute;inset:0;background:var(--line,#dde3e9);border-radius:999px;transition:background .15s ease;pointer-events:none;}
.cookie-switch span::before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;background:var(--white,#fff);border-radius:50%;transition:transform .15s ease;box-shadow:0 1px 2px rgba(0,0,0,0.2);}
.cookie-switch input:checked + span{background:var(--blue,#00578e);}
.cookie-switch input:checked + span::before{transform:translateX(20px);}
.cookie-switch input:focus-visible + span{outline:2.5px solid var(--orange,#f37f2b);outline-offset:2px;}

.cookie-settings-link{background:none;border:none;padding:0;color:#93a7b8;text-decoration:underline;font:inherit;cursor:pointer;}
.cookie-settings-link:hover{color:#fff;}

@media (max-width:640px){
  .cookie-banner-inner{flex-direction:column;align-items:stretch;}
  .cookie-banner-actions{justify-content:stretch;}
  .cookie-banner-actions .btn{flex:1;}
  .cookie-panel-row{gap:12px;}
}
