/* Avis sur les cookies et petit bouton « Cookies » : UN SEUL fichier pour l'application (public/css/cmp.css) et la vitrine
   (copié dans vitrine/site/assets/css/ par vitrine/construire.py ; un test vérifie que les deux sont identiques).
   Même allure que l'ancien bandeau du site lilie.fr (décision du propriétaire, 1er décembre 2026) : carte blanche en bas à droite, jamais de filet coloré sur un côté. */
.cb, .cb-tab { --cb-ink: #0b0b0b; --cb-yellow: #ebad00; --cb-link: #7a5600; font-family: "Poppins", system-ui, sans-serif; }
.cb, .cb *, .cb-tab { box-sizing: border-box; }
.cb { position: fixed; z-index: 900; right: calc(20px + var(--pf-sbw, 0px)); bottom: 20px; width: 440px; max-width: calc(100% - 40px); padding: 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid #f3ece0; border-radius: 20px; box-shadow: 0 24px 60px -18px rgba(11,11,11,.35); color: var(--cb-ink); text-align: left; animation: cb-in .25s ease-out; }
.cb[hidden], .cb-tab[hidden] { display: none; }
.cb-titre { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--cb-ink); }
.cb-texte { margin: 0; font-size: 14px; line-height: 1.55; color: #605b52; }
.cb-texte a { color: var(--cb-link); font-weight: 600; }
.cb-boutons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cb-boutons:has(.cb-refuser) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cb-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.cb-btn:focus-visible { outline: 2px solid var(--cb-ink); outline-offset: 2px; }
.cb-accepter { background: var(--cb-yellow); color: var(--cb-ink); }
.cb-accepter:hover { background: var(--cb-ink); color: #fff; }
.cb-refuser { background: var(--cb-ink); color: #fff; }   /* Refuser aussi visible qu'Accepter : même taille, deux couleurs */
.cb-refuser:hover { background: #000; }
@keyframes cb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media screen and (max-width: 640px) {
  .cb { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); gap: 12px; }
}
/* Petit bouton « Cookies » en bas à droite, visible quand l'avis est fermé (--pf-sbw : réserve de la barre de défilement dans l'application, absente de la vitrine) */
.cb-tab { position: fixed; z-index: 800; right: calc(20px + var(--pf-sbw, 0px)); bottom: 0; width: 50px; height: 24px; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #f3ece0; border-bottom: 0; border-radius: 6px 6px 0 0; background: #fff; color: var(--cb-ink); font-size: 10px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 -4px 14px -10px rgba(11,11,11,.35); }
.cb-tab:hover { color: var(--cb-link); }
.cb-tab:focus-visible { outline: 2px solid var(--cb-ink); outline-offset: 2px; }
