:root {
    --primary: #0052FF;
    --primary-dark: #003dcc;
    --secondary: #10B981;
    --danger: #EF4444;
    --dark: #0A0B0D;
    --gray: #6B7280;
    --light: #F5F7FA;
    --white: #FFFFFF;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --border: #E5E7EB;
}

/* === CONTAINER GLOBAL === */
.register-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* === EN-TÊTE === */
.register-header {
    text-align: center;
    margin-bottom: 3rem;
}

.register-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.register-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* === CARTES & FORMULAIRE === */
.register-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.register-form {
    margin-bottom: 1.5rem;
}

/* === GRILLE DES CHAMPS (2 COLONNES) === */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* === GROUPE DE CHAMP === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

/* === CHAMP TÉLÉPHONE === */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.country-select {
    min-width: 120px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.country-select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

/* === TEXTES D'AIDE === */
.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.8rem;
}

/* === FIX IPHONE & MOBILE : CHECKBOXES CLICLABLES === */
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    line-height: 1.5;
    cursor: pointer;           /* Rend tout l'élément cliquable */
    user-select: none;
}

/* Réinitialise proprement la checkbox */
.checkbox-item input[type="checkbox"] {
    -webkit-appearance: checkbox !important; /* Force le rendu natif sur iOS */
    appearance: checkbox !important;
    margin: 0;
    margin-top: 0.25rem;
    transform: none;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
}

/* Le label suit bien la case */
.checkbox-item label {
    cursor: pointer;
    margin: 0;
    padding: 0;
    color: #0A0B0D;
    font-size: 1rem;
    line-height: 1.5;
    flex: 1;
}

.checkbox-item a {
    color: #0052FF;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-item a:hover {
    text-decoration: underline;
}

/* === BOUTONS === */
.form-actions {
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: auto;
    min-width: 200px;
    max-width: 100%;
    display: block;
    margin: 0 auto; /* Centre le bouton */
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block; /* Important pour le centrage */
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* === FOOTER DU FORMULAIRE === */
.register-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
}

.register-footer p {
    color: var(--gray);
    font-size: 0.95rem;
}

.register-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.register-footer a:hover {
    text-decoration: underline;
}

/* === AVANTAGES (BENEFITS) === */
.register-benefits {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.register-benefits h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: transform 0.2s ease, background 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: var(--light);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--gray);
    line-height: 1.5;
}

/* === ALERTES (SUCCESS / ERROR) === */
.message-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* === DESIGN PC AVANCÉ : FORMULAIRE & AVANTAGES (≥769px) === */
@media (min-width: 769px) {
    /* === CONTENEUR GLOBAL === */
    .register-container {
        max-width: 1400px;
        margin: 3rem auto;
        padding: 0 2rem;
    }

    /* === FORMULAIRE D'INSCRIPTION === */
    .register-card {
        max-width: 820px;
        margin: 0 auto 2.5rem;
        padding: 4rem 5rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
        background: #ffffff;
        border: 1px solid #E5E7EB;
    }

    /* === TITRE ET TEXTE === */
    .register-header h1 {
        font-size: 2.8rem;
        font-weight: 700;
        color: #0A0B0D;
    }

    .register-header p {
        font-size: 1.2rem;
        color: #6B7280;
        max-width: 700px;
        margin: 0.8rem auto 0;
    }

    /* === CHAMPS DU FORMULAIRE === */
    .form-row {
        gap: 1.8rem;
    }

    .form-group label {
        font-size: 1.15rem;
        font-weight: 600;
        color: #0A0B0D;
        text-align: left;
    }

    .form-group input,
    .form-group select {
        font-size: 1.1rem;
        padding: 0.95rem 1.3rem;
        border-radius: 12px;
        border: 1px solid #D1D5DB;
        transition: all 0.2s ease;
    }

    .form-group input:focus,
    .form-group select:focus {
        border-color: #0052FF;
        box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
        outline: none;
    }

    /* === CHAMP TÉLÉPHONE === */
    .phone-input-group {
        gap: 1.2rem;
    }

    .country-select {
        min-width: 150px;
        font-size: 1.1rem;
        padding: 0.95rem;
        border-radius: 12px;
    }

    .phone-input-group input[type="tel"] {
        font-size: 1.1rem;
        border-radius: 12px;
    }

    /* === CASES À COCHER (alignement parfait) === */
    .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
    .checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    line-height: 1.5;
    position: relative;
    padding: 0;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    border: 2px solid #0052FF;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked {
    background: #0052FF;
    border-color: #0052FF;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

    .checkbox-item label {
    font-size: 1rem;
    color: #0A0B0D;
    line-height: 1.5;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex: 1;
}

    .checkbox-item a {
        color: #0052FF;
        font-weight: 500;
    }

    /* === BOUTON "CRÉER MON COMPTE" === */
    .form-actions {
        text-align: center;
        margin: 2.8rem 0 1.2rem;
    }

    .btn-primary.btn-large {
        display: inline-block;
        width: auto;
        min-width: 320px;
        padding: 1.3rem 3.5rem;
        font-size: 1.3rem;
        font-weight: 700;
        border-radius: 14px;
        background: #0052FF;
        color: white;
        box-shadow: 0 8px 24px rgba(0, 82, 255, 0.35);
        transition: all 0.3s ease;
        letter-spacing: -0.02em;
    }

    .btn-primary.btn-large:hover {
        background: #003dcc;
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0, 82, 255, 0.4);
    }

    /* === FOOTER DU FORMULAIRE === */
    .register-footer {
        text-align: center;
        margin-top: 0.5rem;
        padding-top: 1.8rem;
        border-top: 1px solid #E5E7EB;
    }

    .register-footer p {
        font-size: 1.05rem;
        color: #6B7280;
    }

    .register-footer a {
        color: #0052FF;
        font-weight: 600;
        text-decoration: none;
    }

    .register-footer a:hover {
        text-decoration: underline;
    }

    /* === SECTION "POURQUOI CHOISIR CRYPTOSEVEN ?" === */
    .register-benefits {
        max-width: 820px;
        margin: 0 auto 3rem;
        padding: 3.2rem 4rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
        background: #ffffff;
        border: 1px solid #E5E7EB;
    }

    .register-benefits h3 {
        font-size: 2.2rem;
        font-weight: 700;
        color: #0A0B0D;
        margin-bottom: 2.2rem;
        text-align: center;
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.2rem;
    }

    .benefit-item {
        text-align: center;
        padding: 2.2rem 1.8rem;
        border-radius: 16px;
        background: #f9fafb;
        transition: all 0.3s ease;
        border: 1px solid #E5E7EB;
    }

    .benefit-item:hover {
        transform: translateY(-10px);
        background: #f0f9ff;
        border-color: #0052FF;
        box-shadow: 0 12px 28px rgba(0, 82, 255, 0.16);
    }

    .benefit-icon {
        font-size: 3.4rem;
        margin-bottom: 1.3rem;
    }

    .benefit-item h4 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #0A0B0D;
        margin-bottom: 0.9rem;
    }

    .benefit-item p {
        font-size: 0.98rem;
        color: #6B7280;
        line-height: 1.65;
    }
}
    /* === FOOTER DU FORMULAIRE === */
    .register-footer {
        max-width: 800px;
        margin: 0 auto;
        padding: 1.5rem 2rem 0;
        text-align: center;
    }

    .register-footer p {
        font-size: 1.05rem;
    }
}

/* === RESPONSIVE MOBILE (≤768px) === */
/* === RESPONSIVE MOBILE (≤768px) === */
@media (max-width: 768px) {
    .register-container {
        padding: 1rem;
    }

    .register-card {
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .country-select,
    .phone-input-group input[type="tel"] {
        height: 50px;
        padding: 12px 14px;
        font-size: 1.1rem;
    }

    .btn-primary.btn-large {
        padding: 1.2rem 0;
        font-size: 1.2rem;
        margin-top: 1rem;
        width: 100% !important;      /* ✅ Pleine largeur */
        text-align: center;          /* ✅ Texte centré */
    }

    /* ✅ Centrage du bouton dans son conteneur */
    .form-actions {
        text-align: center;
    }
}