/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f4f1ea;
    color: #1e2a2e;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2c3e4e, #1a2a36);
    color: white;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1rem;
    opacity: 0.85;
}

.links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.links a {
    color: #d4c5a3;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.links a:hover {
    color: #f3e7c9;
    text-decoration: underline;
}

.content {
    padding: 2rem;
}

h2 {
    color: #2c3e4e;
    border-left: 6px solid #b4653a;
    padding-left: 1rem;
    margin: 1.5rem 0 1rem;
    font-size: 1.8rem;
}

h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #3b5c6d;
    font-size: 1.3rem;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    flex: 1 1 200px;
    background: #f9f7f2;
    padding: 1.5rem;
    border-radius: 24px;
    border-left: 4px solid #b4653a;
}

.card h3 {
    margin-top: 0;
    color: #2c3e4e;
}

.faq-item {
    background: #f9f7f2;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    margin-bottom: 0.8rem;
}

.btn {
    background: #b4653a;
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #8e4f2c;
}

.btn-secondary {
    background: #2c3e4e;
}

.btn-secondary:hover {
    background: #1a2a36;
}

.btn-small {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

.section {
    background: #f9f7f2;
    padding: 1.5rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
}

.progress-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f0eee8;
    border-radius: 20px;
}

.step {
    padding: 0.4rem 0.8rem;
    background: #ddd2bc;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #555;
}

.step.done {
    background: #2c6e2c;
    color: white;
}

.admin-panel {
    background: #eef2f3;
    padding: 1.5rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    border: 1px solid #cdc2aa;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat {
    background: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.stat strong {
    color: #b4653a;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.alert-success {
    background: rgba(42,90,58,0.15);
    border: 1px solid #2a5a3a;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: #2a5a3a;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(139,58,58,0.15);
    border: 1px solid #8b3a3a;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: #8b3a3a;
    margin-bottom: 1rem;
}

.quiz-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid #e0d8ca;
}

.card-note {
    background: #fef9e8;
    border-left: 5px solid #b4653a;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 20px;
}

.card-note textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #ddd0b6;
    padding: 12px;
    font-family: inherit;
    margin-top: 8px;
    background: #fffdf8;
}

.script-content {
    background: #fcfaf5;
    padding: 1rem;
    border-radius: 16px;
    margin-top: 0.5rem;
}

.script-content p {
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.corrige-content {
    background: #fcfaf5;
    padding: 1rem;
    border-radius: 16px;
    margin-top: 0.5rem;
}

details {
    margin-top: 0.5rem;
}

details summary {
    cursor: pointer;
    font-weight: 600;
    color: #2c3e4e;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    background: #f4f1ea;
    color: #5a6f7a;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 { font-size: 1.6rem; }
    .cards { flex-direction: column; }
    .links { gap: 0.8rem; }
    .content { padding: 1rem; }
    .stats-grid { flex-direction: column; }
}

@media print {
    .btn, .btn-group, .no-print { display: none !important; }
    body { background: white; padding: 0; }
    .container { box-shadow: none; border-radius: 0; }
}