/*
Theme Name: Territoire
Description: Un portail civique lisible pour les ressources et les acteurs du territoire.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.2
Author: Projet plateforme territoriale
License: GPL-2.0-or-later
Text Domain: territoire
*/
:root{--territoire-ink:#163b38;--territoire-blue:#164d68;--territoire-muted:#526662;--territoire-green:#185849;--territoire-surface:#eff5f2;--territoire-line:#cfddd6;--territoire-yellow:#f5e89b;--territoire-width:1240px}
*{box-sizing:border-box}html{font-size:100%;scroll-behavior:smooth;scroll-padding-top:2rem}body{margin:0;color:var(--territoire-ink);background:#fff;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:1rem;line-height:1.6;-webkit-text-size-adjust:100%}a{color:var(--territoire-blue);text-decoration-thickness:.08em;text-underline-offset:.2em}a:hover{text-decoration-thickness:.14em}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}:focus-visible{outline:3px solid #176794;outline-offset:4px}h1,h2,h3,h4{line-height:1.16;letter-spacing:-.025em;text-wrap:balance;color:var(--territoire-ink)}h1{font-size:clamp(2.25rem,5vw,4.5rem);font-weight:750}h2{font-size:clamp(1.6rem,3vw,2.5rem);font-weight:720}h3{font-size:1.3rem}p{margin:0 0 1.1rem}img{max-width:100%;height:auto}main{min-height:50vh}.territoire-shell{width:min(calc(100% - 3rem),var(--territoire-width));margin-inline:auto}.territoire-skip{position:fixed;top:.6rem;left:1rem;z-index:10000;padding:.8rem 1.2rem;background:var(--territoire-yellow);color:#143b32;transform:translateY(-180%);font-weight:700}.territoire-skip:focus{transform:translateY(0)}.territoire-header{border-bottom:1px solid var(--territoire-line);background:#fff}.territoire-header-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;min-height:108px;padding-block:1.25rem}.territoire-brand{display:flex;align-items:center;gap:.9rem;color:var(--territoire-ink);text-decoration:none;max-width:27rem}.territoire-symbol{position:relative;display:block;flex:0 0 44px;width:44px;height:44px;border-radius:50% 50% 5px 50%;background:var(--territoire-green)}.territoire-symbol:after{content:"";position:absolute;right:7px;top:7px;width:13px;height:13px;background:var(--territoire-yellow);border-radius:50%}.territoire-brand-title{display:block;font-weight:780;font-size:1.15rem;line-height:1.25;letter-spacing:-.025em}.territoire-brand-subtitle{display:block;margin-top:.25rem;font-size:.875rem;color:var(--territoire-muted);line-height:1.4}.territoire-header .custom-logo-link{display:block;max-width:5rem;flex-shrink:0}.territoire-header .custom-logo{max-height:60px;width:auto}.territoire-nav{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}.territoire-nav a{font-size:1rem;font-weight:620;text-decoration:none;white-space:nowrap}.territoire-nav a:hover,.territoire-nav a[aria-current]{text-decoration:underline}.territoire-nav .territoire-space-link{padding:.65rem 1rem;border:1px solid var(--territoire-green);border-radius:6px;color:var(--territoire-green)}.territoire-account{font-size:.875rem!important;font-weight:500!important;color:var(--territoire-muted)}.territoire-eyebrow{margin:0 0 1rem;text-transform:uppercase;letter-spacing:.12em;font-size:.875rem;font-weight:750;color:var(--territoire-green)}.territoire-hero{position:relative;overflow:hidden;background:var(--territoire-surface);border-bottom:1px solid var(--territoire-line)}.territoire-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:center;gap:5rem;padding-block:4.5rem 5rem}.territoire-hero h1{max-width:800px;margin:0 0 1.6rem;line-height:1.08}.territoire-hero h1 span{color:var(--territoire-green)}.territoire-hero-lead{max-width:42rem;font-size:1.2rem;color:#3a5751;line-height:1.65}.territoire-hero-actions{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin-top:1.7rem}.territoire-button{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:.75rem 1.2rem;background:var(--territoire-green);border:1px solid var(--territoire-green);border-radius:6px;color:#fff;text-decoration:none;font-weight:700}.territoire-button:hover{background:#103f34;color:#fff}.territoire-hero-aside{position:relative;padding:2rem;border-radius:12px;background:var(--territoire-yellow);border:1px solid #ddd182;box-shadow:0 14px 0 -8px #dce8df}.territoire-hero-aside h2{font-size:1.5rem;margin:0 0 1rem;line-height:1.25}.territoire-hero-aside p{font-size:1rem;line-height:1.65}.territoire-hero-aside a{display:inline-block;margin-top:.25rem;font-weight:750;color:#174c40}.territoire-section{padding-block:4rem}.territoire-section-header{max-width:48rem;margin-bottom:2rem}.territoire-section-header h2{margin:0 0 1rem}.territoire-section-header p{font-size:1.1rem;color:var(--territoire-muted)}.territoire-entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}.territoire-entry{position:relative;display:flex;flex-direction:column;gap:.5rem;padding:1.6rem 1.7rem;min-height:190px;border:1px solid var(--territoire-line);border-top:4px solid #2c7060;border-radius:8px;text-decoration:none;color:var(--territoire-ink);transition:background .15s,border-color .15s}.territoire-entry:nth-child(2n){border-top-color:var(--territoire-blue)}.territoire-entry:hover{background:var(--territoire-surface);border-color:#85ab9d}.territoire-entry h3{margin:.25rem 0;font-size:1.35rem}.territoire-entry p{margin:0;color:var(--territoire-muted);line-height:1.6}.territoire-entry-label{font-size:.875rem;color:var(--territoire-green);font-weight:650}.territoire-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-top:1.2rem}.territoire-shortcut{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#edf3f7;border:1px solid #d1e0e7;border-radius:8px;padding:1.4rem 1.7rem;color:var(--territoire-blue);text-decoration:none}.territoire-shortcut strong{font-size:1.1rem}.territoire-shortcut span{font-size:1rem}.territoire-shortcut:hover{background:#e2edf2}.territoire-directory-section{border-top:1px solid var(--territoire-line);background:#f8faf9}.territoire-community{padding-block:3rem;border-top:1px solid var(--territoire-line);background:#fff}.territoire-community-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem}.territoire-community h2{font-size:1.8rem;margin:0 0 .8rem}.territoire-community p{max-width:45rem;margin:0;color:var(--territoire-muted)}.territoire-community .territoire-button{flex-shrink:0}.territoire-footer{background:#143d35;color:#e6f0eb;padding-block:2.7rem}.territoire-footer-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr);gap:4rem}.territoire-footer-title{font-size:1.2rem;font-weight:750;margin-bottom:.7rem}.territoire-footer p{max-width:43rem;color:#d0dfd7}.territoire-footer a{color:#fff}.territoire-footer nav{display:flex;align-items:flex-start;gap:.8rem 1.5rem;flex-wrap:wrap;align-content:flex-start}.territoire-footer-bottom{border-top:1px solid #48685e;margin-top:1.8rem;padding-top:1.4rem;display:flex;flex-wrap:wrap;gap:1rem 2rem;font-size:.875rem}.territoire-footer-bottom p{margin:0}.territoire-page{padding-block:3rem 4.5rem}.territoire-breadcrumb{margin-bottom:1.7rem;font-size:.95rem}.territoire-page-head{margin-bottom:2.4rem}.territoire-page-head h1{margin:0 0 1rem;font-size:clamp(2.3rem,4vw,3.5rem)}.territoire-content>p,.territoire-content>ul,.territoire-content>ol{max-width:76ch}.territoire-content h2{margin-top:2.2rem}.territoire-post-list{display:grid;gap:1.5rem}.territoire-post{padding:1.5rem;border:1px solid var(--territoire-line);border-radius:8px}.territoire-post h2{margin:0 0 .7rem;font-size:1.5rem}.territoire-error{max-width:700px;padding-block:5rem}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}.alignwide{width:100%}.wp-caption{max-width:100%}.wp-caption-text{font-size:.875rem}.sticky{border-color:var(--territoire-green)}
@media(max-width:1100px){.territoire-header-inner{align-items:flex-start;gap:1.5rem}.territoire-nav{justify-content:flex-end;gap:.8rem 1rem}.territoire-hero-inner{gap:2rem;grid-template-columns:minmax(0,1fr) 280px}.territoire-brand-subtitle{max-width:190px}.territoire-hero-aside{padding:1.5rem}}
@media(max-width:760px){.territoire-shell{width:min(calc(100% - 2rem),var(--territoire-width))}.territoire-header-inner{display:block;padding-block:1rem}.territoire-brand{max-width:none}.territoire-nav{justify-content:flex-start;gap:.7rem 1.2rem;margin-top:1.1rem}.territoire-nav a{font-size:.95rem}.territoire-brand-subtitle{max-width:none}.territoire-hero-inner{grid-template-columns:1fr;padding-block:3rem;gap:2rem}.territoire-hero h1{font-size:clamp(2.5rem,8vw,3.7rem)}.territoire-hero-aside{max-width:none}.territoire-entries{grid-template-columns:repeat(2,minmax(0,1fr))}.territoire-section{padding-block:2.7rem}.territoire-community-inner{display:block}.territoire-community .territoire-button{margin-top:1.5rem}.territoire-footer-inner{grid-template-columns:1fr;gap:1.6rem}.territoire-shortcut{display:block}.territoire-shortcut strong,.territoire-shortcut span{display:block}.territoire-shortcut span{margin-top:.3rem}}
@media(max-width:480px){.territoire-entries,.territoire-shortcuts{grid-template-columns:1fr}.territoire-entry{min-height:0;padding:1.4rem}.territoire-nav{gap:.65rem 1rem}.territoire-nav .territoire-space-link{padding:.4rem .7rem}.territoire-account{width:100%}.territoire-hero-actions{align-items:flex-start;flex-direction:column}.territoire-section-header p{font-size:1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.territoire-header nav,.territoire-community,.territoire-footer nav,.territoire-hero-actions{display:none}.territoire-shell{width:100%}.territoire-hero{background:white}.territoire-footer{background:white;color:#143d35}.territoire-footer p{color:#143d35}a{color:inherit}.territoire-hero-inner{padding-block:1rem}.territoire-entry{break-inside:avoid}}
