/*
 * Événements privés — prune.
 *
 * The formules used to be a drag-to-browse strip of four invitation cards; the
 * client now wants two guest tiers picked with tabs, each holding two priced
 * offers (Basique, Sérénité). The wedding photographs stay a taped collage
 * further down the page, unlike the homepage's photo tiles.
 */

.vo-event__frond {
    top: 40px;
    right: -80px;
    transform: rotate(20deg);
}

/* ==========================================================================
   Hero — the capacity line the client wants bigger and higher than the
   subtitle it used to live inside
   ========================================================================== */

.vo3-page--evenement .vo-hero__tagline {
    max-width: 640px;
    margin: 8px 0 18px;
    font-family: var(--vo-font-serif);
    font-weight: 500;
    font-size: clamp(21px, 2.6vw, 28px);
    line-height: 1.35;
    color: var(--vo-cream);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

/* ==========================================================================
   Intro — the four facts row
   ========================================================================== */

.vo-event__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 4px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--vo-font-serif);
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--vo-ink);
}

.vo-event__facts li:not(:first-child)::before {
    content: '·';
    margin-inline-end: 8px;
    color: var(--vo3-accent);
}

/* ==========================================================================
   Les formules — tabs over two guest tiers
   ========================================================================== */

.vo-event__formules {
    background: var(--vo3-paper-deep);
    padding-block: clamp(30px, 4vw, 50px) clamp(60px, 7vw, 100px);
}

.vo-event__tabs {
    margin-top: 8px;
}

.vo-event__tablist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

/* A phone-width tap target (>= 40px tall) that reads as a toggle, not a link:
   the selected tier fills with the page's accent, the other stays outlined. */
.vo-event__tab {
    min-height: 44px;
    padding: 11px 26px;
    border: 1px solid color-mix(in srgb, var(--vo3-accent) 45%, transparent);
    border-radius: 999px;
    background: var(--vo3-paper);
    color: var(--vo-ink);
    font-family: var(--vo-font-sans);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.vo-event__tab:hover {
    border-color: var(--vo3-accent);
}

.vo-event__tab[aria-selected="true"] {
    background: var(--vo3-accent);
    border-color: var(--vo3-accent);
    color: var(--vo-cream);
}

.vo-event__tab:focus-visible {
    outline: 2px solid var(--vo3-accent);
    outline-offset: 3px;
}

.vo-event__panel {
    /* Panels stack with a visible gap when JS never hides the second one
       (no-JS fallback): each panel still reads as its own block. */
    margin-top: 28px;
}

.vo-event__panel:first-of-type {
    margin-top: 0;
}

.vo-event__cards {
    display: grid;
    /* minmax(0, 1fr), not 1fr: a card's min-content width is its longest
       chip or its price, which would otherwise widen the track past a
       narrow viewport regardless of how much room the grid actually has. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 34px);
    max-width: 840px;
    margin-inline: auto;
}

.vo-event__price-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 26px 26px;
    background: #FFFDF8;
    border-radius: 6px;
    box-shadow: 0 20px 38px -26px rgba(33, 28, 23, .45);
}

.vo-event__price-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    width: 100%;
}

.vo-event__price-card-title {
    font-size: 24px;
    margin: 0;
}

.vo-event__price-card-price {
    font-family: var(--vo-font-serif);
    font-size: 26px;
    color: var(--vo3-accent);
    white-space: nowrap;
}

/* The stay's length, kept discreet: a small caps label rather than the large
   script treatment the old journée/soirée schedules used. */
.vo-event__when {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vo-muted);
}

.vo-event__price-card .vo3-offer__meta {
    margin-top: 2px;
}

.vo-event__price-card .vo-btn {
    margin-top: auto;
    align-self: stretch;
    justify-content: center;
}

.vo-event__pricing-note {
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--vo-muted);
    text-align: center;
}

/* ==========================================================================
   Suppléments — sober price list, hébergement / événementiel
   ========================================================================== */

.vo-event__supplements {
    padding-block: clamp(60px, 7vw, 100px);
}

.vo-event__supplements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 4vw, 64px);
    max-width: 840px;
    margin: 46px auto 0;
}

.vo-event__supplement-title {
    font-family: var(--vo-font-serif);
    font-weight: 500;
    font-size: 20px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--vo3-accent) 40%, transparent);
}

.vo-event__supplement-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vo-event__supplement-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(33, 28, 23, .1);
    font-size: 14.5px;
}

.vo-event__supplement-row:last-child {
    border-bottom: none;
}

.vo-event__supplement-detail {
    color: var(--vo-muted-light);
    font-size: 13px;
}

.vo-event__supplement-price {
    font-weight: 600;
    color: var(--vo3-accent);
    white-space: nowrap;
}

/* ==========================================================================
   Capacité — two taped notes
   ========================================================================== */

.vo-event__capacity {
    padding-block: clamp(70px, 8vw, 110px);
}

.vo-event__capacity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 4vw, 56px);
}

/* The pair leans against each other rather than sitting square. */
.vo-event__note {
    max-width: none;
    text-align: left;
}

.vo-event__note:nth-of-type(odd) { transform: rotate(-.9deg); }
.vo-event__note:nth-of-type(even) { transform: rotate(.7deg); }

/* Smaller than a section title: these two notes sit side by side, not across the
   page. Overrides the clamp of .vo3-note__title, which _section_head also applies. */
.vo-event__note-title {
    font-size: clamp(26px, 3vw, 36px);
    margin: 6px 0 14px;
    text-align: left;
}

.vo-event__note-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   Inspiration — taped collage
   ========================================================================== */

.vo-event__collage {
    background: var(--vo3-paper-deep);
    padding-block: clamp(60px, 7vw, 100px);
}

.vo-event__collage-strip {
    display: flex;
    align-items: flex-start;
    gap: clamp(26px, 3vw, 44px);
    width: max-content;
    min-width: 100%;
    justify-content: center;
    /* Headroom for the tape, which sits 16px above each print, and for the prints
       that are pushed down the page. */
    padding: 34px max(var(--vo-gutter), 4vw) 40px;
}

/* Prints dropped on the page: each one tilts its own way and rides a little
   higher or lower than its neighbour. The pattern is cyclic (6n+k), so unlike
   the full-frame gallery's fixed order nothing here is derived from the
   count: add or remove a print and the rest still holds.

   Geometry lives here, never in a style="" attribute: the site enforces a
   nonce-based CSP with no 'unsafe-inline', so inline styles never apply. */
.vo-event__print {
    flex: 0 0 auto;
    width: clamp(200px, 21vw, 240px);
    max-width: none;
    margin-top: var(--offset, 0);
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.vo-event__print:nth-of-type(6n+1) { --rot: -3.2deg; --offset: 14px; }
.vo-event__print:nth-of-type(6n+2) { --rot: 2.4deg;  --offset: 52px; }
.vo-event__print:nth-of-type(6n+3) { --rot: -1.4deg; --offset: 0; }
.vo-event__print:nth-of-type(6n+4) { --rot: 3.6deg;  --offset: 40px; }
.vo-event__print:nth-of-type(6n+5) { --rot: -2.6deg; --offset: 18px; }
.vo-event__print:nth-of-type(6n+6) { --rot: 1.8deg;  --offset: 58px; }

.vo-event__print:hover {
    z-index: 3;
    transform: rotate(0deg) translateY(-6px) scale(1.03);
}

/* ==========================================================================
   Le déroulé
   ========================================================================== */

.vo-event__steps {
    padding-block: clamp(70px, 8vw, 110px);
}

.vo-event__steps-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.vo-event__step {
    padding-top: 22px;
    border-top: 2px solid color-mix(in srgb, var(--vo3-accent) 45%, transparent);
}

.vo-event__step-index {
    font-family: var(--vo-font-serif);
    font-style: italic;
    font-size: 15px;
    color: var(--vo3-accent);
}

.vo-event__step-title {
    font-family: var(--vo-font-serif);
    font-weight: 500;
    font-size: 23px;
    margin: 8px 0 10px;
}

.vo-event__step-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--vo-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .vo-event__capacity-grid,
    .vo-event__steps-list,
    .vo-event__supplements-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The vertical offsets were a desktop composition; on a narrow strip they
       just push half the prints off the top of the fold. */
    .vo-event__print {
        --offset: 0;
        width: 200px;
    }
}

@media (max-width: 560px) {
    .vo-event__cards {
        grid-template-columns: minmax(0, 1fr);
    }
}
