.picweb-events{--pw-event-red:#b71823;--pw-event-green:#b0c627;--pw-event-stroke:#e2e5e8;--pw-event-muted:#5b626a;font-family:inherit;color:inherit;width:100%;min-width:0;container-type:inline-size}
.picweb-events *, .picweb-events *::before,.picweb-events *::after{box-sizing:border-box}
.picweb-events .picweb-event{background:#fff;border:1px solid var(--pw-event-stroke);border-radius:14px;min-width:0;box-shadow:0 6px 20px rgba(20,35,51,.045)}
.picweb-event-photo{margin:0;min-width:0;overflow:hidden;background:#f5f6f7;border-radius:10px}
.picweb-event-photo img{width:100%;height:100%;object-fit:cover;display:block}
.picweb-event-content{min-width:0}
.picweb-events h3{margin:0 0 .45em;color:inherit}
.picweb-events .picweb-event-description{margin:0;color:inherit;line-height:1.55;overflow-wrap:anywhere}
.picweb-events .picweb-event-organizer{margin:.5em 0 0;color:var(--pw-event-muted);font-size:.92em}
.picweb-event-details{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:.45rem}
.picweb-event-details time{font-weight:650;color:var(--pw-event-red)}
.picweb-event-tarif{font-weight:650;color:#384b25;background:#f5f8ee;border-radius:100px;padding:.18em .65em}
.picweb-event-calendar{position:relative;max-width:100%}
.picweb-event-calendar summary{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:44px;padding:.65em 1.05em;border-radius:100px;background:var(--pw-event-red);color:#fff;font-weight:650;cursor:pointer;list-style:none;text-align:center;line-height:1.25;white-space:normal}
.picweb-event-calendar summary::-webkit-details-marker{display:none}
.picweb-event-calendar summary::marker{content:''}
.picweb-event-calendar summary .picweb-event-calendar-icon{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.picweb-event-calendar-chevron{display:block;width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-left:.12em;transition:transform .15s ease}
.picweb-event-calendar[open] .picweb-event-calendar-chevron{transform:translateY(2px) rotate(225deg)}
.picweb-event-calendar summary:focus-visible,.picweb-events-show-all:focus-visible{outline:3px solid var(--pw-event-green);outline-offset:3px}
.picweb-event-calendar-links{display:grid;gap:.15rem;padding:.45rem;margin-top:.3rem;border:1px solid var(--pw-event-stroke);border-radius:10px;background:#fff;box-shadow:0 8px 18px rgba(0,0,0,.05)}
.picweb-event-calendar-links a{display:block;color:var(--pw-event-red);text-decoration:none;padding:.35rem .45rem;border-radius:5px;line-height:1.3}
.picweb-event-calendar-links a:hover,.picweb-event-calendar-links a:focus-visible{background:#f9f2f2;text-decoration:underline}
.picweb-events--upcoming{display:grid;gap:1rem}
.picweb-events--upcoming .picweb-event--list{display:grid;grid-template-columns:125px minmax(0,1fr) minmax(170px,max-content);gap:1.2rem;padding:1rem;align-items:center}
.picweb-event--list .picweb-event-photo{height:110px}
.picweb-event--list .picweb-event-details{justify-self:end;align-items:flex-end;text-align:right}
.picweb-event--list .picweb-event-calendar-links{text-align:left}
.picweb-events--compact{display:grid;gap:.8rem}
.picweb-events--compact .picweb-events-heading{margin:0 0 .35em}
.picweb-event--compact{display:grid;grid-template-columns:74px minmax(0,1fr);gap:.8rem;padding:.75rem}
.picweb-event--compact .picweb-event-photo{width:74px;height:74px;grid-row:span 2}
.picweb-event--compact .picweb-event-content h3{margin:0 0 .25em}
.picweb-event--compact .picweb-event-description{font-size:.93em}
.picweb-event--compact .picweb-event-details{grid-column:2;align-items:flex-start}
.picweb-event--compact .picweb-event-calendar summary{font-size:.92em;padding:.5em .7em;min-height:36px}
.picweb-event--compact .picweb-event-details time{font-size:.92em}
.picweb-events--past .picweb-events-heading{margin:0 0 .8em}
.picweb-events-past-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1.1rem}
.picweb-events-past-item{min-width:0}
.picweb-events-past-item[hidden]{display:none!important}
.picweb-event--past{height:100%;overflow:hidden;display:flex;flex-direction:column}
.picweb-event--past .picweb-event-photo{width:100%;aspect-ratio:16/9;border-radius:0}
.picweb-event--past .picweb-event-content{padding:1rem 1rem .25rem}
.picweb-event--past .picweb-event-details{padding:0 1rem 1.1rem;margin-top:auto}
.picweb-events-show-all{margin:1.2rem auto 0;display:block;padding:.75em 1.1em;border:1px solid var(--pw-event-red);color:var(--pw-event-red);background:#fff;border-radius:100px;font:inherit;font-weight:650;cursor:pointer}
.picweb-events-show-all:hover{background:#fff6f6}
.picweb-events-empty{margin:0;padding:1rem;border:1px dashed var(--pw-event-stroke);border-radius:10px}
@container (max-width:740px){
 .picweb-events--upcoming .picweb-event--list{grid-template-columns:88px minmax(0,1fr);gap:.8rem;padding:.8rem;align-items:start}
 .picweb-event--list .picweb-event-photo{height:88px}
 .picweb-event--list .picweb-event-details{grid-column:1 / -1;justify-self:stretch;align-items:flex-start;text-align:left;flex-direction:row;gap:.6rem 1rem;flex-wrap:wrap}
 .picweb-event--list .picweb-event-calendar{flex-basis:100%}
}
@container (max-width:360px){
 .picweb-event--compact{grid-template-columns:58px minmax(0,1fr)}
 .picweb-event--compact .picweb-event-photo{width:58px;height:66px}
 .picweb-events-past-grid{grid-template-columns:1fr}
}

.picweb-admin-event-diagnostic{padding:1rem 1.1rem;background:#f5f8ee;border-left:3px solid #b0c627;border-radius:7px;line-height:1.6}.picweb-admin-event-diagnostic p{margin:.4em 0 0}

/* Agrandissement des images des événements à venir */
.picweb-event-photo-link{position:relative;display:block;width:100%;height:100%;overflow:hidden;cursor:zoom-in;color:#fff;text-decoration:none}
.picweb-event-photo-link img{transition:transform .22s ease}
@media (hover:hover){.picweb-event-photo-link:hover img{transform:scale(1.055)}}
.picweb-event-photo-link:focus-visible{outline:3px solid var(--pw-event-green);outline-offset:-3px}
.picweb-event-photo-zoom{position:absolute;right:7px;bottom:7px;width:28px;height:28px;display:grid;place-items:center;background:rgba(20,30,38,.78);border-radius:8px;pointer-events:none;color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.picweb-event-photo-zoom svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.picweb-event-lightbox{width:min(94vw,1100px);max-width:94vw;max-height:94vh;padding:0;border:0;border-radius:13px;background:#fff;color:#252525;box-shadow:0 20px 70px rgba(0,0,0,.35);overflow:auto}
.picweb-event-lightbox::backdrop{background:rgba(10,18,24,.82)}
.picweb-event-lightbox-inner{display:flex;flex-direction:column;align-items:center;padding:clamp(12px,2.4vw,25px);gap:10px;position:relative}
.picweb-event-lightbox-close{align-self:flex-end;background:#b71823!important;border:0!important;color:#fff!important;padding:8px 14px!important;font:inherit;font-weight:600;line-height:1.4;border-radius:30px;cursor:pointer;min-height:40px}
.picweb-event-lightbox-close:focus-visible{outline:3px solid #b0c627;outline-offset:3px}
.picweb-event-lightbox-image{display:block;width:auto;max-width:100%;height:auto;max-height:calc(94vh - 125px);object-fit:contain}
.picweb-event-lightbox-title{margin:0;text-align:center;font:inherit;font-weight:600;overflow-wrap:anywhere}
@media(max-width:600px){.picweb-event-lightbox{width:98vw;max-width:98vw;max-height:94dvh}.picweb-event-lightbox-inner{padding:10px}.picweb-event-lightbox-image{max-height:calc(94dvh - 115px)}}
@media(prefers-reduced-motion:reduce){.picweb-event-photo-link img{transition:none}}

.picweb-event-lightbox-inner{align-items:stretch;gap:12px}
.picweb-event-lightbox-image{align-self:center;max-height:min(65vh,700px)}
.picweb-event-lightbox-title{font-family:inherit;font-weight:700;font-size:clamp(1.25rem,2.1vw,1.8rem);line-height:1.3;text-align:left;margin:6px 0 0!important;color:#b71823}
.picweb-event-lightbox-description{font:inherit;line-height:1.65;text-align:left;color:inherit;overflow-wrap:anywhere;max-width:100%;padding-bottom:.5rem}
.picweb-event-lightbox-description[hidden]{display:none}
.picweb-event-lightbox-description p{margin:0 0 .75rem!important}
.picweb-event-lightbox-description p:last-child{margin-bottom:0!important}
.picweb-event-lightbox-description ul,.picweb-event-lightbox-description ol{padding-left:1.35rem;margin:.5rem 0 .9rem}
.picweb-event-lightbox-description a{color:#b71823;text-decoration:underline}
@media (max-width:600px){.picweb-event-lightbox-image{max-height:48dvh}.picweb-event-lightbox-title{font-size:1.25rem}}

/* Picweb 1.1 — événements des communes voisines et galeries */
.picweb-event-commune{color:#526a20;font-size:.92em;line-height:1.4;margin:.35em 0!important;font-weight:650}
.picweb-event-photo-link .picweb-gallery-count{bottom:8px;left:8px;right:auto}
