/* Added projects reuse the existing grid, typography and project cards. */
.ep-projet--drive{min-width:0}
.ep-gallery-cover{position:relative;display:block;overflow:hidden;aspect-ratio:3/2;border-radius:10px;background:var(--ep-bg-alt)}
.ep-gallery-cover>img{width:100%;height:100%;object-fit:cover;object-position:center 60%;transition:transform .25s}
.ep-gallery-cover:hover>img{transform:scale(1.025)}
.ep-gallery-count{position:absolute;bottom:10px;left:10px;padding:5px 10px;background:rgba(12,29,52,.86);color:#fff;font-size:12px;font-weight:600;border-radius:99px}
.ep-gallery-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:52px;height:52px;background:#fff;color:var(--ep-accent);border-radius:50%;box-shadow:0 4px 18px #0003}
.ep-gallery-peeks{grid-auto-flow:initial;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-columns:auto}
.ep-gallery-peeks img{height:64px}
.ep-gallery-peeks span,.ep-gallery-thumbs span{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.ep-gallery-peeks span{padding:4px 2px}
.ep-gallery-stage{font-size:12px;color:var(--ep-text-muted);margin:12px 0}
.ep-gallery-open{display:inline-flex;align-items:center;gap:12px;border:0;background:transparent;padding:8px 0;color:var(--ep-accent);font:700 15px var(--ep-font-text);cursor:pointer}
.ep-gallery-open:hover{text-decoration:underline;text-underline-offset:4px}
.ep-gallery-cover:focus-visible,.ep-gallery-open:focus-visible{outline:3px solid var(--ep-accent);outline-offset:3px}
.ep-gallery-dialog{width:min(1100px,calc(100% - 40px));max-width:1100px;max-height:calc(100dvh - 40px);padding:24px;border:1px solid var(--ep-border);border-radius:20px;background:var(--ep-bg,#fff);color:var(--ep-text);box-shadow:0 24px 90px #0005;overflow:auto}
.ep-gallery-dialog::backdrop{background:rgba(7,18,35,.78);backdrop-filter:blur(5px)}
.ep-gallery-dialog button{font-family:inherit;cursor:pointer}
.ep-gallery-dialog button:focus-visible{outline:3px solid var(--ep-accent);outline-offset:2px}
.ep-gallery-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.ep-gallery-eyebrow{margin:0 0 4px;color:var(--ep-accent);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.ep-gallery-header h2{margin:0;font-size:clamp(20px,2.5vw,28px);line-height:1.2}
.ep-gallery-close,.ep-gallery-prev,.ep-gallery-next{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--ep-border);border-radius:50%;color:var(--ep-text);background:var(--ep-bg,#fff);font-size:22px}
.ep-gallery-close:hover,.ep-gallery-prev:hover,.ep-gallery-next:hover{background:var(--ep-accent-soft)}
.ep-gallery-viewer{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px}
.ep-gallery-stage-media{height:clamp(240px,53dvh,620px);min-width:0;background:#111923;border-radius:12px;overflow:hidden;display:grid;place-items:center}
.ep-gallery-stage-media img,.ep-gallery-stage-media video{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.ep-gallery-prev,.ep-gallery-next{font-size:32px}
.ep-gallery-prev:disabled,.ep-gallery-next:disabled{opacity:.3;cursor:default}
.ep-gallery-description{display:flex;align-items:start;justify-content:space-between;gap:12px;margin:12px 56px}
.ep-gallery-caption{margin:0;font-size:14px}
.ep-gallery-position{margin:0;color:var(--ep-text-muted);white-space:nowrap;font-size:12px}
.ep-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:5px 3px 10px;scrollbar-width:thin}
.ep-gallery-thumbs button{flex:0 0 100px;border:2px solid transparent;border-radius:10px;background:var(--ep-bg-alt);padding:4px;color:var(--ep-text-muted);font-size:11px}
.ep-gallery-thumbs button[aria-pressed=true]{border-color:var(--ep-accent);color:var(--ep-text);background:var(--ep-accent-soft)}
.ep-gallery-thumbs img{width:88px;height:62px;object-fit:cover;border-radius:6px;display:block;margin-bottom:4px}
.ep-gallery-error{font-size:14px;color:#a51f28;margin:10px 56px}
@media(max-width:600px){
 .ep-gallery-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:14px;border-radius:16px}
 .ep-gallery-header{margin-bottom:12px}
 .ep-gallery-close{width:40px;height:40px}
 .ep-gallery-viewer{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .ep-gallery-stage-media{grid-column:1/-1;grid-row:1;height:43dvh;min-height:200px}
 .ep-gallery-prev,.ep-gallery-next{grid-row:2;width:44px;height:38px;border-radius:10px}
 .ep-gallery-prev{justify-self:start}.ep-gallery-next{justify-self:end}
 .ep-gallery-description{margin:10px 0;gap:8px}
 .ep-gallery-caption{font-size:12px}.ep-gallery-position{font-size:11px}
 .ep-gallery-thumbs button{flex-basis:80px}.ep-gallery-thumbs img{width:68px;height:50px}
 .ep-gallery-error{margin:10px 0}
}
@media(prefers-reduced-motion:reduce){.ep-gallery-cover>img{transition:none}}
.ep-service-gallery {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  justify-self: center;
  align-self: center;
}
.ep-service-gallery .ep-gallery-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
}
.ep-service-gallery .ep-gallery-cover > img {
  position: absolute;
  inset: 0;
  transform: none;
}
.ep-service-gallery .ep-gallery-peeks button {
  min-width: 0;
  align-self: start;
}
.ep-service-gallery .ep-gallery-peeks img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ep-gallery-stage-media img{cursor:zoom-in}
.ep-gallery-stage-media.is-zoomed{display:block;overflow:auto;overscroll-behavior:contain}
.ep-gallery-stage-media.is-zoomed img{max-width:none;max-height:none;margin:auto;cursor:grab;user-select:none}
.ep-gallery-stage-media.is-zoomed img:active{cursor:grabbing}
.ep-photo-zoom{flex:none;min-height:44px;padding:6px 14px;border:1px solid #c6d0df;border-radius:8px;background:white;color:#1749af;font:inherit;font-weight:600;cursor:pointer}
.ep-photo-zoom:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.ep-gallery-description{flex-wrap:wrap;align-items:center}

.ep-gallery-header .ep-photo-zoom{margin-left:auto}.ep-gallery-header{gap:8px}.ep-photo-zoom[hidden]{display:none}.ep-gallery-stage-media.is-zoomed img{width:var(--ep-zoom-w);height:var(--ep-zoom-h)}

.ep-gallery-viewer{display:block}
.ep-gallery-dialog .ep-gallery-description{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:8px 0}
.ep-gallery-caption{overflow-wrap:anywhere}
.ep-gallery-pager{display:flex;align-items:center;justify-content:center;gap:8px}
.ep-gallery-pager .ep-gallery-position{min-width:5ch;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
.ep-gallery-pager button{width:44px;height:44px}
