/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Logo */
.logo-container {
    text-align: center;
    margin: 2.5rem 0 1.5rem 0;
    padding: 1rem 0;
}

.logo {
    height: 3.92rem;
    max-width: 100%;
    object-fit: contain;
}

.logo-small {
    height: 2rem;
}

/* PAGE 1: IMPAYÉ */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 8rem);
    padding: 2rem 0;
}

.alert-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 2.5rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.alert-header {
    margin-bottom: 2rem;
}

.alert-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: #c22026;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.alert-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.alert-subtitle {
    color: #666;
    font-size: 1rem;
}

.amount-section {
    background: #f9f9f9;
    border: 2px solid #c22026;
    border-radius: 8px;
    padding: 1.8rem;
    margin: 1.5rem 0;
}

.amount-label {
    color: #666;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.amount-value {
    font-size: 3rem;
    font-weight: 900;
    color: #c22026;
}

.amount-date {
    color: #999;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.warning-section {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

.warning-section p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.benefits-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit-icon {
    width: 2rem;
    height: 2rem;
    background: #c22026;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-item p {
    color: #333;
    font-size: 0.95rem;
}

.btn-primary {
    width: 100%;
    background: #c22026;
    color: white;
    font-weight: 700;
    padding: 0.95rem 2rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: #a01a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 32, 38, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.help-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.help-link {
    color: #c22026;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.help-link:hover {
    color: #a01a1f;
    text-decoration: underline;
}

/* PAGE 2: FORMULAIRE */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 1rem 0;
}

.btn-back {
    background: none;
    border: none;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-back:hover {
    color: #c22026;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
}

.title-green {
    color: #c22026;
}

.title-gray {
    color: #333;
}

.form-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.form-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    outline: none;
    border-color: #c22026;
    box-shadow: 0 0 0 3px rgba(194, 32, 38, 0.1);
    background: white;
}

.form-group input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.phone-input {
    position: relative;
    display: flex;
    align-items: center;
}

.flag-icon {
    position: absolute;
    left: 0.75rem;
    width: 1.5rem;
    height: 1rem;
    object-fit: cover;
    border-radius: 0.125rem;
    z-index: 1;
}

.phone-input input {
    padding-left: 3rem;
}

.section-title {
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    font-weight: 500;
}

.form-submit {
    text-align: center;
    padding-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .alert-card {
        padding: 2rem;
    }
    
    .alert-title {
        font-size: 1.5rem;
    }

    .alert-icon {
        width: 4rem;
        height: 4rem;
    }
    
    .amount-value {
        font-size: 2.2rem;
    }
    
    .form-card {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-title h1 {
        font-size: 1.5rem;
    }
    
    .form-header {
        padding: 1rem 0;
    }
    
    .logo {
        height: 3.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .alert-card {
        padding: 1.5rem;
    }
    
    .amount-section {
        padding: 1.2rem;
    }
    
    .warning-section {
        padding: 1rem;
    }

    .benefits-section {
        margin: 1rem 0;
        padding: 1rem 0;
        gap: 0.75rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn-primary {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .logo {
        height: 3rem;
    }

    .alert-title {
        font-size: 1.25rem;
    }

    .form-title h1 {
        font-size: 1.3rem;
    }

    .amount-value {
        font-size: 2rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .alert-card {
        padding: 1.25rem;
    }

    .alert-title {
        font-size: 1.1rem;
    }
    
    .amount-value {
        font-size: 1.8rem;
    }
    
    .form-title h1 {
        font-size: 1.15rem;
    }
}