.vc-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    color: #0f172a;
    max-width: 1160px;
    margin: 20px auto;
}
.vc-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 18px;
}
.vc-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #4f6814;
}
.vc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.vc-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}
.vc-tab.active {
    background: #6aa127;
    color: #ffffff;
    border-color: #6aa127;
}
.vc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}
.vc-item-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.vc-item-edit-box {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}
.vc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 14px;
}
.vc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.vc-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
}
.vc-input, .vc-select {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
}
.vc-input-sm {
    width: 86px;
}
.vc-input-city {
    width: 135px;
}
.vc-input-time {
    width: 102px;
}
.vc-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: #6aa127;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
}
.vc-btn:hover {
    background: #58881e;
}
.vc-btn-edit {
    background: #e0f2fe;
    color: #0369a1;
    padding: 5px 10px;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
}
.vc-btn-cancel {
    background: #e2e8f0;
    color: #334155;
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}
.vc-btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    padding: 5px 10px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
}
.vc-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: #d1fae5;
    color: #4f6814;
    font-weight: 600;
}
.vc-badge-warn {
    background: #fef3c7;
    color: #92400e;
}
.vc-status {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
}
.vc-train-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 11px;
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.vc-train-form-group {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.vc-train-pill {
    display: inline-block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.vc-train-pill-retour {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

/* Styles du récapitulatif page d'accueil [velocrew_resume] */
.vc-home-summary {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #a7f3d0;
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    margin: 16px 0;
    color: #0f172a;
}
.vc-home-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
}
.vc-home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: #334155;
}
.vc-home-badge {
    display: inline-block;
    background: #059669;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.vc-home-table-wrap {
    overflow-x: auto;
}
.vc-home-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.9rem;
}
.vc-home-table th {
    background: #ecfdf5;
    color: #4f6814;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #a7f3d0;
    font-weight: 700;
}
.vc-home-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.vc-home-table tr:last-child td {
    border-bottom: none;
}

.vc-btn-secondary {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 5px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.vc-btn-secondary:hover {
    background: #dbeafe;
}
.vc-stage-map-preview {
    width: 100%;
    margin-top: 10px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
}
.vc-stage-map-frame-wrap {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
}
.vc-stage-map-frame-wrap iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}
.vc-stage-map-note {
    font-size: 0.82rem;
    color: #475569;
    margin-top: 6px;
}

/* Accordéon mobile pour les modules */
.vc-mobile-accordion-header {
    display: none;
}

@media (max-width: 768px) {
    .vc-app {
        padding: 12px;
        margin: 10px auto;
        border-radius: 12px;
    }
    .vc-tabs {
        display: none;
    }
    .vc-module-section {
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        margin-bottom: 10px;
        overflow: hidden;
    }
    .vc-module-section > .vc-card {
        margin-bottom: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .vc-module-section > .vc-card + .vc-card {
        border-top: 1px solid #e2e8f0;
    }
    .vc-mobile-accordion-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 14px;
        background: #ecfdf5;
        color: #4f6814;
        border: none;
        border-bottom: 1px solid #d1fae5;
        font-size: 0.95rem;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
    }
    .vc-mobile-accordion-header[aria-expanded="false"] {
        background: #ffffff;
        color: #0f172a;
        border-bottom: none;
    }
    .vc-accordion-chevron {
        font-size: 0.9rem;
        transition: transform 0.2s ease;
        margin-left: 8px;
        flex-shrink: 0;
    }
    .vc-module-section.is-collapsed .vc-mobile-accordion-body {
        display: none;
    }
    .vc-grid {
        grid-template-columns: 1fr;
    }
    .vc-input-city,
    .vc-input-time,
    .vc-input-sm {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .vc-row .vc-input,
    .vc-row .vc-select {
        flex: 1 1 140px;
        min-width: 0;
    }
}

/* Bouton et zone de création masquable dans chaque module */
.vc-card-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.vc-card-header-row h3 {
    margin: 0;
}
.vc-create-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
    margin-bottom: 14px;
}
.vc-create-box-neutral {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 16px;
}
.vc-create-box-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

/* Mise en page ordinateur : menu à gauche et contenu à droite */
.vc-main-layout {
    display: block;
}

@media (min-width: 769px) {
    .vc-main-layout {
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }
    .vc-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 0;
        position: sticky;
        top: 24px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 10px;
    }
    .vc-tab {
        width: 100%;
        text-align: left;
        border-radius: 10px;
        padding: 10px 14px;
        box-sizing: border-box;
    }
    .vc-content-pane {
        min-width: 0;
    }
}

/* Couleurs des boutons inspirées de Komoot (#6aa127 / #58881e) */
.vc-tab:hover {
    border-color: #6aa127;
    color: #4f6814;
    background: #f4f9ec;
}
.vc-tab.active {
    background: #6aa127;
    color: #ffffff;
    border-color: #6aa127;
}
.vc-btn {
    background: #6aa127;
    color: #ffffff;
    border-radius: 999px;
}
.vc-btn:hover {
    background: #58881e;
}
.vc-btn-secondary {
    background: #f4f9ec;
    color: #4f6814;
    border: 1px solid #b5d67e;
    border-radius: 999px;
}
.vc-btn-secondary:hover {
    background: #e6f2d1;
}
.vc-btn-edit {
    background: #f4f9ec;
    color: #4f6814;
    border: 1px solid #b5d67e;
    border-radius: 999px;
}
.vc-btn-edit:hover {
    background: #e6f2d1;
}
.vc-btn-cancel {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
}
.vc-btn-cancel:hover {
    background: #e2e8f0;
}
.vc-btn-danger {
    border-radius: 999px;
}
@media (max-width: 768px) {
    .vc-mobile-accordion-header {
        background: #f4f9ec;
        color: #4f6814;
        border-bottom-color: #d9ebb8;
    }
}
