* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000;
    background-image: url("assets/sang.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 600px;
    background: transparent;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.title {
    text-align: center;
    color: #e80000;
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.55),
        0 10px 24px rgba(0, 0, 0, 0.6);
}

.rectangles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rectangle-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.color-zone {
    width: 100%;
    height: 80px;
    transition: opacity 0.2s ease;
}

.color-1 {
    background: linear-gradient(135deg, #12a125 0%, #12a125 100%);
}

.color-2 {
    background: linear-gradient(135deg, #d5000b 0%, #d5000b 100%);
}

.color-3 {
    background: linear-gradient(135deg, #1a74db 0%, #1a74db 100%);
}

.color-4 {
    background: linear-gradient(135deg, #d18c0d 0%, #d18c0d 100%);
}

.color-5 {
    background: linear-gradient(135deg, #7c0dd1 0%, #7c0dd1 100%);
}

.color-6 {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
}

.text-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background-color: #f9f9f9;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
}

.text-input::placeholder {
    color: #999;
}

.text-input.correct {
    background-color: #d4edda !important;
    border-color: #00d632 !important;
    color: #155724;
}

.text-input.incorrect {
    background-color: #f8d7da !important;
    border-color: #e70017 !important;
    color: #721c24;
}

.validate-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 0 12px 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.validate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.validate-button:active {
    transform: translateY(0);
}

/* Responsive pour téléphones */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-radius: 15px;
    }

    .title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .rectangles-container {
        gap: 15px;
    }

    .color-zone {
        height: 60px;
    }

    .text-input {
        padding: 12px;
        font-size: 0.95rem;
    }

    .validate-button {
        padding: 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.3rem;
    }

    .color-zone {
        height: 50px;
    }

    .text-input {
        padding: 10px;
        font-size: 0.9rem;
    }

    .validate-button {
        padding: 10px;
        font-size: 0.9rem;
    }
}
