/*
Theme Name: Le Technicien Informé
Template: generatepress
Version: 1.0.0
Description: Custom theme for Le Technicien Informé
*/

/* Palette — terracotta-warm */
:root {
  --lti-primary: #B45309;
  --lti-secondary: #D97706;
  --lti-accent: #CA8A04;
  --lti-accent-warm: #FAF0E6;
  --lti-surface: #FFFBEB;
  --lti-text: #1C1917;
  --lti-text-secondary: #57534E;
  --lti-border: #F5E6D0;
}

/* Body font — PT Serif */
body {
  font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--lti-text);
}

/* Heading font — PT Sans */
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.widget-title,
.page-title {
  font-family: 'PT Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
}

a {
  color: var(--lti-primary);
}
a:hover {
  color: var(--lti-secondary);
}

/* Front-page H1 (mandatory, visible — see functions.php content injection) */
.site-tagline-heading {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 1.6rem;
  color: var(--lti-text);
  margin: 0.5rem 0 1rem;
}

/* Homepage hero — featured post */
.lti-hero-post {
  border: 1px solid var(--lti-border);
  background: var(--lti-surface);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.lti-hero-post img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.lti-hero-post h2 {
  margin-top: 0;
}
.lti-hero-post .lti-read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
}

.lti-section-heading {
  margin-top: 2rem;
  border-bottom: 2px solid var(--lti-accent);
  padding-bottom: 0.4rem;
}

.lti-post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .lti-post-grid { grid-template-columns: 1fr; }
}
.lti-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 0.5rem;
}

/* Footer — centered, dark background, no column headings */
.site-footer,
.site-footer .inside-top-bar,
.site-footer .footer-widgets {
  background-color: var(--lti-text);
  color: var(--lti-accent-warm);
}
.site-footer .widget-title,
.site-footer .footer-widgets .widget-title {
  display: none;
}
.site-footer .footer-widgets {
  text-align: center;
}
.site-footer a {
  color: #D4C5B2;
}
.site-footer a:hover {
  color: var(--lti-accent-warm);
}
.copyright-bar {
  background-color: var(--lti-text);
  color: #D4C5B2;
  text-align: center;
}

/* Sidebar — left, per brief */
.widget-title {
  font-size: 1rem;
  border-bottom: 1px solid var(--lti-border);
  padding-bottom: 0.3rem;
}

/* Nav above header */
.main-navigation .inside-navigation {
  max-width: 1100px;
  margin: 0 auto;
}

/* Submit button color (contact form) */
body button.wpforms-submit,
body .wpcf7-submit,
body .ff-btn-submit {
  background-color: var(--lti-primary) !important;
  color: #ffffff !important;
}
body button.wpforms-submit:hover,
body .wpcf7-submit:hover,
body .ff-btn-submit:hover {
  filter: brightness(0.9) !important;
}

/* Scroll-to-top disabled per brief — hide if GP renders it anyway */
#generate-back-to-top {
  display: none !important;
}

/* Mobile header — keep logo + hamburger on one row, hamburger flush right.
   Without this, the mobile logo image renders wide enough to force a flex-wrap,
   pushing the hamburger onto its own line at the left edge. */
#mobile-header .inside-navigation {
  flex-wrap: nowrap;
}
#mobile-header .site-logo.mobile-header-logo {
  flex: 1 1 auto;
  min-width: 0;
}
#mobile-header .site-logo.mobile-header-logo img {
  max-width: 160px;
  width: auto;
  height: auto;
}
#mobile-header button.menu-toggle {
  flex: 0 0 auto;
  margin-left: auto;
}
