/* assets/style.css */
:root {
    --color-text: #1a1a1a;
    --color-text-light: #666;
    --color-border: #e0e0e0;
    --color-accent: #2563eb;
    --color-error: #dc2626;
    --spacing-unit: 1rem;
    --max-width: 680px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: #fafafa;
    padding: 2rem 1rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

section {
    margin-bottom: 2.5rem;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.intro p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Formulaire de code d'accès */
.access-code {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.code-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.code-input-wrapper {
    display: flex;
    gap: 0.8rem;
}

.code-form input[type="text"] {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 0.3em;
    text-align: center;
    transition: border-color 0.2s;
}

.code-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

.code-form input[type="text"].error {
    border-color: var(--color-error);
    animation: shake 0.3s;
}

.code-form button {
    padding: 0.7rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.code-form button:hover {
    background: #1d4ed8;
}

.error-message {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.6rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Reste du CSS identique */
.value ul {
    list-style: none;
}

.value li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.7rem;
}

.value li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.function {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--color-border);
}

.function:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.function h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.function p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.contact {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.email {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--color-text);
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn:hover {
    background: #1d4ed8;
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 1.8rem 1.2rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }

    .code-input-wrapper {
        flex-direction: column;
    }

    .code-form button {
        width: 100%;
    }
}