/* ===== Design Luxe – Menu (rev corrigée) ===== */

/* (Optionnel) Fonts — supprime si déjà gérées ailleurs */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=Inter:wght@400;600&display=swap');

:root{
    /* Palette */
    --bg: #0b0b0c;
    --bg-2: #111113;
    --surface: rgba(255,255,255,0.06);
    --surface-2: rgba(255,255,255,0.10);
    --stroke: rgba(255,255,255,0.12);
    --text: #eee;
    --muted: #b9bcc3;
    --gold-1: #f6e7b2;
    --gold-2: #d4af37;
    --gold-3: #9b7b2f;
    --danger: #ff5757;

    /* Glow */
    --glow: 0 10px 30px rgba(212,175,55,0.25), 0 2px 10px rgba(212,175,55,0.15);

    /* Layout */
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --gap: 20px;
    --card-w: clamp(280px, 38vw, 360px);

    /* Si header sticky existe, ajuste ici (ex: 72px) */
    --stickyTop: 0px;
}

*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ height: 100%; }
html.no-scroll{ overflow: hidden; }

body{
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--text);
    background:
        radial-gradient(1000px 600px at 10% -10%, rgba(212,175,55,0.08), transparent 60%),
        radial-gradient(1200px 700px at 110% 10%, rgba(255,240,180,0.06), transparent 60%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color-scheme: dark;
}

/* Container */
.container{
    width: min(1200px, 92vw);
    margin-inline: auto;
    padding: 28px 0 80px;
}

/* Headings */
.section > h2{
    margin: 34px 0 16px;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 40px);
    letter-spacing: 0.4px;
    line-height: 1.2;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    isolation: isolate;
}

.section > h2::after{
    content:"";
    height: 2px;
    width: 72px;
    background: linear-gradient(90deg, var(--gold-2), transparent);
    display: inline-block;
    border-radius: 2px;
    box-shadow: var(--glow);
    transform: translateY(2px); /* ← compat large (remplace translate:) */
}

/* Separator */
.sep{
    border: 0;
    height: 1px;
    margin: 22px 0 10px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Anchors (cat pills) */
.anchors{
    position: sticky;
    top: var(--stickyTop);
    z-index: 50;
    padding: 12px 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(17,17,19,0.85), rgba(17,17,19,0.65));
    border-bottom: 1px solid var(--stroke);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
@supports not ((backdrop-filter: blur(1px))){
    .anchors{ background: rgba(17,17,19,0.92); }
}

.anchors .pill{
    --pad-x: 18px;
    --pad-y: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--pad-y) var(--pad-x);
    border-radius: 999px;
    border: 1px solid var(--stroke);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    position: relative;
}
.anchors .pill:hover{
    transform: translateY(-1px);
    border-color: rgba(212,175,55,0.45);
    box-shadow: var(--glow);
    color:#fff;
}
.anchors .pill.is-active{
    background:
        linear-gradient(135deg, rgba(212,175,55,0.20), rgba(212,175,55,0.08)),
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-color: rgba(212,175,55,0.70);
    box-shadow: var(--glow);
}
.anchors .pill:focus-visible{
    outline: 0;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.35), var(--glow);
}

/* Slider → carrousel horizontal (avec masquage bords) */
.slider{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--card-w);
    gap: 18px;
    overflow-x: auto;
    padding: 10px 2px 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}
@supports (mask-image: linear-gradient(black, transparent)){
    .slider{
        mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent);
    }
}

/* Scrollbar (WebKit) */
.slider::-webkit-scrollbar{ height: 8px; }
.slider::-webkit-scrollbar-track{ background: transparent; }
.slider::-webkit-scrollbar-thumb{
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border-radius: 999px;
}

/* Card */
.card{
    position: relative;
    scroll-snap-align: start;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    overflow: hidden; /* ← remplace overflow: clip */
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before{
    content:"";
    position:absolute; inset: 0;
    background: radial-gradient(120% 60% at 50% -20%, rgba(212,175,55,0.18), transparent 50%);
    pointer-events: none;
    mix-blend-mode: screen;
}
.card:hover{
    transform: translateY(-6px);
    border-color: rgba(212,175,55,0.50);
    box-shadow: var(--glow), 0 40px 120px rgba(0,0,0,0.55);
}

/* Thumb */
.thumb{
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: #161617;
    transition: filter .3s ease, transform .3s ease;
}
.card:hover .thumb{
    filter: saturate(1.15) contrast(1.05);
    transform: scale(1.02);
}

/* Title + price */
.item-title{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 0;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .2px;
}
.item-title > span:first-child{
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}
.price{
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: .4px;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(212,175,55,0.25);
}

/* Description */
.muted{
    color: var(--muted);
    margin: 8px 16px 16px;
    font-size: 14.5px;
}

/* CTA: Voir la photo */
.see-photo{
    margin: 0 16px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(212,175,55,0.55);
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.10));
    color: var(--text);
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
    box-shadow: var(--glow);
}
.see-photo:hover{ transform: translateY(-2px); filter: brightness(1.05); }
.see-photo:active{ transform: translateY(0); }
.see-photo:focus-visible{
    outline: 0;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.35), var(--glow);
}

/* Lightbox */
.img-lightbox{
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5,5,6,0.0);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, background .25s ease;
}
.img-lightbox[aria-hidden="false"]{
    background: rgba(5,5,6,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: auto;
}
.img-lightbox-backdrop{ position: absolute; inset: 0; }

.img-lightbox-panel{
    position: relative;
    max-width: min(1000px, 92vw);
    width: auto;
    max-height: min(86vh, 900px);
    margin: auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: clamp(16px, 2.2vw, 22px);
    padding: clamp(10px, 2vw, 16px);
    box-shadow: 0 50px 160px rgba(0,0,0,0.55), var(--glow);
    animation: panelIn .28s ease both;
}
@keyframes panelIn{
    from{ transform: translateY(8px) scale(.98); opacity: 0; }
    to{ transform: translateY(0) scale(1); opacity: 1; }
}

#img-lightbox-img{
    width: 100%;
    height: auto;
    max-height: min(70vh, 720px);
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: #0e0f10;
}
.img-lightbox .caption{
    margin-top: 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(16px, 2.2vw, 20px);
    letter-spacing: .3px;
    text-align: center;
    color: var(--text);
}
.img-lightbox-close{
    position: absolute;
    top: 6px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: radial-gradient(120% 120% at 50% -20%, rgba(212,175,55,0.2), rgba(212,175,55,0.08));
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--glow);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.img-lightbox-close:hover{
    transform: translateY(-1px);
    filter: brightness(1.05);
    border-color: rgba(212,175,55,0.65);
}
.img-lightbox-close:focus-visible{
    outline: 0;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.35), var(--glow);
}

/* Liens & sélection */
a{ color: inherit; }
a:hover{ color: var(--gold-1); }
::selection{ background: rgba(212,175,55,0.35); color: #111; }


/* Motion reduce */
@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{ transition: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 820px){
    .container{ padding-top: 20px; }
    .item-title{ padding: 14px 14px 0; }
    .muted{ margin: 8px 14px 14px; }
    .see-photo{ width: calc(100% - 28px); margin: 0 14px 16px; }
}
@media (max-width: 480px){
    :root{ --card-w: 86vw; }
    .anchors{ gap: 8px; }
    .anchors .pill{ --pad-x: 14px; --pad-y: 9px; font-size: 14px; }
}
/* Aligner tous les boutons “Voir la photo” en bas des cartes */
.card{
    display: flex;
    flex-direction: column;
}

/* L’image reste en haut et ne prend pas d’espace flexible */
.thumb{ flex: 0 0 auto; }

/* Corps de carte : le texte ne “pousse” pas le bouton */
.item-title,
.muted{ flex: 0 0 auto; }

/* Le bouton est toujours en bas et s’étire en largeur */
.see-photo{
    margin-top: auto;         /* << magie : pousse le bouton en bas */
    align-self: stretch;
    min-height: 48px;         /* confort visuel/UX */
}

/* (Optionnel) — éviter les cartes trop hautes : clamp 2 lignes */
.muted{
    display: -webkit-box;
    -webkit-line-clamp: 2;    /* mets 3 si tu veux un peu plus */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
