/* =========================
   04-wp-core.css
   WordPress "core" styles (Gutenberg + alignments + media)
   -> Safe pour tout le site, même si pages WP différentes
========================= */

/* Alignments */
.alignleft{ float:left; margin: 0 18px 12px 0; }
.alignright{ float:right; margin: 0 0 12px 18px; }
.aligncenter{ display:block; margin-left:auto; margin-right:auto; }

.wp-caption{
  max-width: 100%;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}

.wp-caption img{ display:block; width:100%; height:auto; border-radius: 12px; }

.wp-caption-text{
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Galleries */
.gallery{
  display:grid;
  gap: 12px;
}

.gallery-item{
  margin:0;
}

.gallery img{
  width:100%;
  height:auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}

/* Blocks basics */
.entry-content h1, .entry-content h2, .entry-content h3{
  letter-spacing: -.2px;
}

.entry-content p{
  line-height: var(--lh-body);
  color: rgba(15,23,42,.78);
}

/* Tables (WP content) */
.entry-content table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
}

.entry-content th, .entry-content td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  text-align:left;
}

.entry-content th{
  font-weight: 700;
  font-size: 13px;
  color: rgba(15,23,42,.78);
  text-transform: uppercase;
  letter-spacing: .6px;
  background: rgba(15,23,42,.03);
}

/* Buttons in WP content */
.wp-block-button__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  text-decoration:none;
  font-weight: 700;
  cursor:pointer;
  background: linear-gradient(135deg, rgba(53,200,74,.96), rgba(255,230,0,.92));
  color: #0b0f12;
  box-shadow: 0 18px 30px rgba(53,200,74,.20);
}

/* Forms inside WP */
.entry-content input,
.entry-content select,
.entry-content textarea{
  border-radius: 14px;
}
