/*
Theme Name: L'Ingénieur Pragmatique
Template: generatepress
Version: 1.0.0
Description: Custom theme for L'Ingénieur Pragmatique
*/

/* Palette — midnight-bold */
:root {
  --lip-primary: #1E293B;
  --lip-secondary: #475569;
  --lip-accent: #3B82F6;
  --lip-accent-warm: #E8ECF1;
  --lip-surface: #F1F5F9;
  --lip-background: #FFFFFF;
  --lip-text: #0F172A;
  --lip-text-secondary: #64748B;
  --lip-border: #CBD5E1;
}

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

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

a {
  color: var(--lip-accent);
}
a:hover {
  color: var(--lip-primary);
}

/* Repère typographique mobile */
@media (max-width: 767px) {
  .inside-navigation::before {
    content: "Trente ans d'infrastructure, une passion pour démystifier la tech aux entrepreneurs";
    font-style: italic;
    position: absolute;
    left: var(--gap-small, 8px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--lip-text);
  }
  .inside-navigation { position: relative; }
}

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

/* Homepage "À lire" section heading — no-hero, native GP post loop follows */
.lip-section-heading {
  margin-top: 2rem;
  border-bottom: 2px solid var(--lip-accent);
  padding-bottom: 0.4rem;
}

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

/* Footer — centered-light, no column headings */
.site-footer,
.site-footer .inside-top-bar,
.site-footer .footer-widgets {
  background-color: var(--lip-surface);
  color: var(--lip-text);
  text-align: center;
}
.site-footer .widget-title,
.site-footer .footer-widgets .widget-title {
  display: none;
}
.site-footer a {
  color: var(--lip-primary);
}
.site-footer a:hover {
  color: var(--lip-accent);
}
.copyright-bar {
  background-color: var(--lip-surface);
  color: var(--lip-text-secondary);
  text-align: center;
}

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

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

/* Scroll-to-top disabled per brief */
#generate-back-to-top {
  display: none !important;
}

/* Flat design — border-radius:none / shadow:none */
img, .widget, button, input, select, textarea {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Mobile header — logo + hamburger stay on one row, hamburger flush right */
#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;
}

/* Byline + author card */
.lip-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  color: var(--lip-text-secondary);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.9rem;
}
.lip-byline-avatar {
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
}
.lip-author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--lip-surface);
  border: 1px solid var(--lip-border);
}
.lip-author-card img {
  border-radius: 50% !important;
  flex: 0 0 auto;
}
.lip-author-card span {
  color: var(--lip-text-secondary);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.9rem;
}

/* About page timeline */
.lip-timeline li {
  margin-bottom: 1rem;
}
.lip-brand-mission {
  font-size: 1.15rem;
  color: var(--lip-text-secondary);
}
.lip-about-signoff {
  font-style: italic;
  margin-top: 2rem;
}
