@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,600,700");
:root {
    --modal-bg: #ffffff;
    --primary: #c25e2e; /* Bleu nuit profond */
    --secondary: #b59a83;
    --text-main: #111827;
    --text-muted: #64748b;
    --radius: 20px;
    --font-primary: 'Poppins', Helvetica, sans-serif;
}

/* Overlay avec flou d'arrière-plan */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px); /* Effet verre dépoli */
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    opacity: 0; pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show {
    opacity: 1; pointer-events: auto;
}

/* Carte du Modal */
.modal-card {
    background: var(--modal-bg);
    padding: 32px;
    border-radius: var(--radius);
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.modal-overlay.show .modal-card {
    transform: translateY(0) scale(1);
}

/* Icône stylisée */
.modal-icon-container {
    width: 56px; height: 56px;
    background: #f1f5f9;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}
.saas-modal-icon-box {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    color: red; /* Couleur de l'icône */
    border: 1px solid #f1f5f9;
    font-size: 24px; /* Taille de l'icône FontAwesome */
}

/* Typographie */
.modal-body h3 {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    font-family: var(--font-primary);
}

/* Bouton Moderne */
.modal-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: var(--font-primary);
    
    /* Pour aligner la flèche et le texte */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
}

/* La flèche au début (gauche) */
.modal-btn::before {
    content: '→';
    display: inline-block;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    transform: translateX(0);
}

/* La flèche à la fin (droite) - cachée par défaut */
.modal-btn::after {
    content: '→';
    display: inline-block;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    width: 0; /* Prend 0 place pour ne pas décentrer le texte */
    transform: translateX(-10px);
}

/* --- EFFET AU HOVER --- */

.modal-btn:hover {
    background: var(--secondary);
}

/* On cache la flèche de gauche */
.modal-btn:hover::before {
    opacity: 0;
    width: 0;
    transform: translateX(50px);
    margin: 0;
}

/* On affiche la flèche de droite */
.modal-btn:hover::after {
    opacity: 1;
    width: auto;
    transform: translateX(0);
    margin-left: 8px;
}
