.aph-registration-container {}

.aph-registration-header {
    text-align: center;
    margin-bottom: 3rem;
}

.aph-subtitle {
    color: var(--secondary);
    margin-top: var(--space-m);
    font-size: var(--text-l);
}

.aph-registration-process {
    background: var(--primary-semi-light);
    color: var(--white);
    margin-bottom: 3rem;

    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shade-light);
    padding: var(--space-m);
}

.aph-form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.aph-form-submit {
    text-align: center;
}

.aph-button {
    background: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: var(--text-m);
    cursor: pointer;
    transition: all 0.3s ease;
}

.aph-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.aph-success-message {
    background: var(--secondary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    text-align: center;
    font-size: var(--text-m);
    font-weight: 600;
}

.aph-error-messages {
    background: var(--secondary);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .aph-registration-container {
        padding: 1rem;
    }

    .aph-steps {
        gap: 1rem;
    }
}

.logo-aph-container img {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-aph {
    max-width: 250px;
    height: auto;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 600;
}

.aph-registration-success {
    padding: 2rem;
    text-align: center;
}

.aph-already-logged {
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aph-user-info {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.aph-user-info h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.aph-user-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.aph-verification-message {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.aph-verification-message p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #666;
}

.aph-logout-section {
    text-align: center;
}

.aph-logout-section p {
    margin-bottom: 1rem;
    color: #666;
}

.aph-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.aph-button:hover {
    background-color: #0056b3;
}

.aph-verify-account {
    background-color: #28a745;
}

.aph-verify-account:hover {
    background-color: #218838;
}

.aph-logout {
    background-color: #dc3545;
}

.aph-logout:hover {
    background-color: #c82333;
}

/* Styles pour le champ genre dans le formulaire de vérification */
.aph-verification-message .aph-form-field {
    margin-bottom: 1rem;
}

.aph-verification-message label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.aph-verification-message select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
}

.aph-verification-message select:focus {
    outline: none;
    border-color: #007bff;
}

/* Container des étapes */
.aph-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-s);
    margin-top: 1.5rem;
    color: var(--black);
}

/* Carte individuelle */
.aph-step {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--space-xs);
}

/* En-tête de l'étape */
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: var(--space-xs);
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--primary-light);
    margin-bottom: var(--space-xs);
}

.step-header h3 {
    margin: 0;
    font-size: var(--text-m);
    font-weight: 600;
}

/* Numéro de l'étape */
.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
}

/* Description de l'étape */
.step-description {
    color: var(--secondary);
    line-height: 1.5;
    flex-grow: 1;
    font-size: var(--text-s);
}

.step-additional-info {
    margin-top: var(--space-xs);
    color: var(--primary);
    line-height: 1.5;
    flex-grow: 1;
    font-size: var(--text-s);
    font-style: italic;
}

/* États des étapes */
.step-header.completed {
    background: var(--primary-light);
}

.step-header.completed .step-number {
    background: var(--white);
    color: var(--primary);
}

.step-header.completed h3::after {
    content: " ✓";
    color: var(--black);
}

.step-header.current {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
}

.step-header.current .step-number {
    transform: scale(1.1);
    background-color: var(--white);
    color: var(--primary);
}


.step-header.current h3 {
    color: var(--white);
    font-weight: 700;
}

/* Dernière étape si impaire */
.aph-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
}

/* Information additionnelle */
.text--600 {
    font-weight: 600;
    margin-top: 1rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .aph-steps {
        grid-template-columns: 1fr;
    }

    .aph-step:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
    }

    .step-description {
        padding: var(--space-xs);
    }
}

.gas-explication-nouveau-membre-intro {
    margin-bottom: var(--space-l);
    text-align: justify;
}

/* Styles pour la section "déjà connecté" */
.aph-already-logged {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: var(--space-s);
    margin: var(--space-s) 0;
    font-size: var(--text-m);
}

.aph-user-info {
    background-color: var(--primary-semi-light);
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    padding: var(--space-s);
    margin-bottom: var(--space-s);
}

.aph-user-info h2 {
    color: #333;
    margin-bottom: var(--space-s);
    font-size: var(--text-l);
    font-weight: 600;
}

.aph-user-info p {
    margin: var(--space-s) 0;
    color: #555;
    font-size: var(--text-m);
    line-height: 1.5;
}

.aph-verification-message {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: var(--radius);
    padding: var(--space-s);
    margin-bottom: var(--space-s);
}

.aph-verification-message p {
    color: #0d47a1;
    margin-bottom: var(--space-s);
    font-size: var(--text-m);
    line-height: 1.5;
}

.aph-logout-section {
    background-color: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
    padding: var(--space-s);
}

.aph-logout-section p {
    color: #e65100;
    margin-bottom: var(--space-s);
    font-size: var(--text-m);
    line-height: 1.5;
}

.aph-button {
    display: inline-block;
    padding: var(--space-s);
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-size: var(--text-m);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.aph-button:hover {
    background-color: #005177;
}

.aph-verify-account {
    background-color: #28a745;
}

.aph-verify-account:hover {
    background-color: #218838;
}

.aph-logout {
    background-color: #dc3545;
}

.aph-logout:hover {
    background-color: #c82333;
}