/*
Theme Name: Horizon Mat
Template: generatepress
Version: 1.0.0
Description: Custom theme for Le Bâti Pratique
*/

/* GP gap fixes below — option-key-first, CSS only for gaps */

/* Lisibilité de marque mobile */
@media (max-width: 767px) {
  .inside-navigation::before {
    content: "Comprendre le bâti pour mieux le rénover — conseils d'un praticien de terrain";
    font-style: italic;
    position: absolute;
    left: var(--gap-small, 8px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-color, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 60px);
    text-overflow: ellipsis;
  }
  .inside-navigation { position: relative; }
}

/* Submit-button palette rule (ocean-deep primary) */
body button.wpforms-submit,
body .wpcf7-submit,
body .ff-btn-submit {
  background-color: #1A56DB !important;
  color: #ffffff !important;
}
body button.wpforms-submit:hover,
body .wpcf7-submit:hover,
body .ff-btn-submit:hover {
  filter: brightness(0.88) !important;
}

/* Front-page H1 visible tagline */
.site-tagline-heading {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: inherit;
  margin: 0;
}

/* Footer centered-dark layout */
.site-footer {
  text-align: center;
}
.site-footer .inside-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Search input styling */
.search-field,
.wp-block-search__input {
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.95em;
  width: 100%;
  background: #ffffff;
  color: #1F2937;
}
.search-submit,
.wp-block-search__button {
  background: #1A56DB;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.95em;
  cursor: pointer;
}
.search-submit:hover,
.wp-block-search__button:hover {
  opacity: 0.85;
}

/* Contact form (CF7) */
.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit) {
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.95em;
  width: 100%;
  background: #ffffff;
  color: #1F2937;
}
.wpcf7-form .wpcf7-form-control:focus {
  outline: 2px solid #1A56DB;
  outline-offset: 1px;
}

/* Avatar centered layout (about page) */
.avatar-centered img {
  display: block;
  margin: 0 auto;
}

/* Post card enhancements */
.inside-article {
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-radius: 4px;
  transition: box-shadow 0.2s;
}
.inside-article:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.14);
}

/* Hide secondary nav on mobile — GP does not suppress #secondary-navigation at mobile breakpoint;
   its .menu-toggle remains visible and intercepts the hamburger click before #mobile-header */
@media (max-width: 768px) {
    #secondary-navigation { display: none !important; }
}
