/* ============================================================
   VANOSC MUNICIPAL — CSS Public
   ============================================================ */

.vm-form-wrapper { max-width: 680px; margin: 0 auto; }
.vm-form { }

.vm-form-field { margin-bottom: 18px; }
.vm-form-field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.vm-form-field-row .vm-form-field { flex: 1; min-width: 200px; }

.vm-label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.vm-label span, .vm-required-star { color: #c0392b; }
.vm-hint { font-weight: normal; font-size: 12px; color: #888; }
.vm-star { color: #c0392b; font-weight: 700; }
.vm-champs-obligatoires { font-size: 12px; color: #888; margin-bottom: 12px; font-style: italic; }
.vm-required { }

.vm-input, .vm-select, .vm-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    box-sizing: border-box;
    transition: border-color .15s;
}
.vm-input:focus, .vm-select:focus, .vm-textarea:focus {
    outline: none;
    border-color: #2c5f8a;
    box-shadow: 0 0 0 2px rgba(44,95,138,.12);
}
.vm-textarea { resize: vertical; min-height: 100px; }

/* Upload */
.vm-upload-zone { border: 2px dashed #ccc; border-radius: 4px; padding: 20px; text-align: center; cursor: pointer; transition: border-color .15s; }
.vm-upload-zone:hover { border-color: #2c5f8a; }
.vm-file-input { display: none; }
.vm-upload-label { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.vm-upload-icon { font-size: 28px; }
.vm-upload-text { font-weight: 600; font-size: 14px; color: #444; }
.vm-upload-hint { font-size: 12px; color: #888; }
.vm-file-list { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.vm-file-list li { font-size: 12px; color: #555; padding: 3px 0; border-bottom: 1px solid #f0f0f0; }

/* Note image */
.vm-image-note-trigger { margin-top: 8px; font-size: 13px; }
.vm-link-subtle { color: #2c5f8a; text-decoration: none; }
.vm-link-subtle:hover { text-decoration: underline; }

/* Lightbox */
.vm-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.vm-lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); }
.vm-lightbox-content { position: relative; background: #fff; border-radius: 6px; padding: 28px; max-width: 520px; width: 90%; max-height: 80vh; overflow-y: auto; z-index: 1; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.vm-lightbox-content h3 { margin: 0 0 16px; font-size: 16px; }
.vm-lightbox-body { font-size: 14px; line-height: 1.6; color: #444; }
.vm-lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: #888; line-height: 1; }

/* Contact bloc boîte à idées */
.vm-contact-block { background: #f8f9fa; border: 1px solid #e8e8e8; border-radius: 4px; padding: 16px; }
.vm-contact-intro { margin: 0 0 14px; font-size: 13px; color: #555; font-style: italic; }

/* Checkbox */
.vm-checkbox-label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.vm-checkbox-label input { margin-top: 3px; flex-shrink: 0; }
.vm-field-acceptation { margin-top: 20px; }

/* Erreurs */
.vm-form-errors { background: #fff0f0; border: 1px solid #f5a6a6; border-radius: 4px; padding: 10px 14px; font-size: 13px; color: #c0392b; margin-bottom: 16px; }

/* Bouton */
.vm-form-actions { margin-top: 20px; }
.vm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 4px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .15s; }
.vm-btn-theme { background-color: var(--vm-btn-color, #2c5f8a); color: #fff; }
.vm-btn-theme:hover { background-color: var(--vm-btn-color-hover, #1e4266); filter: none; }
.vm-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Confirmation */
.vm-confirmation { text-align: center; padding: 40px 20px; }
.vm-confirmation-icon { font-size: 48px; color: var(--vm-btn-color, #00a32a); margin-bottom: 16px; }
.vm-confirmation-text { font-size: 16px; color: #333; line-height: 1.6; }

@media (max-width: 600px) {
    .vm-form-field-row { flex-direction: column; }
    .vm-form-field-row .vm-form-field { min-width: unset; }
}

.wp-block-query .wp-block-post-terms a {
  display: inline-flex !important;
  align-items: center !important;
  background: var(--vanosc-cat-bg) !important;
  color: #ffffff !important;
  font-size: .7rem !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  line-height: 1 !important;
  padding: 8px 8px 5px !important;
}

/* ============================================================
   ACTUS ACCUEIL — Ajustements cards
   ============================================================ */

/* Image bord à bord (annule le padding 20px du LI) */
.home .wp-block-query .wp-block-post-featured-image {
    margin: -20px -20px 0 !important;
    width: calc(100% + 40px) !important;
}

/* Catégorie + date : centrage vertical */
.home .wp-block-query .meta-ligne {
    align-items: center !important;
    margin-top: 10px !important;
}
.home .wp-block-query .meta-ligne > * {
    align-self: center !important;
    margin-top: 10px !important;
}
.home .wp-block-query .meta-ligne .wp-block-post-date time {
    line-height: 1 !important;
}

/* Titre : taille réduite, ancré en haut, pousse le bouton vers le bas */
.home .wp-block-query .wp-block-post-title {
    font-size: 18px !important;
    flex: 1 !important;
    padding-bottom: 0 !important;
    margin-top: 15px !important;
}

/* Espace entre titre et bouton */
.home .wp-block-query .wp-block-read-more {
    margin-top: 75px !important;
}

/* Bordure gauche 4px */
.home .wp-block-query .wp-block-post-template > li {
    border-left-width: 4px !important;
}

/* ============================================================
   ACTUS PAGE /actus/ — Ajustements cards (blog/archive)
   ============================================================ */

.blog .wp-block-query .meta-ligne,
.archive .wp-block-query .meta-ligne {
    align-items: center !important;
}
.blog .wp-block-query .meta-ligne > *,
.archive .wp-block-query .meta-ligne > * {
    align-self: center !important;
}
.blog .wp-block-query .meta-ligne .wp-block-post-date time,
.archive .wp-block-query .meta-ligne .wp-block-post-date time {
    line-height: 1 !important;
}

.blog .wp-block-query .wp-block-post-title,
.archive .wp-block-query .wp-block-post-title {
    font-size: 18px !important;
    padding-bottom: 0 !important;
    margin-top: 15px !important;
}

.blog .wp-block-query .wp-block-post-excerpt,
.archive .wp-block-query .wp-block-post-excerpt {
    display: block !important;
    flex: 1 !important;
    margin-top: 8px !important;
}

.blog .wp-block-query .wp-block-read-more,
.archive .wp-block-query .wp-block-read-more {
    margin-top: 10px !important;
}

.blog .wp-block-query .wp-block-post-template > li,
.archive .wp-block-query .wp-block-post-template > li {
    border-left-width: 4px !important;
}