/* Rêve Blanc — bandeau & préférences cookies (noir & blanc, tokens du thème). */
.rbcc { --cc-ink: var(--ink, #0a0a0a); --cc-paper: var(--paper, #f5f3ef); --cc-mute: rgba(245, 243, 239, .62); --cc-line: rgba(255, 255, 255, .1); --cc-ease: cubic-bezier(.16, 1, .3, 1);
	position: fixed; z-index: 99995; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(620px, calc(100vw - 32px)); transform: translate(-50%, 24px); opacity: 0;
	transition: transform .7s var(--cc-ease), opacity .5s; font-family: var(--sans, "Jost", system-ui, sans-serif); color: var(--cc-paper); font-size: 14px; line-height: 1.55; }
.rbcc.is-in { transform: translate(-50%, 0); opacity: 1; }
.rbcc[hidden], .rbcc [hidden] { display: none !important; }
.rbcc__bar, .rbcc__prefs { position: relative; overflow: hidden; border: 1px solid var(--cc-line); border-radius: 18px; background: rgba(10, 10, 10, .95);
	-webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .65); }
.rbcc__bar { padding: 22px 24px 20px; }
/* Fil de couture qui se trace en haut du panneau. */
.rbcc__thread { position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: repeating-linear-gradient(90deg, var(--cc-paper) 0 6px, transparent 6px 11px); opacity: .5; transform: scaleX(0); transform-origin: 0 50%; }
.rbcc.is-in .rbcc__thread { animation: rbcc-sew 1.4s .2s var(--cc-ease) forwards; }
.rbcc__title { margin: 0 0 6px; font-family: var(--serif, "Noto Serif Display", Georgia, serif); font-weight: 400; font-size: 22px; line-height: 1.15; letter-spacing: .01em; color: var(--cc-paper); }
.rbcc__text p { margin: 0; color: var(--cc-mute); }
.rbcc a { color: var(--cc-paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rbcc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rbcc__btn { flex: 1 1 0; min-width: 120px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--cc-paper); border-radius: 999px; background: var(--cc-paper); color: var(--cc-ink); cursor: pointer;
	font: 500 11px/1.2 var(--sans, "Jost", system-ui, sans-serif); letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s, transform .4s var(--cc-ease); }
.rbcc__btn:hover { transform: translateY(-2px); }
.rbcc__btn--ghost { background: transparent; color: var(--cc-paper); border-color: rgba(245, 243, 239, .4); }
.rbcc__btn--ghost:hover { border-color: var(--cc-paper); }
.rbcc__btn:focus-visible, .rbcc__close:focus-visible, .rbcc summary:focus-visible, .rbcc__switch input:focus-visible + i { outline: 1px solid var(--cc-paper); outline-offset: 3px; }
/* Préférences */
.rbcc__prefs { display: flex; flex-direction: column; max-height: min(78vh, 680px); padding: 20px 0 18px; }
.rbcc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 14px; border-bottom: 1px solid var(--cc-line); }
.rbcc__head .rbcc__title { margin: 0; }
.rbcc__close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--cc-line); border-radius: 50%; background: none; color: var(--cc-paper); cursor: pointer; transition: transform .5s var(--cc-ease); }
.rbcc__close:hover { transform: rotate(90deg); }
.rbcc__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 24px 0; scrollbar-width: thin; }
.rbcc__prefs .rbcc__actions { padding: 14px 24px 0; margin-top: 0; border-top: 1px solid var(--cc-line); }
.rbcc__cat { border-bottom: 1px solid var(--cc-line); }
.rbcc__cat summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.rbcc__cat summary::-webkit-details-marker { display: none; }
.rbcc__name { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .02em; }
.rbcc__name::before { content: ""; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); transition: transform .35s var(--cc-ease); opacity: .7; }
.rbcc__cat[open] .rbcc__name::before { transform: rotate(45deg); }
.rbcc__cat > p { margin: 0 0 10px; color: var(--cc-mute); }
.rbcc__note { margin: 12px 0 4px; color: var(--cc-mute); font-size: 12.5px; }
/* Interrupteur */
.rbcc__switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.rbcc__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rbcc__switch i { position: relative; width: 40px; height: 22px; border: 1px solid rgba(245, 243, 239, .45); border-radius: 11px; transition: background .3s, border-color .3s; }
.rbcc__switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cc-paper); transition: transform .4s var(--cc-ease), background .3s; }
.rbcc__switch input:checked + i { background: var(--cc-paper); border-color: var(--cc-paper); }
.rbcc__switch input:checked + i::after { transform: translateX(18px); background: var(--cc-ink); }
.rbcc__switch input:disabled + i { opacity: .55; cursor: not-allowed; }
.rbcc__switch small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-mute); }
/* Tableau des cookies (panneau + politique de confidentialité) */
.rbcc-table { width: 100%; margin: 0 0 14px; border-collapse: collapse; font-size: 12.5px; line-height: 1.45; }
.rbcc-table th, .rbcc-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid rgba(127, 127, 127, .22); text-align: left; vertical-align: top; }
.rbcc-table th { font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.rbcc-table code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-word; }
.rbcc .rbcc-table td { color: var(--cc-mute); }
.rbcc .rbcc-table td:first-child { color: var(--cc-paper); }
.rbcc-policy__btn { display: inline-block; padding: 12px 22px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none !important; }
@keyframes rbcc-sew { to { transform: scaleX(1); } }
/* Mobile / tablette : au-dessus de la barre de navigation basse du thème. */
@media (max-width: 1100px) { .rbcc { bottom: calc(86px + env(safe-area-inset-bottom)); } .rbcc__prefs { max-height: calc(100vh - 130px); } }
@media (max-width: 560px) {
	.rbcc { width: calc(100vw - 20px); font-size: 13.5px; }
	.rbcc__bar { padding: 18px 18px 16px; }
	.rbcc__title { font-size: 20px; }
	.rbcc__bar .rbcc__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.rbcc__bar .rbcc__btn--ghost { grid-column: 1 / -1; order: 3; }
	.rbcc__head, .rbcc__scroll, .rbcc__prefs .rbcc__actions { padding-left: 18px; padding-right: 18px; }
	.rbcc-table thead { display: none; }
	.rbcc-table td { display: block; padding: 0 0 2px; border: 0; }
	.rbcc-table tr { display: block; padding: 8px 0; border-bottom: 1px solid rgba(127, 127, 127, .22); }
}
@media (prefers-reduced-motion: reduce) { .rbcc, .rbcc__btn, .rbcc__close, .rbcc__switch i::after { transition: none; } .rbcc.is-in .rbcc__thread { animation: none; transform: none; } }
@media print { .rbcc { display: none !important; } }
