/*
Theme Name: Pivot Clair
Template: generatepress
Version: 1.0.0
Description: Custom theme for Stratégie Agile PME
*/

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

/* Ligne éditoriale mobile visible */
@media (max-width: 767px) {
  .inside-navigation::before {
    content: "Aider les PME à naviguer la transformation digitale sans perdre leur âme";
    font-style: italic;
    position: absolute;
    left: var(--gap-small, 8px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-color);
  }
  .inside-navigation { position: relative; }
}

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

/* Search submit button override — scoped to avoid GP dynamic CSS conflict */
body .search-form .search-submit,
body .wp-block-search__button {
  background-color: #B45309 !important;
  color: #ffffff !important;
}
body .search-form .search-submit:hover,
body .wp-block-search__button:hover {
  filter: brightness(0.88) !important;
}

/* Body font weight — parent theme may set 300 */
body {
  font-weight: 400;
}

/* Author-intro homepage hero */
.site-author-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  background: #FFFBEB;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.site-author-intro img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.site-author-intro-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #1C1917;
}
.site-author-intro-content p {
  color: #57534E;
  margin-bottom: 1rem;
}
.site-author-intro-content a.site-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #B45309;
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
}
.site-author-intro-content a.site-cta:hover {
  background: #92400e;
}
@media (max-width: 600px) {
  .site-author-intro {
    flex-direction: column;
    text-align: center;
  }
}

/* Homepage posts section */
.site-latest-posts-heading {
  font-size: 1.4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1C1917;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #F5E6D0;
}

/* 404 page */
.error-404 .page-title {
  font-size: 2rem;
}

/* Sidebar */
.widget-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #B45309;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

/* About page — avatar-right layout */
.wp-about-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.wp-about-bio {
  flex: 1;
}
.wp-about-avatar {
  flex-shrink: 0;
  width: 200px;
}
.wp-about-avatar img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
@media (max-width: 768px) {
  .wp-about-wrap {
    flex-direction: column;
  }
  .wp-about-avatar {
    width: 160px;
    margin: 0 auto;
  }
}
