/* =========================================================
   COMPLIANZ — PAGE POLITIQUE DE COOKIES
   ========================================================= */

body .cmplz-document {
  width: min(100% - 40px, 860px) !important;
  margin: 0 auto !important;
  padding: 44px 0 90px !important;

  color: #5a342b !important;
  font-family: var(--font-body, "Open Sans", sans-serif) !important;
}

body .cmplz-document h1,
body .cmplz-document h2,
body .cmplz-document h3 {
  color: #5a342b !important;
  font-family: var(--font-title, "Canela Web", serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}

body .cmplz-document h1 {
  margin: 0 0 28px !important;

  font-size: clamp(40px, 4.2vw, 56px) !important;
  line-height: 1.02 !important;
  text-align: center !important;
}

body .cmplz-document h2 {
  margin: 38px 0 16px !important;

  font-size: 27px !important;
  line-height: 1.15 !important;
}

body .cmplz-document h3 {
  margin: 28px 0 12px !important;

  font-size: 21px !important;
  line-height: 1.2 !important;
}

body .cmplz-document p,
body .cmplz-document li {
  color: rgba(90, 52, 43, 0.82) !important;

  font-size: 15px !important;
  line-height: 1.72 !important;
}

body .cmplz-document p {
  margin: 0 0 17px !important;
}

body .cmplz-document a {
  color: #5a342b !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

body .cmplz-document ul,
body .cmplz-document ol {
  margin: 0 0 24px 22px !important;
  padding: 0 !important;
}

body .cmplz-document table {
  width: 100% !important;
  margin: 28px 0 !important;

  border-collapse: collapse !important;
  font-size: 14px !important;
}

body .cmplz-document th,
body .cmplz-document td {
  padding: 14px 12px !important;

  border-bottom: 1px solid rgba(90, 52, 43, 0.12) !important;
  text-align: left !important;
  vertical-align: top !important;
}

body .cmplz-document th {
  color: #5a342b !important;
  font-weight: 700 !important;
}

@media (max-width: 760px) {
  body .cmplz-document {
    width: min(100% - 32px, 860px) !important;
    padding: 38px 0 70px !important;
  }

  body .cmplz-document h1 {
    margin-bottom: 24px !important;
    font-size: 38px !important;
    text-align: left !important;
  }

  body .cmplz-document h2 {
    margin-top: 34px !important;
    font-size: 24px !important;
  }

  body .cmplz-document h3 {
    font-size: 20px !important;
  }

  body .cmplz-document p,
  body .cmplz-document li {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }

  body .cmplz-document table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
}


/* =========================================================
   COMPLIANZ — TITRE PAGE POLITIQUE DE COOKIES
   ========================================================= */

body.page .site-main > article > .entry-header,
body.page .site-main > .entry-header {
  width: min(100% - 40px, 860px) !important;
  margin: 54px auto 0 !important;
}

body.page .site-main > article > .entry-header .entry-title,
body.page .site-main > .entry-header .entry-title {
  margin: 0 !important;

  color: #5a342b !important;

  font-family: var(--font-title, "Canela Web", serif) !important;
  font-size: clamp(40px, 4.2vw, 56px) !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
}




/* =========================================================
   COMPLIANZ — PATCH SÉCURITÉ APRÈS ASSISTANT
   À GARDER TOUT EN BAS DU FICHIER
   ========================================================= */

/* Cache le bouton flottant Complianz revenu en bas à droite */
html body .cmplz-manage-consent,
html body button.cmplz-manage-consent,
html body .cmplz-cookiebanner .cmplz-close,
html body .cmplz-cookiebanner button.cmplz-close,
html body .cmplz-cookiebanner .cmplz-close-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Si Complianz retire la classe custom, on force quand même le style de base */
html body .cmplz-cookiebanner.cmplz-show {
  position: fixed !important;
  z-index: 999999 !important;

  left: 50% !important;
  right: auto !important;
  bottom: 18px !important;

  display: flex !important;
  flex-direction: column !important;

  width: 780px !important;
  max-width: calc(100vw - 48px) !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100vh - 36px) !important;

  margin: 0 !important;
  padding: 26px 38px 28px !important;

  transform: translateX(-50%) !important;
  overflow: visible !important;

  color: var(--cmplz-umt-brown, #5a342b) !important;
  background: var(--cmplz-umt-bg, #fbfaf9) !important;

  border: 1px solid rgba(90, 52, 43, 0.14) !important;
  border-radius: 16px !important;

  box-shadow:
    0 18px 42px rgba(43, 28, 22, 0.18),
    0 2px 8px rgba(43, 28, 22, 0.08) !important;

  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
  gap: 0 !important;
}

/* Double filet intérieur */
html body .cmplz-cookiebanner.cmplz-show::before {
  content: "" !important;
  position: absolute !important;
  inset: 5px !important;
  z-index: 0 !important;

  border: 1px solid rgba(226, 216, 209, 0.88) !important;
  border-radius: inherit !important;

  pointer-events: none !important;
}

html body .cmplz-cookiebanner.cmplz-show > * {
  position: relative !important;
  z-index: 1 !important;
}

/* Structure */
html body .cmplz-cookiebanner .cmplz-header,
html body .cmplz-cookiebanner .cmplz-body,
html body .cmplz-cookiebanner .cmplz-buttons {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  float: none !important;
  clear: both !important;

  grid-column: auto !important;
  grid-row: auto !important;
  grid-area: auto !important;
}

/* Titre */
html body .cmplz-cookiebanner .cmplz-title {
  display: block !important;
  margin: 0 34px 14px !important;
  padding: 0 !important;

  color: var(--cmplz-umt-brown, #5a342b) !important;

  font-family: var(--font-title, "Canela Web", serif) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.012em !important;
  text-align: center !important;
}

/* Message */
html body .cmplz-cookiebanner .cmplz-message {
  display: block !important;

  width: 630px !important;
  max-width: 100% !important;

  margin: 0 auto 25px !important;
  padding: 0 !important;

  color: var(--cmplz-umt-text, rgba(90, 52, 43, 0.82)) !important;

  font-family: var(--font-body, "Open Sans", sans-serif) !important;
  font-size: 13.4px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

/* Lien politique cookies : caché dans la bannière pour garder le design clean */
html body .cmplz-cookiebanner .cmplz-links,
html body .cmplz-cookiebanner .cmplz-documents {
  display: none !important;
}

/* Boutons desktop */
html body .cmplz-cookiebanner .cmplz-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;

  width: 690px !important;
  max-width: 100% !important;

  margin: 0 auto !important;
  padding: 0 !important;
}

/* Style commun boutons */
html body .cmplz-cookiebanner .cmplz-btn.cmplz-accept,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-deny,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;

  margin: 0 !important;
  padding: 0 20px !important;

  border-radius: 999px !important;
  box-shadow: none !important;

  font-family: var(--font-body, "Open Sans", sans-serif) !important;
  font-size: 13.2px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Ordre initial desktop/mobile : Refuser / Personnaliser / Accepter */
html body .cmplz-cookiebanner:not(.umatatea-preferences-open) .cmplz-btn.cmplz-deny {
  order: 1 !important;
}

html body .cmplz-cookiebanner:not(.umatatea-preferences-open) .cmplz-btn.cmplz-view-preferences {
  order: 2 !important;
}

html body .cmplz-cookiebanner:not(.umatatea-preferences-open) .cmplz-btn.cmplz-accept {
  order: 3 !important;
}

html body .cmplz-cookiebanner:not(.umatatea-preferences-open) .cmplz-btn.cmplz-save-preferences {
  display: none !important;
}

/* État personnaliser : Refuser / Enregistrer / Accepter */
html body .cmplz-cookiebanner.umatatea-preferences-open .cmplz-btn.cmplz-deny {
  order: 1 !important;
}

html body .cmplz-cookiebanner.umatatea-preferences-open .cmplz-btn.cmplz-save-preferences {
  display: inline-flex !important;
  order: 2 !important;
}

html body .cmplz-cookiebanner.umatatea-preferences-open .cmplz-btn.cmplz-accept {
  order: 3 !important;
}

html body .cmplz-cookiebanner.umatatea-preferences-open .cmplz-btn.cmplz-view-preferences {
  display: none !important;
}

/* Couleurs boutons */
html body .cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  border: 1px solid var(--cmplz-umt-brown, #5a342b) !important;
  background: var(--cmplz-umt-brown, #5a342b) !important;
  color: #fffdfb !important;
}

html body .cmplz-cookiebanner .cmplz-btn.cmplz-deny {
  border: 1px solid var(--cmplz-umt-border, #e2d8d1) !important;
  background: var(--cmplz-umt-bg, #fbfaf9) !important;
  color: var(--cmplz-umt-brown, #5a342b) !important;
}

html body .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
  border: 1px solid var(--cmplz-umt-accent, #b97b56) !important;
  background: var(--cmplz-umt-bg, #fbfaf9) !important;
  color: var(--cmplz-umt-brown, #5a342b) !important;
}

/* Catégories */
html body .cmplz-cookiebanner .cmplz-categories {
  display: none !important;
}

html body .cmplz-cookiebanner.umatatea-preferences-open .cmplz-categories {
  display: grid !important;
  grid-template-columns: 1fr !important;

  width: 690px !important;
  max-width: 100% !important;

  margin: 22px auto 22px !important;
  padding: 16px 0 0 !important;

  border-top: 1px solid rgba(90, 52, 43, 0.12) !important;
}

/* Mobile */
@media (max-width: 760px) {
  html body .cmplz-cookiebanner.cmplz-show {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;

    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;

    padding: 19px 20px 18px !important;

    border-radius: 22px !important;
    transform: none !important;

    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
  }

  html body .cmplz-cookiebanner.cmplz-show::before {
    inset: 5px !important;
    border-radius: 18px !important;
  }

  html body .cmplz-cookiebanner .cmplz-title {
    margin: 0 0 10px !important;

    font-size: 24px !important;
    line-height: 1.05 !important;
    text-align: center !important;
  }

  html body .cmplz-cookiebanner .cmplz-message {
    width: 100% !important;
    margin: 0 auto 15px !important;

    font-size: 13.8px !important;
    line-height: 1.42 !important;
    text-align: left !important;
  }

  html body .cmplz-cookiebanner .cmplz-buttons {
    grid-template-columns: 1fr !important;
    gap: 7px !important;

    width: 100% !important;
    max-width: 100% !important;
  }

  html body .cmplz-cookiebanner .cmplz-btn.cmplz-accept,
  html body .cmplz-cookiebanner .cmplz-btn.cmplz-deny,
  html body .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
  html body .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
    min-height: 43px !important;
    padding: 0 16px !important;

    font-size: 13.8px !important;
  }

  html body .cmplz-cookiebanner.umatatea-preferences-open .cmplz-categories {
    width: 100% !important;
    margin: 15px auto 15px !important;
    padding-top: 10px !important;
  }
}