/* Contributions, profils et révision : composants communs au thème Heppell. */
.community-nav{display:flex;flex-wrap:wrap;gap:.5rem .8rem;padding:0 0 1.2rem;border-bottom:1px solid var(--line);margin-bottom:.4rem}
.community-nav a{font-size:.9rem;font-weight:650;padding:.55rem .8rem;border-radius:.4rem;min-height:44px;display:inline-flex;align-items:center}
.community-nav a:hover,.community-nav a:focus-visible{background:#e5eadf}
.community-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(16rem,1fr);gap:1.5rem;align-items:start}
.community-layout>div,.community-sidebar{display:grid;gap:1.5rem;min-width:0}
.community-sidebar{position:sticky;top:1.5rem}
.community-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.community-field-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:1rem;align-items:end}
.community-field{min-width:0;margin-bottom:.65rem}.community-field textarea{resize:vertical}
.community-visibility{font-size:.8rem!important;color:var(--body);min-width:0}
.community-visibility select{font-size:.85rem!important}
.community-profile-photo{border-block:1px solid var(--line);padding:1.25rem 0;margin-block:1.5rem}
.community-avatar{width:100px;height:100px;object-fit:cover;border-radius:50%;border:4px solid #e4e9db}
.community-avatar-large{width:160px;height:160px;margin:0 auto 2rem;display:block}
.community-check{display:flex!important;align-items:flex-start;gap:.65rem;line-height:1.6;font-weight:500!important;margin-block:1.25rem!important}
.community-check input{flex-shrink:0;width:20px;height:20px;margin-top:.2rem;accent-color:var(--ink)}
.community-values{display:grid;gap:1rem;margin-block:1rem}
.community-values>div{padding-bottom:1rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.community-values dt{font-size:.8rem;text-transform:uppercase;letter-spacing:.07em;color:var(--body);font-weight:650}
.community-values dd{margin:.45rem 0 0;white-space:pre-line;line-height:1.6}
.community-values dd a{overflow-wrap:anywhere;text-decoration:underline}
.community-details{margin-top:1rem;padding-block:.8rem;border-top:1px solid var(--line)}
.community-details summary{cursor:pointer;min-height:44px;align-content:center;font-weight:650;line-height:1.5}
.community-details[open]>summary{margin-bottom:1rem}
.community-danger{border-color:#d4b5a7}
.community-danger .button-danger{background:#8d3f30;border-color:#8d3f30}
.community-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;align-items:start}
.community-comparison.community-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.community-comparison .member-panel{padding:clamp(1.1rem,2vw,1.75rem)}
.community-comparison h2{font-size:1.6rem}
.community-after{border-top:4px solid #516d51}
.community-changed{background:#fff1d2;border-left:3px solid #ae712c;padding:.85rem!important;border-radius:.3rem}
.community-changed dt span{display:inline-block;background:#8c5c27;color:white;border-radius:.2rem;font-size:.65rem;padding:.15rem .4rem;margin-left:.4rem}
.community-preview,.community-photo img{width:100%;max-height:22rem;object-fit:contain;border-radius:.45rem;background:#e8e6db}
.community-photo{margin:1rem 0;padding:0}
.community-photo figcaption{font-size:.9rem;line-height:1.6;margin-top:.6rem}
.community-photo figcaption strong{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}
.community-decision{align-items:stretch!important;flex-direction:column}
.community-decision button{width:100%;white-space:normal;line-height:1.45}
.community-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.community-stat{padding:1.4rem;border:1px solid var(--line);border-radius:.7rem;background:var(--page)}
.community-stat strong{display:block;font-family:Georgia,serif;font-size:2.6rem;color:var(--ink)}
.community-stat span{display:block;font-size:.9rem;margin-top:.3rem}
.community-list{display:grid;gap:0;border:1px solid var(--line);border-radius:.8rem;overflow:hidden;background:var(--page)}
.community-list-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.5rem;border-bottom:1px solid var(--line);min-width:0}
.community-list-row:last-child{border-bottom:0}
.community-list-row>div{min-width:0}
.community-list-row h3{font-size:1.3rem;margin:.35rem 0 .6rem;line-height:1.35;overflow-wrap:anywhere}
.community-list-row p{font-size:.9rem}
.community-list-row>div:last-child{flex-shrink:0;display:grid;justify-items:end;gap:.7rem}
.community-list-row h3 a:hover{text-decoration:underline}
.community-follow{font-size:.85rem;font-weight:650;min-height:32px;display:flex;align-items:center}
.community-pager{display:flex;align-items:center;justify-content:center;gap:1.5rem;flex-wrap:wrap;margin-top:1.5rem}
.community-filters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:end;max-width:none!important}
.community-filters .community-field{margin:0}
.community-filters button{min-height:48px}
.community-timeline{list-style:none;padding:0;display:grid;gap:1.4rem}
.community-timeline li{padding-left:1.2rem;border-left:3px solid #bdc9af}
.community-timeline span{display:block;color:var(--body);font-size:.85rem;margin-top:.4rem}
.community-timeline p{margin-top:.6rem}
.community-upload{border:1px solid var(--line);padding:1.2rem;margin-block:1.5rem;border-radius:.5rem;min-width:0}
.community-upload legend{font-family:Georgia,serif;font-size:1.2rem;padding-inline:.5rem}
.community-archive-body{padding-block:clamp(2rem,5vw,4.5rem)}
.community-address-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.community-place{background:var(--page);border:1px solid var(--line);border-radius:.75rem;overflow:hidden;display:flex;flex-direction:column}
.community-place-image{position:relative;aspect-ratio:4/3;background:#e9e7dc;display:block;overflow:hidden}
.community-place-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.community-place-image:hover img{transform:scale(1.025)}
.community-photo-count{position:absolute;right:.8rem;bottom:.8rem;background:#fffdf3ed;border-radius:2rem;padding:.35rem .7rem;font-size:.75rem;font-weight:650}
.community-empty-photo{display:grid;place-content:center;height:100%;padding:2rem;text-align:center;font-family:Georgia,serif;font-size:1.5rem}
.community-place-copy{padding:1.5rem;display:flex;flex-direction:column;flex:1;gap:.6rem}
.community-place-copy h2{font-size:1.5rem;line-height:1.3;letter-spacing:-.025em}
.community-place-link{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:1rem;margin-top:auto;font-size:.85rem;font-weight:650;min-height:44px;align-items:center}
.community-credit{font-size:.8rem;color:var(--body);line-height:1.6}
.community-credit a{text-decoration:underline;text-underline-offset:.2em}
.community-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;align-items:start}
.community-archive-photo{padding:.6rem;background:var(--page);border:1px solid var(--line);border-radius:.8rem;scroll-margin-top:2rem;min-width:0}
.community-archive-photo>a{display:block;position:relative;border-radius:.4rem;overflow:hidden;background:#ede9df}
.community-archive-photo img{width:100%;max-height:32rem;object-fit:contain}
.community-archive-photo figcaption{padding:1.2rem .8rem;line-height:1.6}
.community-caption{margin-bottom:.8rem;white-space:pre-line}
.community-photo-actions{display:flex;gap:.4rem 1rem;flex-wrap:wrap;border-top:1px solid var(--line);padding:.5rem .8rem;font-size:.8rem;font-weight:650}
.community-photo-actions a{min-height:44px;display:inline-flex;align-items:center}
.community-photo-actions a:hover{text-decoration:underline}
.lightbox-contribute{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;margin:1rem}
.lightbox-contribute a{padding:.8rem 1rem;color:#fff;border:1px solid #ffffff75;border-radius:.4rem;font-size:.9rem}
.lightbox-contribute[hidden]{display:none}
.community-public-profile{max-width:48rem;padding-block:3rem}
.member-badge-withdrawn{background:#ebe9e3;color:#555}
@media(max-width:1000px){.community-comparison{grid-template-columns:repeat(2,minmax(0,1fr))}.community-comparison>.community-after{grid-column:1/-1}.community-address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.community-layout{grid-template-columns:1fr}.community-sidebar{position:static}.community-field-row{grid-template-columns:1fr;gap:0;border-bottom:1px solid var(--line);padding-block:.5rem 1rem}.community-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-comparison,.community-comparison.community-two{grid-template-columns:1fr}.community-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.community-photo-grid{grid-template-columns:1fr}.community-nav{gap:.2rem}.community-nav a{padding:.5rem;font-size:.8rem}.community-list-row{align-items:flex-start}.community-profile-photo{margin-block:1rem}}
@media(max-width:500px){.community-address-grid,.community-fields{grid-template-columns:1fr}.community-list-row{flex-direction:column;gap:.75rem;padding:1.2rem}.community-list-row>div:last-child{width:100%;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.community-filters{grid-template-columns:1fr}.community-stat{padding:1.1rem}.community-stat strong{font-size:2.2rem}.community-place-copy h2{font-size:1.45rem}.community-pager{gap:.8rem}.community-photo-actions{gap:.25rem .8rem}}
@media(prefers-reduced-motion:reduce){.community-place-image img{transition:none}}
