:root{--ink:#2e5c40;--blue:#468d61;--lime:#e3eddb;--paper:#fffaf1;--line:#dce8d1;--muted:#587663;--sky:#e3eddb;--cream:#fff4de;--gold:#f4ce71}
body{background:var(--paper);color:var(--ink)}
header{background:var(--ink);border-color:#76a87a}
header .button.light{background:var(--sky);color:var(--ink)}
header nav a.active{background:var(--sky);color:var(--ink)}
.button.primary{background:var(--ink);color:#fffaf1}
.button.primary:hover{background:#468d61}
.action-strip{background:#edf3e8;color:var(--ink);border-color:#d6e4ca}
.action-strip .agenda-dot{background:#e4b74f;box-shadow:0 0 0 4px #f4ce7130}
#jouer.game-section{padding-top:132px;padding-bottom:66px;background:var(--ink);color:#fafcf8}
#jouer.game-section::before{background:radial-gradient(ellipse at 12% 8%,#6eb77449,transparent 65%)}
#jouer .game-title{margin-top:0;margin-bottom:44px}
#jouer .game-title h2{margin-top:0}
#jouer .game-title h2 em{color:var(--sky)}
#jouer .game-title p{color:#ecf2e6}
#jouer .plain,#jouer .game-footnote{color:#ecf2e6}
#jouer .origin-copy .plain,#jouer .game-intro-card .plain{color:var(--ink)}
#jouer .origin-copy .button.primary,#jouer #real-life{background:var(--ink);color:#fffaf1}
#jouer .origin-copy .button.primary:hover,#jouer #real-life:hover{background:#468d61}
.join-section{background:#336948;color:#fafcf8}
.join-section h2 em{color:var(--sky)}
.mobile-join{background:var(--ink);border-color:#b7d0a2}
.mobile-join b{background:var(--sky);color:var(--ink)}
body.game-in-view .mobile-join{visibility:hidden;opacity:0;pointer-events:none;transform:translateY(100%)}
@media(max-width:760px){
 #jouer.game-section{padding-top:108px;padding-bottom:42px}
 #jouer .game-title{margin:0 4px 34px}
 #jouer .game-title h2{font-size:clamp(34px,9.4vw,42px);line-height:1.12}
 #jouer .game-title p{margin-top:26px;line-height:1.8}
}
/* CTA arrows are flex items, so short labels never overlap their icon. */
.button,.text-link{gap:12px;padding-right:22px}
.button::after,.text-link::after{position:static;inset:auto;flex:0 0 15px;margin:0;transform:none}
.button:hover::after,.button:focus-visible::after,.text-link:hover::after,.text-link:focus-visible::after,.news-card:hover .text-link::after{transform:translate(2px,-2px)}
header>.button{padding:12px 20px;gap:10px;white-space:nowrap;flex:none}
.news-section .section-heading{flex-wrap:wrap;align-items:center;gap:22px}
.news-section .section-heading>.text-link{display:inline-flex;width:fit-content;max-width:100%;flex:0 0 auto;white-space:nowrap;padding:10px 18px;gap:10px;font-size:13px;line-height:1.4;min-height:44px;border:1px solid #bfd2af;border-radius:999px;margin:0}
.form-slot>.form-data-notice{padding:16px 20px 18px;margin:0;border-top:1px solid #e4eddd;background:#f9fbf8}
.site-footer .footer-main{display:grid;grid-template-columns:170px minmax(180px,1fr) auto;gap:32px;align-items:center;padding:46px 0 34px}
.site-footer .footer-brand{width:160px;height:64px;border-radius:4px;background:transparent}
.site-footer .footer-main p{font-size:14px;line-height:1.7;margin:0}
.site-footer .footer-municipal{font-size:13px;white-space:nowrap;padding:9px 0;gap:12px;border:0;border-bottom:1px solid #a6c5a8;border-radius:0;background:transparent;box-shadow:none}
.site-footer .footer-bottom{display:grid;grid-template-columns:1fr auto;align-items:start;gap:32px;padding:25px 0 34px;border-top:1px solid #d9e4d0}
.site-footer .footer-meta{display:grid;gap:8px;font-size:12px;line-height:1.6}
.site-footer .site-credit{font-size:11px;color:#6e8c70}
.site-footer .footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 24px;font-size:12px;line-height:1.6}
.site-footer .footer-links a,.site-footer .footer-links button{display:inline-flex;align-items:center;min-height:32px;padding:0;font-size:12px;line-height:1.6;text-align:left}
.site-footer .footer-links a:hover,.site-footer .footer-links button:hover{text-decoration:underline;text-underline-offset:4px}
#back-to-top{position:fixed;z-index:25;right:24px;bottom:24px;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 15px;border:1px solid #c7d6ba;background:#fffaf1ed;box-shadow:0 3px 15px #2e5c4012;border-radius:999px;color:#2e5c40;font-size:12px;line-height:1}
#back-to-top[hidden]{display:none!important}
#back-to-top svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#back-to-top:hover{background:#ebf2e5;border-color:#86b68a}
@media(max-width:760px){
 header>.button{padding:10px 14px;gap:8px;font-size:12px;min-height:44px}
 header>.button::after{width:12px;height:12px;flex-basis:12px}
 .news-section .section-heading{display:flex;align-items:flex-start;gap:24px}
 .news-section .section-heading h2{flex:1 1 220px;margin-bottom:0}
 .news-section .section-heading>.text-link{font-size:12px;min-height:42px;padding:10px 16px}
 .site-footer .footer-main{grid-template-columns:1fr;gap:23px;padding:36px 0 28px}
 .site-footer .footer-brand{width:150px;height:60px}
 .site-footer .footer-main p{font-size:14px}
 .site-footer .footer-municipal{width:fit-content;font-size:13px;justify-content:flex-start}
 .site-footer .footer-bottom{grid-template-columns:1fr;grid-template-areas:'links' 'meta';gap:25px;padding:24px 0 32px}
 .site-footer .footer-links{grid-area:links;display:grid;justify-content:start;gap:8px}
 .site-footer .footer-links a,.site-footer .footer-links button{min-height:34px;font-size:13px}
 .site-footer .footer-meta{grid-area:meta;gap:6px;padding-top:20px;border-top:1px solid #e6ece0}
 #back-to-top{right:12px;bottom:86px;gap:0;min-height:34px;width:34px;padding:7px;box-shadow:none;background:#fffaf1df}
 #back-to-top span{display:none}
 #back-to-top svg{width:18px;height:18px}
 body.game-in-view #back-to-top{bottom:16px}
}
@media(max-width:360px){header>.button{font-size:11px;padding:10px 12px;gap:6px}}
#form-slot>.form-data-notice{max-width:none;width:100%}
body.footer-in-view #back-to-top{position:static;display:flex;width:fit-content;margin:0 32px 28px auto}
@media(max-width:760px){body.footer-in-view #back-to-top{position:fixed;right:12px;bottom:86px;width:34px;margin:0}}
/* Keep footer navigation independent from the header's mobile menu rules. */
.site-footer .footer-links{position:static;inset:auto;transform:none;opacity:1;visibility:visible;pointer-events:auto;background:transparent;box-shadow:none;border:0;border-radius:0;padding:0;margin:0;width:auto;max-width:none;height:auto;min-height:0;z-index:auto}
.site-footer .footer-links a::after{content:none}

#esprit .founder .portrait-source{font-size:11px;line-height:1.5;margin:14px 0 16px;color:#69866b}
#esprit .founder .portrait-source a{text-decoration:underline;text-underline-offset:3px}

.site-footer .footer-brand img{filter:brightness(0) saturate(100%) invert(18%) sepia(42%) saturate(1800%) hue-rotate(180deg)}

/* Une seule teinte pour l'encre du logo, le détourage conserve sa transparence. */
.site-header .brand img { filter: brightness(0) invert(1); }
