/* Fenetre d'attente avant le formulaire de devis (catalogue.js, ouvrirDevis).
   A part de catalogue.css : la vitrine des promotions la charge seule, sans
   les regles du catalogue (.sidebar...) qui toucheraient le theme. */

/* ===== ATTENTE AVANT LE FORMULAIRE DE DEVIS =====
   Fenetre au centre, au-dessus de la modale des variations (999999). */
.pc-attente {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .25s ease;
}
.pc-attente--ouverte {
    opacity: 1;
}
.pc-attente__boite {
    width: 100%;
    max-width: 380px;
    padding: 28px 24px 22px;
    border-radius: 10px;
    background: #fff;
    color: #000;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    transform: translateY(12px) scale(.96);
    transition: transform .25s ease;
}
.pc-attente--ouverte .pc-attente__boite {
    transform: none;
}
.pc-attente__roue {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid #f3d0d0;
    border-top-color: #d62828;
    border-radius: 50%;
    animation: pc-attente-tourne .8s linear infinite;
}
.pc-attente__titre {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
}
.pc-attente__portail {
    margin: 0 0 18px;
    font-size: .95rem;
}
.pc-attente__barre {
    height: 4px;
    margin-bottom: 18px;
    border-radius: 2px;
    background: #f3d0d0;
    overflow: hidden;
}
.pc-attente__barre span {
    display: block;
    height: 100%;
    background: #d62828;
    transform-origin: left;
    animation: pc-attente-vide linear forwards; /* duree posee par le JS */
}
.pc-attente__annuler {
    padding: 6px 18px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}
.pc-attente__annuler:hover,
.pc-attente__annuler:focus-visible {
    background: #000;
    color: #fff;
}
@keyframes pc-attente-tourne {
    to { transform: rotate(360deg); }
}
@keyframes pc-attente-vide {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .pc-attente,
    .pc-attente__boite {
        transition: none;
    }
    .pc-attente__roue {
        animation-duration: 2.4s;
    }
}
