/* 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.25rem;
}

/* Boutons */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

button:active { transform: scale(0.97); }

form button[type="submit"] {
    background: var(--primary);
    color: #fff;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
}

form button[type="submit"]:hover { opacity: 0.88; }

/* Home */
h1 { font-size: 2rem; margin-bottom: 0.75rem; }
p  { line-height: 1.6; color: var(--text); }

/* Sessions récentes */
.recent-sessions-title {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--text);
}

.recent-sessions-list {
    list-style: none;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 0.75rem 1rem;
}

.session-link {
    flex: 1;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.session-link:hover { color: var(--secondary); }

.session-delete {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 6px;
    opacity: 0.5;
}

.session-delete:hover { opacity: 1; }

.session-delete--confirm {
    border-color: var(--secondary);
    color: var(--secondary);
    opacity: 1;
}

/* Formulaire de création */
.create-form { margin-top: 1.5rem; }

.create-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.create-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.create-form input[type="number"] {
    width: 5rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    font-size: 1rem;
    text-align: center;
    background: #fff;
    color: var(--text);
}

.create-form button[type="submit"] {
    margin-top: 0;
}

/* Vue admin — liste des boards */
.admin-boards-count {
    margin-bottom: 1.5rem;
    color: var(--text);
    opacity: 0.7;
}

.boards-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.board-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.board-label {
    flex: 1;
}

.board-status {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.6;
    flex: 1;
    text-align: center;
}

.board-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.board-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: border-color 0.15s;
}

.board-action-link:hover {
    border-color: var(--primary);
}

/* Zone de traitement d'un board */
#boards-process {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.board-process {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem;
}

.board-process-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Modale QR code */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.share-modal-box {
    position: relative;
    background: #fff;
    border-radius: 1.2rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    max-width: 90vw;
}
.share-modal-title {
    margin: 0 0 1.5rem;
    font-size: 1.3rem;
    color: var(--text);
}
.share-modal-qr-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.share-modal-qr {
    width: clamp(160px, 70vw, 350px);
    height: auto;
    display: block;
    border-radius: 0.5rem;
}
.share-modal-copy-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-card);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}
.share-modal-close {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-card);
    padding: 0.5em 1.5em;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}
