/*
 * Auteur : Adrien DEPROST
 * Date de création : 03/05/2025
 *
 * Licence :
 * Ce fichier est sous licence propriétaire, sauf indication contraire.
 * Toute utilisation, modification ou distribution de ce fichier 
 * est interdite sans l'autorisation écrite préalable de l'auteur.
 * 
 * Historique des modifications :
 * 24/10/2026 - Adrien DEPROST - Intégration du simulateur de tarif identique à la page tarifs
 * 03/05/2025 - Adrien DEPROST - Création
 *
 * -----------------------------------------------------------------------------
 */

/* L'Overlay de confirmation de l'inscription */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.box {
    background: white;
    padding: 30px 50px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,.2);
    text-align: center;
}

.trophy {
    font-size: 45px;
    color: var(--color-primary);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: .6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Style des cartes d'abonnement */
.card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-width: 2px;
    height: 100%;
    background-color: white;
    color: #212529;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

/* Style de la carte sélectionnée (comme btn-primary) */
.card.selected {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 119, 179, 0.25);
    border-width: 0px;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, #005c8a 100%);
    border-color: var(--color-primary) !important;
}

/* Style des boutons radio dans les cartes sélectionnées */
.card.selected .form-check-label {
    color: white;
}

/* Style des icônes dans les cartes sélectionnées */
.card.selected i {
    color: white;
}

/* Style du texte descriptif dans les cartes sélectionnées */
.card.selected .card-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Effet de survol pour les cartes non sélectionnées */
.card:not(.selected):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Style des boutons radio personnalisés */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.3rem;
}

/* BOUTON DE VALIDATION */
.btn-custom {
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Effet au survol du bouton */
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #005c8a;
    border-color: #00527b;
    color: #ffffff;
}

/* Animation de l'icône */
.btn-custom i {
    transition: transform 0.3s ease, margin 0.3s ease;
    display: inline-block;
}

/* Animation au survol : décalage vers le haut à droite + rotation */
.btn-custom:hover i {
    transform: translate(5px, -5px) rotate(20deg);
    margin-right: 15px;
}

/* Utilitaires du thème */
.icon-theme {
    color: var(--color-primary) !important;
}

/* Styles du Simulateur (identiques à la page tarifs) */
.simulator-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.simulator-badge {
    background-color: rgba(0, 119, 179, 0.08) !important;
    color: var(--color-primary) !important;
    border: 1px solid rgba(0, 119, 179, 0.25) !important;
    font-weight: 600;
}

.simulator-value-badge {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 700;
}

.simulator-step-btn {
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    background-color: transparent !important;
    transition: all 0.2s ease;
}

.simulator-step-btn:hover,
.simulator-step-btn:focus {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}

/* Style des curseurs de plage (range) aux couleurs du thème */
.form-range::-webkit-slider-thumb {
    background-color: var(--color-primary) !important;
}

.form-range::-webkit-slider-thumb:active {
    background-color: var(--color-secondary) !important;
}

.form-range::-moz-range-thumb {
    background-color: var(--color-primary) !important;
}

.form-range::-moz-range-thumb:active {
    background-color: var(--color-secondary) !important;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem var(--color-secondary-opacity-50) !important;
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem var(--color-secondary-opacity-50) !important;
}

.simulator-result-box {
    background: linear-gradient(135deg, #ffffff 0%, rgba(132, 202, 236, 0.12) 100%);
    border: 1px solid rgba(0, 119, 179, 0.25);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.simulator-price,
#prix_total {
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    font-family: var(--font-primary);
    line-height: 1.1;
    margin: 10px 0;
    text-shadow: none !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}