/* Animation pour le spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shine {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(20%, 20%) rotate(45deg); }
}

/* Améliorations visuelles */
.registration-wrapper {
    padding: 60px 0;
}

.benefits-box {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.benefits-box h3 {
    color: #e91e63;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: #e91e63;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.trial-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.trial-badge .big-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.trial-badge .trial-text {
    font-size: 16px;
}

.form-section-title {
    color: #e91e63;
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e91e63;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title .icon {
    margin-right: 10px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.helper-text {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 15px;
    display: block;
}

.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.button.button_theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.button.button_theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(233, 30, 99, 0.4);
}

.form-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.form-footer-text a {
    color: #e91e63;
    font-weight: 600;
    text-decoration: none;
}

.form-footer-text a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.form-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-tab-connexion input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

#column_blocs{
    margin-top: 175px !important;
}

/* ================================================
   INSCRIPTION PROFESSIONNEL — MOBILE CSS
   Hero violet, avantages scroll horizontal,
   formulaire bord à bord, sections séparées
   ================================================ */

@media (max-width: 768px) {

    /* ── 1. SUPPRESSION CONTRAINTES AVADA ── */
    .section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 32px !important;
    }

    #Content,
    .content_wrapper,
    .sections_group {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .section_wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .items_group,
    .column.one,
    .column_attr {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    /* Colonnes Avada one-second → pleine largeur */
    .column.one-second {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ── 2. COLONNE GAUCHE (bénéfices) — masquée, remplacée par scroll ── */
    #reg-benefits-desktop {
        display: none !important;
    }

    /* ── 3. HERO MOBILE ── */
    #reg-hero-mobile {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 16px 16px 20px;
        text-align: center;
    }

    #reg-hero-mobile .rhm-title {
        font-size: 20px;
        font-weight: 900;
        color: white;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    #reg-hero-mobile .rhm-sub {
        font-size: 12px;
        color: rgba(255,255,255,0.82);
        line-height: 1.5;
        margin-bottom: 14px;
    }

    #reg-hero-mobile .rhm-badges {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    #reg-hero-mobile .rhm-badge {
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 8px;
        padding: 6px 10px;
        text-align: center;
    }

    #reg-hero-mobile .rhm-badge-num {
        font-size: 15px;
        font-weight: 900;
        color: white;
        line-height: 1;
        margin-bottom: 2px;
    }

    #reg-hero-mobile .rhm-badge-lbl {
        font-size: 9px;
        color: rgba(255,255,255,0.85);
        font-weight: 600;
        white-space: nowrap;
    }

    /* ── 4. AVANTAGES — scroll horizontal ── */
    #reg-benefits-mobile {
        background: #f8f5ff;
        padding: 12px 0 12px 16px;
        border-bottom: 5px solid #f1f5f9;
    }

    #reg-benefits-mobile .rbm-title {
        font-size: 12px;
        font-weight: 800;
        color: #4a5568;
        margin-bottom: 10px;
        padding-right: 16px;
    }

    #reg-benefits-mobile .rbm-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        padding-right: 16px;
    }

    #reg-benefits-mobile .rbm-list::-webkit-scrollbar { display: none; }

    #reg-benefits-mobile .rbm-card {
        flex: 0 0 140px;
        background: white;
        border-radius: 10px;
        padding: 10px 12px;
        border-left: 3px solid #667eea;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }

    #reg-benefits-mobile .rbm-icon {
        font-size: 20px;
        margin-bottom: 5px;
    }

    #reg-benefits-mobile .rbm-card-title {
        font-size: 11px;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 3px;
    }

    #reg-benefits-mobile .rbm-card-text {
        font-size: 10px;
        color: #94a3b8;
        line-height: 1.4;
    }

    /* ── 5. ONGLETS — conservés, pleine largeur ── */
    .column.one-second .column_attr > div[style*="display: flex; gap: 6px"] {
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-bottom: 2px solid #f1f5f9 !important;
        padding: 8px !important;
    }

    /* ── 6. FORMULAIRE — sections bord à bord ── */
    #contactWrapper {
        background: #f5f7fa;
    }

    /* Titres de section */
    .form-section-title {
        font-size: 12px !important;
        font-weight: 800 !important;
        margin: 0 !important;
        padding: 12px 16px 10px !important;
        border-bottom: 1.5px solid #fce7f3 !important;
        background: white !important;
    }

    /* Chaque groupe de champs — section blanche */
    .reg-form-section {
        background: white;
        border-bottom: 5px solid #f1f5f9;
        padding: 12px 16px 14px;
    }

    /* Inputs */
    #registrationForm input,
    #registrationForm select,
    #registrationForm textarea,
    #form-tab-connexion input {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 15px !important;
        padding: 11px 14px !important;
        min-height: 44px !important;
        border-radius: 8px !important;
        margin-bottom: 0 !important;
    }

    #registrationForm textarea {
        min-height: 80px !important;
    }

    /* Colonnes one-second dans le form → 1 colonne */
    #registrationForm .column.one-second {
        margin-bottom: 10px !important;
    }

    /* Prénom + Nom côte à côte */
    #reg-name-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    #reg-name-row .column.one-second {
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    /* Bouton TVA inline */
    #reg-vat-row {
        display: flex !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }

    #reg-vat-row input {
        flex: 1 !important;
        min-width: 0 !important;
    }

    #validate-vat-btn {
        padding: 11px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        min-height: 44px !important;
    }

    /* Bouton submit */
    .button.button_theme {
        width: 100% !important;
        padding: 14px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    /* Helper text */
    .helper-text {
        font-size: 11px !important;
    }

    /* Flash messages */
    .alert {
        border-radius: 0 !important;
        margin: 0 0 6px !important;
    }

    /* Footer formulaire */
    .form-footer-text {
        padding: 12px 16px !important;
        background: white !important;
        font-size: 12px !important;
    }

    /* Section connexion */
    #form-tab-connexion {
        padding: 0 !important;
    }

    #form-tab-connexion > h3 {
        font-size: 15px !important;
        padding: 12px 16px 0 !important;
        background: white !important;
    }

    #form-tab-connexion > p {
        font-size: 12px !important;
        padding: 4px 16px 10px !important;
        background: white !important;
    }

    #form-tab-connexion .column.one {
        padding: 0 16px 10px !important;
        background: white !important;
    }

    /* Checkbox remember me */
    #form-tab-connexion .column.one[style*="justify-content: space-between"] {
        padding: 4px 16px 10px !important;
        font-size: 12px !important;
    }
}