/* ==========================================================================
   Creakbook — pages de l'application (promotion + confidentialité)
   Palette « manoir au clair de lune » reprise de l'app : bois, crème, poignée dorée.
   Chargée après style.css, uniquement sur les pages /creakbook/ et /en/creakbook/.
   ========================================================================== */

.cb {
  --cb-bg: #120c08;
  --cb-bg-2: #1b120c;
  --cb-panel: #22170f;
  --cb-wood: #6e4123;          /* brun de l'app */
  --cb-gold: #835400;          /* fond de l'icône officielle */
  --cb-badge: #ffddb5;         /* badge festonné du logo */
  --cb-wood-2: #8f5a32;
  --cb-wood-3: #c08850;
  --cb-cream: #f5ede6;         /* fond de l'icône */
  --cb-amber: #f5b942;         /* poignée de porte */
  --cb-mint: #7ef0c8;          /* thérémine, SF vintage */
  --cb-text: #f4ebe2;
  --cb-muted: #c6b4a4;
  --cb-line: rgba(245, 220, 190, 0.14);
  --text: var(--cb-text);
  --text-muted: var(--cb-muted);
  --line: var(--cb-line);
  --pink: var(--cb-amber);
  background: var(--cb-bg);
  color: var(--cb-text);
}

/* Habillage du gabarit Blicom aux couleurs de l'app */
.cb .site-header { background: rgba(18, 12, 8, 0.82); }
.cb main { overflow-x: clip; }
@media (max-width: 1079px) { .cb .site-nav { background: var(--cb-bg-2); } }
.cb .btn-primary {
  color: #2a1608;
  background: linear-gradient(135deg, #ffd27a, var(--cb-amber) 45%, var(--cb-wood-3));
  box-shadow: 0 8px 30px -8px rgba(245, 185, 66, 0.55);
}
.cb .btn-primary:hover { color: #2a1608; box-shadow: 0 12px 36px -8px rgba(245, 185, 66, 0.75); }
.cb .site-nav .btn { color: #2a1608; }
.cb .grad { background-image: linear-gradient(90deg, #ffd27a, var(--cb-amber) 40%, var(--cb-wood-3)); }
.cb main a:not([class]) { color: var(--cb-amber); }
.cb main a:not([class]):hover { color: #fff; }
.cb .section-alt { background: linear-gradient(180deg, var(--cb-bg-2), var(--cb-bg)); }
.cb .card { background: linear-gradient(160deg, rgba(110, 65, 35, 0.32), rgba(34, 23, 15, 0.7)); }
.cb .faq details[open] { border-color: rgba(245, 185, 66, 0.4); background: rgba(245, 185, 66, 0.06); }
.cb .checks li::before { background: linear-gradient(135deg, var(--cb-amber), var(--cb-wood-2)); }
.cb .checks li::after { border-color: #2a1608; }
.cb :focus-visible { outline-color: var(--cb-amber); }

/* ---------- Apparition au défilement ---------- */
.cb-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.cb-js .reveal.in { opacity: 1; transform: none; }
.cb-js .reveal.d1 { transition-delay: 0.08s; }
.cb-js .reveal.d2 { transition-delay: 0.16s; }
.cb-js .reveal.d3 { transition-delay: 0.24s; }

/* ---------- Hero ---------- */
.cb-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  background:
    radial-gradient(42% 52% at 76% 42%, rgba(245, 185, 66, 0.2), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(143, 90, 50, 0.35), transparent 70%),
    var(--cb-bg);
}
.cb-hero::before {                 /* clair de lune */
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 240, 215, 0.16), rgba(255, 240, 215, 0.03) 60%, transparent 70%);
  pointer-events: none;
}
.cb-dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cb-dust i {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 220, 160, 0.55);
  animation: dust 14s linear infinite;
}
.cb-dust i:nth-child(1) { left: 8%;  animation-duration: 16s; }
.cb-dust i:nth-child(2) { left: 22%; animation-delay: -5s; width: 2px; height: 2px; }
.cb-dust i:nth-child(3) { left: 41%; animation-delay: -9s; animation-duration: 19s; }
.cb-dust i:nth-child(4) { left: 58%; animation-delay: -2s; width: 2px; height: 2px; }
.cb-dust i:nth-child(5) { left: 71%; animation-delay: -12s; animation-duration: 12s; }
.cb-dust i:nth-child(6) { left: 86%; animation-delay: -7s; }
.cb-dust i:nth-child(7) { left: 94%; animation-delay: -3s; animation-duration: 21s; width: 2px; height: 2px; }
@keyframes dust {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(24px, -50vh); }
  90%  { opacity: 0.8; }
  100% { transform: translate(-12px, -100vh); opacity: 0; }
}

.cb-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 980px) { .cb-hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

.cb-appid { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.cb-appid img { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 10px 30px -8px rgba(245, 185, 66, 0.45); }
.cb-appid strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.cb-appid span { font-size: 0.9rem; color: var(--cb-muted); }

.cb-title { font-size: clamp(2.7rem, 7.4vw, 5.2rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.4em; }
/* marge intérieure : le texte en dégradé (background-clip) coupait le jambage du « g » */
.cb-creak { display: inline-block; padding: 0 0.08em 0.16em 0.04em; margin: 0 -0.08em -0.16em -0.04em; transform-origin: 10% 90%; animation: creak-word 5s ease-in-out 1.2s infinite; }
@keyframes creak-word {
  0%, 70%, 100% { transform: none; }
  73% { transform: rotate(-3deg) skewX(-6deg); }
  76% { transform: rotate(2deg) skewX(4deg); }
  79% { transform: rotate(-1.5deg); }
  82% { transform: rotate(0.8deg); }
  85% { transform: none; }
}
.cb-hero .lead { color: var(--cb-muted); margin-bottom: 1.8rem; }

/* Pastille « Conçu pour Googlebook » */
.cb-gb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 66, 0.5);
  background: rgba(245, 185, 66, 0.1);
  color: var(--cb-amber);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  box-shadow: 0 0 24px -6px rgba(245, 185, 66, 0.45);
}
.cb-gb svg { width: 22px; height: 22px; }
.cb-compat .hero-gb { border-color: rgba(126, 240, 200, 0.45); background: linear-gradient(135deg, rgba(126, 240, 200, 0.1), rgba(255, 255, 255, 0.03)); }
.cb-compat .hero-gb strong { font-size: 1.1rem; }
.cb-tm { margin-top: 10px; font-size: 0.8rem; color: var(--cb-muted); opacity: 0.75; }

/* Bouton magasin (désactivé tant que l'app n'est pas publiée) */
.cb-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 16px;
  border-radius: 14px;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  line-height: 1.15;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.cb-store:hover { color: #fff; transform: translateY(-2px); border-color: var(--cb-amber); }
.cb-store svg { width: 26px; height: 26px; flex: none; }
.cb-store small { display: block; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.cb-store b { display: block; font-size: 1.15rem; font-weight: 650; }
.cb-store[aria-disabled="true"] { cursor: default; }

.cb-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.cb-badges li {
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--cb-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cb-muted);
}
.cb-badges li::before { content: "✓ "; color: var(--cb-amber); font-weight: 700; }

/* ---------- Démo interactive : le portable qui grince ---------- */
.cb-demo { position: relative; display: grid; justify-items: center; gap: 8px; }
.cb-stage {
  --w: min(360px, 64vw);
  --h: calc(var(--w) * 0.64);
  position: relative;
  width: 100%;
  height: calc(var(--h) * 1.85);
  display: grid;
  place-items: center;
  perspective: 1300px;
  perspective-origin: 50% 25%;
  user-select: none;
  -webkit-user-select: none;
}
.cb-stage::after {                       /* ombre au sol */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: calc(var(--w) * 1.25);
  height: calc(var(--h) * 0.32);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.65), transparent);
  z-index: -1;
}
.cb-halo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: calc(var(--w) * 1.35);
  translate: -50% -50%;
  opacity: 0.09;
  z-index: -1;
  pointer-events: none;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.cb-float { animation: hover-laptop 7s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes hover-laptop { 50% { transform: translateY(-8px); } }

.cb-laptop {
  --angle: 100;
  position: relative;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: translateY(calc(var(--h) * -0.3)) rotateX(-24deg) rotateY(-18deg);
  cursor: grab;
  touch-action: none;
}
.cb-laptop.dragging { cursor: grabbing; }
.cb-laptop.shake { animation: laptop-shake 0.32s ease-out; }
@keyframes laptop-shake {
  0%   { transform: translateY(calc(var(--h) * -0.3)) rotateX(-24deg) rotateY(-18deg); }
  25%  { transform: translateY(calc(var(--h) * -0.3 + 5px)) rotateX(-24deg) rotateY(-16deg); }
  50%  { transform: translateY(calc(var(--h) * -0.3 - 3px)) rotateX(-24deg) rotateY(-20deg); }
  100% { transform: translateY(calc(var(--h) * -0.3)) rotateX(-24deg) rotateY(-18deg); }
}

.cb-lid {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform: rotateX(calc((var(--angle) - 90) * 1deg));
  transform-style: preserve-3d;
}
.cb-screen, .cb-cover {
  position: absolute;
  inset: 0;
  border-radius: 14px 14px 5px 5px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cb-screen {
  container-type: size;
  padding: 3.4%;
  background: #0d0907;
  border: 1px solid #4a3527;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.cb-cover {
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #4a3527, #2a1c13 70%);
  border: 1px solid #5b4332;
}
.cb-cover img { width: 18%; opacity: 0.9; border-radius: 22%; }

.cb-base {
  position: absolute;
  left: -1%;
  right: -1%;
  top: 100%;
  height: var(--h);
  transform-origin: 50% 0;
  transform: rotateX(90deg) translateZ(-2px);
  transform-style: preserve-3d;
  border-radius: 4px 4px 18px 18px;
  background: linear-gradient(180deg, #3e2c20, #2e2017);
  border: 1px solid #574030;
}
.cb-keys {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 9%;
  height: 46%;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, #1a110b 0 3px, transparent 3px 16.6%),
    repeating-linear-gradient(90deg, #1a110b 0 3px, transparent 3px 7.1%),
    #4d3829;
}
.cb-pad {
  position: absolute;
  left: 34%;
  right: 34%;
  top: 62%;
  height: 30%;
  border-radius: 8px;
  background: #36261b;
  border: 1px solid #574030;
}
.cb-edge {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 9px;
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  background: linear-gradient(180deg, #2e2017, #1c130d);
  border-radius: 0 0 8px 8px;
}

/* Écran de l'app dans le portable */
.cb-app {
  position: relative;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff3e4, #ffe6c9);
  color: #3a2415;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 4cqw 5cqw;
  gap: 2cqw;
  font-size: 4.4cqw;
}
.cb-app-top { display: flex; align-items: center; gap: 2.2cqw; font-weight: 750; }
.cb-app-top img { width: 7cqw; height: 7cqw; border-radius: 1.8cqw; }
.cb-app-top span { margin-left: auto; font-weight: 600; font-size: 3.6cqw; padding: 0.6cqw 2.4cqw; border-radius: 99px; background: #ead8c7; transition: background 0.3s ease; }
.cb-doorway {
  justify-self: center;
  align-self: center;
  position: relative;
  height: 100%;
  aspect-ratio: 0.62;
  border-radius: 999px 999px 1.6cqw 1.6cqw;
  background:
    radial-gradient(circle at 70% 26%, #fff6d8 0 5%, transparent 6%),
    radial-gradient(circle at 70% 26%, rgba(255, 230, 160, 0.35) 0 16%, transparent 30%),
    linear-gradient(180deg, #1d2440, #0e1222);
  box-shadow: 0 0 0 1.2cqw #4c3325;
  perspective: 600px;
}
.cb-door {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 1.6cqw 1.6cqw;
  transform-origin: 0 50%;
  transform: rotateY(calc(var(--angle) * -0.62deg));
  background: linear-gradient(180deg, #a06b4a, #8e5b3d);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.cb-door::after {                  /* poignée */
  content: "";
  position: absolute;
  right: 12%;
  top: 52%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e8b54d;
  box-shadow: 0 0 6px rgba(232, 181, 77, 0.6);
}
.cb-app-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 3.8cqw; font-weight: 650; }
.cb-wave { display: flex; align-items: center; gap: 0.9cqw; height: 6cqw; }
.cb-wave i {
  display: block;
  width: 1.1cqw;
  height: 100%;
  border-radius: 99px;
  background: #80492a;
  transform: scaleY(calc(0.15 + var(--level, 0) * var(--k, 1)));
  transition: transform 0.08s linear;
}
.cb-wave i:nth-child(2) { --k: 0.6; }
.cb-wave i:nth-child(3) { --k: 0.85; }
.cb-wave i:nth-child(4) { --k: 0.45; }
.cb-wave i:nth-child(5) { --k: 0.7; }
.cb-app[data-mood="theremin"] .cb-wave i { background: #138a68; }
.cb-app[data-mood="theremin"] .cb-app-top span { background: #c9f1e2; }

/* Onomatopées qui s'envolent */
.cb-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.cb-bubble {
  position: absolute;
  font-weight: 850;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--cb-cream);
  text-shadow: 0 0 3px #1a0e06, 0 0 3px #1a0e06, 0 2px 14px rgba(245, 185, 66, 0.6);
  white-space: nowrap;
  animation: bubble 1.5s ease-out forwards;
}
.cb-bubble.big { font-size: clamp(1.6rem, 4.6vw, 2.4rem); color: var(--cb-amber); text-shadow: 0 2px 18px rgba(245, 120, 40, 0.7); animation-duration: 1.1s; }
.cb-bubble.mint { color: var(--cb-mint); text-shadow: 0 2px 14px rgba(126, 240, 200, 0.55); }
@keyframes bubble {
  0%   { opacity: 0; transform: translate(-50%, 10px) scale(0.6) rotate(var(--r, 0deg)); }
  15%  { opacity: 1; transform: translate(-50%, -6px) scale(1.08) rotate(var(--r, 0deg)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -70px) scale(1) rotate(var(--r, 0deg)); }
}

/* Commandes sous la démo */
.cb-controls { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.cb-range { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; font-size: 0.92rem; color: var(--cb-muted); }
.cb-range output { min-width: 3.2em; text-align: right; font-weight: 750; color: var(--cb-text); font-variant-numeric: tabular-nums; }
.cb-range input { width: 100%; accent-color: var(--cb-amber); }
.cb-moods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cb-chip, .cb-sound {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--cb-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cb-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cb-chip:hover, .cb-sound:hover { border-color: rgba(245, 185, 66, 0.5); }
.cb-chip[aria-pressed="true"] { background: var(--cb-amber); border-color: var(--cb-amber); color: #2a1608; }
.cb-chip[data-mood="theremin"][aria-pressed="true"] { background: var(--cb-mint); border-color: var(--cb-mint); color: #05291d; }
.cb-sound svg { width: 18px; height: 18px; }
.cb-sound .off { display: none; }
.cb-sound[aria-pressed="false"] .on { display: none; }
.cb-sound[aria-pressed="false"] .off { display: inline; }
.cb-hint { margin: 0; text-align: center; font-size: 0.88rem; color: var(--cb-muted); }
.cb-hint b { color: var(--cb-amber); }

/* ---------- Bandeau d'onomatopées ---------- */
.cb-marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--cb-line);
  background: linear-gradient(90deg, var(--cb-wood), #5a331b 50%, var(--cb-wood));
  transform: rotate(-1.2deg);
  margin: 0 -8px;
}
.cb-marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.cb-marquee span {
  padding: 0 28px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--cb-cream);
  white-space: nowrap;
}
.cb-marquee span:nth-child(3n + 2) { color: var(--cb-amber); }
.cb-marquee span:nth-child(5n + 4) { color: var(--cb-mint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Comment ça marche ---------- */
.cb-steps { display: grid; gap: 20px; }
@media (min-width: 860px) { .cb-steps { grid-template-columns: repeat(3, 1fr); } }
.cb-step { padding: 28px; }
.cb-step h3 { margin-top: 18px; }
.cb-mini { width: 100%; height: 110px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--cb-line); }
.cb-mini .lid { transform-origin: 40px 80px; transform-box: view-box; }
.cb-mini.slow .lid { animation: mini-slow 4s ease-in-out infinite; }
.cb-mini.snap .lid { animation: mini-snap 3s ease-in infinite; }
@keyframes mini-slow { 0%, 10% { transform: rotate(86deg); } 60%, 100% { transform: rotate(-14deg); } }
@keyframes mini-snap { 0%, 55% { transform: rotate(-14deg); } 66%, 100% { transform: rotate(86deg); } }
.cb-mini .arcs path { animation: arcs 4s ease-in-out infinite; opacity: 0; }
.cb-mini .arcs path:nth-child(2) { animation-delay: 0.25s; }
.cb-mini .arcs path:nth-child(3) { animation-delay: 0.5s; }
@keyframes arcs { 15%, 55% { opacity: 1; } 0%, 10%, 65%, 100% { opacity: 0; } }
.cb-mini .burst { opacity: 0; transform-origin: 96px 76px; transform-box: view-box; animation: burst 3s ease-out infinite; }
@keyframes burst { 0%, 64% { opacity: 0; transform: scale(0.4); } 68% { opacity: 1; transform: scale(1); } 85%, 100% { opacity: 0; transform: scale(1.25); } }
.cb-mini .wavepath { stroke-dasharray: 6 4; animation: wave-shift 1.2s linear infinite; }
@keyframes wave-shift { to { stroke-dashoffset: -40; } }
.cb-mini .wavepath.alt { animation-duration: 1.9s; animation-direction: reverse; }

/* ---------- Ambiances ---------- */
.cb-moodcards { display: grid; gap: 20px; }
@media (min-width: 860px) { .cb-moodcards { grid-template-columns: repeat(3, 1fr); } }
.cb-mood { --accent: var(--cb-amber); display: flex; flex-direction: column; overflow: hidden; }
.cb-mood::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent, var(--cb-amber));
}
.cb-mood .mood-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--accent, var(--cb-amber));
  background: color-mix(in srgb, var(--accent, var(--cb-amber)) 14%, transparent);
}
.cb-mood .mood-icon svg { width: 34px; height: 34px; }
.cb-mood p { flex: 1; }
.cb-mood.theremin { --accent: var(--cb-mint); }
.cb-mood.custom { --accent: #e7a6ff; }
.cb-play {
  align-self: flex-start;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 18px 9px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--cb-text);
  cursor: pointer;
  transition: background 0.2s ease;
}
.cb-play:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.cb-play .eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 20px; height: 16px; }
.cb-play .eq i { width: 4px; height: 30%; border-radius: 2px; background: var(--accent); }
.cb-play.playing .eq i { animation: eq 0.5s ease-in-out infinite alternate; }
.cb-play.playing .eq i:nth-child(2) { animation-delay: -0.2s; }
.cb-play.playing .eq i:nth-child(3) { animation-delay: -0.35s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.cb-note { font-size: 0.9rem; color: var(--cb-muted); margin: 8px 0 0; }

/* ---------- Mode arrière-plan ---------- */
.cb-desk {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 10px solid #2e2017;
  background:
    radial-gradient(60% 80% at 20% 10%, rgba(245, 185, 66, 0.35), transparent 70%),
    radial-gradient(60% 80% at 90% 90%, rgba(143, 90, 50, 0.7), transparent 70%),
    linear-gradient(135deg, #3b2416, #1a100a);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.cb-desk .win {
  position: absolute;
  left: 10%;
  top: 12%;
  width: 52%;
  height: 58%;
  border-radius: 10px;
  background: #fbf5ef;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  animation: minimize 7s ease-in-out infinite;
  transform-origin: 50% 120%;
}
.cb-desk .win::before { content: ""; position: absolute; inset: 0 0 auto; height: 14%; border-radius: 10px 10px 0 0; background: #ead8c7; }
.cb-desk .win img { position: absolute; left: 50%; top: 57%; width: 22%; transform: translate(-50%, -50%); border-radius: 22%; }
@keyframes minimize {
  0%, 18%  { transform: none; opacity: 1; }
  30%, 82% { transform: translateY(70%) scale(0.12); opacity: 0; }
  94%, 100% { transform: none; opacity: 1; }
}
.cb-desk .shelf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 11%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 6, 4, 0.7);
}
.cb-desk .shelf i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); }
.cb-desk .shelf i.app { background: url("/assets/img/creakbook-icon.svg") center / cover; }
.cb-notif {
  position: absolute;
  right: 4%;
  bottom: 15%;
  width: min(62%, 290px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(36, 25, 17, 0.95);
  border: 1px solid var(--cb-line);
  color: var(--cb-text);
  font-size: clamp(0.7rem, 1.5vw, 0.86rem);
  line-height: 1.35;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  animation: notif 7s ease-in-out infinite;
}
.cb-notif .row { display: flex; align-items: center; gap: 8px; }
.cb-notif img { width: 20px; height: 20px; border-radius: 6px; }
.cb-notif small { color: var(--cb-muted); }
.cb-notif b { display: block; margin: 6px 0 2px; }
.cb-notif .stop { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 99px; background: var(--cb-amber); color: #2a1608; font-weight: 700; }
@keyframes notif {
  0%, 26%  { transform: translateX(120%); opacity: 0; }
  34%, 84% { transform: none; opacity: 1; }
  92%, 100% { transform: translateX(120%); opacity: 0; }
}
.cb-desk .creak-txt {
  position: absolute;
  left: 18%;
  top: 30%;
  font-weight: 850;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--cb-cream);
  text-shadow: 0 2px 14px rgba(245, 185, 66, 0.7);
  opacity: 0;
  animation: creak-txt 7s ease-out infinite;
}
.cb-desk .creak-txt.two { left: 40%; top: 46%; animation-delay: 1.2s; color: var(--cb-amber); }
@keyframes creak-txt {
  0%, 38% { opacity: 0; transform: translateY(10px); }
  44% { opacity: 1; transform: none; }
  58%, 100% { opacity: 0; transform: translateY(-24px); }
}

/* ---------- Pensé pour la vraie vie ---------- */
.cb-features { display: grid; gap: 16px; }
@media (min-width: 640px) { .cb-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cb-features { grid-template-columns: repeat(3, 1fr); } }
.cb-feature { padding: 26px; transition: transform 0.25s ease, border-color 0.25s ease; }
.cb-feature:hover { transform: translateY(-4px) rotate(-0.4deg); border-color: rgba(245, 185, 66, 0.4); }
.cb-feature h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.cb-feature p { margin: 0; font-size: 0.97rem; }
.cb-feature .ficon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--cb-amber); background: rgba(245, 185, 66, 0.12); }
.cb-feature .ficon svg { width: 26px; height: 26px; }
.cb-levels { display: flex; align-items: flex-end; gap: 4px; height: 24px; }
.cb-levels i { width: 6px; border-radius: 2px; background: var(--cb-amber); animation: levels 3s steps(1) infinite; }
.cb-levels i:nth-child(1) { height: 35%; }
.cb-levels i:nth-child(2) { height: 65%; animation-delay: 1s; }
.cb-levels i:nth-child(3) { height: 100%; animation-delay: 2s; }
@keyframes levels { 0%, 33% { opacity: 1; } 34%, 100% { opacity: 0.25; } }
.cb-you { display: flex; gap: 5px; animation: hue 8s linear infinite; }
.cb-you i { width: 12px; height: 12px; border-radius: 50%; }
.cb-you i:nth-child(1) { background: #c08850; }
.cb-you i:nth-child(2) { background: #f5b942; }
.cb-you i:nth-child(3) { background: #f5ede6; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.cb-feature.wide { grid-column: 1 / -1; display: grid; gap: 4px 20px; align-items: center; align-content: center; background: linear-gradient(135deg, rgba(245, 185, 66, 0.14), rgba(110, 65, 35, 0.3)); }
@media (min-width: 1000px) { .cb-feature.wide { grid-column: span 2; } }
@media (min-width: 640px) { .cb-feature.wide { grid-template-columns: auto 1fr; } .cb-feature.wide .ficon { grid-row: span 2; } .cb-feature.wide h3 { margin-top: 0; } }

/* ---------- Compatibilité ---------- */
.cb-compat { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.cb-compat li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cb-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cb-muted);
}
.cb-compat li strong { display: block; color: var(--cb-text); }
.cb-compat .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; }
.cb-compat .yes .mark { background: rgba(126, 240, 200, 0.14); color: var(--cb-mint); }
.cb-compat .warn .mark { background: rgba(245, 185, 66, 0.14); color: var(--cb-amber); }
.cb-compat .no .mark { background: rgba(255, 120, 100, 0.14); color: #ff8f7a; }

/* ---------- Bandeau confidentialité ---------- */
.cb-privacy {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--cb-line);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(126, 240, 200, 0.12), transparent 70%),
    linear-gradient(160deg, var(--cb-panel), var(--cb-bg-2));
}
@media (min-width: 860px) { .cb-privacy { grid-template-columns: auto 1fr auto; } }
@media (max-width: 699px) { .cb-privacy { padding: 28px 22px; } }
.cb-privacy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.3em; }
.cb-privacy p { margin: 0; color: var(--cb-muted); }
.cb-lock { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: rgba(126, 240, 200, 0.12); color: var(--cb-mint); }
.cb-lock svg { width: 44px; height: 44px; }

/* ---------- Signature ---------- */
.cb-final { text-align: center; }
.cb-emblem { position: relative; width: 150px; height: 150px; margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(232, 181, 77, 0.35)); }
.cb-emblem img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cb-emblem .badge { animation: spin 24s linear infinite; }
.cb-emblem .door { animation: knock 4s ease-in-out infinite; }
@keyframes knock {
  0%, 80%, 100% { transform: none; }
  83% { transform: rotate(-6deg) scale(1.04); }
  86% { transform: rotate(5deg); }
  89% { transform: rotate(-3deg); }
  92% { transform: none; }
}
.cb-final .btn-row { justify-content: center; margin-top: 28px; }
.cb-credit { margin-top: 28px; color: var(--cb-muted); font-size: 0.95rem; }

/* ---------- Page de confidentialité ---------- */
.cb-policy-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cb-policy-hero img { width: 64px; height: 64px; border-radius: 18px; }
.cb-policy-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.cb-policy-meta { margin-top: 14px; color: var(--cb-muted); font-size: 0.95rem; }
.cb-summary { display: grid; gap: 14px; max-width: 820px; margin: 8px 0 32px; list-style: none; padding: 0; }
@media (min-width: 700px) { .cb-summary { grid-template-columns: repeat(3, 1fr); } }
.cb-summary li { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--cb-line); background: rgba(126, 240, 200, 0.06); color: var(--cb-muted); font-size: 0.95rem; }
.cb-summary strong { display: block; color: var(--cb-text); font-size: 1.05rem; }
.cb .legal code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--cb-text); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .cb-dust, .cb-bubbles { display: none; }
  .cb-creak, .cb-float, .cb-marquee-track, .cb-mini *, .cb-desk *, .cb-levels i, .cb-you, .cb-emblem img, .cb-halo, .cb-play .eq i { animation: none !important; }
  .cb-desk .creak-txt { opacity: 1; }
  .cb-notif { opacity: 1; transform: none; }
  .cb-js .reveal { opacity: 1; transform: none; transition: none; }
  .cb-marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
}
