/* ==========================================================================
   MODE HIVER — Union Square Holiday Market (12 nov. → 24 déc. 2026)
   Brief de Sam du 22/11/2026. Tout le mode hiver vit dans ce fichier pour
   pouvoir le retirer d'un coup : bandeau, panier masqué, nouveaux blocs,
   catering en pause.
   ========================================================================== */

:root {
    /* Hauteur du bandeau : valeur de secours, recalculée au chargement
       par le petit script placé juste après le bandeau. */
    --wb-h: 34px;
    --wb-bg: #f4cc22;
    --wb-ink: #1a1a0e;
}

@media (max-width: 760px) {
    :root { --wb-h: 46px; }
}

/* Contenu mis de côté pour le printemps (gardé dans le HTML, jamais affiché) */
[data-winter-hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   1. Bandeau jaune au-dessus du header
   -------------------------------------------------------------------------- */
/* Le bandeau est en haut de chaque page et défile avec elle (pas collé en
   permanence : sur mobile le header ne se cache jamais, ça ferait trop). */
.winter-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding:
        calc(env(safe-area-inset-top, 0px) + 0.5rem)
        max(1rem, env(safe-area-inset-right, 0px))
        0.5rem
        max(1rem, env(safe-area-inset-left, 0px));
    background: var(--wb-bg);
    color: var(--wb-ink);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.32s cubic-bezier(0, 0, 0.2, 1);
}

.winter-banner-copy {
    margin: 0 auto;
    max-width: 76rem;
    font-family: 'NH', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--wb-ink);
}

.winter-banner-copy a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    white-space: nowrap;
}

.winter-banner-copy a:hover,
.winter-banner-copy a:focus-visible {
    text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
    .winter-banner {
        padding-top: calc(env(safe-area-inset-top, 0px) + 0.42rem);
        padding-bottom: 0.42rem;
    }
    .winter-banner-copy {
        font-size: 0.7rem;
        line-height: 1.3;
        letter-spacing: 0;
    }
}

@media (max-width: 359px) {
    .winter-banner-copy { font-size: 0.64rem; }
}

/* Le header (fixe) se cale sous le bandeau, puis remonte en haut quand on
   fait défiler : le petit script du bandeau ajuste son « top » au scroll. */
.nav,
body.contact-os-page .nav {
    top: var(--wb-h);
}

/* La page commence sous le bandeau */
body {
    padding-top: var(--wb-h);
}

/* --------------------------------------------------------------------------
   2. Panier masqué (précommandes par téléphone cet hiver)
   -------------------------------------------------------------------------- */
#lm-cart-trigger,
#lm-cart-toast {
    display: none !important;
}

/* --------------------------------------------------------------------------
   3. Accueil
   -------------------------------------------------------------------------- */

/* Bloc « This winter, we're at Union Square. » */
.winter-market {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
    padding: clamp(5rem, 12vh, 9rem) 6vw;
    background: var(--linen);
    scroll-margin-top: calc(var(--wb-h) + 5rem);
}

.winter-market-media {
    justify-self: end;
    width: min(100%, 30rem);
}

.winter-market-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(26, 26, 14, 0.14), 0 8px 20px rgba(26, 26, 14, 0.06);
}

.winter-market-text {
    max-width: 30rem;
}

.winter-market-text .label {
    margin-bottom: 1.6rem;
}

.winter-market-text h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 1.8rem;
}

.winter-market-text h2 em {
    color: var(--green);
    font-style: italic;
}

.winter-market-text p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(26, 26, 14, 0.62);
    margin-bottom: 1rem;
}

.winter-market-text .winter-market-meta {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.8;
    text-transform: uppercase;
    color: var(--green);
}

.winter-market-text .btn {
    margin-top: 1.4rem;
}

@media (max-width: 768px) {
    .winter-market {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        padding: 4.5rem 1.4rem 4rem;
    }
    .winter-market-media {
        justify-self: center;
        width: min(80%, 18rem);
    }
    .winter-market-text {
        max-width: none;
    }
}

/* Cartes « Les Tartes » : visuel d'attente aux couleurs de la marque */
.tart-card-img--pending {
    background: var(--gold);
    box-shadow: 0 0 0 5px var(--linen), 0 18px 36px rgba(26, 26, 14, 0.12);
}

/* Bouton de catering désactivé (« Catering returns December 26 ») */
.btn.winter-btn-disabled,
.btn.winter-btn-disabled:hover {
    cursor: default;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

/* Section contact : localisation Union Square, réalignée sur la colonne de gauche */
.contact-right {
    justify-content: flex-start;
    /* = hauteur du titre « Let's talk tarts. » (2 lignes) + sa marge : la
       localisation s'aligne sur la première ligne de contact à gauche */
    padding-top: calc(2 * clamp(2rem, 3.8vw, 3.8rem) + 3rem);
}

.contact-big .contact-big-sub {
    display: block;
    margin-top: 0.9rem;
    font-family: 'NH', Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0;
    color: rgba(244, 231, 164, 0.72);
}

@media (max-width: 768px) {
    .contact-right {
        padding-top: 0;
    }
}

/* --------------------------------------------------------------------------
   4. Page menu : carte d'hiver
   -------------------------------------------------------------------------- */

/* Tag + prix à droite du nom de chaque tarte salée */
.winter-entry-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.winter-entry-price {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--green);
}

@media (max-width: 640px) {
    .winter-entry-meta {
        margin-top: 0.45rem;
    }
    .winter-entry-price {
        font-size: 1.1rem;
    }
}

/* Tag des desserts (même esprit que les tags des tartes salées) */
.winter-sweet-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.7rem;
    padding: 0.38rem 0.6rem;
    border-radius: 3px;
    border: 1px solid rgba(230, 174, 0, 0.18);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(59, 84, 27, 0.58);
    background: rgba(255, 248, 219, 0.78);
}

/* Boissons chaudes et soupe : cartes au format des anciens « sides » */
.winter-menu-board--two {
    grid-template-columns: minmax(180px, 220px) repeat(2, minmax(0, 1fr));
}

.winter-menu-board .menu-side-card {
    justify-content: space-between;
    min-height: 9.5rem;
}

.winter-menu-format {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(59, 84, 27, 0.6);
}

.winter-menu-board .winter-menu-card-price {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    color: rgba(230, 174, 0, 0.95);
}

.winter-menu-note {
    margin-top: 1.1rem;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(26, 26, 14, 0.62);
}

.winter-menu-note strong {
    font-weight: 700;
    color: var(--green);
}

@media (max-width: 820px) {
    .winter-menu-board--two {
        grid-template-columns: 1fr;
    }
    .winter-menu-board .menu-side-card {
        min-height: 0;
    }
}

/* Bloc « Pre-order requests » en bas de carte */
.winter-preorder {
    margin: clamp(3rem, 7vw, 5.5rem) auto 0;
    max-width: 58rem;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem);
    text-align: center;
    background: var(--gold);
    color: var(--dark);
    border-radius: 18px;
    box-shadow: 10px 10px 0 rgba(59, 84, 27, 0.9);
    scroll-margin-top: calc(var(--wb-h) + 7rem);
}

.winter-preorder h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    margin: 0 0 0.9rem;
    color: var(--dark);
}

.winter-preorder p {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 400;
    color: var(--dark);
}

.winter-preorder a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .winter-preorder {
        margin-left: 1rem;
        margin-right: 1rem;
        box-shadow: 6px 6px 0 rgba(59, 84, 27, 0.9);
    }
}

/* Ligne allergènes au-dessus de la « Kitchen Note » */
.menu-sourcing .winter-allergens {
    margin: 1.4rem auto 0;
    max-width: 58rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--green);
    text-align: left;
}

/* Visuel rayé provisoire (photos de Sam à venir) : affiché en disque,
   comme une tarte. Disparaît tout seul quand la vraie photo remplace l'image. */
.menu-preview-figure[src*="stripes"] {
    object-fit: cover;
    filter: none;
    clip-path: circle(33% at 50% 45%);
}

.menu-entry-mobile-image[src*="stripes"] {
    object-fit: cover;
    filter: none;
    clip-path: circle(36% at 50% 44%);
}

.menu-entry-mobile-peek-image[src*="stripes"] {
    object-fit: cover;
    filter: none;
    border-radius: 50%;
}

.menu-sweet-item-img[data-photo-pending] {
    border: 1px solid rgba(230, 174, 0, 0.18);
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 242, 170, 0.7) 0%, rgba(255, 242, 170, 0) 70%),
        rgba(255, 248, 223, 0.86);
}

.menu-sweet-item-img[data-photo-pending] img {
    object-fit: cover;
    clip-path: circle(30% at 50% 50%);
}

/* Numéro de téléphone cliquable sous les ancres */
.menu-jump-note a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Page catering : en pause, page floutée
   -------------------------------------------------------------------------- */
.catering-wrap {
    position: relative;
}

.catering-content {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.catering-veil {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 15vh 16px 15vh;
    background: rgba(22, 50, 74, 0.82);
}

.catering-pause {
    position: sticky;
    top: calc(5rem + 8vh);
    width: 100%;
    max-width: 460px;
    padding: 28px 24px;
    text-align: center;
    background: #f3edd0;
    border: 2px solid #f4cc22;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    color: var(--dark);
}

.catering-pause .eyebrow {
    margin: 0 0 0.8rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--green);
}

.catering-pause h1 {
    margin: 0 0 0.45rem;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1;
    color: var(--dark);
}

.catering-pause .dates {
    margin: 0 0 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.catering-pause img {
    display: block;
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 auto 1.2rem;
    border-radius: 12px;
}

.catering-pause p:not(.eyebrow):not(.dates) {
    margin: 0 0 1.3rem;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(26, 26, 14, 0.78);
}

.catering-pause .btn {
    margin-top: 0;
}

/* Header lisible au-dessus du voile bleu nuit (sur mobile il a déjà son fond crème) */
@media (min-width: 841px) {
    body.catering-paused .nav {
        background: rgba(244, 241, 224, 0.96);
        box-shadow: 0 1px 0 rgba(26, 26, 14, 0.08);
    }
}

@media (max-width: 560px) {
    .catering-veil {
        padding-top: 9vh;
    }
    .catering-pause {
        top: 5.5rem;
        padding: 24px 18px;
    }
    .catering-pause img {
        width: min(100%, 180px);
    }
}

/* --------------------------------------------------------------------------
   6. Page contact : note de pause du catering
   -------------------------------------------------------------------------- */

/* Le « bureau » fait exactement la hauteur de l'écran : on retire le bandeau */
.contact-desktop-page {
    min-height: calc(100svh - var(--wb-h));
}

.contact-desktop-scene {
    height: calc(100svh - var(--wb-h));
    min-height: calc(100svh - var(--wb-h));
}

@media (max-width: 980px) {
    .contact-desktop-page {
        height: calc(100svh - var(--wb-h));
    }
    .contact-mobile-shell {
        height: calc(100svh - (var(--safe-top) + 5.7rem) - (var(--safe-bottom) + 0.7rem) - var(--wb-h));
    }
}
.winter-contact-pause {
    display: block;
    font-weight: 600;
}

.contact-mobile-panel .winter-contact-pause {
    margin: 0 0 0.9rem;
}

/* --------------------------------------------------------------------------
   7. Mouvements réduits
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .winter-banner {
        transition: none;
    }
}
