/*
Theme Name: QuébecBouge
Description: Thème responsive pour événements, sorties et annuaire QuébecBouge. Version de test.
Version: 1.0.2
Author: QuébecBouge
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: quebecbouge
*/
:root{--navy:#06366f;--blue:#087bea;--yellow:#ffb51b;--coral:#ff5a45;--teal:#09b9c0;--ink:#12345b;--muted:#66809e;--pale:#eff7ff;--border:#e0ebf7}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.55}a{color:var(--blue);text-decoration:none}a:hover{color:var(--navy)}img{max-width:100%;height:auto}.container{width:min(1320px,calc(100% - 36px));margin:auto}.site-header{border-bottom:1px solid var(--border);background:#fff}.header-inner{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand-logo,.custom-logo-link img{width:250px;max-height:90px;object-fit:contain;display:block}.primary-nav ul{display:flex;gap:25px;list-style:none;margin:0;padding:0}.primary-nav a{color:var(--navy);font-weight:750}.primary-nav a:hover{color:var(--blue)}.header-actions{display:flex;align-items:center;gap:12px}.button{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:white!important;padding:13px 22px;border-radius:999px;font-weight:800;border:0;cursor:pointer}.button:hover{background:var(--navy)}.menu-toggle{display:none}.hero{background:linear-gradient(110deg,#eef8ff,#fff 62%,#fff4d7);padding:44px 0 34px}.hero-content{max-width:1000px}.hero h1{font-size:clamp(2.5rem,5vw,4.2rem);line-height:1.02;letter-spacing:-.05em;color:var(--navy);margin:0 0 12px;font-weight:950}.hero h1 em{font-style:normal;color:var(--blue)}.hero p{font-size:1.16rem;font-weight:650;margin:0 0 20px}.search-panel{background:white;padding:13px;border-radius:20px;box-shadow:0 12px 32px #06366f1a;display:grid;grid-template-columns:1.2fr 1fr .8fr auto;align-items:center}.search-field{padding:7px 17px;border-right:1px solid var(--border)}.search-field label{display:block;font-weight:850;font-size:.86rem;color:var(--navy)}.search-field input,.search-field select{width:100%;border:0;outline:0;background:transparent;padding:5px 0;color:var(--muted);min-width:0}.category-strip{padding:24px 0;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:14px}.category-link{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-weight:800;font-size:.85rem;color:var(--navy)}.category-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--blue);color:white;font-size:1.5rem}.category-link:nth-child(4n+2) .category-icon{background:var(--yellow);color:var(--navy)}.category-link:nth-child(4n+3) .category-icon{background:var(--teal)}.category-link:nth-child(4n) .category-icon{background:var(--coral)}.content-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:30px;padding:10px 0 55px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.section-heading h2{font-size:1.6rem;color:var(--navy);margin:0;letter-spacing:-.03em}.event-grid,.post-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.event-card,.post-card{border:1px solid var(--border);border-radius:13px;overflow:hidden;box-shadow:0 3px 12px #06366f0c;background:white;display:flex;flex-direction:column}.event-thumb{height:145px;background:linear-gradient(135deg,var(--blue),var(--teal));display:grid;place-items:center;color:white;font-size:2.5rem;overflow:hidden}.event-thumb img{width:100%;height:100%;object-fit:cover}.event-body{padding:15px;display:flex;flex-direction:column;flex:1}.event-tag{display:inline-block;align-self:flex-start;padding:4px 11px;border-radius:99px;background:var(--coral);color:#fff;font-size:.75rem;font-weight:850;margin-bottom:8px}.event-card:nth-child(3n+2) .event-tag{background:var(--yellow);color:var(--navy)}.event-card:nth-child(3n) .event-tag{background:var(--teal)}.event-meta{font-size:.82rem;color:var(--muted);margin-bottom:8px}.event-body h3{font-size:1.05rem;line-height:1.25;color:var(--navy);margin:0 0 8px}.event-body p{font-size:.9rem;margin:0 0 14px}.text-link{font-weight:850;margin-top:auto}.region-panel{border-radius:14px;background:var(--pale);padding:20px}.region-panel h2{font-size:1.25rem;margin:0 0 14px;color:var(--navy)}.region-panel select{width:100%;padding:12px;border:1px solid var(--border);border-radius:10px;background:white}.region-list{columns:2;list-style:none;padding:12px 0 0;margin:0}.region-list li{padding:4px 0;font-size:.88rem}.trust-callout{margin-top:14px;background:linear-gradient(120deg,var(--navy),#0866b8);color:white;padding:22px;border-radius:14px;display:flex;align-items:center;gap:14px}.trust-callout h3{color:white;margin:0 0 4px;font-size:1.1rem}.trust-callout p{margin:0;font-size:.9rem;color:#e8f5ff}.page-content{padding:40px 0 70px;min-height:40vh}.page-content h1,.entry-title{color:var(--navy)}.site-footer{background:#082c59;color:#e8f4ff;padding:34px 0;margin-top:24px}.footer-inner{display:flex;justify-content:space-between;gap:22px;align-items:center}.site-footer a{color:white}.footer-brand{font-weight:900;font-size:1.3rem}.footer-brand span{color:var(--yellow)}.pagination{margin:28px 0}@media(max-width:1050px){.brand-logo,.custom-logo-link img{width:200px}.primary-nav ul{gap:14px}.search-panel{grid-template-columns:1fr 1fr}.search-field:nth-child(2){border-right:0}.search-panel .button{grid-column:1/-1;margin-top:8px}.category-strip{grid-template-columns:repeat(5,1fr)}.event-grid,.post-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.container{width:calc(100% - 26px)}.header-inner{min-height:75px;flex-wrap:wrap;padding:7px 0}.brand-logo,.custom-logo-link img{width:180px}.menu-toggle{display:block;border:1px solid var(--border);background:white;padding:9px 12px;border-radius:10px;color:var(--navy)}.primary-nav{display:none;order:4;width:100%;padding-bottom:12px}.primary-nav.is-open{display:block}.primary-nav ul{display:flex;flex-direction:column;gap:0}.primary-nav a{display:block;padding:9px;border-top:1px solid var(--border)}.header-actions .button{display:none}.hero{padding:32px 0 25px}.hero h1{font-size:2.55rem}.hero p{font-size:1rem}.search-panel{grid-template-columns:1fr;padding:10px}.search-field{border-right:0;border-bottom:1px solid var(--border);padding:9px}.search-panel .button{grid-column:auto}.category-strip{grid-template-columns:repeat(3,1fr);gap:18px 8px}.content-grid{grid-template-columns:1fr;gap:24px}.event-grid,.post-list{grid-template-columns:1fr}.event-thumb{height:190px}.footer-inner{align-items:flex-start;flex-direction:column}}


/* QuébecBouge 1.0.2 : sidebar native à droite des fiches événement. */
body.single-mec-events .qb-event-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:28px;align-items:start;padding:28px 0 55px;width:min(1320px,calc(100% - 36px));margin:0 auto}
body.single-mec-events .qb-event-main{min-width:0}
body.single-mec-events .qb-site-sidebar{min-width:0;padding:16px;background:#f4f9ff;border:1px solid var(--border);border-radius:12px;overflow-wrap:anywhere}
body.single-mec-events .qb-site-sidebar .widget{margin:0 0 22px}
body.single-mec-events .qb-site-sidebar .widget:last-child{margin-bottom:0}
body.single-mec-events .qb-site-sidebar .widget-title{margin:0 0 12px;color:var(--navy);font-size:1.05rem}
body.single-mec-events .qb-event-layout .main-left{min-width:0;width:auto;float:none}
body.single-mec-events .qb-event-layout .main-content,body.single-mec-events .qb-event-layout .site-content{width:100%;max-width:100%;min-width:0}
@media(max-width:900px){body.single-mec-events .qb-event-layout{grid-template-columns:minmax(0,1fr);gap:20px;width:calc(100% - 26px)}body.single-mec-events .qb-site-sidebar{width:100%}}
