/*
Theme Name: Dialogue – Thème enfant
Template: astra
*/

html, body {
  background-color: #fcfaef !important;
  font-family: "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
}

.dialogue-layout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
  gap: 2rem !important;
  padding: 2rem 3% !important;
  box-sizing: border-box !important;
}

.dialogue-content {
  flex: 3;
  background-color: #fcfaef !important;
  padding: 2rem !important;
  box-shadow: none !important;
}

.dialogue-separator {
  width: 12px;
  background: linear-gradient(to right,
    rgba(241, 246, 251, 0) 0%,
    rgba(160, 170, 190, 0.5) 50%,
    rgba(241, 246, 251, 0) 100%);
  border-radius: 6px;
  margin: 0 1rem;
}

.dialogue-sidebar {
  flex: 1;
  background-color: #fcfaef !important;
  padding: 2rem !important;
  box-shadow: none !important;
}

/* Corrige la largeur bloquée par Astra */
body.single-post .ast-container,
body.single-post #primary,
body.single-post #main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  background-color: transparent !important;
}

/* Applique aussi le fond à d'autres blocs Astra */
.site,
#page,
.ast-container,
.ast-page-builder-template,
.site-header,
.ast-site-header-wrap,
.main-header-bar,
footer,
.site-footer,
.footer-adv,
.ast-footer-overlay,
.ast-small-footer,
.ast-footer-copyright,
.site-footer > div {
  background-color: #fcfaef !important;
}

h1, h2, h3 {
  color: #222 !important;
  margin-top: 1.5rem !important;
}

a {
  color: #005599 !important;
  text-decoration: none;
}

a:hover {
  text-decoration: underline !important;
}

/* Responsive : passage à une colonne sur petit écran */
@media (max-width: 900px) {
  .dialogue-layout {
    flex-direction: column !important;
    padding: 1rem !important;
  }

  .dialogue-content,
  .dialogue-sidebar {
    flex: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .dialogue-separator {
    display: none;
  }
}
