/* Variables */
:root {
    --primary:    #8ED2C1;
    --secondary:  #E096A4;
    --accent:     #FFE8C6;
    --bg:         #FEF7E5;
    --text:       #4B5563;
    --border:     #E5E7EB;
    --radius-card: 12px;
    --radius-btn:  8px;
    --shadow:     0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Lato', Inter, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--text);
}

h1 em, h2 em {
    font-style: normal;
    color: var(--secondary);
}

/* Layout */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.site-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.site-title img {
    height: 36px;
    width: auto;
}

.site-title em {
    font-style: normal;
    color: var(--secondary);
}

/* Typographie */
p { line-height: 1.6; margin-bottom: 1rem; }
h1 { font-size: 1.8rem; margin-bottom: 1rem; }
a { color: var(--primary); }

/* Boutons */
button, .btn {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6em 1.4em;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
    transition: opacity 0.15s;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

button:hover { opacity: 0.9; }

/* Bouton lien */
a.btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 1rem;
}

/* Vote */
.vote-progress {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.ticket-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.ticket-phase {
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--primary);
    border-radius: 4px;
    padding: 0.2em 0.6em;
    margin-bottom: 0.75rem;
}

.ticket-card h1 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.ticket-texte {
    font-style: italic;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.ticket-explication {
    margin-bottom: 0;
}

.ticket-taille-atelier {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0;
}

/* Actions vote */
.vote-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.btn-back {
    background: #fff;
    color: var(--text);
    border: 2px solid var(--border);
    box-shadow: none;
}

.btn-back:hover:not(:disabled) { border-color: var(--primary); opacity: 1; }

.btn-back:disabled {
    opacity: 0.3;
    cursor: default;
}

.btn-validate {
    background: var(--primary);
}

.btn-validate:disabled {
    opacity: 0.35;
    cursor: default;
}

.ticket-done {
    text-align: center;
    padding: 3rem 0;
    font-size: 1.2rem;
}

/* Card list (impact buttons) */
ul.card-list, ul#card-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    margin: 1rem 0;
    padding: 0;
}
ul.card-list li, ul#card-list li {
    display: flex;
}

.card-btn {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.8em 1.4em;
    min-width: 3.2rem;
    background: var(--accent);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    margin: 0;
}

.card-btn:hover { border-color: var(--primary); }

.card-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Responsive mobile */
@media (max-width: 520px) {
    .container {
        padding: 0 1rem 2rem;
    }
    header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem 0 1.25rem;
        margin-bottom: 1.25rem;
    }
    .site-title {
        font-size: 1.1rem;
    }
    .site-title img {
        height: 28px;
    }
    button, .btn {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
}
