:root {
    --brand-crema: #BC5B25;
    --brand-crema-dark: #A14A1B;
    --brand-crema-soft: #FCF6F2;
    --brand-black: #0A0A09;
    --brand-surface: #FAF6F3;
}

/* Base Styling & Typography Polish */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #ffffff;
    color: #0A0A09;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Two-tone Headings — Strict Brand Charter: Carbon Black + Logo Crema #BC5B25 */
.heading-dark {
    color: #0A0A09;
    letter-spacing: -0.025em;
}

.heading-light {
    color: #BC5B25;
    letter-spacing: -0.025em;
}

/* Monospace Technical Tags */
.bracket-tag {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.22em;
    font-size: 10px;
}

/* Infinite Brands Marquee */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ================= 3D ROTATING HERO CAROUSEL (PLEINE LARGEUR) ================= */
.hero-3d-scene {
    perspective: 1100px;
    perspective-origin: 50% 50%;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 300px;
    overflow: visible;
}

@media (min-width: 640px) {
    .hero-3d-scene {
        height: 380px;
        perspective: 1300px;
        overflow: visible;
    }
}

@media (min-width: 1024px) {
    .hero-3d-scene {
        height: 460px;
        perspective: 1500px;
        overflow: visible;
    }
}

@media (min-width: 1440px) {
    .hero-3d-scene {
        height: 520px;
        perspective: 1650px;
        overflow: visible;
    }
}

.hero-3d-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.hero-3d-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 210px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1),
                opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1),
                filter 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform, opacity, filter;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

@media (min-width: 640px) {
    .hero-3d-slide {
        width: 310px;
        height: 340px;
    }
}

@media (min-width: 1024px) {
    .hero-3d-slide {
        width: 430px;
        height: 440px;
    }
}

@media (min-width: 1440px) {
    .hero-3d-slide {
        width: 490px;
        height: 490px;
    }
}

.hero-3d-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

.hero-3d-slide.is-active img {
    animation: hero3dFloat 5s ease-in-out infinite;
}

@keyframes hero3dFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #FAF6F3;
}

::-webkit-scrollbar-thumb {
    background: #D6C0AF;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #BC5B25;
}

/* Smooth Fade & Slide-up Keyframes for Modal */
@keyframes slideUp {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slideUp {
    animation: slideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide scrollbars for chips */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Horizontal Slide Wizard Transitions (Effet Slide fluide & pro) */
.tunnel-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.tunnel-slide-panel {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    overscroll-behavior: contain;
    padding: 1.25rem 1rem 3rem 1rem;
}

@media (min-width: 640px) {
    .tunnel-slide-panel {
        padding: 1.5rem 1.75rem 3rem 1.75rem;
    }
}

#machine-cards-grid::-webkit-scrollbar {
    width: 5px;
}

#machine-cards-grid::-webkit-scrollbar-track {
    background: #FAF6F3;
    border-radius: 9999px;
}

#machine-cards-grid::-webkit-scrollbar-thumb {
    background: #BC5B25;
    border-radius: 9999px;
}

.tunnel-slide-panel::-webkit-scrollbar {
    width: 6px;
}

.tunnel-slide-panel::-webkit-scrollbar-track {
    background: transparent;
}

.tunnel-slide-panel::-webkit-scrollbar-thumb {
    background: #E8DBD0;
    border-radius: 9999px;
}

.tunnel-slide-panel::-webkit-scrollbar-thumb:hover {
    background: #BC5B25;
}

/* Print Media Styles — Imprime UNIQUEMENT la fiche d'envoi et l'adresse du destinataire */
@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }
    html, body {
        background: #ffffff !important;
        color: #0A0A09 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body > *:not(#printable-voucher) {
        display: none !important;
    }
    #printable-voucher {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #printable-voucher * {
        visibility: visible !important;
    }
    #whatsapp-widget {
        display: none !important;
    }
}

/* ========================================================================= */
/* WHATSAPP PRO FLOATING WIDGET & DROPDOWN MENU                             */
/* ========================================================================= */
#whatsapp-widget {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes waPopIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-wa-in {
    animation: waPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wa-action-btn:hover {
    border-color: rgba(188, 91, 37, 0.45);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.wa-action-btn:active {
    transform: scale(0.99);
}

.wa-pulse-dot {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tasse à café WhatsApp */
@keyframes waSteam {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-5px) scaleX(1.3) skewX(2deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10px) scaleX(0.8) skewX(-2deg);
        opacity: 0;
    }
}

.animate-wa-steam-1 {
    animation: waSteam 2.1s infinite ease-in-out;
}

.animate-wa-steam-2 {
    animation: waSteam 2.5s infinite ease-in-out 0.4s;
}

.animate-wa-steam-3 {
    animation: waSteam 2.2s infinite ease-in-out 0.8s;
}

