/* Gab'Pharma — identité visuelle (logo vert) */
:root {
  --gp-primary: #228545;
  --gp-primary-dark: #015533;
  --gp-lime: #8DC63F;
  --gp-ink: #14291C;
  --gp-muted: #5B6B63;
  --gp-canvas: #F5F8F6;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded", sans-serif;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 1.35rem;
  line-height: 1;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-rounded.filled,
.material-symbols-rounded[style*="FILL"] {
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.material-symbols-rounded.sm { font-size: 1.1rem; width: 1.1rem; height: 1.1rem; line-height: 1.1rem; }
.material-symbols-rounded.lg { font-size: 1.75rem; }
.material-symbols-rounded.xl { font-size: 2rem; }

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.logo-mark {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 1024px) {
  .logo-mark { height: 3.25rem; }
}

.cat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #EAF5D0 0%, #DCF0E3 100%);
  color: var(--gp-primary-dark);
  box-shadow: inset 0 0 0 1px rgba(34, 133, 69, 0.12);
}
.cat-icon .material-symbols-rounded {
  font-size: 1.5rem;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  color: var(--gp-primary);
}

html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
}
img, video, canvas, svg, iframe, embed {
  max-width: 100%;
}
.break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Tableau de bord — coque layout + menu latéral fixe */
html.bo-shell-root,
html.bo-shell-root body.bo-shell {
  overflow-x: clip;
  max-width: 100%;
}

.bo-shell__main {
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 1024px) {
  .bo-shell__main {
    margin-left: 16rem;
    width: calc(100% - 16rem);
  }
}

.bo-shell__header {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-shrink: 0;
}

.bo-shell__content {
  flex: 1 1 auto;
  min-width: 0;
}

.bo-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(1, 85, 51, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.bo-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1024px) {
  .bo-overlay { display: none !important; }
}
.bo-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  width: min(18rem, 86vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  will-change: transform;
}
.bo-sidebar.is-open {
  transform: translateX(0);
}
@media (min-width: 1024px) {
  .bo-sidebar {
    transform: none;
    width: 16rem;
  }
}
.bo-sidebar__nav {
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.bo-sidebar__nav::-webkit-scrollbar {
  width: 6px;
}
.bo-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}
.bo-sidebar__footer {
  flex-shrink: 0;
}
body.bo-nav-open {
  overflow: hidden;
}

/* Espace patient — palette maquette (#6C3AED) */
.bo-client-theme {
  --gp-primary: #6C3AED;
  --gp-primary-dark: #5B21B6;
  color: #374151;
}
.bo-client-theme .text-primary { color: #6C3AED !important; }
.bo-client-theme .bg-primary { background-color: #6C3AED !important; }
.bo-client-theme .border-primary { border-color: #6C3AED !important; }
.bo-client-theme .hover\:bg-primary-50:hover { background-color: #F5F3FF !important; }
.bo-client-theme .hover\:border-primary:hover { border-color: #6C3AED !important; }
.bo-client-theme .bg-primary-50 { background-color: #F5F3FF !important; }
.bo-client-theme .border-primary\/15,
.bo-client-theme .border-primary\/20 { border-color: rgba(108, 58, 237, 0.2) !important; }

/* Parcours patient intégré (catalogue, urgence, panier…) — même coque que fidélité */
.bo-client-theme .client-portal-page .max-w-site,
.bo-client-theme .client-portal-page .forfait-page,
.bo-client-theme .client-portal-page .urgence-page,
.bo-client-theme .client-portal-page .pay-ok {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 0;
}
.bo-client-theme .client-portal-page .portal-hide-in-espace {
  display: none !important;
}
.bo-client-theme .client-portal-page .bg-white {
  border-color: #E5E7EB;
}
.bo-client-theme .client-portal-page .border-slate-100 {
  border-color: #E5E7EB;
}
.bo-client-theme .bo-overlay {
  background: rgba(59, 7, 100, 0.45);
}

/* Champ mot de passe — afficher / masquer */
.pw-field {
  position: relative;
  display: block;
  width: 100%;
}

.pw-field > input {
  width: 100%;
  padding-right: 2.75rem !important;
}

.pw-field__toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  color: #5b6b63;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.pw-field__toggle:hover {
  color: var(--gp-primary, #228545);
  background: rgba(34, 133, 69, 0.08);
}

.pw-field__toggle:focus-visible {
  outline: 2px solid var(--gp-primary, #228545);
  outline-offset: 1px;
}

.bo-client-theme .pw-field__toggle:hover {
  color: #6c3aed;
  background: rgba(108, 58, 237, 0.08);
}

.bo-client-theme .pw-field__toggle:focus-visible {
  outline-color: #6c3aed;
}

