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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h60v60H0z" fill="none"/><path d="M30 0v60M0 30h60" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.email-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.email-wrapper:hover {
    transform: translateY(-4px);
}

.email-header {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: 24px 28px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.email-field {
    margin-bottom: 10px;
    display: flex;
    font-size: 14px;
    line-height: 1.6;
}

.email-field strong {
    min-width: 60px;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.email-field span {
    color: #1f2937;
}

.clickable {
    cursor: text;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
    display: inline-block;
}

.clickable.clicked {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    font-weight: 500;
}

.email-body {
    padding: 32px 28px;
    line-height: 1.8;
    color: #374151;
    font-size: 15px;
    background: #fff;
}

.email-body p {
    margin-bottom: 16px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin: 20px 0;
    cursor: pointer;
    border: none;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.footer-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 32px;
    line-height: 1.6;
}

.score-panel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.score-panel h3 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-display {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 24px 0;
    letter-spacing: -2px;
    text-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.found-items {
    margin-top: 20px;
}

.found-item {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
    font-size: 14px;
    display: none;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.found-item.show {
    display: block;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.found-item strong {
    color: #d97706;
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.hint-button {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hint-button:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.final-message {
    display: none;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.final-message.show {
    display: block;
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-2deg);
    }
    50% {
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.final-message h4 {
    color: #059669;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.final-message p {
    color: #047857;
    font-size: 14px;
    line-height: 1.6;
}

.instruction {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.instruction p {
    color: #1f2937;
    font-size: 20.5px;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

.instruction p strong {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Media Queries pour Mobile */
@media screen and (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .container {
        max-width: 100%;
    }

    .instruction {
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .instruction p {
        font-size: 14px;
    }

    .score-panel {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .score-panel h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .score-display {
        font-size: 42px;
        margin: 16px 0;
    }

    .hint-button {
        font-size: 13px;
        padding: 8px 16px;
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .found-item {
        padding: 12px 14px;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .found-item strong {
        font-size: 14px;
    }

    .email-wrapper {
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .email-header {
        padding: 16px 16px;
    }

    .email-field {
        font-size: 13px;
        margin-bottom: 8px;
        flex-direction: column;
        gap: 4px;
    }

    .email-field strong {
        min-width: auto;
        font-size: 12px;
    }

    .email-body {
        padding: 20px 16px;
        font-size: 14px;
        line-height: 1.7;
    }

    .email-body p {
        margin-bottom: 14px;
    }

    .clickable {
        padding: 2px 4px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
        margin: 16px 0;
        width: 100%;
        text-align: center;
    }

    .footer-text {
        font-size: 12px;
        margin-top: 24px;
    }

    .final-message {
        padding: 16px;
    }

    .final-message h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .final-message p {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 16px 10px;
    }

    .instruction p {
        font-size: 13px;
    }

    .score-panel {
        padding: 16px 12px;
    }

    .score-panel h3 {
        font-size: 15px;
    }

    .score-display {
        font-size: 36px;
        margin: 12px 0;
    }

    .hint-button {
        font-size: 12px;
        padding: 8px 12px;
        margin-right: 6px;
    }

    .found-item {
        padding: 10px 12px;
        font-size: 12px;
    }

    .email-header {
        padding: 14px 12px;
    }

    .email-field {
        font-size: 12px;
    }

    .email-body {
        padding: 16px 12px;
        font-size: 13px;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .footer-text {
        font-size: 11px;
    }
}

