/*!
Theme Name: Kadence
Theme URI: https://www.kadencewp.com/kadence-theme/
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: Kadence Theme is a lightweight yet full featured WordPress theme for creating beautiful fast loading and accessible websites, easier than ever. It features an easy to use drag and drop header and footer builder to build any type of header in minutes. It features a full library of gorgeous starter templates that are easy to modify with our intelligent global font and color controls. With extensive integration with the most popular 3rd party plugins, you can quickly build impressive ecommerce websites, course websites, business websites, and more.
Version: 1.4.5
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence
Requires at least: 6.3
Tested up to: 6.9.1
Tags: translation-ready, accessibility-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce
Requires PHP: 7.4

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share
what you've learned with others.
*/

/* ============================================================
   L'Écho du Segréen — CSS personnalisé
   Généré automatiquement le 01/04/2026 07:00
   ============================================================ */

:root {
  --es-bleu:        #2D6BA4;
  --es-bleu-fonce:  #1A3A5C;
  --es-bleu-clair:  #E6F0FA;
  --es-bleu-pale:   #F0F6FC;
  --es-jaune:       #F0B429;
  --es-jaune-clair: #FEF7E0;
  --es-beige:       #F4F6F9;
  --es-texte:       #0F1D2E;
  --es-texte-sec:   #4A607A;
  --es-texte-ter:   #8099B3;
}

/* ── Fond général ── */
body { background: var(--es-beige) !important; }

/* ── Header ── */
.site-header, #masthead {
  position: sticky !important;
  top: 0; z-index: 999;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(26,58,92,0.12);
}

/* ── Logo dans le header ── */
.site-logo img,
.custom-logo,
.kadence-site-logo img {
  max-height: 50px !important;
  width: auto !important;
}

/* ── Navigation principale ── */
.main-navigation a, .primary-menu > li > a,
#site-navigation a, .nav-menu > li > a {
  font-family: "DM Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #4A607A !important;
  padding: 6px 13px !important;
  border-radius: 7px !important;
  transition: all 0.15s !important;
}
.main-navigation a:hover, .primary-menu > li > a:hover,
.main-navigation .current-menu-item > a,
#site-navigation a:hover {
  color: #2D6BA4 !important;
  background: #E6F0FA !important;
  text-decoration: none !important;
}

/* ── Boutons ── */
.wp-block-button__link, .wp-element-button,
.kb-btn, a.button, input[type="submit"], button[type="submit"] {
  background: #2D6BA4 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 7px !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 500 !important;
  transition: background 0.15s !important;
}
.wp-block-button__link:hover, .wp-element-button:hover,
.kb-btn:hover, a.button:hover, input[type="submit"]:hover {
  background: #1A3A5C !important;
  color: #ffffff !important;
}

/* ── Titres ── */
h1, h2, h3, h4 {
  font-family: "Source Serif 4", serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
  color: #0F1D2E;
}

/* ── Liens ── */
a { color: #2D6BA4; }
a:hover { color: #1A3A5C; }

/* ── Fond des blocs Kadence avec couleur bleue foncée ── */
.kb-section-bg-color,
.kadence-block-section[style*="#1A3A5C"],
.wp-block-group[style*="#1A3A5C"] {
  color: white;
}

/* ── Query Loop — cards CR municipal ── */
.wp-block-query .wp-block-post,
.post-type-archive-cr-municipal article {
  background: #ffffff;
  border: 1px solid rgba(26,58,92,0.13);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.wp-block-query .wp-block-post:hover,
.post-type-archive-cr-municipal article:hover {
  border-color: rgba(45,107,164,0.4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.wp-block-post-title a {
  color: #0F1D2E !important;
  text-decoration: none;
  font-family: "Source Serif 4", serif;
}
.wp-block-post-date time {
  display: inline-block;
  background: #E6F0FA;
  color: #1A3A5C;
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 5px;
  margin-bottom: 8px;
}

/* ── Contact Form 7 ── */
.wpcf7 input:not([type="submit"]),
.wpcf7 textarea, .wpcf7 select {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(26,58,92,0.15) !important;
  border-radius: 7px !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 14px !important;
  color: #0F1D2E !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color 0.15s !important;
  margin-bottom: 0.75rem !important;
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  border-color: #2D6BA4 !important;
  box-shadow: 0 0 0 3px #2D6BA422 !important;
}
.wpcf7 input[type="submit"] {
  background: #2D6BA4 !important;
  color: white !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 10px 24px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}
.wpcf7 input[type="submit"]:hover {
  background: #1A3A5C !important;
}

/* ── YOP Poll sondages ── */
.yop-poll-container .yop-poll-vote-button {
  background: #2D6BA4 !important;
  border-radius: 7px !important;
  color: white !important;
}
.yop-poll-container .yop-poll-vote-button:hover {
  background: #1A3A5C !important;
}
.yop-poll-bar-container .yop-poll-bar { background: #E6F0FA !important; }
.yop-poll-bar-container .yop-poll-bar-vote { background: #2D6BA4 !important; }

/* ── wpForo forum ── */
#wpforo-wrap .wpforo-topic-head,
#wpforo-wrap .wpforo-category-head,
#wpforo-wrap .wpforo-header {
  background: #1A3A5C !important;
  color: white !important;
}
#wpforo-wrap .wpforo-topic-head *,
#wpforo-wrap .wpforo-category-head * { color: white !important; }
#wpforo-wrap a { color: #2D6BA4 !important; }
#wpforo-wrap a:hover { color: #1A3A5C !important; }
#wpforo-wrap .wpforo-submit-button,
#wpforo-wrap input[type="submit"],
#wpforo-wrap button[type="submit"] {
  background: #2D6BA4 !important;
  border-color: #2D6BA4 !important;
  border-radius: 7px !important;
  color: white !important;
}
#wpforo-wrap .wpforo-status-badge { background: #E6F0FA !important; color: #1A3A5C !important; }

/* ── Footer ── */
.site-footer, #colophon {
  background: #1A3A5C !important;
  color: rgba(255,255,255,0.7) !important;
}
.site-footer a, #colophon a {
  color: rgba(255,255,255,0.65) !important;
  transition: color 0.15s;
}
.site-footer a:hover, #colophon a:hover { color: #ffffff !important; }
.site-footer .site-info, #colophon .site-info {
  color: rgba(255,255,255,0.35) !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  padding-top: 1rem;
}

/* ── Logo dans le footer (version blanche) ── */
.site-footer .custom-logo,
.site-footer .site-logo img,
#colophon .custom-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ── Bandeau actualités ── */
.bandeau-actu {
  background: #1A3A5C;
  padding: 0.6rem 1.5rem;
  font-size: 13px;
}
.bandeau-label {
  background: #F0B429;
  color: #0F1D2E;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .06em;
}
.bandeau-actu a {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
}
.bandeau-actu a:hover { color: white !important; }

/* ── Theme My Login ── */
.tml { max-width: 420px; margin: 2rem auto; }
.tml input[type="text"],
.tml input[type="password"],
.tml input[type="email"] {
  border: 1px solid rgba(26,58,92,0.2) !important;
  border-radius: 7px !important;
  padding: 10px 14px !important;
  width: 100% !important;
}
.tml input[type="submit"] {
  background: #2D6BA4 !important;
  border-radius: 7px !important;
  color: white !important;
  padding: 10px 24px !important;
  width: 100% !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 1.9rem !important; }
  .wp-block-kadence-rowlayout { flex-direction: column !important; }
  .site-logo img, .custom-logo { max-height: 38px !important; }
}
