* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111827;
    color: #f9fafb;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    margin-bottom: 8px;
    font-size: 2rem;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.card {
    background: #1f2937;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    margin-top: 14px;
    font-weight: bold;
}

textarea,
select,
input[type="datetime-local"] {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #374151;
    background: #111827;
    color: #f9fafb;
    font-size: 1rem;
}

.big-button,
.secondary-button,
button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 14px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.big-button {
    background: #2563eb;
    color: white;
}

.secondary-button {
    background: #374151;
    color: white;
}

.alert.success {
    background: #065f46;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.inbox-item h2 {
    margin-top: 0;
    font-size: 1.1rem;
}
.voice-box {
    margin-top: 16px;
    margin-bottom: 8px;
}

.voice-status {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 0.95rem;
}
input[type="number"] {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #374151;
    background: #111827;
    color: #f9fafb;
    font-size: 1rem;
}
.bucket-label {
    margin-top: 0;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 0.95rem;
}
.task-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.task-link-card .card {
    transition: transform 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.task-link-card:hover .card,
.task-link-card:focus .card {
    transform: translateY(-2px);
    border-color: #4b5563;
}

.danger-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 14px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: #b91c1c;
    color: white;
}
.app-nav {
    display: grid;
    gap: 18px;
}

.nav-group h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #cbd5e1;
}

.active-link {
    outline: 2px solid #60a5fa;
}

.bucket-label {
    margin-top: 0;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.task-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.task-link-card .card {
    transition: transform 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.task-link-card:hover .card,
.task-link-card:focus .card {
    transform: translateY(-2px);
    border-color: #4b5563;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-card h2 {
    margin: 0 0 8px 0;
    font-size: 2rem;
}

.stat-card p {
    margin: 0;
    color: #cbd5e1;
}

@media (min-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .app-nav {
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
    }
}
.calendar-head {
    display: grid;
    gap: 10px;
    align-items: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekday {
    font-weight: bold;
    text-align: center;
    color: #cbd5e1;
    padding: 6px 0;
}

.calendar-cell {
    min-height: 68px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-cell.empty {
    background: transparent;
    border: none;
}

.calendar-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #3b82f6;
    display: inline-block;
    align-self: center;
}

.has-tasks {
    border-color: #3b82f6;
}

.mini-task {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.password-strength {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 0.95rem;
}
.preview-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #374151;
    margin-top: 10px;
}

.inbox-item img,
.card img {
    max-width: 100%;
    height: auto;
}
.app-nav-compact {
    display: grid;
    gap: 12px;
}

.nav-section {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 8px 10px;
}

.nav-section summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    outline: none;
}

.nav-section summary::-webkit-details-marker {
    display: none;
}

.nav-links {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.accordion-list {
    display: grid;
    gap: 12px;
}

.accordion-item {
    padding: 0;
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    color: #f9fafb;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: inherit;
}

.accordion-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.accordion-bucket {
    font-size: 0.85rem;
    color: #93c5fd;
}
.accordion-title {
    font-size: 1rem;
    font-weight: bold;
    color: #f9fafb;
}
.accordion-icon {
    font-size: 1.4rem;
    line-height: 1;
    color: #cbd5e1;
}
.accordion-content {
    border-top: 1px solid #374151;
    padding: 16px;
}
.accordion-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.matrix-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.quadrant h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.quadrant-subtitle {
    margin-top: 0;
    margin-bottom: 14px;
    color: #cbd5e1;
    font-size: 0.95rem;
}
@media (min-width: 900px) {
    .matrix-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.task-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #1f2937;
    color: #93c5fd;
    margin-left: 8px;
    vertical-align: middle;
}

.accordion-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag-filters a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #111827;
    border: 1px solid #374151;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.8rem;
}

.tag-filter-active {
    border-color: #60a5fa !important;
    color: #93c5fd !important;
}
.task-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
    border: 1px solid transparent;
}

.tag-default {
    background: #1f2937;
    color: #cbd5e1;
    border-color: #374151;
}

.tag-pro {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.tag-perso {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

.tag-magasin {
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    border-color: rgba(14, 165, 233, 0.35);
}

.tag-admin {
    background: rgba(249, 115, 22, 0.15);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.35);
}

.tag-courses {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.35);
}

.tag-telephone {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.35);
}

.tag-ordinateur {
    background: rgba(234, 179, 8, 0.15);
    color: #fde68a;
    border-color: rgba(234, 179, 8, 0.35);
}
.task-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
    border: 1px solid transparent;
}

.tag-default {
    background: #1f2937;
    color: #cbd5e1;
    border-color: #374151;
}

.tag-pro {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.tag-perso {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

.tag-magasin {
    background: rgba(14, 165, 233, 0.15);
    color: #7dd3fc;
    border-color: rgba(14, 165, 233, 0.35);
}

.tag-admin {
    background: rgba(249, 115, 22, 0.15);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.35);
}

.tag-courses {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border-color: rgba(168, 85, 247, 0.35);
}

.tag-telephone {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
    border-color: rgba(236, 72, 153, 0.35);
}

.tag-ordinateur {
    background: rgba(234, 179, 8, 0.15);
    color: #fde68a;
    border-color: rgba(234, 179, 8, 0.35);
}
.filter-block {
    margin-bottom: 14px;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.compact-item {
    padding: 0;
}

.compact-trigger {
    padding: 12px 14px;
}

.compact-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.compact-bucket {
    font-size: 0.78rem;
}

.compact-title {
    font-size: 0.95rem;
    line-height: 1.2;
}

.task-meta-inline {
    display: inline-block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-left: 6px;
}

.compact-summary p {
    margin: 4px 0;
}

.pagination-card {
    margin-top: 16px;
}

.pagination-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pagination-info {
    text-align: center;
    color: #cbd5e1;
    font-weight: 600;
}

@media (min-width: 700px) {
    .pagination-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.compact-item {
    padding: 0;
}

.compact-trigger {
    padding: 12px 14px;
}

.compact-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.compact-bucket {
    font-size: 0.78rem;
}

.compact-title {
    font-size: 0.95rem;
    line-height: 1.2;
}

.task-meta-inline {
    display: inline-block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-left: 6px;
}
.compact-item {
    padding: 0;
}

.compact-trigger {
    padding: 12px 14px;
}

.compact-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.compact-bucket {
    font-size: 0.78rem;
}

.compact-title {
    font-size: 0.95rem;
    line-height: 1.2;
}

.task-meta-inline {
    display: inline-block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-left: 6px;
}

.compact-summary p {
    margin: 4px 0;
}

.pagination-card {
    margin-top: 16px;
}

.pagination-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pagination-info {
    text-align: center;
    color: #cbd5e1;
    font-weight: 600;
}

.filter-block {
    margin-bottom: 14px;
}

.filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
}

@media (min-width: 700px) {
    .pagination-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.search-form {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.search-actions {
    display: grid;
    gap: 10px;
}
.search-form {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.search-actions {
    display: grid;
    gap: 10px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 10px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.quick-btn.big {
    grid-column: span 2;
    font-size: 1.1rem;
}

.quick-btn:hover {
    background: #334155;
}

.mini-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.mini-list li {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
}

.mini-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.stats-grid {
    display: flex;
    gap: 10px;
}

.stat-box {
    flex: 1;
    background: #1e293b;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
}
.quick-capture-home {
    max-width: 520px;
    margin: 0 auto;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 12px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.quick-btn.big {
    font-size: 1.05rem;
}

.quick-btn:hover {
    background: #334155;
}
.small-link {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
}

.small-link:hover {
    color: #fff;
}
.quick-capture-home {
    max-width: 520px;
    margin: 0 auto;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 12px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.quick-btn.big {
    font-size: 1.05rem;
}

.quick-btn:hover {
    background: #334155;
}

.quick-access {
    max-width: 520px;
    margin: 12px auto 0 auto;
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
}
.quick-capture-home {
    max-width: 520px;
    margin: 0 auto;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 12px;
    background: #1e293b;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.quick-btn.big {
    font-size: 1.05rem;
}

.quick-btn:hover {
    background: #334155;
}

.quick-access {
    max-width: 520px;
    margin: 12px auto 0 auto;
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
}

.inline-quick-form {
    display: grid;
    gap: 10px;
}

.app-nav-compact {
    display: grid;
    gap: 12px;
}

.nav-section {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 8px 10px;
}

.nav-section summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    outline: none;
}

.nav-section summary::-webkit-details-marker {
    display: none;
}

.nav-links {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.collapsible-panel[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.collapsible-panel[hidden] {
    display: none !important;
}
.home-spacer-top {
    margin-top: 12px;
}
.home-spacer-top {
    margin-top: 12px;
}
#toggleNav {
    font-size: 0.9rem;
    opacity: 0.8;
}

#toggleNav:hover {
    opacity: 1;
}
.home-quick-actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 12px 14px;
    flex-wrap: wrap;
}

.small-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: #1e293b;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.small-action-button:hover {
    background: #334155;
}
.top-back-link {
    margin: 4px 0 14px 0;
}

.top-back-link a {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
}

.top-back-link a:hover {
    color: #f8fafc;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}
/* === Sélection multiple Inbox === */

.bulk-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.bulk-select-all input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.bulk-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-buttons button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

#bulkSelectionCount {
    margin: 0;
}

.compact-trigger-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inbox-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.inbox-checkbox-wrap input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

.compact-trigger-row .compact-trigger {
    flex: 1;
}