/* Conteneur principal fluide */
.scifi-cta-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 550px; /* Largeur maximale sur ordinateur */
    margin: 0 auto;
    box-sizing: border-box;
}

/* 1. Châssis Octogonal Externe Adaptatif */
.scifi-outer-chassis {
    display: block;
    width: 100%;
    padding: 4px; /* Épaisseur du biseau métallique ajustée */
    background: linear-gradient(180deg, #555c68 0%, #282e38 45%, #0f1319 100%);
    box-sizing: border-box;
    
    /* Découpe octogonale responsive (les coins s'adaptent proportionnellement) */
    clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0% calc(100% - 14px), 0% 14px);
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

/* 2. Le Bouton Interne (Capsule de lumière) */
.scifi-core-button {
    display: block;
    width: 100%;
    font-family: 'Montserrat', sans-serif; 
    font-size: 15px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    padding: 18px 20px; /* Moins de padding latéral fixe pour laisser le texte fluide */
    color: #ffffff !important;
    border: none;
    outline: none;
    position: relative;
    cursor: pointer;
    background: #0b0f17;
    box-sizing: border-box;
    
    /* Même découpe octogonale interne */
    clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
    
    box-shadow: 
        inset 0 0 15px rgba(0, 150, 255, 0.4),
        inset 40px 0 30px rgba(0, 210, 255, 0.25),
        inset -40px 0 30px rgba(225, 0, 98, 0.25);
        
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Néons latéraux */
.scifi-core-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #00d2ff 0%, rgba(0,210,255,0) 25%, rgba(225,0,98,0) 75%, #e10062 100%);
    opacity: 0.85;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

/* Texte centré et protégé */
.scifi-text-content {
    position: relative;
    z-index: 5;
    display: inline-block;
    max-width: 100%;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    word-wrap: break-word;
}

/* 3. Lumières projetées au sol (Ajustées en % pour le mobile) */
.ground-reflection {
    position: absolute;
    bottom: -10px;
    width: 30%; /* Largeur relative au bouton */
    height: 25px;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    transition: all 0.3s ease;
}
.reflection-left {
    left: 5%;
    background: #00d2ff;
    box-shadow: 0 0 30px #00d2ff;
}
.reflection-right {
    right: 5%;
    background: #e10062;
    box-shadow: 0 0 30px #e10062;
}

/* --- Adaptations spécifiques pour les petits mobiles (< 480px) --- */
@media (max-width: 480px) {
    .scifi-core-button {
        font-size: 12px; /* Réduction subtile de la police pour éviter que le texte passe sur 3 lignes */
        padding: 15px 10px;
        letter-spacing: 0.5px;
    }
    .scifi-outer-chassis {
        clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0% calc(100% - 10px), 0% 10px);
    }
    .scifi-core-button {
        clip-path: polygon(9px 0%, calc(100% - 9px) 0%, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0% calc(100% - 9px), 0% 9px);
    }
}

/* --- Interactions (Survol) --- */
.scifi-outer-chassis:hover {
    background: linear-gradient(180deg, #717b8c 0%, #3a4352 45%, #151b24 100%);
    transform: translateY(-2px);
}
.scifi-outer-chassis:hover .scifi-core-button {
    box-shadow: 
        inset 0 0 20px rgba(0, 150, 255, 0.6),
        inset 60px 0 40px rgba(0, 210, 255, 0.4),
        inset -60px 0 40px rgba(225, 0, 98, 0.4);
}
.scifi-cta-container:hover .ground-reflection {
    opacity: 0.85;
    transform: scale(1.1);
}
.scifi-outer-chassis:active {
    transform: translateY(1px);
}