/*
Theme Name: Trame Nette
Template: generatepress
Version: 1.0.0
Description: Custom theme for Pilote SEO
*/

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

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

/* ===========================================================
   Typography — modern-clean pairing (Inter throughout)
   =========================================================== */
body,
p,
li,
input,
textarea,
select {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--tn-text);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.widget-title,
.page-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  color: var(--tn-text);
}

em, i, blockquote {
  font-style: italic;
}

a {
  color: var(--tn-primary);
}

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

/* ===========================================================
   Body signature: sig-E (no-sidebar, sep-containers, nav-above-header)
   =========================================================== */
.site-content,
.content-area {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body.no-sidebar .content-area,
body.no-sidebar .site-content {
  width: 100%;
  float: none;
}

.entry-content,
.page-header,
.entry-header {
  background: var(--tn-background);
  border: 1px solid var(--tn-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

/* ===========================================================
   Mobile tagline rule (mandatory — Class M2-1 prevention)
   Variance phrase: fresh per-site, not shared with any other site
   =========================================================== */
@media (max-width: 767px) {
  .inside-navigation::before {
    content: "Audits techniques réels, SEO sans mythes";
    font-style: italic;
    position: absolute;
    left: var(--gap-small, 8px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--tn-text-secondary);
  }
  .inside-navigation { position: relative; }
}

/* ===========================================================
   Front-page visible H1 (sr-homepage-h1 convention)
   =========================================================== */
.sr-homepage-h1,
.site-tagline-heading {
  display: block;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 1.15rem;
  font-family: 'Inter', sans-serif;
  color: var(--tn-text);
  margin: 0;
  background: var(--tn-surface);
}

/* ===========================================================
   Form submit button — palette primary (mandatory, GP Form gap)
   =========================================================== */
body button.wpforms-submit,
body .wpcf7-submit,
body .ff-btn-submit,
body .search-form .search-submit,
body .wp-block-search__button {
  background-color: var(--tn-primary) !important;
  color: #ffffff !important;
  border-radius: 8px;
}
body button.wpforms-submit:hover,
body .wpcf7-submit:hover,
body .ff-btn-submit:hover,
body .search-form .search-submit:hover,
body .wp-block-search__button:hover {
  filter: brightness(1.15) !important;
}

.search-field,
.wp-block-search__input {
  border: 1px solid var(--tn-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.95em;
  width: 100%;
  background: var(--tn-background);
  color: var(--tn-text);
}

/* ===========================================================
   Homepage composition: blog-3 (magazine / multi-category)
   Hero (featured post) + per-category sections + popular list
   =========================================================== */
.tn-hero-section {
  max-width: 720px;
  margin: 0 auto 2em;
  padding: 0 1em;
}

.tn-hero-card {
  display: flex;
  flex-direction: column;
  background: var(--tn-background);
  border: 1px solid var(--tn-border);
  border-radius: 8px;
  overflow: hidden;
}

.tn-hero-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.tn-hero-card .tn-hero-content { padding: 1.4em; }

.tn-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78em;
  color: var(--tn-accent);
  font-weight: 700;
}

.tn-hero-card h2 {
  margin: 0.4em 0;
  font-size: 1.5em;
}

.tn-hero-card h2 a { color: var(--tn-text); text-decoration: none; }
.tn-hero-card h2 a:hover { color: var(--tn-primary); }

.tn-hero-excerpt { color: var(--tn-text-secondary); margin-bottom: 0.8em; }

.tn-category-section {
  max-width: 720px;
  margin: 0 auto 2.2em;
  padding: 0 1em;
}

.tn-category-section h3 {
  font-size: 1.2em;
  color: var(--tn-primary);
  border-bottom: 2px solid var(--tn-border);
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}

.tn-post-list {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}

.tn-post-row {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  background: var(--tn-background);
  border: 1px solid var(--tn-border);
  border-radius: 8px;
  padding: 0.9em 1.1em;
}

.tn-post-row a { color: var(--tn-text); text-decoration: none; font-weight: 700; }
.tn-post-row a:hover { color: var(--tn-primary); }
.tn-post-row .tn-post-cat-tag {
  font-size: 0.78em;
  color: var(--tn-text-secondary);
  white-space: nowrap;
}

.tn-popular-section {
  max-width: 720px;
  margin: 0 auto 2em;
  padding: 0 1em;
}

.tn-popular-section h3 {
  font-size: 1.1em;
  color: var(--tn-secondary);
  margin-bottom: 0.8em;
}

.tn-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.tn-popular-list li a {
  color: var(--tn-text);
  text-decoration: none;
}
.tn-popular-list li a:hover { color: var(--tn-primary); }

@media (max-width: 600px) {
  .tn-post-row { flex-direction: column; }
}

/* ===========================================================
   About page — avatar-centered layout
   =========================================================== */
.avatar-centered {
  display: block;
  margin: 0 auto 1.5em;
  text-align: center;
}

.avatar-centered img {
  max-width: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.tn-about-name {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--tn-primary);
  margin: 0 0 1.5em;
}

/* ===========================================================
   404 page
   =========================================================== */
.tn-404-wrap {
  max-width: 700px;
  margin: 3em auto;
  text-align: center;
  padding: 0 1em;
}

.tn-404-wrap h1 {
  font-size: 2.6em;
  color: var(--tn-primary);
}

.tn-404-wrap p {
  color: var(--tn-text-secondary);
  font-size: 1.05em;
}

/* ===========================================================
   Footer — column layout (footer type 3: CTA + columns)
   =========================================================== */
.site-footer,
.footer-bar-wrap {
  background: var(--tn-surface);
  border-top: 1px solid var(--tn-border);
}

.footer-widgets .widget-title,
.site-footer .widget-title {
  color: var(--tn-primary);
  font-size: 1em;
}

.site-info,
.copyright-bar {
  text-align: center;
  color: var(--tn-text-secondary);
  font-size: 0.9em;
  padding: 0.8em 0;
}

.tn-footer-legal a { color: var(--tn-text-secondary); }

/* Scroll-to-top button — palette accent */
.generate-back-to-top {
  background-color: var(--tn-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
