/* ==============================================
   CTA Sticky - Styles
   ============================================== */

:root {
    --cta-bg-color: #e74c3c;
    --cta-text-color: #ffffff;
}

.pizzeria-sticky-cta {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   POSITIONS
   ============================================ */

/* Bas Droite (défaut) */
.pizzeria-sticky-cta.position-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Bas Gauche */
.pizzeria-sticky-cta.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Haut Droite */
.pizzeria-sticky-cta.position-top-right {
    top: 100px;
    right: 20px;
}

/* Haut Gauche */
.pizzeria-sticky-cta.position-top-left {
    top: 100px;
    left: 20px;
}

/* Bas Centre */
.pizzeria-sticky-cta.position-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================
   BOUTON DE BASE
   ============================================ */

.cta-button {
    background: var(--cta-bg-color);
    color: var(--cta-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

/* Supprimer TOUS les pseudo-éléments */
.cta-button::before,
.cta-button::after {
    display: none !important;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before,
.cta-button:hover::after {
    display: none !important;
}

.cta-button:active {
    transform: scale(0.95);
}

.cta-icon {
    font-size: 1.5em;
    line-height: 1;
}

/* ============================================
   STYLES
   ============================================ */

/* Style Rond (Circle) */
.pizzeria-sticky-cta.style-circle .cta-button {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.pizzeria-sticky-cta.style-circle.size-small .cta-button {
    width: 50px;
    height: 50px;
}

.pizzeria-sticky-cta.style-circle.size-medium .cta-button {
    width: 60px;
    height: 60px;
}

.pizzeria-sticky-cta.style-circle.size-large .cta-button {
    width: 75px;
    height: 75px;
}

.pizzeria-sticky-cta.style-circle.size-large .cta-icon {
    font-size: 2em;
}

/* Style Carré (Square) */
.pizzeria-sticky-cta.style-square .cta-button {
    border-radius: 12px;
    width: 60px;
    height: 60px;
}

.pizzeria-sticky-cta.style-square.size-small .cta-button {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.pizzeria-sticky-cta.style-square.size-medium .cta-button {
    width: 60px;
    height: 60px;
}

.pizzeria-sticky-cta.style-square.size-large .cta-button {
    width: 75px;
    height: 75px;
    border-radius: 15px;
}

/* Style Pilule (Pill) - Étendu avec texte */
.pizzeria-sticky-cta.style-pill .cta-button {
    border-radius: 50px;
    padding: 15px 25px;
    gap: 12px;
    height: auto;
    width: auto;
}

.pizzeria-sticky-cta.style-pill.size-small .cta-button {
    padding: 12px 20px;
    gap: 10px;
}

.pizzeria-sticky-cta.style-pill.size-large .cta-button {
    padding: 18px 30px;
    gap: 15px;
}

.cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.cta-text strong {
    font-size: 1.1em;
    font-weight: 700;
}

.cta-text small {
    font-size: 0.85em;
    opacity: 0.9;
    margin-top: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Pulsation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pizzeria-sticky-cta.animation-pulse .cta-button {
    animation: pulse 2s ease-in-out infinite;
}

.pizzeria-sticky-cta.animation-pulse .cta-button:hover {
    animation: none;
}

/* Secousse */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.pizzeria-sticky-cta.animation-shake .cta-button {
    animation: shake 3s ease-in-out infinite;
}

.pizzeria-sticky-cta.animation-shake .cta-button:hover {
    animation: none;
}

/* Rebond */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.pizzeria-sticky-cta.animation-bounce .cta-button {
    animation: bounce 2s ease-in-out infinite;
}

.pizzeria-sticky-cta.animation-bounce .cta-button:hover {
    animation: none;
}

/* Sonnerie */
@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
}

.pizzeria-sticky-cta.animation-ring .cta-button {
    animation: ring 2s ease-in-out infinite;
}

.pizzeria-sticky-cta.animation-ring .cta-button:hover {
    animation: none;
}

/* Aucune animation */
.pizzeria-sticky-cta.animation-none .cta-button {
    animation: none;
}

/* ============================================
   WHATSAPP
   ============================================ */

.cta-whatsapp {
    margin-top: 5px;
}

.cta-whatsapp .cta-icon {
    font-size: 1.3em;
}

/* ============================================
   ÉTAT FERMÉ
   ============================================ */

.cta-closed {
    cursor: not-allowed;
    opacity: 0.7;
    background: #95a5a6 !important;
}

.cta-closed:hover {
    transform: none;
}

/* ============================================
   VISIBILITÉ RESPONSIVE
   ============================================ */

/* Masquer sur desktop */
@media (min-width: 769px) {
    .pizzeria-sticky-cta.hide-desktop {
        display: none !important;
    }
}

/* Masquer sur mobile */
@media (max-width: 768px) {
    .pizzeria-sticky-cta.hide-mobile {
        display: none !important;
    }
    
    /* Ajustements mobile */
    .pizzeria-sticky-cta {
        bottom: 15px;
        right: 15px;
    }
    
    .pizzeria-sticky-cta.position-bottom-left {
        left: 15px;
    }
    
    .pizzeria-sticky-cta.position-bottom-center {
        bottom: 15px;
    }
    
    /* Réduire légèrement la taille sur mobile */
    .pizzeria-sticky-cta.style-circle.size-large .cta-button,
    .pizzeria-sticky-cta.style-square.size-large .cta-button {
        width: 65px;
        height: 65px;
    }
    
    .pizzeria-sticky-cta.style-pill .cta-button {
        padding: 12px 20px;
    }
    
    .pizzeria-sticky-cta.style-pill.size-large .cta-button {
        padding: 15px 25px;
    }
    
    .cta-text strong {
        font-size: 1em;
    }
    
    .cta-text small {
        font-size: 0.8em;
    }
}

/* ============================================
   EFFET DE BRILLANCE - DÉSACTIVÉ
   ============================================ */

/* Effet retiré - plus de brillance qui passe */

/* ============================================
   BADGE NOTIFICATION (si besoin futur)
   ============================================ */

.cta-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   TOOLTIP (au survol)
   ============================================ */

.cta-button[data-tooltip] {
    position: relative;
}

.cta-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.85em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cta-button[data-tooltip]:hover::after {
    opacity: 1;
}

/* Flèche du tooltip */
.cta-button[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    right: 20px;
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cta-button[data-tooltip]:hover::before {
    opacity: 1;
}

/* ============================================
   MODE SOMBRE (si le site a un dark mode)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .cta-button {
        box-shadow: 0 4px 25px rgba(255, 255, 255, 0.1);
    }
    
    .cta-button:hover {
        box-shadow: 0 6px 35px rgba(255, 255, 255, 0.2);
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */

.cta-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

.cta-button:focus:not(:focus-visible) {
    outline: none;
}

/* Pour les utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .pizzeria-sticky-cta.animation-pulse .cta-button,
    .pizzeria-sticky-cta.animation-shake .cta-button,
    .pizzeria-sticky-cta.animation-bounce .cta-button,
    .pizzeria-sticky-cta.animation-ring .cta-button {
        animation: none;
    }
    
    .cta-button {
        transition: none;
    }
}

/* ============================================
   PRINT (masquer lors de l'impression)
   ============================================ */

@media print {
    .pizzeria-sticky-cta {
        display: none !important;
    }
}