/* Floating buttons (slim strip on the right edge; bottom bar on phones, hidden while scrolling down) and cookie notice. */
.float-bar { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; background: var(--navy); transition: transform .2s ease; }
.float-bar.is-away { transform: translateY(100%); }
.float-bar ul { display: flex; justify-content: space-around; margin: 0; padding: 0; list-style: none; }
.float-bar a, .float-bar a:visited { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #fff; transition: color .15s; }
.float-bar svg { width: 20px; height: 20px; }
.float-bar a:hover { color: var(--yellow); }
.float-bar a:focus-visible { outline: 2px solid var(--yellow); outline-offset: -4px; }
body { padding-bottom: 48px; }

/* Cookie notice: a small card, not a bar. It sits in the corner (bottom on phones), never dims or blocks the page, and shows 2-3 lines until "Lire la suite" is pressed. */
.cookie-note { position: fixed; z-index: 110; right: 8px; bottom: 8px; left: 8px; display: grid; gap: 8px; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; background: #fff; border: 1px solid #c9d2e0; border-top: 3px solid var(--navy); font-size: 13.5px; line-height: 1.45; color: #1d2b44; }
.cookie-note[hidden], .cookie-revisit[hidden] { display: none; }
.cookie-revisit svg { width: 18px; height: 18px; }
.cookie-note p { margin: 0; }
.cookie-note__title { margin-bottom: 2px !important; color: var(--navy); font-size: 15px; font-weight: 600; line-height: 1.3; }
.cookie-note__body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cookie-note.is-open .cookie-note__body { display: block; }
.cookie-note__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 2px !important; }
.cookie-note a, .cookie-note a:visited, .cookie-note a:hover, .cookie-note a:focus, .cookie-note__more, .cookie-note__more:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cookie-note__more { min-height: 30px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.cookie-note__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-note__actions button { min-height: 44px; padding: 0 12px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.cookie-note__actions button:hover { background: #e4ecf8; }
.cookie-note__actions button[data-consent="accepted"] { background: var(--navy); color: #fff; }
.cookie-note__actions button[data-consent="accepted"]:hover { background: #001c3d; }
.cookie-note button:focus-visible, .cookie-note a:focus-visible, .cookie-revisit:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cookie-revisit { position: fixed; z-index: 91; right: 6px; bottom: 54px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #0056a7; color: #fff; cursor: pointer; }

@media (min-width: 768px) {
	body { padding-bottom: 0; }
	.float-bar { top: 50%; right: 0; bottom: auto; left: auto; width: 40px; padding-block: 6px; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%); transform: translateY(-50%); }
	.float-bar.is-away { transform: translateY(-50%); }
	.float-bar ul { flex-direction: column; align-items: flex-end; }
	.float-bar a, .float-bar a:visited { width: 36px; height: 38px; }
	.float-bar svg { width: 18px; height: 18px; }
	.cookie-revisit { right: 2px; bottom: 15px; left: auto; width: 36px; height: 36px; }
	.cookie-revisit svg { width: 20px; height: 20px; }
	.cookie-note { right: 60px; bottom: 12px; left: 20px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; max-height: 80vh; padding: 12px 18px; }
	.cookie-note__text { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 24px; row-gap: 2px; }
	.cookie-note__title { margin: 0 !important; }
	.cookie-note__links { grid-column: 2; grid-row: 1; margin: 0 !important; }
	.cookie-note__body { grid-column: 1 / -1; grid-row: 2; -webkit-line-clamp: 1; line-clamp: 1; }
	.cookie-note__actions { grid-template-columns: auto auto; }
	.cookie-note__actions button { min-width: 140px; }
}
@media (prefers-reduced-motion: reduce) { .float-bar, .float-bar a { transition: none; } }
