
/* Styles pour les blocs WordPress */
.wp-block {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-paragraph {
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.wp-block-heading {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: var(--ecofor-dark-green);
}

.wp-block-image {
  margin-bottom: 1.5em;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0 -8px 1.5em;
}

.wp-block-gallery .blocks-gallery-item {
  width: calc(50% - 16px);
  margin: 8px;
}

@media (max-width: 768px) {
  .wp-block-gallery .blocks-gallery-item {
    width: 100%;
  }
}

.wp-block-quote {
  border-left: 4px solid var(--ecofor-dark-green);
  padding-left: 1em;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
}

.wp-block-file {
  margin-bottom: 1.5em;
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #eee;
  border-radius: 0.25rem;
}

.wp-block-file .wp-block-file__button {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: var(--ecofor-dark-green);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-left: 0.5rem;
  transition: background-color 0.2s;
}

.wp-block-file .wp-block-file__button:hover {
  background-color: var(--ecofor-medium-blue);
}

.wp-block-button {
  margin-bottom: 1.5em;
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 1.5em;
}

.wp-block-table {
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
  padding: 0.5em;
  border: 1px solid #ddd;
}

.wp-block-table th {
  background-color: var(--ecofor-light-blue);
}

.wp-block-media-text {
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-rows: auto;
  margin-bottom: 1.5em;
}

@media (max-width: 768px) {
  .wp-block-media-text {
    grid-template-columns: 1fr;
  }
}

.wp-block-embed {
  margin-bottom: 1.5em;
}

.wp-block-separator {
  border: none;
  border-bottom: 2px solid var(--ecofor-light-blue);
  margin: 2em 0;
}

/* Support pour différents éditeurs WordPress */

/* Elementor */
.elementor-widget-container {
  width: 100%;
}

.elementor-section {
  position: relative;
  width: 100%;
  padding: 50px 0;
}

.elementor-column {
  float: left;
  min-height: 1px;
  position: relative;
  width: 100%;
}

.elementor-widget {
  position: relative;
  margin-bottom: 20px;
}

.elementor-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--ecofor-dark-green);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.elementor-button:hover {
  background-color: var(--ecofor-medium-blue);
}

/* WPBakery */
.wpb_wrapper {
  width: 100%;
}

.vc_row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-left: -15px;
  margin-right: -15px;
}

.vc_column {
  flex: 1;
  padding: 0 15px;
}

.vc_btn3 {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--ecofor-dark-green);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.vc_btn3:hover {
  background-color: var(--ecofor-medium-blue);
}

/* Divi */
.et_pb_section {
  padding: 50px 0;
  position: relative;
}

.et_pb_row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.et_pb_column {
  flex: 1;
  padding: 0 15px;
  margin-bottom: 30px;
}

.et_pb_button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--ecofor-dark-green);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.et_pb_button:hover {
  background-color: var(--ecofor-medium-blue);
}

/* Styles communs pour l'intégration de WordPress */
.wordpress-content img {
  max-width: 100%;
  height: auto;
}

.wordpress-content iframe {
  max-width: 100%;
}

.youtube-embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
