:root{}
@charset "UTF-8";
/*===============================
  1. Couleurs & highlights
===============================*/
.notion-page__title .highlighted-color.color-gray {
  display: none !important;
}

.highlighted-color {
  position: relative;
  z-index: 0;
}

.highlighted-color::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(1.3);
  z-index: -1;
  border-radius: inherit;
}

/*===============================
  2. Masquer certains éléments
===============================*/
.notion-search__wrapper a[href*=criteres-de-filtres],
.notion-search__wrapper a[href*=champs],
.notion-search__wrapper a[href*=boutons],
.notion-search__wrapper a[href*=reference] {
  display: none !important;
}

.notion-wiki__wrapper,
.notion-page__icon:has(.notion-icon__page) {
  display: none !important;
}

/*===============================
  3. Liens désactivés
===============================*/
body a.notion-link[href^="/champs"],
body a.notion-link[href^="/accueil"],
body a.notion-link[href^="/programmes"],
body a.notion-link[href^="/plans"],
body a.notion-link[href^="/actions"],
body a.notion-link[href^="/campagnes/"],
body a.notion-link[href^="/revues-strategiques"],
body a.notion-link[href^="/reference"] {
  pointer-events: none !important;
  cursor: default !important;
  color: inherit !important;
  opacity: 0.8 !important;
  text-decoration: none !important;
}

a.notion-link[href^="/reference/criteres-de-filtres"] {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
  opacity: 1 !important;
}

/*===============================
  4. Callouts
===============================*/
/*======= Callouts =======*/
.notion-callout {
  display: flex !important;
  align-items: flex-start !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  padding: 0.75rem 1rem !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  gap: 0rem !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.notion-callout__icon {
  flex-shrink: 0 !important;
  align-self: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
}

.notion-callout__content {
  flex: 1;
  line-height: inherit !important;
  overflow: visible !important;
}

.notion-callout__content > .notion-text__content {
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

/* Liens génériques dans callout */
.notion-callout__content a {
  display: inline !important;
  vertical-align: baseline !important;
  line-height: inherit !important;
  overflow: visible !important;
  word-break: break-word !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.notion-callout__content a:hover {
  border-color: #888;
}

.notion-callout__content a > span,
.notion-callout__content a > svg,
.notion-callout__content a > img {
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 0.25em !important;
  line-height: 1 !important;
}

.notion-callout__content > *:first-child a {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Liens de page dans callout — block + espacement */
.notion-callout__content a.notion-link.notion-page {
  display: block !important;
  margin-top: 2px !important;
  padding: 0.05em !important;
  vertical-align: unset !important;
}

body :not(.notion-breadcrumb__title) .notion-callout__content a.notion-link:not(.notion-page),
body :not(.notion-breadcrumb__title) .notion-callout__content p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

/*===============================
  5. Liens de page (page-links)
===============================*/
.notion-page-link__icon,
.notion-page-link__icon span,
.notion-page-link__icon svg,
.notion-page-link__icon img {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  font-size: 1em !important;
  height: 1em !important;
  margin-right: 0.25em !important;
  line-height: 1 !important;
}

.notion-link.notion-page.resource.emoji {
  display: inline-flex !important;
  align-items: baseline !important;
  vertical-align: baseline !important;
  gap: 0.25em !important;
  line-height: 1.4;
}

.notion-link.notion-page.resource.emoji .notion-icon {
  display: inline-block;
  height: 1em;
  width: 1em;
  vertical-align: -0.15em;
  object-fit: cover;
  object-position: center center;
}

.notion-page__icon {
  font-size: 1em;
  line-height: 1;
  display: inline-block;
  vertical-align: -0.25em;
}

.notion-page__title {
  display: inline;
  vertical-align: baseline;
  line-height: 1.4;
}

/*===============================
  6. Liens généraux (hors breadcrumb)
===============================*/
body :not(.notion-breadcrumb__title):not(.notion-navbar__title) a.notion-link.link {
  text-decoration: none !important;
  display: inline !important;
  vertical-align: baseline !important;
  line-height: inherit !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

body :not(.notion-breadcrumb__title):not(.notion-navbar__title) a.notion-link.link > span,
body :not(.notion-breadcrumb__title):not(.notion-navbar__title) a.notion-link.link > svg,
body :not(.notion-breadcrumb__title):not(.notion-navbar__title) a.notion-link.link > img {
  display: inline-block !important;
  vertical-align: baseline !important;
  line-height: 1 !important;
  margin-right: 0.25em !important;
  max-height: none !important;
  max-width: none !important;
}

/*===============================
  7. Couverture responsive
===============================*/
.notion-header__cover,
.notion-cover {
  height: 40vh !important;
  max-height: 60vh !important;
  overflow: hidden;
}

.notion-header__cover img,
.notion-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.notion-header__cover:empty {
  display: none !important;
}

.notion-header__cover:empty + .notion-header__content,
.notion-header__cover[style*="display: none"] + .notion-header__content {
  margin-top: 3rem !important;
  padding-top: 0.5rem !important;
}

.notion-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/*===============================
  8. Toggles (accordéons)
===============================*/
.notion-toggle {
  border: 1px solid var(--color-border-default) !important;
  border-radius: 14px !important;
  margin: 8px 0 !important;
  position: relative !important;
  text-align: left !important;
  transition: background 0.3s ease-in-out !important;
}

.notion-toggle:hover {
  background: var(--color-card-bg) !important;
}

.notion-toggle__summary {
  position: relative !important;
  margin: 0 !important;
  padding: 18px 30px 18px 18px !important;
}

.notion-heading.toggle {
  padding: 0 !important;
}

.notion-toggle__content {
  padding-inline-start: 0 !important;
  padding-top: 16px !important;
  margin: 0 20px !important;
  border-top: 1px solid var(--color-border-default) !important;
  transition: all 0.05s ease-in-out !important;
}

.notion-toggle__content .notion-text__content {
  margin-bottom: 0 !important;
}

.notion-toggle__trigger {
  display: none !important;
}

.notion-toggle.open {
  background: var(--color-card-bg) !important;
  padding-bottom: 16px !important;
}

.notion-toggle.open .notion-toggle__content {
  opacity: 1 !important;
  height: auto !important;
}

.notion-toggle.closed .notion-toggle__content {
  opacity: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/*===============================
  9. Images
===============================*/
img:not(:is(.notion-header__icon,
.notion-breadcrumb__icon,
.notion-icon,
.super-navbar__content img)) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
}

img:not(:is(.notion-header__icon,
.notion-breadcrumb__icon,
.notion-icon,
.super-navbar__content img)):hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/*===============================
  10. Code inline
===============================*/
.notion-text code,
.notion-bulleted-list code,
.notion-callout code,
.notion-table__cell code {
  background-color: #f3f3f3 !important;
  border-radius: 4px;
  padding: 2px 5px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

/* Code rose : seul le texte, le fond gris de §10 est conservé */
[class*=color-pink] code {
  color: #8b1a6b !important;
}

/*===============================
  11. Alignement icônes de mention (texte + callouts)
===============================*/
a.notion-link.notion-page .notion-page__icon {
  width: 1.25em !important;
  height: 1.25em !important;
  transform: translateY(0.05em);
  margin-left: 0.2em !important;
}

a.notion-link.notion-page .notion-page__icon .notion-icon {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

/*===============================
  11. Finitions modernes
===============================*/
/* Sélection de texte aux couleurs de la marque */
::selection {
  background: #c04cbb;
  color: #fff;
}

/* Défilement doux + marge sous la navbar pour les ancres */
html {
  scroll-behavior: smooth;
}

h1, h2, h3, [id^=block-] {
  scroll-margin-top: 90px; /* ajuster selon la hauteur de la navbar */
}

/* Navbar translucide avec flou (compatible mode sombre) */
.super-navbar {
  background: color-mix(in srgb, var(--color-bg-default) 75%, transparent) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Micro-mouvement sur les toggles au survol */
.notion-toggle {
  transition: background 0.3s ease-in-out, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.notion-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Focus clavier visible et élégant */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c04cbb;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar fine et discrète */
* {
  scrollbar-width: thin;
  scrollbar-color: #d8d8d8 transparent;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:root {
  --super-db-tools-enabled: 1;
}

/* Bouton des blocs de code : « Copy » devient « Copier » (le texte d'origine est masqué, l'icône reste). */
.notion-code__copy-button {
  font-size: 0;
}

.notion-code__copy-button .notion-icon {
  width: 13.6px;
  height: 13.6px;
  margin-right: 4px;
}

.notion-code__copy-button::after {
  content: "Copier";
  font-size: 12px;
}

/* Bouton « Copier » centré en hauteur sur le bloc de code, toujours à droite (8 px au-dessus du code, 20 px en dessous = légende vide) */
.notion-code__copy-button {
  top: 8px !important;
  bottom: 20px !important;
  margin-block: auto !important;
  height: fit-content !important;
}

/* Mentions de page : icône centrée sur le texte du lien (au lieu d'être alignée sur la ligne de base) */
a.notion-link.notion-page.resource {
  align-items: center !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
}

a.notion-link.notion-page.resource .notion-page__icon {
  transform: none !important;
  vertical-align: middle !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

a.notion-link.notion-page.resource .notion-page__title {
  padding-left: 2px !important;
  padding-right: 0 !important;
}

/* Callouts : mention de page au milieu d'une phrase = reste dans le fil du texte, icône + nom insécables (classe posée par le script du body) */
.notion-callout__content a.notion-link.notion-page.mention-inline {
  display: inline !important;
  margin-top: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

/* Alignement vertical du nom et de l'icône sur le texte de la phrase (mesuré : écart < 0,2 px) */
.notion-callout__content a.notion-link.notion-page.resource.mention-inline .notion-page__title {
  vertical-align: baseline !important;
}

.notion-callout__content a.notion-link.notion-page.resource.mention-inline .notion-page__icon {
  vertical-align: middle !important;
  transform: translateY(-1px) !important;
}

/* Callouts : le dernier paragraphe n'a plus la hauteur minimale de 32 px de Super (8 px de vide en bas, texte trop haut) */
.notion-callout__content > .notion-text__content:last-child {
  min-height: 0 !important;
}