/* GSI – Consentement cookies (couleurs et police du thème, avec valeurs de repli) */
.gsi-cc, .gsi-cc-prefs { --cc-ink: var(--ink, #272828); --cc-soft: var(--ink-soft, #5c5f5e); --cc-line: var(--line, rgba(39, 40, 40, .12)); --cc-accent: var(--teal-ink, #007877); --cc-bg: var(--white, #fff); --cc-sand: var(--sand, #f2eee6); font-family: var(--sans, system-ui, -apple-system, "Segoe UI", sans-serif); color: var(--cc-ink); }
.gsi-cc[hidden] { display: none !important; }
.gsi-cc { position: fixed; left: 24px; bottom: 24px; z-index: 9990; width: min(540px, calc(100vw - 48px)); background: var(--cc-bg); border: 1px solid var(--cc-line); box-shadow: 0 30px 80px -30px rgba(18, 37, 36, .45), 0 8px 24px -12px rgba(18, 37, 36, .2); animation: gsi-cc-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes gsi-cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.gsi-cc__inner { padding: 26px 28px 24px; }
.gsi-cc__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.gsi-cc__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--cc-soft); }
.gsi-cc__text a, .gsi-cc-prefs a { color: var(--cc-accent); text-decoration: underline; text-underline-offset: 3px; }
.gsi-cc__actions, .gsi-cc-prefs__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.gsi-cc__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border: 1px solid var(--cc-ink); border-radius: var(--radius, 2px); background: var(--cc-ink); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 700; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; text-align: center; cursor: pointer; transition: background .2s, color .2s; }
.gsi-cc__btn:hover { background: #111; }
.gsi-cc__btn--line { background: transparent; color: var(--cc-ink); }
.gsi-cc__btn--line:hover { background: var(--cc-ink); color: #fff; }
.gsi-cc__btn:focus-visible, .gsi-cc-prefs__close:focus-visible, .gsi-cc-switch input:focus-visible + .gsi-cc-switch__track { outline: 2px solid var(--teal, #009f9d); outline-offset: 3px; }

.gsi-cc-prefs { width: min(640px, calc(100vw - 32px)); max-height: min(86vh, 760px); margin: auto; padding: 0; border: 0; background: var(--cc-bg); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.gsi-cc-prefs[open] { display: flex; }
.gsi-cc-prefs::backdrop { background: rgba(12, 18, 18, .55); }
.gsi-cc-prefs__form { display: flex; flex-direction: column; width: 100%; max-height: inherit; margin: 0; }
.gsi-cc-prefs__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 20px 16px 28px; border-bottom: 1px solid var(--cc-line); }
.gsi-cc-prefs__head h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.gsi-cc-prefs__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--cc-sand); color: var(--cc-ink); cursor: pointer; }
.gsi-cc-prefs__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gsi-cc-prefs__body { overflow-y: auto; padding: 18px 28px 8px; font-size: 14.5px; line-height: 1.6; color: var(--cc-soft); }
.gsi-cc-prefs__body > p { margin: 0 0 14px; }
.gsi-cc-cat { padding: 16px 0; border-top: 1px solid var(--cc-line); }
.gsi-cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.gsi-cc-cat h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--cc-ink); }
.gsi-cc-cat p { margin: 0; }
.gsi-cc-cat__always { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-accent); white-space: nowrap; }
.gsi-cc-cat__cookies { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; }
.gsi-cc-cat__note { margin-top: 8px !important; font-size: 13px; }
.gsi-cc-cat code, .gsi-cookies-table code { font-size: .92em; padding: 1px 5px; background: var(--cc-sand, #f2eee6); border-radius: 2px; }
.gsi-cc-prefs__more { margin: 4px 0 8px !important; }
.gsi-cc-prefs__actions { margin: 0; padding: 16px 28px 22px; border-top: 1px solid var(--cc-line); }

.gsi-cc-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex: none; }
.gsi-cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gsi-cc-switch__track { position: relative; width: 46px; height: 26px; border-radius: 13px; background: #c9cccb; transition: background .2s; }
.gsi-cc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.gsi-cc-switch input:checked + .gsi-cc-switch__track { background: var(--teal-btn, #00807e); }
.gsi-cc-switch input:checked + .gsi-cc-switch__track::after { transform: translateX(20px); }
.gsi-cc-switch__state { min-width: 58px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cc-soft); }
.gsi-cc-switch__state::before { content: attr(data-off); }
.gsi-cc-switch input:checked ~ .gsi-cc-switch__state::before { content: attr(data-on); color: var(--cc-accent); }

.gsi-cookies-table { overflow-x: auto; margin: 16px 0; }
.gsi-cookies-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gsi-cookies-table th, .gsi-cookies-table td { padding: 10px 12px; border-bottom: 1px solid rgba(39, 40, 40, .12); text-align: left; vertical-align: top; }
.gsi-cookies-table th { font-weight: 700; }

@media (max-width: 640px) {
	.gsi-cc { left: 0; right: 0; bottom: 0; width: 100%; border-width: 1px 0 0; }
	.gsi-cc__inner { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
	.gsi-cc__title { font-size: 17px; }
	.gsi-cc__text { font-size: 14px; }
	.gsi-cc__actions { grid-template-columns: 1fr 1fr; }
	.gsi-cc__actions [data-gsi-consent="customize"] { grid-column: 1 / -1; order: 3; }
	.gsi-cc-prefs { width: 100%; max-height: 92vh; margin: auto 0 0; }
	.gsi-cc-prefs__head { padding: 16px 14px 12px 20px; }
	.gsi-cc-prefs__body { padding: 14px 20px 6px; }
	.gsi-cc-prefs__actions { grid-template-columns: 1fr 1fr; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
	.gsi-cc-prefs__actions [data-gsi-consent="save"] { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .gsi-cc { animation: none; } }
@media print { .gsi-cc, .gsi-cc-prefs { display: none !important; } }
