/* === Chez Cui-Cui by Mididix — Styles personnalisés === */

/* Masquer les éléments Alpine.js non initialisés */
[x-cloak] { display: none !important; }

/* Scroll horizontal galerie */
.gallery-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar {
    display: none;
}
.gallery-scroll > * {
    scroll-snap-align: center;
}

/* Animations au scroll */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Toast de confirmation admin */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.4s ease;
}
.toast.show {
    transform: translateX(0);
}
.toast.success {
    background: #065F46;
    color: white;
}
.toast.error {
    background: #991B1B;
    color: white;
}

/* Upload zone admin */
.upload-zone {
    border: 2px dashed #C85A3C;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(200, 90, 60, 0.03);
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #7A2E1F;
    background: rgba(200, 90, 60, 0.08);
}
.upload-zone.drag-over {
    transform: scale(1.02);
}

/* Menu du jour — image hero */
.menu-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}
.menu-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.menu-hero:hover img {
    transform: scale(1.03);
}

/* Badge « ouvert / fermé » */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}
.status-badge.open {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
}
.status-badge.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
}

/* Admin sidebar */
.admin-sidebar {
    width: 16rem;
    min-height: 100vh;
    background: #1A1411;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(200, 90, 60, 0.15);
    color: #C85A3C;
}

/* Admin bottom nav mobile */
.admin-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #1A1411;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.admin-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.625rem;
    transition: color 0.2s ease;
}
.admin-bottom-nav a:hover,
.admin-bottom-nav a.active {
    color: #C85A3C;
}

/* Image placeholder (quand pas de photo) */
.img-placeholder {
    background: linear-gradient(135deg, #C85A3C15 0%, #E8B54715 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   ANIMATIONS MODERNES — Reveal, Parallax, Hover, Marquee
   ========================================================================== */

/* État initial des éléments à révéler (avant init GSAP) */
[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92); }

[data-stagger-item] {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

/* Eyebrow (petit titre au-dessus du h2) */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C85A3C;
    margin-bottom: 0.25rem;
}

/* Reveal mots du h1 / h2 (animation en cascade par mot) */
.reveal-words .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.reveal-words .word > span {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}

/* Blobs flottants en arrière-plan */
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -40px) scale(1.05); }
    66%      { transform: translate(-25px, 30px) scale(0.97); }
}
@keyframes blobFloatRev {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, 30px) scale(1.08); }
}
.blob-float      { animation: blobFloat 14s ease-in-out infinite; }
.blob-float-slow { animation: blobFloat 22s ease-in-out infinite; }
.blob-float-rev  { animation: blobFloatRev 18s ease-in-out infinite; }

/* Ken Burns subtil sur image hero */
@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}
.ken-burns {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Tilt 3D au survol (cards plats / avis / menu hero) */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bouton magnétique (l'effet est appliqué via JS sur translation) */
.btn-magnetic {
    position: relative;
    will-change: transform;
}

/* Bouton avec halo lumineux pulsant */
.btn-glow {
    position: relative;
}
.btn-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(232, 181, 71, 0.5) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50%      { opacity: 0.8; transform: scale(1.1); }
}

/* Lien avec flèche qui glisse */
.link-arrow [data-lucide="arrow-right"] {
    transition: transform 0.3s ease;
}
.link-arrow:hover [data-lucide="arrow-right"] {
    transform: translateX(5px);
}

/* Marquee (bandeau défilant) */
.marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 32s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Hover lift simple */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
}

/* Review card — accent décoratif */
.review-card {
    position: relative;
    overflow: hidden;
}
.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 12px;
    font-family: 'Fraunces', serif;
    font-size: 6rem;
    color: rgba(200, 90, 60, 0.08);
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   GALERIE — Bento grid asymétrique + curseur custom
   ========================================================================== */

/* Bento grid : grille fluide qui mixe différentes tailles d'images */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 1rem;
}
@media (min-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px;
        gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 220px;
        gap: 1.5rem;
    }
}

.bento-item { position: relative; min-height: 0; }

/* Variantes de tailles (mobile : empilement simple ; desktop : asymétrique) */
.bento-sm   { grid-column: span 1; grid-row: span 1; }
.bento-md   { grid-column: span 2; grid-row: span 1; }
.bento-lg   { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }
.bento-tall { grid-column: span 1; grid-row: span 2; }

@media (min-width: 640px) {
    .bento-sm   { grid-column: span 1; grid-row: span 1; }
    .bento-md   { grid-column: span 2; grid-row: span 1; }
    .bento-lg   { grid-column: span 2; grid-row: span 2; }
    .bento-wide { grid-column: span 3; grid-row: span 1; }
    .bento-tall { grid-column: span 1; grid-row: span 2; }
}
@media (min-width: 1024px) {
    .bento-sm   { grid-column: span 2; grid-row: span 1; }
    .bento-md   { grid-column: span 3; grid-row: span 1; }
    .bento-lg   { grid-column: span 3; grid-row: span 2; }
    .bento-wide { grid-column: span 4; grid-row: span 1; }
    .bento-tall { grid-column: span 2; grid-row: span 2; }
}

/* Curseur custom "VOIR" qui suit le pointeur sur les images cliquables */
.cursor-zoom-disc {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #C85A3C;
    color: #FAF5EC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    pointer-events: none;
    z-index: 90;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
    mix-blend-mode: normal;
    box-shadow: 0 8px 32px rgba(200, 90, 60, 0.4);
}
.cursor-zoom-disc.is-visible {
    transform: translate(-50%, -50%) scale(1);
}
.cursor-zoom-disc span {
    transform: rotate(-8deg);
}

/* On masque le curseur natif sur les zones zoom (option) */
@media (hover: hover) and (pointer: fine) {
    .cursor-zoom { cursor: none; }
    .cursor-zoom * { cursor: none; }
}

/* Filter pill — micro-animation */
.filter-pill {
    position: relative;
    overflow: hidden;
}
.filter-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.filter-pill:hover::before { transform: translateX(100%); }

/* Counter (nombre animé) */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Respect des préférences de l'utilisateur */
@media (prefers-reduced-motion: reduce) {
    [data-reveal], [data-stagger-item] {
        opacity: 1 !important;
        transform: none !important;
    }
    .blob-float, .blob-float-slow, .blob-float-rev,
    .ken-burns, .marquee-track, .btn-glow::before {
        animation: none !important;
    }
}
