/* Overlay loader — confirmation commande / demande personnalisée */
.commande-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 18, 12, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: commandeLoaderFadeIn 0.35s ease-out both;
}

.commande-loader-overlay[hidden] {
    display: none !important;
}

@keyframes commandeLoaderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.commande-loader-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 40px 32px 36px;
    text-align: center;
    background: linear-gradient(165deg, #ffffff 0%, #fdfbf7 100%);
    border: 1px solid rgba(145, 138, 68, 0.35);
    border-radius: 24px;
    box-shadow:
        0 32px 80px rgba(107, 47, 32, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: commandeLoaderSlideUp 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes commandeLoaderSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.commande-loader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #918a44, #c26638, #918a44);
    background-size: 200% 100%;
    animation: commandeLoaderBar 2s linear infinite;
}

@keyframes commandeLoaderBar {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.commande-loader-spinner {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
}

.commande-loader-spinner__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.commande-loader-spinner__ring--outer {
    border-top-color: #918a44;
    border-right-color: rgba(145, 138, 68, 0.25);
    animation: commandeLoaderSpin 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.commande-loader-spinner__ring--inner {
    inset: 10px;
    border-bottom-color: #c26638;
    border-left-color: rgba(194, 102, 56, 0.2);
    animation: commandeLoaderSpin 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

.commande-loader-spinner__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #6b2f20;
    animation: commandeLoaderPulse 1.4s ease-in-out infinite;
}

@keyframes commandeLoaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes commandeLoaderPulse {
    0%, 100% { opacity: 0.65; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

.commande-loader-title {
    font-family: var(--font-titres, Georgia, serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #6b2f20;
    margin: 0 0 10px;
    line-height: 1.3;
}

.commande-loader-text {
    font-size: 15px;
    color: #555;
    margin: 0 0 22px;
    line-height: 1.55;
}

.commande-loader-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.commande-loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #918a44;
    animation: commandeLoaderDot 1.2s ease-in-out infinite;
}

.commande-loader-dots span:nth-child(2) {
    background: #c26638;
    animation-delay: 0.15s;
}

.commande-loader-dots span:nth-child(3) {
    background: #6b2f20;
    animation-delay: 0.3s;
}

@keyframes commandeLoaderDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
