/* Couleur de l'année (/colour/). Aperçu : mesures et couleurs du bandeau du plugin 2.2.1 (cookie-rocks-base.css). */
.cr-colour { --acc: #74c0fc; --txt: #111111; --ink: #0578d2; max-width: 60rem; margin: var(--cr-space-5) auto 0; }
.cr-colour section { padding: var(--cr-space-6, 3rem) 0; }
.cr-colour section + section { border-top: 1px solid var(--cr-color-border); }
.cr-colour__h { margin: 0 0 var(--cr-space-4); font-size: var(--cr-text-2xl); letter-spacing: var(--cr-tracking-tight); text-align: center; }
.cr-colour__sub { margin: calc(-1 * var(--cr-space-3)) 0 var(--cr-space-4); text-align: center; color: var(--cr-color-muted); }

/* Nuancier */
.cr-colour__swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cr-space-3) var(--cr-space-4); border: 0; margin: 0 0 var(--cr-space-5); padding: 0; }
.cr-colour__swatch { display: grid; justify-items: center; gap: .45rem; cursor: pointer; }
.cr-colour__swatch input { position: absolute; opacity: 0; pointer-events: none; }
.cr-colour__dot { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); transition: transform .2s, box-shadow .2s; }
.cr-colour__swatch:hover .cr-colour__dot { transform: translateY(-2px); }
.cr-colour__swatch input:checked + .cr-colour__dot { box-shadow: 0 0 0 3px var(--cr-color-bg), 0 0 0 5px var(--sw); transform: scale(1.06); }
.cr-colour__swatch input:focus-visible + .cr-colour__dot { outline: 2px solid var(--cr-color-text); outline-offset: 6px; }
.cr-colour__name { display: grid; justify-items: center; font-size: var(--cr-text-sm); font-weight: 600; line-height: 1.2; }
.cr-colour__name small { font-weight: 400; color: var(--cr-color-muted); }
fieldset[disabled] .cr-colour__swatch { cursor: default; opacity: .6; }

/* Aperçu du bandeau, clair et sombre */
.cr-colour__previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cr-space-3); }
.cr-colour__mock { --bg: #fff; --fg: #1b1d22; --mut: #565c6b; --line: #e2e5eb; --soft: #f2f4f8; --page: #f4f6f9; --i: var(--ink);
	position: relative; padding: 1.25rem 1.25rem 4.25rem; border-radius: 1.25rem; background: var(--page); font-family: Inter, system-ui, sans-serif; overflow: hidden; }
.cr-colour__mock--dark { --bg: #17191f; --fg: #eef0f4; --mut: #aab1be; --line: #2d313b; --soft: #22252d; --page: #0d0f13; --i: var(--dk, var(--acc)); }
.cr-colour__banner { padding: 1.1rem; border-radius: 1rem; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 44px rgb(17 21 33 / .14); color: var(--fg); }
.cr-colour__mock--dark .cr-colour__banner { box-shadow: 0 18px 44px rgb(0 0 0 / .5); }
.cr-colour__head { display: flex; gap: .65rem; align-items: center; margin-bottom: .55rem; }
.cr-colour__ico { flex: none; width: 1.9rem; height: 1.9rem; background: var(--i); -webkit-mask: var(--cr-cookie) center / contain no-repeat; mask: var(--cr-cookie) center / contain no-repeat;
	--cr-cookie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 3c4 0 8 3 11 5 4 3 7 6 9 10 1 3-1 8-2 12-1 4-3 9-6 11-3 2-8 3-12 3-4 0-9-1-12-3-3-3-5-7-6-11-2-4-3-9-2-12 1-4 5-7 9-10 3-2 7-5 11-5zM11.4 19.7a6 4.4-25 1 0 10.9-5.1a6 4.4-25 1 0-10.9 5.1zM26.9 14.2a4.6 3.6 20 1 0 8.6 3.1a4.6 3.6 20 1 0-8.6-3.1zM23.8 28.2a6.2 4.6 15 1 0 12 3.2a6.2 4.6 15 1 0-12-3.2zM11.9 31.9a4.4 3.4-15 1 0 8.5-2.3a4.4 3.4-15 1 0-8.5 2.3zM21.8 23.8a2.2 2 0 1 0 4.4 0a2.2 2 0 1 0-4.4 0z'/%3E%3C/svg%3E"); }
.cr-colour__mock p { margin: 0; }
.cr-colour__eyebrow { font-size: .72rem; font-weight: 600; color: var(--mut); }
.cr-colour__title { font-size: .95rem; font-weight: 650; line-height: 1.25; }
.cr-colour__text { font-size: .8rem; line-height: 1.5; color: var(--mut); }
.cr-colour__text u { color: var(--fg); text-underline-offset: 2px; }
.cr-colour__btns { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .8rem; }
.cr-colour__btn { display: grid; place-items: center; min-height: 2.3rem; padding: 0 .6rem; border-radius: .7rem; background: var(--acc); color: var(--txt); font-size: .82rem; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s; }
.cr-colour__btn--soft { grid-column: 1 / -1; background: var(--soft); color: var(--fg); }
.cr-colour__widget { position: absolute; left: 1.25rem; bottom: 1rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 6px 20px rgb(17 21 33 / .16); }
.cr-colour__widget .cr-colour__ico { width: 1.7rem; height: 1.7rem; }

/* Bouton, règle, résultats */
.cr-colour__act { display: grid; justify-items: center; gap: .5rem; margin-top: var(--cr-space-5); }
.cr-colour__go { background: var(--acc) !important; color: var(--txt) !important; border-color: var(--acc) !important; transition: background .25s, color .25s, opacity .2s; }
.cr-colour__go:disabled, .cr-colour__sgo:disabled { opacity: .45; cursor: not-allowed; }
.cr-colour__rule { margin: 0; text-align: center; font-size: var(--cr-text-sm); color: var(--cr-color-muted); }
.cr-colour__out, .cr-colour__sout { margin-top: var(--cr-space-4); text-align: center; }
.cr-colour__out p, .cr-colour__sout p { margin: .3rem 0; }
.cr-colour__quip { display: block; max-width: 36rem; margin: 0 auto var(--cr-space-3) !important; padding: var(--cr-space-5) var(--cr-space-4); border-radius: 1.25rem; font-family: var(--cr-font-heading); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: var(--cr-tracking-tight); text-align: center; text-wrap: balance; }
.cr-colour__lead { font-weight: 600; }
.cr-colour__shares { list-style: none; max-width: 26rem; margin: var(--cr-space-3) auto 0; padding: 0; display: grid; gap: .45rem; text-align: left; }
.cr-colour__shares li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; }
.cr-colour__bar { height: .6rem; border-radius: 999px; background: linear-gradient(90deg, var(--sw) var(--pct), var(--cr-color-border) var(--pct)); }
.cr-colour__shares p { margin: 0 !important; font-size: var(--cr-text-sm); white-space: nowrap; }
.cr-colour__hues { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; }
.cr-colour__hues i { width: 1.4rem; height: 1.4rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }

/* Nuancier maison : zone teinte × clarté (dégradés exacts en HSL), curseur terne / vif, champ du code */
.cr-colour__pick { max-width: 40rem; margin: 0 auto var(--cr-space-5); display: grid; gap: var(--cr-space-3); }
.cr-colour__field { --s: 100%; position: relative; height: 11rem; border-radius: 1rem; cursor: crosshair; touch-action: none;
	background: linear-gradient(to bottom, #fff, rgb(255 255 255 / 0) 50%, rgb(0 0 0 / 0) 50%, #000),
		linear-gradient(to right, hsl(0 var(--s) 50%), hsl(60 var(--s) 50%), hsl(120 var(--s) 50%), hsl(180 var(--s) 50%), hsl(240 var(--s) 50%), hsl(300 var(--s) 50%), hsl(360 var(--s) 50%));
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.cr-colour__field:focus-visible { outline: 2px solid var(--cr-color-text); outline-offset: 3px; }
.cr-colour__thumb { position: absolute; width: 1.5rem; height: 1.5rem; margin: -.75rem 0 0 -.75rem; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .35), 0 2px 8px rgb(0 0 0 / .3); pointer-events: none; }
.cr-colour__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cr-space-3); }
.cr-colour__sat { --h: 205; flex: 1 1 14rem; display: flex; align-items: center; gap: .6rem; font-size: var(--cr-text-sm); color: var(--cr-color-muted); }
.cr-colour__sat input { flex: 1; height: .75rem; border-radius: 999px; -webkit-appearance: none; appearance: none; background: linear-gradient(to right, hsl(var(--h) 0% 50%), hsl(var(--h) 100% 50%)); cursor: pointer; }
.cr-colour__sat input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .35), 0 2px 6px rgb(0 0 0 / .25); }
.cr-colour__sat input::-moz-range-thumb { width: 1.3rem; height: 1.3rem; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .35), 0 2px 6px rgb(0 0 0 / .25); }
.cr-colour__code { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--cr-color-border); background: var(--cr-color-bg); }
.cr-colour__chip { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.cr-colour__code input { width: 5.6rem; border: 0; background: none; color: var(--cr-color-text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--cr-text-sm); outline: none; }
.cr-colour__code:focus-within { outline: 2px solid var(--cr-color-text); outline-offset: 2px; }
.cr-colour__code input.is-bad { color: var(--cr-color-danger, #c92a2a); }

/* Ce que garde la page, à la fin */
.cr-colour-facts { max-width: 40rem; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: .6rem; }
.cr-colour-facts li { padding-left: 1.4rem; position: relative; color: var(--cr-color-muted); }
.cr-colour-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--cr-color-accent); }

@media (max-width: 40rem) {
	.cr-colour__previews { grid-template-columns: minmax(0, 1fr); }
	.cr-colour__dot { width: 2.9rem; height: 2.9rem; }
}
@media (prefers-reduced-motion: reduce) { .cr-colour * { transition: none !important; } }
.cr-colour__previews + .cr-colour__rule { margin-top: var(--cr-space-4); }

/* Compte à rebours */
.cr-colour__count { display: grid; justify-items: center; gap: .6rem; margin: 0 0 var(--cr-space-5); }
.cr-colour__count-label { margin: 0; font-size: var(--cr-text-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cr-color-muted); }
.cr-colour__tiles { display: flex; gap: .6rem; }
.cr-colour__tiles span { display: grid; justify-items: center; min-width: 4.6rem; padding: .7rem .5rem .55rem; border-radius: 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cr-color-muted); background: color-mix(in srgb, var(--acc) 14%, var(--cr-color-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 35%, transparent); transition: background .3s, box-shadow .3s; }
.cr-colour__tiles b { font-family: var(--cr-font-heading); font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--cr-color-text); font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { .cr-colour__tiles span { min-width: 3.9rem; } }
