/* Kookla — bandeau et fiche « Ajouter à l'écran d'accueil » (PWA) */
.kpwa-banner{position:fixed;left:12px;right:12px;z-index:99990;max-width:480px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;background:#fff;color:#2b1f1c;border-radius:18px;box-shadow:0 10px 30px rgba(43,31,28,.18),0 2px 6px rgba(43,31,28,.08);font-family:inherit;font-size:14px;line-height:1.3;animation:kpwa-in .35s ease-out}
.kpwa-banner__icon{width:44px;height:44px;border-radius:11px;flex:0 0 44px}
.kpwa-banner__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.kpwa-banner__txt b{font-weight:600;font-size:14px}
.kpwa-banner__txt span{font-size:12.5px;color:#7a6a66}
.kpwa-banner__btn{flex:0 0 auto;border:0;border-radius:999px;padding:9px 16px;background:#C8797C;color:#fff;font:inherit;font-weight:600;font-size:13.5px;cursor:pointer}
.kpwa-banner__close{flex:0 0 auto;border:0;background:transparent;color:#9a8a86;font-size:22px;line-height:1;padding:4px 6px;cursor:pointer}
@keyframes kpwa-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

.kpwa-sheet{position:fixed;inset:0;z-index:99995;background:rgba(43,31,28,.45);display:flex;align-items:flex-end;justify-content:center}
.kpwa-sheet__card{width:100%;max-width:440px;background:#FAF7F4;color:#2b1f1c;border-radius:22px 22px 0 0;padding:24px 22px calc(22px + env(safe-area-inset-bottom,0px));text-align:center;font-family:inherit;animation:kpwa-in .3s ease-out}
@media (min-width:560px){.kpwa-sheet{align-items:center}.kpwa-sheet__card{border-radius:22px}}
.kpwa-sheet__icon{width:64px;height:64px;border-radius:16px;margin:0 auto 12px;display:block}
.kpwa-sheet__card h2{font-size:19px;line-height:1.25;margin:0 0 14px;font-weight:600}
.kpwa-sheet__card ol{text-align:left;margin:0 0 18px;padding-left:22px;font-size:15px;line-height:1.5}
.kpwa-sheet__card li{margin:0 0 8px}
.kpwa-sheet__ok{width:100%;border:0;border-radius:999px;padding:13px;background:#C8797C;color:#fff;font:inherit;font-weight:600;font-size:15px;cursor:pointer}
.kpwa-share{display:inline-block;width:14px;height:17px;vertical-align:-3px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30' fill='none' stroke='%23007AFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v17M6 8l6-6 6 6'/%3E%3Cpath d='M7 13H3v15h18V13h-4'/%3E%3C/svg%3E")}

/* Déjà ouvert comme appli : on masque les boutons d'installation */
html.kpwa-standalone [data-kookla-install],html.kpwa-standalone [data-kookla-install-grp]{display:none!important}
/* Ligne du menu « Plus » : visible seulement sur téléphone/tablette */
@media (min-width:1025px){.kpwa-only-mobile{display:none!important}}

/* Notifications push : bloc « Activer » (cloche de l'appli clientes, onglet Plus de Kookla Pro) */
.kpush{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:14px;border:1.5px solid #EFE6DF;border-radius:18px;background:#FBF6F2;color:#2B2220;font-family:'DM Sans',system-ui,sans-serif;text-align:left}
.kpush[hidden]{display:none}
.kpush__ic{flex:0 0 42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:#F3E1DE;color:#8C4549}
.kpush__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.kpush__txt b{font-size:15px;font-weight:700}
.kpush__txt small{font-size:13px;line-height:1.35;color:#6E615C}
.kpush__btn{flex:0 0 auto;min-height:40px;padding:0 16px;border:0;border-radius:999px;background:#A85A5E;color:#fff;font:700 14px 'DM Sans',system-ui,sans-serif;cursor:pointer}
.kpush__btn[hidden]{display:none}
.kpush__btn:disabled{opacity:.5}
.kpush.is-on{border-color:#CFE3D4;background:#F2F8F3}
.kpush.is-on .kpush__ic{background:#DDEEE1;color:#2F6B46}
.kpush.is-on .kpush__btn{background:#fff;color:#8C4549;border:1.5px solid #E4D6CC}
/* Cloche de l'appli Kookla Pro (téléphone uniquement) */
.kpcl{display:none}
@media (max-width:1024px){
  .kpcl{display:inline-flex;align-items:center;justify-content:center;position:fixed;top:calc(12px + env(safe-area-inset-top,0px));right:16px;z-index:900;width:48px;height:48px;border:0;border-radius:50%;background:#fff;color:#2B2220;box-shadow:0 2px 12px rgba(43,34,32,.12);cursor:pointer}
  .kpcl-hote{position:relative}
  .kpcl-hote>.kpcl{position:absolute;top:0;right:0}
  .kpcl-hote .kpro-head__top{padding-right:58px}
  .kpcl__pastille{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#A85A5E;color:#fff;font:700 11px/20px 'DM Sans',system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff}
}
.kpcl-sheet{position:fixed;inset:0;z-index:10000;display:flex;align-items:flex-end;background:rgba(43,34,32,0);transition:background .2s ease}
.kpcl-sheet[hidden]{display:none}
.kpcl-sheet.is-open{background:rgba(43,34,32,.45)}
.kpcl-sheet__panel{width:100%;max-height:85vh;max-height:85dvh;display:flex;flex-direction:column;border-radius:26px 26px 0 0;background:#FAF6F1;transform:translateY(100%);transition:transform .22s ease;padding-bottom:env(safe-area-inset-bottom,0px)}
.kpcl-sheet.is-open .kpcl-sheet__panel{transform:none}
@media (min-width:560px){.kpcl-sheet{align-items:center;justify-content:center}.kpcl-sheet__panel{max-width:440px;border-radius:26px}}
html.kpcl-open,html.kpcl-open body{overflow:hidden}
/* La barre d'onglets Pro est au-dessus de tout : on la masque tant que la cloche est ouverte */
html.kpcl-open .kpro-tabbar{display:none!important}
.kpcl-sheet__body{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}
.kpcl-sheet__head{display:flex;align-items:center;justify-content:space-between;padding:18px 16px 10px}
.kpcl-sheet__head h2{margin:0;font:500 26px/1.2 'Fraunces',Georgia,serif;color:#2B2220}
.kpcl-sheet__close{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#fff;color:#2B2220;box-shadow:0 2px 10px rgba(43,34,32,.1);cursor:pointer}
.kpcl-sheet__body{overflow-y:auto;padding:4px 16px 20px}
.kpcl-vide{margin:8px 2px;font:14px/1.45 'DM Sans',system-ui,sans-serif;color:#6E615C}
.kpcl-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.kpcl-item{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:18px;background:#fff;box-shadow:0 2px 12px rgba(43,34,32,.06);text-decoration:none!important;color:#2B2220;font-family:'DM Sans',system-ui,sans-serif}
.kpcl-item b{font-size:15.5px;font-weight:700}
.kpcl-item span{font-size:14px;line-height:1.4;color:#4A3D39}
.kpcl-item small{font-size:12.5px;color:#6E615C}
.kpcl-item.is-new{box-shadow:inset 3px 0 0 #A85A5E,0 2px 12px rgba(43,34,32,.06)}

/* Pas encore activé : le bouton passe sous le texte, en pleine largeur (texte lisible sur 2 lignes) */
.kpush:not(.is-on){flex-wrap:wrap}
.kpush:not(.is-on) .kpush__txt{flex:1 1 calc(100% - 54px)}
.kpush:not(.is-on) .kpush__btn{flex:1 0 100%;min-height:46px;font-size:15px}

/* État activé : bloc plus compact, bouton discret */
.kpush.is-on{padding:10px 12px}
.kpush.is-on .kpush__ic{flex-basis:36px;height:36px;border-radius:12px}
.kpush.is-on .kpush__txt b{font-size:14.5px}
.kpush__txt b,.kpush__txt small{overflow-wrap:anywhere}
.kpush.is-on .kpush__btn{min-height:34px;padding:0 12px;font-size:13px}
