/*
Theme Name: Cap Ardoise
Template: generatepress
Version: 1.0.0
Description: Custom theme for Le Carnet du Voyageur Curieux
*/

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

/* Empreinte visuelle responsive */
@media (max-width: 767px) {
  .inside-navigation::before {
    content: "Décoder les paysages, les routes et les lieux oubliés de la France profonde";
    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 */
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;
}

/* Scroll-to-top button */
#generate-back-to-top {
  background-color: #1A56DB;
  color: #ffffff;
}

/* 3-col-dark footer */
.site-footer {
  background-color: #1F2937;
  color: #E5E7EB;
}
.site-footer a {
  color: #93C5FD;
}
.site-footer a:hover {
  color: #BFDBFE;
}
.footer-widgets {
  background-color: #1F2937;
}
.footer-widgets .widget-title {
  color: #F9FAFB;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.5em;
}

/* sig-F: nav-float-right mobile adjustments */
#mobile-header .inside-navigation {
  flex-wrap: nowrap;
}

/* Ocean-deep primary accent on links */
a {
  color: #1A56DB;
}
a:hover {
  color: #1e40af;
}

/* Homepage featured post section */
.featured-post-section {
  background-color: #EFF6FF;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #1A56DB;
}

.featured-post-section h2 {
  color: #1F2937;
  margin-top: 0;
}

.featured-post-section .featured-post-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .recent-posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.post-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 1rem;
}

.post-card-title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
}

.post-card-link {
  font-size: 0.875rem;
  color: #1A56DB;
  text-decoration: none;
}

.category-section {
  margin-top: 2rem;
}

.category-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.category-card {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: #1F2937;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.category-card:hover {
  background: #DBEAFE;
  color: #1F2937;
}

.category-card .post-count {
  font-size: 0.75rem;
  color: #6B7280;
  display: block;
}

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

/* Search submit button — palette primary #1A56DB */
body .search-form .search-submit,
body .wp-block-search__button {
  background-color: #1A56DB;
  color: #ffffff;
}
body .search-form .search-submit:hover,
body .search-form .search-submit:focus,
body .wp-block-search__button:hover,
body .wp-block-search__button:focus {
  background-color: #1e40af;
  color: #ffffff;
}
@media (max-width: 767px) {
  body .search-form .search-submit,
  body .wp-block-search__button {
    background-color: #1A56DB;
    color: #ffffff;
  }
}

/* When GP Plus mobile-header is active, the secondary nav has its own toggle
   which appears BEFORE the mobile header toggle in DOM order. Hide it so the
   mobile-header hamburger is the first visible button.me-toggle at mobile viewport. */
@media (max-width: 768px) {
  body.mobile-header #secondary-navigation .menu-toggle,
  body.mobile-header .secondary-navigation .menu-toggle {
    display: none !important;
  }
}
