/* Reset minimal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --color-primary: #001E5F;
    --color-secondary: #277cfc;
    --color-success: #4CAF50;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #e0e0e0;
    --color-bg-light: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Layout principal */
.verification-page {
    display: grid;
    grid-template-columns: 520px 1fr;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
}

/* PANNEAU GAUCHE - Informations */
.info-panel {
    background: linear-gradient(135deg, var(--color-primary) 0%, #002a7f 100%);
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.info-panel::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.info-panel__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 180px;
    height: auto;
}

/* Titre principal */
.main-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.main-heading h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Section explications */
.explanation-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.explanation-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.explanation-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon.shield {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(0, 212, 170, 0.1) 100%);
    color: #00d4aa;
}

.card-icon.mail {
    background: linear-gradient(135deg, rgba(39, 124, 252, 0.2) 0%, rgba(39, 124, 252, 0.1) 100%);
    color: var(--color-secondary);
}

.card-icon.check {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    color: var(--color-success);
}

.card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.card-content p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.card-content strong {
    color: #fff;
    font-weight: 600;
}

/* Footer du panneau info */
.info-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.info-footer p {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.info-footer p svg {
    flex-shrink: 0;
}

.info-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.info-link:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* PANNEAU DROITE - Captcha */
.captcha-panel {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.captcha-container {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Progress steps */
.progress-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
}

.step.active {
    color: var(--color-secondary);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
}

.step.active .step-number {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
}

.captcha-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.captcha-header {
    text-align: center;
    margin-bottom: 30px;
}

.captcha-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.captcha-header p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Formulaire */
.captcha-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Image captcha avec bouton refresh */
.captcha-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.captcha-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.captcha-refresh-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: var(--color-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.captcha-refresh-btn:hover {
    background: #1a6ee0;
    transform: scale(1.05);
}

.captcha-refresh-btn:active {
    transform: scale(0.95);
}

.captcha-refresh-btn img {
    width: 24px;
    height: 24px;
    /* filter: brightness(0) invert(1); */
}

/* Groupe de saisie */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.captcha-input, #captcha_code {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-light);
    transition: var(--transition);
    letter-spacing: 1px;
    color: #000;
}

.captcha-input, #captcha_code:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(39, 124, 252, 0.1);
}

.captcha-input, #captcha_code::placeholder {
    color: #aaa;
    letter-spacing: normal;
    text-transform: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Bouton de validation */
.submit-btn {
    width: 100%;
    height: 56px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background: #002a7f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

/* Texte d'aide */
.help-text {
    padding: 15px;
    background: var(--color-bg-light);
    border-left: 3px solid var(--color-secondary);
}

.help-text p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Badge de confiance */
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: var(--color-bg-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 1200px) {
    .verification-page {
        grid-template-columns: 450px 1fr;
    }
    
    .info-panel {
        padding: 40px 35px;
    }
    
    .main-heading h1 {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .verification-page {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .info-panel {
        min-height: auto;
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
    }

    .logo-container {
        order: -2; /* Logo en premier */
        margin-bottom: 20px;
    }

    .captcha-panel {
        order: -1; /* Captcha en deuxième */
        padding: 40px 30px;
    }

    .info-panel__content {
        gap: 30px;
    }

    .main-heading {
        order: 1; /* Titre après le captcha */
    }
    
    .explanation-section {
        flex-direction: row;
        flex-wrap: wrap;
        order: 2; /* Explications après le titre */
    }

    .info-footer {
        order: 3; /* Footer en dernier */
    }
    
    .explanation-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .info-panel {
        padding: 30px 20px;
    }

    .logo-container {
        order: -2; /* Logo toujours en premier */
        margin-bottom: 20px;
    }

    .captcha-panel {
        order: -1; /* Captcha en deuxième */
    }

    .main-heading {
        order: 1; /* Titre après le captcha */
    }

    .explanation-section {
        order: 2; /* Explications après le titre */
    }

    .info-footer {
        order: 3; /* Footer en dernier */
    }
    
    .logo {
        width: 140px;
    }
    
    .main-heading {
        flex-direction: column;
    }
    
    .main-heading h1 {
        font-size: 22px;
    }
    
    .explanation-section {
        flex-direction: column;
    }
    
    .explanation-card {
        flex: 1 1 100%;
    }
    
    .captcha-card {
        padding: 30px 20px;
    }
    
    .captcha-header h2 {
        font-size: 20px;
    }
    
    .captcha-image {
        height: 140px;
    }

    .progress-steps {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .captcha-panel {
        padding: 20px;
    }
    
    .captcha-card {
        padding: 25px 15px;
    }
    
    .captcha-input, #captcha_code {
        height: 46px;
        font-size: 14px;
    }
    
    .submit-btn {
        height: 50px;
        font-size: 15px;
    }
}