/* Page « How long cookies last » (/cookie-lifetimes/, 20/11/2026), chargée sur cette page seulement.
   Ordre : largeur commune, thème, phrase du pays, panneau et graphique, légende, schémas des deux cas, sections de la
   page. Le panneau suit le thème du site : clair par défaut, ciel de nuit en sombre. */

/* Largeur commune : un seul bord gauche pour tous les blocs (outil, titre, introduction, sections). */
.cr-main:has(.cr-life, .cr-store, .cr-dots) { --life-w: min(var(--cr-width-wide), calc(100vw - 2 * var(--cr-gutter) - var(--cr-sbw, 0px))); }
@media (min-width: 60rem) {
	.cr-life.alignfull,
	.cr-main:has(.cr-life, .cr-store, .cr-dots) > .wp-block-post-title,
	.cr-main:has(.cr-life, .cr-store, .cr-dots) > .cr-back,
	.cr-main:has(.cr-life, .cr-store, .cr-dots) .wp-block-post-content > .cr-lead { width: var(--life-w); max-width: none !important; margin-left: calc(50% - var(--life-w) / 2) !important; margin-right: 0 !important; box-sizing: border-box; }
	.cr-main:has(.cr-life, .cr-store, .cr-dots) .wp-block-post-content > .cr-lead { padding-right: calc(var(--life-w) - 46rem); }
}
@media (max-width: 59.99rem) { .cr-life.alignfull { width: auto; max-width: none; margin-left: 0 !important; margin-right: 0 !important; } }

/* Thème (couleurs WordPress du site). Lues aussi par lifetimes.js pour le dessin. */
.cr-life, .cr-lbars, .cr-life__scenes, .cr-store, .cr-dots, .cr-stop { --life-bg: var(--cr-color-bg-alt); --life-border: var(--cr-color-border); --life-ink: #1b1d22; --life-soft: rgba(27,29,34,.62); --life-faint: rgba(27,29,34,.1); --life-line: rgba(27,29,34,.32); --life-shade: rgba(27,29,34,.035); --life-ctrl: #ffffff; --life-ctrl-border: #d9dde6; --life-yes: #1b1d22; --life-on-yes: #ffffff; --life-necessary: #dba617; --life-preferences: #00a32a; --life-statistics: #2271b1; --life-marketing: #d63638; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cr-life, :root:not([data-theme="light"]) .cr-lbars, :root:not([data-theme="light"]) .cr-life__scenes, :root:not([data-theme="light"]) .cr-store, :root:not([data-theme="light"]) .cr-dots, :root:not([data-theme="light"]) .cr-stop { --life-bg: radial-gradient(120% 90% at 85% 10%, #141a2e 0%, #07090f 55%, #030406 100%); --life-border: transparent; --life-ink: #e6ecf8; --life-soft: rgba(214,222,240,.66); --life-faint: rgba(214,222,240,.1); --life-line: rgba(214,222,240,.32); --life-shade: rgba(255,255,255,.045); --life-ctrl: #121622; --life-ctrl-border: #262b3a; --life-yes: rgba(230,236,248,.9); --life-on-yes: #07090f; --life-necessary: #f0c33c; --life-preferences: #4ab866; --life-statistics: #72aee6; --life-marketing: #f86368; } }
:root[data-theme="dark"] .cr-life, :root[data-theme="dark"] .cr-lbars, :root[data-theme="dark"] .cr-life__scenes, :root[data-theme="dark"] .cr-store, :root[data-theme="dark"] .cr-dots, :root[data-theme="dark"] .cr-stop { --life-bg: radial-gradient(120% 90% at 85% 10%, #141a2e 0%, #07090f 55%, #030406 100%); --life-border: transparent; --life-ink: #e6ecf8; --life-soft: rgba(214,222,240,.66); --life-faint: rgba(214,222,240,.1); --life-line: rgba(214,222,240,.32); --life-shade: rgba(255,255,255,.045); --life-ctrl: #121622; --life-ctrl-border: #262b3a; --life-yes: rgba(230,236,248,.9); --life-on-yes: #07090f; --life-necessary: #f0c33c; --life-preferences: #4ab866; --life-statistics: #72aee6; --life-marketing: #f86368; }

/* Phrase du pays : elle attend la géolocalisation (1,5 s au plus), puis entre en fondu avec les points ; sa place est gardée. */
.cr-life { margin-block: var(--cr-space-5); }
.cr-life__say { position: relative; margin: 0 0 var(--cr-space-4); transition: opacity .5s ease, transform .5s ease; }
.cr-life:not(.is-ready):not(.is-failed) .cr-life__say { opacity: 0; transform: translateY(8px); }
.cr-life:not(.is-ready):not(.is-failed) .cr-life__line { min-height: 1.3em; }
.cr-life__browsers:empty { visibility: hidden; }
.cr-life__line { margin: 0; max-width: 56rem; font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.4rem); line-height: 1.3; font-weight: 600; letter-spacing: var(--cr-tracking-tight); color: var(--cr-color-muted); }
.cr-life__out { color: var(--cr-color-text); font-weight: 600; }
.cr-life__num { color: var(--cr-wp-red); font-weight: 800; }
.cr-life__pick { position: absolute; z-index: 8; left: 0; top: 100%; }
.cr-life__pick .cr-finder__chips button[aria-pressed="true"] { border-color: var(--cr-color-accent); }

/* Panneau : réglages, lecture, graphique, échelle. */
.cr-life__panel { border-radius: var(--cr-radius-lg); overflow: hidden; background: var(--life-bg); color: var(--life-ink); border: 1px solid var(--life-border); padding-bottom: .6rem; }
.cr-life__bar { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem 1.4rem; margin: 0; padding: .9rem 1rem .3rem; font-size: var(--cr-text-sm); }
.cr-life__bar > * { margin: 0; }
.cr-life__bar input { font: inherit; border: 1px solid; border-radius: var(--cr-radius); padding: .45rem .65rem; }
.cr-life__panel input { background: var(--life-ctrl) !important; border-color: var(--life-ctrl-border) !important; color: var(--life-ink) !important; }
.cr-life__panel label, .cr-life__lab { color: var(--life-soft); font-size: .75rem; letter-spacing: .02em; }
.cr-life__bro { display: grid; gap: .25rem; }
.cr-life__browsers { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; height: 2.5rem; padding: 3px; box-sizing: border-box; width: max-content; max-width: 100%; border: 1px solid var(--life-ctrl-border); border-radius: var(--cr-radius-pill); background: var(--life-ctrl); }
.cr-life__browsers button { font: inherit; color: var(--life-soft); background: transparent; border: 0; border-radius: var(--cr-radius-pill); padding: .32rem .85rem; cursor: pointer; white-space: nowrap; }
.cr-life__browsers button:hover { color: var(--life-ink); }
.cr-life__browsers button[aria-pressed="true"] { background: var(--life-ink); color: var(--life-ctrl); }
.cr-life__find { display: grid; gap: .25rem; margin-left: auto; width: 16rem; }
.cr-life__find input { width: 100%; height: 2.5rem; box-sizing: border-box; }
.cr-life__find .cr-cpick ul { max-height: 17rem; background: var(--life-ctrl); border-color: var(--life-ctrl-border); color: var(--life-ink); }
.cr-life__find .cr-muted { color: var(--cr-color-muted); font-size: .85em; }
.cr-life__view { position: relative; min-height: 300px; }
.cr-life__view canvas { display: block; width: 100%; height: 440px; }
.cr-life__read { position: absolute; top: .7rem; left: 1rem; right: 1rem; margin: 0; font-size: var(--cr-text-sm); line-height: 1.5; color: var(--life-ink); pointer-events: none; }
.cr-life__read b { font-weight: 600; margin-right: .35rem; }
.cr-life__read span { color: var(--life-soft); margin-right: .35rem; }
.cr-life__read code { font-family: var(--cr-font-mono); font-size: .9em; margin-right: .4rem; color: var(--life-ink); }
.cr-life__read .cr-life__hint { color: var(--life-soft); }
.cr-life__read a, .cr-life__read button { pointer-events: auto; color: var(--cr-color-accent-text); }
.cr-life__unpin { font: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; margin-left: .4rem; }
.cr-life__ticks { position: relative; height: 1.2rem; margin: 0 0 .2rem; color: var(--life-soft); font-size: .75rem; }
.cr-life__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.cr-life__ticks span:first-child { left: 0 !important; transform: none; } /* « Session » au bord gauche, jamais coupé */
@media (max-width: 640px) {
	.cr-life__bro { grid-template-columns: minmax(0, 1fr); min-width: 0; }
	.cr-life__browsers { width: auto; height: auto; border-radius: 1.25rem; } /* les navigateurs passent à la ligne */
	.cr-life__find { width: 100%; min-width: 0; margin-left: 0; }
	.cr-life__view canvas { height: 400px; }
	.cr-life__ticks span:nth-child(3), .cr-life__ticks span:nth-child(5), .cr-life__ticks span:nth-child(6), .cr-life__ticks span:nth-child(7) { display: none; }
}

/* Sous le panneau : ce que fait le navigateur, légende, origine des points. */
.cr-life__browser-say { min-height: 3em; color: var(--cr-color-muted); font-size: var(--cr-text-sm); margin: var(--cr-space-2) 0 0; }
.cr-life__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: var(--cr-text-sm); color: var(--cr-color-muted); margin: var(--cr-space-2) 0 0; }
.cr-life__key::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .45rem; vertical-align: -.02em; background: var(--c); }
.cr-life__key--yes::before { width: 1rem; height: 0; border-radius: 0; background: none; border-top: 1.5px dashed var(--cr-color-text); vertical-align: .25em; }
.cr-life__key--m13::before { width: 1rem; height: 0; border-radius: 0; background: none; border-top: 1px solid var(--cr-color-muted); vertical-align: .25em; }
.cr-life__key--cut::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cr-color-muted); }
.cr-life:not([data-browser="c400"]):not([data-browser="brave"]) .cr-life__key--cut { visibility: hidden; }
.cr-life__what { max-width: 52rem; margin: var(--cr-space-2) 0 0; font-size: .82rem; line-height: 1.55; color: var(--cr-color-muted); }
.cr-life__what b { color: var(--cr-color-text); font-weight: 600; }

/* Ce qui se passe à la fin du oui : deux cas, texte et schéma (lifetimes.js, scenes()). */
.cr-life__scenes { margin-top: var(--cr-space-6); display: grid; gap: var(--cr-space-5); }
.cr-life__scenes h2 { margin: 0; }
.cr-life__scenes > .cr-life__eg { margin: -1rem 0 0; color: var(--cr-color-muted); font-size: var(--cr-text-sm); }
.cr-life__case { display: grid; gap: var(--cr-space-3) var(--cr-space-6); align-items: center; }
@media (min-width: 60rem) { .cr-life__case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.cr-life__case h3 { margin: .1rem 0 .3rem; font-size: var(--cr-text-xl); }
.cr-life__case p { margin: 0 0 .5rem; line-height: 1.55; }
.cr-life__case .cr-life__eg { color: var(--cr-color-muted); font-size: var(--cr-text-sm); }
.cr-life__tag { display: inline-block; margin: 0 !important; padding: .1rem .6rem; border-radius: var(--cr-radius-pill); background: var(--cr-color-bg-alt); color: var(--cr-color-muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cr-life__scenes svg { display: block; width: 100%; height: auto; border-radius: var(--cr-radius-lg); background: var(--life-bg); border: 1px solid var(--life-border); padding: .6rem .4rem; box-sizing: border-box; }
.cr-life__scenes .ax { stroke: var(--life-soft); stroke-width: 1; }
.cr-life__scenes .t, .cr-life__scenes .tl, .cr-life__scenes .tk, .cr-life__scenes .tb { font-size: 13px; }
.cr-life__scenes .t { fill: var(--life-soft); }
.cr-life__scenes .tl { fill: var(--life-on-yes); font-weight: 600; }
.cr-life__scenes .tk { fill: #1d1600; font-weight: 600; }
.cr-life__scenes .tb { fill: var(--life-ink); font-weight: 600; }
.cr-life__scenes .yes { fill: var(--life-yes); }
.cr-life__scenes .end { stroke: var(--life-ink); stroke-width: 1.2; stroke-dasharray: 5 4; }
.cr-life__scenes .ck { fill: var(--life-necessary); }
.cr-life__scenes .ck--left { fill: none; stroke: var(--life-necessary); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cr-life__scenes .dot { fill: var(--life-ink); }

/* Sections en deux colonnes : le texte, et à côté un petit graphique sur la même échelle ; graphique à gauche une fois sur deux. */
.cr-life-row { display: grid; gap: var(--cr-space-4) var(--cr-space-6); align-items: start; margin-block: var(--cr-space-6); }
.cr-life-row > *, .cr-life-row h2 { margin-top: 0; }
@media (min-width: 60rem) {
	.cr-life-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); width: var(--life-w) !important; max-width: none !important; margin-left: calc(50% - var(--life-w) / 2) !important; margin-right: 0 !important; }
	.cr-life-row--flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.cr-life-row--flip > :first-child { order: 2; }
	.cr-life-row--two > * { align-self: stretch; }
}
.cr-life-row .cr-lpromos { width: auto; margin: var(--cr-space-4) 0 0 !important; } /* encadrés dans la colonne « Good habits » */

/* Petits graphiques en barres ([cookierocks_life_bars]). Variantes --yes, --b, --t écrites par lifetimes.php. */
.cr-lbars { margin: 0; padding: var(--cr-space-4); border-radius: var(--cr-radius-lg); background: var(--life-bg); color: var(--life-ink); border: 1px solid var(--life-border); }
.cr-lbars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.cr-lbars li { display: grid; grid-template-columns: 8.5rem 1fr 6.5rem; gap: .75rem; align-items: center; font-size: var(--cr-text-sm); }
.cr-lbars__name { color: var(--life-ink); }
.cr-lbars__val { color: var(--life-soft); text-align: right; }
.cr-lbars__track { position: relative; height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--life-soft) 0 1px, transparent 1px calc(100% / 6)); }
.cr-lbars__bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; transform-origin: left; animation: cr-lbar .9s cubic-bezier(.34, 1.4, .64, 1) both; }
.cr-lbars__bar--yes { background: var(--life-statistics); }
.cr-lbars__bar--b { background: var(--life-necessary); }
.cr-lbars__bar--t { background: var(--life-preferences); }
.cr-lbars li:nth-child(2) .cr-lbars__bar { animation-delay: .12s; }
.cr-lbars li:nth-child(3) .cr-lbars__bar { animation-delay: .24s; }
.cr-lbars li:nth-child(4) .cr-lbars__bar { animation-delay: .36s; }
.cr-lbars li:nth-child(5) .cr-lbars__bar { animation-delay: .48s; }
.cr-lbars li:nth-child(6) .cr-lbars__bar { animation-delay: .6s; }
@keyframes cr-lbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cr-lbars__ticks { position: relative; height: 1.2rem; margin: .7rem 7.25rem 0 9.25rem; font-size: .7rem; color: var(--life-soft); }
.cr-lbars__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.cr-lbars__ticks span:first-child { transform: none; }
@media (max-width: 640px) {
	.cr-lbars li { grid-template-columns: 1fr auto; }
	.cr-lbars__track { grid-column: 1 / -1; grid-row: 2; }
	.cr-lbars__ticks { margin-left: 0; margin-right: 0; }
}

/* Grande phrase, liste des faits, bande des pièges, bons réflexes, encadré « What Cookie Rocks does ». */
.cr-life-quote { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin-block: var(--cr-space-6) !important; }
.cr-life-quote span { color: var(--cr-wp-red); display: block; }
.cr-life-band { padding: var(--cr-space-5) var(--cr-gutter); margin-block: var(--cr-space-6) !important; background: var(--cr-color-bg-alt); border-radius: var(--cr-radius-lg); }
.cr-life-band h2 { margin-top: 0; }
@media (min-width: 60rem) {
	.cr-life-quote, .cr-life-band { width: var(--life-w) !important; max-width: none !important; margin-left: calc(50% - var(--life-w) / 2) !important; box-sizing: border-box; }
}
.cr-life-facts { padding-left: 0; list-style: none; display: grid; gap: .45rem; font-size: var(--cr-text-sm); }
.cr-life-facts li { padding-left: 1rem; position: relative; }
.cr-life-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--cr-wp-blue); }
.cr-life-traps { list-style: none; padding: 0; display: grid; gap: var(--cr-space-4) var(--cr-space-5); }
@media (min-width: 48rem) { .cr-life-traps { grid-template-columns: 1fr 1fr; } }
.cr-life-traps li { font-size: var(--cr-text-sm); line-height: 1.55; color: var(--cr-color-muted); }
.cr-life-traps strong { display: block; font-size: var(--cr-text-base); color: var(--cr-color-text); margin-bottom: .25rem; }
.cr-life-checks { list-style: none; padding: 0; display: grid; gap: .55rem; }
.cr-life-checks li { padding-left: 1.6rem; position: relative; }
.cr-life-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--cr-wp-green); }
.cr-life-checks li::after { content: ""; position: absolute; left: .32rem; top: .5em; width: .3rem; height: .5rem; border: solid #07090f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cr-life-does { padding: var(--cr-space-4) var(--cr-space-5); border-radius: var(--cr-radius-lg); background: var(--cr-panel-bg); border: 1px solid var(--cr-color-border); }
.cr-life-does h2 { margin-top: 0; }
@media (max-width: 40rem) { .cr-life-does { padding: var(--cr-space-4); } .cr-life-does ul { padding-left: 1.1rem; } }

@media (prefers-reduced-motion: reduce) {
	.cr-life__say { transition: none; transform: none; }
	.cr-lbars__bar { animation: none; }
}
/* Cartes vers les autres pages sur la durée : même bord que le texte de la page. */
@media (min-width: 60rem) { .cr-main .wp-block-post-content > .cr-dur-links { width: var(--life-w) !important; max-width: none !important; margin-left: calc(50% - var(--life-w) / 2) !important; margin-right: 0 !important; box-sizing: border-box; } }
