/* Comfordev Cookie Consent */
.cfd-cc { --cfd-cc-primary:#ff6600; --cfd-cc-text:#1a1a1a; --cfd-cc-bg:#fff; font-family:inherit; color:var(--cfd-cc-text); }
.cfd-cc[hidden], .cfd-cc [hidden] { display:none !important; }
.cfd-cc *, .cfd-cc *::before, .cfd-cc *::after { box-sizing:border-box; }
.cfd-cc .screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Bandeau */
.cfd-cc__banner { position:fixed; z-index:99998; background:var(--cfd-cc-bg); color:var(--cfd-cc-text); box-shadow:0 -6px 30px rgba(0,0,0,.18); padding:18px 22px; display:flex; gap:20px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cfd-cc--bottom .cfd-cc__banner { left:0; right:0; bottom:0; border-top:3px solid var(--cfd-cc-primary); }
.cfd-cc--left .cfd-cc__banner { left:20px; bottom:20px; width:min(440px, calc(100vw - 40px)); flex-direction:column; align-items:stretch; border-radius:10px; border-top:3px solid var(--cfd-cc-primary); box-shadow:0 10px 40px rgba(0,0,0,.25); }
.cfd-cc--center .cfd-cc__banner { left:50%; top:50%; transform:translate(-50%,-50%); width:min(560px, calc(100vw - 32px)); flex-direction:column; align-items:stretch; border-radius:12px; border-top:3px solid var(--cfd-cc-primary); box-shadow:0 0 0 100vmax rgba(0,0,0,.45), 0 10px 40px rgba(0,0,0,.3); }

.cfd-cc__body { flex:1 1 420px; min-width:0; }
.cfd-cc__title { margin:0 0 6px; font-size:1.1rem; line-height:1.3; color:var(--cfd-cc-text); }
.cfd-cc__msg { margin:0; font-size:.92rem; line-height:1.5; color:var(--cfd-cc-text); }
.cfd-cc__msg a { color:var(--cfd-cc-primary); text-decoration:underline; margin-left:6px; white-space:nowrap; }

/* Boutons : mêmes taille et visibilité */
.cfd-cc__actions { display:flex; gap:10px; flex-wrap:wrap; align-items:stretch; }
.cfd-cc__btn { appearance:none; cursor:pointer; font:inherit; font-size:.9rem; font-weight:600; line-height:1.2; padding:11px 18px; min-height:44px; border-radius:6px; border:2px solid var(--cfd-cc-primary); transition:filter .15s, background .15s; text-align:center; }
.cfd-cc__btn--fill { background:var(--cfd-cc-primary); color:#fff; }
.cfd-cc__btn--line { background:transparent; color:var(--cfd-cc-primary); }
.cfd-cc__btn:hover { filter:brightness(.92); }
.cfd-cc__btn:focus-visible, .cfd-cc__float:focus-visible, .cfd-cc__switch input:focus-visible + span { outline:3px solid #1a73e8; outline-offset:2px; }
.cfd-cc--left .cfd-cc__actions, .cfd-cc--center .cfd-cc__actions { flex-direction:column; }
.cfd-cc__inline { display:inline-block; }

/* Fenêtre de préférences */
.cfd-cc__overlay { position:fixed; inset:0; z-index:99999; background:rgba(0,0,0,.55); }
.cfd-cc__modal { position:fixed; z-index:100000; left:50%; top:50%; transform:translate(-50%,-50%); width:min(640px, calc(100vw - 24px)); max-height:calc(100vh - 24px); overflow:auto; background:var(--cfd-cc-bg); color:var(--cfd-cc-text); border-radius:12px; padding:24px; box-shadow:0 20px 60px rgba(0,0,0,.4); border-top:4px solid var(--cfd-cc-primary); }
.cfd-cc__cats { margin:16px 0 20px; display:grid; gap:10px; }
.cfd-cc__cat { border:1px solid rgba(0,0,0,.12); border-radius:8px; padding:12px 14px; }
.cfd-cc__cat p { margin:6px 0 0; font-size:.86rem; line-height:1.45; opacity:.85; }
.cfd-cc__cat-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }

/* Interrupteurs */
.cfd-cc__switch { position:relative; display:inline-block; width:46px; height:26px; flex:0 0 auto; }
.cfd-cc__switch input { position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:2; }
.cfd-cc__switch span[aria-hidden] { position:absolute; inset:0; border-radius:26px; background:#b9b9b9; transition:background .2s; }
.cfd-cc__switch span[aria-hidden]::before { content:""; position:absolute; width:20px; height:20px; left:3px; top:3px; border-radius:50%; background:#fff; transition:transform .2s; }
.cfd-cc__switch input:checked + span { background:var(--cfd-cc-primary); }
.cfd-cc__switch input:checked + span::before { transform:translateX(20px); }
.cfd-cc__switch input:disabled { cursor:not-allowed; }
.cfd-cc__switch input:disabled + span { opacity:.6; }

/* Bouton flottant */
.cfd-cc__float { position:fixed; z-index:99990; left:16px; bottom:16px; background:var(--cfd-cc-bg); color:var(--cfd-cc-text); border:2px solid var(--cfd-cc-primary); border-radius:999px; padding:8px 14px; font:inherit; font-size:.8rem; font-weight:600; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.2); }

html.cfd-cc-lock { overflow:hidden; }

@media (max-width:640px) {
	.cfd-cc__banner { padding:14px; }
	.cfd-cc__actions { flex-direction:column; width:100%; }
	.cfd-cc__modal { padding:18px; }
}
@media (prefers-reduced-motion:reduce) {
	.cfd-cc * { transition:none !important; }
}
