/* Examples beside the hero, as a slideshow (public pages).
   Markup: templates/v2/partials/public_hero_slideshow.html
   Behaviour: static/v2/js/public_slideshow.js adds .is-enhanced; without it
   every example is simply shown below the previous one. */

.eb-show__bar {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.eb-show.is-enhanced .eb-show__bar { display: flex; }
.eb-show__tabs {
    /* Every tab stays visible: six tabs in two even rows of three beside the
       toggle (three rows of two on a phone), never scrolled out of sight. */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 1 auto;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.3rem;
    border-radius: 1.3rem;
    background: rgba(11, 28, 63, 0.07);
}
@media (max-width: 575.98px) {
    .eb-show__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.eb-show__tab {
    min-width: 0;
    padding: 0.4rem 0.45rem;
    line-height: 1.2;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--eb-navy, #0b1c3f);
    font-size: 0.85rem;
    font-weight: 600;
    /* A long label (Étude de marché) wraps inside its cell rather than being cut off. */
    overflow-wrap: anywhere;
}
.eb-show__tab:hover:not(.active) { background: rgba(11, 28, 63, 0.07); }
.eb-show__tab.active { background: var(--eb-navy, #0b1c3f); color: #fff; }
.eb-show__toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(11, 28, 63, 0.25);
    border-radius: 50%;
    background: transparent;
    color: var(--eb-navy, #0b1c3f);
}
.eb-show__toggle:hover { background: rgba(11, 28, 63, 0.07); }
.eb-show__tab:focus-visible,
.eb-show__toggle:focus-visible,
.eb-show__shot:focus-visible {
    outline: 3px solid var(--eb-amber, #c8913a);
    outline-offset: 2px;
}

/* ── Slides ── */
.eb-show:not(.is-enhanced) .eb-show__slide + .eb-show__slide { margin-top: 2.5rem; }
.eb-show.is-enhanced .eb-show__slide { display: none; }
.eb-show.is-enhanced .eb-show__slide.is-active { display: block; }
@media (min-width: 992px) {
    /* All slides share one cell, so the page below never moves when the slide changes. */
    .eb-show.is-enhanced .eb-show__slides { display: grid; }
    .eb-show.is-enhanced .eb-show__slide {
        display: block;
        grid-area: 1 / 1;
        min-width: 0;
        visibility: hidden;
        opacity: 0;
        transition: opacity 450ms ease, visibility 0s linear 450ms;
    }
    .eb-show.is-enhanced .eb-show__slide.is-active {
        visibility: visible;
        opacity: 1;
        transition: opacity 450ms ease;
    }
}
@media (prefers-reduced-motion: reduce) {
    .eb-show.is-enhanced .eb-show__slide,
    .eb-show.is-enhanced .eb-show__slide.is-active { transition: none; }
}

/* A crop of a real capture; the link opens the full capture. */
.eb-show__shot {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(11, 28, 63, 0.12);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 50px rgba(11, 28, 63, 0.16);
}
.eb-show__shot img { display: block; width: 100%; height: auto; }

/* The cover lies on a dark table, like in the cover studio section. */
.eb-show__table {
    padding: 1.5rem 1rem 1.1rem;
    border-radius: 1rem;
    background: #07142c;
    box-shadow: 0 20px 50px rgba(11, 28, 63, 0.16);
}
