/* 2.47 : application de l'espace patient – Corpus Clinique */

/* ---------- Proposition d'installation ---------- */
.cc-inst { position: fixed; inset: 0; z-index: 99999; font-family: 'DM Sans', Arial, sans-serif; color: #0B1F33; }
.cc-inst-bg { position: absolute; inset: 0; background: rgba(11,31,51,.45); opacity: 0; transition: opacity .3s; }
.cc-inst-sheet {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 14px;
	padding: 12px 22px calc(26px + env(safe-area-inset-bottom)); background: #fff; border-radius: 28px 28px 0 0;
	box-shadow: 0 -20px 50px rgba(0,0,0,.18); transform: translateY(100%); transition: transform .3s ease;
}
.cc-inst.is-in .cc-inst-bg { opacity: 1; }
.cc-inst.is-in .cc-inst-sheet { transform: none; }
.cc-inst-grip { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: #D5DDE2; }
.cc-inst-app { display: flex; align-items: center; gap: 14px; }
.cc-inst-app img { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.cc-inst-app b { display: block; font-size: 17px; } .cc-inst-app small { font-size: 13px; color: #6B7C8A; }
.cc-inst-t { font-size: 20px; }
.cc-inst-sheet p { margin: 0; font-size: 15px; line-height: 1.5; color: #4A5D6E; }
.cc-inst-ios { padding: 12px 14px; border-radius: 14px; background: #F3F6F7; color: #0B1F33 !important; }
.cc-inst-share { display: inline-flex; vertical-align: middle; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #007AFF; align-items: center; justify-content: center; margin: 0 2px; }
.cc-inst-act { display: flex; flex-direction: column; gap: 6px; }
.cc-inst-main { height: 54px; border: 0; border-radius: 999px; background: #0B1F33; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.cc-inst-later { height: 44px; border: 0; background: none; color: #6B7C8A; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ---------- Mode application (installée) ---------- */
html.cc-app body { padding-top: calc(60px + env(safe-area-inset-top)); background: #F3F6F7; -webkit-tap-highlight-color: transparent; }
html.cc-app.cc-app-tabs body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
html.cc-app .cc-header, html.cc-app .cc-footer, html.cc-app .cc-v3-sticky, html.cc-app #wpadminbar { display: none !important; }
.cc-appbar {
	position: fixed; left: 0; right: 0; top: 0; z-index: 9990; display: flex; align-items: center; justify-content: space-between;
	height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; background: #0B1F33; box-sizing: border-box;
}
.cc-appbar img { height: 34px; width: auto; }
.cc-appbar-wa { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #25D366; color: #0B1F33 !important; font: 700 13px 'DM Sans', Arial, sans-serif; text-decoration: none; }
.cc-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
	background: #fff; border-top: 1px solid #E3EAEE; box-shadow: 0 -8px 24px rgba(11,31,51,.06);
}
.cc-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; justify-content: center; color: #8A9AA8; font: 700 11px 'DM Sans', Arial, sans-serif; text-decoration: none; }
.cc-tabbar a.is-on { color: #0B6B63; }

/* Écran de démarrage */
.cc-app-splash { position: fixed; inset: 0; z-index: 99999; background: #0B1F33; transition: opacity .45s; }
.cc-app-splash.is-out { opacity: 0; pointer-events: none; }
.cc-app-splash-img { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.cc-app-splash::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, rgba(11,31,51,0), rgba(11,31,51,.94) 55%); }
.cc-app-splash-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 28px calc(56px + env(safe-area-inset-bottom)); text-align: center; color: #E3EAEE; font: 16px 'DM Sans', Arial, sans-serif; }
.cc-app-splash-ic { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cc-app-splash-logo { height: 46px; width: auto; }
.cc-app-splash-in i { width: 46px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.cc-app-splash-in i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 20px; background: #00A99D; animation: ccAppLoad 1.1s ease-in-out infinite; }
@keyframes ccAppLoad { from { left: -20px; } to { left: 46px; } }
