/*
 Theme Name:   Sentiers Découverts
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  sentiers-decouverts
 Description:  Child theme for Sentiers Découverts — Randonnée et patrimoine alpin
*/

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

/* === PT SANS (headings) + PT SERIF (body) === */
body, p, li, td, th, blockquote {
    font-family: 'PT Serif', Georgia, serif;
}
h1, h2, h3, h4, h5, h6,
.site-title, .main-navigation,
.entry-title, .widget-title {
    font-family: 'PT Sans', sans-serif;
}

/* === BODY SIGNATURE sig-C === */
body {
    background-color: var(--bg);
    color: var(--text);
}
.site-header {
    background-color: var(--primary);
    color: #fff;
}
.site-header .site-title a,
.main-navigation a {
    color: #fff;
}
.main-navigation .current-menu-item > a,
.main-navigation a:hover {
    color: var(--accent);
}
.nav-primary {
    background-color: var(--primary);
}

/* GP: accent color links */
a { color: var(--accent); }
a:hover { color: var(--primary); }

/* Buttons */
.button, input[type=submit], .ff-btn-submit, .wp-block-button__link {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 3px;
}
.button:hover, input[type=submit]:hover, .ff-btn-submit:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Sidebar none — full width */
.content-area { width: 100% !important; }
.widget-area { display: none !important; }

/* Footer — 3-col-light */
.site-footer {
    background-color: var(--surface);
    color: var(--text);
    border-top: 1px solid var(--border);
    padding: 2em 0;
}
.footer-widgets { display: flex; gap: 2em; flex-wrap: wrap; }
.footer-widget-1, .footer-widget-2, .footer-widget-3 { flex: 1; min-width: 200px; }

/* Back to top scroll */
.generate-back-to-top {
    background-color: var(--accent);
    color: #fff;
    border-radius: 3px;
}

/* Category archive hero - prevent excess space */
.page-hero-section { max-height: 60vh; }

/* Mobile hamburger nav */
#mobile-header .inside-navigation { flex-wrap: nowrap; }
#mobile-header .site-branding { flex: 1; }
#mobile-header .menu-toggle { margin-left: auto; }

/* Accent section */
.featured-section-wrap { background-color: var(--surface); }

/* Screen-reader H1 */
.site-screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Identité de marque mobile */
@media (max-width: 767px) {
  .inside-navigation::before {
    content: "Votre référence en Suisse romande pour explorer les sentiers, découvrir l'histoire cachée des Alpes et comprendre le patrimoine qui façonne nos vallées.";
    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: #1E293B !important;
  color: #ffffff !important;
}
body button.wpforms-submit:hover,
body .wpcf7-submit:hover,
body .ff-btn-submit:hover {
  filter: brightness(0.88) !important;
}

/* Search button palette rule — body-scoped for 404 template reach */
body .search-form .search-submit,
body .wp-block-search__button {
  background-color: #1E293B;
  color: #ffffff;
}
body .search-form .search-submit:hover,
body .wp-block-search__button:hover {
  filter: brightness(0.88);
}
