/* ================================================
   ARNO CAST POPUPS STYLES
   ================================================ */

/* Base des pop-ups */
.arno-cast-popup {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.arno-cast-popup * {
    box-sizing: border-box;
}

/* Pop-up en bas à droite */
.arno-cast-popup.arno-cast-bottom-right {
    bottom: 20px;
    right: 20px;
    max-width: 320px;
    width: 100%;
}

.arno-cast-popup.arno-cast-bottom-right .arno-cast-content {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pop-up au centre (exit intent) */
.arno-cast-popup.arno-cast-center {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arno-cast-popup.arno-cast-center .arno-cast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.arno-cast-popup.arno-cast-center .arno-cast-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Contenu commun */
.arno-cast-content {
    position: relative;
}

.arno-cast-body {
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.arno-cast-body h1,
.arno-cast-body h2,
.arno-cast-body h3,
.arno-cast-body h4,
.arno-cast-body h5,
.arno-cast-body h6 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.arno-cast-body h3 {
    font-size: 1.2em;
    font-weight: 600;
}

.arno-cast-body p {
    margin: 0 0 15px 0;
}

.arno-cast-body p:last-child {
    margin-bottom: 0;
}

/* Bouton de fermeture */
.arno-cast-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arno-cast-close:hover,
.arno-cast-close:focus {
    color: #666;
    text-decoration: none;
}

/* Formulaires dans les pop-ups */
.arno-cast-body form {
    margin: 0;
}

.arno-cast-body input[type="text"],
.arno-cast-body input[type="email"],
.arno-cast-body input[type="tel"],
.arno-cast-body textarea,
.arno-cast-body select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}

.arno-cast-body input[type="text"]:focus,
.arno-cast-body input[type="email"]:focus,
.arno-cast-body input[type="tel"]:focus,
.arno-cast-body textarea:focus,
.arno-cast-body select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.arno-cast-body button,
.arno-cast-body input[type="submit"] {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.arno-cast-body button:hover,
.arno-cast-body input[type="submit"]:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .arno-cast-popup.arno-cast-bottom-right {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .arno-cast-popup.arno-cast-center .arno-cast-content {
        width: 95%;
        margin: 10px;
    }
    
    .arno-cast-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .arno-cast-body {
        padding: 12px;
    }
    
    .arno-cast-body h3 {
        font-size: 1.1em;
    }
}

/* Animation de sortie */
.arno-cast-popup.arno-cast-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}
